/* theladder-v0.2.0 | 2026-06-10
   Aesop AI Academy — The Ladder brand system.
   Source of truth: design-handoff-ladder/BRAND_GUIDE.md
   4 themes x 2 modes, switched via data-theme / data-mode on <html>.
   All colors live HERE as tokens — components reference var(--token) only. */

/* ============================================================
   1. TOKENS — 8 palettes (BRAND_GUIDE §3–4, exact hex)
   ============================================================ */

:root {
  /* Theme-switcher swatch constants (theme colors shown while another
     theme is active — the only place these may appear outside palettes) */
  --swatch-indigo: #4B40C9;
  --swatch-indigo-2: #E8843C;
  --swatch-emerald: #0E9E6E;
  --swatch-emerald-2: #E0A129;
  --swatch-spring: #0A9E7C;
  --swatch-spring-2: #E6B92F;
  --swatch-volt: #AEF24E;
  --swatch-volt-2: #131A13;

  --font-body: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-schibsted: 'Schibsted Grotesk', sans-serif;
  --font-bricolage: 'Bricolage Grotesque', sans-serif;
  --font-space: 'Space Grotesk', sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

/* indigo — "Focus" (default; also the no-attribute fallback) */
:root,
[data-theme="indigo"][data-mode="light"] {
  --bg: #F6F5F1; --bg2: #EFEDE6; --surface: #FFFFFF; --surface2: #F1EFEA;
  --ink: #1A1830; --muted: #6A6880; --faint: #A8A6B6;
  --primary: #4B40C9; --primary2: #3A30A8; --on-primary: #FFFFFF;
  --accent: #E8843C; --accent-ink: #9A5012; --fill: #4B40C9;
  --border: #E0DDD2; --hair: #D8D5C9; --ring: rgba(75, 64, 201, .12);
  --font-display: 'Schibsted Grotesk', sans-serif;
}
[data-theme="indigo"][data-mode="dark"] {
  --bg: #121022; --bg2: #0C0B18; --surface: #1A1830; --surface2: #221F3C;
  --ink: #EEEDF7; --muted: #A6A3C0; --faint: #615E80;
  --primary: #8579F2; --primary2: #9A90F5; --on-primary: #121022;
  --accent: #E8843C; --accent-ink: #E8843C; --fill: #8579F2;
  --border: #2A2748; --hair: #262343; --ring: rgba(133, 121, 242, .18);
  --font-display: 'Schibsted Grotesk', sans-serif;
}

/* emerald — "Scholar" */
[data-theme="emerald"][data-mode="light"] {
  --bg: #F2F5F1; --bg2: #E7EEE8; --surface: #FFFFFF; --surface2: #EDF2EC;
  --ink: #0F1F1A; --muted: #516259; --faint: #9AAAA0;
  --primary: #0E9E6E; --primary2: #0B855D; --on-primary: #FFFFFF;
  --accent: #E0A129; --accent-ink: #6F5300; --fill: #0E9E6E;
  --border: #DBE4DC; --hair: #D2DDD3; --ring: rgba(14, 158, 110, .12);
  --font-display: 'Schibsted Grotesk', sans-serif;
}
[data-theme="emerald"][data-mode="dark"] {
  --bg: #0B1613; --bg2: #08110E; --surface: #11201A; --surface2: #16281F;
  --ink: #E8F2EC; --muted: #9BB3A9; --faint: #5E7770;
  --primary: #2BD49A; --primary2: #37E0A6; --on-primary: #08130F;
  --accent: #E0A129; --accent-ink: #E0A129; --fill: #2BD49A;
  --border: #1F332B; --hair: #1B2D26; --ring: rgba(43, 212, 154, .18);
  --font-display: 'Schibsted Grotesk', sans-serif;
}

/* spring — "Explorer" */
[data-theme="spring"][data-mode="light"] {
  --bg: #F1F6F4; --bg2: #E4EFEA; --surface: #FFFFFF; --surface2: #E9F3EF;
  --ink: #0E211D; --muted: #4D635C; --faint: #92A39B;
  --primary: #0A9E7C; --primary2: #088068; --on-primary: #FFFFFF;
  --accent: #E6B92F; --accent-ink: #6F5600; --fill: #0A9E7C;
  --border: #D6E4DF; --hair: #CDDCD6; --ring: rgba(10, 158, 124, .12);
  --font-display: 'Bricolage Grotesque', sans-serif;
}
[data-theme="spring"][data-mode="dark"] {
  --bg: #091613; --bg2: #06110E; --surface: #0F201C; --surface2: #153029;
  --ink: #E6F4EF; --muted: #9EC2B8; --faint: #5D7C72;
  --primary: #1FD6A6; --primary2: #2EE0B2; --on-primary: #06140F;
  --accent: #E6B92F; --accent-ink: #E6B92F; --fill: #1FD6A6;
  --border: #1B322C; --hair: #172B26; --ring: rgba(31, 214, 166, .18);
  --font-display: 'Bricolage Grotesque', sans-serif;
}

/* volt — "Arcade" (light mode: ink buttons with neon text; --fill stays readable green) */
[data-theme="volt"][data-mode="light"] {
  --bg: #F4F6F0; --bg2: #E9EEDF; --surface: #FFFFFF; --surface2: #EEF3E6;
  --ink: #131A11; --muted: #5B6B54; --faint: #97A38C;
  --primary: #171D14; --primary2: #000000; --on-primary: #AEF24E;
  --accent: #5F9C0A; --accent-ink: #3F6B00; --fill: #5F9C0A;
  --border: #DCE3D2; --hair: #D3DCC8; --ring: rgba(120, 180, 40, .16);
  --font-display: 'Space Grotesk', sans-serif;
}
[data-theme="volt"][data-mode="dark"] {
  --bg: #0D130E; --bg2: #090D0A; --surface: #131A13; --surface2: #19211A;
  --ink: #E9F2E7; --muted: #9AAB97; --faint: #67755F;
  --primary: #AEF24E; --primary2: #BCF563; --on-primary: #0D130E;
  --accent: #AEF24E; --accent-ink: #AEF24E; --fill: #AEF24E;
  --border: #222C22; --hair: #1D261D; --ring: rgba(174, 242, 78, .18);
  --font-display: 'Space Grotesk', sans-serif;
}

/* ============================================================
   2. BASE
   ============================================================ */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { transition: background-color .4s ease, color .4s ease; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  transition: background-color .4s ease, color .4s ease;
}
::selection { background: var(--ring); }
a { text-decoration: none; color: inherit; }
a, button { transition: background-color .22s ease, color .22s ease, border-color .22s ease, transform .22s ease, opacity .22s ease; }

button, input, textarea, select { font: inherit; border-radius: 0; }

/* Default button voice — moved app code emits bare <button> and
   <button class="secondary">; both must read as brand controls. */
button {
  border: none;
  background: var(--primary);
  color: var(--on-primary);
  padding: 10px 16px;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: .02em;
  cursor: pointer;
}
button:hover { background: var(--primary2); }
button.secondary { background: transparent; border: 1px solid var(--ink); color: var(--ink); }
button.secondary:hover { background: var(--ink); color: var(--bg); }
button:disabled { opacity: .4; pointer-events: none; }

input[type="text"], input[type="search"], input[type="email"], input[type="password"], textarea, select {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink);
  padding: 10px 12px;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--ring);
  outline: none;
}
input::placeholder, textarea::placeholder { color: var(--faint); }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 40px; }
.band { border-bottom: 1px solid var(--hair); }
.hero-glow { position: relative; overflow: hidden; }
.hero-glow::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(720px 360px at 92% 0%, var(--ring), transparent 60%);
  pointer-events: none;
}
.hero-glow > .wrap { position: relative; }

/* ============================================================
   3. TYPE
   ============================================================ */

.display { font-family: var(--font-display); font-weight: 400; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; margin: 0; }

.hero-title { font-size: clamp(72px, 13.4vw, 172px); line-height: .84; letter-spacing: -.04em; }
.page-title { font-size: clamp(54px, 9vw, 96px); line-height: .86; letter-spacing: -.04em; }
.page-title--sm { font-size: clamp(44px, 7vw, 88px); line-height: .9; }
.subline { font-family: var(--font-display); font-weight: 400; font-size: clamp(20px, 2.6vw, 30px); line-height: 1.04; letter-spacing: -.015em; color: var(--primary); margin: 0; }
.subline .flair { font-style: italic; }
.h2 { font-size: clamp(34px, 4.5vw, 54px); line-height: 1.02; letter-spacing: -.03em; }
.h2-sm { font-size: clamp(28px, 3.2vw, 38px); line-height: 1.05; letter-spacing: -.025em; }
.h3 { font-size: clamp(22px, 2.4vw, 30px); line-height: 1; letter-spacing: -.02em; }
.lede { font-size: 19px; line-height: 1.65; color: var(--ink); }
.body-muted { font-size: 16px; line-height: 1.75; color: var(--muted); }
.small-muted { font-size: 13px; letter-spacing: .04em; color: var(--muted); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
}
.eyebrow::before { content: ""; width: 7px; height: 7px; background: var(--accent); flex: 0 0 auto; }
.eyebrow .eyebrow-rule { width: 20px; height: 1px; background: var(--ink); opacity: .35; }
.eyebrow--accent { color: var(--accent-ink); }
.eyebrow--accent::before { content: none; }

/* ============================================================
   4. BUTTONS (BRAND_GUIDE §7)
   ============================================================ */

.btn {
  display: inline-block;
  padding: 16px 30px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .02em;
  border: none;
  cursor: pointer;
  text-align: center;
  font-family: var(--font-body);
}
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary2); }
.btn-ghost { background: transparent; border: 1px solid var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.btn-sm { padding: 11px 22px; font-size: 13px; }
.btn[disabled], .btn.is-disabled { opacity: .4; pointer-events: none; }

/* Paired buttons butt up flush; the second drops its left border */
.btn-row { display: flex; gap: 0; flex-wrap: wrap; }
.btn-row .btn + .btn { border-left: none; }

/* ============================================================
   5. TOP BAR / CHROME
   ============================================================ */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hair);
}
.topbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 17px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 24px; height: 24px;
  background: var(--primary);
  display: flex; flex-direction: column; justify-content: center;
  gap: 3px; padding: 5px;
}
.brand-mark i { height: 2px; background: var(--on-primary); display: block; }
.brand-mark i.mid { background: var(--accent); width: 60%; }
.brand-mark--sm { width: 22px; height: 22px; gap: 2px; }
.brand-word { font-family: var(--font-display); font-weight: 500; font-size: 18px; letter-spacing: .01em; color: var(--ink); }

.topnav { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.topnav a { font-size: 13px; font-weight: 500; letter-spacing: .02em; color: var(--muted); white-space: nowrap; }
.topnav a:hover { color: var(--ink); }
.topnav a.active { font-weight: 600; color: var(--primary); }
.topbar-label { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.topbar-actions { display: flex; align-items: center; gap: 14px; }
.avatar {
  width: 34px; height: 34px;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600; letter-spacing: .04em;
  color: var(--ink);
}
.select-quiet {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--ink);
  padding: 8px 10px;
  font-size: 12.5px;
  max-width: 150px;
}

/* ============================================================
   6. THEME SWITCHER (injected by theme.js)
   ============================================================ */

.theme-ctl { position: relative; }
.theme-btn {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 13px;
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
  color: var(--ink);
  font-family: var(--font-body);
}
.theme-btn:hover { background: var(--surface2); }
.theme-btn .sw { display: flex; gap: 3px; }
.theme-btn .sw i { width: 8px; height: 8px; background: var(--primary); }
.theme-btn .sw i + i { background: var(--accent); }
.theme-btn .lbl { font-size: 12px; font-weight: 500; letter-spacing: .04em; }
.theme-pop {
  position: absolute; right: 0; top: 48px;
  width: 320px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 18px;
  box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .3);
  z-index: 60;
}
.theme-pop-label {
  font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--faint); font-weight: 600; margin-bottom: 13px;
}
.theme-opts { display: flex; flex-direction: column; }
.theme-opt {
  display: flex; align-items: center; gap: 12px;
  width: 100%; padding: 11px 10px;
  cursor: pointer;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--hair);
  opacity: .62;
  color: var(--ink);
  font-family: var(--font-body);
  text-align: left;
}
.theme-opt:hover { background: var(--surface2); opacity: 1; }
.theme-opt.active { opacity: 1; }
.theme-opt .sw { display: flex; gap: 4px; flex: 0 0 auto; }
.theme-opt .sw i { width: 15px; height: 15px; }
.theme-opt .meta { flex: 1; }
.theme-opt .name { display: block; font-size: 14px; font-weight: 600; color: var(--ink); }
.theme-opt .sub { display: block; font-size: 11px; color: var(--muted); letter-spacing: .01em; }
.theme-opt .dot { width: 7px; height: 7px; background: var(--primary); flex: 0 0 auto; }
.theme-hr { height: 1px; background: var(--hair); margin: 14px 0 13px; }
.theme-seg { display: flex; gap: 0; border: 1px solid var(--border); }
.theme-seg button {
  flex: 1; padding: 9px 0;
  border: none; cursor: pointer;
  font-family: var(--font-body);
  font-size: 12.5px; font-weight: 600; letter-spacing: .04em;
  background: transparent; color: var(--muted);
}
.theme-seg button.active { background: var(--ink); color: var(--bg); }
.theme-name-indigo, .theme-name-emerald { font-family: var(--font-schibsted); }
.theme-name-spring { font-family: var(--font-bricolage); }
.theme-name-volt { font-family: var(--font-space); }
.sw-indigo { background: var(--swatch-indigo); }
.sw-indigo-2 { background: var(--swatch-indigo-2); }
.sw-emerald { background: var(--swatch-emerald); }
.sw-emerald-2 { background: var(--swatch-emerald-2); }
.sw-spring { background: var(--swatch-spring); }
.sw-spring-2 { background: var(--swatch-spring-2); }
.sw-volt { background: var(--swatch-volt); }
.sw-volt-2 { background: var(--swatch-volt-2); }

/* ============================================================
   7. SHARED COMPONENTS
   ============================================================ */

/* Panel / emphasis card */
.panel { background: var(--surface); border: 1px solid var(--border); }
.panel-accent { border-top: 3px solid var(--accent); }
.panel-pad { padding: 24px 26px; }

/* Stat strip */
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-strip--3 { grid-template-columns: repeat(3, 1fr); }
.stat { padding: 44px 0 44px 40px; border-right: 1px solid var(--hair); }
.stat:first-child { padding-left: 0; }
.stat:last-child { border-right: none; }
.stat-num { font-family: var(--font-display); font-weight: 400; font-size: clamp(40px, 5vw, 64px); line-height: 1; letter-spacing: -.03em; color: var(--ink); }
.stat-num--sm { font-size: clamp(34px, 4.4vw, 56px); }
.stat-cap { font-size: 13px; letter-spacing: .04em; color: var(--muted); margin-top: 10px; }

/* Editorial pathway rows */
.path-list { border-top: 1px solid var(--ink); }
.path-row {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 30px;
  align-items: baseline;
  padding: 34px 0;
  border-bottom: 1px solid var(--hair);
}
a.path-row:hover { background: var(--surface2); }
.path-idx { font-family: var(--font-display); font-weight: 400; font-size: 22px; color: var(--muted); }
.path-row.featured .path-idx { color: var(--primary); }
.path-title { display: block; font-family: var(--font-display); font-weight: 400; font-size: clamp(28px, 3.6vw, 42px); line-height: 1; letter-spacing: -.025em; color: var(--ink); margin-bottom: 10px; }
.path-sub { display: block; font-size: 15px; line-height: 1.6; color: var(--muted); max-width: 60ch; }
.path-arrow { font-family: var(--font-display); font-size: 24px; color: var(--muted); display: inline-block; }
.path-row.featured .path-arrow { color: var(--ink); }
a.path-row:hover .path-arrow { transform: translateX(7px); color: var(--primary); }
.path-row.static { cursor: default; }
.path-row.static .path-title, .path-row.static .path-sub { opacity: .75; }

/* Chips (shared borders, negative-margin grid) */
.chip-grid { display: flex; flex-wrap: wrap; gap: 0; }
.chip {
  font-size: 12.5px;
  letter-spacing: .02em;
  color: var(--ink);
  border: 1px solid var(--border);
  padding: 9px 16px;
  margin: -1px 0 0 -1px;
}

/* Progress bar */
.bar { height: 3px; background: var(--surface2); overflow: hidden; }
.bar--thick { height: 4px; }
.bar-fill { height: 100%; width: 0; background: var(--fill); transition: width .5s var(--ease); }

/* Tier accordion */
.tier-legend { display: flex; gap: 22px; flex-wrap: wrap; }
.tier-legend span { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); }
.tier-legend i { width: 11px; height: 11px; }
.tier-legend i.done { background: var(--fill); }
.tier-legend i.current { border: 2px solid var(--accent); }
.tier-legend i.locked { border: 1px solid var(--faint); }

.tier-list { border-top: 1px solid var(--ink); }
.tier-item { border-bottom: 1px solid var(--hair); }
.tier-row {
  display: flex;
  align-items: center;
  gap: 24px;
  width: 100%;
  padding: 24px 6px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  text-align: left;
  color: var(--ink);
}
.tier-row:hover { background: var(--surface2); }
.tier-badge {
  width: 40px; height: 40px;
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 14px; font-weight: 500; letter-spacing: .02em;
}
.tier-badge.done { background: var(--fill); color: var(--on-primary); }
.tier-badge.current { border: 2px solid var(--accent); color: var(--ink); }
.tier-badge.locked { border: 1px solid var(--faint); color: var(--faint); }
.tier-row-meta { flex: 1; min-width: 0; }
.tier-name { display: block; font-family: var(--font-display); font-weight: 400; font-size: 23px; letter-spacing: -.02em; color: var(--ink); }
.tier-row.is-locked .tier-name { color: var(--faint); }
.tier-sub { display: block; font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.tier-bar { width: 110px; flex: 0 0 auto; }
.tier-chev { font-size: 17px; color: var(--muted); flex: 0 0 auto; display: inline-block; transition: transform .25s ease; }
.tier-row[aria-expanded="true"] .tier-chev { transform: rotate(180deg); }
.tier-panel { padding: 2px 26px 28px 80px; background: var(--surface2); }
.tier-panel-foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; }
.tier-next { font-size: 14px; color: var(--ink); }

/* Rung squares */
.rung-grid { display: flex; flex-wrap: wrap; gap: 6px; max-width: 520px; margin: 0 0 20px; }
.rung { width: 14px; height: 14px; }
.rung.done { background: var(--fill); }
.rung.current { border: 2px solid var(--accent); }
.rung.locked { border: 1px solid var(--faint); opacity: .5; }

/* Quiz / option rows */
.opt-list { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--border); }
.opt-row {
  display: flex; align-items: center; gap: 16px;
  width: 100%; padding: 19px 20px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 16px;
  border: none;
  border-bottom: 1px solid var(--border);
  text-align: left;
  color: var(--ink);
  background: transparent;
}
.opt-row:hover { border-color: var(--ink); }
.opt-row .box { width: 16px; height: 16px; flex: 0 0 auto; border: 1.5px solid var(--faint); }
.opt-row.selected { background: var(--surface2); }
.opt-row.selected .box { border: 5px solid var(--fill); }

/* Verified seal */
.seal {
  display: flex; align-items: center; gap: 11px;
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  background: var(--surface);
  padding: 14px 18px;
}
.seal-check {
  width: 30px; height: 30px;
  background: var(--fill); color: var(--on-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600;
}
.seal-check--sm { width: 26px; height: 26px; font-size: 12px; }
.seal-title { display: block; font-size: 13px; font-weight: 600; color: var(--ink); }
.seal-sub { display: block; font-size: 11px; color: var(--muted); }

/* Status pills */
.pill { display: inline-block; padding: 5px 11px; font-size: 12px; font-weight: 600; }
.pill-certified { background: var(--fill); color: var(--on-primary); }
.pill-progress { border: 1px solid var(--accent); color: var(--accent-ink); padding: 4px 10px; }
.pill-none { color: var(--faint); font-size: 12.5px; font-weight: 400; padding: 0; }

/* Footers */
.footer-big { background: var(--bg2); }
.footer-big-grid {
  max-width: 1280px; margin: 0 auto;
  padding: 72px 40px 36px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-col-label { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); font-weight: 600; margin-bottom: 16px; }
.footer-links { display: flex; flex-direction: column; gap: 11px; font-size: 14px; color: var(--muted); }
.footer-links a:hover { color: var(--ink); }
.footer-legal {
  max-width: 1280px; margin: 0 auto;
  padding: 24px 40px 40px;
  border-top: 1px solid var(--hair);
  font-size: 12.5px; letter-spacing: .03em; color: var(--faint);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.footer-slim { background: var(--bg2); }
.footer-slim-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 44px 40px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 20px;
}
.footer-slim-inner .links { display: flex; gap: 26px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.footer-slim-inner .links a:hover { color: var(--ink); }
.footer-fine { font-size: 12.5px; letter-spacing: .03em; color: var(--faint); }

/* Ink CTA band */
.cta-band { background: var(--ink); position: relative; overflow: hidden; }
.cta-band::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(640px 300px at 50% 0%, var(--ring), transparent 65%);
  pointer-events: none;
}
.cta-band .wrap { position: relative; }
.cta-band h2 { color: var(--bg); }
.cta-band p { color: var(--faint); }
.cta-band .btn-ghost { border-color: var(--faint); color: var(--bg); }
.cta-band .btn-ghost:hover { background: var(--bg); color: var(--ink); }

/* ============================================================
   8. APP COMPONENTS (classes emitted by moved ladder code)
   ============================================================ */

.panel-label {
  display: block;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 8px;
}

/* Chat / conversation */
.chat-log, .assessment-log {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 16px;
  min-height: 320px;
  max-height: min(58vh, 560px);
  overflow: auto;
}
.message { padding: 14px 16px; font-size: 15px; line-height: 1.6; color: var(--ink); }
.message > strong:first-child {
  display: block;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
}
.message.assistant { background: var(--surface2); }
.message.user { border: 1px solid var(--border); }
.message.exam { border-left: 3px solid var(--accent); }
.message p { margin: 0 0 8px; }
.message p:last-child { margin-bottom: 0; }
.message ul { margin: 6px 0; padding-left: 20px; }
.message h2, .message h3, .message h4 { font-size: 16px; margin: 10px 0 6px; }
.message table { border-collapse: collapse; margin: 8px 0; }
.message th, .message td { border: 1px solid var(--border); padding: 5px 8px; font-size: 13.5px; }

.chat-form, .vocab-prompt-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-top: 12px;
}
.chat-form textarea { min-height: 44px; resize: vertical; }
.assessment-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-top: 12px;
}
.assessment-form textarea { min-height: 92px; resize: vertical; }

/* Certification exam mode */
.certification-mode-bar {
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  background: var(--surface);
  padding: 16px 18px;
  margin-bottom: 14px;
}
.certification-mode-bar strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: 22px; letter-spacing: -.02em; margin: 2px 0 6px; }
.certification-mode-bar p { margin: 0 0 12px; font-size: 14px; color: var(--muted); line-height: 1.6; }
.certification-mode-actions { display: flex; gap: 0; flex-wrap: wrap; }
.certification-mode-actions button + button { border-left: none; }
.exam-banner {
  border: 1px solid var(--accent);
  background: var(--surface2);
  color: var(--ink);
  padding: 12px 16px;
  margin-bottom: 14px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
}

/* Vocabulary */
.vocab-list { display: flex; flex-wrap: wrap; gap: 0; }
.vocab-pill {
  font-size: 12.5px;
  letter-spacing: .02em;
  color: var(--ink);
  border: 1px solid var(--border);
  background: transparent;
  padding: 8px 13px;
  margin: -1px 0 0 -1px;
  cursor: pointer;
}
.vocab-pill:hover { border-color: var(--ink); background: var(--surface2); color: var(--ink); position: relative; }
.vocab-pill.done { border-color: var(--fill); color: var(--ink); }
.vocab-pill.active { background: var(--primary); border-color: var(--primary); color: var(--on-primary); position: relative; }
.vocab-definition-box {
  border: 1px solid var(--border);
  background: var(--surface2);
  padding: 14px 16px;
  min-height: 120px;
  overflow: auto;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
}
.vocab-definition-box p { margin: 8px 0; }
.vocab-definition-box small { color: var(--muted); }

/* Resources */
.resource-list { display: flex; flex-wrap: wrap; gap: 0; }
.resource-chip {
  font-size: 13px;
  letter-spacing: .02em;
  color: var(--ink);
  border: 1px solid var(--border);
  padding: 10px 16px;
  margin: -1px 0 0 -1px;
}
.resource-chip:hover { border-color: var(--ink); background: var(--surface2); }

/* Topic search */
.topic-search-results { display: grid; gap: 0; align-content: start; min-height: 0; overflow: auto; max-height: 360px; }
.topic-search-empty { font-size: 13.5px; line-height: 1.6; color: var(--muted); margin: 8px 0 0; }
.topic-search-result {
  border-bottom: 1px solid var(--hair);
  padding: 14px 2px;
  display: grid;
  gap: 4px;
}
.topic-search-result strong { font-family: var(--font-display); font-weight: 400; font-size: 17px; letter-spacing: -.01em; }
.topic-search-result small { font-size: 12px; color: var(--muted); }
.topic-search-actions { display: flex; gap: 0; margin-top: 6px; }
.topic-search-actions button { padding: 8px 14px; font-size: 12.5px; }
.topic-search-actions button + button { border-left: none; }

/* Topic strip (rung nav within a tier on climb) */
.topic-strip { display: flex; flex-wrap: wrap; gap: 6px; padding: 16px 0 4px; }
.topic-strip button {
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 12.5px;
}
.topic-strip button:hover { border-color: var(--ink); background: var(--surface2); color: var(--ink); }
.topic-strip button.done { background: var(--fill); border-color: var(--fill); color: var(--on-primary); }
.topic-strip button.placed { opacity: .65; }
.topic-strip button.assigned { border-color: var(--accent); }
.topic-strip button.active { border: 2px solid var(--accent); color: var(--ink); font-weight: 600; }

/* Placement metrics & assigned rungs */
.placement-metrics { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 13px; color: var(--muted); margin-top: 14px; }
.assigned-rungs-panel {
  flex-basis: 100%;
  width: 100%;
  border: 1px solid var(--border);
  background: var(--surface);
  max-height: 360px;
  overflow: auto;
  margin-top: 10px;
}
.assigned-rungs-panel summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 13.5px;
  color: var(--ink);
  padding: 12px 14px;
}
.assigned-rungs-panel ul { list-style: none; margin: 0; padding: 0 14px 14px; display: grid; gap: 12px; }
.assigned-rungs-panel ul li strong { display: block; font-size: 13px; }
.assigned-rungs-panel ul li > span { font-size: 12px; color: var(--muted); }
.assigned-rungs-panel ol { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 4px; }
.assigned-rung-link {
  background: transparent;
  border: none;
  color: var(--primary);
  padding: 2px 0;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}
.assigned-rung-link:hover { background: transparent; color: var(--primary2); text-decoration: underline; }

/* Placement profile prompt */
.placement-profile-prompt {
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  background: var(--surface);
  padding: 16px 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 16px;
}
.placement-profile-prompt strong { font-size: 14px; }
.placement-profile-prompt span { font-size: 13px; color: var(--muted); flex-basis: 100%; }
.placement-profile-prompt > div { display: flex; gap: 0; }
.placement-profile-prompt > div button + button { border-left: none; }

/* Standards review offer */
.standards-review-offer {
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  background: var(--surface);
  padding: 16px 18px;
  font-size: 14px;
}
.standards-review-offer strong { display: block; margin-bottom: 6px; }
.standards-review-offer p { margin: 0 0 12px; color: var(--muted); line-height: 1.6; }
.standards-review-error { color: var(--accent-ink); }
.standards-review-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.standards-review-actions a { color: var(--primary); font-size: 13px; font-weight: 600; }

/* Transcript events */
.transcript-list { display: grid; gap: 0; }
.transcript-event { border-bottom: 1px solid var(--hair); padding: 16px 2px; }
.transcript-event strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: 19px; letter-spacing: -.01em; }
.transcript-event small { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; }
.transcript-event p { margin: 8px 0 0; font-size: 14px; line-height: 1.6; color: var(--ink); }
.transcript-event ul { margin: 8px 0 0; padding-left: 20px; font-size: 14px; color: var(--ink); }

/* Hero certification ribbons */
.hero-ribbon-track { display: flex; flex-wrap: wrap; gap: 6px; }
.hero-ribbon-slot {
  border: 1px solid var(--border);
  padding: 7px 6px 6px;
  min-width: 52px;
  text-align: center;
  display: grid;
  gap: 2px;
}
.hero-ribbon-slot.is-empty { opacity: .45; }
.hero-ribbon-slot.has-ribbon { border-color: var(--fill); }
.hero-ribbon-slot.ribbon-mastery-challenge { border-width: 2px; }
.hero-ribbon-number { font-family: var(--font-display); font-size: 14px; color: var(--ink); }
.hero-ribbon-medal { font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-ink); }
.hero-ribbon-tier { font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }

/* Evaluation / certification panel */
.evaluation-field { display: grid; gap: 5px; margin-bottom: 12px; }
.evaluation-field > span { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--muted); }
.evaluation-select { width: 100%; }
.evaluation-cooldown { font-size: 12.5px; color: var(--muted); line-height: 1.55; margin: 10px 0; }
.evaluation-target { font-size: 14px; color: var(--ink); line-height: 1.55; margin: 0 0 12px; }
.cert-links { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; font-size: 13px; }
.cert-links a { color: var(--primary); font-weight: 600; }
.cert-links a:hover { color: var(--primary2); }

/* Certification guide dialog */
.brand-dialog {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  padding: 26px;
  max-width: min(980px, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  overflow: auto;
}
.brand-dialog::backdrop { background: rgba(0, 0, 0, .5); }
.brand-dialog .dialog-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 14px; }
.certification-guide-lead { font-size: 15px; line-height: 1.7; color: var(--muted); }
.certification-guide-callout {
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  background: var(--surface2);
  padding: 12px 16px;
  margin: 14px 0;
  display: grid;
  gap: 3px;
}
.certification-guide-callout span { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.certification-guide-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px 32px; margin: 18px 0; }
.certification-guide-grid h4 { font-size: 18px; margin-bottom: 8px; }
.certification-guide-grid ul, .certification-guide-grid ol { margin: 0; padding-left: 18px; font-size: 13.5px; line-height: 1.65; color: var(--muted); }
.certification-guide-note {
  border-top: 1px solid var(--hair);
  padding-top: 14px;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.65;
}

/* Certification success modal (token-skinned) */
.cert-success-overlay {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, .5);
  display: flex; align-items: center; justify-content: center;
  z-index: 10000;
  padding: 20px;
}
.cert-success-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  padding: 32px;
  max-width: 500px;
  text-align: center;
}
.cert-success-card h2 { font-size: 30px; margin-bottom: 8px; }
.cert-success-card p { color: var(--muted); font-size: 14.5px; line-height: 1.6; margin: 0 0 18px; }
.cert-success-share {
  background: var(--surface2);
  border: 1px solid var(--border);
  padding: 14px;
  margin-bottom: 18px;
  text-align: left;
}
.cert-success-share p { font-size: 12.5px; font-weight: 600; color: var(--muted); margin: 0 0 8px; }
.cert-success-share textarea { width: 100%; min-height: 80px; resize: none; font-size: 13px; }
.cert-success-share button { width: 100%; margin-top: 8px; }

/* ============================================================
   9. MOTION (BRAND_GUIDE §8 — IntersectionObserver variant)
   Content defaults to visible; the .js class is added by theme.js,
   so nothing is ever stuck hidden when scripts fail.
   ============================================================ */

html.js [data-reveal] {
  opacity: 0;
  transform: translateY(30px);
}
html.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
@media (prefers-reduced-motion: reduce) {
  html.js [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   10. RESPONSIVE — clean single-column collapse
   ============================================================ */

@media (max-width: 1024px) {
  .workspace { grid-template-columns: 1fr !important; }
}
@media (max-width: 900px) {
  .wrap, .topbar-inner, .footer-big-grid, .footer-slim-inner, .footer-legal { padding-left: 20px; padding-right: 20px; }
  .stat-strip, .stat-strip--3 { grid-template-columns: 1fr 1fr; }
  .stat { padding: 28px 0 28px 20px; }
  .stat:nth-child(odd) { padding-left: 0; }
  .stat:nth-child(even) { border-right: none; }
  .two-col, .grid-2 { grid-template-columns: 1fr !important; }
  .path-row { grid-template-columns: 56px 1fr auto; gap: 16px; }
  .topnav { gap: 18px; }
  .tier-panel { padding: 2px 16px 24px 16px; }
  .footer-big-grid { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   11. CATALOG / PATHWAY COMPONENTS (Phase 2 — Products & Use Cases)
   Reusable primitives shared by /theladder-products/ and
   /theladder-use-cases/ (pages + admin queues), per
   BUILD-PATHWAYS-REDESIGN §3–4. Classes match the markup emitted
   by products-app.js / use-cases-app.js / *-admin.js. Append-only:
   nothing above this line changed for Phase 2.
   ============================================================ */

/* Category / topic rail — hairline rows, 1px ink cap (BUILD §4) */
.rail-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.rail-head h2 { font-family: var(--font-body); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; color: var(--muted); margin: 0; }
.rail-head span { font-size: 12px; letter-spacing: .02em; color: var(--muted); }
.category-list { display: flex; flex-direction: column; border-top: 1px solid var(--ink); }
.category-button {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  width: 100%; padding: 13px 4px;
  background: transparent; border: none; border-bottom: 1px solid var(--hair);
  color: var(--ink); font-family: var(--font-body); font-size: 13.5px;
  text-align: left; cursor: pointer;
}
.category-button:hover { background: var(--surface2); color: var(--ink); }
.category-button strong { font-weight: 400; min-width: 0; }
.category-button.active { color: var(--primary); }
.category-button.active strong { font-weight: 600; }
.category-button > span { font-size: 12px; color: var(--muted); flex: 0 0 auto; }
.category-button .depth-pill { margin-left: 8px; }

/* Catalog cards — flat surface, square, hover ink border (BUILD §4) */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(225px, 1fr)); gap: 14px; }
.product-card {
  display: flex; flex-direction: column; align-items: stretch; gap: 9px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--ink); padding: 18px;
  text-align: left; cursor: pointer; font-family: var(--font-body);
}
.product-card:hover { background: var(--surface); border-color: var(--ink); }
.product-card.active { border-color: var(--primary); background: var(--surface2); }
.product-card h3 { font-family: var(--font-display); font-weight: 400; font-size: 21px; line-height: 1.05; letter-spacing: -.015em; margin: 0; color: var(--ink); }
.card-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.product-number { font-size: 11px; letter-spacing: .08em; color: var(--faint); }
.depth-pill { display: inline-block; font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; border: 1px solid var(--border); color: var(--muted); padding: 3px 7px; }
.product-type { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; color: var(--accent-ink); margin: 0; }
.product-reason { font-size: 13px; line-height: 1.55; color: var(--muted); margin: 0; }
.empty-state { font-size: 14px; line-height: 1.6; color: var(--muted); padding: 14px 0; margin: 0; }

/* Search + filter controls */
.catalog-tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin: 0 0 26px; }
.search-field, .select-field { display: grid; gap: 6px; align-content: start; }
.search-field > span, .select-field > span { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--muted); }
.search-field input, .select-field select { width: 100%; }

/* Workspace panels (guided conversation / certification / identity gate) */
.central-course-workspace { margin: 0 0 26px; }
.workspace-head { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.workspace-head strong { font-family: var(--font-display); font-weight: 400; font-size: 22px; letter-spacing: -.02em; color: var(--ink); }
.workspace-head small { font-size: 12.5px; color: var(--muted); }
.cert-close {
  background: transparent; border: 1px solid var(--ink); color: var(--ink);
  padding: 8px 14px; font-size: 12.5px; flex: 0 0 auto;
}
.cert-close:hover { background: var(--ink); color: var(--bg); }

/* Catalog conversation log — same voice as the climb chat panel */
.course-chat-log {
  display: flex; flex-direction: column; gap: 12px;
  border: 1px solid var(--border); background: var(--surface);
  padding: 16px; min-height: 240px; max-height: min(58vh, 560px); overflow: auto;
}
.course-message { padding: 14px 16px; font-size: 15px; line-height: 1.6; color: var(--ink); }
.course-message > span:first-child {
  display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 600; color: var(--muted); margin-bottom: 6px;
}
.course-message.assistant { background: var(--surface2); }
.course-message.user { border: 1px solid var(--border); }
.course-message p { margin: 0; }
.course-chat-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; margin-top: 12px; }
.course-chat-actions { display: flex; gap: 0; }
/* Exam treatment: examiner turns carry the accent rule (climb.html exam voice) */
#certLog .course-message.assistant { border-left: 3px solid var(--accent); }

/* Detail panel (rendered by renderDetail) */
.detail-label { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; color: var(--muted); margin: 0 0 10px; }
.detail-inner h2 { font-size: clamp(24px, 2.6vw, 30px); line-height: 1.05; letter-spacing: -.02em; margin: 0 0 10px; }
.detail-inner > p { font-size: 13.5px; line-height: 1.6; color: var(--muted); margin: 0 0 8px; }
.empty-label { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; color: var(--muted); margin: 0 0 10px; }
.course-launch-panel { border: 1px solid var(--border); background: var(--surface2); padding: 16px 18px; display: grid; gap: 10px; margin: 16px 0; }
.course-launch-panel > span { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--muted); }
.course-level-field { display: grid; gap: 5px; }
.course-level-field > span { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--muted); }
.course-launch-button { justify-self: start; }
.course-start-notice {
  border: 1px solid var(--border); border-top: 3px solid var(--accent);
  background: var(--surface); padding: 14px 16px;
  display: grid; gap: 5px; margin: 14px 0;
}
.course-start-notice strong { font-size: 14px; }
.course-start-notice span { font-size: 13px; line-height: 1.55; color: var(--muted); }
.course-start-notice small { font-size: 11.5px; color: var(--faint); }
.cert-stack { display: grid; gap: 0; margin-top: 18px; }
.cert-stack-label { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; color: var(--muted); padding-bottom: 10px; border-bottom: 1px solid var(--ink); }
.cert-option { border-bottom: 1px solid var(--hair); padding: 14px 0 16px; display: grid; gap: 6px; }
.cert-option strong { font-family: var(--font-display); font-weight: 400; font-size: 18px; letter-spacing: -.01em; }
.cert-option p { margin: 0; font-size: 13px; line-height: 1.55; color: var(--muted); }
.cert-option button { justify-self: start; padding: 9px 18px; font-size: 12.5px; }

/* Request panel — standard fields, quiet meta message (BUILD §4) */
.request-panel { border: 1px solid var(--border); background: var(--surface); padding: 24px 26px; margin: 0 0 26px; display: grid; gap: 18px; }
.request-copy > span { display: block; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.request-copy h2 { font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -.02em; margin: 0 0 8px; }
.request-copy p { font-size: 14px; line-height: 1.65; color: var(--muted); margin: 0; max-width: 64ch; }
.request-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; align-items: end; }
.request-form label { display: grid; gap: 6px; }
.request-form label > span { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--muted); }
.request-reason-field { grid-column: 1 / -1; }
.request-form textarea { resize: vertical; }
.request-form button { justify-self: start; padding: 12px 24px; font-size: 14px; }
.request-message { font-size: 13px; line-height: 1.5; color: var(--muted); margin: 0; }
.request-message[data-tone="error"], .request-message[data-tone="warning"] { color: var(--accent-ink); }
.request-actions { display: flex; align-items: center; }
.admin-queue-link { font-size: 12.5px; color: var(--muted); text-decoration: underline; justify-self: start; }
.admin-queue-link:hover { color: var(--ink); }

/* Admin queues — auth card, filters, hairline-divided entries (BUILD §4) */
.admin-auth-panel {
  max-width: 420px; margin: 56px auto;
  border: 1px solid var(--border); border-top: 3px solid var(--accent);
  background: var(--surface); padding: 28px;
  display: grid; gap: 14px;
}
.admin-auth-panel h2 { font-size: 26px; letter-spacing: -.02em; margin: 0; }
.admin-auth-panel > p { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--muted); }
.admin-auth-panel label { display: grid; gap: 6px; }
.admin-auth-panel label > span { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--muted); }
.admin-error { color: var(--accent-ink); font-size: 13px; margin: 0; }
.admin-summary { display: grid; gap: 6px; justify-items: start; }
.admin-summary strong { font-family: var(--font-display); font-weight: 400; font-size: clamp(40px, 5vw, 64px); line-height: 1; letter-spacing: -.03em; }
.admin-summary span { font-size: 13px; letter-spacing: .04em; color: var(--muted); }
.queue-toolbar { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; flex-wrap: wrap; margin-bottom: 20px; }
.queue-toolbar h2 { font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -.02em; margin: 0; }
.queue-toolbar p { margin: 4px 0 0; font-size: 12.5px; color: var(--muted); }
.queue-actions { display: flex; gap: 0; flex-wrap: wrap; align-items: center; }
.filter-btn {
  background: transparent; border: 1px solid var(--border); color: var(--muted);
  padding: 8px 14px; font-size: 12.5px; letter-spacing: .02em;
  margin: -1px 0 0 -1px; cursor: pointer;
}
.filter-btn:hover { background: var(--surface2); color: var(--ink); }
.filter-btn.active { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.secondary-admin-button {
  background: transparent; border: 1px solid var(--ink); color: var(--ink);
  padding: 8px 14px; font-size: 12.5px; margin-left: 14px;
}
.secondary-admin-button:hover { background: var(--ink); color: var(--bg); }
.admin-request-list { display: grid; gap: 0; border-top: 1px solid var(--ink); }
.admin-request-card {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(220px, 1fr);
  gap: 14px 28px; padding: 24px 0;
  border-bottom: 1px solid var(--hair);
}
.request-card-heading { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.status-pill { display: inline-block; border: 1px solid var(--accent); color: var(--accent-ink); padding: 4px 10px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.status-published .status-pill { background: var(--fill); border-color: var(--fill); color: var(--on-primary); }
.status-rejected .status-pill { border-color: var(--faint); color: var(--faint); }
.request-card-main h3 { font-family: var(--font-display); font-weight: 400; font-size: 24px; letter-spacing: -.02em; margin: 0 0 12px; }
.request-card-main dl { margin: 0; display: grid; gap: 9px; }
.request-card-main dt { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--muted); }
.request-card-main dd { margin: 2px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--ink); }
.local-request-note { font-size: 12.5px; line-height: 1.5; color: var(--accent-ink); margin: 10px 0 0; }
.request-card-side { display: grid; gap: 12px; align-content: start; }
.request-card-side label { display: grid; gap: 6px; }
.request-card-side label > span { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--muted); }
.request-card-side textarea { resize: vertical; }
.admin-card-actions { display: flex; gap: 0; flex-wrap: wrap; }
.admin-card-actions button { padding: 10px 16px; font-size: 12.5px; }
.admin-card-actions button + button { border-left: none; }
.danger-admin-button { background: transparent; border: 1px solid var(--ink); color: var(--ink); }
.danger-admin-button:hover { background: var(--ink); color: var(--bg); }
.request-history { display: grid; gap: 4px; font-size: 12px; color: var(--muted); }
.request-history strong { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.request-history p { margin: 0; }

@media (max-width: 900px) {
  .admin-request-card { grid-template-columns: 1fr; }
}
