@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --color-primary: #2563eb;
  --color-primary-strong: #1d4ed8;
  --color-primary-soft: rgba(37, 99, 235, 0.10);
  --color-secondary: #0ea5e9;
  --color-secondary-strong: #0284c7;
  --color-secondary-soft: rgba(14, 165, 233, 0.10);
  --color-bg: #f4f7fb;
  --color-surface: #ffffff;
  --color-surface-alt: #eef4fb;
  --color-surface-elevated: #f8fbff;
  --color-text: #0f172a;
  --color-muted: #475569;
  --color-success: #16a34a;
  --color-success-soft: rgba(34, 197, 94, 0.12);
  --color-warning: #b45309;
  --color-warning-soft: rgba(245, 158, 11, 0.14);
  --color-danger: #b91c1c;
  --color-danger-soft: rgba(248, 113, 113, 0.12);
  --color-line: #d9e3f0;
  --color-line-strong: #bfd0e4;
  --color-header: rgba(255, 255, 255, 0.92);
  --color-header-border: rgba(191, 208, 228, 0.95);
  --color-overlay-a: rgba(37, 99, 235, 0.08);
  --color-overlay-b: rgba(14, 165, 233, 0.08);
  --hero-panel-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 248, 253, 0.98) 100%);
  --card-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 251, 255, 0.98) 100%);
  --input-bg: #ffffff;
  --input-placeholder: #64748b;
  --chip-bg: rgba(14, 165, 233, 0.08);
  --chip-hover-bg: rgba(14, 165, 233, 0.14);
  --helper-bg: rgba(14, 165, 233, 0.08);
  --helper-border: rgba(14, 165, 233, 0.24);
  --eyebrow-text: #1d4ed8;
  --eyebrow-bg: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(14, 165, 233, 0.08));
  --eyebrow-border: rgba(37, 99, 235, 0.20);
  --pill-bg: rgba(37, 99, 235, 0.10);
  --pill-border: rgba(37, 99, 235, 0.18);
  --pill-text: #1d4ed8;
  --toggle-track: #dbe7f5;
  --toggle-thumb: #ffffff;
  --toggle-frame: rgba(191, 208, 228, 0.95);
  --toggle-label-active: #0f172a;
  --toggle-label-passive: #64748b;
  --badge-live-bg: rgba(34, 197, 94, 0.12);
  --badge-live-border: rgba(34, 197, 94, 0.24);
  --badge-next-bg: rgba(14, 165, 233, 0.12);
  --badge-next-border: rgba(14, 165, 233, 0.24);
  --badge-next-text: #0c4a6e;
  --badge-planned-bg: rgba(245, 158, 11, 0.14);
  --badge-planned-border: rgba(245, 158, 11, 0.24);
  --badge-planned-text: #92400e;
  --glow-primary: 0 0 0 1px rgba(37, 99, 235, 0.06), 0 16px 34px rgba(37, 99, 235, 0.08);
  --glow-secondary: 0 0 0 1px rgba(14, 165, 233, 0.06), 0 14px 30px rgba(14, 165, 233, 0.08);
  --shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
  --bg: var(--color-bg);
  --surface: var(--color-surface);
  --surface-alt: var(--color-surface-alt);
  --ink: var(--color-text);
  --muted: var(--color-muted);
  --line: var(--color-line);
  --line-strong: var(--color-line-strong);
  --blue: var(--color-secondary);
  --blue-dark: var(--color-primary-strong);
  --blue-soft: var(--color-secondary-soft);
  --green: var(--color-success);
  --green-soft: var(--color-success-soft);
  --amber-soft: var(--color-warning-soft);
  --amber: var(--color-warning);
  --red-soft: var(--color-danger-soft);
  --red: var(--color-danger);
  --max: 1120px;
  --radius: 16px;
}

:root[data-theme="gamer"] {
  --color-primary: #7c3aed;
  --color-primary-strong: #8b5cf6;
  --color-primary-soft: rgba(124, 58, 237, 0.18);
  --color-secondary: #EBB96A;
  --color-secondary-strong: #F0C87A;
  --color-secondary-soft: rgba(235, 185, 106, 0.14);
  --color-bg: #020617;
  --color-surface: #0f172a;
  --color-surface-alt: #111c34;
  --color-surface-elevated: #16213a;
  --color-text: #f8fafc;
  --color-muted: #b8c8d8;
  --color-success: #22c55e;
  --color-success-soft: rgba(34, 197, 94, 0.16);
  --color-warning: #f59e0b;
  --color-warning-soft: rgba(245, 158, 11, 0.18);
  --color-danger: #f87171;
  --color-danger-soft: rgba(248, 113, 113, 0.16);
  --color-line: #24324a;
  --color-line-strong: #334155;
  --color-header: rgba(2, 6, 23, 0.84);
  --color-header-border: rgba(36, 50, 74, 1);
  --color-overlay-a: rgba(124, 58, 237, 0.16);
  --color-overlay-b: rgba(235, 185, 106, 0.07);
  --hero-panel-bg: linear-gradient(180deg, rgba(15, 23, 42, 0.98) 0%, rgba(17, 28, 52, 0.98) 100%);
  --card-bg: linear-gradient(180deg, rgba(15, 23, 42, 0.98) 0%, rgba(15, 23, 42, 0.94) 100%);
  --input-bg: rgba(2, 6, 23, 0.9);
  --input-placeholder: #7f90ab;
  --chip-bg: rgba(124, 58, 237, 0.08);
  --chip-hover-bg: rgba(124, 58, 237, 0.14);
  --helper-bg: rgba(124, 58, 237, 0.08);
  --helper-border: rgba(124, 58, 237, 0.28);
  --eyebrow-text: #c4b5fd;
  --eyebrow-bg: linear-gradient(135deg, rgba(124, 58, 237, 0.22), rgba(235, 185, 106, 0.08));
  --eyebrow-border: rgba(124, 58, 237, 0.34);
  --pill-bg: rgba(124, 58, 237, 0.16);
  --pill-border: rgba(124, 58, 237, 0.34);
  --pill-text: #e9ddff;
  --toggle-track: rgba(124, 58, 237, 0.30);
  --toggle-thumb: #f8fafc;
  --toggle-frame: rgba(51, 65, 85, 0.9);
  --toggle-label-active: #f8fafc;
  --toggle-label-passive: #94a3b8;
  --badge-live-bg: rgba(34, 197, 94, 0.16);
  --badge-live-border: rgba(34, 197, 94, 0.35);
  --badge-next-bg: rgba(124, 58, 237, 0.14);
  --badge-next-border: rgba(124, 58, 237, 0.30);
  --badge-next-text: #e9ddff;
  --badge-planned-bg: rgba(245, 158, 11, 0.18);
  --badge-planned-border: rgba(245, 158, 11, 0.35);
  --badge-planned-text: #fcd34d;
  --glow-primary: 0 0 0 1px rgba(124, 58, 237, 0.22), 0 18px 44px rgba(124, 58, 237, 0.22);
  --glow-secondary: 0 0 0 1px rgba(235, 185, 106, 0.06), 0 20px 50px rgba(235, 185, 106, 0.08);
  --shadow: 0 18px 42px rgba(2, 6, 23, 0.42);
  --blue: var(--color-secondary);
  --blue-dark: var(--color-secondary-strong);
  --blue-soft: var(--color-secondary-soft);
  --green: var(--color-success);
  --green-soft: var(--color-success-soft);
  --amber-soft: var(--color-warning-soft);
  --amber: var(--color-warning);
  --red-soft: var(--color-danger-soft);
  --red: var(--color-danger);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  transition: background-color 180ms ease, color 180ms ease;
}
a { color: var(--blue-dark); text-decoration: none; }
a:hover { color: var(--blue); text-decoration: underline; }
:root[data-theme="gamer"] a:hover { color: var(--color-primary-strong); }

/* ── Gamer mode: amber as discovery/wayfinding accent ── */
:root[data-theme="gamer"] .icon-card-badge { color: var(--color-secondary-strong); background: var(--color-secondary-soft); }
:root[data-theme="gamer"] .status-live { color: var(--color-secondary-strong); background: var(--color-secondary-soft); border-color: rgba(235,185,106,0.2); }
:root[data-theme="gamer"] .browse-hint { color: var(--color-secondary); }

/* ── Gamer mode: purge remaining --blue leaks ── */
:root[data-theme="gamer"] .tab-btn.active { color: var(--color-primary-strong); border-bottom-color: var(--color-primary); }
:root[data-theme="gamer"] .tool-search:focus { border-color: var(--color-primary); }
:root[data-theme="gamer"] .letter-rail a { color: var(--color-primary-strong); border-color: rgba(124,58,237,0.25); }
:root[data-theme="gamer"] .letter-rail a:hover { border-color: var(--color-primary); background: var(--color-primary-soft); }
:root[data-theme="gamer"] .hero-search-item:hover { border-left-color: var(--color-primary); }
:root[data-theme="gamer"] .tool-row-pill { color: var(--color-primary-strong); background: var(--color-primary-soft); }

/* ── Gamer mode overrides for paint/color tool components. Base (classic)
   rules for these classes live further down, under each page's own
   "── Page: ── " heading (Task #135 migration, completed 2026-07-02) —
   kept here rather than moved next to their base rules so gamer theming
   has one home, and the higher specificity of :root[data-theme="gamer"]
   wins regardless of load order. ── */
:root[data-theme="gamer"] .buy-callout {
  background: rgba(74,222,128,0.1);
  border-color: rgba(74,222,128,0.35);
  color: #86EFAC;
}
:root[data-theme="gamer"] .warn-banner {
  background: var(--badge-planned-bg);
  border-color: var(--badge-planned-border);
  color: var(--badge-planned-text);
}
:root[data-theme="gamer"] .schedule-card { border-color: var(--line); background: var(--card-bg); }
:root[data-theme="gamer"] .schedule-title { color: var(--muted); }
:root[data-theme="gamer"] .explain-card { background: var(--surface-alt); border-color: var(--line); border-left-color: var(--color-primary-strong); }
:root[data-theme="gamer"] .explain-card-label { color: var(--muted); }
:root[data-theme="gamer"] .wheel-title { color: var(--muted); }
:root[data-theme="gamer"] .seed-title { color: var(--ink); }
:root[data-theme="gamer"] .step-title { color: var(--ink); }
:root[data-theme="gamer"] .psych-hue-card { border-color: var(--line); background: var(--surface); }

/* ── Gamer mode: explicit reaffirmations for components that already use
   theme-reactive tokens (--ink/--muted/--line/--surface/--color-primary
   etc.) and need no visual change, but get an explicit rule here so
   check-gamer-coverage.sh can confirm they were reviewed for gamer mode
   rather than silently inheriting. Same pattern as .site-header above. ── */
:root[data-theme="gamer"] .affiliate-callout { background: var(--color-secondary-soft); border-color: var(--line); }
:root[data-theme="gamer"] .hero-card { background: var(--surface-alt); border-color: var(--line); }
:root[data-theme="gamer"] .hero-card-pill { background: var(--color-primary-soft); color: var(--color-primary); }
:root[data-theme="gamer"] .content-card { background: var(--card-bg); border-color: var(--line); }
:root[data-theme="gamer"] .card-callout { background: var(--blue-soft); border-color: var(--line); }
:root[data-theme="gamer"] .tool-row { border-bottom-color: var(--line); }
:root[data-theme="gamer"] .tool-row-title { color: var(--color-secondary-strong); }
:root[data-theme="gamer"] .tool-row-desc { color: var(--muted); }
:root[data-theme="gamer"] .icon-card-desc { color: var(--muted); }
:root[data-theme="gamer"] .math-card { border-color: var(--line); }
:root[data-theme="gamer"] .panel-title { color: var(--ink); }
:root[data-theme="gamer"] .mode-title { color: var(--ink); }
:root[data-theme="gamer"] .section-title { color: var(--ink); }
:root[data-theme="gamer"] .hero-search-dropdown { background: var(--bg); border-color: var(--line); }
:root[data-theme="gamer"] .hero-search-empty { color: var(--muted); }
:root[data-theme="gamer"] .hero-search-input { color: var(--ink); }
:root[data-theme="gamer"] .hero-search-item-name { color: var(--ink); }
:root[data-theme="gamer"] .hero-search-item-desc { color: var(--muted); }

img { max-width: 100%; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}
:root[data-theme="gamer"] .site-header { background: var(--surface); border-bottom-color: var(--line); }
.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.nav-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}
.nav-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex: 1 1 100%;
}
.nav-group {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-group-links {
  flex: 1 1 auto;
  min-width: 0;
}
.nav-group-utilities {
  justify-content: flex-end;
}
.nav-group-label {
  display: none;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.nav-utility-note {
  display: none;
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  box-shadow: var(--shadow);
  cursor: pointer;
}
.menu-toggle[aria-expanded="true"] {
  border-color: rgba(37, 99, 235, 0.45);
  color: var(--blue-dark);
}
.nav-utility-slot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 750;
}
.mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #1D4ED8;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  box-shadow: none;
}
:root[data-theme="gamer"] .mark {
  background: #8B5CF6;
  box-shadow: none;
}
.brand { font-weight: 700; font-size: 15px; }
.brand-copy { line-height: 1.1; }
.brand-copy small, .mini { color: var(--muted); font-size: 13px; }
.navlinks { display: flex; gap: 28px; flex-wrap: wrap; font-size: 14px; flex: 1 1 380px; justify-content: flex-end; }
.navlinks a { color: var(--muted); font-weight: 500; }
.navlinks a:hover { color: var(--ink); text-decoration: none; }
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-wrap: nowrap;
  white-space: nowrap;
  min-width: max-content;
  padding: 8px 14px;
  border-radius: 16px;
  border: 1px solid var(--toggle-frame);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.theme-toggle-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.theme-toggle-control {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}
.theme-toggle-text {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.theme-toggle-helper {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.theme-toggle-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--toggle-label-passive);
  transition: color 140ms ease;
  white-space: nowrap;
  line-height: 1;
}
.theme-toggle-label.is-active { color: var(--toggle-label-active); }
.theme-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}
.theme-switch input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.theme-switch-track {
  width: 52px;
  height: 30px;
  border-radius: 999px;
  background: var(--toggle-track);
  border: 1px solid var(--toggle-frame);
  display: inline-flex;
  align-items: center;
  padding: 3px;
  transition: background 160ms ease, border-color 160ms ease;
}
.theme-switch-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--toggle-thumb);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.2);
  transform: translateX(0);
  transition: transform 160ms ease;
}
.theme-switch input:checked + .theme-switch-track .theme-switch-thumb { transform: translateX(22px); }
.theme-switch input:focus-visible + .theme-switch-track {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}
.hero {
  padding: 34px 0 22px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 24px;
  align-items: start;
}
.hero-directory {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.48fr);
  align-items: start;
}
.hero-intro { display: grid; gap: 12px; }
.hero-aside { align-self: stretch; }
.search-module {
  grid-column: 1 / -1;
  padding: 28px;
  background: var(--hero-panel-bg);
  box-shadow: var(--glow-primary);
}
.search-heading-row {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 18px;
  flex-wrap: wrap;
}
.search-helper-block {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 8px;
  flex-wrap: wrap;
  max-width: 100%;
}
.search-helper-label {
  font-weight: 700;
  white-space: nowrap;
}
.search-helper-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  justify-content: flex-start;
  margin-top: 0;
  align-items: center;
}
.result-chip-card,
.chip {
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.search-helper-list span {
  padding: 0;
  font-size: 13px;
  color: var(--muted);
  background: transparent;
  border: 0;
}
.search-helper-list span + span::before {
  content: '·';
  margin: 0 8px;
  color: var(--line-strong);
}
.hero-simple { padding: 28px 0 12px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--eyebrow-text);
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  text-decoration: none;
}
a.eyebrow { transition: color 0.15s; cursor: pointer; }
a.eyebrow:hover { color: var(--ink); text-decoration: underline; }
.h1 {
  margin: 14px 0 10px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.h2, h2 { margin: 0 0 12px; font-size: clamp(26px, 3vw, 34px); line-height: 1.12; letter-spacing: -0.025em; }
h3 { margin: 0 0 8px; }
.lead { margin: 0; font-size: 18px; color: var(--muted); max-width: 760px; }
.section { padding: 18px 0 28px; }
.section-tight { padding-top: 10px; }
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.section-header.compact { margin-bottom: 14px; }
.section-header-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 8px;
}
.section-header-stack .section-copy {
  max-width: 640px;
  margin: 0;
}
.section-copy { max-width: 420px; }
.grid { display: grid; gap: 18px; }
.grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: var(--card-bg); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
a.card { text-decoration: none; color: inherit; }
a.card:hover { text-decoration: none; border-color: var(--blue); }
a.card:hover h2 { color: var(--color-primary-strong); }
:root[data-theme="gamer"] a.card:hover { border-color: rgba(124, 58, 237, 0.6); box-shadow: 0 0 0 1px rgba(124, 58, 237, 0.4), 0 0 28px rgba(124, 58, 237, 0.35), 0 0 60px rgba(124, 58, 237, 0.18), 0 8px 20px rgba(124, 58, 237, 0.2); transform: translateY(-2px); }
.category-card > .status-badge { align-self: flex-start; }
.card-tight { padding: 18px; }
.card-solo { max-width: 760px; margin: 0 auto; }
.card-callout { background: var(--blue-soft); border-color: var(--line); }
.card-callout p { color: var(--blue-dark); }
.tool-card { color: inherit; display: block; }
.tool-card h3 { margin: 10px 0 8px; font-size: 22px; }
.tool-card p { margin: 0; color: var(--muted); }

/* Compact icon card — for hub pages with a handful of items (guides, etc.)
   where a heavy .card grid reads as too dense to scan. Single source of
   truth; reuse this instead of inventing a new card shape per page. */
.icon-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.icon-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; display: flex; flex-direction: column; gap: 10px;
  text-decoration: none; color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.icon-card:hover { border-color: var(--blue); box-shadow: var(--glow-primary); transform: translateY(-1px); text-decoration: none; }
.icon-card:hover .icon-card-title { color: var(--color-primary-strong); }
:root[data-theme="gamer"] .icon-card:hover { border-color: rgba(124, 58, 237, 0.6); box-shadow: 0 0 0 1px rgba(124, 58, 237, 0.4), 0 0 28px rgba(124, 58, 237, 0.35), 0 0 60px rgba(124, 58, 237, 0.18), 0 8px 20px rgba(124, 58, 237, 0.2); transform: translateY(-2px); text-decoration: none; }
:root[data-theme="gamer"] .icon-card-title { color: var(--color-secondary-strong); }
:root[data-theme="gamer"] .icon-card:hover .icon-card-title { color: var(--color-primary-strong); }
:root[data-theme="gamer"] .category-card h2 { color: var(--color-secondary-strong); }
:root[data-theme="gamer"] .category-card:hover h2 { color: var(--color-primary-strong); }
:root[data-theme="gamer"] .tool-card h3 { color: var(--color-secondary-strong); }
:root[data-theme="gamer"] .tool-card:hover h3 { color: var(--color-primary-strong); }
.icon-card-top { display: flex; align-items: flex-start; justify-content: space-between; }
.icon-card-icon {
  width: 38px; height: 38px; border-radius: 10px; flex: none;
  background: var(--blue-soft); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
}
:root[data-theme="gamer"] .icon-card-icon { background: var(--color-primary-soft); color: var(--color-primary-strong); }
.icon-card-badge {
  display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; border-radius: 4px; padding: 3px 8px;
  color: var(--green); background: var(--green-soft);
}
.icon-card-title { font-size: 16px; font-weight: 700; color: var(--ink); margin: 0; line-height: 1.35; }
.icon-card-desc { font-size: 15px; color: var(--muted); line-height: 1.5; margin: 0; }
@media (max-width: 720px) { .icon-card-grid { grid-template-columns: 1fr; } }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: var(--pill-bg); border: 1px solid var(--pill-border); color: var(--pill-text); font-size: 12px; font-weight: 700; }
.checklist, .link-list, .plain-list, .tool-link-list { margin: 12px 0 0; padding-left: 18px; }
.checklist li, .link-list li, .plain-list li, .tool-link-list li { margin: 8px 0; }
.meta-row, .stats, .cta-row, .stack, .footer-links, .badge-row, .chip-row { display: flex; gap: 10px; flex-wrap: wrap; }
.meta-row { margin-top: 18px; }
.stat { min-width: 150px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.stat strong { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.stat span { font-size: 22px; font-weight: 750; }
.btn-row, .cta-row { margin-top: 20px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--blue-dark); font-weight: 700; cursor: pointer; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03); }
.btn.primary { border-color: rgba(37, 99, 235, 0.24); background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-strong) 100%); color: #fff; box-shadow: 0 12px 28px rgba(37, 99, 235, 0.18); }
:root[data-theme="gamer"] .btn.primary { border-color: rgba(124, 58, 237, 0.75); box-shadow: 0 14px 30px rgba(124, 58, 237, 0.32); }
:root[data-theme="gamer"] .btn.primary:hover { filter: brightness(1.1); box-shadow: 0 0 0 1px rgba(124, 58, 237, 0.65), 0 0 36px rgba(124, 58, 237, 0.6), 0 0 80px rgba(124, 58, 237, 0.3), 0 16px 40px rgba(124, 58, 237, 0.4); }
:root[data-theme="gamer"] .btn:not(.primary):hover { border-color: rgba(124, 58, 237, 0.5); background: rgba(124, 58, 237, 0.08); box-shadow: 0 0 0 1px rgba(124, 58, 237, 0.3), 0 0 20px rgba(124, 58, 237, 0.25); }
.btn:not(.primary):hover { border-color: rgba(14, 165, 233, 0.5); background: var(--chip-hover-bg); }
.btn.primary:hover { filter: brightness(1.05); }
.btn:hover { text-decoration: none; }
.notice, .ad, .trust-box, .methodology, .privacy, .result-box, .affiliate-box, .faq-item { border-radius: 14px; border: 1px solid var(--line); }
.notice, .methodology, .privacy, .ad, .affiliate-box, .faq-item { padding: 14px 16px; background: var(--surface-alt); }
.notice { border-color: var(--badge-planned-border); background: var(--amber-soft); color: var(--badge-planned-text); }
.affiliate-box { border-color: var(--badge-next-border); background: var(--chip-bg); }
.ad { text-align: center; color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; min-height: 74px; display: grid; place-items: center; }
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
label { font-size: 14px; font-weight: 650; color: var(--ink); }
input, select { width: 100%; min-height: 46px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--input-bg); padding: 0 14px; color: var(--ink); font: inherit; }
input::placeholder { color: var(--input-placeholder); }
input[type="checkbox"] { width: auto; min-height: auto; }
input:focus, select:focus {
  outline: none;
  border-color: rgba(37, 99, 235, 0.55);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12), 0 0 0 1px rgba(14, 165, 233, 0.10);
}
:root[data-theme="gamer"] input:focus,
:root[data-theme="gamer"] select:focus {
  border-color: rgba(124, 58, 237, 0.7);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.18), 0 0 0 1px rgba(249, 115, 22, 0.14);
}
small.help, .muted { color: var(--muted); }
.result-box { background: var(--green-soft); border-color: var(--badge-live-border); padding: 18px; }
.result-box.warning { background: var(--red-soft); border-color: rgba(248, 113, 113, 0.32); }
.result-box.warning .result-value { color: var(--red); }
.result-box p { margin: 8px 0 0; }
.result-value { font-size: clamp(30px, 6vw, 48px); line-height: 1; font-weight: 800; color: var(--green); margin: 10px 0 0; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th, .table td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { background: var(--chip-bg); font-size: 14px; }
.table tr:last-child td { border-bottom: 0; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 0.95fr); gap: 18px; align-items: stretch; }
.result-rail { align-self: stretch; display: flex; flex-direction: column; }
.result-rail .ad { margin-top: auto !important; }
.sticky-result { position: sticky; top: 88px; }
.breadcrumbs { font-size: 13px; color: var(--muted); margin: 18px 0 0; }
.breadcrumbs a { color: var(--muted); }
.footer { margin-top: 18px; background: #111827; border-top: none; padding: 28px 0; color: #9CA3AF; font-size: 14px; }
:root[data-theme="gamer"] .footer { background: #000; }
.footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-links a { color: #9CA3AF; text-decoration: none; }
.footer-links a:hover { color: #fff; }
.search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  margin-top: 16px;
}
.search-form input {
  min-height: 60px;
  font-size: 18px;
  padding: 0 18px;
  border-color: var(--helper-border);
  background: var(--input-bg);
}
.search-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.search-shortcuts { margin-top: 16px; }
.popular-controls {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-alt);
}
.popular-control {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  padding: 7px 11px;
  cursor: pointer;
}
.popular-control[aria-pressed="true"] {
  background: var(--blue);
  color: #fff;
}
.search-results-wrap {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.search-results-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.search-query-context {
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.search-results {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.result-chip-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  color: inherit;
  min-height: 100%;
  border-radius: 18px;
  align-items: flex-start;
}
.result-chip-card:hover {
  text-decoration: none;
  border-color: var(--helper-border);
  box-shadow: var(--glow-secondary);
}
.result-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  flex-wrap: wrap;
}
.result-chip-card span,
.result-chip-card small {
  color: var(--muted);
}
.result-chip-card.empty {
  border-radius: 14px;
  padding: 16px;
}
.result-tags {
  gap: 8px;
}
.result-tags .chip { font-size: 12px; }
.chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  color: var(--blue-dark);
  background: var(--chip-bg);
  font-size: 13px;
  border-radius: 999px;
}
.chip-link:hover { text-decoration: none; background: var(--chip-hover-bg); border-color: var(--helper-border); }
.category-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.category-grid-stack {
  grid-template-columns: 1fr;
}
.category-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.card h2, .card-tight h2, .card-solo h2 { font-size: 20px; font-weight: 700; }
.category-card h2 { font-size: 20px; font-weight: 700; margin: 0; letter-spacing: -0.01em; }
.category-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}
.category-promise {
  margin: 0;
  color: var(--muted);
}
.status-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid transparent;
}
.status-live {
  color: var(--green);
  background: var(--badge-live-bg);
  border-color: var(--badge-live-border);
}
.status-next {
  color: var(--badge-next-text);
  background: var(--badge-next-bg);
  border-color: var(--badge-next-border);
}
.status-planned {
  color: var(--badge-planned-text);
  background: var(--badge-planned-bg);
  border-color: var(--badge-planned-border);
}
.architecture-card {
  background: var(--hero-panel-bg);
  box-shadow: var(--glow-secondary);
}
.architecture-grid { align-items: start; }
.mini-index {
  padding: 18px;
  border-radius: 14px;
  border: 1px solid var(--badge-next-border);
  background: var(--chip-bg);
}
.badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-alt);
  color: var(--ink);
  font-size: 13px;
}
.related-links.link-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.related-links.link-grid a {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.related-links.link-grid a:hover {
  text-decoration: none;
  border-color: var(--pill-border);
  box-shadow: var(--glow-primary);
}
/* Gamer: amber title, muted description, full hover halo */
:root[data-theme="gamer"] .related-links.link-grid a strong { color: var(--color-secondary-strong); }
:root[data-theme="gamer"] .related-links.link-grid a small  { color: var(--muted); }
:root[data-theme="gamer"] .related-links.link-grid a:hover  { border-color: rgba(124,58,237,0.6); box-shadow: 0 0 0 1px rgba(124,58,237,0.4), 0 0 28px rgba(124,58,237,0.35), 0 0 60px rgba(124,58,237,0.18), 0 8px 20px rgba(124,58,237,0.2); transform: translateY(-2px); }
.tag-cloud { margin-top: 14px; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.nav-debug {
  position: fixed;
  left: 12px;
  right: 12px;
  top: 12px;
  z-index: 50;
  margin: 0;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.98);
  color: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.55);
  font: 700 22px/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  white-space: pre-wrap;
  word-break: break-word;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.32);
}
/* Canon lower-half calculator content blocks (matches eBay/Mercari --dts skeleton) */
.content-card { background: var(--card-bg); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; max-width: 760px; margin: 0 auto; }
.content-card .section-title { font-size: 22px; font-weight: 750; color: var(--ink); margin: 0 0 16px; }
.content-card p { margin: 0 0 12px; color: var(--ink); line-height: 1.6; }
.content-card p:last-child { margin: 0; }
.checklist-stack { display: flex; flex-direction: column; gap: 8px; }
.checklist-row { display: flex; align-items: center; gap: 12px; font-size: 16px; color: var(--ink); padding: 10px 14px; background: var(--surface-alt); border: 1px solid var(--line); border-radius: 10px; cursor: pointer; user-select: none; margin: 0; line-height: 1.45; transition: border-color 0.15s, background 0.15s; }
.checklist-row:hover { border-color: var(--color-primary); }
.checklist-row input[type="checkbox"] { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; min-width: 20px; min-height: auto; flex: none; border: 2px solid var(--line); border-radius: 5px; background: var(--surface); cursor: pointer; position: relative; transition: background 0.15s, border-color 0.15s; }
.checklist-row input[type="checkbox"]:checked { background: var(--green); border-color: var(--green); }
.checklist-row input[type="checkbox"]:checked::after { content: ''; position: absolute; left: 5px; top: 2px; width: 6px; height: 10px; border: 2px solid #fff; border-top: none; border-left: none; transform: rotate(45deg); }
.checklist-row.checked { border-color: var(--badge-live-border); background: var(--green-soft); }
.checklist-row.checked .checklist-text { color: var(--muted); text-decoration: line-through; }
:root[data-theme="gamer"] .checklist-row.checked {
  border-color: rgba(34, 197, 94, 0.5);
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.4), 0 0 20px rgba(34, 197, 94, 0.3), 0 0 60px rgba(34, 197, 94, 0.15);
}
.faq-card details { border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin-top: 10px; }
.faq-card details:first-of-type { margin-top: 0; }
.faq-card details[open] { border-color: rgba(37, 99, 235, 0.4); }
.faq-card summary { cursor: pointer; font-weight: 650; color: var(--ink); }
.faq-card details p { margin: 10px 0 0; color: var(--muted); }
:root[data-theme="gamer"] .faq-card details[open] {
  border-color: rgba(124,58,237,0.5);
  box-shadow: 0 0 0 1px rgba(124,58,237,0.4), 0 0 20px rgba(124,58,237,0.3), 0 0 60px rgba(124,58,237,0.15);
}
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.related-grid a { background: var(--card-bg); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; text-decoration: none; display: block; color: inherit; }
.related-grid a:hover { border-color: var(--color-primary); }
.related-grid h3 { font-size: 16px; font-weight: 700; color: var(--color-primary); margin: 0 0 6px; }
.related-grid p { font-size: 14px; color: var(--muted); margin: 0; }

/* Tools index (A-Z + Newest browse page). Approved pattern: letter rail +
   compact rows over a card grid once an index has >8-10 items. Single
   source of truth for /tools/ — do not re-derive a local copy. */
.tools-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-top: 18px; }
.tab-btn {
  font-family: inherit; font-size: 14px; font-weight: 600; color: var(--muted);
  background: none; border: none; border-bottom: 2px solid transparent;
  padding: 10px 14px; cursor: pointer; transition: color .15s, border-color .15s;
}
.tab-btn:hover:not(:disabled) { color: var(--ink); }
.tab-btn.active { color: var(--blue); border-bottom-color: var(--blue); }
.tab-btn:disabled { color: var(--muted); opacity: .45; cursor: not-allowed; }

.tool-search-wrap { padding: 18px 0 4px; }
.tool-search {
  width: 100%; max-width: 420px; font-family: inherit; font-size: 14px;
  padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  background: var(--surface); color: var(--ink); outline: none; transition: border-color .15s;
}
.tool-search:focus { border-color: var(--blue); }
.tool-search::placeholder { color: var(--muted); }

.letter-rail {
  display: flex; flex-wrap: wrap; gap: 4px;
  padding: 16px 0; position: sticky; top: 56px; z-index: 40;
  background: var(--bg);
}
.letter-rail a, .letter-rail span {
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 7px;
  font-size: 13px; font-weight: 700; text-decoration: none;
}
.letter-rail a { color: var(--blue); background: var(--surface); border: 1px solid var(--line); transition: background .15s, border-color .15s; }
.letter-rail a:hover { border-color: var(--blue); background: var(--blue-soft); }
.letter-rail span { color: var(--muted); opacity: .35; }

.letter-divider, .recency-divider {
  font-size: 22px; font-weight: 800; color: var(--ink);
  padding: 22px 0 8px; margin-top: 8px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 120px;
}
/* Anchor target is the <section id="letter-X">, not the .letter-divider inside it —
   scroll-margin-top has to live here or the sticky header (56px) + sticky letter-rail (60px)
   cover the heading on jump, landing mid-letter instead of at the top. */
section[id^="letter-"] { scroll-margin-top: 120px; }
section:first-of-type .letter-divider, section:first-of-type .recency-divider { margin-top: 0; }

.tool-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 13px 4px; text-decoration: none; color: inherit;
  border-bottom: 1px solid var(--line);
  transition: background .12s;
}
.tool-row:hover { background: var(--surface); }
.tool-row-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tool-row-title { font-size: 16px; font-weight: 700; color: var(--ink); }
.tool-row-desc { font-size: 15px; color: var(--muted); line-height: 1.5; }
.tool-row-pill {
  flex: none; font-size: 11px; font-weight: 700; color: var(--blue);
  background: var(--blue-soft); padding: 4px 10px; border-radius: 999px;
  white-space: nowrap;
}

.tab-view { display: none; }
.tab-view.active { display: block; }
.empty-state { padding: 32px 0; color: var(--muted); font-size: 14px; display: none; }
.empty-state.show { display: block; }

@media (max-width: 600px) {
  .letter-rail { top: 0; }
}

/* === Homepage-only components (src/index.html). Wiki-style hero with
   constellation nav + live search dropdown, and a filter-pill tool
   browser. Single source of truth for the homepage — do not re-derive
   a local copy. Tool cards reuse .icon-card; category cards reuse
   .category-card / .status-badge (see categories/index.html) rather
   than a third competing card shape. === */
.wiki-hero { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 48px 24px 40px; }
.wordmark { font-size: 44px; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); line-height: 1; margin-bottom: 10px; }
.tagline { font-size: 23px; font-weight: 700; letter-spacing: -0.01em; color: var(--blue); margin-bottom: 8px; }
.support-line { font-size: 14px; color: var(--muted); max-width: 500px; line-height: 1.6; margin: 0 auto; }

.constellation { position: relative; width: 700px; height: 390px; margin: 32px auto 24px; }
.constellation-lines { position: absolute; inset: 0; pointer-events: none; color: var(--line); }
.logo-center { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 240px; height: 240px; }
/* Classic/gamer badge swap — approved 2026-07-01. Classic: plain circle
   badge. Gamer: "moon" badge, kept visible (not just glow) since its pale
   disc + amber halo reads as a moon rather than a flat dark circle. */
.logo-center-gamer { display: none; }
:root[data-theme="gamer"] .logo-center-classic { display: none; }
:root[data-theme="gamer"] .logo-center-gamer { display: block; }
:root[data-theme="gamer"] .logo-center svg { filter: drop-shadow(0 0 16px rgba(235,185,106,0.32)) drop-shadow(0 0 36px rgba(235,185,106,0.16)) drop-shadow(0 0 64px rgba(235,185,106,0.07)); }

.orbit-link { position: absolute; text-decoration: none; transition: opacity 0.15s; }
.orbit-link:hover { opacity: 0.7; }
.orbit-name { display: block; font-size: 17px; font-weight: 600; color: var(--blue); margin-bottom: 3px; line-height: 1.2; }
:root[data-theme="gamer"] .orbit-name { color: var(--color-primary-strong); }
.orbit-link:hover .orbit-name { text-decoration: underline; }
.orbit-sub { display: block; font-size: 12px; color: var(--muted); line-height: 1.4; }
.orbit-badge { display: inline-block; font-size: 9.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; border-radius: 4px; padding: 2px 6px; margin-top: 4px; }
.orbit-badge.badge-live { color: var(--green); background: var(--green-soft); }
.orbit-badge.badge-next { color: var(--badge-next-text); background: var(--badge-next-bg); }
.orbit-badge.badge-plan { color: var(--muted); background: var(--surface); }
/* Wikipedia-style arc positions — hexagonal surround */
.orbit-pos-1 { right: calc(50% + 100px); top: 28px;    text-align: right; max-width: 175px; } /* upper-left  */
.orbit-pos-2 { left:  calc(50% + 100px); top: 28px;    text-align: left;  max-width: 175px; } /* upper-right */
.orbit-pos-3 { right: calc(50% + 162px); top: 50%; transform: translateY(-50%); text-align: right; max-width: 160px; } /* mid-left */
.orbit-pos-4 { left:  calc(50% + 162px); top: 50%; transform: translateY(-50%); text-align: left;  max-width: 160px; } /* mid-right */
.orbit-pos-5 { right: calc(50% + 100px); bottom: 28px; text-align: right; max-width: 175px; } /* lower-left  */
.orbit-pos-6 { left:  calc(50% + 100px); bottom: 28px; text-align: left;  max-width: 175px; } /* lower-right */

.browse-all-link { display: inline-block; font-size: 14px; font-weight: 600; color: var(--blue); text-decoration: none; margin-bottom: 20px; opacity: 0.75; transition: opacity 0.15s; }
.browse-all-link:hover { opacity: 1; text-decoration: underline; }

.hero-search-wrap { width: 100%; max-width: 520px; position: relative; margin: 0 auto; }
.hero-search-row { display: flex; border: 1.5px solid var(--line); border-radius: 8px; overflow: hidden; box-shadow: var(--shadow); position: relative; z-index: 10; background: var(--surface); }
.hero-search-row:focus-within { border-color: var(--blue); box-shadow: var(--glow-primary); }
.hero-search-input { flex: 1; padding: 13px 18px; border: none; outline: none; font: inherit; font-size: 15px; background: transparent; color: var(--ink); }
.hero-search-input::placeholder { color: var(--muted); }
.hero-search-btn { padding: 13px 22px; background: var(--blue); border: none; color: #fff; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; transition: opacity 0.15s; white-space: nowrap; }
.hero-search-btn:hover { opacity: 0.88; }
/* Gamer mode: search button goes purple, search row gets ambient purple halo */
:root[data-theme="gamer"] .hero-search-btn { background: var(--color-primary); }
:root[data-theme="gamer"] .hero-search-row { border-color: rgba(124,58,237,0.35); box-shadow: 0 0 0 1px rgba(124,58,237,0.18), 0 0 32px rgba(124,58,237,0.22), 0 8px 24px rgba(124,58,237,0.16); }
:root[data-theme="gamer"] .hero-search-row:focus-within { border-color: var(--color-primary); box-shadow: 0 0 0 1px rgba(124,58,237,0.5), 0 0 48px rgba(124,58,237,0.38), 0 12px 32px rgba(124,58,237,0.28); }

.hero-search-dropdown { position: absolute; top: calc(100% + 4px); left: 0; right: 0; background: var(--bg); border: 1.5px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); z-index: 200; max-height: 320px; overflow-y: auto; display: none; }
.hero-search-dropdown.visible { display: block; }
.hero-search-item { display: block; padding: 12px 16px; text-decoration: none; border-left: 3px solid transparent; transition: background 0.1s, border-color 0.1s; cursor: pointer; }
.hero-search-item:not(:last-child) { border-bottom: 1px solid var(--line); }
.hero-search-item:hover { background: var(--surface); border-left-color: var(--blue); }
.hero-search-item-name { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 2px; }
.hero-search-item-desc { font-size: 12px; color: var(--muted); line-height: 1.4; }
.hero-search-empty { padding: 16px; font-size: 14px; color: var(--muted); text-align: center; }
.browse-hint { margin-top: 10px; font-size: 13px; color: var(--color-secondary); }

.filter-pills { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; justify-content: center; }
.filter-pill { padding: 7px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--bg); font: inherit; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; transition: all 0.15s; }
.filter-pill:hover { border-color: var(--blue); color: var(--blue); }
.filter-pill.active { background: var(--blue); border-color: var(--blue); color: #fff; }
:root[data-theme="gamer"] .filter-pill:hover { border-color: rgba(124, 58, 237, 0.6); color: var(--color-primary-strong); box-shadow: 0 0 0 1px rgba(124, 58, 237, 0.3), 0 0 16px rgba(124, 58, 237, 0.25); }
:root[data-theme="gamer"] .filter-pill.active { background: var(--color-primary); border-color: var(--color-primary); box-shadow: 0 0 0 1px rgba(124, 58, 237, 0.5), 0 0 20px rgba(124, 58, 237, 0.35); }

@media (max-width: 700px) {
  .constellation { width: 100%; height: auto; display: flex; flex-direction: column; align-items: center; gap: 16px; margin: 24px auto 20px; }
  .constellation-lines { display: none; }
  .logo-center { position: static; transform: none; margin-bottom: 4px; }
  .orbit-link, .orbit-pos-1, .orbit-pos-2, .orbit-pos-3, .orbit-pos-4, .orbit-pos-5, .orbit-pos-6 { position: static; transform: none; max-width: 280px; text-align: center; right: auto; left: auto; top: auto; bottom: auto; }
}

/* === Canon "rich" calculator hero + results design (locked 2026-06-25) ===
   This is the design used by eBay/Etsy/combined-seller etc: hero card with
   pill + badges, dominant kpi number, 3-box metric row, math breakdown,
   green summary callout. This supersedes the plainer hero-simple/result-box
   pattern for all NEW calculator builds and migrations. */
.hero-section { padding: 44px 0 32px; }
.hero-grid { display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: start; }
.hero-grid h1 { font-size: clamp(32px, 4vw, 48px); font-weight: 800; color: var(--ink); margin: 0 0 14px; line-height: 1.1; }
.lede { font-size: 18px; color: var(--ink); line-height: 1.6; margin: 0 0 8px; }
.dateline { font-size: 13px; color: var(--muted); margin: 0; }
.hero-card { background: var(--surface-alt); border: 1px solid var(--line); border-radius: 20px; padding: 22px 24px; }
.hero-card-pill { display: inline-block; background: var(--color-primary-soft); color: var(--color-primary); font-size: 13px; font-weight: 600; padding: 4px 12px; border-radius: 20px; margin: 0 0 14px; }
.hero-card p { font-size: 14px; color: var(--ink); line-height: 1.55; margin: 0 0 14px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 7px; }
.hero-badge { font-size: 12px; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 4px 11px; }

.calc-grid { display: grid; grid-template-columns: 1fr 420px; gap: 28px; align-items: start; }
.input-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 28px; }
.panel-kicker { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--color-primary); margin: 0 0 6px; }
.panel-title { font-size: 22px; font-weight: 700; color: var(--ink); margin: 0 0 4px; }
.panel-sub { font-size: 14px; color: var(--muted); margin: 0 0 22px; }
.input-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 18px; }
.field-wrap { display: flex; flex-direction: column; gap: 5px; }
.field-label { font-size: 14px; font-weight: 600; color: var(--ink); }
input.field, select.field {
  font-size: 17px !important; font-weight: 500 !important; color: var(--ink) !important;
  background: var(--surface-alt) !important; border: 1px solid var(--line) !important;
  border-radius: 10px !important; padding: 10px 13px !important; width: 100% !important;
  box-sizing: border-box !important; outline: none !important; transition: border-color .15s !important;
  min-height: auto !important;
}
input.field { -moz-appearance: textfield !important; appearance: textfield !important; }
input.field::-webkit-outer-spin-button, input.field::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input.field:focus, select.field:focus { border-color: var(--color-primary) !important; box-shadow: none !important; }
input.field.has-field-error { border-color: var(--red) !important; }
:root[data-theme="gamer"] input.field:focus, :root[data-theme="gamer"] select.field:focus {
  border-color: rgba(124,58,237,0.5) !important;
  box-shadow: 0 0 0 1px rgba(124,58,237,0.4), 0 0 20px rgba(124,58,237,0.3), 0 0 60px rgba(124,58,237,0.15) !important;
}
.field-help { font-size: 13px; color: var(--muted); }
.field-error { font-size: 13px; color: var(--red); min-height: 18px; display: block; }

details.more-options, details.advanced-panel { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
details.more-options summary, details.advanced-panel summary { cursor: pointer; padding: 13px 16px; font-size: 15px; font-weight: 600; color: var(--color-primary); list-style: none; display: flex; align-items: center; justify-content: space-between; user-select: none; }
details.more-options summary::after, details.advanced-panel summary::after { content: '+'; font-size: 18px; font-weight: 400; color: var(--muted); }
details.more-options[open] summary::after, details.advanced-panel[open] summary::after { content: '−'; }
details.more-options[open], details.advanced-panel[open] { border-color: rgba(37,99,235,0.5); box-shadow: 0 0 0 1px rgba(37,99,235,0.2), 0 0 12px rgba(37,99,235,0.08); }
:root[data-theme="gamer"] details.more-options[open], :root[data-theme="gamer"] details.advanced-panel[open] { border-color: rgba(124,58,237,0.5); box-shadow: 0 0 0 1px rgba(124,58,237,0.4), 0 0 20px rgba(124,58,237,0.3), 0 0 60px rgba(124,58,237,0.15); }
/* Shared card container for standalone game tools (Word Unscrambler, Board Game Word Checker)
   that don't use the calculator input-panel/results-panel split. Reuses the same tokens as
   .input-panel so it matches every other tool card site-wide. */
.unscrambler-card, .checker-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 28px; }
:root[data-theme="gamer"] .unscrambler-card, :root[data-theme="gamer"] .checker-card { border-color: var(--line); box-shadow: var(--shadow); }

/* ── Word Unscrambler: page-specific components (previously undiscovered —
   this tool's results never rendered before its dictionary was fixed, so
   these gaps were invisible until then). ── */
.tool-topline { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 18px; }
.tool-topline h2 { margin: 0 0 4px; }
.compact-select-wrap { display: flex; flex-direction: column; gap: 4px; min-width: 220px; }
.compact-select-wrap label { font-size: 13px; font-weight: 600; color: var(--ink); }
.compact-select-wrap select { padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; }
.input-row { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.input-row .field { flex: 1; min-width: 220px; }
.advanced-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-top: 14px; }
.result-summary { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.result-groups { display: flex; flex-direction: column; gap: 18px; }
#resultGroups .empty-state { display: block; }
.length-group h3 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 0 0 8px; }
.word-list { display: flex; flex-wrap: wrap; gap: 8px; }
.word-pill {
  display: inline-flex; align-items: center;
  padding: 6px 12px; border-radius: 999px;
  background: var(--chip-bg); color: var(--blue-dark);
  font-size: 13px; font-weight: 600;
}
:root[data-theme="gamer"] .word-pill { background: var(--chip-bg); color: var(--color-primary-strong); }

/* ── Board Game Word Checker: same category of previously-undiscovered
   gap as Word Unscrambler above — the result/verdict area was never
   given CSS since the tool never returned a working result before its
   dictionary was fixed. ── */
.checker-row { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.checker-row .field { flex: 1; min-width: 200px; }
.checker-result {
  margin-top: 20px; padding: 18px 20px;
  background: var(--surface-alt); border: 1px solid var(--line); border-radius: 14px;
}
.result-verdict { font-size: 20px; font-weight: 700; color: var(--ink); margin: 8px 0 6px; }
.disclaimer {
  margin-top: 16px; padding: 12px 14px;
  background: var(--color-warning-soft); border: 1px solid var(--badge-planned-border);
  border-radius: 10px; font-size: 13px; line-height: 1.55; color: var(--muted);
}
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.seo-tag {
  font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: 999px;
  background: var(--chip-bg); color: var(--blue-dark);
}
:root[data-theme="gamer"] .seo-tag { color: var(--color-primary-strong); }
.game-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.game-note { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.game-note h3 { margin: 0 0 6px; font-size: 15px; }
:root[data-theme="gamer"] .game-note { background: var(--card-bg); border-color: var(--line); }
.microcopy { font-size: 13px; color: var(--muted); margin: 0; }
.more-options-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 16px; background: var(--surface-alt); border-top: 1px solid var(--line); }

.toggle-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 13px 16px; background: var(--surface-alt); border-top: 1px solid var(--line);
}
.toggle-row .field-label { margin: 0; }
.toggle-row .field-help { display: block; margin-top: 2px; }
.toggle-row input[type="checkbox"] { width: 22px; height: 22px; min-width: 22px; accent-color: var(--color-primary); cursor: pointer; }

.mode-fieldset { border: none; padding: 0; margin: 0 0 18px; }
.mode-legend { font-size: 14px; font-weight: 600; color: var(--ink); margin: 0 0 10px; padding: 0; }
.radio-group { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mode-option {
  position: relative; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px 14px 44px;
  cursor: pointer; background: var(--surface-alt); transition: border-color 0.15s, background 0.15s;
}
.mode-option input { position: absolute; left: 14px; top: 16px; width: 18px; height: 18px; accent-color: var(--color-primary); cursor: pointer; }
.mode-option .mode-title { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin: 0 0 3px; }
.mode-option .mode-help { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.mode-option:has(input:checked) { border-color: var(--color-primary); background: var(--color-primary-soft); }
:root[data-theme="gamer"] .mode-option:has(input:checked) {
  border-color: rgba(124,58,237,0.5);
  box-shadow: 0 0 0 1px rgba(124,58,237,0.4), 0 0 20px rgba(124,58,237,0.3), 0 0 60px rgba(124,58,237,0.15);
  background: rgba(124,58,237,0.08);
}
.content-card ul { margin: 0; padding-left: 20px; }
.content-card li { font-size: 17px; color: var(--ink); line-height: 1.6; margin: 0 0 8px; }
@media (max-width: 600px) {
  .radio-group { grid-template-columns: 1fr; }
}

.results-panel {
  background: var(--surface); border: 1.5px solid rgba(37,99,235,.25); border-radius: 20px;
  box-shadow: 0 0 0 4px rgba(37,99,235,.04), 0 8px 24px rgba(37,99,235,.10), 0 24px 48px rgba(37,99,235,.06);
  padding: 24px; position: sticky; top: 24px;
}
:root[data-theme="gamer"] .results-panel {
  border-color: rgba(124,58,237,0.5);
  box-shadow: 0 0 0 1px rgba(124,58,237,0.4), 0 0 20px rgba(124,58,237,0.3), 0 0 60px rgba(124,58,237,0.15), 0 0 120px rgba(124,58,237,0.07);
}
.kpi-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); margin: 0 0 6px; }
.kpi-number { font-size: clamp(36px, 5.5vw, 52px); font-weight: 800; line-height: 1; color: var(--color-primary); font-variant-numeric: tabular-nums; margin: 0 0 6px; }
.kpi-number.positive { color: var(--green); }
.kpi-number.negative { color: var(--red); }
.kpi-context { font-size: 13px; color: var(--muted); margin: 0 0 12px; line-height: 1.4; }
.disclaimer-inline { font-size: 11px; color: var(--muted); margin: -8px 0 14px; line-height: 1.4; }

.metric-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-bottom: 16px; }
.metric-box { background: var(--surface-alt); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.metric-box .m-label { font-size: 11px; color: var(--muted); margin: 0 0 4px; display: block; }
.metric-box .m-value { font-size: 17px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; display: block; }
.metric-box .m-value.positive { color: var(--green); }
.metric-box .m-value.negative { color: var(--red); }

.math-card { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-bottom: 12px; }
.math-row { display: flex; justify-content: space-between; align-items: center; padding: 9px 13px; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--ink); }
.math-row:last-child { border-bottom: none; }
.math-row strong { font-variant-numeric: tabular-nums; font-weight: 600; }
.math-row.gross { background: var(--surface-alt); font-weight: 600; color: var(--ink); }
.math-row.total { background: var(--surface-alt); font-weight: 700; color: var(--ink); }
.math-row.total strong { font-weight: 800; }

.summary-callout { background: var(--green-soft); border-radius: 10px; padding: 10px 14px; }
.summary-callout p { font-size: 13px; color: #166534; margin: 0; line-height: 1.5; }
.summary-callout.negative-callout { background: var(--red-soft); }
.summary-callout.negative-callout p { color: #991B1B; }
:root[data-theme="gamer"] .summary-callout { background: rgba(74,222,128,0.1); }
:root[data-theme="gamer"] .summary-callout p { color: #86EFAC; }

.cta-banner { background: linear-gradient(135deg, var(--color-primary-soft), var(--surface)); border: 1.5px solid var(--color-primary); border-radius: 20px; padding: 24px 28px; margin-bottom: 24px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-banner-text h2 { font-size: 19px; font-weight: 700; color: var(--ink); margin: 0 0 6px; }
.cta-banner-text p { font-size: 14px; color: var(--ink); margin: 0; max-width: 480px; line-height: 1.5; }
.cta-banner-btn { background: var(--color-primary); color: #fff; font-size: 15px; font-weight: 700; padding: 12px 24px; border-radius: 10px; text-decoration: none; white-space: nowrap; }
:root[data-theme="gamer"] .cta-banner { border-color: rgba(124,58,237,0.5); box-shadow: 0 0 0 1px rgba(124,58,237,0.4), 0 0 20px rgba(124,58,237,0.3), 0 0 60px rgba(124,58,237,0.15), 0 0 120px rgba(124,58,237,0.07); }
:root[data-theme="gamer"] .cta-banner-btn { background: #8B5CF6; }

.platform-toggles { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 4px; }
.platform-pill { display: flex; align-items: center; gap: 8px; background: var(--surface-alt); border: 1.5px solid var(--line); border-radius: 999px; padding: 8px 16px 8px 12px; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--ink); user-select: none; transition: border-color .15s, background .15s; }
.platform-pill input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--color-primary); cursor: pointer; }
.platform-pill.on { border-color: var(--color-primary); background: var(--color-primary-soft); color: var(--ink); }
.platform-pill.disabled { opacity: .5; cursor: not-allowed; }

.results-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-bottom: 22px; }
.platform-card { background: var(--surface); border: 1.5px solid var(--line); border-radius: 18px; padding: 20px; }
.platform-card.active { border-color: rgba(37,99,235,.3); box-shadow: 0 0 0 4px rgba(37,99,235,.04), 0 8px 24px rgba(37,99,235,.08); }
:root[data-theme="gamer"] .platform-card.active { border-color: rgba(124,58,237,0.5); box-shadow: 0 0 0 1px rgba(124,58,237,0.4), 0 0 20px rgba(124,58,237,0.3), 0 0 60px rgba(124,58,237,0.15), 0 0 120px rgba(124,58,237,0.07); }
.platform-card h3 { font-size: 16px; font-weight: 700; color: var(--ink); margin: 0 0 4px; }
.platform-card .net { font-size: 30px; font-weight: 800; margin: 6px 0 4px; font-variant-numeric: tabular-nums; }
.platform-card .net.positive { color: var(--green); }
.platform-card .net.negative { color: var(--red); }
.platform-card .sub-line { font-size: 13px; color: var(--muted); margin: 0 0 12px; }
.platform-card .breakdown { font-size: 13px; color: var(--ink); display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.platform-card .breakdown span { display: flex; justify-content: space-between; }
.platform-card a.full-link { font-size: 13px; font-weight: 600; color: var(--color-primary); text-decoration: none; }
.platform-card .best-badge { display: inline-block; background: var(--green-soft); color: #166534; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 3px 9px; border-radius: 999px; margin-bottom: 8px; }

.combined-summary { background: var(--green-soft); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; font-size: 15px; color: #166534; }
.combined-summary strong { font-weight: 700; }
:root[data-theme="gamer"] .combined-summary { background: rgba(74,222,128,0.1); color: #86EFAC; }

.affiliate-callout { background: var(--color-secondary-soft); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin: 24px auto; max-width: 760px; }
.affiliate-callout p { font-size: 15px; color: var(--ink); margin: 0; line-height: 1.55; }
.affiliate-callout a { color: var(--color-primary); font-weight: 600; }
.ad strong { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; }
.ad-slot { min-height: 60px; display: flex; align-items: center; justify-content: center; }
.ad-slot span { font-size: 13px; color: var(--muted); }

@media (max-width: 900px) {
  .hero-grid, .calc-grid { grid-template-columns: 1fr; }
  .results-panel { position: static; }
}
@media (max-width: 600px) {
  .input-grid, .more-options-grid, .metric-row { grid-template-columns: 1fr; }
  .hero-grid h1 { font-size: 28px; }
}

@media (max-width: 920px) {
  .hero, .two-col, .grid2, .grid3, .grid4, .category-grid, .search-results, .related-grid { grid-template-columns: 1fr; }
  .nav {
    align-items: stretch;
    justify-content: flex-start;
    gap: 10px;
    padding: 10px 0;
  }
  .menu-toggle { display: inline-flex; }
  .nav-panel {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: var(--shadow);
  }
  .nav-panel.is-open { display: flex; }
  .nav-group {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    flex: 0 0 auto;
  }
  .nav-group-links {
    flex: 0 0 auto;
  }
  .nav-group-utilities {
    flex: 0 0 auto;
    justify-content: flex-start;
  }
  .nav-group + .nav-group {
    padding-top: 12px;
    border-top: 1px solid var(--line);
  }
  .nav-group-label {
    display: block;
  }
  .navlinks {
    width: 100%;
    flex: 0 0 auto;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 8px;
  }
  .navlinks a {
    display: block;
    width: 100%;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--surface-alt);
  }
  .nav-utility-slot {
    justify-content: flex-start;
  }
  .nav-utility-note {
    display: block;
  }
  .theme-toggle {
    width: 100%;
    align-self: stretch;
    justify-content: space-between;
    padding: 10px 12px;
    font-size: 12px;
  }
  .theme-toggle-copy {
    white-space: normal;
  }
  .theme-toggle-helper {
    white-space: normal;
  }
  .theme-toggle-control {
    justify-content: flex-end;
    margin-left: auto;
  }
  .theme-toggle-text { font-size: 11px; }
  .theme-toggle-label { font-size: 12px; }
  .sticky-result { position: static; }
  .hero-simple { padding: 16px 0 8px; }
  .search-module { padding: 20px; }
  .search-form { grid-template-columns: 1fr; gap: 10px; }
  .search-results-wrap { margin-top: 14px; padding-top: 14px; }
  .search-helper-block { align-items: flex-start; }
  .search-helper-list { justify-content: flex-start; }
  .popular-controls { display: none; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .card, .search-module { padding: 18px; }
  .h1 { font-size: 34px; }
  .lead { font-size: 17px; }
  .search-form input { min-height: 54px; font-size: 16px; }
  .navlinks { gap: 8px; font-size: 13px; }
  .menu-toggle { min-height: 40px; padding: 0 12px; }
  .theme-toggle {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 10px;
  }
  .theme-toggle-copy,
  .theme-toggle-control {
    width: 100%;
  }
  .theme-toggle-control {
    justify-content: space-between;
    margin-left: 0;
  }
  .theme-toggle-text {
    text-align: left;
  }
}

/* ── D&D Dice Table: environment scenes + dice tray + controls ──
   Environment backgrounds are intentionally theme-independent (same
   art in classic and gamer mode, like a game screenshot would be) —
   only the surrounding chrome (tray, buttons, text) follows the
   site's classic/gamer tokens. */
.dnd-scene {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 28px 20px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  overflow: hidden;
  transition: background 420ms ease;
  background: linear-gradient(180deg, #3a3226 0%, #5a4a30 55%, #2c2418 100%);
}
.dnd-scene[data-env="forest"]     { background: linear-gradient(180deg, #16281c 0%, #2f4a2c 55%, #0e1a10 100%); }
.dnd-scene[data-env="volcano"]    { background: linear-gradient(180deg, #2a1210 0%, #6e2010 45%, #170805 100%); }
.dnd-scene[data-env="frostpeak"]  { background: linear-gradient(180deg, #cfe6f5 0%, #7fa8c9 55%, #294860 100%); }
.dnd-scene[data-env="castle-siege"] { background: linear-gradient(180deg, #2e2f36 0%, #4a4b56 55%, #1a1a20 100%); }
.dnd-scene[data-env="desert"]     { background: linear-gradient(180deg, #f4d896 0%, #d9a355 55%, #8a5a2a 100%); }
.dnd-scene[data-env="night"]      { background: linear-gradient(180deg, #0a0e2a 0%, #161c40 55%, #05060f 100%); }
.dnd-scene[data-env="underwater-grotto"] { background: linear-gradient(180deg, #0a3a45 0%, #14606e 55%, #052026 100%); }

.dice-tray {
  width: 70%;
  min-width: 240px;
  height: 220px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.28);
  background: rgba(9, 12, 20, 0.34);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.72);
  font-size: 14px;
  text-align: center;
}

/* Controls + tray sit side by side so roll type, dice, and the Roll
   button are all visible together without scrolling. */
.dnd-table { display: grid; grid-template-columns: minmax(260px, 340px) 1fr; gap: 20px; align-items: start; margin-top: 14px; }
.dnd-stage { display: flex; flex-direction: column; }
.dnd-stage .dnd-scene { margin: 0; }

.env-picker { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.env-pick {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 999px;
  background: var(--pill-bg); border: 1px solid var(--pill-border);
  color: var(--pill-text); font-size: 13px; font-weight: 700;
  cursor: pointer; transition: transform 120ms ease, box-shadow 120ms ease;
}
.env-pick:hover { transform: translateY(-1px); }
.env-pick.active { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
:root[data-theme="gamer"] .env-pick.active { background: var(--color-primary-strong); border-color: var(--color-primary-strong); color: #0b0518; }

.preset-row { display: flex; flex-wrap: wrap; gap: 8px; }
.preset-btn {
  padding: 8px 14px; border-radius: 10px;
  background: var(--chip-bg); border: 1px solid var(--line);
  color: var(--ink); font-size: 13px; font-weight: 600; cursor: pointer;
}
.preset-btn:hover { background: var(--chip-hover-bg); }
.preset-btn.active { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
:root[data-theme="gamer"] .preset-btn.active { background: var(--color-primary-strong); color: #0b0518; }

.game-picker { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.game-pick {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  padding: 14px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  cursor: pointer; text-align: left;
  transition: border-color 120ms ease, transform 120ms ease;
}
.game-pick:hover { border-color: var(--blue); transform: translateY(-1px); }
.game-pick-icon {
  width: 30px; height: 30px; border-radius: 8px; flex: none;
  background: var(--blue-soft); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
}
.game-pick-name { font-size: 13px; font-weight: 700; color: var(--ink); }
.game-pick-notation { font-size: 12px; color: var(--muted); }
.game-pick.active { background: var(--color-primary); border-color: var(--color-primary); }
.game-pick.active .game-pick-name, .game-pick.active .game-pick-notation { color: #fff; }
.game-pick.active .game-pick-icon { background: rgba(255,255,255,0.2); color: #fff; }
:root[data-theme="gamer"] .game-pick.active { background: var(--color-primary-strong); border-color: var(--color-primary-strong); }
:root[data-theme="gamer"] .game-pick.active .game-pick-name, :root[data-theme="gamer"] .game-pick.active .game-pick-notation { color: #0b0518; }
:root[data-theme="gamer"] .game-pick.active .game-pick-icon { background: rgba(11,5,24,0.16); color: #0b0518; }
@media (max-width: 640px) { .game-picker { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.dice-chip-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.dice-chip {
  display: inline-flex; align-items: center; gap: 4px;
  min-width: 32px; height: 32px; padding: 0 8px;
  border-radius: 8px; border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--ink); font-weight: 700; font-size: 14px;
}
.dice-chip-type { font-size: 10px; color: var(--muted); font-weight: 700; text-transform: uppercase; }

.dice-stage {
  min-height: 180px; border-radius: var(--radius);
  border: 1px dashed var(--line-strong);
  background: var(--surface-alt);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 14px; text-align: center; padding: 20px;
}

.speed-row { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.speed-row input[type="range"] { flex: 1; accent-color: var(--color-primary); }
:root[data-theme="gamer"] .speed-row input[type="range"] { accent-color: var(--color-primary-strong); }
.speed-label { font-size: 13px; color: var(--muted); min-width: 88px; }
.speed-label-end { text-align: right; }

.roll-log { max-height: 220px; overflow-y: auto; }
.roll-log-entry { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.roll-log-entry:last-child { border-bottom: none; }
.roll-log-entry .roll-log-total { font-weight: 700; color: var(--ink); }

@media (max-width: 720px) {
  .dice-tray { width: 92%; height: 180px; }
  .dnd-scene { min-height: 260px; padding: 20px 14px; }
  .dnd-table { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════════
   Design-drift cleanup (Task #4) — migrated from page-local
   <style> blocks. Each section below came from one page's own
   <style> tag and is grouped/commented by source page so it stays
   traceable. Rules already used CSS variables in most cases, so
   gamer-mode should mostly fall out for free; anywhere a page used
   a hardcoded fallback color instead of a real token, that's fixed
   here as part of the migration.
   ══════════════════════════════════════════════════════════════ */

/* ── Page: /colors/paint-finish-selector/ ── */
.sheen-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
  margin-top: 20px;
}
@media (max-width: 700px) { .sheen-grid { grid-template-columns: 1fr; } }
.sf { margin-bottom: 14px; }
.sf label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
  margin-bottom: 5px;
}
.sf select {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  background: var(--surface);
  color: var(--ink);
}
.sf select:focus { outline: none; border-color: var(--color-primary-strong); }
.sheen-badge {
  display: inline-block;
  font-size: 22px;
  font-weight: 800;
  color: var(--color-primary-strong);
  background: var(--color-primary-soft);
  border-radius: 10px;
  padding: 6px 16px;
  margin-bottom: 6px;
}
.sheen-why { font-size: 14px; line-height: 1.6; color: var(--ink); margin-top: 10px; }
.sheen-warning {
  background: var(--color-warning-soft);
  border: 1.5px solid rgba(180,83,9,.3);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  color: var(--color-warning);
  margin-top: 10px;
  display: none;
}
.sheen-chart {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-top: 16px;
}
.sheen-chart th {
  background: var(--surface-alt);
  font-weight: 700;
  text-align: left;
  padding: 8px 10px;
  border-bottom: 2px solid var(--line);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
}
.sheen-chart td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink); }
.sheen-chart tr:last-child td { border-bottom: none; }
.sheen-name { font-weight: 700; }
.dot { display:inline-block; width:9px; height:9px; border-radius:50%; background:var(--line); margin-right:2px; }
.dot.on { background: var(--color-primary-strong); }

/* ── Page: /colors/paint-coverage-calculator/ ── */
.pcalc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
  margin-top: 20px;
}
@media (max-width: 700px) { .pcalc-grid { grid-template-columns: 1fr; } }
.pcalc-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.pcalc-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pf { margin-bottom: 12px; }
.pf label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
  margin-bottom: 4px;
}
.pf input, .pf select {
  width: 100%;
  box-sizing: border-box;
  padding: 9px 11px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  background: var(--surface);
  color: var(--ink);
  transition: border-color .15s;
}
.pf input:focus, .pf select:focus { outline: none; border-color: var(--color-primary-strong); }
.res-big { font-size: 46px; font-weight: 800; color: var(--color-primary-strong); line-height: 1; }
.res-sub { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.res-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.res-row:last-child { border-bottom: none; }
.res-row .lbl { color: var(--muted); }
.res-row .val { font-weight: 700; color: var(--ink); }
.buy-callout {
  background: var(--color-success-soft);
  border: 1.5px solid rgba(22,163,74,.35);
  border-radius: 10px;
  padding: 11px 13px;
  font-size: 13px;
  color: #14532D;
  margin-top: 14px;
  line-height: 1.5;
}
.sec-divider {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  margin: 14px 0 8px;
}
/* .toggle-row is shared with /colors/paint-cost-estimator/ — consolidated
   into one definition below that covers both pages' markup shapes
   (a <div><input><label> pair, or a <label> wrapping input + text). */
.toggle-row {
  display: flex; align-items: center; gap: 8px; margin: 8px 0 10px;
  font-size: 14px; color: var(--ink); cursor: pointer;
}
.toggle-row label { font-size: 14px; color: var(--ink); cursor: pointer; }
.toggle-row input[type=checkbox] { width: 15px; height: 15px; cursor: pointer; accent-color: var(--color-primary-strong); }
.coverage-note { font-size: 12px; color: var(--muted); margin-top: 4px; font-style: italic; }

/* ── Page: /colors/paint-cost-estimator/ ── */
.cost-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
  margin-top: 20px;
}
@media (max-width: 700px) { .cost-grid { grid-template-columns: 1fr; } }
.dim-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.open-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cf { margin-bottom: 13px; }
.cf label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
  margin-bottom: 4px;
}
.cf input, .cf select {
  width: 100%;
  box-sizing: border-box;
  padding: 9px 11px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  background: var(--surface);
  color: var(--ink);
}
.cf input:focus, .cf select:focus { outline: none; border-color: var(--color-primary-strong); }
.sec-div {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  margin: 14px 0 8px;
}
.cost-total {
  font-size: 46px;
  font-weight: 800;
  color: var(--color-primary-strong);
  line-height: 1;
}
.cost-sub { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.cost-line {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.cost-line:last-child { border-bottom: none; }
.cost-line .cl { color: var(--muted); }
.cost-line .cv { font-weight: 700; color: var(--ink); }
.divider-line { border: none; border-top: 2px solid var(--line); margin: 10px 0; }
.pro-tag {
  background: var(--color-primary-soft);
  border-radius: 6px;
  padding: 9px 12px;
  margin-top: 12px;
  font-size: 13px;
  color: var(--color-primary-strong);
  font-weight: 600;
}

/* ── Page: /colors/image-palette-extractor/ ── */
.extractor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
  align-items: start;
}
@media (max-width: 700px) { .extractor-grid { grid-template-columns: 1fr; } }
.drop-zone {
  border: 2px dashed var(--line);
  border-radius: 14px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 40px 24px;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  text-align: center;
  min-height: 200px;
  position: relative;
}
.drop-zone:hover, .drop-zone.drag-over {
  border-color: var(--color-primary-strong);
  background: var(--color-primary-soft);
}
.drop-zone input[type=file] {
  position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%;
}
.dz-icon { color: var(--muted); }
.dz-label { font-size: 15px; font-weight: 600; color: var(--ink); }
.dz-sub { font-size: 12px; color: var(--muted); }
.dz-privacy {
  font-size: 11px; color: var(--muted);
  display: flex; align-items: center; gap: 4px;
}
.img-preview-wrap {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1.5px solid var(--line);
  display: none;
}
.img-preview-wrap.visible { display: block; }
#previewImg { width: 100%; display: block; max-height: 340px; object-fit: cover; }
.change-btn {
  position: absolute; bottom: 10px; right: 10px;
  padding: 5px 12px; border-radius: 20px;
  background: rgba(0,0,0,.6); color: #fff;
  font-size: 12px; font-weight: 600; cursor: pointer;
  border: none;
}
.change-btn:hover { background: rgba(0,0,0,.8); }
.palette-section { }
.palette-header {
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted); margin-bottom: 12px;
}
.palette-swatches {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 500px) { .palette-swatches { grid-template-columns: repeat(2, 1fr); } }
.p-swatch {
  border-radius: 12px; overflow: hidden;
  border: 1.5px solid var(--line);
  background: var(--surface);
}
.p-color { height: 72px; width: 100%; }
.p-body { padding: 8px 10px; }
.p-hex { font-size: 12px; font-weight: 700; font-family: monospace; color: var(--muted); margin-bottom: 6px; }
.p-copy {
  display: inline-block; font-size: 11px; font-weight: 600;
  color: var(--muted); cursor: pointer; margin-bottom: 4px;
  background: none; border: none; padding: 0; font-family: inherit;
}
.p-copy:hover { color: var(--ink); }
.p-match {
  display: inline-block; font-size: 11px; font-weight: 600;
  color: var(--color-primary-strong); text-decoration: none;
  padding: 3px 8px; border: 1px solid var(--color-primary-strong);
  border-radius: 20px; white-space: nowrap; display: block; text-align: center;
  margin-top: 4px;
}
.p-match:hover { background: var(--color-primary-strong); color: #fff; }
.count-row {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 16px; font-size: 13px; color: var(--muted);
}
.count-row label { font-weight: 600; color: var(--ink); }
.count-row select {
  padding: 5px 10px; border-radius: 8px;
  border: 1.5px solid var(--line); font-size: 13px;
  font-family: inherit; background: var(--surface); color: var(--ink);
}
.count-row select:focus { outline: none; border-color: var(--color-primary-strong); }
.palette-empty {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 10px;
  min-height: 200px; color: var(--muted); text-align: center;
}
.palette-empty svg { opacity: .3; }
.processing {
  display: none; align-items: center; gap: 10px;
  font-size: 13px; color: var(--muted); padding: 12px 0;
}
.processing.visible { display: flex; }
.spin {
  width: 18px; height: 18px; border: 2px solid var(--line);
  border-top-color: var(--color-primary-strong);
  border-radius: 50%; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Page: /colors/paint-color-matcher/ ──
   Migration note: this page's rules used var(--brand, #1D4ED8) and
   var(--text-muted, #6B7280) fallback patterns — --brand and --text-muted
   are not real tokens anywhere in :root, so those rules always rendered
   the hardcoded fallback hex regardless of theme (a real gamer-mode bug:
   active region chips / undertone pills stayed classic-blue in dark mode).
   Fixed here to the real tokens (--color-primary-strong / --muted). */
.region-chip {
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.region-chip:hover { background: var(--surface-alt); }
.region-chip.active { background: var(--color-primary-strong); color: #fff; border-color: var(--color-primary-strong); }
.undertone-toggle-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid var(--color-primary-strong);
  color: var(--color-primary-strong);
  background: transparent;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background .15s, color .15s;
}
.match-row-details[open] .undertone-toggle-pill {
  background: var(--color-primary-strong);
  color: #fff;
}
.match-row-details summary:hover .undertone-toggle-pill {
  background: var(--color-primary-strong);
  color: #fff;
}

/* ── Page: /guides/color-psychology/ ── */
.psych-hue-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin: 20px 0;
}
.psych-hue-card {
  border-radius: 12px;
  overflow: hidden;
  border: 1.5px solid var(--line);
  background: var(--surface);
}
.psych-hue-swatch {
  height: 56px;
}
.psych-hue-body {
  padding: 12px 14px;
}
.psych-hue-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 4px;
}
.psych-hue-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 8px;
}
.psych-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  background: var(--surface-alt);
  color: var(--muted);
  border: 1px solid var(--line);
}
.psych-hue-note {
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
}
.callout-box {
  background: var(--surface-alt);
  border-left: 4px solid var(--color-primary-strong);
  border-radius: 0 10px 10px 0;
  padding: 14px 18px;
  margin: 16px 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink);
}
.callout-box strong { display: block; margin-bottom: 4px; font-size: 14px; }

/* ── Page: /colors/paint-color-scheme-generator/ ── */
.scheme-top {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  margin-top: 24px;
}
.scheme-controls { flex: 1; min-width: 0; }
.scheme-wheel-col {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  position: sticky;
  top: 88px;
}
@media (max-width: 720px) {
  .scheme-top { flex-direction: column; }
  .scheme-wheel-col { position: static; order: -1; align-self: center; width: 100%; }
}
.input-mode-tabs {
  display: flex; gap: 0; margin-bottom: 14px;
  border: 1.5px solid var(--line); border-radius: 10px;
  overflow: hidden; width: fit-content;
}
.input-mode-tab {
  padding: 8px 16px; font-size: 13px; font-weight: 600;
  border: none; background: var(--surface); color: var(--muted);
  cursor: pointer; transition: all .15s;
}
.input-mode-tab.active { background: var(--color-primary-strong); color: #fff; }
.input-mode-tab:not(:last-child) { border-right: 1.5px solid var(--line); }
.input-panel { margin-bottom: 18px; }
.input-panel.hidden { display: none; }
.paint-search-outer { position: relative; }
.paint-search-outer input[type=text] {
  width: 100%; box-sizing: border-box;
  padding: 11px 14px; font-size: 15px; font-family: inherit;
  border: 1.5px solid var(--line); border-radius: 10px;
  background: var(--surface); color: var(--ink); outline: none;
}
.paint-search-outer input[type=text]:focus { border-color: var(--color-primary-strong); }
.paint-dropdown {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 50;
  background: var(--surface); border: 1.5px solid var(--line);
  border-top: none; border-radius: 0 0 10px 10px;
  max-height: 220px; overflow-y: auto;
  box-shadow: var(--shadow); display: none;
}
.paint-dropdown.open { display: block; }
.paint-option {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; cursor: pointer; font-size: 13px;
  border-bottom: 1px solid var(--line);
}
.paint-option:last-child { border-bottom: none; }
.paint-option:hover { background: var(--surface-alt); }
.po-swatch { width: 24px; height: 24px; border-radius: 5px; flex-shrink: 0; border: 1px solid var(--line); }
.po-name { font-weight: 600; color: var(--ink); }
.po-brand { font-size: 11px; color: var(--muted); }
.selected-paint-chip {
  display: none; align-items: center; gap: 10px;
  margin-top: 10px; padding: 8px 12px;
  background: var(--surface-alt); border-radius: 8px;
  font-size: 13px;
}
.selected-paint-chip.visible { display: flex; }
.sp-swatch { width: 28px; height: 28px; border-radius: 6px; flex-shrink: 0; border: 1px solid var(--line); }
.sp-name { font-weight: 600; color: var(--ink); }
.sp-brand { font-size: 11px; color: var(--muted); }
.sp-hex { font-family: monospace; font-size: 11px; color: var(--muted); margin-left: auto; }
.scheme-input-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.hex-picker-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 8px 12px;
}
.hex-picker-wrap input[type=color] {
  width: 44px; height: 44px;
  border: none; background: none;
  padding: 0; cursor: pointer; border-radius: 6px;
}
.hex-picker-wrap input[type=text] {
  width: 90px; font-size: 16px; font-weight: 700;
  border: none; outline: none;
  font-family: monospace;
  background: transparent;
  color: var(--ink);
}
.harmony-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.harmony-tab {
  padding: 6px 14px; border-radius: 20px;
  border: 1.5px solid var(--line);
  font-size: 13px; font-weight: 600;
  cursor: pointer; background: var(--surface); color: var(--ink);
  transition: all .15s;
}
.harmony-tab.active {
  background: var(--color-primary-strong);
  color: #fff; border-color: var(--color-primary-strong);
}
.palette-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; align-items: stretch; }
.swatch-card {
  flex: 1; min-width: 130px; max-width: 180px;
  border-radius: 12px; overflow: hidden;
  border: 1.5px solid var(--line); background: var(--surface);
}
.swatch-color { height: 80px; width: 100%; }
.swatch-body { padding: 10px 10px 8px; }
.swatch-hex { font-size: 12px; font-weight: 700; font-family: monospace; color: var(--muted); }
.swatch-role { font-size: 11px; color: var(--muted); margin-bottom: 6px; }
.swatch-match-btn {
  display: inline-block; font-size: 11px; font-weight: 600;
  color: var(--color-primary-strong); text-decoration: none;
  padding: 3px 8px; border: 1px solid var(--color-primary-strong);
  border-radius: 20px; white-space: nowrap; margin-top: 6px;
}
.swatch-match-btn:hover { background: var(--color-primary-strong); color: #fff; }
.swatch-card:hover { border-color: var(--blue); }
:root[data-theme="gamer"] .swatch-card:hover { border-color: rgba(124, 58, 237, 0.6); box-shadow: 0 0 0 1px rgba(124, 58, 237, 0.4), 0 0 20px rgba(124, 58, 237, 0.3); }
.swatch-base-teach {
  display: flex; flex-direction: column;
  min-width: 160px; max-width: 200px; cursor: default;
}
.base-band {
  display: flex; align-items: center; gap: 9px;
  padding: 10px 12px; text-decoration: none;
  transition: filter .15s;
}
.base-band:hover { filter: brightness(1.06); }
.base-band-base {
  min-height: 76px;
  border-top: 1px solid rgba(255,255,255,.15);
  border-bottom: 1px solid rgba(255,255,255,.15);
  display: flex; align-items: center; gap: 9px; padding: 10px 12px;
}
.band-arrow { font-size: 15px; flex-shrink: 0; }
.band-info { flex: 1; min-width: 0; }
.band-label { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; display: block; }
.band-note { font-size: 10px; opacity: .7; display: block; margin-top: 1px; }
.band-hex-sm { font-size: 11px; font-family: monospace; font-weight: 600; display: block; margin-top: 3px; }
.band-b-badge {
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(255,255,255,.25); border: 2px solid rgba(255,255,255,.7);
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 900; flex-shrink: 0;
}
.band-match-link {
  font-size: 10px; font-weight: 600; text-decoration: none;
  opacity: .8; white-space: nowrap; display: block; margin-top: 5px;
  border: 1px solid currentColor; border-radius: 20px; padding: 2px 7px; width: fit-content;
}
.band-match-link:hover { opacity: 1; }
.mono-row { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; margin-bottom: 24px; }
.mono-chip {
  flex: 1; min-width: 50px; height: 44px;
  border-radius: 8px; border: 1.5px solid var(--line);
  display: flex; align-items: flex-end;
  padding: 3px 4px; cursor: pointer; text-decoration: none;
}
.mono-chip span { font-size: 10px; font-weight: 700; font-family: monospace; opacity: .6; }
.explain-card {
  margin-bottom: 20px;
  padding: 14px 16px;
  background: var(--surface-alt);
  border-radius: 10px;
  border: 1.5px solid var(--line);
  border-left: 4px solid var(--color-primary-strong);
  transition: border-left-color .25s;
  cursor: default;
}
.explain-card-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .07em; color: var(--muted); margin-bottom: 7px;
  display: flex; align-items: center; gap: 7px;
}
.explain-dot {
  width: 10px; height: 10px; border-radius: 50%;
  display: inline-block; flex-shrink: 0;
  border: 1.5px solid rgba(0,0,0,.15);
}
.explain-text {
  font-size: 13px; line-height: 1.6; color: var(--ink); margin: 0;
}
.swatch-base-teach { cursor: pointer; }
.swatch-base-teach.selected-explain {
  outline: 3px solid var(--color-primary-strong);
  outline-offset: 2px;
}
.section-label {
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
  color: var(--muted); margin-bottom: 10px;
}
.sat-slider-wrap {
  width: 220px;
  margin-top: 10px;
}
.sat-slider-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.sat-slider-label span:first-child {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--muted);
}
.sat-slider-val {
  display: flex; align-items: center; gap: 2px;
}
#satValInput {
  width: 42px; text-align: center;
  font-size: 12px; font-weight: 700; font-family: monospace;
  color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 5px;
  padding: 2px 3px;
  background: var(--surface);
  -moz-appearance: textfield;
}
#satValInput::-webkit-inner-spin-button,
#satValInput::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
#satValInput:focus {
  outline: none; border-color: var(--color-primary-strong);
}
.sat-pct-label {
  font-size: 12px; font-weight: 700; color: var(--muted);
}
#satSlider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%; height: 10px;
  border-radius: 5px;
  cursor: pointer; outline: none;
  border: none;
}
#satSlider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px; height: 20px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.25), 0 0 0 1.5px rgba(0,0,0,.12);
  cursor: grab;
}
#satSlider:active::-webkit-slider-thumb { cursor: grabbing; }
#satSlider::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%;
  background: #fff; border: none;
  box-shadow: 0 1px 4px rgba(0,0,0,.25), 0 0 0 1.5px rgba(0,0,0,.12);
  cursor: grab;
}
.wheel-title {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .07em; color: var(--muted); text-align: center;
}
.wheel-wrap {
  cursor: crosshair;
  user-select: none;
  -webkit-user-select: none;
  position: relative;
  width: 220px; height: 220px;
}
#wheelCanvas {
  display: block;
  width: 220px; height: 220px;
  border-radius: 50%;
}
.wheel-dots {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none;
}
.w-dot {
  position: absolute;
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1.5px rgba(0,0,0,.22), 0 1px 4px rgba(0,0,0,.25);
  transform: translate(-50%, -50%);
  transition: left .35s cubic-bezier(.4,0,.2,1), top .35s cubic-bezier(.4,0,.2,1);
}
.w-dot.is-base {
  width: 26px; height: 26px;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2.5px rgba(0,0,0,.35), 0 3px 10px rgba(0,0,0,.35);
  z-index: 2;
}
.w-dot.is-base::after {
  content: 'B';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 9px;
  font-weight: 800;
  color: rgba(255,255,255,0.85);
  font-family: Inter, sans-serif;
  line-height: 1;
  pointer-events: none;
}
#wheelLines {
  position: absolute;
  top: 0; left: 0;
  width: 220px; height: 220px;
  pointer-events: none;
}
.w-dot.is-base-tint {
  background: transparent !important;
  box-shadow: none;
  opacity: .75;
}
.wheel-hint {
  font-size: 11px; color: var(--muted); margin-bottom: 6px;
  opacity: 0.7; font-style: italic;
}
.wheel-legend {
  display: flex; flex-direction: column; gap: 5px;
  width: 220px;
}
.legend-row {
  display: flex; align-items: center; gap: 7px;
  font-size: 12px; color: var(--muted);
}
.legend-dot {
  width: 11px; height: 11px; border-radius: 50%;
  flex-shrink: 0;
  border: 1.5px solid rgba(0,0,0,.15);
}
.email-palette-wrap { margin-top: 4px; }
.email-palette-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px; border-radius: 20px;
  border: 1.5px solid var(--color-primary-strong);
  background: transparent; color: var(--color-primary-strong);
  font-size: 13px; font-weight: 600; cursor: pointer;
  transition: all .15s;
}
.email-palette-btn:hover {
  background: var(--color-primary-strong); color: #fff;
}
.email-form {
  display: none;
  margin-top: 12px;
  padding: 14px 16px;
  background: var(--surface-alt);
  border-radius: 10px;
  border: 1.5px solid var(--line);
}
.email-form.open { display: block; }
.email-input-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.email-form input[type=email] {
  flex: 1; min-width: 180px;
  padding: 9px 12px; border-radius: 8px;
  border: 1.5px solid var(--line);
  font-size: 14px; font-family: inherit;
  background: var(--surface); color: var(--ink);
}
.email-form input[type=email]:focus {
  outline: none; border-color: var(--color-primary-strong);
}
.email-send-btn {
  padding: 9px 18px; border-radius: 8px;
  background: var(--color-primary-strong); color: #fff;
  border: none; font-size: 14px; font-weight: 600;
  cursor: pointer;
}
.email-send-btn:hover { opacity: .88; }
.email-note { font-size: 11px; color: var(--muted); margin: 0; }
.email-success {
  font-size: 13px; font-weight: 600;
  color: var(--color-success); margin-top: 8px; display: none;
}

/* ── Page: /colors/brand-color-generator/ ── */
.seed-section {
  margin-bottom: 32px;
  padding: 18px 20px;
  background: var(--surface-alt);
  border: 1.5px solid var(--line);
  border-radius: 12px;
}
.seed-header {
  display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px;
}
.seed-title {
  font-size: 15px; font-weight: 700; color: var(--ink);
}
.seed-optional {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .07em; color: var(--muted);
  background: var(--line); padding: 2px 7px; border-radius: 20px;
}
.seed-wheel-area {
  display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap;
}
.seed-canvas-wrap {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
#seedWheel {
  width: 180px; height: 180px; cursor: crosshair; display: block;
}
.seed-wheel-hint {
  font-size: 11px; color: var(--muted); text-align: center;
}
.seed-sat-wrap { width: 180px; display: flex; flex-direction: column; gap: 12px; }
.seed-ctrl { display: flex; flex-direction: column; gap: 5px; }
.seed-sat-row {
  display: flex; align-items: center; justify-content: space-between;
}
.seed-sat-row .seed-sat-label {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--muted);
}
.seed-dial-range {
  width: 100%; -webkit-appearance: none; appearance: none;
  height: 10px; border-radius: 5px; border: none; outline: none; cursor: pointer;
}
.seed-dial-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.25), 0 0 0 1.5px rgba(0,0,0,.12);
  cursor: grab;
}
.seed-dial-range:active::-webkit-slider-thumb { cursor: grabbing; }
.seed-dial-range::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%; background: #fff; border: none;
  box-shadow: 0 1px 4px rgba(0,0,0,.25), 0 0 0 1.5px rgba(0,0,0,.12);
}
.seed-dial-num {
  width: 38px; text-align: center;
  font-size: 11px; font-weight: 700; font-family: monospace; color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 5px;
  padding: 2px 3px; background: var(--surface);
  -moz-appearance: textfield;
}
.seed-dial-num::-webkit-inner-spin-button,
.seed-dial-num::-webkit-outer-spin-button { -webkit-appearance: none; }
.seed-dial-num:focus { outline: none; border-color: var(--color-primary-strong); }
.seed-pct { font-size: 11px; color: var(--muted); font-weight: 700; }
.seed-info-col {
  display: flex; flex-direction: column; gap: 10px; padding-top: 4px;
}
.seed-preview-swatch {
  width: 64px; height: 64px; border-radius: 10px;
  border: 1.5px solid var(--line); background: var(--surface);
  transition: background .1s;
}
#seedHexInput {
  width: 110px; font-family: monospace;
  font-size: 14px; font-weight: 600; color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 8px;
  padding: 7px 10px; background: var(--surface); display: block;
}
#seedHexInput:focus { outline: none; border-color: var(--color-primary-strong); }
.seed-hex-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--muted); margin-bottom: 5px;
}
.seed-clear {
  font-size: 12px; font-weight: 600; color: var(--muted);
  background: none; border: none; cursor: pointer; padding: 0;
  text-decoration: underline; display: none;
}
.seed-note {
  font-size: 12px; color: var(--muted); margin-top: 12px; line-height: 1.55;
}
.brand-step { margin-bottom: 32px; }
.step-header {
  display: flex; align-items: center; gap: 12px; margin-bottom: 14px;
}
.step-num {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--color-primary-strong); color: #fff;
  font-size: 12px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.step-num.completed { background: var(--color-success); }
.step-title { font-size: 15px; font-weight: 700; color: var(--ink); }
.option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 8px;
}
.option-grid.grid-3 { grid-template-columns: repeat(3, 1fr); }
.option-btn {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 3px; padding: 11px 13px;
  border: 1.5px solid var(--line); border-radius: 10px;
  background: var(--surface); cursor: pointer; text-align: left;
  transition: all .15s;
}
.option-btn:hover { border-color: var(--color-primary-strong); background: var(--surface-alt); }
.option-btn.selected {
  border-color: var(--color-primary-strong);
  background: var(--color-primary-strong); color: #fff;
}
.option-btn.selected .opt-sub { color: rgba(255,255,255,.72); }
.opt-swatch {
  width: 20px; height: 20px; border-radius: 4px;
  border: 1px solid rgba(0,0,0,.08);
  margin-bottom: 2px; flex-shrink: 0;
}
.opt-label { font-size: 13px; font-weight: 700; color: inherit; line-height: 1.25; }
.opt-sub { font-size: 11px; color: var(--muted); line-height: 1.35; }
.opt-bar {
  width: 100%; height: 5px; border-radius: 3px;
  margin-bottom: 5px;
}
.trait-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.trait-chip {
  padding: 7px 14px; border-radius: 20px;
  border: 1.5px solid var(--line); background: var(--surface);
  font-size: 13px; font-weight: 600; cursor: pointer; color: var(--ink);
  transition: all .15s; user-select: none;
}
.trait-chip:hover { border-color: var(--color-primary-strong); }
.trait-chip.selected {
  background: var(--color-primary-strong);
  border-color: var(--color-primary-strong); color: #fff;
}
.trait-limit-note { font-size: 12px; color: var(--muted); margin-top: 8px; }
.generate-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 30px; border-radius: 10px;
  background: var(--color-primary-strong); color: #fff;
  border: none; font-size: 15px; font-weight: 700;
  cursor: pointer; transition: opacity .15s; margin-top: 4px;
}
.generate-btn:hover { opacity: .88; }
.generate-btn:disabled { opacity: .38; cursor: not-allowed; }
.brand-results { display: none; margin-top: 36px; }
.brand-results.visible { display: block; }
.result-wheel-section {
  display: flex; gap: 24px; align-items: flex-start;
  margin-bottom: 28px; flex-wrap: wrap;
}
#resultWheel {
  width: 200px; height: 200px;
  flex-shrink: 0; display: block;
}
.wheel-legend-list {
  display: flex; flex-direction: column; gap: 8px;
  justify-content: center; flex: 1; min-width: 160px;
}
.wheel-legend-item {
  display: flex; align-items: center; gap: 10px;
}
.wl-dot {
  width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0;
  border: 2px solid rgba(0,0,0,.08);
}
.wl-role { font-size: 12px; font-weight: 700; color: var(--ink); }
.wl-hex { font-size: 11px; font-family: monospace; color: var(--muted); }
.palette-summary {
  background: var(--surface-alt); border: 1.5px solid var(--line);
  border-radius: 10px; padding: 16px 18px; margin-bottom: 20px;
}
.palette-summary h3 { font-size: 14px; font-weight: 700; margin: 0 0 5px; color: var(--ink); }
.palette-summary p { font-size: 13px; line-height: 1.6; color: var(--muted); margin: 0; }
.palette-swatches-row { display: flex; gap: 6px; margin-top: 10px; }
.ps-chip { height: 24px; flex: 1; border-radius: 5px; border: 1px solid rgba(0,0,0,.06); }
.palette-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px; margin-bottom: 20px;
}
.brand-color-card {
  border-radius: 12px; overflow: hidden;
  border: 1.5px solid var(--line); background: var(--surface);
  display: flex; flex-direction: column;
}
.bcc-swatch { height: 72px; position: relative; }
.bcc-role-badge {
  position: absolute; bottom: 8px; left: 10px;
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; padding: 2px 8px; border-radius: 20px;
  background: rgba(0,0,0,.22); color: rgba(255,255,255,.92);
}
.bcc-body {
  padding: 12px 14px; flex: 1;
  display: flex; flex-direction: column; gap: 6px;
}
.bcc-hex-row { display: flex; align-items: center; gap: 2px; }
.bcc-hex { font-family: monospace; font-size: 15px; font-weight: 700; color: var(--ink); }
.bcc-copy {
  font-size: 11px; color: var(--color-primary-strong); cursor: pointer;
  text-decoration: none; font-weight: 600;
  background: none; border: none; padding: 0; margin-left: 8px;
}
.bcc-copy:hover { text-decoration: underline; }
.bcc-rationale { font-size: 12px; line-height: 1.55; color: var(--muted); flex: 1; }
.bcc-adjust {
  margin-top: 8px; padding-top: 10px;
  border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 10px;
}
.bcc-slider-row {
  display: flex; flex-direction: column; gap: 5px;
}
.bcc-slider-top {
  display: flex; align-items: center; justify-content: space-between;
}
.bcc-slider-label {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--muted);
}
.bcc-range {
  width: 100%; -webkit-appearance: none; appearance: none;
  height: 10px; border-radius: 5px; cursor: pointer;
  border: none; outline: none;
}
.bcc-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px; height: 16px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.25), 0 0 0 1.5px rgba(0,0,0,.12);
  cursor: grab;
}
.bcc-range:active::-webkit-slider-thumb { cursor: grabbing; }
.bcc-range::-moz-range-thumb {
  width: 16px; height: 16px; border-radius: 50%; background: #fff; border: none;
  box-shadow: 0 1px 3px rgba(0,0,0,.25), 0 0 0 1.5px rgba(0,0,0,.12);
}
/* No flip needed — lit slider uses value inversion (slider=0→left→tint=L100, slider=100→right→shade=L0) */
.bcc-num {
  width: 38px; text-align: center;
  font-size: 11px; font-weight: 700; font-family: monospace; color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 5px;
  padding: 2px 3px; background: var(--surface);
  -moz-appearance: textfield;
}
.bcc-num::-webkit-inner-spin-button, .bcc-num::-webkit-outer-spin-button { -webkit-appearance: none; }
.bcc-num:focus { outline: none; border-color: var(--color-primary-strong); }
.bcc-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.bcc-action {
  font-size: 11px; font-weight: 600;
  padding: 4px 10px; border-radius: 20px;
  border: 1px solid var(--color-primary-strong);
  color: var(--color-primary-strong); text-decoration: none; white-space: nowrap;
}
.bcc-action:hover { background: var(--color-primary-strong); color: #fff; }
.reset-btn {
  font-size: 13px; font-weight: 600; color: var(--muted);
  background: none; border: none; cursor: pointer; padding: 0;
  text-decoration: underline; margin-top: 8px; display: inline-block;
}
.results-section-label {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--muted); margin-bottom: 14px;
}
@media (max-width: 600px) {
  .option-grid { grid-template-columns: 1fr 1fr; }
  .option-grid.grid-3 { grid-template-columns: 1fr 1fr 1fr; }
  .result-wheel-section { flex-direction: column; }
  #resultWheel { width: 160px; height: 160px; }
}

/* ── Page: /colors/paint-drying-time-calculator/ ── */
.dry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
  margin-top: 24px;
}
@media (max-width: 700px) { .dry-grid { grid-template-columns: 1fr; } }
.dry-field { margin-bottom: 14px; }
.dry-field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 5px;
}
.dry-field select, .dry-field input {
  width: 100%;
  box-sizing: border-box;
  padding: 9px 12px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  background: var(--surface);
  color: var(--ink);
}
.dry-field select:focus, .dry-field input:focus { outline: none; border-color: var(--color-primary-strong); }
.time-block {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.time-block:last-child { border-bottom: none; }
.time-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
  margin-bottom: 2px;
}
.time-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--color-primary-strong);
  line-height: 1.1;
}
.time-note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}
.schedule-card {
  background: var(--card-bg);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  margin-top: 20px;
}
.schedule-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
  margin-bottom: 10px;
}
.schedule-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 5px 0;
  border-bottom: 1px solid var(--line);
}
.schedule-row:last-child { border-bottom: none; }
.schedule-row .time { color: var(--muted); }
.schedule-row .event { font-weight: 600; }
.warn-banner {
  background: #FFF7ED;
  border: 1.5px solid #FCD34D;
  border-radius: 8px;
  padding: 10px 13px;
  font-size: 13px;
  color: #92400E;
  margin-top: 14px;
  display: none;
}
.dry-divider {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  margin: 14px 0 8px;
}
