:root,
[data-theme="violeta"] {
  --bg: #101016;
  --side: #15141d;
  --rail: #111018;
  --panel: #191822;
  --panel-hover: #22202e;
  --border: #2a2737;
  --muted: #a7a1b7;
  --dim: #938ba5;
  --purple: #bf9bff;
  --lime: #d7ff83;
  --ink: #18220e;
  --hero-start: #1c152a;
  --hero-end: #2b1747;
  --art-light: 223 194 255;
  --art-mid: 155 89 255;
  --art-dark: 93 51 211;
}
[data-theme="oceano"] {
  --bg: #0e141e;
  --side: #131c2b;
  --rail: #101725;
  --panel: #172232;
  --panel-hover: #1c2e43;
  --border: #2a3d55;
  --muted: #a0b8ce;
  --dim: #91a9c1;
  --purple: #91ccff;
  --lime: #8bf2ff;
  --ink: #092432;
  --hero-start: #142239;
  --hero-end: #133e60;
  --art-light: 166 233 255;
  --art-mid: 63 187 255;
  --art-dark: 42 101 216;
}
[data-theme="esmeralda"] {
  --bg: #0e1715;
  --side: #13201d;
  --rail: #0f1b19;
  --panel: #172824;
  --panel-hover: #1c342d;
  --border: #2b473e;
  --muted: #a3bbaf;
  --dim: #8eaa9c;
  --purple: #8ee3bb;
  --lime: #bfffaf;
  --ink: #14271b;
  --hero-start: #162b25;
  --hero-end: #12513e;
  --art-light: 176 255 216;
  --art-mid: 70 221 156;
  --art-dark: 31 146 107;
}
[data-theme="brasa"] {
  --bg: #180f12;
  --side: #221619;
  --rail: #1c1114;
  --panel: #27191e;
  --panel-hover: #352329;
  --border: #4c3036;
  --muted: #c4aaa9;
  --dim: #af9497;
  --purple: #ffa396;
  --lime: #ffc58a;
  --ink: #301b12;
  --hero-start: #301b21;
  --hero-end: #64282c;
  --art-light: 255 206 157;
  --art-mid: 249 119 91;
  --art-dark: 208 58 59;
}
[data-theme="rosa"] {
  --bg: #181018;
  --side: #231827;
  --rail: #1c1321;
  --panel: #2b1e31;
  --panel-hover: #372540;
  --border: #4a3252;
  --muted: #c3aac7;
  --dim: #ad91b5;
  --purple: #f7aff2;
  --lime: #ffc5dc;
  --ink: #37172b;
  --hero-start: #301b3a;
  --hero-end: #632755;
  --art-light: 255 206 238;
  --art-mid: 244 110 195;
  --art-dark: 155 54 187;
}
[data-theme="ambar"] {
  --bg: #17140d;
  --side: #201b12;
  --rail: #19160e;
  --panel: #2a2317;
  --panel-hover: #362d1c;
  --border: #4c3d26;
  --muted: #c3b494;
  --dim: #ad9b77;
  --purple: #efcd8a;
  --lime: #ffdc84;
  --ink: #2d220e;
  --hero-start: #2c2418;
  --hero-end: #55421d;
  --art-light: 255 235 170;
  --art-mid: 255 185 67;
  --art-dark: 189 116 42;
}

.sidebar,
.rooms-rail,
.topbar {
  border-color: var(--border);
}
.topbar {
  background: color-mix(in srgb, var(--side), var(--bg));
}
.sidebar-account,
.icon-btn:hover {
  background: var(--panel);
}
.room-icon,
.btn.secondary {
  color: var(--text);
  background: var(--panel-hover);
  border-color: var(--border);
}
.nav-item,
.space-switch {
  color: var(--muted);
}
.nav-label {
  color: var(--dim);
}
.nav-item:hover,
.space-switch:hover,
.sidebar-account:hover,
.btn.quiet:hover:not(:disabled) {
  background: var(--panel-hover);
}
.nav-item.current,
.room-icon:hover,
.room-icon.selected,
.btn.secondary:hover:not(:disabled) {
  color: color-mix(in srgb, var(--purple) 76%, white);
  background: color-mix(in srgb, var(--purple) 17%, var(--side));
  border-color: color-mix(in srgb, var(--purple) 44%, var(--border));
}
.nav-item.current {
  box-shadow: inset 2px 0 var(--purple);
}
.nav-item.current svg,
.nav-item:hover svg,
.room-icon.add,
.btn.quiet,
.theme-button,
.text-btn,
.solution,
.setup summary {
  color: var(--purple);
}
.hero {
  background: linear-gradient(105deg, var(--hero-start), var(--hero-end));
  border-color: color-mix(in srgb, var(--purple) 32%, var(--hero-start));
}
.hero::before {
  --grid-line: color-mix(in srgb, var(--purple) 7%, transparent);
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
}
.hero-content > p:not(.eyebrow) {
  color: color-mix(in srgb, var(--muted) 70%, var(--text));
}
.eyebrow,
.hero-tag {
  color: color-mix(in srgb, var(--purple) 80%, white);
}
.eyebrow i {
  background: var(--purple);
  box-shadow: 0 0 13px var(--purple);
}
.hero-tag {
  background: color-mix(in srgb, var(--hero-end), var(--panel));
  border-color: color-mix(in srgb, var(--purple) 27%, var(--hero-end));
}
.brand-mark {
  color: var(--ink);
}
.btn.primary {
  border-color: color-mix(in srgb, var(--lime) 75%, white);
}
.btn.primary:hover:not(:disabled) {
  background: color-mix(in srgb, var(--lime) 67%, white);
}
.feature-icon.purple,
.selection-counter,
.tag {
  color: var(--purple);
  background: color-mix(in srgb, var(--purple) 14%, var(--panel));
}
.bar {
  background: var(--border);
}
.bar > span {
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--purple) 38%, var(--lime)),
    var(--lime)
  );
}
.list-row,
.standing {
  border-color: var(--border);
}
.solution-content,
.choice,
.queue-banner {
  background: color-mix(in srgb, var(--purple) 8%, var(--panel));
  border-color: color-mix(in srgb, var(--purple) 30%, var(--border));
}
.choice kbd {
  color: var(--purple);
  background: var(--panel-hover);
}
.choice:hover:not(:disabled),
.choice.chosen {
  background: color-mix(in srgb, var(--purple) 17%, var(--panel));
  border-color: var(--purple);
}
.choice.correct {
  background: #283a2b;
  border-color: #789b66;
}
input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
  background-color: var(--bg);
  border-color: var(--border);
}
dialog {
  border-color: color-mix(in srgb, var(--purple) 30%, var(--border));
}
.theme-picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
  margin: 1px 0 3px;
  padding: 0;
  border: 0;
}
.theme-option {
  position: relative;
  cursor: pointer;
}
.theme-option input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.theme-option-body {
  display: grid;
  gap: 6px;
  padding: 8px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--text);
}
.theme-option input:checked + .theme-option-body {
  border-color: var(--purple);
  box-shadow: inset 0 0 0 1px var(--purple);
}
.theme-option input:focus-visible + .theme-option-body {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
}
.theme-swatch {
  display: flex;
  gap: 4px;
  align-items: center;
  height: 26px;
  padding: 5px;
  border-radius: 5px;
  background: linear-gradient(110deg, var(--hero-start), var(--hero-end));
}
.theme-swatch i {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--purple);
}
.theme-swatch i:nth-child(2) {
  background: var(--lime);
}
.theme-swatch i:nth-child(3) {
  background: var(--panel-hover);
}
@media (max-width: 360px) {
  .theme-picker {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
