/* Visitor theme picker. Copper adds no token overrides. */
.palette-picker {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
  min-inline-size: 0;
  flex: 0 0 auto;
  color: var(--muted, var(--sb-secondary, #3a5246));
}
.palette-label {
  font-size: 12px;
  font-weight: 650;
  line-height: 1;
  margin-right: 4px;
  color: var(--muted, var(--sb-secondary, #3a5246));
}
.palette-option {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  flex: 0 0 44px;
  cursor: pointer;
}
.palette-option input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.palette-option input:focus { outline: none; }
.palette-option input:focus-visible + .palette-swatch {
  outline: 3px solid var(--sb-focus, var(--accent, #1756a1));
  outline-offset: 4px;
}
.palette-swatch {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--ink, var(--sb-text, #10273e));
  box-sizing: border-box;
}
.palette-name {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
html:not([data-palette]) .palette-swatch[data-swatch="copper"],
html[data-palette="copper"] .palette-swatch[data-swatch="copper"],
html[data-palette="grove"] .palette-swatch[data-swatch="grove"],
html[data-palette="indigo"] .palette-swatch[data-swatch="indigo"] {
  box-shadow: 0 0 0 2px var(--bg, var(--sb-canvas, #fff)), 0 0 0 4px var(--ink, var(--sb-text, #10273e));
}
dialog .palette-picker { margin: 0 0 18px; }
@media (max-width: 1279px) {
  .header {
    height: auto;
    min-height: 82px;
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 8px;
    row-gap: 0;
  }
  .brand-controls { display: contents; }
  .brand { grid-column: 1; grid-row: 1; min-width: 0; }
  .appearance-toggle { grid-column: 2; grid-row: 1; }
  .header-menu { grid-column: 4; grid-row: 1; min-width: 0; }
  .menu-toggle { grid-column: 4; grid-row: 1; }
  .header .palette-picker { grid-column: 1 / -1; grid-row: 2; max-width: 100%; flex-basis: auto; justify-content: flex-start; }
}
@media (max-width: 760px) {
  .header-menu { grid-column: auto; grid-row: auto; top: 100%; left: 0; right: 0; }
}
@media (max-width: 700px) {
  .topbar { height: auto; min-height: 54px; flex-wrap: wrap; padding-block: 8px; }
  .topbar .palette-picker { flex-basis: 100%; justify-content: flex-end; }
}
body:not(.marketing):not(:has(.sidebar)) > header { flex-wrap: wrap; --sb-focus: #94C4FF; }
body:not(.marketing):not(:has(.sidebar)) > header .palette-picker {
  flex-basis: 100%;
  max-width: 100%;
  color: #fff;
  --ink: #fff;
  --muted: #e2eaf3;
  --sb-text: #fff;
  --sb-secondary: #e2eaf3;
}
body:not(.marketing):not(:has(.sidebar)) > header .palette-picker span { display: inline-block; }
@media (prefers-contrast: more) {
  .palette-swatch { border-width: 3px; }
}
@media (forced-colors: active) {
  .palette-label { color: CanvasText; }
  .palette-swatch { forced-color-adjust: none; border: 2px solid ButtonText; }
  .palette-option input:focus-visible + .palette-swatch { outline: 3px solid Highlight; }
}

.palette-swatch[data-swatch="copper"] { background: linear-gradient(135deg, #F4F7FB 52%, #B44212 52%); }

.palette-swatch[data-swatch="grove"] { background: linear-gradient(135deg, #F3F7F4 52%, #0B6840 52%); }

.palette-swatch[data-swatch="indigo"] { background: linear-gradient(135deg, #F5F4F8 52%, #4A2C96 52%); }

/* Grove and Indigo override the shared tokens. Copper keeps design-tokens.css. */

:root[data-palette="grove"] {
  color-scheme: light;
  --sb-canvas: #F3F7F4;
  --sb-surface: #FFFFFF;
  --sb-raised: #E5F0E9;
  --sb-text: #10241A;
  --sb-secondary: #3A5246;
  --sb-border: #C3D5CB;
  --sb-accent: #0B6840;
  --sb-accent-hover: #085232;
  --sb-accent-soft: #E3F5EB;
  --sb-on-accent: #FFFFFF;
  --sb-copper: #0B6840;
  --sb-control-border: #4C6759;
  --sb-focus: #0E4E96;
  --sb-success: #0B6840;
  --sb-success-surface: #E3F5EB;
  --sb-warning: #7A4B00;
  --sb-warning-surface: #FFF1D0;
  --sb-danger: #9E2B2A;
  --sb-danger-surface: #FDE7E5;
  --sb-info: #1A4E86;
  --sb-info-surface: #E5F0FA;
  --sb-assist: #5A3E9A;
  --sb-assist-surface: #F1ECF8;
  --sb-insight: #8C1646;
  --sb-insight-surface: #FCE9F2;
  --sb-technical: #0B6288;
  --sb-technical-surface: #E4F4FA;
}

@media (prefers-color-scheme: dark) {
  :root[data-palette="grove"]:not([data-appearance="light"]) {
  color-scheme: dark;
  --sb-canvas: #0C1A14;
  --sb-surface: #12241C;
  --sb-raised: #1A3328;
  --sb-text: #F4FBF7;
  --sb-secondary: #C6D9CE;
  --sb-border: #3D5C4C;
  --sb-accent: #8FE3B4;
  --sb-accent-hover: #B6F0D0;
  --sb-accent-soft: #163328;
  --sb-on-accent: #062116;
  --sb-copper: #8FE3B4;
  --sb-control-border: #86B399;
  --sb-focus: #A9D0FF;
  --sb-success: #8FE3B4;
  --sb-success-surface: #143528;
  --sb-warning: #F6C56A;
  --sb-warning-surface: #3E2E12;
  --sb-danger: #FFB4AE;
  --sb-danger-surface: #4A2424;
  --sb-info: #A9D0FF;
  --sb-info-surface: #152C44;
  --sb-assist: #D4C2FF;
  --sb-assist-surface: #2A2340;
  --sb-insight: #FFB0D4;
  --sb-insight-surface: #3A2230;
  --sb-technical: #9BE7F8;
  --sb-technical-surface: #12343C;
}
}

:root[data-palette="grove"][data-appearance="dark"] {
  color-scheme: dark;
  --sb-canvas: #0C1A14;
  --sb-surface: #12241C;
  --sb-raised: #1A3328;
  --sb-text: #F4FBF7;
  --sb-secondary: #C6D9CE;
  --sb-border: #3D5C4C;
  --sb-accent: #8FE3B4;
  --sb-accent-hover: #B6F0D0;
  --sb-accent-soft: #163328;
  --sb-on-accent: #062116;
  --sb-copper: #8FE3B4;
  --sb-control-border: #86B399;
  --sb-focus: #A9D0FF;
  --sb-success: #8FE3B4;
  --sb-success-surface: #143528;
  --sb-warning: #F6C56A;
  --sb-warning-surface: #3E2E12;
  --sb-danger: #FFB4AE;
  --sb-danger-surface: #4A2424;
  --sb-info: #A9D0FF;
  --sb-info-surface: #152C44;
  --sb-assist: #D4C2FF;
  --sb-assist-surface: #2A2340;
  --sb-insight: #FFB0D4;
  --sb-insight-surface: #3A2230;
  --sb-technical: #9BE7F8;
  --sb-technical-surface: #12343C;
}

:root[data-palette="grove"][data-appearance="light"] {
  color-scheme: light;
  --sb-canvas: #F3F7F4;
  --sb-surface: #FFFFFF;
  --sb-raised: #E5F0E9;
  --sb-text: #10241A;
  --sb-secondary: #3A5246;
  --sb-border: #C3D5CB;
  --sb-accent: #0B6840;
  --sb-accent-hover: #085232;
  --sb-accent-soft: #E3F5EB;
  --sb-on-accent: #FFFFFF;
  --sb-copper: #0B6840;
  --sb-control-border: #4C6759;
  --sb-focus: #0E4E96;
  --sb-success: #0B6840;
  --sb-success-surface: #E3F5EB;
  --sb-warning: #7A4B00;
  --sb-warning-surface: #FFF1D0;
  --sb-danger: #9E2B2A;
  --sb-danger-surface: #FDE7E5;
  --sb-info: #1A4E86;
  --sb-info-surface: #E5F0FA;
  --sb-assist: #5A3E9A;
  --sb-assist-surface: #F1ECF8;
  --sb-insight: #8C1646;
  --sb-insight-surface: #FCE9F2;
  --sb-technical: #0B6288;
  --sb-technical-surface: #E4F4FA;
}

@media (prefers-contrast: more) {
  :root[data-palette="grove"] {
  color-scheme: light;
  --sb-canvas: #FFFFFF;
  --sb-surface: #FFFFFF;
  --sb-raised: #E3EFE7;
  --sb-text: #07140E;
  --sb-secondary: #24382F;
  --sb-border: #2E4A3C;
  --sb-accent: #084E30;
  --sb-accent-hover: #063C25;
  --sb-accent-soft: #E3F5EB;
  --sb-on-accent: #FFFFFF;
  --sb-copper: #084E30;
  --sb-control-border: #2E4A3C;
  --sb-focus: #0C3E78;
  --sb-success: #084E30;
  --sb-success-surface: #D9F3E4;
  --sb-warning: #5E3A00;
  --sb-warning-surface: #FFE8B8;
  --sb-danger: #8A1E1E;
  --sb-danger-surface: #FCDDD9;
  --sb-info: #143C68;
  --sb-info-surface: #DCEAF8;
  --sb-assist: #432C80;
  --sb-assist-surface: #EDE6F8;
  --sb-insight: #720F38;
  --sb-insight-surface: #FBE4EE;
  --sb-technical: #084C6A;
  --sb-technical-surface: #D9F0F8;
}
  :root[data-palette="grove"][data-appearance="light"] {
  color-scheme: light;
  --sb-canvas: #FFFFFF;
  --sb-surface: #FFFFFF;
  --sb-raised: #E3EFE7;
  --sb-text: #07140E;
  --sb-secondary: #24382F;
  --sb-border: #2E4A3C;
  --sb-accent: #084E30;
  --sb-accent-hover: #063C25;
  --sb-accent-soft: #E3F5EB;
  --sb-on-accent: #FFFFFF;
  --sb-copper: #084E30;
  --sb-control-border: #2E4A3C;
  --sb-focus: #0C3E78;
  --sb-success: #084E30;
  --sb-success-surface: #D9F3E4;
  --sb-warning: #5E3A00;
  --sb-warning-surface: #FFE8B8;
  --sb-danger: #8A1E1E;
  --sb-danger-surface: #FCDDD9;
  --sb-info: #143C68;
  --sb-info-surface: #DCEAF8;
  --sb-assist: #432C80;
  --sb-assist-surface: #EDE6F8;
  --sb-insight: #720F38;
  --sb-insight-surface: #FBE4EE;
  --sb-technical: #084C6A;
  --sb-technical-surface: #D9F0F8;
}
  @media (prefers-color-scheme: dark) {
    :root[data-palette="grove"]:not([data-appearance="light"]) {
  color-scheme: dark;
  --sb-canvas: #07110C;
  --sb-surface: #0C1A14;
  --sb-raised: #143024;
  --sb-text: #FFFFFF;
  --sb-secondary: #E2F0E8;
  --sb-border: #8FB5A0;
  --sb-accent: #B6F0D0;
  --sb-accent-hover: #D5F8E6;
  --sb-accent-soft: #10281E;
  --sb-on-accent: #04150E;
  --sb-copper: #B6F0D0;
  --sb-control-border: #B7D8C6;
  --sb-focus: #C6E2FF;
  --sb-success: #B6F0D0;
  --sb-success-surface: #0E2C20;
  --sb-warning: #FFE09A;
  --sb-warning-surface: #33260C;
  --sb-danger: #FFD0CA;
  --sb-danger-surface: #3E1C1C;
  --sb-info: #C6E2FF;
  --sb-info-surface: #102438;
  --sb-assist: #E4D8FF;
  --sb-assist-surface: #221C36;
  --sb-insight: #FFC6E0;
  --sb-insight-surface: #321826;
  --sb-technical: #C4F4FF;
  --sb-technical-surface: #0E2C34;
}
  }
  :root[data-palette="grove"][data-appearance="dark"] {
  color-scheme: dark;
  --sb-canvas: #07110C;
  --sb-surface: #0C1A14;
  --sb-raised: #143024;
  --sb-text: #FFFFFF;
  --sb-secondary: #E2F0E8;
  --sb-border: #8FB5A0;
  --sb-accent: #B6F0D0;
  --sb-accent-hover: #D5F8E6;
  --sb-accent-soft: #10281E;
  --sb-on-accent: #04150E;
  --sb-copper: #B6F0D0;
  --sb-control-border: #B7D8C6;
  --sb-focus: #C6E2FF;
  --sb-success: #B6F0D0;
  --sb-success-surface: #0E2C20;
  --sb-warning: #FFE09A;
  --sb-warning-surface: #33260C;
  --sb-danger: #FFD0CA;
  --sb-danger-surface: #3E1C1C;
  --sb-info: #C6E2FF;
  --sb-info-surface: #102438;
  --sb-assist: #E4D8FF;
  --sb-assist-surface: #221C36;
  --sb-insight: #FFC6E0;
  --sb-insight-surface: #321826;
  --sb-technical: #C4F4FF;
  --sb-technical-surface: #0E2C34;
}
}

:root[data-palette="grove"][data-theme="light"]:has(.sidebar) {
  color-scheme: light;
  --bg: #F3F7F4;
  --sidebar: #FFFFFF;
  --panel: #FFFFFF;
  --panel-2: #E5F0E9;
  --line: #4C6759;
  --ink: #10241A;
  --muted: #3A5246;
  --faint: #3A5246;
  --sig: #0B6840;
  --amp: #085232;
  --accent: #0B6840;
  --ok: #0B6840;
  --bad: #9E2B2A;
  --grid: #4C6759;
  --metal: #3A5246;
  --viz-bg: #E5F0E9;
  --action: #0B6840;
  --action-ink: #FFFFFF;
}

:root[data-palette="grove"][data-theme="dark"]:has(.sidebar) {
  color-scheme: dark;
  --bg: #0C1A14;
  --sidebar: #0C1A14;
  --panel: #12241C;
  --panel-2: #1A3328;
  --line: #86B399;
  --ink: #F4FBF7;
  --muted: #C6D9CE;
  --faint: #C6D9CE;
  --sig: #8FE3B4;
  --amp: #B6F0D0;
  --accent: #8FE3B4;
  --ok: #8FE3B4;
  --bad: #FFB4AE;
  --grid: #86B399;
  --metal: #C6D9CE;
  --viz-bg: #1A3328;
  --action: #8FE3B4;
  --action-ink: #062116;
}

@media (prefers-contrast: more) {
  :root[data-palette="grove"][data-theme="light"]:has(.sidebar) {
  color-scheme: light;
  --bg: #FFFFFF;
  --sidebar: #FFFFFF;
  --panel: #FFFFFF;
  --panel-2: #E3EFE7;
  --line: #2E4A3C;
  --ink: #07140E;
  --muted: #24382F;
  --faint: #24382F;
  --sig: #084E30;
  --amp: #063C25;
  --accent: #084E30;
  --ok: #084E30;
  --bad: #8A1E1E;
  --grid: #2E4A3C;
  --metal: #24382F;
  --viz-bg: #E3EFE7;
  --action: #084E30;
  --action-ink: #FFFFFF;
}
  :root[data-palette="grove"][data-theme="dark"]:has(.sidebar) {
  color-scheme: dark;
  --bg: #07110C;
  --sidebar: #07110C;
  --panel: #0C1A14;
  --panel-2: #143024;
  --line: #B7D8C6;
  --ink: #FFFFFF;
  --muted: #E2F0E8;
  --faint: #E2F0E8;
  --sig: #B6F0D0;
  --amp: #D5F8E6;
  --accent: #B6F0D0;
  --ok: #B6F0D0;
  --bad: #FFD0CA;
  --grid: #B7D8C6;
  --metal: #E2F0E8;
  --viz-bg: #143024;
  --action: #B6F0D0;
  --action-ink: #04150E;
}
}

html[data-palette="grove"] body:not(.marketing):not(:has(.sidebar)) {
  color-scheme: light;
  --sb-canvas: #F3F7F4;
  --sb-surface: #FFFFFF;
  --sb-raised: #E5F0E9;
  --sb-text: #10241A;
  --sb-secondary: #3A5246;
  --sb-border: #C3D5CB;
  --sb-accent: #0B6840;
  --sb-accent-hover: #085232;
  --sb-accent-soft: #E3F5EB;
  --sb-on-accent: #FFFFFF;
  --sb-copper: #0B6840;
  --sb-control-border: #4C6759;
  --sb-focus: #0E4E96;
  --sb-success: #0B6840;
  --sb-success-surface: #E3F5EB;
  --sb-warning: #7A4B00;
  --sb-warning-surface: #FFF1D0;
  --sb-danger: #9E2B2A;
  --sb-danger-surface: #FDE7E5;
  --sb-info: #1A4E86;
  --sb-info-surface: #E5F0FA;
  --sb-assist: #5A3E9A;
  --sb-assist-surface: #F1ECF8;
  --sb-insight: #8C1646;
  --sb-insight-surface: #FCE9F2;
  --sb-technical: #0B6288;
  --sb-technical-surface: #E4F4FA;
  background: #F3F7F4;
  color: #10241A;
}
html[data-palette="grove"] body:not(.marketing):not(:has(.sidebar)) :is(h1, .rules summary) { color: #10241A; }
html[data-palette="grove"] body:not(.marketing):not(:has(.sidebar)) :is(.eyebrow, .timer, #status), html[data-palette="grove"] body:not(.marketing):not(:has(.sidebar)) a { color: #0B6840; }
html[data-palette="grove"] body:not(.marketing):not(:has(.sidebar)) :is(.note, .rules, footer, .leader small) { color: #3A5246; }
html[data-palette="grove"] body:not(.marketing):not(:has(.sidebar)) :is(#play, .board, .facts span) { background: #FFFFFF; color: #10241A; border-color: #4C6759; }
html[data-palette="grove"] body:not(.marketing):not(:has(.sidebar)) #play { border-top-color: #0B6840; }
html[data-palette="grove"] body:not(.marketing):not(:has(.sidebar)) .question { border-color: #4C6759; }
html[data-palette="grove"] body:not(.marketing):not(:has(.sidebar)) .question input { accent-color: #0B6840; }
html[data-palette="grove"] body:not(.marketing):not(:has(.sidebar)) :is(a, button, input, select, summary):focus-visible { outline-color: var(--sb-focus); }
html[data-palette="grove"] body:not(.marketing):not(:has(.sidebar)) > header { --sb-focus: #A9D0FF; background: #0C1A14; color: #F4FBF7; border-bottom-color: #8FE3B4; }
html[data-palette="grove"] body:not(.marketing):not(:has(.sidebar)) > header :is(a, span) { color: #F4FBF7; }

@media (prefers-contrast: more) {
html[data-palette="grove"] body:not(.marketing):not(:has(.sidebar)) {
    color-scheme: light;
    --sb-canvas: #FFFFFF;
    --sb-surface: #FFFFFF;
    --sb-raised: #E3EFE7;
    --sb-text: #07140E;
    --sb-secondary: #24382F;
    --sb-border: #2E4A3C;
    --sb-accent: #084E30;
    --sb-accent-hover: #063C25;
    --sb-accent-soft: #E3F5EB;
    --sb-on-accent: #FFFFFF;
    --sb-copper: #084E30;
    --sb-control-border: #2E4A3C;
    --sb-focus: #0C3E78;
    --sb-success: #084E30;
    --sb-success-surface: #D9F3E4;
    --sb-warning: #5E3A00;
    --sb-warning-surface: #FFE8B8;
    --sb-danger: #8A1E1E;
    --sb-danger-surface: #FCDDD9;
    --sb-info: #143C68;
    --sb-info-surface: #DCEAF8;
    --sb-assist: #432C80;
    --sb-assist-surface: #EDE6F8;
    --sb-insight: #720F38;
    --sb-insight-surface: #FBE4EE;
    --sb-technical: #084C6A;
    --sb-technical-surface: #D9F0F8;
    background: #FFFFFF;
    color: #07140E;
  }
  html[data-palette="grove"] body:not(.marketing):not(:has(.sidebar)) :is(h1, .rules summary) { color: #07140E; }
  html[data-palette="grove"] body:not(.marketing):not(:has(.sidebar)) :is(.eyebrow, .timer, #status), html[data-palette="grove"] body:not(.marketing):not(:has(.sidebar)) a { color: #084E30; }
  html[data-palette="grove"] body:not(.marketing):not(:has(.sidebar)) :is(.note, .rules, footer, .leader small) { color: #24382F; }
  html[data-palette="grove"] body:not(.marketing):not(:has(.sidebar)) :is(#play, .board, .facts span) { background: #FFFFFF; color: #07140E; border-color: #2E4A3C; }
  html[data-palette="grove"] body:not(.marketing):not(:has(.sidebar)) #play { border-top-color: #084E30; }
  html[data-palette="grove"] body:not(.marketing):not(:has(.sidebar)) .question { border-color: #2E4A3C; }
  html[data-palette="grove"] body:not(.marketing):not(:has(.sidebar)) .question input { accent-color: #084E30; }
  html[data-palette="grove"] body:not(.marketing):not(:has(.sidebar)) :is(a, button, input, select, summary):focus-visible { outline-color: var(--sb-focus); }
  html[data-palette="grove"] body:not(.marketing):not(:has(.sidebar)) > header { --sb-focus: #C6E2FF; background: #07110C; color: #FFFFFF; border-bottom-color: #B6F0D0; }
  html[data-palette="grove"] body:not(.marketing):not(:has(.sidebar)) > header :is(a, span) { color: #FFFFFF; }
}

:root[data-palette="indigo"] {
  color-scheme: light;
  --sb-canvas: #F5F4F8;
  --sb-surface: #FFFFFF;
  --sb-raised: #ECEAF4;
  --sb-text: #1A1630;
  --sb-secondary: #45405F;
  --sb-border: #D9D6E6;
  --sb-accent: #4A2C96;
  --sb-accent-hover: #3A2178;
  --sb-accent-soft: #EEE8F8;
  --sb-on-accent: #FFFFFF;
  --sb-copper: #4A2C96;
  --sb-control-border: #5C5678;
  --sb-focus: #0E5E58;
  --sb-success: #0E6844;
  --sb-success-surface: #E3F5EC;
  --sb-warning: #7A4B00;
  --sb-warning-surface: #FFF1D0;
  --sb-danger: #9E2B2A;
  --sb-danger-surface: #FDE7E5;
  --sb-info: #1A4E86;
  --sb-info-surface: #E6F0FA;
  --sb-assist: #4A2C96;
  --sb-assist-surface: #EEE8F8;
  --sb-insight: #8C1646;
  --sb-insight-surface: #FCE9F2;
  --sb-technical: #0B6288;
  --sb-technical-surface: #E4F4FA;
}

@media (prefers-color-scheme: dark) {
  :root[data-palette="indigo"]:not([data-appearance="light"]) {
  color-scheme: dark;
  --sb-canvas: #141226;
  --sb-surface: #1C1833;
  --sb-raised: #262044;
  --sb-text: #F6F4FC;
  --sb-secondary: #D2CDE4;
  --sb-border: #3A3458;
  --sb-accent: #D4C6FF;
  --sb-accent-hover: #E6DEFF;
  --sb-accent-soft: #2A2444;
  --sb-on-accent: #1A1338;
  --sb-copper: #D4C6FF;
  --sb-control-border: #A99BC8;
  --sb-focus: #8EE8E0;
  --sb-success: #8FE3B4;
  --sb-success-surface: #143528;
  --sb-warning: #F6C56A;
  --sb-warning-surface: #3E2E12;
  --sb-danger: #FFB4AE;
  --sb-danger-surface: #4A2424;
  --sb-info: #A9D0FF;
  --sb-info-surface: #1A2C48;
  --sb-assist: #D4C6FF;
  --sb-assist-surface: #2A2444;
  --sb-insight: #FFB0D4;
  --sb-insight-surface: #3A2230;
  --sb-technical: #9BE7F8;
  --sb-technical-surface: #12343C;
}
}

:root[data-palette="indigo"][data-appearance="dark"] {
  color-scheme: dark;
  --sb-canvas: #141226;
  --sb-surface: #1C1833;
  --sb-raised: #262044;
  --sb-text: #F6F4FC;
  --sb-secondary: #D2CDE4;
  --sb-border: #3A3458;
  --sb-accent: #D4C6FF;
  --sb-accent-hover: #E6DEFF;
  --sb-accent-soft: #2A2444;
  --sb-on-accent: #1A1338;
  --sb-copper: #D4C6FF;
  --sb-control-border: #A99BC8;
  --sb-focus: #8EE8E0;
  --sb-success: #8FE3B4;
  --sb-success-surface: #143528;
  --sb-warning: #F6C56A;
  --sb-warning-surface: #3E2E12;
  --sb-danger: #FFB4AE;
  --sb-danger-surface: #4A2424;
  --sb-info: #A9D0FF;
  --sb-info-surface: #1A2C48;
  --sb-assist: #D4C6FF;
  --sb-assist-surface: #2A2444;
  --sb-insight: #FFB0D4;
  --sb-insight-surface: #3A2230;
  --sb-technical: #9BE7F8;
  --sb-technical-surface: #12343C;
}

:root[data-palette="indigo"][data-appearance="light"] {
  color-scheme: light;
  --sb-canvas: #F5F4F8;
  --sb-surface: #FFFFFF;
  --sb-raised: #ECEAF4;
  --sb-text: #1A1630;
  --sb-secondary: #45405F;
  --sb-border: #D9D6E6;
  --sb-accent: #4A2C96;
  --sb-accent-hover: #3A2178;
  --sb-accent-soft: #EEE8F8;
  --sb-on-accent: #FFFFFF;
  --sb-copper: #4A2C96;
  --sb-control-border: #5C5678;
  --sb-focus: #0E5E58;
  --sb-success: #0E6844;
  --sb-success-surface: #E3F5EC;
  --sb-warning: #7A4B00;
  --sb-warning-surface: #FFF1D0;
  --sb-danger: #9E2B2A;
  --sb-danger-surface: #FDE7E5;
  --sb-info: #1A4E86;
  --sb-info-surface: #E6F0FA;
  --sb-assist: #4A2C96;
  --sb-assist-surface: #EEE8F8;
  --sb-insight: #8C1646;
  --sb-insight-surface: #FCE9F2;
  --sb-technical: #0B6288;
  --sb-technical-surface: #E4F4FA;
}

@media (prefers-contrast: more) {
  :root[data-palette="indigo"] {
  color-scheme: light;
  --sb-canvas: #FFFFFF;
  --sb-surface: #FFFFFF;
  --sb-raised: #E9E6F2;
  --sb-text: #100C22;
  --sb-secondary: #322C4C;
  --sb-border: #3E3858;
  --sb-accent: #3A2178;
  --sb-accent-hover: #2C1860;
  --sb-accent-soft: #EDE6F8;
  --sb-on-accent: #FFFFFF;
  --sb-copper: #3A2178;
  --sb-control-border: #3E3858;
  --sb-focus: #0A4A44;
  --sb-success: #084E30;
  --sb-success-surface: #D9F3E4;
  --sb-warning: #5E3A00;
  --sb-warning-surface: #FFE8B8;
  --sb-danger: #8A1E1E;
  --sb-danger-surface: #FCDDD9;
  --sb-info: #143C68;
  --sb-info-surface: #DCEAF8;
  --sb-assist: #3A2178;
  --sb-assist-surface: #EDE6F8;
  --sb-insight: #720F38;
  --sb-insight-surface: #FBE4EE;
  --sb-technical: #084C6A;
  --sb-technical-surface: #D9F0F8;
}
  :root[data-palette="indigo"][data-appearance="light"] {
  color-scheme: light;
  --sb-canvas: #FFFFFF;
  --sb-surface: #FFFFFF;
  --sb-raised: #E9E6F2;
  --sb-text: #100C22;
  --sb-secondary: #322C4C;
  --sb-border: #3E3858;
  --sb-accent: #3A2178;
  --sb-accent-hover: #2C1860;
  --sb-accent-soft: #EDE6F8;
  --sb-on-accent: #FFFFFF;
  --sb-copper: #3A2178;
  --sb-control-border: #3E3858;
  --sb-focus: #0A4A44;
  --sb-success: #084E30;
  --sb-success-surface: #D9F3E4;
  --sb-warning: #5E3A00;
  --sb-warning-surface: #FFE8B8;
  --sb-danger: #8A1E1E;
  --sb-danger-surface: #FCDDD9;
  --sb-info: #143C68;
  --sb-info-surface: #DCEAF8;
  --sb-assist: #3A2178;
  --sb-assist-surface: #EDE6F8;
  --sb-insight: #720F38;
  --sb-insight-surface: #FBE4EE;
  --sb-technical: #084C6A;
  --sb-technical-surface: #D9F0F8;
}
  @media (prefers-color-scheme: dark) {
    :root[data-palette="indigo"]:not([data-appearance="light"]) {
  color-scheme: dark;
  --sb-canvas: #0C0A18;
  --sb-surface: #141226;
  --sb-raised: #1E1838;
  --sb-text: #FFFFFF;
  --sb-secondary: #E6E2F4;
  --sb-border: #B7A9D4;
  --sb-accent: #E6DEFF;
  --sb-accent-hover: #F3EFFF;
  --sb-accent-soft: #221C3C;
  --sb-on-accent: #120E28;
  --sb-copper: #E6DEFF;
  --sb-control-border: #C8BEE0;
  --sb-focus: #C8FFF6;
  --sb-success: #B6F0D0;
  --sb-success-surface: #0E2C20;
  --sb-warning: #FFE09A;
  --sb-warning-surface: #33260C;
  --sb-danger: #FFD0CA;
  --sb-danger-surface: #3E1C1C;
  --sb-info: #C6E2FF;
  --sb-info-surface: #101E34;
  --sb-assist: #E6DEFF;
  --sb-assist-surface: #221C3C;
  --sb-insight: #FFC6E0;
  --sb-insight-surface: #321826;
  --sb-technical: #C4F4FF;
  --sb-technical-surface: #0E2C34;
}
  }
  :root[data-palette="indigo"][data-appearance="dark"] {
  color-scheme: dark;
  --sb-canvas: #0C0A18;
  --sb-surface: #141226;
  --sb-raised: #1E1838;
  --sb-text: #FFFFFF;
  --sb-secondary: #E6E2F4;
  --sb-border: #B7A9D4;
  --sb-accent: #E6DEFF;
  --sb-accent-hover: #F3EFFF;
  --sb-accent-soft: #221C3C;
  --sb-on-accent: #120E28;
  --sb-copper: #E6DEFF;
  --sb-control-border: #C8BEE0;
  --sb-focus: #C8FFF6;
  --sb-success: #B6F0D0;
  --sb-success-surface: #0E2C20;
  --sb-warning: #FFE09A;
  --sb-warning-surface: #33260C;
  --sb-danger: #FFD0CA;
  --sb-danger-surface: #3E1C1C;
  --sb-info: #C6E2FF;
  --sb-info-surface: #101E34;
  --sb-assist: #E6DEFF;
  --sb-assist-surface: #221C3C;
  --sb-insight: #FFC6E0;
  --sb-insight-surface: #321826;
  --sb-technical: #C4F4FF;
  --sb-technical-surface: #0E2C34;
}
}

:root[data-palette="indigo"][data-theme="light"]:has(.sidebar) {
  color-scheme: light;
  --bg: #F5F4F8;
  --sidebar: #FFFFFF;
  --panel: #FFFFFF;
  --panel-2: #ECEAF4;
  --line: #5C5678;
  --ink: #1A1630;
  --muted: #45405F;
  --faint: #45405F;
  --sig: #4A2C96;
  --amp: #3A2178;
  --accent: #4A2C96;
  --ok: #0E6844;
  --bad: #9E2B2A;
  --grid: #5C5678;
  --metal: #45405F;
  --viz-bg: #ECEAF4;
  --action: #4A2C96;
  --action-ink: #FFFFFF;
}

:root[data-palette="indigo"][data-theme="dark"]:has(.sidebar) {
  color-scheme: dark;
  --bg: #141226;
  --sidebar: #141226;
  --panel: #1C1833;
  --panel-2: #262044;
  --line: #A99BC8;
  --ink: #F6F4FC;
  --muted: #D2CDE4;
  --faint: #D2CDE4;
  --sig: #D4C6FF;
  --amp: #E6DEFF;
  --accent: #D4C6FF;
  --ok: #8FE3B4;
  --bad: #FFB4AE;
  --grid: #A99BC8;
  --metal: #D2CDE4;
  --viz-bg: #262044;
  --action: #D4C6FF;
  --action-ink: #1A1338;
}

@media (prefers-contrast: more) {
  :root[data-palette="indigo"][data-theme="light"]:has(.sidebar) {
  color-scheme: light;
  --bg: #FFFFFF;
  --sidebar: #FFFFFF;
  --panel: #FFFFFF;
  --panel-2: #E9E6F2;
  --line: #3E3858;
  --ink: #100C22;
  --muted: #322C4C;
  --faint: #322C4C;
  --sig: #3A2178;
  --amp: #2C1860;
  --accent: #3A2178;
  --ok: #084E30;
  --bad: #8A1E1E;
  --grid: #3E3858;
  --metal: #322C4C;
  --viz-bg: #E9E6F2;
  --action: #3A2178;
  --action-ink: #FFFFFF;
}
  :root[data-palette="indigo"][data-theme="dark"]:has(.sidebar) {
  color-scheme: dark;
  --bg: #0C0A18;
  --sidebar: #0C0A18;
  --panel: #141226;
  --panel-2: #1E1838;
  --line: #C8BEE0;
  --ink: #FFFFFF;
  --muted: #E6E2F4;
  --faint: #E6E2F4;
  --sig: #E6DEFF;
  --amp: #F3EFFF;
  --accent: #E6DEFF;
  --ok: #B6F0D0;
  --bad: #FFD0CA;
  --grid: #C8BEE0;
  --metal: #E6E2F4;
  --viz-bg: #1E1838;
  --action: #E6DEFF;
  --action-ink: #120E28;
}
}

html[data-palette="indigo"] body:not(.marketing):not(:has(.sidebar)) {
  color-scheme: light;
  --sb-canvas: #F5F4F8;
  --sb-surface: #FFFFFF;
  --sb-raised: #ECEAF4;
  --sb-text: #1A1630;
  --sb-secondary: #45405F;
  --sb-border: #D9D6E6;
  --sb-accent: #4A2C96;
  --sb-accent-hover: #3A2178;
  --sb-accent-soft: #EEE8F8;
  --sb-on-accent: #FFFFFF;
  --sb-copper: #4A2C96;
  --sb-control-border: #5C5678;
  --sb-focus: #0E5E58;
  --sb-success: #0E6844;
  --sb-success-surface: #E3F5EC;
  --sb-warning: #7A4B00;
  --sb-warning-surface: #FFF1D0;
  --sb-danger: #9E2B2A;
  --sb-danger-surface: #FDE7E5;
  --sb-info: #1A4E86;
  --sb-info-surface: #E6F0FA;
  --sb-assist: #4A2C96;
  --sb-assist-surface: #EEE8F8;
  --sb-insight: #8C1646;
  --sb-insight-surface: #FCE9F2;
  --sb-technical: #0B6288;
  --sb-technical-surface: #E4F4FA;
  background: #F5F4F8;
  color: #1A1630;
}
html[data-palette="indigo"] body:not(.marketing):not(:has(.sidebar)) :is(h1, .rules summary) { color: #1A1630; }
html[data-palette="indigo"] body:not(.marketing):not(:has(.sidebar)) :is(.eyebrow, .timer, #status), html[data-palette="indigo"] body:not(.marketing):not(:has(.sidebar)) a { color: #4A2C96; }
html[data-palette="indigo"] body:not(.marketing):not(:has(.sidebar)) :is(.note, .rules, footer, .leader small) { color: #45405F; }
html[data-palette="indigo"] body:not(.marketing):not(:has(.sidebar)) :is(#play, .board, .facts span) { background: #FFFFFF; color: #1A1630; border-color: #5C5678; }
html[data-palette="indigo"] body:not(.marketing):not(:has(.sidebar)) #play { border-top-color: #4A2C96; }
html[data-palette="indigo"] body:not(.marketing):not(:has(.sidebar)) .question { border-color: #5C5678; }
html[data-palette="indigo"] body:not(.marketing):not(:has(.sidebar)) .question input { accent-color: #4A2C96; }
html[data-palette="indigo"] body:not(.marketing):not(:has(.sidebar)) :is(a, button, input, select, summary):focus-visible { outline-color: var(--sb-focus); }
html[data-palette="indigo"] body:not(.marketing):not(:has(.sidebar)) > header { --sb-focus: #8EE8E0; background: #141226; color: #F6F4FC; border-bottom-color: #D4C6FF; }
html[data-palette="indigo"] body:not(.marketing):not(:has(.sidebar)) > header :is(a, span) { color: #F6F4FC; }

@media (prefers-contrast: more) {
html[data-palette="indigo"] body:not(.marketing):not(:has(.sidebar)) {
    color-scheme: light;
    --sb-canvas: #FFFFFF;
    --sb-surface: #FFFFFF;
    --sb-raised: #E9E6F2;
    --sb-text: #100C22;
    --sb-secondary: #322C4C;
    --sb-border: #3E3858;
    --sb-accent: #3A2178;
    --sb-accent-hover: #2C1860;
    --sb-accent-soft: #EDE6F8;
    --sb-on-accent: #FFFFFF;
    --sb-copper: #3A2178;
    --sb-control-border: #3E3858;
    --sb-focus: #0A4A44;
    --sb-success: #084E30;
    --sb-success-surface: #D9F3E4;
    --sb-warning: #5E3A00;
    --sb-warning-surface: #FFE8B8;
    --sb-danger: #8A1E1E;
    --sb-danger-surface: #FCDDD9;
    --sb-info: #143C68;
    --sb-info-surface: #DCEAF8;
    --sb-assist: #3A2178;
    --sb-assist-surface: #EDE6F8;
    --sb-insight: #720F38;
    --sb-insight-surface: #FBE4EE;
    --sb-technical: #084C6A;
    --sb-technical-surface: #D9F0F8;
    background: #FFFFFF;
    color: #100C22;
  }
  html[data-palette="indigo"] body:not(.marketing):not(:has(.sidebar)) :is(h1, .rules summary) { color: #100C22; }
  html[data-palette="indigo"] body:not(.marketing):not(:has(.sidebar)) :is(.eyebrow, .timer, #status), html[data-palette="indigo"] body:not(.marketing):not(:has(.sidebar)) a { color: #3A2178; }
  html[data-palette="indigo"] body:not(.marketing):not(:has(.sidebar)) :is(.note, .rules, footer, .leader small) { color: #322C4C; }
  html[data-palette="indigo"] body:not(.marketing):not(:has(.sidebar)) :is(#play, .board, .facts span) { background: #FFFFFF; color: #100C22; border-color: #3E3858; }
  html[data-palette="indigo"] body:not(.marketing):not(:has(.sidebar)) #play { border-top-color: #3A2178; }
  html[data-palette="indigo"] body:not(.marketing):not(:has(.sidebar)) .question { border-color: #3E3858; }
  html[data-palette="indigo"] body:not(.marketing):not(:has(.sidebar)) .question input { accent-color: #3A2178; }
  html[data-palette="indigo"] body:not(.marketing):not(:has(.sidebar)) :is(a, button, input, select, summary):focus-visible { outline-color: var(--sb-focus); }
  html[data-palette="indigo"] body:not(.marketing):not(:has(.sidebar)) > header { --sb-focus: #C8FFF6; background: #0C0A18; color: #FFFFFF; border-bottom-color: #E6DEFF; }
  html[data-palette="indigo"] body:not(.marketing):not(:has(.sidebar)) > header :is(a, span) { color: #FFFFFF; }
}
