:root {
  --bg: #f5f6f8; --surface: #ffffff; --surface-2: #f9fafb; --ink: #16181d; --muted: #5d6470; --line: #e3e6eb;
  --accent: #2557c7; --accent-ink: #ffffff; --accent-soft: #e8effc;
  --ok: #17794a; --ok-soft: #e3f4ea; --warn: #8a5800; --warn-soft: #fdf2dc;
  --bad: #b42d27; --bad-soft: #fde8e6; --far: #6b7280; --far-soft: #eef0f3;
  --hero-1: #1f3f8f; --hero-2: #2f6fd6;
  --radius: 14px; --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .06);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111317; --surface: #1a1d23; --surface-2: #20242b; --ink: #eceef2; --muted: #a2a9b4; --line: #2e333b;
    --accent: #84aaf5; --accent-ink: #0b1220; --accent-soft: #1f2d47;
    --ok: #6fd39c; --ok-soft: #173326; --warn: #f2c56a; --warn-soft: #3a2f1a;
    --bad: #f59089; --bad-soft: #3f2120; --far: #a2a9b4; --far-soft: #252a31;
    --hero-1: #16295c; --hero-2: #1f4a99; --shadow: none;
  }
}
:root[data-theme="dark"] {
  --bg: #111317; --surface: #1a1d23; --surface-2: #20242b; --ink: #eceef2; --muted: #a2a9b4; --line: #2e333b;
  --accent: #84aaf5; --accent-ink: #0b1220; --accent-soft: #1f2d47;
  --ok: #6fd39c; --ok-soft: #173326; --warn: #f2c56a; --warn-soft: #3a2f1a;
  --bad: #f59089; --bad-soft: #3f2120; --far: #a2a9b4; --far-soft: #252a31;
  --hero-1: #16295c; --hero-2: #1f4a99; --shadow: none;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
h1, h2, h3 { line-height: 1.25; }
h2 { font-size: 1.35rem; margin: 0; }
h3 { font-size: 1rem; margin: 0 0 8px; }
a { color: var(--accent); }
button, select { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- hero ---------- */
.hero { background: linear-gradient(135deg, var(--hero-1), var(--hero-2)); color: #fff; padding: 36px 0 30px; }
.eyebrow { margin: 0 0 6px; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 700; opacity: .85; }
.hero h1 { font-size: clamp(1.5rem, 4vw, 2.3rem); margin: 0 0 10px; max-width: 760px; }
.lede { margin: 0 0 16px; max-width: 680px; opacity: .92; }
.trust { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.trust li { background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; padding: 4px 12px; font-size: .84rem; }
.trust li::before { content: "✓ "; font-weight: 700; }

/* ---------- steps ---------- */
.step { margin-top: 28px; }
.step-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; }
.step-num { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 800; }
.hint { color: var(--muted); margin: 4px 0 0; font-size: .95rem; }
#summary { color: var(--ink); font-weight: 600; font-size: 1.02rem; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.note { font-size: .92rem; background: var(--accent-soft); border-radius: 10px; padding: 10px 12px; margin: 12px 0 0; }

.stage { margin-bottom: 12px; }
.stage-q { margin: 0 0 10px; font-weight: 600; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills button { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 8px 14px; min-height: 44px; }
.pills.small button { min-height: 36px; padding: 5px 12px; font-size: .88rem; }
.pills button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

.toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; }
.toolbar-right { display: flex; gap: 6px; flex-wrap: wrap; }
.link { background: none; border: none; color: var(--accent); padding: 6px 4px; text-decoration: underline; text-underline-offset: 3px; min-height: 36px; }
.link.danger { color: var(--bad); }
.ghost, .button { display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--accent); color: var(--accent); background: transparent; border-radius: 10px; padding: 8px 16px; min-height: 44px; text-decoration: none; font-weight: 600; }
.button { background: var(--accent); color: var(--accent-ink); }
.wide { width: 100%; margin-top: 4px; }

/* ---------- class groups ---------- */
.groups { display: grid; grid-template-columns: 1fr; gap: 14px; align-items: start; }
@media (min-width: 820px) { .groups { grid-template-columns: 1fr 1fr; } }
.group { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); }
.group > h3 { color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-size: .76rem; margin-bottom: 4px; }
.group-help { font-size: .84rem; color: var(--muted); margin: 0 0 8px; }
.course { border-top: 1px solid var(--line); padding: 10px 0; }
.course:first-of-type { border-top: none; }
.course.on .course-name::before { content: "✓ "; color: var(--accent); }
.course-name { font-weight: 600; }
.course-aka { font-size: .8rem; color: var(--muted); }
.answers { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.answers button, .grade-chips button { border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); border-radius: 8px; padding: 6px 10px; min-height: 40px; font-size: .9rem; }
.answers button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.lab-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; font-size: .85rem; }
.lab-label { color: var(--muted); margin-right: 2px; }
.lab-row button { border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); border-radius: 999px; padding: 4px 10px; min-height: 34px; font-size: .84rem; }
.lab-row button[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); font-weight: 600; }
.extra { margin-top: 6px; font-size: .85rem; color: var(--muted); }
.extra > summary { cursor: pointer; color: var(--accent); padding: 4px 0; }
.extra label { display: block; margin-top: 4px; }
.extra select, .sort select { padding: 6px 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); min-height: 38px; }

/* ---------- step 2: tiles + helpers ---------- */
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 14px; }
@media (min-width: 720px) { .tiles { grid-template-columns: repeat(4, 1fr); } }
.tile { text-align: left; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 12px 14px; box-shadow: var(--shadow); color: var(--ink); border-top: 4px solid var(--t); }
.tile .n { display: block; font-size: 1.8rem; font-weight: 800; line-height: 1.1; color: var(--t); }
.tile .l { font-size: .86rem; color: var(--muted); }
.tile[aria-pressed="true"] { outline: 2px solid var(--t); outline-offset: 1px; }
.tile[disabled] { opacity: .55; cursor: default; }
.t-met { --t: var(--ok); --t-soft: var(--ok-soft); }
.t-maybe { --t: var(--warn); --t-soft: var(--warn-soft); }
.t-close { --t: var(--accent); --t-soft: var(--accent-soft); }
.t-far, .t-browse, .t-none { --t: var(--far); --t-soft: var(--far-soft); }

.assist { display: grid; grid-template-columns: 1fr; gap: 12px; margin-bottom: 14px; }
@media (min-width: 900px) { .assist { grid-template-columns: 3fr 2fr; align-items: start; } }
.assist:empty { display: none; }
.ask { border-left: 4px solid var(--warn); }
.ask-item { margin: 12px 0 0; }
.ask-item p { margin: 0 0 6px; }
.grade-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.next { border-left: 4px solid var(--accent); }
.next ol { margin: 4px 0 0; padding-left: 20px; }
.next li { margin-bottom: 6px; }
.next .sub { display: block; color: var(--muted); font-size: .86rem; }

.list-bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin: 6px 0 12px; }
.sort { font-size: .9rem; color: var(--muted); display: flex; align-items: center; gap: 8px; }

/* ---------- school rows (ranked list, fixed columns) ---------- */
.schools { display: flex; flex-direction: column; gap: 10px; }
.tier-h { margin: 14px 0 0; font-size: .82rem; color: var(--t); text-transform: uppercase; letter-spacing: .06em; display: flex; align-items: center; gap: 8px; }
.tier-h span { background: var(--t-soft); color: var(--t); border-radius: 999px; padding: 0 8px; font-size: .78rem; }
.row { background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--t); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; }
.row-main { display: grid; grid-template-columns: 1fr; gap: 12px; align-items: center; }
@media (min-width: 960px) { .row-main { grid-template-columns: minmax(0, 1.5fr) minmax(170px, .8fr) minmax(0, 1.6fr); gap: 18px; } }
.who { display: flex; gap: 12px; align-items: flex-start; min-width: 0; }
.mono { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; font-weight: 800; color: #fff; font-size: .95rem; }
.who-text { min-width: 0; }
.school-name { font-weight: 700; font-size: 1.05rem; }
.school-prog { font-size: .85rem; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tag { font-size: .74rem; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; }
.tag.verified { color: var(--ok); background: var(--ok-soft); border-color: transparent; font-weight: 600; }
.tag.unverified { color: var(--warn); background: var(--warn-soft); border-color: transparent; font-weight: 600; }

.status { display: inline-block; font-size: .8rem; font-weight: 700; border-radius: 999px; padding: 3px 10px; background: var(--t-soft); color: var(--t); }
.progress { margin-top: 8px; }
.bar { display: flex; gap: 3px; height: 8px; }
.bar i { flex: 1; border-radius: 3px; background: var(--line); }
.bar i.met { background: var(--ok); }
.bar i.pending { background: var(--warn); }
.bar i.missing { background: var(--bad); opacity: .75; }
.count { display: block; font-size: .8rem; color: var(--muted); margin-top: 4px; }
.count b { color: var(--ink); }
.browse-hint { font-size: .82rem; color: var(--muted); margin: 6px 0 0; }

.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
@media (min-width: 560px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.fact { background: var(--surface); padding: 7px 10px; }
.fact .k { display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.fact .v { font-weight: 700; font-size: .95rem; }
.fact .v.none { color: var(--muted); font-weight: 400; font-size: .82rem; }
.fact .v.bad { color: var(--bad); }
.fact .v small { font-weight: 400; color: var(--muted); }
.facts.mini { margin-top: 10px; }

.bubbles { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.bubble { font-size: .84rem; border-radius: 999px; padding: 4px 11px; border: 1px solid; font-weight: 600; }
.bubble.miss { color: var(--bad); background: var(--bad-soft); border-color: transparent; }
.bubble.check { color: var(--warn); background: var(--warn-soft); border-color: transparent; }
.bubble.pend { color: var(--muted); background: var(--surface-2); border-color: var(--line); }
.bubble.exam { color: var(--ink); background: var(--surface-2); border-color: var(--line); font-weight: 600; }
.bubbles.exam-req { margin-top: 8px; }
.bubble.ok { color: var(--ok); background: var(--ok-soft); border-color: transparent; }

.row-foot { display: flex; align-items: flex-start; gap: 16px; margin-top: 10px; border-top: 1px solid var(--line); padding-top: 8px; flex-wrap: wrap; }
.cmp { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; color: var(--muted); min-height: 36px; cursor: pointer; }
.cmp input { width: 18px; height: 18px; accent-color: var(--accent); }
.more { flex: 1 1 260px; }
.more > summary { cursor: pointer; color: var(--accent); font-weight: 600; font-size: .9rem; list-style: none; min-height: 36px; display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.more > summary::-webkit-details-marker { display: none; }
.more > summary::after { content: "▾"; }
.more[open] > summary::after { content: "▴"; }
.more h3 { font-size: .86rem; margin: 12px 0 6px; }
.reqs { list-style: none; padding: 0; margin: 0; font-size: .9rem; }
.reqs li { padding: 4px 0; display: flex; gap: 8px; }
.ico { flex: 0 0 auto; width: 1.3em; text-align: center; font-weight: 700; }
.ico.met { color: var(--ok); } .ico.missing, .ico.low_grade { color: var(--bad); } .ico.pending, .ico.check { color: var(--warn); }
.confirm { display: block; font-size: .8rem; color: var(--warn); }
.notes { margin: 0; padding-left: 18px; font-size: .86rem; }
.notes li { margin-bottom: 4px; }
.partial { font-size: .8rem; color: var(--warn); margin: 8px 0 0; }
.links { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .86rem; margin-top: 10px; }
.links .checked { color: var(--muted); }
.muted { color: var(--muted); font-weight: 400; }

/* ---------- compare table ---------- */
.compare { margin-top: 18px; scroll-margin-top: 12px; }
.compare-head { display: flex; justify-content: space-between; align-items: center; }
.table-scroll { overflow-x: auto; margin-top: 8px; }
.cmp-table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: .9rem; }
.cmp-table th, .cmp-table td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.cmp-table thead th { font-size: .92rem; }
.cmp-table tbody th { color: var(--muted); font-weight: 600; white-space: nowrap; }
.cmp-table tr.diff td { background: var(--accent-soft); }

.empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 24px; }
.request { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.request p { margin: 2px 0 0; color: var(--muted); font-size: .92rem; }
.foot { color: var(--muted); font-size: .85rem; border-top: 1px solid var(--line); margin-top: 28px; padding: 14px 0 90px; }

.jump { position: fixed; left: 50%; transform: translateX(-50%); bottom: 16px; width: min(560px, calc(100% - 32px)); text-align: center; background: var(--ink); color: var(--bg); border-radius: 999px; padding: 13px 18px; font-weight: 700; text-decoration: none; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); transition: opacity .2s; }
.jump.away { opacity: 0; pointer-events: none; }

/* ---------- intake deck (one card at a time) ---------- */
.deck { max-width: 640px; margin: 0 auto; }
.deck-top { display: flex; justify-content: space-between; align-items: center; font-size: .88rem; color: var(--muted); margin-bottom: 6px; flex-wrap: wrap; gap: 6px; }
.deck-bar { height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; margin-bottom: 14px; }
.deck-bar i { display: block; height: 100%; background: var(--accent); border-radius: 999px; transition: width .25s ease; }
.qcard { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 6px 24px rgba(16, 24, 40, .08); padding: 22px 22px 14px; animation: cardIn .22s ease; }
.qcard.editing { border-color: var(--accent); }
@keyframes cardIn { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .qcard { animation: none; } .deck-bar i { transition: none; } }
.qcard-eyebrow { margin: 0 0 6px; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.qcard-title { font-size: clamp(1.25rem, 3.5vw, 1.6rem); margin: 0 0 6px; }
.qcard-aka { color: var(--muted); font-size: .92rem; margin: 0 0 12px; }
.qcard-aka.small { font-size: .82rem; margin-top: 12px; }
.qcard-answers { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.qcard-answers.stack { grid-template-columns: 1fr; }
.ans { border: 1.5px solid var(--line); background: var(--surface-2); color: var(--ink); border-radius: 12px; padding: 14px 12px; min-height: 54px; font-size: 1rem; font-weight: 600; text-align: center; }
.ans:hover { border-color: var(--accent); }
.ans[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.ans.yes[aria-pressed="true"] { border-color: var(--ok); background: var(--ok-soft); color: var(--ok); }
.qcard-answers.stack .ans { text-align: left; }
.qcard .lab-row { margin-top: 4px; }
.qcard-next { display: flex; justify-content: space-between; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.qcard-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; border-top: 1px solid var(--line); padding-top: 6px; }
.link[disabled] { opacity: .35; cursor: default; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1.5px solid var(--line); background: var(--surface-2); color: var(--ink); border-radius: 999px; padding: 8px 14px; min-height: 44px; font-size: .92rem; }
.chip.took { border-color: var(--ok); background: var(--ok-soft); color: var(--ok); font-weight: 600; }
.chip.ip { border-color: var(--warn); background: var(--warn-soft); color: var(--warn); font-weight: 600; }

/* ---------- persistent "your classes" summary ---------- */
.summary .sum-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.sum-actions { display: flex; gap: 4px; flex-wrap: wrap; }
.sum-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.sum-chip { border: 1px solid transparent; border-radius: 999px; padding: 5px 12px; font-size: .86rem; font-weight: 600; min-height: 34px; }
.sum-chip.took { background: var(--ok-soft); color: var(--ok); }
.sum-chip.ip { background: var(--surface-2); color: var(--muted); border-color: var(--line); }
.sum-chip.unsure { background: var(--warn-soft); color: var(--warn); }
.sum-chip:hover { border-color: currentColor; }
.visit { margin-top: 10px; width: 100%; }
.chip-group { margin: 14px 0 6px; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
@media (max-width: 560px) {
  /* 8 grade buttons as a tidy 4x2 grid instead of a lone "Lower" on its own line */
  .grade-chips { display: grid; grid-template-columns: repeat(4, 1fr); }
  .grade-chips button { padding: 6px 4px; }
}

/* ---------- request your state ---------- */
.request { display: block; }
.req-head p { margin: 2px 0 0; color: var(--muted); font-size: .92rem; }
.req-pick { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.req-pick select { flex: 1 1 200px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); min-height: 44px; font: inherit; }
.req-msg { margin: 10px 0 0; font-size: .92rem; min-height: 1.2em; }
.req-msg.ok { color: var(--ok); font-weight: 600; }
.req-msg.err { color: var(--bad); }
.req-top-h { margin: 12px 0 6px; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.req-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.req-chip { border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); border-radius: 999px; padding: 5px 12px; min-height: 36px; font-size: .88rem; }
.req-chip b { color: var(--accent); margin-left: 4px; }
.req-chip.mine { border-color: var(--ok); background: var(--ok-soft); }

/* ---------- report a wrong rule ---------- */
.rep { margin-top: 8px; }
.rep-form { border: 1px solid var(--line); border-radius: 10px; padding: 12px; background: var(--surface-2); }
.rep-h { margin: 0 0 8px; font-weight: 600; font-size: .92rem; }
.rep-kinds { display: grid; gap: 4px; margin-bottom: 10px; }
.rep-kind { display: flex; gap: 8px; align-items: center; font-size: .9rem; min-height: 32px; cursor: pointer; }
.rep-label { display: block; font-size: .84rem; color: var(--muted); margin-bottom: 8px; }
.rep-label textarea, .rep-label input { display: block; width: 100%; margin-top: 4px; padding: 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: .9rem; }
.rep-actions { display: flex; gap: 10px; align-items: center; }
.rep-msg { margin: 8px 0 0; font-size: .86rem; min-height: 1em; }
.rep-msg.err { color: var(--bad); }
.rep-done { margin: 8px 0 0; color: var(--ok); font-weight: 600; font-size: .9rem; }

.filter-wrap { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.filter-label { font-size: .88rem; color: var(--muted); }
@media (max-width: 560px) {
  /* Compact intro on phones so the first question is visible without scrolling */
  .hero { padding: 20px 0 16px; }
  .hero h1 { font-size: 1.35rem; }
  .lede { font-size: .92rem; margin-bottom: 10px; }
  .trust li { font-size: .74rem; padding: 2px 9px; }
  .trust li:nth-child(5) { display: none; }  /* "every rule links": repeated in the footer and on every school */
  .step { margin-top: 18px; }
}
.count .of { color: var(--muted); }
/* Long unbroken text (share links, URLs in notes and reports) must wrap, never widen the page */
.note, .rep-msg, .req-msg, .notes li, .confirm, .course-aka, .qcard-aka { overflow-wrap: anywhere; }
.show-all { margin: 4px 0 10px; }

/* ---------- schools one at a time + My list ---------- */
.view-toggle { margin-right: auto; }
.sdeck { max-width: 900px; margin: 0 auto; }
.sdeck .deck-top { display: flex; justify-content: space-between; font-size: .88rem; color: var(--muted); margin-bottom: 6px; }
.sdeck-card .row { animation: cardIn .22s ease; }
@media (prefers-reduced-motion: reduce) { .sdeck-card .row { animation: none; } }
.sdeck-actions { display: flex; gap: 10px; align-items: center; justify-content: flex-end; margin-top: 12px; flex-wrap: wrap; }
.sdeck-actions .link:first-child { margin-right: auto; }
.sdeck-actions .ans, .sdeck-actions .button { min-height: 52px; padding: 12px 22px; font-size: 1rem; }
.sdeck-save { min-width: 210px; }
.ans.saved { border-color: var(--ok); background: var(--ok-soft); color: var(--ok); }
@media (max-width: 560px) {
  .sdeck-actions { position: sticky; bottom: 0; background: var(--bg); padding: 10px 0; margin-top: 8px; }
  .sdeck-actions { flex-wrap: nowrap; gap: 8px; }
  .sdeck-actions .link:first-child { flex: 0 0 auto; margin-right: 0; }
  .sdeck-actions .ans, .sdeck-actions .button { flex: 1 1 0; min-width: 0; padding: 12px 8px; font-size: .95rem; }
  .sdeck-save { min-width: 0; }
}
.sdeck-end { text-align: center; }
.sdeck-end .sdeck-actions { justify-content: center; }
.mylist { margin-bottom: 14px; border-left: 4px solid var(--bad); }
.ml-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.ml-head h3 { margin: 0; }
.ml-rows { list-style: none; padding: 0; margin: 10px 0 0; }
.ml-row { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.ml-row:first-child { border-top: none; }
.ml-sub { font-size: .84rem; margin-top: 2px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.ml-sub .status { font-size: .74rem; padding: 1px 8px; }
.ml-act { display: flex; gap: 4px; flex: 0 0 auto; }

/* "Before you apply" (Details): label on the left, plain sentence on the right; stacks on phones. */
dl.apply { margin: 6px 0 14px; display: grid; gap: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
dl.apply > div { display: grid; grid-template-columns: 11rem 1fr; gap: 10px; padding: 9px 12px; border-top: 1px solid var(--line); background: var(--surface); }
dl.apply > div:first-child { border-top: 0; }
dl.apply > div:nth-child(even) { background: var(--surface-2); }
dl.apply dt { color: var(--muted); font-size: .86rem; font-weight: 600; }
dl.apply dd { margin: 0; font-size: .92rem; overflow-wrap: anywhere; }
dl.apply .src { font-size: .8rem; white-space: nowrap; }
@media (max-width: 560px) { dl.apply > div { grid-template-columns: 1fr; gap: 2px; } }

/* Your notes on a school (this device only) */
.mynote { margin: 8px 0 2px; }
.mynote .note-add { font-size: .9rem; }
.note-view { display: flex; gap: 8px; align-items: flex-start; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.note-view p { margin: 0; flex: 1; white-space: pre-wrap; overflow-wrap: anywhere; font-size: .92rem; }
.note-view .link { flex: none; }
.mynote textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: 16px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; resize: vertical; min-height: 80px; }
.note-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 6px; flex-wrap: wrap; }
.note-actions > span:last-child { display: flex; gap: 12px; align-items: center; margin-left: auto; }
.note-hint { color: var(--muted); font-size: .8rem; }
.ml-note { margin: 4px 0 0; font-size: .86rem; color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cmp-note { white-space: pre-wrap; font-size: .88rem; }
.button.small { padding: 6px 14px; min-height: 40px; font-size: .9rem; }

/* "Not for me": in a list row it's a quiet link; inside the deck card the action bar has its own button. */
.row-x { font-size: .88rem; }
.sdeck .row .row-x { display: none; }
.sdeck-actions .sdeck-no { color: var(--muted); }
/* My list: reorder buttons + hidden schools */
.ml-hint { margin: 0 0 4px; font-size: .84rem; color: var(--muted); }
.ml-move { display: inline-flex; gap: 2px; margin-right: 6px; }
.ml-move .mv { min-width: 40px; min-height: 40px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 8px; font-size: 1rem; cursor: pointer; }
.ml-move .mv:disabled { opacity: .35; cursor: default; }
.hidden-list { margin-top: 12px; }
.hidden-list > summary { cursor: pointer; font-weight: 600; min-height: 32px; }
/* Compare any number of schools: the table scrolls sideways and the row labels stay put. */
.cmp-table { width: auto; min-width: 100%; }
.cmp-table thead th:not(:first-child), .cmp-table td { min-width: 150px; max-width: 220px; }
.cmp-table tbody th, .cmp-table thead th:first-child { position: sticky; left: 0; z-index: 1; background: var(--surface); }
.cmp-table tr.diff th { background: var(--surface); }
@media (max-width: 560px) {
  .ml-row { flex-wrap: wrap; }
  .ml-main { flex: 1 1 100%; }
  .ml-act { flex: 1 1 100%; justify-content: flex-end; align-items: center; }
  .cmp-table tbody th, .cmp-table thead th:first-child { white-space: normal; min-width: 84px; max-width: 96px; font-size: .82rem; }
  .cmp-table thead th:not(:first-child), .cmp-table td { min-width: 140px; }
}

/* My list drag to reorder: handle on the left, the row lifts while dragging, others slide out of the way. */
.ml-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; position: relative; background: var(--surface); transition: transform .15s ease; }
.ml-row > .ml-main:first-child { grid-column: 1 / 3; }
.ml-row.dragging { transition: none; z-index: 5; box-shadow: 0 10px 28px rgba(0,0,0,.18); border-radius: 10px; }
.drag { touch-action: none; cursor: grab; border: 1px solid var(--line); background: var(--surface-2); color: var(--muted); border-radius: 8px; width: 36px; min-height: 44px; font-size: 1.2rem; line-height: 1; padding: 0; user-select: none; }
.drag:active, .is-dragging .drag { cursor: grabbing; }
.is-dragging, .is-dragging * { user-select: none; -webkit-user-select: none; }
.ml-cmp { display: inline-flex; align-items: center; gap: 4px; font-size: .88rem; color: var(--muted); margin-right: 6px; min-height: 40px; }
.ml-act { align-items: center; }
@media (max-width: 560px) {
  .ml-row { grid-template-columns: auto 1fr; }
  .ml-row .drag { grid-row: 1 / 3; align-self: start; }
  .ml-row .ml-act { grid-column: 2; flex-wrap: wrap; }
  .ml-row > .ml-main:first-child, .ml-row > .ml-main:first-child ~ .ml-act { grid-column: 1 / -1; }
}

/* "Was this useful?" */
.feedback h3 { margin: 0 0 10px; }
.fb-votes { display: flex; gap: 10px; flex-wrap: wrap; }
.fb-votes .ans { min-height: 48px; padding: 10px 18px; }
.fb-form label { display: block; margin-bottom: 6px; }
.fb-form textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: 16px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; resize: vertical; }
.fb-hint { color: var(--muted); font-size: .82rem; margin: 6px 0 0; }
.fb-actions { display: flex; justify-content: flex-end; gap: 14px; align-items: center; margin-top: 8px; }
.fb-done { margin: 0; }
.foot .privacy { color: var(--muted); font-size: .85rem; }
.req-left { margin: 8px 0 0; color: var(--muted); font-size: .88rem; }
.button:disabled, .req-pick select:disabled { opacity: .5; cursor: not-allowed; }

/* "Congrats, here are your best-matched schools" (right after the class cards) */
.picks { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--ok); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; margin-bottom: 14px; }
.picks h3 { margin: 0 0 2px; font-size: 1.15rem; }
.picks .sub { color: var(--muted); margin: 0 0 12px; font-size: .92rem; }
.picks ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pick { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.pick-open { all: unset; box-sizing: border-box; display: block; padding: 10px 12px; cursor: pointer; border-radius: 12px; min-height: 44px; }
.pick-open:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pick-open b { display: block; }
.pick-open .prog { display: block; color: var(--muted); font-size: .85rem; }
.pick-open .st { display: inline-block; margin-top: 4px; font-size: .85rem; font-weight: 600; }
.pick-open .st.ok { color: var(--ok); } .pick-open .st.check { color: var(--warn); } .pick-open .st.miss { color: var(--bad); } .pick-open .st.far { color: var(--far); }
.pick-save { margin-right: 10px; min-height: 40px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--accent); background: var(--surface); color: var(--accent); font: inherit; font-size: .88rem; cursor: pointer; white-space: nowrap; }
.pick-save[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.picks .all { margin-top: 12px; width: 100%; }

/* Distance (ZIP + max miles) and NCLEX filters, under the view/type/sort bar */
.near { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 0 12px; font-size: .9rem; color: var(--muted); }
.near label { display: flex; align-items: center; gap: 6px; }
.near input, .near select { padding: 6px 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); min-height: 38px; font: inherit; }
.near input { width: 7.5em; }
.near select:disabled { opacity: .55; }
.near .hint { flex-basis: 100%; margin: 0; }
.near .hint:empty { display: none; }

/* "Find a school" search above the school list */
.find { position: relative; margin: 6px 0 12px; }
.find label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 4px; }
.find input { width: 100%; box-sizing: border-box; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; min-height: 44px; }
.find-results { list-style: none; margin: 6px 0 0; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); box-shadow: var(--shadow); display: grid; gap: 2px; }
.find-hit { all: unset; box-sizing: border-box; display: block; width: 100%; padding: 8px 10px; border-radius: 8px; cursor: pointer; min-height: 44px; }
.find-hit:hover, .find-hit:focus-visible { background: var(--accent-soft); outline: none; }
.find-hit b { display: block; }
.find-hit span { color: var(--muted); font-size: .85rem; }
.find-none { padding: 8px 10px; color: var(--muted); font-size: .9rem; }
.find .hint:empty { display: none; }
.find .hint { margin: 6px 0 0; }

/* School card facts: 5 (Letters added). Phone: 2 columns, the 5th spans the row. */
.facts.five .fact:last-child { grid-column: 1 / -1; }
@media (min-width: 560px) { .facts.five { grid-template-columns: repeat(5, 1fr); } .facts.five .fact:last-child { grid-column: auto; } }

/* "One at a time | Full list": one segmented pill instead of two separate pills (owner, 10-27) */
.pills.view-toggle { display: inline-flex; flex-wrap: nowrap; gap: 0; border: 1px solid var(--accent); border-radius: 999px; overflow: hidden; background: var(--surface); }
.pills.view-toggle button { border: 0; border-radius: 0; background: transparent; color: var(--accent); font-weight: 600; padding: 5px 16px; }
.pills.view-toggle button + button { border-left: 1px solid var(--accent); }
.pills.view-toggle button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.pills.view-toggle button:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; }

/* Full list: 15 per page */
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin: 14px 0 6px; }
.pager button { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; min-height: 40px; min-width: 40px; padding: 4px 12px; font: inherit; cursor: pointer; }
.pager button[aria-current="page"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }
.pager button:disabled { opacity: .45; cursor: default; }
.pager .nums { display: inline-flex; gap: 4px; align-items: center; }
.pager .gap { color: var(--muted); padding: 0 2px; }
.pager-info { flex-basis: 100%; text-align: center; color: var(--muted); font-size: .85rem; margin: 2px 0 0; }
.pager .link { border: 0; background: none; min-height: 0; min-width: 0; padding: 0; color: var(--accent); text-decoration: underline; font-size: inherit; border-radius: 0; }
@media (max-width: 480px) { .pager .pl { display: none; } .pager { gap: 4px; } .pager button { padding: 4px 10px; } }

/* Program types as checkboxes (owner, 10-27) */
.type-checks { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.tcheck { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; font-size: .92rem; cursor: pointer; }
.tcheck input { width: 18px; height: 18px; accent-color: var(--accent); margin: 0; }

/* Area filter chip ("📍 New York City ✕") and area rows in "Find a school" */
.area-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--ink); font-size: .9rem; }
.area-chip .link { min-height: 32px; min-width: 32px; text-decoration: none; font-size: 1rem; }
.find-hit.area b { color: var(--accent); }

/* States bubble (10-28): a pill button with the selection + program count, opening a panel of checkboxes */
.pop { position: relative; }
.pop-btn { list-style: none; display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font-size: .92rem; cursor: pointer; user-select: none; }
.pop-btn::-webkit-details-marker { display: none; }
.pop-btn:hover { border-color: var(--accent); }
.pop[open] .pop-btn { border-color: var(--accent); background: var(--accent-soft); }
.pop[open] .caret { transform: rotate(180deg); }
.caret { font-size: .75em; color: var(--muted); transition: transform .15s; }
.cnt { color: var(--muted); font-weight: 400; }
.pop-body { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; min-width: 220px; padding: 8px 14px 10px; display: flex; flex-direction: column; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 24px rgba(16, 24, 40, .14); }
.pop-body .tcheck { min-height: 40px; }
.pop-foot { margin: 4px 0 0; font-size: .8rem; color: var(--muted); }
/* intake "How should we find programs?" card */
.where-zip { display: flex; flex-direction: column; gap: 6px; margin: 14px 0 4px; font-weight: 600; font-size: .95rem; }
.where-zip input { max-width: 10em; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: 1.05rem; }
.ans .cnt { margin-left: 6px; font-size: .88em; }
.stack-checks { flex-direction: column; gap: 2px; margin: 4px 0 8px; }
.stack-checks .tcheck { min-height: 44px; font-size: 1rem; }

/* "Edit answers" list (10-28): every class on one screen, one segmented control per class */
.elist { padding: 16px; }
.elist-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.elist-head h2 { margin: 0; font-size: 1.15rem; }
.elist-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.egroup { margin-top: 18px; }
.egroup h3 { margin: 0 0 8px; font-size: .95rem; }
.extra-group > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 6px; min-height: 44px; }
.extra-group > summary::-webkit-details-marker { display: none; }
.extra-group > summary::after { content: "▾"; color: var(--muted); font-size: .8em; }
.extra-group[open] > summary::after { content: "▴"; }
.extra-group > summary h3 { margin: 0; }
.erow { padding: 10px 0; border-top: 1px solid var(--line); border-radius: 8px; transition: background .4s; }
.erow.flash { background: var(--accent-soft); }
.erow-name { display: flex; flex-direction: column; gap: 2px; margin-bottom: 6px; }
.erow-name b { font-size: .95rem; }
.erow-aka { font-size: .8rem; color: var(--muted); }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); }
.seg.wrap { grid-auto-flow: row; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); margin-top: 8px; }
.seg button { border: 0; border-left: 1px solid var(--line); background: transparent; color: var(--ink); min-height: 44px; padding: 6px 4px; font-size: .86rem; font-weight: 500; cursor: pointer; }
.seg button:first-child { border-left: 0; }
.seg.wrap button { border-left: 0; border-top: 1px solid var(--line); }
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.seg button.yes[aria-pressed="true"] { background: var(--ok); color: #fff; }
.seg button.ip[aria-pressed="true"] { background: var(--warn-soft); color: var(--warn); }
.seg button.no[aria-pressed="true"] { background: var(--far-soft); color: var(--ink); }
.seg button.unsure[aria-pressed="true"] { background: var(--surface-2); color: var(--ink); box-shadow: inset 0 0 0 2px var(--muted); }
.stage-seg button { font-size: .82rem; line-height: 1.2; }
.erow .extra { margin-top: 6px; }
.elist .where-zip { margin-top: 10px; }
@media (max-width: 400px) { .seg button { font-size: .8rem; } .stage-seg { grid-auto-flow: row; } .stage-seg button { border-left: 0; border-top: 1px solid var(--line); } .stage-seg button:first-child { border-top: 0; } }

/* Retakes (10-28) */
.retake { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: .88rem; }
.retake select { padding: 6px 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); min-height: 36px; font: inherit; }
.sum-retake { margin: 10px 0 0; font-size: .86rem; color: var(--muted); }
.t-blocked { --t: var(--bad); --t-soft: var(--bad-soft); }

/* TrackRx wordmark (10-28) */
.hero .brand { margin: 0 0 10px; font-size: 1.05rem; font-weight: 800; letter-spacing: -.01em; color: #fff; }
.hero .brand span { display: inline-block; margin-left: 1px; padding: 0 5px; border-radius: 6px; background: rgba(255, 255, 255, .18); }

/* "Filters" button (10-28): type, public/private, distance and NCLEX in one panel */
.filters-panel > summary { list-style: none; }
.filters-panel > summary::-webkit-details-marker { display: none; }
.filters-panel[open] { flex-basis: 100%; }
.filters-panel[open] .caret { transform: rotate(180deg); }
.filters-panel[open] > summary { border-color: var(--accent); background: var(--accent-soft); }
.filters-body { margin-top: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); display: flex; flex-direction: column; gap: 12px; }
.filters-body .near { margin: 0; }
.fcount { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: .75rem; }
.near-status { margin: 0 0 8px; }
.near-status:has(#area-chip:empty):has(#near-msg:empty) { display: none; }

/* Accounts (10-28) */
.hero-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.hero-top .brand { margin: 0; }
.acct-btn { border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .12); color: #fff; border-radius: 999px; padding: 6px 14px; min-height: 36px; font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; max-width: 60vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-btn:hover { background: rgba(255, 255, 255, .22); }
.sum-acct { margin: 10px 0 0; font-size: .86rem; color: var(--muted); }
.sum-acct:empty { display: none; }
.acct-dlg { border: 0; padding: 0; border-radius: 16px; max-width: min(440px, calc(100vw - 32px)); width: 100%; background: var(--surface); color: var(--ink); box-shadow: 0 20px 60px rgba(0, 0, 0, .3); }
.acct-dlg::backdrop { background: rgba(10, 14, 22, .45); }
.acct-card { position: relative; padding: 24px 22px 20px; }
.acct-card h2 { margin: 0 0 8px; font-size: 1.2rem; }
.acct-card .muted { color: var(--muted); margin: 0 0 16px; }
.acct-card form { display: flex; flex-direction: column; gap: 8px; }
.acct-card label { font-weight: 600; font-size: .9rem; }
.acct-card input[type=email] { padding: 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: 1rem; }
.acct-card .button { margin-top: 6px; }
.acct-x { position: absolute; top: 10px; right: 10px; border: 0; background: none; color: var(--muted); font-size: 1.1rem; width: 40px; height: 40px; cursor: pointer; border-radius: 8px; }
.acct-x:hover { background: var(--surface-2); }
.acct-toggle { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0; font-weight: 500 !important; cursor: pointer; }
.acct-toggle input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--accent); }
.acct-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.button.ghost { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.acct-card .fine { font-size: .8rem; color: var(--muted); margin: 14px 0 0; }

/* ---------- App layout (10-28): sections + sidebar (wide) / bottom tabs (phones) once results exist ---------- */
body.shell[data-route="schools"] [data-sec]:not([data-sec="schools"]),
body.shell[data-route="find"] [data-sec]:not([data-sec="find"]),
body.shell[data-route="list"] [data-sec]:not([data-sec="list"]),
body.shell[data-route="classes"] [data-sec]:not([data-sec="classes"]),
body.shell[data-route="account"] [data-sec]:not([data-sec="account"]) { display: none !important; }
body:not(.shell) [data-sec="account"] { display: none; }
body.shell .hero { padding: 12px 0 10px; }
body.shell .hero .eyebrow, body.shell .hero h1, body.shell .hero .lede, body.shell .hero .trust, body.shell .acct-bar { display: none; }
body.shell .hero-top { margin: 0; }
body.shell .step-num { display: none; }
body.shell .step { padding-top: 18px; }
body.shell #step2 { padding-top: 6px; }
body.shell .notice { margin: 12px 0 0; }
.account-view { margin-top: 18px; padding: 0; }
.account-view .acct-card { padding: 22px 20px; }

.appnav { position: fixed; z-index: 40; background: var(--surface); border-color: var(--line); }
.appnav[hidden] { display: none; }
.appnav a { color: var(--muted); text-decoration: none; position: relative; -webkit-tap-highlight-color: transparent; }
.appnav a[aria-current="page"] { color: var(--accent); font-weight: 700; }
.appnav .nb { position: absolute; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: .7rem; line-height: 18px; text-align: center; }
.appnav-brand { font-weight: 800; color: var(--ink) !important; letter-spacing: -.01em; }
.appnav-brand span { margin-left: 1px; padding: 0 5px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); }

/* Phones and tablets: bottom tab bar */
@media (max-width: 899px) {
  .appnav { left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); box-shadow: 0 -2px 12px rgba(16, 24, 40, .06); }
  .appnav .appnav-brand, .appnav .appnav-fine { display: none; }
  .appnav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 52px; font-size: .7rem; border-radius: 10px; }
  .appnav a[aria-current="page"] { background: var(--accent-soft); }
  .appnav .ni { font-size: 1.15rem; line-height: 1; }
  .appnav .nb { top: 3px; left: calc(50% + 6px); }
  body.shell { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  body.shell .jump:not([data-mode="compare"]) { display: none !important; }
}
/* Wide screens: left sidebar */
@media (min-width: 900px) {
  .appnav { top: 0; bottom: 0; left: 0; width: 220px; display: flex; flex-direction: column; gap: 2px; padding: 18px 12px; border-right: 1px solid var(--line); }
  .appnav-brand { font-size: 1.15rem; padding: 4px 10px 16px; }
  .appnav a:not(.appnav-brand):not(.appnav-fine) { display: flex; align-items: center; gap: 10px; padding: 11px 12px; min-height: 44px; border-radius: 10px; font-size: .95rem; }
  .appnav a:not(.appnav-brand):not(.appnav-fine):hover { background: var(--surface-2); color: var(--ink); }
  .appnav a[aria-current="page"] { background: var(--accent-soft); }
  .appnav .ni { width: 22px; text-align: center; }
  .appnav .nb { position: static; margin-left: auto; }
  .appnav-fine { margin-top: auto; padding: 8px 12px; font-size: .82rem; }
  body.shell { padding-left: 220px; }
  body.shell .hero { display: none; }
  body.shell .jump:not([data-mode="compare"]) { display: none !important; }
}
/* App layout polish (10-28): no focus box on headings we focus for screen readers; footer only where it helps */
[data-sec] [tabindex="-1"]:focus { outline: none; }
/* Footer on every section (owner 10-29: My list felt unfinished without it). */
.appnav svg.ni { flex: none; }
.appnav a[aria-current="page"] svg.ni { stroke-width: 2.3; }
.mylist.empty { padding: 20px; }
.mylist.empty h3 { margin: 0 0 6px; }
.mylist.empty .button { display: inline-block; margin-top: 12px; text-decoration: none; }
.mylist.empty { border-left: 0; text-align: left; }
.find-suggest .chip-group { margin: 16px 0 6px; }
.find-suggest .chip .muted { font-weight: 400; margin-left: 4px; }
body:not(.shell) .find-suggest { display: none; }
@media (max-width: 899px) { body.shell .sdeck-actions { bottom: calc(60px + env(safe-area-inset-bottom)); z-index: 5; } }
@media (max-width: 899px) { body.shell .jump { bottom: calc(72px + env(safe-area-inset-bottom)); } }
@media (min-width: 900px) { body.shell .jump { left: calc(50% + 110px); } }
/* Owner 10-28: on wide screens the TrackRx logo is "Schools" (no separate item); phones keep the Schools tab. */
@media (min-width: 900px) {
  .appnav .nav-schools { display: none !important; }
  .appnav-brand { border-radius: 10px; }
  .appnav-brand:hover { background: var(--surface-2); }
}
.hero a.brand { display: inline-block; text-decoration: none; }
/* Sign-in confirmation (10-28) */
.toast { position: fixed; left: 50%; bottom: 20px; transform: translate(-50%, 20px); z-index: 60; max-width: min(520px, calc(100vw - 32px)); background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 12px; font-size: .92rem; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 899px) { body.shell .toast { bottom: calc(76px + env(safe-area-inset-bottom)); } }
@media (min-width: 900px) { body.shell .toast { left: calc(50% + 110px); } }
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } }
/* "Need to change your classes?" line on Schools (10-28) */
.redo { margin: 4px 0 14px; font-size: .9rem; color: var(--muted); }
.redo a { color: var(--accent); }
.redo .link { font-size: inherit; }
body:not(.shell) .redo { display: none; }
/* Owner 10-28: the TrackRx logo looks the same whether or not you're on Schools (no "current page" restyle). */
.appnav a.appnav-brand, .appnav a.appnav-brand[aria-current="page"] { color: var(--ink) !important; font-weight: 800; background: transparent; }
.appnav a.appnav-brand span { color: var(--accent); background: var(--accent-soft); }

/* Home page top, simplified (10-28): centered product-page style */
.hero-main { text-align: center; padding: 28px 0 18px; max-width: 760px; margin: 0 auto; }
.hero-main h1 { font-size: clamp(2.4rem, 7vw, 4.2rem); line-height: 1.05; letter-spacing: -.03em; font-weight: 800; margin: 0 auto 14px; max-width: none; }
.hero-sub { font-size: clamp(1.1rem, 2.6vw, 1.45rem); line-height: 1.35; margin: 0 auto 10px; max-width: 30ch; opacity: .96; }
.hero-sub b { font-weight: 800; }
.hero-fine { margin: 0 0 22px; font-size: .95rem; opacity: .85; }
.hero-fine span + span::before { content: "·"; margin: 0 8px; }
.hero-cta { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.hero-btn { min-height: 48px; padding: 0 24px; border-radius: 999px; font: inherit; font-size: 1.02rem; font-weight: 700; cursor: pointer; }
.hero-btn.primary { background: #fff; color: var(--hero-1); border: 1px solid #fff; }
.hero-btn.primary:hover { background: rgba(255, 255, 255, .9); }
.hero-btn.ghost { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .7); }
.hero-btn.ghost:hover { background: rgba(255, 255, 255, .12); }
.hero-btn[hidden] { display: none; }
.hero-cred { margin: 0; font-size: .82rem; opacity: .75; }
body.shell .hero-main { display: none; }
@media (max-width: 560px) { .hero-main { padding: 18px 0 8px; } .hero-cta { flex-direction: column; align-items: stretch; } }
/* During the class cards the card says it all: no "1 Your classes" header above it (10-28 simplification). */
body:not(.shell) #step1 .step-head { display: none; }
/* T-Rx mascot (10-28): only in friendly moments (finishing the cards, an empty list), never next to rules or warnings */
.mascot { display: block; height: auto; flex: none; }
.picks-head { display: flex; align-items: center; gap: 12px; }
.picks-head h3 { margin: 0; }
.mylist.empty { text-align: center; }
.mylist.empty .mascot { margin: 0 auto 6px; }
@media (max-width: 560px) { .picks-head .mascot { width: 64px; } }
.acct-mascot { margin: 0 0 8px; }
/* T-Rx next to every TrackRx logo (owner 10-28). On the blue header it sits in a white circle so it doesn't blend in. */
.logo-dino { display: inline-block; vertical-align: middle; height: auto; margin-right: 8px; }
.hero .brand { display: inline-flex; align-items: center; }
.hero .brand .logo-dino { width: 34px; height: 34px; padding: 3px 2px 1px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .15); object-fit: contain; }
.appnav-brand { display: inline-flex; align-items: center; }
.appnav-brand .logo-dino { width: 38px; margin-right: 6px; }
.foot .foot-dino { width: 28px; margin-right: 6px; vertical-align: -6px; }
.back .logo-dino { width: 30px; }

/* Application tracker in My list (10-28): fee total + per-school status, checklist, fee, notes. */
.app-sum { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0 6px; }
.app-sum > div { background: var(--accent-soft); border-radius: 12px; padding: 10px 14px; display: flex; flex-direction: column; gap: 2px; }
.app-sum > div .muted { font-size: .8rem; }
.app-sum b { font-size: 1.35rem; line-height: 1.2; }
.app-sum small { color: var(--muted); font-size: .8rem; }
.app-sum-note { grid-column: 1 / -1; margin: 0; font-size: .84rem; color: var(--muted); }
.ml-app { margin-top: 6px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.ml-app > summary { cursor: pointer; padding: 8px 10px; font-size: .86rem; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-height: 40px; list-style-position: inside; }
.ml-app-t { font-weight: 700; }
.ml-app .pill { font-size: .74rem; padding: 1px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.app-body { padding: 4px 12px 12px; border-top: 1px solid var(--line); }
.app-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 10px; font-size: .9rem; }
.app-row select, .app-fee input[type=number] { font: inherit; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); min-height: 40px; }
.app-fee input[type=number] { width: 6.5em; margin-left: 2px; }
.app-waiver { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; }
.app-fee-src { font-size: .82rem; flex-basis: 100%; }
.app-h { margin: 14px 0 4px; font-size: .86rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.app-check { list-style: none; padding: 0; margin: 0; }
.app-check li { display: flex; align-items: center; gap: 6px; font-size: .9rem; }
.app-check label { display: inline-flex; align-items: flex-start; gap: 8px; padding: 6px 0; flex: 1; min-height: 36px; }
.app-check input[type=checkbox] { margin-top: 3px; }
.app-check input:checked + span { text-decoration: line-through; color: var(--muted); }
.app-add { display: flex; gap: 6px; margin-top: 6px; }
.app-add input { flex: 1; min-width: 0; font: inherit; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); min-height: 40px; }
@media (max-width: 600px) { .app-sum b { font-size: 1.15rem; } }
.ml-row > .ml-app { grid-column: 1 / -1; margin-top: 0; }
.app-fee input[type=number]:disabled { opacity: .5; }
.assist-q { margin-bottom: 14px; }
.assist-q:empty { display: none; }
.ml-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 4px 0; }
.ml-tools .ml-hint { margin: 0; flex: 1 1 260px; }
.ml-sort { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; color: var(--muted); }
.ml-sort select { font: inherit; color: var(--ink); padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); min-height: 40px; }
.ml-tag { font-size: .76rem; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
/* 10-29 pathway card (preview) */
.ans.path { display: flex; flex-direction: column; gap: 4px; text-align: left; font-weight: 400; }
.ans.path .path-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ans.path .path-plain { font-size: .86rem; color: var(--muted); }
.ans.path[disabled] { opacity: .6; cursor: not-allowed; }
.tag.soon { color: var(--warn); background: var(--warn-soft); border-color: transparent; font-weight: 600; }
.qcard-title.path-q { margin-top: 18px; }
.link.path-more { display: block; margin: 14px 0 4px; text-align: left; }

/* "Enjoying TrackRx?" share ask (10-29): a slim strip under the deck's progress bar and at the top of My list */
.ask-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; background: var(--accent-soft); border-radius: 10px; padding: 6px 8px 6px 14px; margin: 10px 0; }
.ask-act, .ask-row { display: flex; align-items: center; gap: 8px; }
.ask-strip .ans.small, .ask-strip .button.small { min-height: 44px; padding: 6px 16px; }
.ask-strip .link[data-ask="x"] { min-width: 44px; min-height: 44px; text-decoration: none; color: var(--muted); }
.ask-form { flex-direction: column; align-items: stretch; padding: 10px 8px 10px 14px; }
.ask-form label { margin: 0; }
.ask-row input { flex: 1 1 auto; min-width: 0; font: inherit; font-size: 16px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; min-height: 44px; box-sizing: border-box; }
.ask-msg { flex-basis: 100%; font-size: .82rem; color: var(--muted); }
.ask-msg.err { color: var(--bad, #b42318); }

/* Deck how-to (10-29): until the first Save / Not for me */
.deck-hint { background: var(--accent-soft); border-radius: 10px; padding: 10px 14px; margin: 10px 0; font-size: .95rem; line-height: 1.4; }

/* "How the school cards work" card (10-29), between the classes and the results */
.howto .mascot { display: block; margin: 0 auto 6px; }
.howto-list { margin: 8px 0 12px; padding-left: 20px; line-height: 1.6; }

/* "Was this useful?" (10-29): subtitle + copy-link row after a Yes */
.fb-sub { display: block; font-size: .9rem; font-weight: 400; color: var(--muted); margin-top: 2px; }
.fb-share { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; background: var(--accent-soft); border-radius: 10px; padding: 8px 8px 8px 14px; margin-bottom: 12px; }

/* ---------- My list as expandable cards (owner 10-29, like the portfolio project cards) ---------- */
.mylist { border-left: none; }
.ml-summary { margin: 2px 0 10px; color: var(--muted); font-size: .92rem; }
.ml-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.ml-tools .ml-hint { margin: 0; }
.ml-pickbar { display: inline-flex; align-items: center; gap: 10px; }
.ml-cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; max-width: 760px; }
.ml-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: transform .15s ease, box-shadow .15s ease; scroll-margin-top: 72px; }
.ml-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--t, var(--line)); }
.ml-card.open { box-shadow: 0 8px 24px rgba(0,0,0,.10); }
.ml-card.open::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--accent); }
.ml-card.picked { outline: 2px solid var(--accent); outline-offset: -2px; }
.ml-card.dragging { transition: none; z-index: 5; box-shadow: 0 10px 28px rgba(0,0,0,.18); }
.ml-top { display: flex; align-items: center; gap: 8px; padding: 0 6px 0 12px; }
.ml-top .drag { flex: 0 0 auto; }
.ml-top .ml-cmp { margin: 0; min-width: 32px; justify-content: center; }
.ml-top .ml-cmp input { width: 20px; height: 20px; }
.ml-toggle { flex: 1 1 auto; min-width: 0; display: grid; grid-template-columns: 1fr auto; grid-template-areas: "name chev" "type chev" "meta chev"; column-gap: 10px; text-align: left; background: none; border: 0; padding: 14px 8px 14px 4px; color: var(--ink); font: inherit; cursor: pointer; }
.ml-name { grid-area: name; font-weight: 700; font-size: 1.02rem; }
.ml-type { grid-area: type; color: var(--muted); font-size: .86rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ml-meta { grid-area: meta; margin-top: 6px; font-size: .86rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.ml-meta .pill { font-size: .76rem; padding: 1px 9px; border-radius: 999px; background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); }
.ml-meta .pill.on { background: var(--accent-soft); color: var(--accent); border-color: transparent; font-weight: 600; }
.ml-chev { grid-area: chev; align-self: center; color: var(--muted); font-size: 1.05rem; width: 28px; text-align: center; }
.ml-body { padding: 4px 16px 16px 20px; border-top: 1px solid var(--line); }
.ml-sec { padding: 12px 0; border-bottom: 1px solid var(--line); }
.ml-label { margin: 0 0 8px; font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.ml-label + .ml-chips + .ml-label { margin-top: 12px; }
.ml-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ml-chip { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 8px 14px; min-height: 40px; font: inherit; font-size: .9rem; cursor: pointer; }
.ml-chip.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }
.ml-tasks { list-style: none; padding: 0; margin: 0 0 6px; display: grid; gap: 6px; }
.ml-tasks li { display: flex; align-items: center; gap: 6px; }
.ml-task { flex: 1 1 auto; display: flex; align-items: center; gap: 12px; padding: 10px 12px; min-height: 48px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); cursor: pointer; }
.ml-task input { width: 22px; height: 22px; flex: 0 0 auto; accent-color: var(--ok); }
.ml-task.done { background: var(--ok-soft); border-color: transparent; }
.ml-task.done span { color: var(--muted); text-decoration: line-through; }
.ml-x { min-width: 40px; min-height: 40px; font-size: 1.2rem; text-decoration: none; }
.ml-line { margin: 0 0 8px; }
.ml-line.ok { color: var(--ok); font-weight: 600; }
.ml-sec .app-fee { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin: 0 0 10px; }
.ml-sec .app-fee input[type=number] { width: 90px; min-height: 40px; font-size: 16px; }
.ml-miss summary { cursor: pointer; color: var(--bad); font-weight: 600; min-height: 36px; display: flex; align-items: center; }
.ml-miss p { margin: 4px 0 0; color: var(--muted); }
.ml-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding-top: 14px; }
.ml-foot .danger { margin-left: auto; }
@media (max-width: 560px) { .ml-body { padding: 4px 12px 14px 16px; } .ml-foot .danger { margin-left: 0; } }
.ml-toggle:focus { outline: none; }
.ml-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 8px; }
.ml-meta > span:last-child:empty { display: none; }
.ml-src { text-decoration: none; min-width: 32px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; }
.mylist { max-width: 760px; }

/* My list grid + smooth open/close (owner 10-29): 2-3 cards per row; the open card's details span the full width
   under its row (grid-auto-flow: dense lets the cards after it fill the rest of that row), like the portfolio. */
.mylist { max-width: 1100px; }
.ml-cards { max-width: none; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); grid-auto-flow: row dense; gap: 12px; }
.ml-card { display: flex; flex-direction: column; }
.ml-card .ml-top { flex: 1 1 auto; align-items: stretch; }
.ml-card .drag { align-self: center; }
.ml-card:hover { box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.ml-chev { transition: transform .25s ease; }
.ml-card.open .ml-chev { transform: rotate(180deg); }
.ml-card.open.anim .ml-chev { animation: mlChev .25s ease; }
@keyframes mlChev { from { transform: rotate(0deg); } to { transform: rotate(180deg); } }
.ml-panel { grid-column: 1 / -1; display: grid; grid-template-rows: 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 24px rgba(0,0,0,.10); position: relative; overflow: hidden; }
.ml-panel::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--accent); }
.ml-panel-in { min-height: 0; overflow: hidden; }
.ml-panel .ml-body { border-top: 0; padding-top: 10px; }
.ml-panel.anim-in { animation: mlOpen .3s cubic-bezier(.2,.8,.2,1); }
.ml-panel.anim-out { animation: mlClose .2s ease forwards; }
@keyframes mlOpen { from { grid-template-rows: 0fr; opacity: 0; } to { grid-template-rows: 1fr; opacity: 1; } }
@keyframes mlClose { from { grid-template-rows: 1fr; opacity: 1; } to { grid-template-rows: 0fr; opacity: 0; } }
.ml-card.drop-target { outline: 2px dashed var(--accent); outline-offset: 2px; }
.ml-card.dragging { opacity: .92; }
/* Two-column body inside the wide panel on laptops: tracker left, details right */
@media (min-width: 900px) {
  .ml-panel .ml-body { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; }
  .ml-panel .ml-sec:nth-child(1), .ml-panel .ml-sec:nth-child(2) { grid-column: 1; }
  .ml-panel .ml-sec:nth-child(3), .ml-panel .ml-sec:nth-child(4) { grid-column: 2; }
  .ml-panel .ml-sec:nth-child(1) { grid-row: 1; } .ml-panel .ml-sec:nth-child(2) { grid-row: 2 / span 2; }
  .ml-panel .ml-sec:nth-child(3) { grid-row: 1 / span 2; } .ml-panel .ml-sec:nth-child(4) { grid-row: 3; }
  .ml-panel .ml-foot { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) { .ml-panel.anim-in, .ml-panel.anim-out, .ml-card.open.anim .ml-chev { animation: none; } .ml-chev { transition: none; } }

/* Compare, Apple style (owner 10-29): columns with a swap menu each, sectioned values, slim sticky names bar */
.compare { max-width: 1100px; }
.cmp-tools { display: inline-flex; align-items: center; gap: 10px; }
.pill-btn { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 6px 12px; min-height: 36px; font: inherit; font-size: .85rem; cursor: pointer; }
.pill-btn[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); border-color: transparent; font-weight: 600; }
.cmp-heads, .cmp-vals, .cmp-stick { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 16px; }
.cmp-heads { margin: 16px 0 8px; }
.cmp-col { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 8px 4px 16px; }
.cmp-col .mono { width: 56px; height: 56px; font-size: 1.2rem; border-radius: 14px; }
.cmp-col .cmp-plus { background: var(--surface-2); color: var(--muted); border: 1px dashed var(--line); }
.cmp-name { margin: 4px 0 0; font-weight: 700; font-size: 1.05rem; line-height: 1.25; }
.cmp-type { margin: 0; color: var(--muted); font-size: .85rem; }
.cmp-pick { width: 100%; max-width: 240px; min-height: 40px; font: inherit; font-size: 16px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 6px 8px; margin: 4px 0; }
.cmp-stick { position: sticky; top: 0; z-index: 4; background: var(--surface); border-bottom: 1px solid var(--line); padding: 10px 0; margin: 0 -16px; padding-left: 16px; padding-right: 16px; font-weight: 700; font-size: .92rem; text-align: center; visibility: hidden; height: 0; padding-top: 0; padding-bottom: 0; overflow: hidden; }
.cmp-stick.on { visibility: visible; height: auto; padding-top: 10px; padding-bottom: 10px; box-shadow: 0 4px 12px rgba(0,0,0,.06); }
.cmp-sec { border-top: 1px solid var(--line); padding: 18px 0 6px; }
.cmp-sec h3 { margin: 0 0 6px; font-size: 1.15rem; }
.cmp-row { padding: 10px 0; border-radius: 10px; }
.cmp-rl { margin: 0 0 6px; font-size: .78rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); }
.cmp-v { text-align: center; font-size: 1rem; line-height: 1.35; overflow-wrap: anywhere; }
.cmp-row.diff { background: var(--accent-soft); padding-left: 10px; padding-right: 10px; margin: 2px -10px; }
.cmp-status { font-weight: 700; color: var(--t, var(--ink)); }
@media (max-width: 560px) { .cmp-heads, .cmp-vals, .cmp-stick { gap: 10px; } .cmp-v { font-size: .92rem; } .cmp-col .mono { width: 46px; height: 46px; } .cmp-name { font-size: .95rem; } }
/* open panel: two stacked columns on laptops (no shared row heights, so no gaps) */
@media (min-width: 900px) {
  .ml-panel .ml-body { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; align-items: start; }
  .ml-panel .ml-sec { grid-column: auto !important; grid-row: auto !important; }
  .ml-panel .ml-colB .ml-sec:last-child, .ml-panel .ml-colA .ml-sec:last-child { border-bottom: 0; }
}
/* compare: the menu is the school name (like Apple) */
.cmp-col .cmp-pick { font-weight: 700; text-align: center; text-align-last: center; border-color: transparent; background-color: var(--surface-2); }
/* compare spacing (owner 10-29): more room under each row label, columns closer together */
.compare { max-width: 900px; }
.cmp-row { padding: 14px 0 12px; }
.cmp-rl { margin-bottom: 10px; }
.cmp-heads, .cmp-vals, .cmp-stick { gap: 8px; }
@media (max-width: 560px) { .cmp-heads, .cmp-vals, .cmp-stick { gap: 6px; } }
.cmp-v { padding: 0 12px; }
@media (max-width: 560px) { .cmp-v { padding: 0 6px; } }
/* sticky names bar: zero net height in the page (overlays instead of pushing content when it turns on), fades in */
.cmp-stick, .cmp-stick.on { height: 44px; margin-top: -44px; padding-top: 0; padding-bottom: 0; align-items: center; visibility: visible; opacity: 0; pointer-events: none; transition: opacity .15s ease; box-shadow: none; }
.cmp-stick.on { opacity: 1; box-shadow: 0 4px 12px rgba(0,0,0,.06); }
.cmp-stick span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (prefers-reduced-motion: reduce) { .cmp-stick { transition: none; } }
/* compare (owner 10-29): label sat almost on top of the first value */
.cmp-rl { margin-bottom: 16px; }
.cmp-row { padding: 16px 0 14px; }
.cmp-row:not(:has(.cmp-rl)) { padding: 10px 0; }

/* My classes as class cards (owner 10-30): ~3 per row on laptops, same answers as the intake cards */
.elist { max-width: 1100px; }
.egrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; align-items: start; }
.egrid .erow { position: relative; display: flex; flex-direction: column; padding: 14px 14px 14px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.egrid .erow::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--line); }
.egrid .erow.took::before { background: var(--ok); }
.egrid .erow.ip::before { background: var(--accent); }
.egrid .erow-name { margin-bottom: 10px; }
.egrid .erow-name b { font-size: 1rem; line-height: 1.3; }
.egrid .erow-ans { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; border: 0; border-radius: 0; overflow: visible; }
.egrid .erow-ans button { border: 1px solid var(--line); border-radius: 10px; min-height: 44px; }
.egrid .erow-ans button + button { border-left: 1px solid var(--line); }
.egrid .erow .lab-row, .egrid .erow details { margin-top: 10px; }
.egroup h3 { font-size: 1.05rem; margin-bottom: 10px; }
.elist .chip-group { margin: 14px 0 8px; }
.egrid .seg.erow-ans { display: grid !important; grid-template-columns: 1fr 1fr; width: 100%; }
.egrid .seg.erow-ans button { white-space: nowrap; flex: none; }
.egrid .seg.erow-ans { grid-auto-flow: row; gap: 6px; border: 0; overflow: visible; background: none; }
.egrid .seg.erow-ans button:first-child { border-left: 1px solid var(--line); }

/* lab question under each taken class on the A&P / biology cards (10-30) */
.multi-lab { margin-top: 10px; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); }
.multi-lab b { display: block; font-size: .88rem; margin-bottom: 4px; }
.multi-lab .lab-row { margin-top: 0; }
