* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* primary accent — nav, buttons, CPS card */
  --accent-rgb: 168, 85, 247;
  --accent-dark-rgb: 124, 58, 237;
  --accent: #a855f7;
  --accent-dark: #7c3aed;
  --accent-darker: #6d28d9;
  --accent-light: #c084fc;
  --accent-lighter: #e9d5ff;

  /* secondary accent — duty cycle card + its slider */
}

body.theme-cyber {
  --accent-rgb: 34, 211, 238;
  --accent-dark-rgb: 8, 145, 178;
  --accent: #22d3ee;
  --accent-dark: #0891b2;
  --accent-darker: #0e7490;
  --accent-light: #67e8f9;
  --accent-lighter: #cffafe;

  --accent2-rgb: 244, 114, 182;
  --accent2: #f472b6;
}

body.theme-sunset {
  --accent-rgb: 251, 146, 60;
  --accent-dark-rgb: 234, 88, 12;
  --accent: #fb923c;
  --accent-dark: #ea580c;
  --accent-darker: #c2410c;
  --accent-light: #fdba74;
  --accent-lighter: #ffedd5;

  --accent2-rgb: 244, 63, 94;
  --accent2: #f43f5e;
}

body.theme-toxic {
  --accent-rgb: 163, 230, 53;
  --accent-dark-rgb: 101, 163, 13;
  --accent: #a3e635;
  --accent-dark: #65a30d;
  --accent-darker: #4d7c0f;
  --accent-light: #bef264;
  --accent-lighter: #ecfccb;

  --accent2-rgb: 250, 204, 21;
  --accent2: #facc15;
}

body.theme-ocean {
  --accent-rgb: 45, 212, 191;
  --accent-dark-rgb: 13, 148, 136;
  --accent: #2dd4bf;
  --accent-dark: #0d9488;
  --accent-darker: #0f766e;
  --accent-light: #5eead4;
  --accent-lighter: #ccfbf1;

  --accent2-rgb: 56, 189, 248;
  --accent2: #38bdf8;
}

body.theme-vaporwave {
  --accent-rgb: 236, 72, 153;
  --accent-dark-rgb: 190, 24, 93;
  --accent: #ec4899;
  --accent-dark: #be185d;
  --accent-darker: #9d174d;
  --accent-light: #f472b6;
  --accent-lighter: #fce7f3;

  --accent2-rgb: 34, 211, 238;
  --accent2: #22d3ee;
}

html, body {
  height: 100%;
  background: #000000;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: #fff;
  overflow: hidden;
}

.app {
  display: flex;
  height: 100vh;
  background: #050006;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(var(--accent-rgb), 0.2);
}

.app::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  will-change: background;
  background:
    radial-gradient(ellipse 60% 50% at 15% 20%, rgba(var(--accent-rgb), 0.16), transparent 70%),
    radial-gradient(ellipse 65% 55% at 85% 75%, rgba(var(--accent-dark-rgb), 0.14), transparent 70%),
    radial-gradient(ellipse 70% 40% at 50% 100%, rgba(var(--accent-rgb), 0.06), transparent 70%);
}

.app::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.drag-region {
  position: absolute;
  top: 0;
  left: 172px;
  right: 0;
  height: 28px;
  -webkit-app-region: drag;
  z-index: 1000;
}

/* keep the buttons/inputs/nav clickable even if they overlap the strip */
.nav-item,
.btn,
.btn-ghost,
input,
.mode-option,
.preset-action-btn,
.theme-swatch,
.switch {
  -webkit-app-region: no-drag;
}

/* ---- sidebar ---- */

.sidebar {
  width: 172px;
  padding: 22px 12px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-right: 1px solid rgba(var(--accent-rgb), 0.1);
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  background: rgba(10, 0, 18, 0.6);
}

.brand {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 28px;
  padding: 0 6px;
}

.brand-mark {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-text {
  line-height: 1.2;
  font-family: 'Michroma', sans-serif;
  font-size: 8.5px;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.9);
}

.brand-text .accent {
  color: var(--accent-light);
  letter-spacing: 1px;
}

/* ---- nav group label ---- */
.nav-group-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.18);
  padding: 14px 8px 6px;
  user-select: none;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border-radius: 8px;
  color: rgba(255,255,255,0.35);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  transition: color 0.15s, background 0.15s;
  letter-spacing: 0.2px;
  position: relative;
}

.nav-item:hover {
  color: rgba(255,255,255,0.65);
  background: rgba(var(--accent-rgb), 0.06);
}

.nav-item i {
  font-size: 15px;
  flex-shrink: 0;
}

.nav-item.active {
  background: rgba(var(--accent-rgb), 0.15);
  color: var(--accent-lighter);
  font-weight: 600;
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  bottom: 20%;
  width: 2.5px;
  background: var(--accent);
  border-radius: 0 2px 2px 0;
}

.nav-item.active i {
  color: var(--accent-light);
}

.status {
  margin-top: auto;
  padding: 10px 8px 2px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.3px;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  transition: background 0.3s, box-shadow 0.3s;
}

.status-dot.running {
  background: var(--accent);
  box-shadow: 0 0 8px rgba(var(--accent-rgb), 0.7);
}

/* ---- main panel ---- */

.main {
  flex: 1;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

/* floating OK / EXIT — sits above every tab, not just one page */
.global-window-controls {
  position: absolute;
  top: 24px;
  right: 22px;
  width: 150px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  z-index: 50;
  -webkit-app-region: no-drag;
}

.page {
  padding: 24px 22px 20px;
  height: 100%;
  overflow-y: auto;
}

.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  padding-right: 115px;
}

.page-title {
  font-family: 'Michroma', sans-serif;
  font-size: 13px;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.9);
  text-transform: uppercase;
  -webkit-app-region: drag;
}

.btn {
  display: flex;
  align-items: center;
  gap: 6px;
  border: none;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Plus Jakarta Sans', sans-serif;
  transition: background 0.15s, transform 0.1s;
  letter-spacing: 0.2px;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  padding: 9px 20px;
  background: var(--accent-dark);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-darker);
}

.btn-primary.running {
  background: #be123c;
}

.btn-primary.running:hover {
  background: #9f1239;
}

.win-btn {
  padding: 9px 14px;
  font-size: 11px;
}

.ok-btn {
  background: rgba(var(--accent-rgb), 0.15);
  color: var(--accent-light);
}

.ok-btn:hover {
  background: rgba(var(--accent-rgb), 0.28);
}

.exit-btn {
  background: rgba(190, 18, 60, 0.15);
  color: #f87171;
}

.exit-btn:hover {
  background: rgba(190, 18, 60, 0.3);
}

/* ---- stat grid ---- */

.stat-grid {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}

.stat-card {
  flex: 1;
  border-radius: 12px;
  padding: 14px 15px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(var(--accent-rgb), 0.35);
  box-shadow: 0 0 18px rgba(var(--accent-rgb), 0.1);
}

.stat-label {
  font-size: 10.5px;
  letter-spacing: 0.2px;
  margin-bottom: 9px;
  color: rgba(var(--accent-rgb), 0.85);
  text-transform: uppercase;
  font-weight: 600;
  font-size: 9.5px;
  letter-spacing: 0.8px;
}


.stat-value {
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 12px;
  text-shadow: 0 0 14px rgba(var(--accent-rgb), 0.4);
}

.stat-value .unit {
  font-size: 14px;
  color: rgba(255,255,255,0.35);
  margin-left: 2px;
  font-weight: 500;
}

.stat-value > span:first-child {
  cursor: text;
  border-bottom: 1px dashed transparent;
  transition: border-color 0.15s;
}

.stat-value > span:first-child:hover {
  border-bottom-color: rgba(var(--accent-rgb), 0.5);
}

.stat-value-input {
  width: 4.5ch;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.8);
  color: #fff;
  padding: 0;
}

.stat-value-input:focus {
  outline: none;
}

.stat-value-input::-webkit-outer-spin-button,
.stat-value-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.stat-value-input[type="number"] {
  -moz-appearance: textfield;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
  height: 3px;
}

/* ---- section label ---- */

.section-label {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  margin-bottom: 8px;
  margin-top: 2px;
}

/* ---- click mode ---- */

.mode-toggle {
  display: flex;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(var(--accent-rgb), 0.15);
  border-radius: 10px;
  padding: 3px;
  margin-bottom: 16px;
  gap: 2px;
}

.mode-option {
  flex: 1;
  text-align: center;
  padding: 8px 0;
  border-radius: 7px;
  color: rgba(255,255,255,0.3);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  letter-spacing: 0.3px;
  transition: color 0.15s, background 0.15s;
}

.mode-option:hover {
  color: rgba(255,255,255,0.55);
}

.mode-option.active {
  background: rgba(var(--accent-dark-rgb), 0.9);
  color: #fff;
  box-shadow: 0 1px 8px rgba(var(--accent-dark-rgb), 0.4);
}

/* ---- activation key ---- */

.key-row {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  align-items: center;
}

.key-field {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 0 13px;
  height: 38px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  border-radius: 9px;
  color: rgba(255,255,255,0.25);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2px;
  transition: border-color 0.15s, color 0.15s;
}

.key-field.listening {
  color: var(--accent-lighter);
  border-color: rgba(var(--accent-rgb), 0.6);
  background: rgba(var(--accent-rgb), 0.07);
}

.key-field.set {
  color: var(--accent-lighter);
  font-weight: 600;
  border-color: rgba(var(--accent-rgb), 0.35);
}

.btn-ghost {
  padding: 0 14px;
  height: 38px;
  background: rgba(var(--accent-dark-rgb), 0.12);
  color: var(--accent-light);
  border: 1px solid rgba(var(--accent-rgb), 0.25);
  border-radius: 9px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Plus Jakarta Sans', sans-serif;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
  letter-spacing: 0.2px;
}

.btn-ghost:hover {
  background: rgba(var(--accent-dark-rgb), 0.22);
  color: var(--accent-lighter);
}

/* ---- presets ---- */

.preset-list {
  margin-bottom: 10px;
}

.preset-empty {
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.015);
  border: 1px dashed rgba(var(--accent-rgb), 0.15);
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.preset-empty i {
  font-size: 18px;
  color: rgba(255,255,255,0.15);
}

.preset-empty-title {
  color: rgba(255,255,255,0.2);
  font-size: 12px;
}

.preset-empty-sub {
  color: rgba(255,255,255,0.12);
  font-size: 10.5px;
}

.preset-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(var(--accent-rgb), 0.15);
  margin-bottom: 6px;
  transition: border-color 0.15s, background 0.15s;
}

.preset-item:hover {
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(var(--accent-rgb), 0.25);
}

.preset-item-info .name {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
}

.preset-item-info .details {
  font-size: 10px;
  color: rgba(255,255,255,0.3);
  margin-top: 2px;
  letter-spacing: 0.2px;
}

.preset-item-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  margin-left: 8px;
}

.preset-action-btn {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 7px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  line-height: 1;
  transition: background 0.15s, color 0.15s;
  background: transparent;
  padding: 0;
  flex-shrink: 0;
}

.preset-action-btn i {
  font-size: 15px;
  line-height: 1;
  display: block;
}

.preset-action-btn.equip {
  color: rgba(var(--accent-rgb), 0.7);
}

.preset-action-btn.equip:hover {
  background: rgba(var(--accent-rgb), 0.18);
  color: var(--accent-light);
}

.preset-action-btn.delete {
  color: rgba(255, 255, 255, 0.25);
}

.preset-action-btn.delete:hover {
  background: rgba(239, 68, 68, 0.14);
  color: #f87171;
}

.preset-save-row {
  display: flex;
  gap: 7px;
}

.preset-save-row input {
  flex: 1;
  height: 36px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(var(--accent-rgb), 0.15);
  color: #fff;
  font-size: 12px;
  padding: 0 12px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  transition: border-color 0.15s;
}

.preset-save-row input::placeholder {
  color: rgba(255,255,255,0.2);
}

.preset-save-row input:focus {
  outline: none;
  border-color: rgba(var(--accent-rgb), 0.4);
}

.preset-save-row .btn {
  height: 36px;
  padding: 0 14px;
  font-size: 11.5px;
}

.preset-equip-btn {
  width: 52px;
  height: 28px;
  min-width: 52px;
  border-radius: 7px;
  border: 1px solid rgba(var(--accent-rgb), 0.4);
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--accent-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 11px;
  font-weight: 600;
  font-family: 'Plus Jakarta Sans', sans-serif;
  transition: background 0.15s, color 0.15s;
}

.preset-equip-btn:hover {
  background: rgba(var(--accent-rgb), 0.22);
}

.preset-delete-btn {
  width: 30px;
  height: 30px;
  min-width: 30px;
  border-radius: 7px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.55);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 14px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  transition: background 0.15s, color 0.15s;
}

.preset-delete-btn:hover {
  background: rgba(239, 68, 68, 0.14);
  color: #f87171;
}

/* ---- settings / stats placeholder ---- */

.settings-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 60%;
  gap: 10px;
  color: rgba(255,255,255,0.12);
}

.settings-placeholder i {
  font-size: 30px;
}

.settings-placeholder p {
  font-size: 12px;
}

/* ---- settings page: theme, toggles, danger zone ---- */

.theme-grid {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.theme-swatch {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--swatch1);
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s, border-color 0.15s;
}

.theme-swatch:hover {
  transform: scale(1.1);
}

.theme-swatch.active {
  border-color: #fff;
}

.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 12px;
}

.setting-row-title {
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
}

.setting-row-sub {
  font-size: 10.5px;
  color: rgba(255,255,255,0.3);
  margin-top: 3px;
}

.switch {
  position: relative;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-track {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.1);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s;
}

.switch-track::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.15s;
}

.switch input:checked + .switch-track {
  background: var(--accent);
}

.switch input:checked + .switch-track::before {
  transform: translateX(18px);
}

.danger-row {
  border-color: rgba(239, 68, 68, 0.2);
}

.btn-danger {
  padding: 8px 16px;
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.28);
}
.ambient-glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  will-change: transform;
}

.glow-orb-1 {
  width: 260px;
  height: 260px;
  top: -60px;
  left: -40px;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.9), transparent 70%);
  animation: orbFloat1 18s ease-in-out infinite;
}

.glow-orb-2 {
  width: 320px;
  height: 320px;
  bottom: -80px;
  right: -60px;
  background: radial-gradient(circle, rgba(var(--accent-dark-rgb), 0.85), transparent 70%);
  animation: orbFloat2 22s ease-in-out infinite;
}

.glow-orb-3 {
  width: 200px;
  height: 200px;
  bottom: 10%;
  left: 30%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.6), transparent 70%);
  animation: orbFloat3 26s ease-in-out infinite;
}

@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(40px, 30px); }
}
@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-35px, -25px); }
}
@keyframes orbFloat3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -15px) scale(1.08); }
}

.custom-color-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(var(--accent-rgb), 0.15);
  margin-bottom: 20px;
  position: relative;   /* ← this line — add if missing */
}
.ccc-fields { flex: 1; min-width: 0; }
.ccc-label {
  font-size: 9.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  color: rgba(255,255,255,0.3); margin-bottom: 6px;
}
#custom-hex {
  width: 100%; height: 32px; border-radius: 8px;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(var(--accent-rgb), 0.2);
  color: #fff; font-size: 12px; padding: 0 10px; font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: 0.4px; text-transform: uppercase; transition: border-color 0.15s;
}
#custom-hex:focus { outline: none; border-color: rgba(var(--accent-rgb), 0.5); }
#custom-hex.invalid { border-color: rgba(239,68,68,0.6); }

.ccc-preview {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0; border: none; padding: 0;
  cursor: pointer; background: var(--accent);
  box-shadow: 0 0 18px rgba(var(--accent-rgb), 0.55), inset 0 0 8px rgba(255,255,255,0.15);
  transition: background 0.15s, box-shadow 0.15s, transform 0.1s;
}
.ccc-preview:hover { transform: scale(1.06); }

.color-popover {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 200;
  background: #0a0012;
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  width: 250px;
}
.color-popover.open { display: block; }

.sv-wrap { position: relative; margin-bottom: 12px; border-radius: 8px; overflow: hidden; cursor: crosshair; }
.sv-wrap canvas { display: block; width: 100%; height: 140px; }
.sv-cursor {
  position: absolute; width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid #fff; box-shadow: 0 0 4px rgba(0,0,0,0.7);
  transform: translate(-50%, -50%); pointer-events: none;
}

.hue-wrap {
  position: relative; height: 14px; border-radius: 7px; cursor: pointer;
  background: linear-gradient(to right, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00);
}
.hue-thumb {
  position: absolute; top: 50%; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; border: 2px solid #222; box-shadow: 0 0 4px rgba(0,0,0,0.6);
  transform: translate(-50%, -50%); pointer-events: none;
}

.custom-dropdown {
  position: relative;
  flex: 1;
}

.dropdown-trigger {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dropdown-trigger::after {
  content: '▾';
  font-size: 10px;
  color: rgba(255,255,255,0.3);
  margin-left: 8px;
}

.dropdown-list {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 220px;
  overflow-y: auto;
  background: #0a0012;
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  border-radius: 9px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  z-index: 100;
}

.dropdown-list.open {
  display: block;
}

.dropdown-item {
  padding: 9px 13px;
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background 0.12s, color 0.12s;
}

.dropdown-item:hover {
  background: rgba(var(--accent-rgb), 0.15);
  color: var(--accent-lighter);
}

.dropdown-item.selected {
  color: var(--accent-light);
  font-weight: 600;
}
body.perf-mode .glow-orb,
body.perf-mode .app::before,
body.perf-mode .app::after {
  animation: none !important;
  display: none;
}