/* Optional palette alignment, sampled from the rendered auth page after minimal.css.
   Remove this link to restore the old shell. No new hues: control boundaries reuse
   the auth field border; low-contrast separators are decorative, never controls. */
:root, :root[data-theme="dark"] {
  --bg: #0b0c0c; --panel: #161817; --panel-2: #1e2120; --panel-3: #292c2a;
  --line: #2a2d2b; --line-2: #3c403d; --field-line: #777974;
  --text: #f3f3ef; --muted: #b0b1aa; --subtle: #92938d;
  --accent: #e2e3dc; --signal: #e5583d;
}
:root[data-theme="light"] {
  --bg: #e7e0cd; --panel: #f9f6ef; --panel-2: #fdfbf7; --panel-3: #efe8d9;
  --line: #e0d6c1; --line-2: #cbbd9f; --field-line: #817458;
  --text: #211913; --muted: #574a3c; --subtle: #6c5e4c;
  --accent: #5a2d1c; --signal: #b47a28;
}
#landing-view, #app-view, .topbar, .wl-bar { background: var(--bg); }
.library-panel, .study-workbench, .bottom-tabs, .popover-menu,
.auth-card.webcheck-auth, dialog { background: var(--panel); color: var(--text); }
.workspace-mode-switch, .seg { background: var(--panel-3); }
.check-workspace, .workspace-textarea { background: var(--panel-2); }
.product-tabs .nav-btn, .bottom-tabs button { color: var(--muted); }
.product-tabs .nav-btn.active, .bottom-tabs button.active { color: var(--text); }
/* AA boundaries, 3:1 on every auth surface. The quieter --line tokens still serve
   separators; essential state/field boundaries always use --field-line. */
.field :is(input:not([type="file"]), select, textarea), .workspace-textarea,
.check input, .consent input, .auth-back, .pref-switch,
.btn:not(.primary):not(.ghost):not(.danger), .icon-btn,
.segment-control.is-active, .workspace-mode.is-active,
.product-tabs .nav-btn.active, .bottom-tabs button.active {
  border-color: var(--field-line);
}
.segment-control.is-active, .workspace-mode.is-active,
.product-tabs .nav-btn.active, .bottom-tabs button.active { outline: 1px solid var(--field-line); outline-offset: -1px; }
@media (max-width: 850px) {
  .product-tabs { background: var(--panel); background-image: none; }
}
:is(button, a, input, textarea, select, summary):focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
/* Auth ink gives the recording icon >4.5:1 on the existing red/brass fill. */
.rec-button { color: var(--bg); }
:root[data-theme="light"] .rec-button { color: var(--text); }
.pref-switch button, .auth-back { min-width: 44px; min-height: 44px; }
@media (hover: hover) {
  .product-tabs .nav-btn:hover, .bottom-tabs button:hover { background: var(--hover); color: var(--text); }
}
@media (forced-colors: active) {
  :is(button, a, input, textarea, select, summary):focus-visible { outline-color: Highlight; }
  .motion-indicator { border-color: Highlight; }
}
