/* ============================================================
   CASPA Command — Physician Associate Coaching brand system
   Tokens: Ink Black, Paper White, Ascent Gold, Terracotta
   Headlines: Big Shoulders Display (uppercase) · Body: IBM Plex Sans
   ============================================================ */

:root {
  --ink: #14161C;
  --paper: #F6F3EE;
  --gold: #D9A441;
  --gold-dark: #C08F2F;
  --terra: #C9694A;
  --white: #FFFFFF;
  --muted: #5A5D66;
  --faint: #8B8D96;
  --line: rgba(20, 22, 28, 0.10);
  --line-strong: rgba(20, 22, 28, 0.18);
  --gold-tint: rgba(217, 164, 65, 0.12);
  --terra-tint: rgba(201, 105, 74, 0.10);
  /* semantic (data) colors — zones & status only, never chrome */
  --ok: #2E7D5B;
  --ok-tint: #E4F0EA;
  --warn: #B8860B;
  --zone-green: #2E9E6B;
  --zone-yellow: #E0B93F;
  --zone-orange: #D97742;
  --radius: 8px;
  --btn-radius: 4px;
  --shadow: 0 1px 2px rgba(20,22,28,.05), 0 4px 14px rgba(20,22,28,.05);
  --shadow-lg: 0 16px 40px rgba(20,22,28,.18);
  --font-head: "Big Shoulders Display", sans-serif;
  --font-body: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 14px; color: var(--ink); }
a { color: var(--gold-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, .display {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: .02em;
  margin: 0;
}

.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--terra);
}

/* ---------- boot ---------- */
.boot-screen {
  height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 16px; color: var(--muted);
}
.boot-mark { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .45; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  border: none; border-radius: var(--btn-radius);
  font-weight: 700; font-size: 14px; padding: 10px 18px;
  transition: background .15s, color .15s, transform .05s;
}
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-dark); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #23262f; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-strong); }
.btn-ghost:hover { background: var(--gold-tint); border-color: var(--gold); }
.btn-sm { padding: 7px 12px; font-size: 13px; }
.btn:disabled { opacity: .55; cursor: default; }
.link-btn {
  background: none; border: none; padding: 0;
  color: var(--gold-dark); font-weight: 600; font-size: 13px;
}
.link-btn:hover { text-decoration: underline; }

/* ---------- layout ---------- */
.shell { display: flex; min-height: 100vh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: 256px; z-index: 40;
  background: var(--ink); color: var(--paper);
  display: flex; flex-direction: column; padding: 24px 20px;
  transition: transform .25s ease;
}
.main { flex: 1; margin-left: 256px; min-width: 0; }

.brand-block { display: flex; align-items: flex-start; gap: 12px; }
.brand-name {
  font-family: var(--font-head); font-weight: 900; font-size: 26px;
  line-height: .95; text-transform: uppercase; color: var(--paper);
}
.brand-sub { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-top: 6px; }
.brand-org { font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-top: 3px; }
.cycle-label { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--faint); margin: 22px 0 6px; }

.nav { display: flex; flex-direction: column; gap: 2px; margin-top: 10px; }
.nav-heading { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--faint); margin: 18px 0 8px 12px; }
.nav-item {
  display: flex; align-items: center; gap: 10px;
  background: none; border: none; text-align: left;
  color: rgba(246,243,238,.78); font-size: 14px; font-weight: 500;
  padding: 10px 12px; border-radius: 6px; border-left: 3px solid transparent;
}
.nav-item:hover { background: rgba(246,243,238,.07); color: var(--paper); }
.nav-item.active { background: rgba(217,164,65,.14); color: var(--gold); border-left-color: var(--gold); font-weight: 600; }
.nav-item svg { flex-shrink: 0; }

.days-card {
  margin-top: auto; background: rgba(246,243,238,.06);
  border: 1px solid rgba(246,243,238,.12); border-radius: var(--radius); padding: 16px;
}
.days-card .eyebrow { color: var(--gold); }
.days-num { font-family: var(--font-head); font-weight: 900; font-size: 44px; line-height: 1; color: var(--paper); }
.days-num small { font-family: var(--font-body); font-size: 13px; font-weight: 500; color: var(--faint); margin-left: 6px; text-transform: none; }

/* mobile */
.hamburger { display: none; background: none; border: 1px solid var(--line-strong); border-radius: 6px; padding: 8px; }
.scrim { display: none; }
@media (max-width: 1023px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main { margin-left: 0; }
  .hamburger { display: inline-flex; }
  .scrim.show { display: block; position: fixed; inset: 0; background: rgba(20,22,28,.5); z-index: 30; }
}

/* ---------- topbar ---------- */
.topbar {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 28px; background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
}
.topbar h1 { font-size: 26px; font-weight: 800; }
.topbar .sub { font-size: 13px; color: var(--muted); margin-top: 1px; }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 12px; text-align: right; }
.top-right .who { font-size: 14px; font-weight: 700; }
.top-right .caspa-id { font-size: 11px; color: var(--muted); }
.avatar-btn {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--gold-tint); border: 1px solid var(--gold);
  display: flex; align-items: center; justify-content: center; color: var(--ink);
}
.menu {
  position: absolute; right: 28px; top: 68px; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 6px; min-width: 190px; z-index: 60;
}
.menu button {
  display: flex; align-items: center; gap: 10px; width: 100%;
  background: none; border: none; text-align: left;
  font-size: 14px; padding: 10px 12px; border-radius: 6px; color: var(--ink);
}
.menu button:hover { background: var(--gold-tint); }

/* ---------- content grid ---------- */
.content { padding: 28px; display: grid; grid-template-columns: 1fr; gap: 24px; max-width: 1280px; }
@media (min-width: 1280px) { .content { grid-template-columns: 8fr 4fr; } }

.stat-row { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .stat-row { grid-template-columns: repeat(3, 1fr); } }
.stat-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; box-shadow: var(--shadow);
}
.stat-card .label { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.stat-card .value { font-family: var(--font-head); font-weight: 900; font-size: 40px; line-height: 1.05; margin-top: 6px; }
.stat-card .badge { display: inline-block; background: var(--gold-tint); color: var(--gold-dark); font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 4px; margin-left: 8px; vertical-align: middle; }
.stat-card .note { font-size: 12px; color: var(--faint); font-style: italic; }

.panel {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.panel-pad { padding: 20px 22px; }

.section-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.section-h h2 { font-size: 20px; font-weight: 800; }
.chip {
  font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 4px;
}
.chip-action { background: var(--terra-tint); color: var(--terra); border: 1px solid rgba(201,105,74,.35); }

.check-row {
  display: flex; align-items: center; gap: 16px; width: 100%;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; margin-bottom: 12px; text-align: left;
  transition: border-color .15s, box-shadow .15s;
}
.check-row:hover { border-color: var(--gold); box-shadow: var(--shadow); }
.check-row .ic {
  width: 40px; height: 40px; border-radius: 8px; flex-shrink: 0;
  background: var(--paper); display: flex; align-items: center; justify-content: center; color: var(--muted);
}
.check-row .t { font-size: 16px; font-weight: 700; }
.check-row .s { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }
.check-row .bar { width: 96px; height: 6px; border-radius: 3px; background: var(--line); margin-left: auto; overflow: hidden; flex-shrink: 0; }
.check-row .bar i { display: block; height: 100%; background: var(--gold); border-radius: 3px; }
.check-row .arrow { color: var(--faint); flex-shrink: 0; }

/* right rail */
.rail { display: flex; flex-direction: column; gap: 20px; }
.rail h3 { font-size: 16px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.rail .panel-pad > p.empty { font-size: 13px; color: var(--faint); }
.deadline-row { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.deadline-row:last-child { border-bottom: none; }
.deadline-row .d { color: var(--terra); font-weight: 700; white-space: nowrap; }

.zone-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; padding: 4px 0; }
.zone-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; margin-right: 8px; }
.zone-when { font-size: 11px; font-style: italic; color: var(--faint); letter-spacing: .04em; text-transform: uppercase; }
.zone-track { position: relative; height: 10px; border-radius: 5px; margin: 26px 0 8px; display: flex; overflow: visible; }
.zone-track span { height: 100%; }
.zone-track span:first-child { border-radius: 5px 0 0 5px; }
.zone-track span:last-child { border-radius: 0 5px 5px 0; }
.you-pin { position: absolute; top: -22px; transform: translateX(-50%); }
.you-pin .tag {
  background: var(--ink); color: var(--paper); font-size: 9px; font-weight: 700;
  letter-spacing: .1em; padding: 3px 8px; border-radius: 4px; display: flex; align-items: center; gap: 4px;
}
.you-pin .tag i { width: 6px; height: 6px; background: var(--zone-green); border-radius: 50%; }
.you-pin .stem { width: 2px; height: 14px; background: var(--ink); margin: 0 auto; }

.quote-box { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 12px 14px; font-size: 12px; font-style: italic; color: var(--muted); margin-top: 14px; }

.edge-card { background: var(--ink); color: var(--paper); border-radius: var(--radius); padding: 16px 18px; }
.edge-card .eyebrow { color: var(--gold); display: flex; align-items: center; gap: 6px; }
.edge-card p { font-size: 13px; margin: 8px 0 0; color: rgba(246,243,238,.85); }
.edge-card b.gold { color: var(--gold); }
.edge-card b.terra { color: var(--terra); }

.strength-bar { height: 8px; background: var(--line); border-radius: 4px; overflow: hidden; margin-top: 8px; }
.strength-bar i { display: block; height: 100%; background: var(--gold); }
.tip-box { background: var(--gold-tint); border: 1px solid rgba(217,164,65,.4); border-radius: 6px; padding: 12px 14px; font-size: 13px; margin-top: 14px; }

.resource-link {
  display: flex; align-items: center; justify-content: space-between;
  border: 1px solid var(--line); border-radius: 6px; padding: 11px 14px;
  font-size: 14px; font-weight: 600; color: var(--ink); margin-top: 10px;
}
.resource-link:hover { border-color: var(--gold); background: var(--gold-tint); text-decoration: none; }

.cta-card { background: var(--gold-tint); border: 1px solid rgba(217,164,65,.4); border-radius: var(--radius); padding: 20px; }
.cta-card h3 { font-size: 18px; margin-bottom: 6px; }
.cta-card p { font-size: 14px; color: var(--muted); margin: 0 0 14px; }

.footer { padding: 22px 28px; border-top: 1px solid var(--line); text-align: center; font-size: 12px; color: var(--faint); }
.footer button, .footer a { background: none; border: none; color: var(--faint); font-size: 12px; padding: 0 6px; }
.footer button:hover, .footer a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- modals ---------- */
.overlay {
  position: fixed; inset: 0; background: rgba(20,22,28,.55); z-index: 70;
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.modal {
  background: var(--white); border-radius: 12px; box-shadow: var(--shadow-lg);
  width: 100%; max-width: 1160px; max-height: 92vh; display: flex; flex-direction: column; overflow: hidden;
}
.modal.narrow { max-width: 520px; }
.modal.mid { max-width: 800px; }
.modal-head {
  background: var(--ink); color: var(--paper);
  padding: 22px 28px; display: flex; align-items: center; gap: 16px;
}
.modal-head.light { background: var(--white); color: var(--ink); border-bottom: 1px solid var(--line); }
.modal-head .m-ic {
  width: 44px; height: 44px; border-radius: 10px; background: var(--gold);
  color: var(--ink); display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.modal-head h2 { font-size: 26px; font-weight: 800; }
.modal-head .desc { font-size: 13px; color: rgba(246,243,238,.75); margin-top: 2px; }
.modal-head.light .desc { color: var(--muted); }
.prog-wrap { margin-left: auto; display: flex; align-items: center; gap: 14px; text-align: right; }
.prog-wrap .p-label { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.prog-wrap .p-val { font-family: var(--font-head); font-weight: 900; font-size: 34px; color: var(--paper); line-height: 1; }
.prog-wrap .p-sub { font-size: 11px; color: rgba(246,243,238,.6); }
.ring { transform: rotate(-90deg); }
.x-btn { background: none; border: none; color: inherit; opacity: .7; padding: 6px; }
.x-btn:hover { opacity: 1; }

.modal-body { overflow-y: auto; padding: 26px 28px; }
.modal-foot {
  border-top: 1px solid var(--line); padding: 14px 28px;
  display: flex; align-items: center; gap: 12px; background: var(--white);
}
.modal-foot .hint { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.modal-foot .spacer { flex: 1; }

.banner { border-radius: var(--radius); padding: 14px 18px; font-size: 13px; margin-bottom: 14px; border: 1px solid; }
.banner b { display: block; font-size: 14px; margin-bottom: 3px; }
.banner-gold { background: var(--gold-tint); border-color: rgba(217,164,65,.4); }
.banner-plain { background: var(--paper); border-color: var(--line); }
.banner-terra { background: var(--terra-tint); border-color: rgba(201,105,74,.35); }
.banner-row { display: grid; gap: 14px; margin-bottom: 14px; }
@media (min-width: 900px) { .banner-row { grid-template-columns: 1fr 1fr; } .banner-row .banner { margin-bottom: 0; } }

.card-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }

.task-card {
  position: relative; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 10px;
  transition: border-color .15s, box-shadow .15s; min-height: 150px;
}
.task-card:hover { border-color: var(--gold); box-shadow: var(--shadow); }
.task-card .tc-ic {
  width: 40px; height: 40px; border-radius: 8px; background: var(--paper);
  color: var(--muted); display: flex; align-items: center; justify-content: center;
}
.task-card.done .tc-ic { background: var(--ok-tint); color: var(--ok); }
.task-card .tc-title { font-size: 15.5px; font-weight: 700; margin-top: auto; }
.task-card.done .tc-title { color: var(--faint); }
.task-card .tc-sub { font-size: 12.5px; color: var(--muted); }
.task-card .tc-foot {
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--line); padding-top: 10px; margin-top: 4px;
}
.task-card .tc-action { background: none; border: none; padding: 0; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.tc-action.mark { color: var(--gold-dark); }
.tc-action.cfg { color: var(--terra); }
.tc-action.done-label { color: var(--ok); }
.v-chip {
  position: absolute; top: 12px; right: 12px;
  background: var(--ok-tint); color: var(--ok);
  font-size: 9.5px; font-weight: 700; letter-spacing: .08em; padding: 3px 8px; border-radius: 4px;
}
.dot-chip { position: absolute; top: 14px; right: 14px; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }

/* ---------- detail editors ---------- */
.detail-grid { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 980px) { .detail-grid { grid-template-columns: 1fr 320px; } }
.side-tips { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; align-self: start; }
.side-tips h4 { margin: 0 0 12px; font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.tip-item { border-left: 3px solid var(--gold); padding: 2px 0 2px 12px; margin-bottom: 14px; }
.tip-item.terra { border-left-color: var(--terra); }
.tip-item b { display: block; font-size: 13px; }
.tip-item p { margin: 3px 0 0; font-size: 12.5px; font-style: italic; color: var(--muted); }
.tip-callout { background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; font-size: 12.5px; font-weight: 600; }
.tip-warn { background: var(--terra-tint); border: 1px solid rgba(201,105,74,.4); border-radius: 6px; padding: 12px 14px; font-size: 12.5px; }
.tip-warn b { color: var(--terra); }

.gpa-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
.gpa-tile { border-radius: var(--radius); padding: 14px; text-align: center; border: 1px solid var(--line); }
.gpa-tile .label { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.gpa-tile .num { font-family: var(--font-head); font-weight: 900; font-size: 34px; line-height: 1.1; }
.gpa-tile .tgt { font-size: 11px; color: var(--faint); }
.gpa-tile.t1 { background: var(--gold-tint); } .gpa-tile.t1 .num { color: var(--gold-dark); }
.gpa-tile.t2 { background: var(--ok-tint); } .gpa-tile.t2 .num { color: var(--ok); }
.gpa-tile.t3 { background: var(--terra-tint); } .gpa-tile.t3 .num { color: var(--terra); }

.list-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.list-head .lh-t { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.list-head .lh-s { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--terra); font-weight: 600; }

.row-grid { display: grid; grid-template-columns: auto 1fr 80px 110px auto; gap: 10px; align-items: center; margin-bottom: 10px; }
@media (max-width: 700px) { .row-grid { grid-template-columns: 1fr 1fr; } }
.sci-toggle {
  width: 30px; height: 30px; border-radius: 6px; border: 1px solid var(--line-strong);
  background: var(--white); font-size: 12px; font-weight: 800; color: var(--faint);
}
.sci-toggle.on { background: var(--ok); border-color: var(--ok); color: #fff; }
input[type="text"], input[type="number"], input[type="email"], input[type="password"], input[type="date"], select, textarea {
  border: 1px solid var(--line-strong); border-radius: 6px; padding: 9px 12px; background: var(--white);
  width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold); outline-offset: 0; border-color: var(--gold); }
textarea { resize: vertical; min-height: 74px; }
.field label { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 5px; }
.field { margin-bottom: 14px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.trash-btn { background: none; border: none; color: var(--faint); padding: 6px; }
.trash-btn:hover { color: var(--terra); }

.empty-drop {
  border: 1.5px dashed var(--line-strong); border-radius: var(--radius);
  padding: 44px 20px; text-align: center; color: var(--faint); font-size: 13.5px;
}
.empty-drop b { display: block; color: var(--muted); font-size: 15px; margin-top: 10px; }

.entry-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; background: var(--white); }
.entry-card .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
@media (max-width: 640px) { .entry-card .grid2 { grid-template-columns: 1fr; } }
.entry-card .rowfoot { display: flex; justify-content: flex-end; }

.hours-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 22px; }
@media (max-width: 860px) { .hours-row { grid-template-columns: repeat(2, 1fr); } }
.hours-tile { border-radius: var(--radius); padding: 14px; border: 1px solid var(--line); }
.hours-tile .label { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.hours-tile .num { font-family: var(--font-head); font-weight: 900; font-size: 32px; }
.hours-tile .sub { font-size: 11.5px; color: var(--faint); }
.hours-tile.dark { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.hours-tile.dark .num { color: var(--gold); font-size: 26px; }
.hours-tile.dark .sub { color: rgba(246,243,238,.75); }

.exp-block { margin-bottom: 26px; }
.exp-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.exp-head .n { width: 34px; height: 34px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.exp-head .n.g { background: var(--ok-tint); color: var(--ok); }
.exp-head .n.o { background: var(--terra-tint); color: var(--terra); }
.exp-head h4 { margin: 0; font-size: 16px; font-family: var(--font-body); text-transform: none; }
.exp-head .tagline { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ok); width: 100%; }
.exp-head .tagline.o { color: var(--terra); }

.framework-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 14px 0 22px; }
@media (max-width: 900px) { .framework-grid { grid-template-columns: repeat(2, 1fr); } }
.fw-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; position: relative; background: var(--white); }
.fw-card .idx { position: absolute; top: 8px; right: 12px; font-family: var(--font-head); font-weight: 900; font-size: 30px; color: var(--line-strong); }
.fw-card b { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--terra); display: block; margin-bottom: 6px; }
.fw-card p { margin: 0; font-size: 12.5px; color: var(--muted); }
.trap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 14px 0 22px; }
@media (max-width: 900px) { .trap-grid { grid-template-columns: 1fr; } }
.trap-card { background: var(--terra-tint); border: 1px solid rgba(201,105,74,.35); border-radius: var(--radius); padding: 14px; }
.trap-card b { font-size: 13.5px; display: flex; align-items: center; gap: 6px; color: var(--ink); }
.trap-card p { margin: 6px 0 0; font-size: 12.5px; color: var(--muted); }
.label-chip { display: inline-flex; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; padding: 4px 10px; border-radius: 4px; margin-right: 10px; }
.label-chip.gold { background: var(--gold); color: var(--ink); }
.label-chip.terra { background: var(--terra); color: #fff; }
.char-count { font-size: 12px; color: var(--faint); text-align: right; margin-top: 6px; }
.char-count.over { color: var(--terra); font-weight: 700; }

/* ---------- auth ---------- */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr; }
@media (min-width: 900px) { .auth-wrap { grid-template-columns: 1fr 1fr; } }
.auth-hero { background: var(--ink); color: var(--paper); padding: 56px; display: none; flex-direction: column; }
@media (min-width: 900px) { .auth-hero { display: flex; } }
.auth-hero .headline { font-family: var(--font-head); font-weight: 900; font-size: 52px; line-height: .98; text-transform: uppercase; margin: 26px 0 14px; }
.auth-hero .headline .g { color: var(--gold); }
.auth-hero p.lead { color: rgba(246,243,238,.8); font-size: 15px; max-width: 420px; }
.auth-feats { margin-top: 34px; display: flex; flex-direction: column; gap: 14px; }
.auth-feat { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: rgba(246,243,238,.88); }
.auth-feat .fdot { width: 22px; height: 22px; border-radius: 4px; background: rgba(217,164,65,.18); color: var(--gold); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 12px; }
.auth-hero .foot { margin-top: auto; font-size: 12px; color: var(--faint); }
.auth-panel { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-box { width: 100%; max-width: 400px; }
.auth-box h2 { font-size: 30px; font-weight: 800; margin-bottom: 4px; }
.auth-box .sub { font-size: 14px; color: var(--muted); margin-bottom: 24px; }
.auth-msg { border-radius: 6px; padding: 11px 14px; font-size: 13.5px; margin-bottom: 14px; }
.auth-msg.ok { background: var(--ok-tint); color: var(--ok); }
.auth-msg.err { background: var(--terra-tint); color: var(--terra); }
.auth-alt { text-align: center; font-size: 13.5px; color: var(--muted); margin-top: 18px; }

/* paywall */
.pay-box { max-width: 460px; text-align: center; }
.pay-box .lock { width: 64px; height: 64px; border-radius: 14px; background: var(--gold-tint); color: var(--gold-dark); display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; }
.pay-feats { text-align: left; margin: 20px 0; display: flex; flex-direction: column; gap: 10px; }
/* The paywall sits on the light panel, so the hero's near-white feature text
   is invisible there. Override it on the one screen that asks for money. */
.pay-feats .auth-feat { color: var(--ink); }
.pay-note { font-size: 12.5px; color: var(--faint); margin-top: 16px; }

/* ---------- toast + save pill ---------- */
.toast {
  position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%);
  background: var(--ink); color: var(--paper); border-radius: 6px; padding: 11px 18px;
  font-size: 13.5px; z-index: 100; box-shadow: var(--shadow-lg); display: flex; gap: 12px; align-items: center;
}
.toast.err { background: var(--terra); color: #fff; }
.toast button { background: none; border: none; color: var(--gold); font-weight: 700; }
.save-pill { font-size: 12px; color: var(--faint); display: inline-flex; align-items: center; gap: 6px; }
.save-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.save-pill.saving .dot { background: var(--gold); animation: pulse 1s infinite; }
.save-pill.error .dot { background: var(--terra); }

/* ---------- legal ---------- */
.legal-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); padding: 0 28px; }
.legal-tabs button {
  background: none; border: none; padding: 12px 14px; font-size: 14px; font-weight: 600; color: var(--muted);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.legal-tabs button.active { color: var(--ink); border-bottom-color: var(--gold); }
.legal-body { padding: 22px 28px; overflow-y: auto; font-size: 14px; color: var(--ink); }
.legal-body p { margin: 0 0 14px; }
.legal-body .lu { color: var(--faint); font-size: 12.5px; }

/* ---------- print ---------- */
#print-area { display: none; }
@media print {
  body * { visibility: hidden !important; }
  #print-area, #print-area * { visibility: visible !important; }
  #print-area { display: block; position: absolute; left: 0; top: 0; width: 100%; padding: 16px; }
  #print-area h1 { font-size: 22px; } #print-area h2 { font-size: 15px; margin: 14px 0 6px; }
  #print-area table { width: 100%; border-collapse: collapse; font-size: 11px; }
  #print-area td, #print-area th { border: 1px solid #999; padding: 4px 6px; text-align: left; }
}

/* ============================================================
   Admissions Scorecard
   ============================================================ */
.sc-mini { display: flex; align-items: baseline; gap: 10px; margin: 6px 0 10px; }
.sc-mini-num { font-family: var(--font-head); font-size: 40px; font-weight: 800; line-height: 1; letter-spacing: .01em; }
.sc-mini-num small { font-size: 15px; font-weight: 700; color: var(--faint); margin-left: 4px; }
.sc-mini-sub { font-size: 12px; color: var(--muted); line-height: 1.4; }
.sc-mini-gap { margin-top: 12px; padding: 10px 12px; background: var(--gold-tint); border-radius: var(--radius); }
.sc-mini-gap b { display: block; font-size: 13.5px; margin-top: 2px; }
.sc-mini-gap p { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); }
.sc-mini-note { margin-top: 10px; font-size: 11.5px; font-style: italic; color: var(--faint); }

.score-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  grid-template-areas: "main select pts" "bar bar bar";
  align-items: center; gap: 4px 14px;
  padding: 14px 16px; margin-bottom: 10px;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.score-row.maxed { border-color: rgba(46, 125, 91, .35); }
.sr-main { grid-area: main; min-width: 0; }
.sr-label { font-weight: 700; font-size: 14.5px; }
.sr-detail { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.sr-scale { font-size: 11px; color: var(--faint); margin-top: 4px; letter-spacing: .01em; }
.sr-select { grid-area: select; padding: 6px 8px; font-family: var(--font-body); font-size: 13px;
  border: 1px solid var(--line-strong); border-radius: var(--btn-radius); background: var(--white); }
.sr-pts { grid-area: pts; text-align: right; white-space: nowrap; }
.sr-pts b { font-family: var(--font-head); font-size: 30px; font-weight: 800; line-height: 1; }
.sr-pts span { font-size: 12px; color: var(--faint); margin-left: 3px; }
.sr-bar { grid-area: bar; height: 4px; margin-top: 10px; background: rgba(20,22,28,.08); border-radius: 3px; overflow: hidden; }
.sr-bar i { display: block; height: 100%; background: var(--gold); border-radius: 3px; }
.score-row.maxed .sr-bar i { background: var(--ok); }

.bonus-list { display: grid; gap: 8px; }
.bonus-row {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px;
  padding: 12px 14px; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); cursor: pointer; font-size: 13.5px;
}
.bonus-row:hover { border-color: var(--line-strong); }
.bonus-row input { width: 16px; height: 16px; accent-color: var(--gold); cursor: pointer; }
.bn-desc { font-size: 12px; color: var(--muted); }
.bn-pts { font-family: var(--font-head); font-size: 20px; font-weight: 800; color: var(--terra); }

.gap-item { padding: 10px 0; border-bottom: 1px solid var(--line); }
.gap-item:last-child { border-bottom: none; }
.gap-item b { display: block; font-size: 13.5px; margin-top: 4px; }
.gap-item p { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); }
.gap-tier {
  display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; padding: 2px 7px; border-radius: 3px;
}
.gap-tier.t1 { background: var(--ok-tint); color: var(--ok); }
.gap-tier.t2 { background: var(--gold-tint); color: var(--gold-dark); }
.gap-tier.t3 { background: var(--terra-tint); color: var(--terra); }

@media (max-width: 640px) {
  .score-row { grid-template-columns: 1fr auto; grid-template-areas: "main pts" "select select" "bar bar"; }
  .sr-select { width: 100%; margin-top: 8px; }
}
