:root {
  /* Light Rox — same refined skin as .page-review (Erin directional approve) */
  --ink: #1a1917;
  --bg: #f7f6f3;
  --bg-elev: #ffffff;
  --bg-card: #ffffff;
  --line: rgba(26, 25, 23, 0.1);
  --line-soft: rgba(26, 25, 23, 0.06);
  --line-strong: rgba(26, 25, 23, 0.16);
  --text: #1a1917;
  --muted: #6b6760;
  --faint: #9a958c;
  --gold: #b8962e;
  --gold-deep: #8a7020;
  --gold-soft: rgba(184, 150, 46, 0.1);
  --gold-line: rgba(184, 150, 46, 0.28);
  --good: #2f7a55;
  --warn: #b8962e;
  --bad: #c45c5c;
  --accent: var(--ink);
  --accent-2: var(--gold);
  --rox: var(--ink);
  --radius: 8px;
  --shadow: none;
  --serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font: var(--sans);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  min-height: 100dvh;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--gold); }

.app {
  max-width: 560px;
  margin: 0 auto;
  padding: 20px 16px 120px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 560;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.brand-mark {
  width: 22px; height: 22px; border-radius: 5px;
  background: var(--ink);
  box-shadow: none;
  border: none;
  flex-shrink: 0;
}
.brand span { font-size: 14px; color: var(--faint); font-weight: 500; }
.pill {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  border: 1px solid var(--line);
  background: var(--bg-card);
  padding: 5px 10px;
  border-radius: 999px;
}

.progress {
  height: 2px;
  background: var(--line-soft);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 22px;
}
.progress > i {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--ink);
  transition: width 0.35s ease;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 18px 18px;
  box-shadow: var(--shadow);
}

h1, h2 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  color: var(--ink);
}
h1 { font-size: 1.85rem; line-height: 1.15; }
h2 { font-size: 1.45rem; line-height: 1.2; }
.lede {
  color: var(--muted);
  font-size: 0.98rem;
  margin: 0 0 18px;
}
.eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--faint);
  margin: 0 0 8px;
  font-weight: 600;
}

.field { margin-bottom: 16px; }
label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
  font-weight: 550;
}
label .hint { color: var(--faint); font-weight: 400; opacity: 1; }
input[type="text"],
input[type="email"],
input[type="number"],
input[type="url"],
textarea,
select {
  width: 100%;
  background: #fff;
  border: 1px solid var(--line-strong);
  color: var(--text);
  border-radius: var(--radius);
  padding: 11px 12px;
  font: inherit;
  font-size: 16px; /* prevent iOS zoom */
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
textarea { min-height: 110px; resize: vertical; line-height: 1.4; }
input:focus, textarea:focus, select:focus {
  border-color: rgba(26, 25, 23, 0.35);
  box-shadow: 0 0 0 3px rgba(26, 25, 23, 0.06);
}
select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--faint) 50%), linear-gradient(135deg, var(--faint) 50%, transparent 50%);
  background-position: calc(100% - 18px) 55%, calc(100% - 12px) 55%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.choices {
  display: grid;
  gap: 8px;
}
.choice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  text-align: left;
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: var(--radius);
  padding: 12px;
  cursor: pointer;
  font: inherit;
  transition: border-color 0.15s, transform 0.1s, background 0.15s;
}
.choice:hover { border-color: var(--line-strong); }
.choice:active { transform: scale(0.99); }
.choice.selected {
  border-color: rgba(26, 25, 23, 0.35);
  background: #f3f2ef;
  box-shadow: none;
}
.choice .glyph {
  width: 32px; height: 32px; border-radius: 6px;
  display: grid; place-items: center;
  background: #f3f2ef;
  font-size: 16px;
  flex-shrink: 0;
}
.choice strong { display: block; margin-bottom: 2px; }
.choice small { color: var(--faint); font-size: 13px; }

.pct-grid { display: grid; gap: 12px; }
.pct-row {
  display: grid;
  grid-template-columns: 88px 1fr 52px;
  gap: 10px;
  align-items: center;
}
.pct-row span { font-size: 13px; color: var(--faint); }
.pct-row input[type="range"] { width: 100%; accent-color: var(--ink); }
.pct-row output {
  font-variant-numeric: tabular-nums;
  font-weight: 650;
  text-align: right;
}
.pct-total {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 650;
}
.pct-total.ok { border-color: rgba(47, 122, 85, 0.35); color: var(--good); }
.pct-total.warn { border-color: var(--gold-line); color: var(--gold-deep); }
.pct-total.bad { border-color: rgba(196, 92, 92, 0.35); color: var(--bad); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.chip {
  border: 1px dashed var(--line-strong);
  background: transparent;
  color: var(--faint);
  border-radius: 999px;
  padding: 6px 11px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.chip:hover { color: var(--ink); border-color: var(--ink); }

.culture-list { display: grid; gap: 8px; }
.culture-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}
.culture-item button {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--faint);
  border-radius: var(--radius);
  padding: 0 12px;
  cursor: pointer;
}

.mix-grid { display: grid; gap: 12px; }
.flex-choices { display: grid; gap: 8px; }
.flex-choices .choice { padding: 12px; }
.flex-choices .choice strong { font-size: 14px; }

.nav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, transparent, rgba(247, 246, 243, 0.92) 28%, var(--bg));
  display: flex;
  justify-content: center;
  z-index: 20;
}
.nav-inner {
  width: 100%;
  max-width: 560px;
  display: flex;
  gap: 10px;
}
button.btn {
  flex: 1;
  border: 0;
  border-radius: var(--radius);
  padding: 13px 16px;
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.1s, opacity 0.15s, background 0.15s;
}
button.btn:active { transform: scale(0.98); }
button.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-primary {
  background: var(--ink);
  color: #f7f6f3;
  box-shadow: none;
}
.btn-primary:hover { background: #2a2825; }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line-strong) !important;
}
.btn-ghost:hover { border-color: rgba(26, 25, 23, 0.35) !important; }
.btn-full { width: 100%; }

.note {
  font-size: 13px;
  color: var(--faint);
  margin-top: 10px;
}
.err {
  background: rgba(196, 92, 92, 0.08);
  border: 1px solid rgba(196, 92, 92, 0.25);
  color: var(--bad);
  padding: 8px 12px;
  border-radius: var(--radius);
  font-size: 13px;
  margin-bottom: 12px;
}
.warn-box {
  background: var(--gold-soft);
  border: 1px solid var(--gold-line);
  color: var(--gold-deep);
  padding: 8px 12px;
  border-radius: var(--radius);
  font-size: 13px;
  margin-top: 10px;
}

.review-block {
  border-top: 1px solid var(--line);
  padding: 14px 0;
}
.review-block:first-child { border-top: 0; padding-top: 0; }
.review-block h3 {
  margin: 0 0 6px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--faint);
  font-weight: 650;
}
.review-block p { margin: 0; white-space: pre-wrap; }

.receipt {
  text-align: center;
  padding: 28px 8px 8px;
}
.receipt .check {
  width: 56px; height: 56px; border-radius: 50%;
  margin: 0 auto 16px;
  display: grid; place-items: center;
  background: rgba(47, 122, 85, 0.08);
  border: 1px solid rgba(47, 122, 85, 0.28);
  font-size: 24px;
  color: var(--good);
}
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; color: var(--faint); }

/* Talent one-pager / inbox */
.wide { max-width: 820px; }
.banner-warn {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 8px 12px;
  border-radius: var(--radius);
  font-size: 12.5px;
  margin-bottom: 14px;
}
.banner-warn strong { color: var(--ink); font-weight: 600; }
.score-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin: 14px 0;
}
.score-tile {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
}
.score-tile .n {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--ink);
}
.score-tile .k { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--faint); }
.score-tile .w { font-size: 12px; color: var(--faint); margin-top: 6px; }
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 1px solid var(--line);
  background: #f3f2ef;
  color: var(--ink);
}
.badge.advance { background: rgba(47, 122, 85, 0.08); color: var(--good); border-color: rgba(47, 122, 85, 0.22); }
.badge.nurture { background: rgba(184, 150, 46, 0.1); color: #8a7020; border-color: rgba(184, 150, 46, 0.28); }
.badge.pass { background: rgba(196, 92, 92, 0.08); color: var(--bad); border-color: rgba(196, 92, 92, 0.22); }

.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.table th { color: var(--faint); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; }
.table a { color: var(--ink); text-decoration: none; font-weight: 600; }
.table a:hover { color: var(--gold); }

.hidden { display: none !important; }

/* ---- Scorecard IA (light Rox): hero → evidence tiles → expandable Q&A ---- */
/* Scorecard-only IA — do not change structure here; apply/talent share root light tokens */

body.page-review {
  --pr-bg: #f7f6f3;
  --pr-card: #ffffff;
  --pr-ink: #1a1917;
  --pr-muted: #6b6760;
  --pr-faint: #9a958c;
  --pr-line: rgba(26, 25, 23, 0.1);
  --pr-line-soft: rgba(26, 25, 23, 0.06);
  --pr-accent: #1a1917;
  --pr-gold: #b8962e;
  --pr-good: #2f7a55;
  --pr-bad: #c45c5c;
  --pr-radius: 8px;
  --pr-serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --pr-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  background: var(--pr-bg);
  color: var(--pr-ink);
  font-family: var(--pr-sans);
  min-height: 100dvh;
}

body.page-review a { color: var(--pr-ink); text-decoration: underline; text-underline-offset: 2px; }
body.page-review a:hover { color: var(--pr-gold); }

body.page-review .scorecard-shell {
  max-width: 960px;
  padding: 20px 20px 64px;
}

body.page-review .scorecard-topbar {
  margin-bottom: 14px;
}
body.page-review .brand { color: var(--pr-ink); font-weight: 560; }
body.page-review .brand span { color: var(--pr-faint); }
body.page-review .brand-mark {
  width: 22px; height: 22px; border-radius: 5px;
  background: var(--pr-ink);
  box-shadow: none;
  border: none;
}
body.page-review .pill {
  color: var(--pr-muted);
  border: 1px solid var(--pr-line);
  background: var(--pr-card);
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.06em;
}

body.page-review .scorecard-banner {
  background: #fff;
  border: 1px solid var(--pr-line);
  color: var(--pr-muted);
  padding: 8px 12px;
  border-radius: var(--pr-radius);
  font-size: 12.5px;
  margin-bottom: 14px;
}
body.page-review .scorecard-banner strong { color: var(--pr-ink); font-weight: 600; }

body.page-review .scorecard-card {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  border-radius: 0;
}

body.page-review .eyebrow,
body.page-review .scorecard-id {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pr-faint);
  margin: 0 0 6px;
}
body.page-review .scorecard-name {
  font-family: var(--pr-serif);
  font-weight: 400;
  font-size: 1.85rem;
  letter-spacing: -0.02em;
  color: var(--pr-ink);
  margin: 0 0 6px;
  line-height: 1.15;
}
body.page-review .scorecard-meta,
body.page-review .lede.scorecard-meta {
  color: var(--pr-muted);
  font-size: 0.92rem;
  margin: 0 0 4px;
}
body.page-review .scorecard-meta-sub,
body.page-review .note {
  color: var(--pr-faint);
  font-size: 0.82rem;
}
body.page-review .err {
  background: rgba(196, 92, 92, 0.08);
  border: 1px solid rgba(196, 92, 92, 0.25);
  color: var(--pr-bad);
  border-radius: var(--pr-radius);
  padding: 8px 12px;
  font-size: 13px;
}

/* Hero — refined, not chunky */
body.page-review .scorecard-hero {
  text-align: center;
  padding: 22px 16px 20px;
  margin: 10px 0 16px;
  border-radius: var(--pr-radius);
  background: var(--pr-card);
  border: 1px solid var(--pr-line);
}
body.page-review .hero-pair {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
}
body.page-review .hero-rec,
body.page-review .hero-pmove {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 110px;
}
body.page-review .badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  border: 1px solid var(--pr-line);
  background: #f3f2ef;
  color: var(--pr-ink);
}
body.page-review .badge.advance {
  background: rgba(47, 122, 85, 0.08);
  color: var(--pr-good);
  border-color: rgba(47, 122, 85, 0.22);
}
body.page-review .badge.nurture {
  background: rgba(184, 150, 46, 0.1);
  color: #8a7020;
  border-color: rgba(184, 150, 46, 0.28);
}
body.page-review .badge.pass {
  background: rgba(196, 92, 92, 0.08);
  color: var(--pr-bad);
  border-color: rgba(196, 92, 92, 0.22);
}
body.page-review .badge-hero {
  font-size: 0.95rem;
  padding: 6px 16px;
  letter-spacing: 0.08em;
}
body.page-review .hero-num {
  font-family: var(--pr-serif);
  font-size: 3.1rem;
  font-weight: 400;
  line-height: 1;
  color: var(--pr-ink);
  letter-spacing: -0.03em;
}
body.page-review .hero-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--pr-faint);
  font-weight: 500;
}
body.page-review .hero-meaning {
  margin: 14px auto 0;
  max-width: 38rem;
  font-family: var(--pr-serif);
  font-size: 1.05rem;
  line-height: 1.45;
  color: var(--pr-muted);
  font-style: italic;
}

/* Evidence tiles — white cards, thin borders, num + detail */
body.page-review .score-grid,
body.page-review .score-grid-evidence {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin: 0;
}
body.page-review .score-tile,
body.page-review .score-tile-evidence {
  background: var(--pr-card);
  border: 1px solid var(--pr-line);
  border-radius: var(--pr-radius);
  padding: 14px 14px 12px;
  box-shadow: none;
}
body.page-review .score-tile-priority {
  border-color: rgba(26, 25, 23, 0.16);
  background: #fff;
}
body.page-review .score-tile .k,
body.page-review .score-tile-evidence .k {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--pr-faint);
  margin-bottom: 6px;
  font-weight: 500;
}
body.page-review .score-tile .n,
body.page-review .score-tile-evidence .n {
  font-family: var(--pr-serif);
  font-size: 1.65rem;
  font-weight: 400;
  color: var(--pr-ink);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
body.page-review .score-tile .den,
body.page-review .score-tile-evidence .den {
  font-family: var(--pr-sans);
  font-size: 0.85rem;
  color: var(--pr-faint);
  font-weight: 400;
  margin-left: 1px;
}
body.page-review .score-tile .w,
body.page-review .score-tile-evidence .w {
  display: block;
  font-size: 12.5px;
  color: var(--pr-muted);
  margin-top: 8px;
  line-height: 1.4;
}

/* Accordion — thin, light */
body.page-review .scorecard-detail {
  margin-top: 18px;
  padding-top: 4px;
}
body.page-review .qa-accordion {
  border: 1px solid var(--pr-line);
  border-radius: var(--pr-radius);
  background: var(--pr-card);
  padding: 0;
}
body.page-review .qa-accordion > summary.qa-accordion-summary {
  cursor: pointer;
  list-style: none;
  padding: 12px 16px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--pr-ink);
  user-select: none;
}
body.page-review .qa-accordion > summary.qa-accordion-summary::-webkit-details-marker { display: none; }
body.page-review .qa-accordion > summary.qa-accordion-summary::after {
  content: '▸';
  float: right;
  color: var(--pr-faint);
  font-weight: 400;
}
body.page-review .qa-accordion[open] > summary.qa-accordion-summary::after { content: '▾'; }
body.page-review .qa-list { padding: 0 8px 8px; }
body.page-review .qa-item {
  border-top: 1px solid var(--pr-line-soft);
  padding: 0;
}
body.page-review .qa-item > summary {
  cursor: pointer;
  list-style: none;
  padding: 11px 8px;
  font-size: 13.5px;
  font-weight: 550;
  color: var(--pr-ink);
  user-select: none;
}
body.page-review .qa-item > summary::-webkit-details-marker { display: none; }
body.page-review .qa-item > summary::before {
  content: '+';
  display: inline-block;
  width: 1.15em;
  color: var(--pr-faint);
  font-weight: 500;
}
body.page-review .qa-item[open] > summary::before { content: '−'; }
body.page-review .qa-body {
  padding: 0 8px 12px 1.4em;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--pr-muted);
}
body.page-review .qa-body p { margin: 0 0 6px; }
body.page-review .qa-body p:last-child { margin-bottom: 0; }
body.page-review .scorecard-footnote {
  margin-top: 14px;
  color: var(--pr-faint);
}

@media (min-width: 1024px) {
  body.page-review {
    overflow-x: hidden;
  }
  body.page-review .scorecard-shell {
    max-width: 1080px;
    padding: 16px 28px 40px;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
  }
  body.page-review .scorecard-topbar { margin-bottom: 10px; }
  body.page-review .scorecard-banner {
    margin-bottom: 12px;
    padding: 7px 12px;
    font-size: 12px;
  }
  body.page-review .scorecard-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  body.page-review .scorecard-fold {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  body.page-review .scorecard-name {
    font-size: 1.7rem;
  }
  body.page-review .scorecard-hero {
    padding: 20px 20px 18px;
    margin: 6px 0 10px;
  }
  body.page-review .hero-num { font-size: 3.25rem; }
  body.page-review .badge-hero { font-size: 1rem; padding: 7px 18px; }
  body.page-review .hero-meaning {
    font-size: 1.02rem;
    margin-top: 12px;
  }
  body.page-review .score-grid-evidence {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
  }
  body.page-review .score-tile-evidence {
    padding: 12px 12px 10px;
  }
  body.page-review .score-tile-evidence .n { font-size: 1.45rem; }
  body.page-review .score-tile-evidence .w {
    font-size: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  body.page-review .scorecard-detail {
    margin-top: 16px;
  }
}

@media (min-width: 1024px) and (max-width: 1180px) {
  body.page-review .score-grid-evidence {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
