/* ==========================================================================
   Chiron "lab" layer. Loaded last. Sharper type, squarer corners, mono labels,
   plus the quiz lab, the mastery map and the notes layout.
   ========================================================================== */
:root[data-ui="motion"] { --radius: 10px; --radius-sm: 7px; }
body { font-feature-settings: 'ss01', 'cv11'; }
h1, h2, h3, .page-head h1 { font-family: var(--serif); letter-spacing: -.03em; }
:root[data-ui="motion"] .section h2, :root[data-ui="motion"] .page-head h1 { font-weight: 700; letter-spacing: -.035em; }
:root[data-ui="motion"] .page-head h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.05; }
:root[data-ui="motion"] .btn { border-radius: 7px; font-weight: 600; letter-spacing: -.005em; }
:root[data-ui="motion"] .brand { font-weight: 800; letter-spacing: -.05em; }
.chip { border-radius: 5px; font-family: var(--label); font-size: .68rem; font-weight: 500; letter-spacing: .02em; }
.seg { border-radius: 8px; } .seg a, .seg-opt { border-radius: 5px; }
.nav-item { border-radius: 6px; } .nav-item.active { box-shadow: inset 2px 0 0 var(--primary); }
.muted.xs, .toc-title { font-family: var(--label); font-size: .68rem; }
.card h3 { font-size: 1.02rem; letter-spacing: -.02em; }
.l2 h1, .l2 h2, .l2 h3 { font-weight: 700; letter-spacing: -.045em; } .l2 em.l2-s { font-style: normal; }
.l2 .l2-glyph { font-family: var(--maths); } .l2 .l2-eyebrow { font-family: var(--label); font-weight: 500; font-size: 12px; }
:root[data-ui="motion"] .l2 .l2-pill { border-radius: 8px; }

/* public top bar: the links sit in their own numbered track */
:root[data-ui="motion"] .pub-nav { border-radius: 14px; padding: 7px 8px 7px 20px; }
:root[data-ui="motion"] .pub-links { flex: 0 1 auto; margin: 0 auto; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 9px; background: color-mix(in srgb, var(--surface-2) 70%, transparent); counter-reset: nav; }
:root[data-ui="motion"] .pub-links a { counter-increment: nav; display: inline-flex; align-items: baseline; gap: 7px; padding: 7px 13px; border-radius: 6px; font-family: var(--label); font-size: .72rem; font-weight: 500; color: var(--ink-2); }
:root[data-ui="motion"] .pub-links a::before { content: counter(nav, decimal-leading-zero); font-size: .62rem; color: var(--primary); opacity: .85; }
:root[data-ui="motion"] .pub-links a:hover { background: var(--surface); color: var(--ink); box-shadow: 0 1px 0 var(--line-2); }
:root[data-ui="motion"] .pub-cta .btn { border-radius: 8px; }

/* dark panels: squarer */
.tonight, .sess-end, .sky, .ps-hero { border-radius: 12px; } .sess-card, .ps-card, .fresh-bar { border-radius: 10px; }
.ps-tabs a { border-radius: 7px; } .ps-tabs a.on { background: var(--ink); color: var(--bg); border-color: var(--ink); } .ps-tabs a:hover { border-color: var(--primary); }
.ps-card { background: var(--surface); color: var(--ink); border-color: var(--line); } .ps-card b { color: var(--ink); font-weight: 700; } .ps-card:hover { border-color: var(--primary); }
.ps-ref, .ps-meta, .tonight-k, .sky-k { font-family: var(--label); font-weight: 500; } .ps-go { color: var(--primary); } .ps-card.locked { opacity: 1; } .ps-card.locked b { color: var(--ink-2); }
.ps-card::after { border-radius: 0; width: 46px; height: 46px; right: 0; top: 0; clip-path: polygon(100% 0, 0 0, 100% 100%); transform: none; }
.ps-card:hover::after { transform: none; }
.sess-why { border-radius: 4px; font-family: var(--label); font-weight: 500; }
:root[data-theme="dark"] .sess-why { background: var(--primary-soft); color: var(--primary); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sess-why { background: var(--primary-soft); color: var(--primary); } }
.sess-why.bad { background: var(--bad-soft) !important; color: var(--bad) !important; } .sess-why.warn { background: var(--warn-soft) !important; color: var(--warn) !important; }

/* ---------- mastery map ---------- */
.sky { background: #07130f; border: 1px solid #1b2e26; background-image: linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px); background-size: 28px 28px; }
.sky-head h2 { font-weight: 700; font-size: 1.9rem; letter-spacing: -.04em; } .sky-grade b { font-family: var(--label); font-weight: 600; }
.mg { display: grid; grid-template-columns: repeat(auto-fill, minmax(164px, 1fr)); gap: 8px; margin: 20px 0 16px; }
.mg-cell { position: relative; display: flex; flex-direction: column; min-height: 138px; padding: 11px 12px 10px; border: 1px solid rgba(255, 255, 255, .13); border-radius: 6px; background: #0b1b15; color: #eaf5ef; text-decoration: none; overflow: hidden;
  transition: transform .25s cubic-bezier(.2, .8, .2, 1), border-color .25s, box-shadow .25s; animation: mgIn .45s calc(var(--i) * 30ms) cubic-bezier(.2, .8, .2, 1) both; }
@keyframes mgIn { from { opacity: 0; transform: translateY(10px); } }
.mg-cell::before { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--s) * 100%); background: linear-gradient(to top, rgba(99, 214, 166, .38), rgba(99, 214, 166, .12)); border-top: 1px solid rgba(99, 214, 166, .8); transition: height .9s cubic-bezier(.2, .8, .2, 1); }
.mg-cell > * { position: relative; }
.mg-cell:hover, .mg-cell:focus-visible { transform: translateY(-3px); border-color: #63d6a6; box-shadow: 0 14px 26px -18px #63d6a6; }
.mg-top { display: flex; justify-content: space-between; align-items: center; gap: 6px; font-family: var(--label); font-size: .66rem; color: #8fb8a6; }
.mg-ref { padding: 1px 5px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 3px; }
.mg-due { color: #0b241c; background: #ffd84a; padding: 1px 6px; border-radius: 3px; font-weight: 600; animation: mgBlink 1.8s ease-in-out infinite; } @keyframes mgBlink { 50% { opacity: .55; } }
.mg-pct { font-family: var(--label); font-size: 2rem; font-weight: 600; line-height: 1; margin: 12px 0 6px; letter-spacing: -.04em; color: #fff; } .mg-pct small { font-size: .8rem; color: #8fb8a6; margin-left: 2px; }
.mg-name { font-family: var(--serif); font-size: .92rem; font-weight: 600; line-height: 1.18; letter-spacing: -.015em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mg-foot { margin-top: auto; padding-top: 8px; display: flex; flex-wrap: wrap; gap: 3px 9px; font-family: var(--label); font-size: .64rem; color: #9dbcae; }
.mg-read { color: #63d6a6; } .mg-miss { color: #ff9d8a; }
.mg-cell.secure { border-color: #ffd84a; } .mg-cell.secure::before { background: linear-gradient(to top, rgba(255, 216, 74, .34), rgba(255, 216, 74, .08)); border-top-color: #ffd84a; } .mg-cell.secure .mg-pct { color: #ffd84a; }
.mg-cell.unseen { border-style: dashed; } .mg-cell.unseen .mg-pct, .mg-cell.empty .mg-pct, .mg-cell.locked .mg-pct { color: #567267; }
.mg-cell.empty, .mg-cell.locked { opacity: .6; }
.sky-legend { font-family: var(--label); font-size: .66rem; } .sky-legend i { border-radius: 2px; }
.sky-legend .learning { background: rgba(99, 214, 166, .35); } .sky-legend .growing { background: #63d6a6; }
@media (max-width: 560px) { .mg { grid-template-columns: repeat(2, 1fr); } }

/* ---------- notes ---------- */
.notes-card { padding: 0 0 34px; overflow: hidden; } .notes-card > * { margin-left: clamp(18px, 4vw, 48px); margin-right: clamp(18px, 4vw, 48px); } .notes-card > .row:first-child { margin-top: 18px; }
.notes-prog { position: sticky; top: 60px; z-index: 3; height: 3px; margin: 0 !important; background: var(--line); } .notes-prog i { display: block; height: 100%; background: var(--primary); transition: width .5s; }
.notes { font-size: 1.04rem; line-height: 1.78; counter-reset: sec; padding-top: 30px; color: var(--ink-2); }
.notes b { color: var(--ink); font-weight: 650; }
.notes > p, .notes > ul, .notes > ol { max-width: 70ch; } .notes p { margin: 14px 0; } .notes li { margin: 8px 0; padding-left: 4px; } .notes ul, .notes ol { padding-left: 22px; margin: 14px 0; } .notes li::marker { color: var(--primary); font-family: var(--label); font-size: .85em; }
.notes h3 { font-family: var(--serif); font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 700; letter-spacing: -.04em; line-height: 1.05; color: var(--ink); margin: 0 0 14px; padding: 0; border: 0; }
.notes h4 { counter-increment: sec; display: flex; align-items: baseline; gap: 14px; font-family: var(--serif); font-size: 1.4rem; font-weight: 700; letter-spacing: -.03em; color: var(--ink); margin: 54px 0 14px; padding: 18px 0 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: none; scroll-margin-top: 80px; }
.notes h4::before { content: counter(sec, decimal-leading-zero); font-family: var(--label); font-size: .72rem; font-weight: 500; color: var(--primary); flex: none; transform: translateY(-3px); }
.notes h5 { font-family: var(--label); font-size: .74rem; font-weight: 500; color: var(--primary); margin: 30px 0 6px; }
.notes code { font-family: var(--label); border-radius: 4px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); }
.notes .keypoint { margin: 22px 0; padding: 16px 18px; border: 1px solid var(--line); border-left: 3px solid var(--primary); border-radius: 6px; background: var(--surface-2); max-width: 74ch; color: var(--ink); line-height: 1.65; }
.notes .keypoint .ic { color: var(--primary); } .notes .keypoint.tip { border-left-color: #ffd84a; background: color-mix(in srgb, #ffd84a 9%, var(--surface)); } .notes .keypoint.tip .ic { color: #d9a900; }
.notes .keypoint.tip b:first-child { font-family: var(--label); font-size: .7rem; font-weight: 600; display: block; margin-bottom: 2px; }
.notes > .keypoint:first-of-type { font-size: 1.1rem; border: 0; border-left: 3px solid var(--primary); background: none; padding: 2px 0 2px 18px; margin: 0 0 8px; color: var(--ink-2); } .notes > .keypoint:first-of-type .ic { display: none; }
.notes-math { margin: 20px 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-2); max-width: 74ch; color: var(--ink); }
.notes-facts { display: grid; margin: 18px 0 26px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; max-width: 86ch; }
.notes-facts > div { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 18px; padding: 13px 18px; border-top: 1px solid var(--line); } .notes-facts > div:first-child { border-top: 0; } .notes-facts > div:nth-child(odd) { background: color-mix(in srgb, var(--surface-2) 55%, transparent); }
.notes-facts dt { font-family: var(--label); font-size: .7rem; font-weight: 500; color: var(--primary); padding-top: 5px; } .notes-facts dd { margin: 0; line-height: 1.6; color: var(--ink); font-size: .98rem; }
.notes-table { font-size: .93rem; margin: 20px 0; } .notes-table th { font-family: var(--label); font-size: .7rem; font-weight: 500; } .notes-table td, .notes-table th { padding: 11px 14px; }
.notes-end { margin-top: 44px; padding: 16px 18px; border: 1px dashed var(--line-2); border-radius: 8px; font-size: .92rem; color: var(--ink-2); } .notes-end b { color: var(--primary); font-family: var(--label); font-weight: 600; }
.notes-toc { position: sticky; top: 76px; padding: 16px; } .toc-link { border-radius: 5px; font-size: .86rem; line-height: 1.35; }
@media (max-width: 640px) { .notes-facts > div { grid-template-columns: 1fr; gap: 2px; } .notes h4 { margin-top: 40px; } }

/* ---------- quiz lab ---------- */
.qz-wrap { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.qz-k { font-family: var(--label); font-size: .7rem; color: var(--primary); } .qz-k span { color: var(--muted); margin: 0 4px; }
.qz-setup { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: clamp(20px, 4vw, 38px); display: flex; flex-direction: column; gap: 22px; }
.qz-setup h1 { font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 800; letter-spacing: -.05em; line-height: 1; margin: -12px 0 0; }
.qz-facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: -8px; } .qz-facts span { font-family: var(--label); font-size: .72rem; color: var(--muted); padding: 5px 10px; border: 1px solid var(--line); border-radius: 5px; } .qz-facts b { color: var(--ink); margin-right: 4px; } .qz-facts .hot { border-color: var(--bad); } .qz-facts .hot b { color: var(--bad); }
.qz-group { display: flex; flex-direction: column; gap: 8px; min-width: 0; } .qz-group > label { font-family: var(--label); font-size: .68rem; color: var(--muted); margin: 0; } .qz-group select { max-width: 420px; }
.qz-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; } @media (max-width: 700px) { .qz-row { grid-template-columns: 1fr; } }
.qz-modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; } @media (max-width: 700px) { .qz-modes { grid-template-columns: 1fr; } }
.qz-mode { position: relative; text-align: left; font: inherit; color: var(--ink); cursor: pointer; display: flex; flex-direction: column; gap: 5px; padding: 14px 14px 16px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface); text-decoration: none; transition: border-color .2s, transform .25s cubic-bezier(.2, .8, .2, 1), background .2s; }
.qz-mode:hover { transform: translateY(-2px); border-color: var(--primary); } .qz-mode b { font-family: var(--serif); font-size: 1.2rem; font-weight: 700; letter-spacing: -.03em; } .qz-mode small { font-size: .8rem; line-height: 1.45; color: var(--muted); }
.qz-idx { font-family: var(--label); font-size: .66rem; color: var(--muted); } .qz-mode.on { border-color: var(--primary); background: var(--primary-soft); box-shadow: inset 0 0 0 1px var(--primary); } .qz-mode.on .qz-idx { color: var(--primary); }
.qz-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.qz-opt { font: 500 .8rem var(--label); color: var(--ink-2); cursor: pointer; padding: 8px 13px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--surface); transition: border-color .15s, background .15s; } .qz-opt i { font-style: normal; color: var(--muted); margin-left: 4px; font-size: .9em; }
.qz-opt:hover:not(:disabled) { border-color: var(--primary); } .qz-opt.on { background: var(--ink); color: var(--bg); border-color: var(--ink); } .qz-opt.on i { color: inherit; opacity: .6; } .qz-opt:disabled { opacity: .4; cursor: default; }
.qz-go { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 20px; border-top: 1px solid var(--line); }
.qz-top { display: flex; align-items: center; gap: 12px; } .qz-top .back { margin: 0; }
.qz-clock { display: inline-flex; align-items: center; gap: 7px; font-family: var(--label); font-size: .86rem; padding: 6px 11px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--surface); font-variant-numeric: tabular-nums; } .qz-clock .ic { width: 14px; height: 14px; color: var(--primary); }
.qz-tag { font-family: var(--label); font-size: .68rem; padding: 4px 8px; border-radius: 4px; background: var(--surface-2); color: var(--ink-2); } .qz-tag.warn { background: var(--warn-soft); color: var(--warn); }
.qz-level { display: inline-flex; align-items: flex-end; gap: 3px; font-family: var(--label); font-size: .68rem; color: var(--muted); } .qz-level i { width: 5px; background: var(--line-2); border-radius: 1px; transition: background .3s; } .qz-level i:nth-child(1) { height: 7px; } .qz-level i:nth-child(2) { height: 11px; } .qz-level i:nth-child(3) { height: 15px; } .qz-level i.on { background: var(--primary); } .qz-level span { margin-left: 5px; }
.qz-card { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: clamp(18px, 3.5vw, 32px); animation: sessIn .4s cubic-bezier(.2, .8, .2, 1); } .qz-card.right { border-color: var(--ok); } .qz-card.wrong { border-color: var(--bad); animation: sessShake .4s; }
.qz-meta { display: flex; align-items: center; gap: 10px; font-size: .8rem; color: var(--muted); margin-bottom: 16px; flex-wrap: wrap; }
.qz-num { font-family: var(--label); font-size: .72rem; font-weight: 600; padding: 2px 7px; border-radius: 4px; background: var(--ink); color: var(--bg); flex: none; }
.qz-card .quiz-q { font-family: var(--font); font-size: 1.28rem; font-weight: 600; letter-spacing: -.015em; line-height: 1.4; margin-bottom: 22px; }
.option { border-radius: 8px; border-width: 1px; } .opt-l { border-radius: 4px; font-family: var(--label); } .option.picked { border-color: var(--primary); background: var(--primary-soft); box-shadow: inset 0 0 0 1px var(--primary); } .option.picked .opt-l { background: var(--primary); color: var(--primary-ink); }
.qz-nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 20px; } .btn.ghost.bad { color: var(--bad); border-color: var(--bad); }
.qz-write { width: 100%; font: 500 1rem/1.5 var(--font); padding: 13px 14px; border-radius: 8px; resize: vertical; }
.qz-line { display: grid; grid-template-columns: 86px minmax(0, 1fr); gap: 14px; padding: 12px 14px; margin-top: 8px; border-radius: 7px; border: 1px solid var(--line); border-left-width: 3px; font-size: .95rem; line-height: 1.55; }
.qz-line > span { font-family: var(--label); font-size: .66rem; padding-top: 4px; color: var(--muted); }
.qz-line.ok { border-left-color: var(--ok); background: var(--ok-soft); } .qz-line.ok > span { color: var(--ok); } .qz-line.bad { border-left-color: var(--bad); background: var(--bad-soft); } .qz-line.bad > span { color: var(--bad); } .qz-line.why { border-left-color: var(--primary); } .qz-line.why > span { color: var(--primary); }
.qz-palette { display: flex; flex-wrap: wrap; gap: 5px; } .qz-palette button { width: 34px; height: 30px; font: 500 .74rem var(--label); border: 1px solid var(--line-2); border-radius: 5px; background: var(--surface); color: var(--muted); cursor: pointer; } .qz-palette .done { background: var(--primary-soft); color: var(--primary); border-color: var(--primary); } .qz-palette .now { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.qz-result { position: relative; border-radius: 12px; padding: clamp(22px, 4vw, 38px); color: #eaf5ef; background: #07130f; border: 1px solid #1b2e26; display: flex; flex-direction: column; gap: 18px; overflow: hidden; background-image: linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px); background-size: 28px 28px; }
.qz-result .qz-k { color: #63d6a6; } .qz-result a:not(.btn) { color: #ffd84a; } .qz-result p { margin: 0; color: #b9d3c7; }
.qz-score { display: flex; align-items: flex-end; gap: 22px; flex-wrap: wrap; } .qz-big { font-family: var(--label); font-size: clamp(4rem, 12vw, 6.6rem); font-weight: 600; line-height: .85; letter-spacing: -.07em; color: #fff; } .qz-big small { font-size: .3em; color: #8fb8a6; margin-left: 6px; letter-spacing: 0; }
.qz-verdict { font-family: var(--serif); font-size: 1.7rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; } .qz-result.pass .qz-verdict { color: #ffd84a; } .qz-result.fail .qz-verdict { color: #ff9d8a; } .qz-sub { font-family: var(--label); font-size: .74rem; color: #9dbcae; margin-top: 7px; }
.qz-passbar { position: relative; height: 8px; border-radius: 2px; background: rgba(255, 255, 255, .1); } .qz-passbar i { display: block; height: 100%; border-radius: 2px; background: #63d6a6; animation: qzGrow 1s cubic-bezier(.2, .8, .2, 1) both; } .qz-result.fail .qz-passbar i { background: #ff9d8a; } @keyframes qzGrow { from { width: 0; } }
.qz-passbar u { position: absolute; top: -5px; bottom: -5px; width: 2px; background: #ffd84a; }
.qz-stats { display: flex; flex-wrap: wrap; gap: 12px 34px; } .qz-stats b { display: block; font-family: var(--label); font-size: 1.35rem; font-weight: 600; color: #fff; line-height: 1.1; } .qz-stats span { font-family: var(--label); font-size: .66rem; color: #8fb8a6; }
.qz-result .btn.primary { background: #ffd84a; color: #0b241c; border-color: #ffd84a; } .qz-result .btn.ghost { background: transparent; color: #eaf5ef; border-color: rgba(255, 255, 255, .28); }
.qz-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; } @media (max-width: 700px) { .qz-cols { grid-template-columns: 1fr; } }
.qz-brow { display: grid; grid-template-columns: minmax(90px, 1.1fr) 1fr auto; align-items: center; gap: 12px; padding: 7px 0; font-size: .86rem; } .qz-brow b { font-family: var(--label); font-size: .8rem; }
.qz-h { font-size: 1.3rem; font-weight: 700; margin: 14px 0 0; } .qz-h span, .qz-right summary span { font-family: var(--label); font-size: .72rem; padding: 2px 7px; border-radius: 4px; background: var(--bad-soft); color: var(--bad); vertical-align: middle; margin-left: 6px; }
.qz-rev { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); padding: 18px 20px; } .qz-rev header { display: flex; align-items: center; gap: 10px; font-size: .8rem; color: var(--muted); } .qz-rev h4 { font-family: var(--font); font-size: 1.08rem; font-weight: 600; line-height: 1.45; letter-spacing: -.01em; margin: 12px 0 6px; }
.qz-rev footer { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; font-size: .82rem; } .qz-rev footer a { color: var(--primary); font-weight: 600; }
.qz-right { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); padding: 14px 20px; } .qz-right summary { cursor: pointer; font-weight: 600; } .qz-right summary span { background: var(--ok-soft); color: var(--ok); }
.qz-rrow { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 12px 0; border-top: 1px solid var(--line); margin-top: 12px; font-size: .92rem; } .qz-rrow b { font-weight: 550; }
@media (max-width: 560px) { .qz-line { grid-template-columns: 1fr; gap: 2px; } }
@media (prefers-reduced-motion: reduce) { .mg-cell, .qz-card, .qz-passbar i, .mg-due { animation: none; } }

/* ---------- the constellation ---------- */
.sky { background: radial-gradient(120% 90% at 78% -10%, #123a2d 0%, #081a14 46%, #050d0a 100%); background-size: auto; }
.cs { position: relative; margin: 14px 0 10px; }
.cs svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.cs line { stroke: rgba(255, 255, 255, .16); stroke-width: 1; stroke-dasharray: 2 6; vector-effect: non-scaling-stroke; }
.cs line.on { stroke: rgba(99, 214, 166, .55); stroke-dasharray: none; } .cs line.lit { stroke: #ffd84a; stroke-width: 1.5; stroke-dasharray: none; filter: drop-shadow(0 0 4px rgba(255, 216, 74, .7)); }
.cs-dust i { position: absolute; width: var(--z); height: var(--z); border-radius: 50%; background: #fff; opacity: .4; animation: skyTwinkle 5s ease-in-out infinite; }
.cs-star { position: absolute; width: 150px; margin-left: -75px; margin-top: -17px; display: flex; flex-direction: column; align-items: center; gap: 1px; text-align: center; text-decoration: none; color: #eaf5ef; animation: mgIn .5s calc(var(--i) * 45ms) cubic-bezier(.2, .8, .2, 1) both; }
.cs-dot { width: 34px; height: 34px; display: grid; place-items: center; position: relative; margin-bottom: 5px; }
.cs-dot i { --d: calc(9px + var(--s) * 17px); width: var(--d); height: var(--d); border-radius: 50%; background: color-mix(in srgb, #ffd84a calc(var(--s) * 100%), #63d6a6); box-shadow: 0 0 calc(4px + var(--s) * 22px) calc(var(--s) * 5px) color-mix(in srgb, #ffd84a calc(var(--s) * 100%), #63d6a6); transition: transform .3s cubic-bezier(.2, 1.4, .4, 1); }
.cs-star:hover .cs-dot i, .cs-star:focus-visible .cs-dot i { transform: scale(1.35); }
.cs-star.secure .cs-dot i { background: #ffd84a; clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); --d: 34px; box-shadow: none; filter: drop-shadow(0 0 7px #ffd84a); border-radius: 0; }
.cs-star.unseen .cs-dot i, .cs-star.empty .cs-dot i, .cs-star.locked .cs-dot i { background: #081a14; box-shadow: none; border: 1.5px dashed #6f8a82; --d: 13px; }
.cs-star.due .cs-dot::after { content: ''; position: absolute; inset: 1px; border-radius: 50%; border: 1.5px solid #ffd84a; animation: skyPulse 1.9s ease-out infinite; }
.cs-ref { font-family: var(--label); font-size: .62rem; color: #8fb8a6; } .cs-ref em { font-style: normal; color: #ffd84a; }
.cs-star b { font-family: var(--serif); font-size: .88rem; font-weight: 600; line-height: 1.15; letter-spacing: -.015em; text-wrap: balance; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cs-pct { font-family: var(--label); font-size: .7rem; color: #63d6a6; } .cs-star.secure .cs-pct { color: #ffd84a; }
.cs-star.unseen, .cs-star.locked, .cs-star.empty { color: #9db3aa; } .cs-star.unseen .cs-pct, .cs-star.locked .cs-pct, .cs-star.empty .cs-pct { color: #6f8a82; }
.cs-star:hover b { color: #fff; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #63d6a6; }
.sky-legend i { border-radius: 50%; } .sky .mg { display: none; }
@media (max-width: 760px) { .cs { display: none; } .sky .mg { display: grid; } }
@media (prefers-reduced-motion: reduce) { .cs-star, .cs-dust i, .cs-star.due .cs-dot::after { animation: none; } }

/* ---------- set-up: one page with a course slip ---------- */
.su { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; max-width: 1080px; }
.su-k { font-family: var(--label); font-size: .7rem; color: var(--primary); }
.su-main h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); font-weight: 800; letter-spacing: -.05em; line-height: 1; margin: 8px 0 0; }
.su-sec { margin-top: 34px; } .su-lab { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; font-weight: 650; font-size: 1rem; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.su-lab i { font: 500 .7rem var(--label); color: var(--primary); font-style: normal; } .su-lab span { font-weight: 400; font-size: .84rem; color: var(--muted); }
.su-rail { display: flex; border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; background: var(--surface); }
.su-year { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 14px 10px; border: 0; border-left: 1px solid var(--line-2); background: none; color: var(--muted); font: inherit; cursor: pointer; transition: background .2s, color .2s; } .su-year:first-child { border-left: 0; }
.su-year span { font: 500 .62rem var(--label); } .su-year b { font-family: var(--label); font-size: 1.7rem; font-weight: 600; letter-spacing: -.05em; line-height: 1; color: var(--ink-2); }
.su-year:hover:not(:disabled) { background: var(--surface-2); } .su-year.on { background: var(--primary); color: var(--primary-ink); } .su-year.on b { color: var(--primary-ink); } .su-year:disabled { cursor: default; opacity: .55; } .su-year.on:disabled { opacity: 1; }
.su-rows { border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; background: var(--surface); margin-bottom: 10px; }
.su-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--line); flex-wrap: wrap; transition: background .2s, box-shadow .2s; } .su-row:first-child { border-top: 0; }
.su-row > b { font-family: var(--serif); font-size: 1.05rem; font-weight: 650; letter-spacing: -.02em; flex: 1 1 140px; color: var(--ink-2); } .su-row.on { background: var(--primary-soft); box-shadow: inset 3px 0 0 var(--primary); } .su-row.on > b { color: var(--ink); } .su-row.hint { box-shadow: inset 3px 0 0 #ffd84a; }
.su-boards { display: flex; gap: 6px; flex-wrap: wrap; }
.su-board { display: inline-flex; align-items: baseline; gap: 7px; padding: 7px 11px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--surface); color: var(--ink-2); font: 600 .82rem var(--font); cursor: pointer; transition: border-color .15s, background .15s; }
.su-board small { font: 500 .64rem var(--label); color: var(--muted); } .su-board:hover { border-color: var(--primary); } .su-board.on { background: var(--ink); color: var(--bg); border-color: var(--ink); } .su-board.on small { color: inherit; opacity: .65; }
.su-wait { padding: 18px; border: 1px dashed var(--line-2); border-radius: 8px; margin: 0; }
.su-slip { position: sticky; top: 80px; padding: 20px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); display: flex; flex-direction: column; gap: 10px; }
.su-line { display: flex; justify-content: space-between; font-size: .86rem; color: var(--muted); } .su-line b { font-family: var(--label); font-weight: 500; color: var(--ink); }
.su-list { border-top: 1px dashed var(--line-2); border-bottom: 1px dashed var(--line-2); padding: 12px 0; margin: 4px 0; display: flex; flex-direction: column; gap: 10px; min-height: 64px; }
.su-item b { display: block; font-size: .94rem; } .su-item span { font: 500 .68rem var(--label); color: var(--primary); letter-spacing: .03em; } .su-empty { font-size: .86rem; color: var(--muted); margin: auto 0; }
.su-note { font-size: .76rem; line-height: 1.5; color: var(--muted); margin: 0; }
@media (max-width: 860px) { .su { grid-template-columns: 1fr; } .su-slip { position: static; } .su-year { padding: 10px 8px 8px; } .su-year b { font-size: 1.3rem; } }

/* ==========================================================================
   Type, round three: Archivo (wide, heavy) for headings and figures, Source Sans 3 for reading.
   Labels are plain sentence-case text, not spaced-out capitals.
   ========================================================================== */
:root { --label: var(--font); font-size: 106.25%; }
h1, h2, h3, .page-head h1, .brand, .qz-setup h1, .su-main h1, .notes h3, .notes h4, .qz-verdict, .sky-head h2, .ps-hero h2, .tonight h2, .sess-end h1, .l2 h1, .l2 h2, .l2 h3 { font-family: var(--serif); font-weight: 800; letter-spacing: -.028em; }
.card h3, .qz-mode b, .su-row > b, .mg-name, .cs-star b, .ps-card b { font-family: var(--serif); font-weight: 700; letter-spacing: -.015em; }
.mg-pct, .qz-big, .qz-stats b, .su-year b, .sky-grade b, .qz-clock b, .sj-stats b, .tonight-ring b, .sess-facts b, .ps-stats b { font-family: var(--serif); font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.tonight-k, .sky-k, .ps-ref, .qz-k, .su-k, .muted.xs, .toc-title, .l2 .l2-eyebrow, .qz-group > label, .su-lab i, .mg-top, .cs-ref, .sky-legend, .qz-stats span, .hard-flag, .sess-why, .qz-tag { text-transform: none; letter-spacing: 0; font-family: var(--font); font-weight: 600; }
.tonight-k, .sky-k, .qz-k, .su-k, .qz-group > label, .l2 .l2-eyebrow { font-size: .86rem; } .muted.xs, .toc-title, .ps-ref, .mg-top, .cs-ref, .sky-legend, .qz-stats span, .mg-foot, .qz-sub, .su-year span, .su-board small, .su-item span, .qz-idx { font-size: .78rem; }
.chip { font-size: .76rem; font-weight: 600; height: 23px; } .qz-opt, .qz-facts span { font-size: .88rem; font-weight: 600; } .notes-facts dt, .notes h5, .notes-table th { font-size: .84rem; font-weight: 700; } .notes h4::before { font-size: .9rem; font-weight: 700; }
.notes .keypoint.tip b:first-child { font-size: .82rem; } .qz-line > span { font-size: .78rem; font-weight: 700; } .cs-pct { font-size: .8rem; font-weight: 600; }
:root[data-ui="motion"] .pub-links a { font-size: .9rem; font-weight: 600; } :root[data-ui="motion"] .pub-links a::before { font-size: .72rem; font-weight: 700; }
.qz-spec { display: inline-block; font-size: .74rem; font-weight: 700; padding: 1px 7px; border-radius: 4px; background: var(--warn-soft); color: var(--warn); vertical-align: 1px; margin-right: 4px; }
.qz-slip { margin-bottom: 8px; padding: 9px 12px; border-radius: 6px; background: var(--warn-soft); color: var(--ink); font-weight: 600; font-size: .93rem; } .qz-ask { align-self: center; margin-left: 6px; }

/* ---------- notes: reading rhythm ---------- */
.notes { font-size: 1.08rem; line-height: 1.72; } .notes > p, .notes > ul, .notes > ol { max-width: 66ch; }
.notes h4 { margin-top: 60px; padding-top: 22px; font-size: 1.5rem; } .notes h4 + p { margin-top: 6px; }
.notes ul { list-style: none; padding-left: 0; } .notes ul > li { position: relative; padding-left: 22px; } .notes ul > li::before { content: ''; position: absolute; left: 3px; top: .72em; width: 7px; height: 2px; background: var(--primary); }
.notes ul > li.sub { margin-left: 22px; } .notes ul > li.sub::before { width: 4px; height: 4px; border-radius: 50%; top: .68em; background: var(--muted); content: ''; margin: 0; } .notes li.sub.cont::before { display: none; }
.notes ol { counter-reset: step; list-style: none; padding-left: 0; } .notes ol > li:not(.sub) { counter-increment: step; position: relative; padding-left: 38px; margin: 12px 0; }
.notes ol > li:not(.sub)::before { content: counter(step); position: absolute; left: 0; top: .12em; width: 25px; height: 25px; border-radius: 50%; display: grid; place-items: center; font: 800 .8rem var(--serif); background: var(--primary-soft); color: var(--primary); }
.notes ol > li.sub { margin-left: 38px; }
.notes .katex { font-size: 1.06em; } .notes-math { text-align: center; padding: 20px 18px; border-style: dashed; }
.notes h5 { font-family: var(--serif); font-size: 1.02rem; color: var(--ink); margin: 34px 0 4px; }

/* ---------- mistakes ---------- */
.mk-list { display: flex; flex-direction: column; gap: 8px; }
.mk { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); overflow: hidden; } .mk[open] { border-color: var(--line-2); }
.mk summary { list-style: none; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 18px; cursor: pointer; } .mk summary::-webkit-details-marker { display: none; }
.mk-n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 800 .82rem var(--serif); background: var(--bad-soft); color: var(--bad); }
.mk-q { font-weight: 600; line-height: 1.4; } .mk:not([open]) .mk-q { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .mk-t { font-size: .8rem; color: var(--muted); white-space: nowrap; }
.mk-body { padding: 4px 18px 18px 58px; display: flex; flex-direction: column; gap: 16px; } .mk-body label { display: block; font-size: .8rem; font-weight: 700; color: var(--muted); margin: 0 0 5px; }
.mk-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .mk-pair > div { padding: 12px 14px; border-radius: 8px; border: 1px solid var(--line); }
.mk-you { background: var(--bad-soft); border-color: transparent !important; } .mk-you label { color: var(--bad); } .mk-ans { background: var(--ok-soft); border-color: transparent !important; } .mk-ans label { color: var(--ok); } .mk-pair div div { font-weight: 600; }
.mk-slip { padding: 12px 14px; border-radius: 8px; background: var(--warn-soft); } .mk-slip label { color: var(--warn); } .mk-slip div { font-weight: 600; line-height: 1.5; }
.mk-steps { list-style: none; counter-reset: st; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; } .mk-steps li { counter-increment: st; position: relative; padding-left: 34px; line-height: 1.6; }
.mk-steps li::before { content: counter(st); position: absolute; left: 0; top: .15em; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 800 .74rem var(--serif); background: var(--surface-2); color: var(--ink-2); }
.mk-one { margin: 0; line-height: 1.6; } .mk-foot { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
@media (max-width: 640px) { .mk-body { padding-left: 18px; } .mk-pair { grid-template-columns: 1fr; } .mk summary { grid-template-columns: auto minmax(0, 1fr); } .mk-t { display: none; } }

/* ---------- subjects ---------- */
.h-sec { font-family: var(--font); font-size: .92rem; font-weight: 700; letter-spacing: 0; color: var(--muted); margin: 26px 0 10px; }
.sj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 400px), 1fr)); gap: 14px; }
.sj { display: flex; flex-direction: column; gap: 18px; padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); text-decoration: none; transition: border-color .2s, transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s; }
.sj:hover { transform: translateY(-3px); border-color: var(--primary); box-shadow: 0 18px 34px -26px var(--primary); }
.sj-head { display: flex; align-items: center; gap: 14px; } .sj-head h3 { margin: 0; font-size: 1.55rem; font-weight: 800; line-height: 1.05; } .sj-lvl { font-size: .84rem; font-weight: 600; color: var(--muted); }
.sj-strip { display: flex; gap: 3px; } .sj-strip i { flex: 1; height: 26px; border-radius: 2px; background: linear-gradient(to top, var(--primary) calc(var(--s) * 100%), var(--surface-2) 0); min-width: 3px; } .sj-strip i.secure { background: #ffd84a; } .sj-strip i.unseen, .sj-strip i.locked { background: var(--surface-2); }
.sj-stats { display: flex; gap: 8px 28px; flex-wrap: wrap; } .sj-stats b { display: block; font-size: 1.5rem; line-height: 1.05; } .sj-stats b small { font-size: .6em; color: var(--muted); font-weight: 700; } .sj-stats b.hot { color: #d9a900; } .sj-stats span { font-size: .8rem; color: var(--muted); }
.sj-go { font-weight: 700; color: var(--primary); font-size: .94rem; padding-top: 14px; border-top: 1px solid var(--line); }

/* ---------- subject page: the topic index ---------- */
.topic-sect { background: none; border: 0; box-shadow: none; border-radius: 0; overflow: visible; }
.topic-sect > summary { padding: 6px 2px 10px; border-bottom: 2px solid var(--ink) !important; } .topic-sect > summary b { font-family: var(--serif); font-size: 1.12rem; font-weight: 800; letter-spacing: -.02em; }
.trows { border: 1px solid var(--line); border-top: 0; border-radius: 0 0 10px 10px; background: var(--surface); overflow: hidden; }
.trow { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto 90px 3.2em; gap: 14px; padding: 13px 16px 13px 0; transition: background .15s, box-shadow .15s; }
.trow:hover { background: var(--surface-2); box-shadow: inset 3px 0 0 var(--primary); }
.trow-ref { font-family: var(--serif); font-size: .8rem; font-weight: 800; color: var(--muted); text-align: center; border-right: 1px solid var(--line); align-self: stretch; display: grid; place-items: center; }
.trow-name { font-size: 1.02rem; font-weight: 650; } .trow-meta { font-size: .8rem; }
.tr-parts { display: flex; gap: 3px; } .tr-parts i, .tr-key i { font-style: normal; width: 21px; height: 21px; border-radius: 4px; display: inline-grid; place-items: center; font-size: .7rem; font-weight: 800; border: 1px solid var(--line-2); color: var(--muted); }
.tr-parts i.part { border-color: var(--primary); color: var(--primary); } .tr-parts i.full { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.tr-bar { height: 5px; border-radius: 3px; background: var(--surface-2); overflow: hidden; } .tr-bar i { display: block; height: 100%; background: var(--primary); } .tr-bar i.warn { background: var(--warn); } .tr-bar i.bad { background: var(--bad); }
.trow-pct { font-family: var(--serif); font-weight: 800; font-size: .92rem; } .trow > .ic { grid-column: 3 / -1; justify-self: end; }
.tr-key { display: flex; align-items: center; gap: 6px 8px; flex-wrap: wrap; font-size: .82rem; color: var(--muted); margin: 0 0 14px; } .tr-key i { margin-left: 8px; } .tr-key i:first-child { margin-left: 0; } .tr-key span { margin-left: 10px; }
@media (max-width: 720px) { .trow { grid-template-columns: 44px minmax(0, 1fr) 3.2em; } .tr-parts, .tr-bar { display: none; } }

/* ---------- shortcuts sheet ---------- */
.keys-sheet { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; background: rgba(4, 10, 8, .6); backdrop-filter: blur(3px); }
.keys-box { width: min(460px, 100%); max-height: 86vh; overflow: auto; padding: 22px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); box-shadow: 0 30px 60px -30px #000; }
.keys-box h4 { font-family: var(--font); font-size: .84rem; font-weight: 700; color: var(--muted); margin: 18px 0 6px; } .keys-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 7px 0; border-top: 1px solid var(--line); font-size: .93rem; }
.keys-row kbd { display: inline-block; min-width: 24px; text-align: center; padding: 2px 7px; margin-right: 4px; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 5px; background: var(--surface-2); font: 700 .8rem var(--font); } .keys-row em { font-style: normal; color: var(--muted); margin-right: 4px; font-size: .84rem; }
.su-tier { flex: 1 1 100%; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 10px 0 2px 54px; font-size: .88rem; color: var(--ink-2); } .su-tier span { margin-right: 6px; font-weight: 600; }
.notes > h3:first-child { display: none; } .notes-prog { top: 60px; }
.notes h4::before { display: none; } .notes h4 { display: block; }

/* ---------- headings: normal width ---------- */
h1, h2, h3, .page-head h1, .brand, .qz-setup h1, .su-main h1, .notes h3, .notes h4, .qz-verdict, .sky-head h2, .ps-hero h2, .tonight h2, .sess-end h1, .l2 h1, .l2 h2, .l2 h3, .sj-head h3 { font-weight: 800; letter-spacing: -.035em; }
.mg-pct, .qz-big, .qz-stats b, .su-year b, .sky-grade b, .sj-stats b, .tonight-ring b, .sess-facts b, .ps-stats b { letter-spacing: -.045em; }

/* ---------- forms and controls, everywhere ---------- */
label { font-weight: 600; font-size: .92rem; color: var(--ink-2); }
input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=range]), select, textarea { min-height: 44px; padding: 10px 13px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface); color: var(--ink); font: 500 1rem var(--font); transition: border-color .15s, box-shadow .15s; }
textarea { line-height: 1.5; }
input:not([type=checkbox]):not([type=radio]):hover, select:hover, textarea:hover { border-color: var(--muted); }
input:not([type=checkbox]):not([type=radio]):focus, select:focus, textarea:focus { outline: 0; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 22%, transparent); }
::placeholder { color: var(--muted); opacity: .8; }
.card { padding: 22px; } .card.flush { padding: 0; } hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }
.table th { font-size: .82rem; font-weight: 700; color: var(--muted); text-transform: none; letter-spacing: 0; } .table td, .table th { padding: 12px 14px; }
.banner { border-radius: 8px; } .toggle { padding: 12px 0; align-items: center; } .toggle b { font-weight: 650; } .toggle .muted.xs { font-weight: 400; font-size: .84rem; }
.page-head { margin-bottom: 26px; } .page-head p { font-size: 1.02rem; max-width: 70ch; }

/* ---------- settings: one column, heading on the left, controls on the right ---------- */
.set { display: flex; flex-direction: column; max-width: 940px; border-top: 2px solid var(--ink); } .set > .stack { display: contents; }
.set .card { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 14px 40px; align-items: start; padding: 30px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; box-shadow: none; }
.set .card > * { grid-column: 2; margin: 0; min-width: 0; } .set .card > h3, .set .card > .row.between:first-child { grid-column: 1; grid-row: 1; font-size: 1.18rem; align-self: start; flex-direction: column; align-items: flex-start; gap: 8px; }
.set .card > .btn, .set .card > button.btn { justify-self: start; } .set .card > .row.between:first-child h3 { font-size: 1.18rem; }
.set-font { display: flex; flex-wrap: wrap; gap: 8px; } .set-font button { padding: 12px 16px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface); color: var(--ink); cursor: pointer; font-size: 1.15rem; font-weight: 800; letter-spacing: -.03em; text-align: left; } .set-font button small { display: block; font: 500 .78rem var(--font); letter-spacing: 0; color: var(--muted); margin-top: 2px; }
.set-font button.on { border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); background: var(--primary-soft); } .set-font button:hover { border-color: var(--primary); }
@media (max-width: 760px) { .set .card { grid-template-columns: 1fr; gap: 12px; padding: 24px 0; } .set .card > *, .set .card > h3, .set .card > .row.between:first-child { grid-column: 1; grid-row: auto; } }
.su-year span { white-space: nowrap; } .su-year { padding-left: 10px; padding-right: 6px; min-width: 0; }
.set .card > h3 + *, .set .card > .row.between:first-child + * { grid-row: 1; }

/* notes: reading bar pinned to the top of the window (not inside the card), tidy callouts */
.notes-card { overflow: visible; }
.notes-prog { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; background: transparent; margin: 0 !important; }
.notes .keypoint p { margin: 0; } .notes .keypoint p + p, .notes .keypoint p + ul { margin-top: 8px; }
.notes .keypoint ul { margin: 0; max-width: none; } .notes .keypoint ul > li { margin: 6px 0; }
.notes .keypoint.has-list { display: block; }
.notes > .keypoint:first-of-type { border-radius: 0; margin-bottom: 18px; }
.notes > .keypoint:first-of-type + .keypoint { margin-top: 0; }
