/* SIGNAL — College Compass design system, APP surface (next.html)
   Spec: docs/superpowers/specs/2026-07-11-design-system-restart-design.md
   Ported from mockups/signal/signal.css: tokens + shared type/buttons/mast/fade
   plus everything below its "APP (app.html)" divider. Landing-only sections
   (hero/demo/get-grid/compare/price/faq/final/foot) live in signal-landing.css
   and are not duplicated here — this page never loads that file.
   Dark precision instrument. One signature green. Radius 0. Hairlines, not boxes. */

:root {
  --ink: #0B0F12;
  --ink-raise: #111713;
  --field: #12161B;      /* C1 neutral slate — no green cast; green stays accent-only */
  --field-line: #212730;
  --line: #1C2420;
  --line-soft: #151B17;
  --text: #F4F6F5;
  --text-dim: #8A9490;
  --text-faint: #5C6662;
  --green: #00D977;
  --green-ink: #04170D;
  --amber: #E8A33D;
  --red: #F25C3F;
  --display: "Space Grotesk", sans-serif;
  --body: "Inter", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--green); color: var(--green-ink); }

a { color: inherit; text-decoration: none; }
button { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; }

:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

.wrap { max-width: 1060px; margin: 0 auto; padding: 0 28px; }

/* ---------- type ---------- */
.h-display {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(38px, 6vw, 62px); line-height: 1.05; letter-spacing: -0.03em;
}
.h-display em { font-style: normal; color: var(--green); }
h2.h-sec {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(26px, 3.6vw, 33px); line-height: 1.15; letter-spacing: -0.02em;
}
h2.h-sec em { font-style: normal; color: var(--green); }
h3 {
  font-family: var(--display); font-weight: 500;
  font-size: 20px; line-height: 1.3; letter-spacing: -0.01em;
}
h3 em { font-style: normal; color: var(--green); }
.lede { font-size: 16px; color: var(--text-dim); max-width: 58ch; }
.micro {
  font-family: var(--body); font-weight: 600; font-size: 11px;
  letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-dim);
}
.num { font-family: var(--display); font-variant-numeric: tabular-nums; }
.g { color: var(--green); }
.a { color: var(--amber); }
.r { color: var(--red); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; background: var(--green); color: var(--green-ink);
  font-family: var(--display); font-weight: 500; font-size: 14px;
  padding: 12px 22px; border-radius: 0; letter-spacing: 0.01em;
}
.btn:hover { filter: brightness(1.06); }
.btn-quiet {
  display: inline-block; background: transparent; color: var(--text);
  border: 1px solid var(--line); font-family: var(--display); font-weight: 500;
  font-size: 14px; padding: 11px 21px; border-radius: 0;
}
.btn-quiet:hover { border-color: var(--green); color: var(--green); }
.act { color: var(--green); font-size: 14px; }
.act:hover { text-decoration: underline; text-underline-offset: 3px; }
.act.dim { color: var(--text-dim); }
.act.dim:hover { color: var(--green); }

/* ---------- masthead ---------- */
.mast {
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 0; border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand .mark { display: block; flex: 0 0 auto; }
.brand b {
  font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: -0.01em;
}
.mast nav { display: flex; align-items: center; gap: 26px; }
.mast nav a { font-size: 14px; color: var(--text-dim); }
.mast nav a:hover { color: var(--text); }
.mast nav a.btn { padding: 9px 16px; color: var(--green-ink); }
.mast nav a.btn:hover { color: var(--green-ink); }

/* fade-in */
.fade { opacity: 0; transform: translateY(6px); animation: rise 0.6s ease forwards; }
.fade.d1 { animation-delay: 0.12s; }
.fade.d2 { animation-delay: 0.24s; }
.fade.d3 { animation-delay: 0.36s; }
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .fade { animation: none; opacity: 1; transform: none; }
}
/* same-view re-renders: entrance already happened — pin fades finished so
   in-view interactions never look like a page refresh */
#app.settled .fade { animation: none; opacity: 1; transform: none; }

/* ============================================================
   APP (next.html) — the plan, the nine questions, edit, account
   ============================================================ */

.wrap.narrow { max-width: 640px; }
.micro.g { color: var(--green); }
.micro.a { color: var(--amber); }

/* signature flag word — replaces badges/stamps per spec */
.flag {
  font-family: var(--body); font-weight: 600; font-size: 11px;
  letter-spacing: 0.07em; text-transform: uppercase; color: var(--green);
  margin-right: 10px;
}

/* ---------- question flow ---------- */
.q-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; background: var(--line-soft); z-index: 50; }
.q-progress i { display: block; height: 100%; background: var(--green); transition: width 0.4s ease; }
.q-title {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(30px, 5vw, 42px); line-height: 1.1; letter-spacing: -0.025em;
  margin: 10px 0 14px;
}
.q-title em { font-style: normal; color: var(--green); }
.q-help { font-size: 16px; line-height: 1.6; color: var(--text-dim); max-width: 54ch; margin-bottom: 30px; }
.q-input-row { display: flex; gap: 14px; align-items: flex-end; }
.q-input {
  flex: 1; background: transparent; border: 0; border-bottom: 1px solid var(--text);
  color: var(--text); font-family: var(--display); font-size: 24px; font-weight: 500;
  padding: 8px 2px; min-width: 0;
}
.q-input::placeholder { color: var(--text-faint); font-weight: 500; }
.q-input:focus { outline: none; border-bottom-color: var(--green); }
.q-options { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.q-opt {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 16px 2px; border-bottom: 1px solid var(--line-soft); text-align: left;
  font-family: var(--display); font-weight: 500; font-size: 17px; color: var(--text);
}
.q-opt:hover { color: var(--green); }
.q-opt .go { color: var(--green); font-weight: 700; }
.q-foot {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  margin-top: 26px; flex-wrap: wrap;
}
/* Inline, persistent validation (MUST #7) — a red line under the field that
   stays until the answer is fixed; empty and collapsed the rest of the time. */
.q-error { color: var(--red); font-family: var(--body); font-size: 13px; margin-top: 10px; }
.q-error:empty { display: none; }
.q-note {
  margin-top: 34px; padding-top: 14px; border-top: 1px solid var(--line);
  font-size: 13.5px; line-height: 1.6; color: var(--text-dim); max-width: 58ch;
}
.q-note b { color: var(--text); font-weight: 600; }
.q-note .flag { display: inline-block; margin-bottom: 2px; }

/* ---------- monetization gate (MUST #6) — a flat Signal-voice block in the
   suggestions area, not a modal/paywall overlay; same hairline-and-flag
   language as .q-note, no boxes/pills. ---------- */
.upgrade-moment { border-top-color: var(--green); margin-top: 0; padding: 16px 18px; background: var(--field); }
.upgrade-moment p { margin: 6px 0 16px; max-width: 56ch; }
.upgrade-acts { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.mock-hint { font-size: 12px; color: var(--text-dim); }

/* ---------- auth / new plan ---------- */
.auth-alt {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  width: 100%; text-align: left; padding: 16px 2px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line-soft);
  font-family: var(--display); font-weight: 500; font-size: 17px; color: var(--text);
}
.auth-alt + .auth-alt { border-top: 0; }
.auth-alt:hover { color: var(--green); }
.auth-alt .go { color: var(--green); font-weight: 700; }
.auth-alt small { display: block; font-family: var(--body); font-weight: 400; font-size: 13px; color: var(--text-dim); margin-top: 2px; }
.auth-or {
  margin: 26px 0 6px; font-size: 11px; font-weight: 600;
  letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-dim);
}

/* ---------- account line + menu ---------- */
.acct-line { position: relative; display: inline-block; }
.who { font-family: var(--body); font-size: 13.5px; color: var(--text-dim); padding: 6px 0; }
.who b { color: var(--text); font-weight: 600; }
.who:hover { color: var(--text); }
.who .chev { color: var(--text-faint); }
.who .dot-on { display: inline-block; width: 7px; height: 7px; background: var(--green); margin-right: 8px; vertical-align: 1px; }
.who .dot-off { display: inline-block; width: 7px; height: 7px; border: 1px solid var(--text-faint); margin-right: 8px; vertical-align: 1px; box-sizing: border-box; }
.acct-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 60;
  min-width: 380px; background: var(--ink-raise);
  border: 1px solid var(--line); border-top: 2px solid var(--green);
  padding: 4px 18px 10px; text-align: left;
}
.acct-menu .am-head { display: block; padding: 12px 2px 10px; border-bottom: 1px solid var(--line-soft); }
.acct-menu .am-head b { display: block; color: var(--text); font-size: 14px; font-weight: 600; }
.acct-menu .am-head b.flag { display: block; margin: 0 0 4px; }
.acct-menu .am-head span { font-size: 13px; color: var(--text-dim); }
.acct-menu .am-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 14px;
  width: 100%; text-align: left; padding: 13px 2px;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--body); font-size: 14px; color: var(--text);
}
.acct-menu .am-row:last-child { border-bottom: 0; }
/* sign-out confirm — the row's text wraps, actions keep to one line */
.acct-menu .am-confirm { flex-wrap: wrap; color: var(--text-dim); font-size: 13px; }
.acct-menu .am-confirm small { white-space: nowrap; }
.acct-menu .am-row small { color: var(--text-dim); font-size: 12.5px; }
.acct-menu .am-row:hover { color: var(--green); }
.acct-menu .am-row.red { color: var(--red); }
.acct-menu .am-row.red:hover { text-decoration: underline; text-underline-offset: 3px; }
.acct-menu .am-back { color: var(--text-dim); }
.acct-menu .am-back:hover { color: var(--green); }
.acct-menu .am-plan { padding: 0; align-items: stretch; }
.acct-menu .am-plan .am-plan-pick {
  display: flex; justify-content: space-between; align-items: baseline; gap: 14px;
  flex: 1 1 auto; min-width: 0; text-align: left; padding: 13px 2px;
  font-family: var(--body); font-size: 14px; color: var(--text);
}
.acct-menu .am-plan .am-plan-pick span:first-child { flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-menu .am-plan .am-plan-pick small { color: var(--text-dim); font-size: 12.5px; flex: 0 0 auto; }
.acct-menu .am-plan:not(.on) .am-plan-pick:hover { color: var(--green); }
.acct-menu .am-plan.on .am-plan-pick { color: var(--green); cursor: default; }
.acct-menu .am-plan .am-plan-pick span:first-child::before {
  content: ""; display: inline-block; width: 7px; height: 7px;
  margin-right: 8px; vertical-align: 1px; border: 1px solid var(--text-faint); box-sizing: border-box;
}
.acct-menu .am-plan.on .am-plan-pick span:first-child::before { background: var(--green); border-color: var(--green); }
.acct-menu .am-plan .am-plan-edit {
  flex: 0 0 auto; padding: 13px 4px 13px 12px; align-self: center;
  font-family: var(--body); font-size: 12px; letter-spacing: 0.04em; color: var(--text-dim);
}
.acct-menu .am-plan .am-plan-edit:hover { color: var(--green); text-decoration: underline; }
.acct-menu .am-edit { display: flex; gap: 10px; align-items: center; padding: 9px 2px; }
.acct-menu .am-rename {
  flex: 1 1 auto; min-width: 0; background: var(--ink); border: 1px solid var(--line);
  color: var(--text); font-family: var(--body); font-size: 14px; padding: 6px 9px;
}
.acct-menu .am-rename:focus { outline: none; border-color: var(--green); }
.acct-menu .am-edit-acts { display: flex; gap: 12px; flex: 0 0 auto; }
.acct-menu .am-edit-acts button { font-family: var(--body); font-size: 12.5px; color: var(--green); }
.acct-menu .am-edit-acts button.dim { color: var(--text-dim); }
.acct-menu .am-edit-acts button.dim:hover { color: var(--text); }
.acct-menu .am-rename-err { flex-basis: 100%; color: var(--red); font-family: var(--body); font-size: 12px; margin-top: 4px; }
.acct-menu .am-rename-err:empty { display: none; }
.acct-menu .am-whatsnew-body { display: block; padding: 4px 2px 13px; border-bottom: 1px solid var(--line-soft); }
.acct-menu .am-whatsnew-body p { font-family: var(--body); font-size: 13px; line-height: 1.5; color: var(--text-dim); margin: 0 0 10px; }
.acct-menu .am-whatsnew-body p:last-child { margin-bottom: 0; }

/* ---------- the plan view ---------- */
.plan-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  margin: 40px 0 10px; flex-wrap: wrap;
}
.plan-head .act { font-size: 12px; }
.advisor-note {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(19px, 2.6vw, 23px); line-height: 1.45; letter-spacing: -0.01em;
  max-width: 62ch; margin: 6px 0 0;
}
.advisor-note .f { color: var(--green); font-weight: 700; }
.advisor-note .f.warn { color: var(--amber); }
.advisor-note .act { font-family: var(--display); font-size: inherit; font-weight: 500; }
.add-block { margin: 40px 0 46px; max-width: 680px; }
.field {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--text);
  color: var(--text); font-family: var(--body); font-size: 16px; padding: 9px 2px;
}
.field::placeholder { color: var(--text-faint); }
.field:focus { outline: none; border-bottom-color: var(--green); }
.field.date { width: auto; font-family: var(--display); font-size: 14px; color-scheme: dark; }
.suggest-rows { display: flex; flex-direction: column; }
.suggest-rows > button {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 12px 2px; border-bottom: 1px solid var(--line-soft); text-align: left;
  font-family: var(--body); font-size: 14.5px; font-weight: 600; color: var(--text);
}
.suggest-rows > button:hover { color: var(--green); }
.suggest-rows .why { font-weight: 400; color: var(--text-dim); }
.suggest-rows .figs { font-size: 13.5px; color: var(--text-dim); white-space: nowrap; }
.suggest-rows .figs b { color: var(--green); font-weight: 700; }
.sug-none { font-size: 13px; color: var(--text-dim); padding: 12px 2px; border-top: 1px solid var(--line); }
.list-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 2px; }
.h-sub { font-family: var(--display); font-weight: 700; font-size: 24px; letter-spacing: -0.02em; }

/* the working list table — data on the page, hairlines only */
.plan-table { width: 100%; border-collapse: collapse; border-top: 1px solid var(--line); }
.plan-table th {
  font-family: var(--body); font-weight: 600; font-size: 11px;
  letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-dim);
  text-align: left; padding: 12px 2px 8px; border-bottom: 1px solid var(--line);
}
.plan-table th.rt, .plan-table td.rt { text-align: right; }
.plan-table td { padding: 11px 2px; border-bottom: 1px solid var(--line-soft); font-size: 15px; vertical-align: baseline; }
.plan-table tr.entry { cursor: pointer; }
.plan-table tr.entry:hover .nm { color: var(--green); }
.plan-table tr.entry.open .nm { color: var(--green); }
.plan-table .nm { font-weight: 600; color: var(--text); }
.plan-table .row-toggle { font: inherit; color: inherit; text-align: left; display: inline; padding: 0; }
.plan-table .nm small { display: block; font-weight: 400; font-size: 12.5px; color: var(--text-dim); margin-top: 2px; }
.plan-table .idx { color: var(--text-faint); font-weight: 500; margin-right: 12px; font-size: 13px; }
.plan-table td.rt { font-weight: 700; font-size: 15px; }
.plan-table td.rt .rng { color: var(--text-dim); font-weight: 400; font-size: 13px; }
.plan-table td.dim-cell { color: var(--text-dim); font-weight: 500; font-size: 13.5px; }
.plan-table .empty-row { font-size: 14px; color: var(--text-dim); padding: 22px 2px; }
.plan-table tfoot td { padding: 14px 2px; border-top: 1px solid var(--line); border-bottom: 0; font-size: 14px; color: var(--text-dim); }
.plan-table tfoot b { color: var(--text); font-family: var(--display); }

/* expanded detail — two columns on desktop so the page stays short */
/* the detail is one contained cell — field tint, hairline border, and a
   green seam at the joint where the selected row meets its panel — so the
   rows after it clearly read as siblings. */
.plan-table tr.detail > td { padding: 0 0 26px; border-bottom: 1px solid var(--line); }
.leaders {
  padding: 18px 26px 16px;
  background: var(--field);
  border: 1px solid var(--field-line);
  border-top: 1px solid var(--green);
}
.d-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 36px; align-items: start; max-width: 1100px; }
.d-cols > div + div { border-left: 1px solid var(--field-line); padding-left: 36px; }
/* can-we-afford-it — the full-width waterfall strip below the two columns */
.afford-band { border-top: 1px solid var(--field-line); margin-top: 18px; }
.afford-band .d-head { margin-top: 14px; }
.afford-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 1px; background: var(--field-line); border: 1px solid var(--field-line); margin-top: 6px;
}
.af-cell { background: var(--field); padding: 9px 12px; min-width: 0; display: flex; flex-direction: column; }
.af-lbl { font-size: 11px; color: var(--text-dim); line-height: 1.4; flex: 1; }
.af-val { font-family: var(--display); font-weight: 700; font-size: 16.5px; color: var(--text); margin-top: 6px; white-space: nowrap; }
.af-val.g { color: var(--green); }
.af-val.a { color: var(--amber); }
.af-val.r { color: var(--red); }
.af-unit { font-family: var(--body); font-weight: 400; font-size: 11px; color: var(--text-dim); }

/* award-letter decoder — same .afford-band head/border vocabulary; decoded
   lines are ordinary .lead-rows with a mini category select inserted before
   the amount, no new box/pill chrome. */
.aid-band .act { margin-right: 18px; }
.aid-band .btn { margin-top: 10px; }
.aid-line .aid-cat { margin: 0 12px; }
.aid-line .aid-cat select.fld-in { min-width: 128px; }
.aid-status.err { color: var(--red); }
.d-foot-acts .act.red.dim-red { color: var(--text-dim); }
.d-foot-acts .act.red.dim-red:hover { color: var(--red); }

.d-foot {
  display: flex; justify-content: space-between; align-items: baseline; gap: 18px; flex-wrap: wrap;
  border-top: 1px solid var(--field-line); margin-top: 20px; padding-top: 14px;
}
.d-foot-acts { display: inline-flex; gap: 18px; white-space: nowrap; }
.d-foot .act.dim-red { color: var(--text-dim); }
.d-foot .act.dim-red:hover { color: var(--red); }
/* row-level remove — quiet in the meta line, red only on intent */
.plan-table .row-remove { color: var(--text-dim); font-size: 12px; }
.plan-table .row-remove:hover { color: var(--red); }
.plan-table small .act.red, .plan-table small .act.dim { font-size: 12px; }
.d-head {
  font-family: var(--body); font-weight: 600; font-size: 11px;
  letter-spacing: 0.07em; text-transform: uppercase; color: var(--green);
  margin: 20px 0 6px;
}
.d-head:first-child { margin-top: 8px; }
.lead-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  font-size: 14px; color: var(--text-dim); padding: 6px 0;
}
.lead-row .dots { flex: 1; border-bottom: 1px dotted var(--line); transform: translateY(-4px); }
.lead-row .val { font-family: var(--display); font-weight: 700; color: var(--text); white-space: nowrap; }
.lead-row .val.g { color: var(--green); }
.lead-row .val.a { color: var(--amber); }
.lead-sub { font-size: 12px; color: var(--text-dim); line-height: 1.5; margin: 2px 0 10px; max-width: 42em; }
.lead-sub.warn-sub { color: var(--amber); margin-top: 8px; }
.lead-sub.warn-sub b { color: var(--amber); }
.lead-sub b { color: var(--text-dim); }

/* the season roadmap */
.season { margin-top: 34px; max-width: 680px; border-top: 1px solid var(--line); padding-top: 4px; }
.season .sn-row .act { flex: 0 0 auto; margin-left: 10px; }
.sn-row {
  display: flex; align-items: baseline; gap: 12px;
  padding: 10px 2px; border-bottom: 1px solid var(--line-soft);
  font-size: 14px; color: var(--text-dim);
}
.sn-row .dots { flex: 1; border-bottom: 1px dotted var(--line); transform: translateY(-4px); }
.sn-dot { flex: 0 0 8px; width: 8px; height: 8px; border: 1px solid var(--text-faint); box-sizing: border-box; align-self: center; }
.sn-row.done .sn-dot { background: var(--green); border-color: var(--green); }
.sn-row.done .sn-lbl { color: var(--text-faint); text-decoration: line-through; text-decoration-color: var(--line); }
.sn-row.now .sn-dot { border-color: var(--green); border-width: 2px; }
.sn-row.now .sn-lbl { color: var(--text); font-weight: 600; }
.sn-status { font-size: 12.5px; color: var(--text-dim); white-space: nowrap; }
.sn-row.now .sn-status { color: var(--text-dim); }

/* plan breadcrumb switcher — the plan names itself in the plan-head, so
   that's where switching lives; the account-menu Plans row remains too */
.plan-crumb { text-transform: inherit; letter-spacing: inherit; font: inherit; color: inherit; }
.plan-crumb:hover { color: var(--green); text-decoration: none; }
.crumb-plans {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  border-bottom: 1px solid var(--line-soft); padding: 8px 0 10px; margin-bottom: 4px;
  font-size: 13px;
}
.crumb-plans .crumb-p.on { color: var(--green); font-weight: 600; }
.crumb-plans .crumb-dot { color: var(--text-faint); }

/* the signed-out keep-your-plan nudge — one hairline line, dismissible */
.nudge-line { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; margin-top: 14px; padding-top: 12px; font-size: 13.5px; }
.nudge-line span { max-width: 60ch; }
.nudge-line .nudge-x { font-size: 16px; line-height: 1; padding: 0 4px; }

/* season, two presentations: the fold strip (narrow, docked under the
   advisor note) and the right rail (wide). Only one is ever visible. */
.season-fold .season { margin-top: 4px; max-width: 680px; }
.season-rail { display: none; }
.plan-cols { display: block; }
@media (min-width: 1020px) {
  .season-fold { display: none; }
  .season-rail { display: block; position: sticky; top: 28px; border-left: 1px solid var(--line); padding-left: 22px; min-width: 0; }
  .plan-cols.has-rail { display: grid; grid-template-columns: minmax(0, 1fr) 232px; gap: 46px; align-items: start; }
}
.sr-row { padding: 9px 0; border-bottom: 1px solid var(--line-soft); }
.sr-top { display: flex; align-items: baseline; gap: 10px; font-size: 13.5px; color: var(--text-dim); }
.sr-status { font-size: 11.5px; color: var(--text-dim); margin: 3px 0 0 18px; line-height: 1.45; }
.sr-row.done .sn-lbl { color: var(--text-faint); text-decoration: line-through; text-decoration-color: var(--line); }
.sr-row.now .sn-lbl { color: var(--text); font-weight: 600; }
.sr-row.now .sr-status { color: var(--text-dim); }

/* row expand affordance */
.plan-table .tw { display: inline-block; width: 14px; color: var(--text-faint); font-size: 11px; }
.plan-table tr.entry.open .tw, .plan-table tr.entry:hover .tw { color: var(--green); }
.word-choice { display: flex; gap: 16px; flex-wrap: wrap; margin: 6px 0 12px; }
.word-choice button { font-family: var(--body); font-size: 13.5px; color: var(--text-dim); padding: 4px 0; white-space: nowrap; }
.word-choice button:hover { color: var(--text); }
.word-choice button.on { color: var(--green); font-weight: 600; border-bottom: 2px solid var(--green); }
.act.red { color: var(--red); }
.act.red:hover { color: var(--red); }

/* ---------- fields (F5: label lives inside the field) ----------
   One contained unit per field: corner micro-label, value below.
   Focus turns the border and label green. */
.fld {
  position: relative; background: var(--field); border: 1px solid var(--field-line);
  border-radius: 0; padding: 8px 12px 9px; min-width: 0; cursor: text;
}
.fld-lbl {
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  font-family: var(--body); font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-dim);
  margin-bottom: 2px;
}
.fld-in {
  width: 100%; background: transparent; border: 0; color: var(--text);
  font-family: var(--body); font-size: 15px; padding: 1px 0;
}
.fld-in::placeholder { color: var(--text-faint); }
.fld-in:focus { outline: none; }
.fld:hover { border-color: var(--text-faint); }
.fld:focus-within { border-color: var(--green); }
.fld:focus-within .fld-lbl { color: var(--green); }
.fld-in.num, .fld-in[type="number"] { font-family: var(--display); font-weight: 500; }
.fld-val { display: flex; align-items: baseline; gap: 6px; }
.fld-prefix { font-family: var(--body); font-size: 15px; color: var(--text-dim); }
.fld.sel::after {
  content: "⌄"; position: absolute; right: 11px; bottom: 9px;
  color: var(--green); font-size: 13px; pointer-events: none;
}
.fld select.fld-in {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 20px;
}
.fld option { background: var(--field); color: var(--text); }
.fld.q { padding: 10px 14px 11px; }
.fld.q .fld-in { font-family: var(--display); font-size: 22px; font-weight: 500; }
.fld.q .fld-in[type="number"] { font-size: 22px; }
.fld .tx-btn { font-size: 10.5px; letter-spacing: 0.04em; text-transform: none; font-weight: 400; border-bottom: 1px dashed var(--text-faint); padding-bottom: 1px; }
.fld .tx-status { display: block; font-size: 11.5px; margin-top: 3px; }
.fld .tx-status:empty { display: none; }

.fld-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
.fld.full { grid-column: 1 / -1; }
.fld.mini { display: inline-block; padding: 4px 9px 5px; }
.fld.mini .fld-in { font-size: 13px; width: auto; }

/* ---------- edit plan: an F5 grid ---------- */
.edit-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; margin-top: 24px; max-width: 640px; }
.edit-form .fld-grid { grid-column: 1 / -1; }
.edit-form .gpa-cum { grid-column: 1 / -1; }
.edit-sec {
  grid-column: 1 / -1; margin-top: 8px;
  font-family: var(--body); font-size: 11px; font-weight: 600;
  letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-dim);
}

/* ---------- per-grade GPA (F5 cells in a grid) ---------- */
.gpa-block { max-width: 640px; }
.gpa-in { font-size: 17px; }
.gpa-cum {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 13px 2px 2px; font-size: 14px; color: var(--text-dim);
}
.gpa-cum .dots { flex: 1; border-bottom: 1px dotted var(--line); transform: translateY(-4px); }
.gpa-cum b { font-family: var(--display); font-size: 19px; font-weight: 700; color: var(--green); }

/* ---------- campus feel groups ---------- */
.feel-group { margin-bottom: 22px; }
.feel-group .micro { display: block; margin-bottom: 8px; }
.word-choice.big { gap: 26px; border-top: 1px solid var(--line-soft); padding-top: 10px; }
.word-choice.big button { font-size: 15px; padding: 5px 0; }

/* edit-screen typeahead */
.edit-sug { grid-column: 1 / -1; }
.edit-sug:empty { display: none; }

/* ---------- transcript upload ---------- */
.tx-upload { margin-top: 16px; }
.tx-row { padding: 10px 2px 2px; border-bottom: 1px solid var(--line-soft); }
.tx-btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font-family: var(--body); font-size: 13.5px; color: var(--text-dim);
  border-bottom: 1px dashed var(--text-faint); padding-bottom: 3px;
}
.tx-btn:hover { color: var(--green); border-bottom-color: var(--green); }
.tx-status { display: block; margin-top: 10px; font-family: var(--body); font-size: 13px; color: var(--text-dim); line-height: 1.5; }
.tx-status b { color: var(--green); }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 8px);
  background: var(--ink-raise); border: 1px solid var(--line); border-left: 2px solid var(--green);
  color: var(--text); font-family: var(--body); font-size: 13.5px;
  padding: 10px 16px; opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease; max-width: min(90vw, 480px); z-index: 70;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- print (Export this plan — window.print(), honest v1) ----------
   Ink-on-white, one page: the masthead/account menu, the add-to-plan search
   box, the season strip, and the toast never print — none of them mean
   anything on paper. What survives is the plan header, the advisor line,
   and the working-list table with its totals (any detail row the parent had
   open when they exported prints too, since it's real content, not chrome). */
@media print {
  :root, body { background: #fff !important; }
  /* print can fire mid-entrance (Export is one click after a render) —
     without this the staggered fades print at opacity 0 and the report
     looks empty below the fold. */
  .fade { animation: none !important; opacity: 1 !important; transform: none !important; }
  .plan-cols.has-rail { display: block !important; }
  .mast .acct-line, .add-block, .season, .season-rail, .toast, .q-progress,
  .plan-head .act, .plan-table .act, .list-head .act { display: none !important; }
  .wrap { max-width: 100%; padding: 0; }
  body, .q-help, .advisor-note, .lead-sub { color: #111 !important; }
  .leaders { background: #fff !important; border-color: #999 !important; }
  .afford-strip, .af-cell { background: #fff !important; border-color: #999 !important; }
  .af-lbl, .af-val { color: #111 !important; }
  .plan-table, .plan-table th, .plan-table td { color: #111 !important; border-color: #999 !important; }
  .h-sub, .d-head, .micro { color: #111 !important; }
  a.brand b, .mast .brand { color: #111 !important; }
  .toast.show { display: none !important; }
  @page { margin: 0.6in; }
}

/* ---------- mobile ---------- */
@media (max-width: 680px) {
  .wrap { padding: 0 20px; }
  .who { font-size: 12.5px; }
  .acct-menu { min-width: 280px; right: -8px; }
  .q-input { font-size: 20px; }
  .q-input-row { flex-direction: column; align-items: stretch; gap: 18px; }
  .plan-head { flex-direction: column; gap: 4px; }
  .plan-table th:nth-child(4), .plan-table td:nth-child(4) { display: none; }
  .plan-table td.rt { font-size: 14px; }
  .plan-table td.rt .rng { display: none; }
  .leaders { padding: 14px 14px 12px; }
  .d-cols { grid-template-columns: 1fr; }
  .d-cols > div + div { border-left: 0; padding-left: 0; }
  .edit-form, .fld-grid { grid-template-columns: 1fr; }
  .q-input-row .fld.q { width: 100%; }
}
