/* Entry point for your PostCSS build */
/*
 * Shared design language tokens — Newsreader / Instrument Sans / IBM Plex Mono
 * fonts, and the --rp-* color custom properties. Single source, extracted
 * from app/views/reports/show.html.erb (the reference implementation; see
 * ROLE_IA_PLAN.md, WEB_EXPERIENCE_PLAN.md §1). Dark is the default theme.
 *
 * Design-conform brief M1 (2026-07-20): this is now the ONE token source
 * for the whole app, not just the report page. marketing.css already only
 * *consumed* --rp-* (it never declared its own copies) — nothing to fold
 * there. pages/dev_landing.html.erb DID declare its own private --bg/
 * --panel/--text/etc. (correct canonical values, wrong architecture — a
 * second source that could silently drift); folded onto --rp-* directly,
 * see that file. The app layout's old-shell vars (--bg-primary #0a0a0a,
 * --accent-blue, etc.) are aliased to --rp-* values as a transition bridge
 * (M1) and killed outright once every consumer has converted (M5/DoD —
 * grep proof there).
 *
 * Usage: add `wp-surface` to a page's root element to opt in. Add
 * `wp-theme-light` alongside it for the light/print variant. The `.report` /
 * `.report-theme-light` selectors are included directly (not duplicated)
 * so the career report — already shipped — draws from this same source
 * without any markup changes.
 *
 * Fonts are self-hosted (app/assets/fonts/, Latin subset only — matches what
 * these pages' copy actually uses) rather than the Google Fonts @import this
 * file used to carry (W2 brief: no external font requests in page source).
 * Filenames are relative; Propshaft rewrites them to digested /assets/ paths
 * when it compiles this file (verified: no extra plugin needed).
 */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/ibm-plex-mono-400-d803141a.woff2") format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/ibm-plex-mono-500-3f7bbac1.woff2") format('woff2');
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700; /* variable font, one file covers the whole range */
  font-display: swap;
  src: url("/assets/instrument-sans-variable-570a9648.woff2") format('woff2');
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400 500; /* variable font, one file covers 400 and 500 */
  font-display: swap;
  src: url("/assets/newsreader-normal-4b499f36.woff2") format('woff2');
}
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/newsreader-italic-400-4de64287.woff2") format('woff2');
}
.wp-surface, .report {
  --rp-bg: #070A10; --rp-text: #EEF2F9; --rp-muted: #97A1B4; --rp-body: #B9C2D0;
  --rp-hair: rgba(255,255,255,0.07); --rp-hair2: rgba(255,255,255,0.14);
  --rp-accent: #3DA5FF; --rp-accent2: #29F2FF;
  /* Added for W2 (concept homepage): dim label / card surface / rule line,
     plus the canonical domain palette (CLAUDE.md) reused as semantic accents
     (Jobprint=violet, Strengths=green, Gaps=red, Neutral=steel). */
  --rp-dim: #5F6A80; --rp-card: #0B0F17; --rp-rule: #39414F; --rp-label2: #C6CEDD;
  --rp-violet: #8B7CFF; --rp-green: #73F59D; --rp-red: #FF4D5E; --rp-steel: #8AA0A8;
  /* Candidate-seat brief (2026-07-29): amber, for the trajectory
     placeholder's illustrative "threshold" marker line only. */
  --rp-amber: #FFD166;
}
.wp-surface.wp-theme-light, .report.report-theme-light {
  --rp-bg: #FAF9F5; --rp-text: #10192A; --rp-muted: #5A6474; --rp-body: #39445A;
  --rp-hair: rgba(11,21,36,0.10); --rp-hair2: rgba(11,21,36,0.18);
  --rp-accent: #1F7AD4; --rp-accent2: #0E8FA8;
  --rp-dim: #7A8394; --rp-card: #F1EFE9; --rp-rule: #D8D3C8; --rp-label2: #2C3547;
  --rp-violet: #6E5FCF; --rp-green: #2E8B57; --rp-red: #C23B4A; --rp-steel: #5E7276;
  --rp-amber: #B8860B;
}
/* Base reset for chromeless wp-surface pages (marketing layout body) —
   the report page has its own equivalent inline; this is the shared version
   for any future layout that opts into wp-surface at the <body> level. */
.wp-marketing-body {
  margin: 0;
  background: var(--rp-bg, #070A10);
  color: var(--rp-text, #EEF2F9);
  font-family: 'Instrument Sans', -apple-system, sans-serif;
}
/* Small reusable typographic voice, matching the report page's grammar
   (numbered section labels, mono data labels) for any surface that adopts
   wp-surface without needing to redeclare font-family/letter-spacing. */
.wp-mono { font-family: 'IBM Plex Mono', monospace; }
.wp-serif { font-family: 'Newsreader', Georgia, serif; }
.wp-kicker {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--rp-accent);
  margin: 0 0 10px;
}
/*
 * The concept homepage + explore-deeper page (W2 brief). Real ERB + CSS
 * port of design_previews/dark.html (mockup "1a"), section by section —
 * homepage_transcript.md is the copy source. Uses design_tokens.css's
 * --rp-* tokens exclusively; no inline hex colors.
 * Section class prefix: .mk-
 */
.mk-page { max-width: 1264px; margin: 0 auto; }
/* ── Nav ─────────────────────────────────────────────────────────── */
.mk-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 48px; border-bottom: 1px solid var(--rp-hair);
}
.mk-nav-brand { display: flex; align-items: center; gap: 9px; }
.mk-nav-brand span { font-size: 13.5px; font-weight: 600; letter-spacing: 0.14em; color: var(--rp-text); }
.mk-nav-right { display: flex; align-items: center; gap: 30px; }
.mk-nav-link { font-size: 13px; color: var(--rp-muted); text-decoration: none; }
.mk-nav-link:hover { color: var(--rp-text); }
.mk-btn-primary {
  background: var(--rp-accent); color: #04101E; font-size: 13px; font-weight: 600;
  padding: 10px 18px; border-radius: 8px; text-decoration: none; border: none; cursor: pointer;
  font-family: inherit; display: inline-block;
}
.mk-btn-primary:hover { background: var(--rp-accent2); }
.mk-btn-secondary {
  border: 1px solid var(--rp-hair2); background: rgba(255,255,255,0.02); color: var(--rp-text);
  font-size: 13.5px; font-weight: 500; padding: 13px 22px; border-radius: 8px; text-decoration: none;
  display: inline-block;
}
.mk-btn-secondary:hover { border-color: var(--rp-accent); color: var(--rp-accent); }
/* ── Hero ────────────────────────────────────────────────────────── */
.mk-hero {
  display: grid; grid-template-columns: 1fr 620px; gap: 56px; align-items: center;
  padding: 64px 88px 72px;
}
.mk-hero-title {
  font-family: 'Newsreader', Georgia, serif; font-size: 62px; line-height: 1.07;
  font-weight: 400; letter-spacing: -0.02em; color: var(--rp-text); margin: 0;
}
.mk-hero-sub { font-size: 16.5px; line-height: 1.6; color: var(--rp-muted); margin: 26px 0 0; max-width: 460px; }
.mk-hero-sub2 { font-size: 14px; line-height: 1.65; color: var(--rp-dim); margin: 14px 0 0; max-width: 440px; }
.mk-hero-actions { display: flex; align-items: center; gap: 12px; margin-top: 34px; }
.mk-hero-render { width: 100%; max-width: 620px; }
.mk-hero-render svg { width: 100%; height: auto; display: block; }
/* ── Section shell ───────────────────────────────────────────────── */
.mk-section { border-top: 1px solid var(--rp-hair); padding: 72px 88px; }
.mk-section-tight { padding-bottom: 56px; }
.mk-eyebrow {
  font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--rp-dim);
}
.mk-eyebrow b { color: var(--rp-accent); font-weight: 400; }
.mk-h2 {
  font-family: 'Newsreader', Georgia, serif; font-size: 36px; line-height: 1.22;
  font-weight: 400; letter-spacing: -0.015em; color: var(--rp-text); margin: 18px 0 0; max-width: 640px;
}
/* ── 01 Problem ──────────────────────────────────────────────────── */
.mk-problem-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; margin-top: 44px; }
.mk-problem-card {
  background: var(--rp-card); border: 1px solid var(--rp-hair2); border-radius: 12px;
  padding: 26px; min-height: 230px; display: flex; flex-direction: column;
}
.mk-problem-card.mk-problem-reality { border-color: rgba(61,165,255,0.25); }
.mk-problem-label { font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--rp-dim); }
.mk-problem-reality .mk-problem-label { color: var(--rp-accent); }
.mk-problem-rows { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.mk-problem-row { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--rp-muted); }
.mk-problem-row.mk-primary { font-size: 14px; font-weight: 500; color: var(--rp-text); }
.mk-problem-row::before { content: ""; width: 12px; height: 1px; background: var(--rp-rule); flex: none; }
.mk-problem-row.mk-primary::before { background: var(--rp-accent); }
.mk-problem-reality .mk-problem-columns { display: flex; gap: 18px; margin-top: 18px; }
.mk-problem-icon { margin-top: auto; padding-top: 18px; color: var(--rp-dim); }
/* ── 02 Insight ──────────────────────────────────────────────────── */
.mk-insight-inputs { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; margin-top: 48px; }
.mk-insight-input { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 110px; }
.mk-insight-icon {
  display: flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border: 1px solid var(--rp-hair2); border-radius: 50%; color: var(--rp-muted);
}
.mk-insight-input span { font-size: 11.5px; color: var(--rp-muted); text-align: center; }
.mk-insight-render { margin-top: 24px; }
.mk-insight-render svg { width: 100%; height: auto; display: block; }
.mk-insight-notes { display: flex; flex-direction: column; gap: 9px; max-width: 400px; margin: 24px auto 0; text-align: center; }
.mk-insight-notes p { font-size: 13.5px; color: var(--rp-muted); margin: 0; }
.mk-insight-notes p.mk-insight-conclusion { font-size: 14.5px; line-height: 1.55; color: var(--rp-text); margin-top: 12px; }
/* ── 03 Inside ───────────────────────────────────────────────────── */
.mk-inside-grid { display: grid; grid-template-columns: 220px 1fr 220px; gap: 36px; align-items: center; margin-top: 36px; }
.mk-inside-labels { display: flex; flex-direction: column; gap: 15px; }
.mk-inside-labels.mk-right { align-items: flex-start; }
.mk-inside-labels.mk-left { align-items: flex-end; }
.mk-inside-label { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--rp-muted); }
.mk-inside-labels.mk-left .mk-inside-label { flex-direction: row-reverse; }
.mk-inside-label::before { content: ""; width: 22px; height: 1px; background: var(--rp-rule); flex: none; }
.mk-inside-render { display: block; cursor: pointer; transition: opacity 0.2s; }
.mk-inside-render:hover { opacity: 0.85; }
.mk-inside-render svg { width: 100%; height: auto; display: block; }
.mk-inside-hint {
  text-align: center; font-family: 'IBM Plex Mono', monospace; font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--rp-dim); margin-top: 20px;
}
/* ── 04 Compatibility ────────────────────────────────────────────── */
.mk-compat-labels { display: flex; justify-content: space-between; padding: 0 120px; margin-top: 40px; }
.mk-compat-labels span { font-family: 'Newsreader', Georgia, serif; font-size: 21px; }
.mk-compat-labels .mk-compat-job { color: var(--rp-violet); }
.mk-compat-render { position: relative; }
.mk-compat-render svg { width: 100%; height: auto; display: block; }
.mk-compat-score {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  background: var(--rp-card); border: 1px solid var(--rp-hair2); border-radius: 12px;
  padding: 16px 28px; text-align: center;
}
.mk-compat-score b { font-family: 'Newsreader', Georgia, serif; font-size: 34px; font-weight: 400; color: var(--rp-text); display: block; }
.mk-compat-score span { font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--rp-dim); margin-top: 4px; display: block; }
.mk-compat-legend { display: flex; justify-content: center; gap: 28px; margin-top: 16px; }
.mk-compat-legend-item { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--rp-muted); }
.mk-compat-legend-item::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--dot); }
/* ── 05 AI capability chips ──────────────────────────────────────── */
.mk-ai-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; margin-top: 44px; }
.mk-ai-chip { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.mk-ai-chip span { font-size: 13px; line-height: 1.5; color: var(--rp-muted); }
/* ── 06 Personas ─────────────────────────────────────────────────── */
.mk-persona-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 36px; }
.mk-persona-card { background: var(--rp-card); border: 1px solid var(--rp-hair2); border-radius: 12px; padding: 24px; }
.mk-persona-card .mk-insight-icon { width: 38px; height: 38px; }
.mk-persona-card b { font-size: 15px; font-weight: 600; color: var(--rp-text); margin-top: 16px; display: block; }
.mk-persona-card span { font-size: 13.5px; color: var(--rp-muted); margin-top: 6px; display: block; }
/* ── 07 Eras timeline ────────────────────────────────────────────── */
.mk-eras-row { display: flex; align-items: center; justify-content: space-between; margin-top: 44px; padding: 0 40px; gap: 12px; }
.mk-eras-col { width: 280px; }
.mk-eras-era { font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--rp-dim); }
.mk-eras-col.mk-eras-current .mk-eras-era { color: var(--rp-accent); }
.mk-eras-label { font-size: 17px; font-weight: 500; color: var(--rp-text); margin-top: 8px; }
.mk-eras-col.mk-eras-current .mk-eras-label { color: var(--rp-accent); }
.mk-eras-viz { margin-top: 14px; }
.mk-eras-arrow { flex: none; color: var(--rp-dim); }
/* ── 08 Build grid ───────────────────────────────────────────────── */
.mk-build-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-top: 36px; }
.mk-build-card {
  background: var(--rp-card); border: 1px solid var(--rp-hair2); border-radius: 10px;
  padding: 20px 10px; display: flex; flex-direction: column; align-items: center; gap: 12px; color: var(--rp-muted);
}
.mk-build-card span { font-size: 12.5px; font-weight: 500; color: var(--rp-label2); text-align: center; }
/* ── 09 Explainable ──────────────────────────────────────────────── */
.mk-explain-grid { display: grid; grid-template-columns: 1fr 520px; gap: 64px; align-items: center; margin-top: 8px; }
.mk-explain-copy { font-size: 14px; line-height: 1.65; color: var(--rp-muted); margin: 14px 0 0; max-width: 400px; }
.mk-explain-card { background: var(--rp-card); border: 1px solid var(--rp-hair2); border-radius: 12px; padding: 20px 22px; margin-top: 28px; max-width: 360px; }
.mk-explain-card-head { display: flex; align-items: center; justify-content: space-between; font-size: 14px; font-weight: 600; color: var(--rp-text); }
.mk-explain-rule { height: 1px; background: var(--rp-hair2); margin: 16px 0; }
.mk-explain-list { display: flex; flex-direction: column; gap: 12px; }
.mk-explain-list div { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--rp-muted); }
.mk-explain-list div::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--dot); flex: none; }
.mk-explain-render svg { width: 100%; height: auto; display: block; }
/* ── 10 Join Early ───────────────────────────────────────────────── */
.mk-join { display: flex; align-items: center; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.mk-join-title { font-family: 'Newsreader', Georgia, serif; font-size: 30px; line-height: 1.25; font-weight: 400; letter-spacing: -0.015em; color: var(--rp-text); margin: 16px 0 0; max-width: 520px; }
.mk-join-form { display: flex; gap: 12px; flex: none; flex-wrap: wrap; }
.mk-join-input {
  background: rgba(255,255,255,0.03); border: 1px solid var(--rp-hair2); border-radius: 8px;
  padding: 13px 16px; width: 280px; font-family: 'Instrument Sans', sans-serif; font-size: 13.5px;
  color: var(--rp-text); outline: none;
}
.mk-join-input:focus { border-color: var(--rp-accent); }
.mk-join-hp { position: absolute; left: -9999px; opacity: 0; }
.mk-join-flash { font-size: 13px; margin-top: 10px; width: 100%; }
.mk-join-flash-ok { color: var(--rp-green); }
.mk-join-flash-err { color: var(--rp-red); }
.mk-join-flash-hint { color: var(--rp-dim); }
/* ── Manifesto interlude (explore-deeper only) ──────────────────── */
.mk-manifesto {
  border-top: 1px solid var(--rp-hair); border-bottom: 1px solid var(--rp-hair);
  padding: 88px 88px; text-align: center;
}
.mk-manifesto p {
  font-family: 'Newsreader', Georgia, serif; font-style: italic; font-size: 26px;
  line-height: 1.6; color: var(--rp-text); max-width: 720px; margin: 0 auto;
}
/* ── Footer ──────────────────────────────────────────────────────── */
.mk-footer { border-top: 1px solid var(--rp-hair); padding: 56px 88px 40px; }
.mk-footer-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 32px; }
.mk-footer-brand { display: flex; align-items: center; gap: 9px; }
.mk-footer-brand span { font-size: 12.5px; font-weight: 600; letter-spacing: 0.14em; color: var(--rp-text); }
.mk-footer-manifesto { font-size: 13px; line-height: 1.7; color: var(--rp-muted); margin: 16px 0 0; max-width: 320px; }
.mk-footer-links { display: flex; gap: 64px; flex-wrap: wrap; }
.mk-footer-nav { display: flex; flex-direction: column; gap: 11px; font-size: 13px; color: var(--rp-muted); }
.mk-footer-bottom {
  display: flex; justify-content: space-between; margin-top: 44px; flex-wrap: wrap; gap: 8px;
  font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; letter-spacing: 0.14em; color: var(--rp-dim);
}
/* Domain-color dot utilities (compat legend, explain list) */
.mk-dot-green { --dot: var(--rp-green); }
.mk-dot-red { --dot: var(--rp-red); }
.mk-dot-steel { --dot: var(--rp-steel); }
.mk-dot-blue { --dot: var(--rp-accent); }
.mk-dot-amber { --dot: #FFD166; }
/* ── Responsive (real breakpoints, not attribute hacks) ─────────── */
@media (max-width: 860px) {
  .mk-nav { padding: 16px 20px; }
  .mk-nav-right .mk-nav-link { display: none; }

  .mk-hero { grid-template-columns: 1fr; padding: 40px 20px 48px; gap: 32px; }
  .mk-hero-title { font-size: 34px; line-height: 1.15; }
  .mk-hero-render { max-width: 100%; order: -1; }

  .mk-section { padding: 48px 20px; }
  .mk-h2 { font-size: 26px; }

  .mk-problem-grid, .mk-ai-grid, .mk-persona-grid { grid-template-columns: 1fr; }
  .mk-build-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }

  .mk-insight-inputs { justify-content: center; }
  .mk-insight-input { width: 84px; }

  .mk-inside-grid { grid-template-columns: 1fr; gap: 20px; }
  .mk-inside-labels { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 10px 16px; }
  .mk-inside-labels.mk-left .mk-inside-label, .mk-inside-labels .mk-inside-label { flex-direction: row; }
  .mk-inside-label::before { display: none; }

  .mk-compat-labels { padding: 0 12px; }
  .mk-compat-score { padding: 10px 16px; }
  .mk-compat-score b { font-size: 24px; }

  .mk-explain-grid { grid-template-columns: 1fr; gap: 28px; }

  .mk-eras-row { flex-direction: column; padding: 0; gap: 28px; }
  .mk-eras-col { width: 100%; text-align: center; }
  .mk-eras-arrow { transform: rotate(90deg); }

  .mk-join { flex-direction: column; align-items: flex-start; }
  .mk-join-form { width: 100%; }
  .mk-join-input { width: 100%; flex: 1; min-width: 0; }

  .mk-manifesto { padding: 56px 20px; }
  .mk-manifesto p { font-size: 20px; }

  .mk-footer { padding: 40px 20px 32px; }
  .mk-footer-top { flex-direction: column; }
  .mk-footer-bottom { flex-direction: column; }
}
/*
 * Auth pages (design-conform brief M2) — the threshold between the
 * marketing world and the app. Per WEB_EXPERIENCE_PLAN §3.2: "Same tokens,
 * same dark canvas, one small render (demo mini as the 'logo mark
 * moment')." Uses design_tokens.css's --rp-* exclusively, matching
 * marketing.css's convention (no private colors here either).
 */
.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--rp-card);
  border: 1px solid var(--rp-hair2);
  border-radius: 12px;
  padding: 40px;
}
.auth-header {
  text-align: center;
  margin-bottom: 32px;
}
.auth-mark {
  margin: 0 auto 20px;
  width: 96px;
}
.auth-mark svg { width: 100%; height: auto; display: block; }
/* Fallback if the demo candidate is ever missing (empty/reseeded dev DB) —
   the plain wordmark icon instead of a mini render. */
.auth-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  margin: 0 auto 16px;
  display: block;
}
.auth-kicker {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--rp-dim);
  margin: 0 0 12px;
}
.auth-header h1 {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--rp-text);
  margin: 0 0 10px;
}
.auth-header p {
  font-size: 14px;
  color: var(--rp-muted);
  margin: 0;
}
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-errors {
  background: color-mix(in srgb, var(--rp-red) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--rp-red) 30%, transparent);
  border-radius: 6px;
  padding: 12px 16px;
}
.form-errors p {
  font-size: 13px;
  color: var(--rp-red);
  margin: 0 0 4px 0;
}
.form-errors p:last-child {
  margin-bottom: 0;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  color: var(--rp-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.form-group input, .form-group select {
  padding: 12px 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--rp-hair2);
  border-radius: 6px;
  color: var(--rp-text);
  font-family: 'Instrument Sans', sans-serif;
  font-size: 14px;
  transition: border-color 0.2s;
}
.form-group input:focus, .form-group select:focus {
  outline: none;
  border-color: var(--rp-accent);
}
.form-group select {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2397A1B4' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
.form-group select option {
  background: var(--rp-card);
  color: var(--rp-text);
}
.form-actions {
  margin-top: 4px;
}
.btn-full {
  width: 100%;
  justify-content: center;
  padding: 13px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: background 0.2s;
  background: var(--rp-accent);
  color: #04101E;
}
.btn-full:hover {
  background: var(--rp-accent2);
}
.auth-footer {
  text-align: center;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--rp-hair);
}
.auth-footer p {
  font-size: 14px;
  color: var(--rp-muted);
  margin: 0;
}
.auth-footer a {
  color: var(--rp-accent);
  text-decoration: none;
  font-weight: 500;
}
.auth-footer a:hover {
  color: var(--rp-accent2);
}
@media (max-width: 480px) {
  .auth-card { padding: 28px 24px; }
  .auth-header h1 { font-size: 25px; }
}
/*
 * Candidate-seat brief (2026-07-29): the app-shell chrome + strip layout,
 * adapted from docs/design/native_adaptation/candidate_seat.html (the
 * architect's approved our-stack proof) into real selectors. Structure and
 * values are carried over almost verbatim; every class is prefixed
 * `seat-` so this — loaded application-wide via application.postcss.css —
 * can never collide with an existing generic class (.card, .btn, .chip,
 * etc. all already exist elsewhere in the app under their own meaning).
 *
 * First consumer: shared/_seat_nav + candidate_app/dashboard/show.
 * Leader/Recruiter/Admin reuse this same stylesheet when they adopt the
 * shell in their own increments — nothing here is candidate-specific
 * except the "This seat" sub-nav items, which live in the partial, not
 * here.
 */
/* Viewer-shell brief (2026-07-30) fixed a real bug here: this class was
   defined from the start but never applied in any consuming view — every
   seat page rendered shared/_seat_nav + <main class="seat-main"> as plain
   siblings of <body>, which is itself `display:flex; flex-direction:
   column` (application layout). That stacked the sidebar ABOVE the main
   content instead of beside it, wasting the entire top-right quadrant on
   every seat page since the Candidate seat shipped — not caught visually
   because the sidebar's own height happened to roughly span typical
   above-the-fold content, so screenshots read as "looks right" without
   measuring. Every seat_nav consumer now wraps
   `<%= render "shared/seat_nav" %><main class="seat-main">...</main>` in
   `<div class="seat-shell">`. */
.seat-shell { display: flex; min-height: 100vh; }
.seat-side {
  width: 238px; flex: none; border-right: 1px solid var(--rp-hair);
  background: var(--rp-bg); display: flex; flex-direction: column; padding: 18px 14px;
}
.seat-brand { display: flex; align-items: center; gap: 9px; padding: 4px 8px 20px; text-decoration: none; }
.seat-brand .seat-ic {
  width: 22px; height: 22px; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #7FD0FF, #3DA5FF 60%, #1D5FA8);
  box-shadow: 0 0 10px rgba(61,165,255,.5);
}
.seat-brand .seat-nm { font-weight: 600; letter-spacing: .13em; font-size: 13px; color: var(--rp-text); }
.seat-navgrp { margin-bottom: 18px; }
.seat-lbl {
  font-family: 'IBM Plex Mono', monospace; font-size: 9.5px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--rp-dim); padding: 0 8px 8px; display: block;
}
.seat-navitem {
  display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 7px;
  color: var(--rp-muted); font-size: 13px; cursor: pointer; text-decoration: none;
}
.seat-navitem:hover { background: rgba(255,255,255,.03); color: var(--rp-text); }
.seat-navitem.on { background: rgba(41,242,255,.08); color: var(--rp-text); }
.seat-navitem .seat-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--rp-accent2); flex: none; }
.seat-navitem.sub { padding-left: 12px; font-size: 12.5px; }
.seat-side .seat-user {
  margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px 8px 2px;
  border-top: 1px solid var(--rp-hair);
}
.seat-side .seat-user .seat-av {
  width: 30px; height: 30px; border-radius: 50%; background: var(--rp-accent); color: #04101E;
  display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 12px; flex: none;
  text-decoration: none;
}
.seat-side .seat-user > div { flex: 1; min-width: 0; }
.seat-side .seat-user .seat-un { font-size: 12.5px; color: var(--rp-text); }
.seat-side .seat-user .seat-un-link { color: inherit; text-decoration: none; }
.seat-side .seat-user .seat-un-link:hover { color: var(--rp-accent); }
.seat-side .seat-user .seat-ur { font-size: 11px; color: var(--rp-dim); }
.seat-side .seat-user .seat-theme-toggle { margin-right: 2px; }
/* mobile topbar (hidden on desktop) */
.seat-topbar { display: none; }
.seat-main { flex: 1; min-width: 0; padding: 26px 30px 60px; max-width: 1180px; }
.seat-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-bottom: 18px; margin-bottom: 22px; border-bottom: 1px solid var(--rp-hair);
}
.seat-head h1 {
  font-family: 'Newsreader', Georgia, serif; font-weight: 400; font-size: 31px; line-height: 1.1;
  letter-spacing: -.015em; margin: 8px 0 0; text-wrap: balance; max-width: 20ch; color: var(--rp-text);
}
.seat-head .seat-acts { display: flex; gap: 9px; flex-shrink: 0; }
.seat-btn {
  font-size: 13px; padding: 8px 15px; border-radius: 8px; border: 1px solid var(--rp-hair2);
  color: var(--rp-text); background: transparent; cursor: pointer; display: inline-flex; gap: 7px;
  align-items: center; text-decoration: none; font-family: inherit;
}
.seat-btn:hover { border-color: var(--rp-accent); color: var(--rp-accent); }
.seat-sect { margin-top: 26px; }
.seat-sect > .seat-kick { margin-bottom: 12px; }
.seat-kick {
  font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--rp-dim);
}
.seat-kick b { color: var(--rp-accent); font-weight: 400; }
.seat-card { background: var(--rp-card); border: 1px solid var(--rp-hair2); border-radius: 12px; padding: 18px; }
/* hero */
.seat-hero { display: grid; grid-template-columns: 1fr 300px; gap: 0; overflow: hidden; padding: 0; }
.seat-hero .seat-stage { position: relative; padding: 16px 16px 8px; border-right: 1px solid var(--rp-hair); }
.seat-hero .seat-stage .seat-who { font-size: 13px; color: var(--rp-text); }
.seat-hero .seat-stage .seat-who b { font-weight: 600; }
.seat-hero .seat-stage .seat-who span { color: var(--rp-muted); }
.seat-hero .seat-stage .seat-render { display: flex; justify-content: center; align-items: center; padding: 6px 0; }
.seat-hero .seat-stage .seat-render svg { max-width: 100%; height: auto; }
.seat-hero .seat-stage .seat-ctrls { position: absolute; top: 16px; right: 16px; display: flex; gap: 7px; }
.seat-chip { font-size: 11px; padding: 5px 11px; border-radius: 6px; border: 1px solid var(--rp-hair2); color: var(--rp-muted); }
.seat-hero .seat-stage .seat-hint {
  font-family: 'IBM Plex Mono', monospace; font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--rp-dim); padding: 2px 2px 10px;
}
.seat-hero .seat-node { padding: 16px 18px; }
.seat-hero .seat-node .seat-nl {
  font-family: 'IBM Plex Mono', monospace; font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--rp-dim);
}
.seat-hero .seat-node .seat-nn { display: flex; align-items: center; gap: 8px; font-weight: 600; margin-top: 6px; color: var(--rp-text); }
.seat-hero .seat-node .seat-nn::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--rp-accent2); }
.seat-hero .seat-node .seat-nm2 { font-size: 12px; color: var(--rp-muted); margin: 3px 0 14px; }
.seat-hero .seat-node .seat-ev {
  font-family: 'IBM Plex Mono', monospace; font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--rp-dim); margin-bottom: 8px;
}
.seat-hero .seat-node ul { list-style: none; margin: 0 0 14px; padding: 0; }
.seat-hero .seat-node li { display: flex; gap: 8px; font-size: 12px; color: var(--rp-body); padding: 3px 0; }
.seat-hero .seat-node li::before { content: "◆"; color: var(--rp-accent); font-size: 9px; line-height: 1.4; }
.seat-hero .seat-node .seat-link { color: var(--rp-accent); font-size: 12px; text-decoration: none; }
.seat-hero .seat-node .seat-empty { font-size: 12.5px; color: var(--rp-muted); }
/* two-col strip: main + side */
.seat-strip { display: grid; grid-template-columns: 1fr 260px; gap: 14px; }
.seat-side-card { background: var(--rp-card); border: 1px solid var(--rp-hair2); border-radius: 12px; padding: 16px; }
.seat-side-card.accent { border-color: rgba(41,242,255,.25); }
.seat-side-card .seat-ct { font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--rp-accent2); }
.seat-side-card .seat-big { font-family: 'Newsreader', Georgia, serif; font-size: 20px; margin: 6px 0 8px; color: var(--rp-text); }
.seat-side-card p { margin: 0; font-size: 12.5px; color: var(--rp-muted); line-height: 1.55; }
/* illustrative / placeholder badge — every honest-placeholder strip carries
   this so it never reads as live data (brief's lab rule). */
.seat-illustrative {
  font-family: 'IBM Plex Mono', monospace; font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--rp-dim); border: 1px dashed var(--rp-hair2); border-radius: 5px; padding: 2px 7px;
}
/* trajectory chart */
.seat-traj { position: relative; }
.seat-traj .seat-cap { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; flex-wrap: wrap; gap: 6px; }
.seat-traj .seat-cap b { font-weight: 600; color: var(--rp-text); }
.seat-traj .seat-cap span { font-size: 11px; color: var(--rp-muted); }
.seat-traj svg { width: 100%; height: auto; display: block; }
.seat-leg { display: flex; gap: 16px; margin-top: 8px; font-size: 11px; color: var(--rp-muted); flex-wrap: wrap; }
.seat-leg i { display: inline-block; width: 14px; height: 2px; vertical-align: middle; margin-right: 5px; }
/* gap coverage */
.seat-gap h3 { font-family: 'Newsreader', Georgia, serif; font-weight: 400; font-size: 19px; margin: 0 0 14px; line-height: 1.4; color: var(--rp-text); }
.seat-gap h3 b { font-weight: 600; }
.seat-gap .seat-cov { color: var(--rp-green); }
.seat-gap .seat-lnk { color: var(--rp-accent); }
.seat-cells { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 12px; }
.seat-cell { width: 30px; height: 26px; border-radius: 5px; }
.seat-cell.c { background: var(--rp-green); opacity: .85; }
.seat-cell.g { background: var(--rp-accent); }
.seat-covleg { display: flex; gap: 16px; font-size: 12px; color: var(--rp-muted); margin-bottom: 14px; flex-wrap: wrap; }
.seat-covleg i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; vertical-align: middle; margin-right: 6px; }
.seat-cta {
  background: var(--rp-accent); color: #04101E; font-weight: 600; font-size: 13px; border: none; border-radius: 8px;
  padding: 10px 18px; cursor: pointer; font-family: inherit;
}
.seat-cta:hover { background: var(--rp-accent2); }
.seat-cta[disabled], .seat-cta.is-placeholder { cursor: default; opacity: .55; }
.seat-cta[disabled]:hover, .seat-cta.is-placeholder:hover { background: var(--rp-accent); }
.seat-path .seat-rq { display: flex; gap: 10px; font-size: 12.5px; padding: 5px 0; border-bottom: 1px solid var(--rp-hair); color: var(--rp-muted); }
.seat-path .seat-rq:last-child { border-bottom: none; }
/* consent + purity */
.seat-consent .seat-row { display: flex; align-items: flex-start; gap: 11px; padding: 12px 0; border-bottom: 1px solid var(--rp-hair); }
.seat-consent .seat-row:last-child { border-bottom: none; }
.seat-consent .seat-row .seat-st { width: 7px; height: 7px; border-radius: 50%; margin-top: 5px; flex: none; }
.seat-consent .seat-row .seat-t { flex: 1; min-width: 0; }
.seat-consent .seat-row .seat-t b { font-weight: 600; font-size: 13px; color: var(--rp-text); }
.seat-consent .seat-row .seat-t span { display: block; font-size: 11.5px; color: var(--rp-dim); margin-top: 2px; }
.seat-consent .seat-row .seat-tag { font-size: 11px; color: var(--rp-muted); flex: none; }
.seat-consent .seat-row .seat-tag.rev { color: var(--rp-text); border: 1px solid var(--rp-hair2); border-radius: 6px; padding: 4px 10px; }
.seat-purity .seat-big { font-family: 'Newsreader', Georgia, serif; font-size: 38px; line-height: 1; color: var(--rp-text); }
.seat-purity .seat-big small { font-size: 13px; color: var(--rp-muted); font-family: 'Instrument Sans', sans-serif; margin-left: 6px; }
.seat-pbar { height: 6px; border-radius: 3px; background: rgba(255,255,255,.06); overflow: hidden; margin: 14px 0 10px; }
.seat-pbar i { display: block; height: 100%; background: linear-gradient(90deg, var(--rp-accent), var(--rp-accent2)); }
.seat-refuse {
  font-family: 'IBM Plex Mono', monospace; font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--rp-dim); float: right;
}
.seat-foot {
  margin-top: 24px; padding: 14px 16px; border: 1px solid var(--rp-hair); border-radius: 10px;
  font-size: 12.5px; color: var(--rp-muted);
}
.seat-foot b { color: var(--rp-body); font-weight: 400; }
.seat-theme-toggle {
  display: flex; align-items: center; justify-content: center; width: 28px; height: 28px;
  background: none; border: 1px solid var(--rp-hair2); border-radius: 8px;
  color: var(--rp-muted); cursor: pointer; font-family: inherit; transition: all 0.2s; flex: none;
}
.seat-theme-toggle:hover { color: var(--rp-accent); border-color: var(--rp-accent); }
/* ---------- RESPONSIVE (the template's value-add — the React comp lacks it) ---------- */
@media (max-width: 900px) {
  .seat-shell { flex-direction: column; }
  .seat-side { display: none; }
  .seat-topbar {
    display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 5;
    padding: 11px 16px; background: var(--rp-bg); border-bottom: 1px solid var(--rp-hair); overflow-x: auto;
  }
  .seat-topbar .seat-brand { padding: 0; flex: none; }
  .seat-topbar .seat-tabs { display: flex; gap: 4px; flex: 1; }
  .seat-topbar .seat-tab {
    font-size: 12.5px; color: var(--rp-muted); padding: 5px 10px; border-radius: 6px; white-space: nowrap;
    text-decoration: none;
  }
  .seat-topbar .seat-tab.on { color: var(--rp-text); background: rgba(41,242,255,.08); }
  .seat-main { padding: 18px 16px 48px; }
  .seat-head h1 { font-size: 25px; max-width: none; }
  .seat-hero { grid-template-columns: 1fr; }
  .seat-hero .seat-stage { border-right: none; border-bottom: 1px solid var(--rp-hair); }
  /* The who-line ("Name · role · yrs") and the Rotate/Scrub chips share
     the same row on desktop, where there's room. Below 900px the who-line
     wraps to 2+ lines and the absolutely-positioned chips start overlapping
     it — drop them back into flow, below the text. */
  .seat-hero .seat-stage .seat-ctrls { position: static; margin: 8px 0 0; justify-content: flex-end; }
  .seat-strip { grid-template-columns: 1fr; }
  .seat-flow-row { grid-template-columns: 1fr; gap: 6px; text-align: left; }
  .seat-flow-rank { display: none; }
}
@media (prefers-reduced-motion: reduce) { .seat-shell, .seat-shell * { transition: none !important; } }
/*
 * Recruiter-seat brief (2026-07-29): "the flow" row grammar (rank, mini
 * shape-chip, who, score, tags, an action control). Promoted here from
 * that page's own inline \3c style> once the Leader seat (2026-07-30) reused
 * the same row markup for Open roles/Finalists — a page-local \3c style>
 * block only loads on that one page, so a second consumer needs this in
 * the shared stylesheet, not a copy-paste of the same rules.
 */
.seat-flow { padding: 6px 18px; }
.seat-flow-row {
  display: grid; grid-template-columns: 34px 44px 1fr 130px 1fr 170px;
  gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--rp-hair);
}
.seat-flow-row:last-child { border-bottom: none; }
.seat-flow-rank { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--rp-dim); }
.seat-flow-chip svg { width: 40px; height: 40px; display: block; }
.seat-flow-who { display: flex; flex-direction: column; min-width: 0; }
.seat-flow-name { color: var(--rp-text); font-size: 13px; font-weight: 600; text-decoration: none; }
.seat-flow-name:hover { color: var(--rp-accent); }
.seat-flow-job { font-size: 11.5px; color: var(--rp-dim); }
.seat-flow-score { position: relative; display: flex; align-items: center; font-size: 13px; }
.seat-flow-score .score-bar { position: absolute; left: 0; top: 50%; transform: translateY(-50%); height: 6px; border-radius: 3px; opacity: .3; min-width: 4px; }
.seat-flow-score strong { position: relative; z-index: 1; }
.seat-flow-reqs { display: flex; flex-direction: column; gap: 2px; font-size: 11.5px; min-width: 0; }
.seat-flow-tag { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seat-flow-tag.ok { color: var(--rp-green); }
.seat-flow-tag.gap { color: var(--rp-accent); }
.seat-flow-stage { display: flex; gap: 6px; }
.seat-flow-stage-select {
  font-size: 12px; background: var(--rp-bg); color: var(--rp-text); border: 1px solid var(--rp-hair2);
  border-radius: 6px; padding: 4px 6px; font-family: inherit;
}
.seat-flow-stage-submit {
  font-size: 12px; background: none; border: 1px solid var(--rp-hair2); color: var(--rp-muted);
  border-radius: 6px; padding: 4px 10px; cursor: pointer; font-family: inherit;
}
.seat-flow-stage-submit:hover { color: var(--rp-accent); border-color: var(--rp-accent); }
.seat-empty { padding: 30px 4px; color: var(--rp-muted); font-size: 13px; }
