:root {
  --popover-shadow: 0 6px 22px light-dark(rgb(24 46 40 / 9%), rgb(0 0 0 / 25%));
  --modal-scrim: light-dark(rgb(17 35 28 / 25%), rgb(8 8 10 / 64%));
}

/* Shared by the learning workspace and account pages. */
:root[data-design='focus'] {
  --paper: #171719;
  --shell-surface: #1c1c1f;
  --surface: #232326;
  --surface-muted: #2c2c30;
  --journey-raised: #28282c;
  --ink: #eae9e7;
  --muted: #b2afac;
  --line: #3c3c41;
  --accent: #e2bd8d;
  --accent-soft: #39342e;
  --journey-active: #333235;
  --journey-primary: #e8c9a0;
  --journey-on-primary: #29241e;
  --journey-control: #77757a;
  --craft-primary-hover: #f3d9b8;
  --craft-edge: #a38b6d;
  --craft-control-edge: var(--line);
  --craft-selected-line: #8c785f;
  --reading-surface: #2d2d31;
  --reading-line: #505055;
  --reference: var(--accent);
  --reference-soft: var(--surface-muted);
  --reference-line: var(--line);
  --attendance: var(--accent);
  --attendance-soft: var(--surface);
  --attendance-line: var(--line);
  --error: #f2aba1; --warning: #edcc91;
  --soft: var(--accent-soft); --muted-text: var(--muted); --vermilion: var(--accent);
  color-scheme: dark;
  --cover: #343230;
  --cover-line: #57534f;
  --cover-text: #f0eeeb;
  --cover-muted: #cdc6bd;
  --cover-action: var(--journey-primary);
  --cover-action-ink: var(--journey-on-primary);
  --cover-action-hover: var(--craft-primary-hover);
}
:root[data-design='focus'][data-color-mode='light'] {
  --paper: #f7f7f1;
  --shell-surface: #fdfdf7;
  --surface: #fffffa;
  --surface-muted: #edf1e9;
  --journey-raised: #fffffb;
  --ink: #182e28;
  --muted: #52675d;
  --line: #d7dfd4;
  --accent: #086961;
  --accent-soft: #dceee3;
  --journey-active: #dfece2;
  --journey-primary: #146559;
  --journey-on-primary: #fffef8;
  --journey-control: #aabbb0;
  --craft-primary-hover: #0c5349;
  --craft-edge: #124a40;
  --craft-control-edge: var(--line);
  --craft-selected-line: #9ab9a9;
  --reading-surface: #edf4ec;
  --reading-line: #bdd3c4;
  --reference-soft: #edf3eb;
  --reference-line: #c5d6c8;
  --error: #a63f35; --warning: #80591f;
  color-scheme: light;
  --cover: #174d45;
  --cover-line: #477368;
  --cover-text: #fff9e8;
  --cover-muted: #c4dace;
  --cover-action: #d9efd0;
  --cover-action-ink: #17392e;
  --cover-action-hover: #e7f7e0;
}

/* Legacy listening controls declare their own light hover tokens. Resolve the
   same surface roles locally so every button state follows the active theme. */
:root[data-design='focus'] #view-listening {
  --accent: var(--reference);
  --accent-soft: var(--reference-soft);
  --journey-primary: var(--reference);
  --color-neutral-hover: var(--journey-active);
  --color-neutral-active: var(--surface-muted);
  --color-secondary-hover: var(--surface-muted);
  --color-secondary-active: var(--accent-soft);
}
