/* ==========================================================================
   "High Contrast" look (2026-11-03): the app's only look. White page, black
   text, 2-3px black outlines, square 4px corners, one bright yellow for the
   main thing to press and hard offset shadows on the hero cards. Knew It is
   always a solid fill with ✓ and Needs Work an outline with ✗, so the two
   never differ by colour alone (Dom is red/green colour blind).

   Loaded LAST from index.html, on top of style.css and refresh.css: it only
   restyles. Dark mode (Settings → Dark mode, js/modules/look.js) sets
   <html data-theme="dark">; every dark colour lives in the one --hc-* block
   below, so another dark palette is a swap of that block only.
   Save point before this look: git tag save-point-before-high-contrast-2026-11-03.
   ========================================================================== */

/* ---------- Palette (light) ---------- */
:root {
  --hc-bg: #ffffff;
  --hc-surface: #ffffff;
  --hc-surface-2: #f2f2f2;
  --hc-ink: #000000;
  --hc-muted: #3a3a3a;
  --hc-line: #000000;
  --hc-shadow: #000000;
  --hc-accent: #ffd400;     /* the one bright colour: main thing to press */
  --hc-on-accent: #000000;  /* text on yellow */
  --hc-fill: #000000;       /* solid buttons, active tabs and chips */
  --hc-on-fill: #ffd400;
  --hc-accent-soft: #fff4b8;
  --hc-hero-bg: #ffd400;    /* the yellow Quick Review block */
  --hc-hero-ink: #000000;
  --hc-hero-line: #000000;
  --hc-hero-stat: #ffffff;
  --hc-track: #ededed;
  --hc-prog: #000000;
  --hc-knew-bg: #000000;
  --hc-knew-ink: #ffd400;
  --hc-needs-bg: #ffffff;
  --hc-needs-ink: #000000;
  --hc-needs-line: #000000;
  --hc-stripe: #6a6a6a;
  --hc-good: #116b33;
  --hc-bad: #b42318;
  --hc-warn: #8a5a00;
  --hc-scheme: light;
}

/* ---------- Palette (dark): "Inverted", Dom 2026-11-07 ----------
   The light look with light and dark swapped: black page, white text,
   white outlines and white hard shadows. Yellow stays yellow (the Quick
   Review block keeps its black text). Solid buttons and Knew It become
   white with black text; Needs Work stays an outline with ✗. Only page
   colours change, so photos, stroke pictures and tone colours are not
   inverted. Previous dark palette ("Dim Warm") is in save point
   save-point-before-inverted-dark-2026-11-07. */
:root[data-theme="dark"] {
  --hc-bg: #000000;
  --hc-surface: #000000;
  --hc-surface-2: #1a1a1a;
  --hc-ink: #ffffff;
  --hc-muted: #c5c5c5;
  --hc-line: #ffffff;
  --hc-shadow: #ffffff;
  --hc-accent: #ffd400;
  --hc-on-accent: #000000;
  --hc-fill: #ffffff;
  --hc-on-fill: #000000;
  --hc-accent-soft: #3d3300;
  --hc-hero-bg: #ffd400;
  --hc-hero-ink: #000000;
  --hc-hero-line: #000000;
  --hc-hero-stat: #ffffff;
  --hc-track: #2a2a2a;
  --hc-prog: #ffffff;
  --hc-knew-bg: #ffffff;
  --hc-knew-ink: #000000;
  --hc-needs-bg: #000000;
  --hc-needs-ink: #ffffff;
  --hc-needs-line: #ffffff;
  --hc-stripe: #959595;
  --hc-good: #8fe0a8;
  --hc-bad: #ffa08f;
  --hc-warn: #ffd400;
  --hc-scheme: dark;
}

/* ---------- The app's own variables, mapped onto the palette ---------- */
:root,
:root[data-theme="dark"] {
  --bg: var(--hc-bg);
  --bg-glow-1: transparent;
  --bg-glow-2: transparent;
  --surface: var(--hc-surface);
  --surface-2: var(--hc-surface-2);
  --text: var(--hc-ink);
  --text-muted: var(--hc-muted);
  --primary: var(--hc-fill);
  --primary-dark: var(--hc-fill);
  --primary-2: var(--hc-fill);
  --accent: var(--hc-fill);
  --accent-soft: var(--hc-accent-soft);
  --on-accent: var(--hc-on-fill);
  --success: var(--hc-good);
  --success-soft: var(--hc-surface-2);
  --warn: var(--hc-warn);
  --good: var(--hc-good);
  --good-fill: var(--hc-knew-bg);
  --good-on: var(--hc-knew-ink);
  --bad: var(--hc-bad);
  --bad-soft: var(--hc-surface-2);
  --needs: var(--hc-needs-ink);
  --border: var(--hc-line);
  --ring: var(--hc-ink);
  --grad-primary: linear-gradient(var(--hc-fill), var(--hc-fill));
  --grad-accent: linear-gradient(var(--hc-fill), var(--hc-fill));
  --grad-brand: linear-gradient(var(--hc-ink), var(--hc-ink));
  --shadow-sm: none;
  --shadow: none;
  --shadow-lg: 6px 6px 0 var(--hc-shadow);
  --glow-primary: none;
  --glow-accent: none;
  --radius: 4px;
  --radius-md: 4px;
  --radius-sm: 4px;
  --new-word: var(--hc-ink);
  --font-ja: 'Noto Sans JP', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic UI', 'Meiryo', system-ui, sans-serif;
  --font: 'Twemoji Country Flags', 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, var(--font-ja);
  color-scheme: var(--hc-scheme);
}
:root[data-theme="dark"] { color-scheme: dark; }

body {
  background: var(--hc-bg);
  background-image: none;
  color: var(--hc-ink);
}

::selection { background: var(--hc-accent); color: var(--hc-on-accent); }
:focus-visible { outline: 3px solid var(--hc-ink); outline-offset: 2px; box-shadow: none; }

/* Japanese text: bold, from Noto Sans JP. */
:lang(ja), .drill-primary, .drill-secondary, .furigana, ruby, rt { font-family: var(--font-ja); }
.drill-primary { font-weight: 900; }

/* ---------- Square corners and solid outlines ----------
   The other stylesheets now use 4px corners and 2px outlines themselves
   (changed with this look); circles and pills stay round. */
input[type="text"], input[type="search"], input[type="email"], input[type="number"], select, textarea {
  border: 2px solid var(--hc-line);
  background: var(--hc-surface);
  color: var(--hc-ink);
}

.panel {
  border: 2px solid var(--hc-line);
  box-shadow: none;
  background: var(--hc-surface);
}

dialog, .card-edit-dialog, .review-choice-dialog, .add-words-dialog {
  border: 3px solid var(--hc-line);
  border-radius: 4px;
  background: var(--hc-surface);
  color: var(--hc-ink);
  box-shadow: 8px 8px 0 var(--hc-shadow);
}
dialog::backdrop { background: rgba(0, 0, 0, 0.55); }

/* ---------- Header ---------- */
.app-header h1 {
  color: var(--hc-ink);
  background: none;
  -webkit-text-fill-color: currentColor;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.tagline { color: var(--hc-muted); }
.lang-select-btn, .mode-swap-btn, .account-select-btn, #user-settings-btn {
  border: 2px solid var(--hc-line);
  border-radius: 4px;
  background: var(--hc-surface);
  color: var(--hc-ink);
  box-shadow: none;
}
.account-select-btn { color: var(--hc-ink); }
.lang-dropdown, .account-dropdown { border: 2px solid var(--hc-line); box-shadow: 6px 6px 0 var(--hc-shadow); background: var(--hc-surface); }
.lang-option.active { background: var(--hc-accent-soft); }

/* ---------- Tabs: active = filled pill, bold label, filled icon ---------- */
.study-view-btn {
  min-height: 44px;
  border: 2px solid transparent;
  background: transparent;
  color: var(--hc-ink);
  font-weight: 600;
}
.study-view-btn:hover:not(.active) { border-color: var(--hc-line); color: var(--hc-ink); }
.study-view-btn.active {
  background: var(--hc-fill);
  border-color: var(--hc-fill);
  color: var(--hc-on-fill);
  font-weight: 800;
}
.study-view-btn.active svg { fill: currentColor; }
.browse-mode-toggle, .input-mode-toggle { background: var(--hc-surface); border: 2px solid var(--hc-line); }
.mode-btn.active, .mode-icon-btn.active { background: var(--hc-fill); color: var(--hc-on-fill); box-shadow: none; }

/* ---------- Buttons ---------- */
.btn { min-height: 44px; font-weight: 700; border: 2px solid var(--hc-line); }
.btn-primary, .btn-start, .backup-btn {
  background: var(--hc-fill);
  border: 2px solid var(--hc-fill);
  color: var(--hc-on-fill);
  box-shadow: none;
}
.btn-primary:hover:not([disabled]), .btn-start:hover:not([disabled]) { background: var(--hc-fill); filter: none; }
.btn-secondary {
  background: var(--hc-surface);
  border: 2px solid var(--hc-line);
  color: var(--hc-ink);
}
.btn-secondary:hover:not([disabled]) { background: var(--hc-surface-2); }
.btn-icon { border-radius: 4px; }
.btn[disabled] { opacity: 0.45; }
.card-tool-btn {
  min-height: 44px;
  border: 2px solid var(--hc-line);
  background: var(--hc-surface);
  color: var(--hc-ink);
  box-shadow: none;
}
@media (hover: hover) { .card-tool-btn:hover { border-color: var(--hc-line); color: var(--hc-ink); background: var(--hc-surface-2); } }
.card-tool-btn.active { background: var(--hc-fill); border-color: var(--hc-fill); color: var(--hc-on-fill); box-shadow: none; }
.mic-btn { background: var(--hc-fill); color: var(--hc-on-fill); box-shadow: none; }
.mic-btn.listening { background: var(--hc-accent); color: var(--hc-on-accent); }
.next-btn, .replay-btn, .example-play { background: var(--hc-surface); color: var(--hc-ink); border: 2px solid var(--hc-line); }
.example-play:hover, .replay-btn:hover, .next-btn:hover:not([disabled]) { background: var(--hc-surface-2); }

/* Everything that used white text on the old coloured fills. */
.filter-chip.active, .filter-badge, .script-chip.active, .kana-stage-mark.expert,
.track-list.select-mode .library-row.selected .select-box, .review-mode-card:has(input:checked)::after,
.account-signout-btn, .check-icon, .onb-check, .onb-primary {
  background: var(--hc-fill);
  border-color: var(--hc-fill);
  color: var(--hc-on-fill);
  box-shadow: none;
}
.filter-chip { border: 2px solid var(--hc-line); background: var(--hc-surface); color: var(--hc-ink); min-height: 36px; }
.filter-chip:hover { border-color: var(--hc-line); transform: none; }
.us-chip { border: 2px solid var(--hc-line); }
.us-chip.selected { background: var(--hc-fill); border-color: var(--hc-fill); color: var(--hc-on-fill); }
.review-mode-card { border: 2px solid var(--hc-line); }
.review-mode-card:has(input:checked) { border-color: var(--hc-line); box-shadow: 4px 4px 0 var(--hc-shadow); background: var(--hc-accent-soft); }
.onb-option.selected { border-color: var(--hc-line); box-shadow: inset 0 0 0 2px var(--hc-line); }
.add-method-btn { border: 2px solid var(--hc-line); background: var(--hc-surface); color: var(--hc-ink); }
.add-method-btn.active { background: var(--hc-fill); border-color: var(--hc-fill); color: var(--hc-on-fill); }

/* ---------- Review tab: the yellow Quick Review block ---------- */
.review-hero {
  background: var(--hc-hero-bg);
  color: var(--hc-hero-ink);
  border: 2px solid var(--hc-hero-line);
  box-shadow: 6px 6px 0 var(--hc-shadow);
  overflow: visible;
}
.review-hero::after { display: none; }
.review-hero-title { color: var(--hc-hero-ink); font-weight: 700; }
.review-hero-sub { color: var(--hc-hero-ink); opacity: 1; }
.review-hero-gear {
  width: 44px; height: 44px;
  background: transparent;
  border: 2px solid var(--hc-hero-ink);
  color: var(--hc-hero-ink);
}
.review-hero-gear:hover { background: rgba(0, 0, 0, 0.08); }
.review-stat {
  background: var(--hc-hero-stat);
  border: 2px solid var(--hc-hero-ink);
  color: var(--hc-hero-ink);
}
.review-stat span { opacity: 1; }
.review-hero-btn {
  min-height: 54px;
  background: var(--hc-hero-ink);
  color: var(--hc-hero-bg);
  border: 2px solid var(--hc-hero-ink);
  box-shadow: none;
  font-weight: 700;
}
.review-hero-btn-secondary, .add-words-small-btn {
  background: transparent;
  color: var(--hc-hero-ink);
  border: 2px solid var(--hc-hero-ink);
}
.add-words-small-btn.on { background: var(--hc-hero-ink); color: var(--hc-hero-bg); }
.review-out-of-words {
  background: rgba(255, 255, 255, 0.55);
  border: 2px solid var(--hc-hero-ink);
  color: var(--hc-hero-ink);
}
.manual-playlist-row > span { color: var(--hc-hero-ink); opacity: 1; }
.manual-playlist-row select { background: #fff; color: var(--hc-hero-ink); border: 2px solid var(--hc-hero-ink); }
.manual-playlist-row select:focus-visible { outline: 3px solid var(--hc-hero-ink); }

.review-row-main, .review-row-gear {
  border: 2px solid var(--hc-line);
  background: var(--hc-surface);
  box-shadow: none;
}
.review-row-main:hover, .review-row-gear:hover { border-color: var(--hc-line); background: var(--hc-surface-2); }
.review-row-icon {
  background: var(--hc-accent);
  border: 2px solid var(--hc-on-accent);
  color: var(--hc-on-accent);
}
.review-row-text small { color: var(--hc-muted); }

/* Section labels: small caps like "MORE WAYS TO REVIEW". */
.panel-title, .tools-heading, .sp-label, .us-section h3, .filter-group-label { color: var(--hc-ink); letter-spacing: 0.08em; }

/* ---------- Flashcard ---------- */
.drill-card {
  border: 3px solid var(--hc-line);
  background: var(--hc-surface);
  box-shadow: 8px 8px 0 var(--hc-shadow);
}
.drill-card.is-revealed { border-color: var(--hc-line); box-shadow: 8px 8px 0 var(--hc-shadow); }
.drill-card.is-correct { border-color: var(--hc-line); box-shadow: 8px 8px 0 var(--hc-shadow), inset 0 0 0 3px var(--hc-line); }
.drill-card.pressing { box-shadow: 4px 4px 0 var(--hc-shadow); }
.stack-layer { border: 2px solid var(--hc-line); background: var(--hc-surface); }
.drill-meaning { color: var(--hc-ink); }
.drill-card.is-correct .drill-meaning { color: var(--hc-ink); }
.drill-meta, .drill-instruction { color: var(--hc-ink); }
.listening-mystery { background: none; color: var(--hc-ink); -webkit-text-fill-color: currentColor; }
.card-speaker { opacity: 1; color: var(--hc-ink); }
.example-sentence { border: 2px solid var(--hc-line); background: var(--hc-surface); }

/* A word's first card: same card, with a yellow NEW tag. */
.card-stack .drill-card.is-new:not(.pressing) { border-color: var(--hc-line); box-shadow: 8px 8px 0 var(--hc-shadow); }
.new-word-mark { padding: 4px 6px; background: var(--hc-accent); color: var(--hc-on-accent); border: 2px solid var(--hc-on-accent); border-radius: 2px; }
.card-tools .card-tool-btn.card-help-btn { opacity: 1; min-height: 44px; }

/* Progress bar along the top of a review */
.progress-bar { background: var(--hc-track); border: 2px solid var(--hc-line); box-shadow: none; }
.progress-fill { background: var(--hc-prog); border-radius: 0; }
.progress-fill::after { display: none; }

/* Knew It = solid fill with ✓; Needs Work = outline with ✗ */
.learn-btn { min-height: 56px; border-radius: 4px; font-weight: 700; }
.learn-btn[data-srs-kind="knew"], .learn-btn[data-srs-kind="gotit"], .learn-btn.got-now[data-srs-kind="knew"],
#listening-knew-btn, .one-btn {
  background: var(--hc-knew-bg);
  border: 3px solid var(--hc-knew-bg);
  color: var(--hc-knew-ink);
}
.learn-btn[data-srs-kind="knew"]:hover, .learn-btn[data-srs-kind="gotit"]:hover, .learn-btn.got-now[data-srs-kind="knew"]:hover,
#listening-knew-btn:hover { background: var(--hc-knew-bg); filter: none; }
.learn-btn[data-srs-kind="needs"], #listening-review-btn {
  background: var(--hc-needs-bg);
  border: 3px solid var(--hc-needs-line);
  color: var(--hc-needs-ink);
}
.learn-btn[data-srs-kind="needs"]:hover, #listening-review-btn:hover { background: var(--hc-surface-2); }
.learn-btn[data-srs-kind="knew"]::before, .learn-btn[data-srs-kind="gotit"]::before, #listening-knew-btn::before { content: "✓ "; font-weight: 800; }
.learn-btn[data-srs-kind="needs"]::before, #listening-review-btn::before { content: "✗ "; font-weight: 800; }
/* The suggested grade after typing an answer keeps its ring; the other stays fully readable. */
.controls-row:has([data-type-default]) .learn-btn:not([data-type-default]) { opacity: 1; }
.keycap { border-color: currentColor; color: inherit; background: transparent; }
#listening-knew-btn .keycap, #listening-review-btn .keycap { border-color: currentColor; }
/* Holding Space for Needs Work: striped fill grows across the button. */
.learn-btn.holding::after {
  background: repeating-linear-gradient(-45deg, var(--hc-stripe) 0 4px, transparent 4px 9px);
  opacity: 0.7;
}
.one-btn .one-fill {
  background: repeating-linear-gradient(-45deg, var(--hc-stripe) 0 4px, var(--hc-needs-bg) 4px 9px);
}
.one-btn.holding { color: var(--hc-needs-ink); }
.one-btn .one-knew::before { content: "✓ "; }
.one-btn .one-needs::before { content: "✗ "; }

/* ---------- After a review: result pills and status bars ---------- */
.result-pill { border-radius: 4px; border: 2px solid var(--hc-line); background: var(--hc-surface); color: var(--hc-ink); }
.result-pill.result-knew { background: var(--hc-knew-bg); border-color: var(--hc-knew-bg); color: var(--hc-knew-ink); }
.result-pill.result-knew::before { content: "✓ "; }
.result-pill.result-needs { background: var(--hc-needs-bg); border-color: var(--hc-needs-line); color: var(--hc-needs-ink); }
.result-pill.result-needs::before { content: "✗ "; }
.result-pill.result-gotit, .result-pill.result-mastered { background: var(--hc-accent); border-color: var(--hc-on-accent); color: var(--hc-on-accent); }
:root[data-theme="dark"] .result-pill.result-needs { color: var(--hc-needs-ink); }
:root[data-theme="dark"] .result-pill.result-knew { color: var(--hc-knew-ink); }
.status-meter, :root[data-theme="dark"] .status-meter { background: var(--hc-track); border: 1.5px solid var(--hc-line); border-radius: 2px; height: 8px; }
.status-meter i { border-radius: 0; }
.status-meter.needsWork i { background: repeating-linear-gradient(-45deg, var(--hc-stripe) 0 3px, transparent 3px 6px); }
.status-meter.neutral i { background: var(--hc-prog); }
.status-meter.mastered i { background: var(--hc-accent); }
.summary-heading { color: var(--hc-ink); }
.summary-needs .track-row, .summary-knew .track-row { border-color: var(--hc-line); }
.pg-mastered b, .pg-needs b,
:root[data-theme="dark"] .pg-mastered b, :root[data-theme="dark"] .pg-needs b { color: var(--hc-ink); }
.pg-tile { border: 2px solid var(--hc-line); }
.stat-needs .stat-value, .stat-needs .stat-label { color: var(--hc-ink); }

.complete-screen { border: 3px solid var(--hc-line); box-shadow: 6px 6px 0 var(--hc-shadow); background: var(--hc-surface); }
.stat { background: var(--hc-surface); border: 2px solid var(--hc-line); }
.stat-value { background: none; color: var(--hc-ink); -webkit-text-fill-color: currentColor; }

/* ---------- Lists, Library, Learn ---------- */
.category-card { border: 2px solid var(--hc-line); background: var(--hc-surface); box-shadow: none; }
.category-card.custom { background: var(--hc-surface); }
.category-icon { background: var(--hc-accent); color: var(--hc-on-accent); border: 2px solid var(--hc-on-accent); }
.track-row { border-color: var(--hc-line); }
.track-play { background: var(--hc-surface); color: var(--hc-ink); border: 2px solid var(--hc-line); }
.word-action-btn { border: 2px solid var(--hc-line); background: var(--hc-surface); color: var(--hc-ink); }
.library-filter-btn { border: 2px solid var(--hc-line); background: var(--hc-surface); color: var(--hc-ink); }
.library-filter-btn.active { background: var(--hc-fill); border-color: var(--hc-fill); color: var(--hc-on-fill); }
.library-filters:not([hidden]) { background: var(--hc-surface); border: 2px solid var(--hc-line); }
.library-search { border: 2px solid var(--hc-line); background: var(--hc-surface); }
.library-search:focus-within { box-shadow: none; outline: 3px solid var(--hc-ink); outline-offset: 2px; }
.library-search input { border: none; background: transparent; outline: none; }
.add-words-box { border: 2px solid var(--hc-line); box-shadow: 6px 6px 0 var(--hc-shadow); }
.chapter-group, .level-group { border-color: var(--hc-line); }
.tool-tile { border: 2px solid var(--hc-line); border-radius: 4px; background: var(--hc-surface); color: var(--hc-ink); box-shadow: none; }
.tool-tile:hover { background: var(--hc-surface-2); border-color: var(--hc-line); }
.mix-tag { border-radius: 2px; background: var(--hc-accent); color: var(--hc-on-accent); }

/* ---------- Settings ---------- */
.sp-card { border: 2px solid var(--hc-line); }
.sp-link:hover { background: var(--hc-surface-2); }
.us-row select { border: 2px solid var(--hc-line); background: var(--hc-surface); min-height: 40px; }
/* Switches: outlined track, filled when On; the words On / Off stay beside it. */
.us-switch, .review-switch i {
  width: 46px; height: 28px;
  border: 2px solid var(--hc-line);
  border-radius: 4px;
  background: var(--hc-surface);
}
.us-switch::after, .review-switch i::after {
  top: 3px; left: 3px; width: 18px; height: 18px;
  border-radius: 2px;
  background: var(--hc-ink);
  box-shadow: none;
}
.us-row input:checked + .us-switch, .review-switch input:checked + i { background: var(--hc-fill); border-color: var(--hc-fill); }
.us-row input:checked + .us-switch::after, .review-switch input:checked + i::after { background: var(--hc-on-fill); transform: translateX(18px); }
.us-row input:checked + .us-switch::before, .review-switch input:checked + i::before { color: var(--hc-ink); }
.us-switch::before, .review-switch i::before { color: var(--hc-muted); }
/* Dark mode row: a moon, outlined when Off and filled when On. */
.us-row:has(input[data-setting="darkMode"]) .us-label::before {
  content: "";
  display: inline-block;
  width: 18px; height: 18px;
  margin-right: 8px;
  vertical-align: -3px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linejoin='round'%3E%3Cpath d='M21 12.8A9 9 0 1 1 11.2 3a7 7 0 0 0 9.8 9.8z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linejoin='round'%3E%3Cpath d='M21 12.8A9 9 0 1 1 11.2 3a7 7 0 0 0 9.8 9.8z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.us-row:has(input[data-setting="darkMode"]:checked) .us-label::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black' stroke='black' stroke-width='2.2' stroke-linejoin='round'%3E%3Cpath d='M21 12.8A9 9 0 1 1 11.2 3a7 7 0 0 0 9.8 9.8z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black' stroke='black' stroke-width='2.2' stroke-linejoin='round'%3E%3Cpath d='M21 12.8A9 9 0 1 1 11.2 3a7 7 0 0 0 9.8 9.8z'/%3E%3C/svg%3E");
}
#mute-pill { border: 2px solid var(--hc-line); border-radius: 4px; box-shadow: none; }

/* ---------- Toasts and pop-ups ---------- */
.flash-toast, .undo-toast {
  background: var(--hc-ink);
  color: var(--hc-bg);
  border: 2px solid var(--hc-ink);
}
.undo-toast-btn { border: 2px solid var(--hc-bg); color: var(--hc-bg); border-radius: 4px; }
.select-bar { border: 2px solid var(--hc-line); box-shadow: 6px 6px 0 var(--hc-shadow); }

/* Thai tone colours: readable (4.5:1) on white, keeping their brightness
   order (mid, rising, high); stronger on the dark background. */
.tone-3 { color: #a36800; }
.tone-4 { color: #16805a; }
:root[data-theme="dark"] .tone-1 { color: #8fa8ff; }
:root[data-theme="dark"] .tone-2 { color: #ff8f8f; }
