.cswatch-native-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  overflow: hidden !important;
}
.cswatch-wrap {
  display: inline-block;
  position: relative;
  vertical-align: middle;
}
.cswatch-collapsed {
  display: flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.cswatch-dot-main {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: 2px solid var(--border2, #2a2a2a);
  display: block;
  flex-shrink: 0;
  transition: border-color .15s;
}
.cswatch-collapsed.cswatch-open .cswatch-dot-main {
  border-color: var(--accent, #FF6B00);
}
.cswatch-collapsed-label {
  font: 700 9px 'DM Sans', sans-serif;
  color: var(--muted, #666);
}
.cswatch-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 50;
  background: #0d0d0d;
  border: 1.5px solid var(--border2, #2a2a2a);
  border-radius: 10px;
  padding: 10px;
  width: 168px;
  box-shadow: 0 8px 24px rgba(0,0,0,.5);
}
.cswatch-hex-row {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}
.cswatch-hex {
  flex: 1;
  background: #111;
  border: 1.5px solid var(--border, #222);
  border-radius: 6px;
  padding: 6px 8px;
  color: var(--text, #f0f0f0);
  font: 700 12px 'DM Sans', monospace;
  text-transform: uppercase;
  outline: none;
  width: 0;
}
.cswatch-hex:focus { border-color: var(--accent, #FF6B00); }
.cswatch-more {
  width: 30px;
  flex-shrink: 0;
  background: #111;
  border: 1.5px solid var(--border, #222);
  border-radius: 6px;
  color: var(--muted, #666);
  cursor: pointer;
  font-size: 14px;
}
.cswatch-grid {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.cswatch-preset-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.15);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.cswatch-preset-dot:hover { border-color: var(--accent, #FF6B00); transform: scale(1.1); }

@media (max-width: 768px) {
  .cswatch-dot-main { width: 30px; height: 30px; }
  .cswatch-panel { width: 184px; padding: 12px; }
  .cswatch-hex { font-size: 13px; padding: 7px 9px; }
  .cswatch-preset-dot { width: 24px; height: 24px; }
}