/* Recov training app — private preview, v2 (Spot visual concept, 2026-10-23).
   Shell     : deep navy #0B1427 (Spot), raised cards #182943, hint/inset #1D3245.
   Accent    : ice #72CEFF (brand blue-light; Spot samples at #73CDFF). Ink on ice = navy.
   Reading   : long-form content sits on light panels #F0F4FC (Spot's notes card), ink navy.
   Type      : Figtree (local woff2). Display = 800 uppercase, tight. Eyebrows 12/700 caps +1px.
   Space     : 4 8 12 16 20 24 32 48 64.  Radius: 18 cards, 14 inner, 100 pills.
*/
@font-face {
  font-family: "Figtree";
  src: url("fonts/figtree-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
:root {
  --bg: #0B1427; --card: #182943; --inset: #1D3245; --line: rgba(255,255,255,.08);
  --ice: #72CEFF; --ice-ink: #0B1427; --blue: #4AB5E7; --deep: #2A80B0;
  --white: #FFFFFF; --text-2: rgba(234,241,252,.74); --text-3: rgba(234,241,252,.52);
  --light: #F0F4FC; --ink: #0B1427; --ink-2: rgba(11,20,39,.66); --ink-line: rgba(11,20,39,.14);
  --r-card: 18px; --r-in: 14px; --r-pill: 100px;
  --ff: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --wrap: 1180px; --gutter: 20px;
  --e-out: cubic-bezier(0.22,1,0.36,1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0; font-family: var(--ff); font-size: 16px; line-height: 1.55;
  color: var(--white); background: var(--bg); overflow-x: clip;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
::selection { background: var(--ice); color: var(--ice-ink); }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.tnum { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 3px solid var(--ice); outline-offset: 3px; border-radius: 8px; }
[tabindex="-1"]:focus { outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -100px; z-index: 50; background: var(--ice); color: var(--ice-ink); padding: 8px 16px; border-radius: var(--r-pill); font-weight: 700; text-decoration: none; }
.skip:focus { top: 8px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.ice { color: var(--ice); }

/* ---------- type ---------- */
.eyebrow { display: block; margin: 0; font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--text-2); }
.eyebrow--ice { color: var(--ice); }
.eyebrow--deep { color: var(--ink-2); }
.display { margin: 0; font-weight: 800; text-transform: uppercase; line-height: .95; letter-spacing: -.5px; font-size: clamp(40px, 11vw, 96px); }
.display > span { display: block; }
.display--lesson { font-size: clamp(36px, 10.4vw, 64px); overflow-wrap: anywhere; hyphens: manual; }
.giant { margin: 0 0 14px; font-weight: 800; text-transform: uppercase; line-height: .9; letter-spacing: -1px; font-size: clamp(64px, 19vw, 120px); }
.giant--long { font-size: clamp(44px, 13.4vw, 110px); }
.h2 { margin: 6px 0 6px; font-size: clamp(26px, 7vw, 34px); font-weight: 800; line-height: 1.1; letter-spacing: -.2px; }
.h3 { margin: 0; font-size: 22px; font-weight: 800; line-height: 1.2; }
.lede { margin: 0; color: var(--text-2); font-size: 16px; }
.lede--gap { margin: 16px 0 20px; }

/* ---------- pills / buttons ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px; border-radius: var(--r-pill); font-size: 12.5px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; line-height: 1.2; white-space: nowrap; }
.pill--dark { background: rgba(11,20,39,.9); color: var(--white); }
.pill--ice { background: var(--ice); color: var(--ice-ink); }
.roundbtn { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--ice); color: var(--ice-ink); display: grid; place-items: center; transition: transform .3s var(--e-out); }
.roundbtn svg { width: 22px; height: 22px; }
.backlink { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 20px; color: var(--ice); font-size: 13px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; text-decoration: none; padding: 6px 0; }
.backlink svg { width: 14px; height: 14px; }
.backlink:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- topbar ---------- */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(11,20,39,.92); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.topbar__in { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { flex: none; display: block; padding: 6px 0; border-radius: 6px; }
.brand img { height: 20px; width: auto; }
.nav { display: none; gap: 4px; margin-left: 24px; }
.nav a { text-decoration: none; font-size: 14px; font-weight: 700; color: var(--text-2); padding: 8px 14px; border-radius: var(--r-pill); }
.nav a:hover { color: var(--white); background: var(--inset); }
.nav a[aria-current="page"] { color: var(--ice-ink); background: var(--ice); }
.topbar__end { margin-left: auto; display: flex; align-items: center; gap: 12px; min-width: 0; }
.page-label { font-size: 11px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.iconbtn { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--inset); color: var(--white); }
.iconbtn svg { width: 18px; height: 18px; }
.iconbtn[aria-current="page"] { background: var(--ice); color: var(--ice-ink); }

/* ---------- sections ---------- */
.section { padding: 36px 0; }
.section--tight { padding: 8px 0; }
.page-top { padding-top: 24px; }

/* ---------- hero (home) ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; min-height: 360px; display: flex; align-items: flex-end; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 30%; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(11,20,39,.35) 0%, rgba(11,20,39,.15) 30%, rgba(11,20,39,.55) 62%, var(--bg) 100%),
              linear-gradient(90deg, rgba(11,20,39,.55) 0%, rgba(11,20,39,0) 70%); }
.hero__in { padding-top: 22px; padding-bottom: 22px; align-self: stretch; display: flex; flex-direction: column; }
.hero__in .pill { align-self: flex-start; margin-bottom: auto; }
.hero .display { margin-top: 96px; }
.hero__sub { margin: 14px 0 0; font-size: 17px; font-weight: 500; color: rgba(255,255,255,.92); }

/* ---------- collection cards ---------- */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 22px; }
.ccard { min-width: 0; position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; min-height: 0; aspect-ratio: 1 / 1.02; padding: 12px; border-radius: var(--r-card); background: var(--card); text-decoration: none; color: var(--white); }
.ccard__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s var(--e-out); }
.ccard__img--back { object-position: 60% 30%; }
.ccard__img--chest { object-position: 55% 50%; }
.ccard__img--legs { object-position: 62% 40%; }
.ccard__img--shoulders { object-position: 50% 30%; }
.ccard::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11,20,39,.25) 0%, rgba(11,20,39,.1) 35%, rgba(11,20,39,.82) 100%); }
.ccard__count { align-self: flex-start; }
.ccard__foot { display: grid; gap: 2px; margin-top: auto; }
.ccard__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ccard__name { display: block; font-size: clamp(20px, 5.6vw, 34px); font-weight: 800; text-transform: uppercase; line-height: 1; letter-spacing: -.2px; }
.ccard__range { display: block; font-size: 12px; font-weight: 600; color: rgba(255,255,255,.82); }
.ccard .roundbtn { width: 38px; height: 38px; }
.ccard .roundbtn svg { width: 20px; height: 20px; }
.ccard:hover .ccard__img { transform: scale(1.04); }
.ccard:hover .roundbtn { transform: translateX(3px); }
.ccard:focus-visible { outline-offset: 4px; border-radius: var(--r-card); }
.progress--card { margin-top: 10px; }
.progress--card .progress__row { display: none; }
.progress--card .bar { height: 4px; }

/* ---------- progress ---------- */
.progress__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; font-size: 13px; font-weight: 700; color: var(--text-2); }
.progress__label { text-transform: uppercase; letter-spacing: .6px; font-size: 12px; }
.progress__count { color: var(--white); }
.progress--big .progress__row { display: grid; gap: 4px; margin-bottom: 14px; }
.progress--big .progress__count { font-size: 19px; font-weight: 800; }
.bar { --n: 5; --gap: 6px; position: relative; height: 7px; border-radius: 6px; background: rgba(255,255,255,.14); overflow: hidden;
  -webkit-mask-image: repeating-linear-gradient(90deg, #000 0, #000 calc((100% + var(--gap)) / var(--n) - var(--gap)), transparent calc((100% + var(--gap)) / var(--n) - var(--gap)), transparent calc((100% + var(--gap)) / var(--n)));
          mask-image: repeating-linear-gradient(90deg, #000 0, #000 calc((100% + var(--gap)) / var(--n) - var(--gap)), transparent calc((100% + var(--gap)) / var(--n) - var(--gap)), transparent calc((100% + var(--gap)) / var(--n)));
}
.bar[style*="--n:23"] { --gap: 3px; }
.bar > span { position: absolute; left: 0; top: 0; bottom: 0; background: var(--ice); transition: width .5s var(--e-out); }
.card { background: var(--card); border-radius: var(--r-card); }
.card--pad { padding: 18px 20px; }
.stack { display: grid; gap: 18px; margin-top: 14px; }

/* ---------- home progress row ---------- */
.home-progress { display: grid; gap: 14px; }
.continue { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: var(--r-card); background: var(--card); text-decoration: none; }
.continue__thumb { flex: none; width: 84px; height: 84px; border-radius: var(--r-in); overflow: hidden; background: var(--inset); }
.continue__thumb img { width: 100%; height: 100%; object-fit: cover; }
.continue__body { flex: 1; min-width: 0; display: grid; gap: 3px; }
.continue__title { font-size: 18px; font-weight: 800; line-height: 1.2; }
.continue__meta { font-size: 13px; color: var(--text-2); }
.continue:hover .roundbtn { transform: translateX(3px); }

/* ---------- search ---------- */
.search { position: relative; margin-top: 18px; }
.search svg { position: absolute; left: 18px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--text-2); pointer-events: none; }
.search input { width: 100%; height: 56px; padding: 0 18px 0 48px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--card); color: var(--white); font: inherit; font-size: 16px; }
.search input::placeholder { color: var(--text-3); }
.search input:focus-visible { outline-offset: 2px; }
.search-status { min-height: 1.5em; margin: 12px 4px 4px; font-size: 14px; color: var(--text-2); }
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }

/* ---------- collection page ---------- */
.coll-head .pill { margin-bottom: 22px; }
.coll-head__line { margin-bottom: 4px; }
.coll-progress { margin-top: 22px; }
.coll-progress .progress--big { display: grid; grid-template-columns: 1fr; }
.coll-head__img { display: none; }
.coll-list { margin-top: 22px; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; position: relative; }
.tl { position: relative; display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: center; }
.tl--flat { display: block; }
.tl:not(.tl--flat)::before { content: ""; position: absolute; left: 16px; top: -12px; bottom: -12px; width: 2px; background: rgba(255,255,255,.18); }
.tl:first-child::before { top: 50%; }
.tl:last-child::before { bottom: 50%; }
.tl__num { position: relative; z-index: 1; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); border: 2px solid rgba(255,255,255,.55); font-size: 14px; font-weight: 800; }
.tl__num svg { width: 16px; height: 16px; }
.tl--done .tl__num { border-color: var(--ice); color: var(--ice); }
.tl--current .tl__num { background: var(--ice); border-color: var(--ice); color: var(--ice-ink); }
.row { display: flex; align-items: center; gap: 12px; min-height: 80px; padding: 14px 18px; border-radius: var(--r-card); background: var(--card); text-decoration: none; transition: background .2s, transform .3s var(--e-out); }
.row:hover { background: #1E3150; }
.row__body { flex: 1; min-width: 0; display: grid; gap: 3px; }
.row__code { font-size: 11.5px; font-weight: 800; letter-spacing: .5px; color: var(--text-2); }
.row__title { font-size: 18px; font-weight: 800; line-height: 1.2; }
.row__meta { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin-top: 4px; font-size: 12.5px; color: var(--text-2); }
.row__go { flex: none; color: var(--ice); }
.row__go svg { width: 24px; height: 24px; }
.row__pill { flex: none; padding: 5px 11px; border-radius: var(--r-pill); background: var(--ice-ink); color: var(--white); font-size: 11.5px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; }
.row.is-current { background: var(--ice); color: var(--ice-ink); }
.row.is-current .row__code, .row.is-current .row__meta { color: rgba(11,20,39,.7); }
.row.is-current .row__go { color: var(--ice-ink); }
.row.is-current:hover { background: #8AD7FF; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: var(--r-pill); background: rgba(114,206,255,.16); color: var(--ice); font-weight: 700; font-size: 11.5px; }
.chip svg { width: 12px; height: 12px; }
.row.is-current .chip { background: rgba(11,20,39,.12); color: var(--ice-ink); }
.hint { margin: 22px 0 0; padding: 12px 18px; border-radius: var(--r-pill); background: var(--inset); font-size: 14.5px; font-weight: 500; color: rgba(255,255,255,.92); }

/* ---------- lesson page ---------- */
.lesson-main .lede { margin: 12px 0 18px; }
.player { position: relative; isolation: isolate; overflow: hidden; aspect-ratio: 16 / 10.5; border-radius: var(--r-card); background: var(--card); }
.player__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.player::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11,20,39,.2) 0%, rgba(11,20,39,0) 40%, rgba(11,20,39,.45) 100%); }
.player__tag { position: absolute; left: 14px; top: 14px; }
.player__play { position: absolute; left: 50%; top: 50%; width: 68px; height: 68px; margin: -40px 0 0 -34px; border-radius: 50%; background: var(--ice); color: var(--ice-ink); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(11,20,39,.35); }
.player__play svg { width: 30px; height: 30px; margin-left: 3px; }
.player__bar { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 16px; border-radius: 12px; background: rgba(11,20,39,.92); }
.player__watch { font-size: 12.5px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; white-space: nowrap; }
.player__label { font-size: 12.5px; color: var(--text-2); text-align: right; min-width: 0; }
.player__note { margin: 10px 2px 0; font-size: 12.5px; color: var(--text-3); }
.lesson-side { margin-top: 22px; }
.tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 6px; border-radius: var(--r-card); background: var(--card); }
.tabs [role=tab] { appearance: none; -webkit-appearance: none; border: 0; background: transparent; padding: 11px 8px; border-radius: var(--r-pill); font-size: 13px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; color: var(--text-2); cursor: pointer; }
.tabs [role=tab]:hover { color: var(--white); }
.tabs [role=tab][aria-selected="true"] { background: var(--ice); color: var(--ice-ink); }
.tabpanel { padding-top: 22px; display: grid; gap: 14px; align-content: start; }
.tabpanel[hidden] { display: none; }
.panel-head { margin-bottom: 2px; }

/* light reading panels (Jett: lighter panels for long-form reading) */
.panel-light { background: var(--light); color: var(--ink); border-radius: var(--r-card); padding: 18px 20px; }
.slot__title { margin: 4px 0 8px; font-size: 18px; font-weight: 800; line-height: 1.25; color: var(--ink); }
.slot__empty { margin: 0; font-size: 15px; color: var(--ink-2); }
.slot__lines { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 12px; counter-reset: ln; }
.slot__lines li { counter-increment: ln; display: grid; grid-template-columns: 22px 1fr; align-items: center; gap: 10px; }
.slot__lines li::before { content: counter(ln); width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--ink-line); display: grid; place-items: center; font-size: 11px; font-weight: 800; color: var(--ink-2); }
.slot__lines li::after { content: ""; height: 2px; border-radius: 2px; background: var(--ink-line); }
.slot__status { display: inline-flex; margin: 14px 0 0; padding: 4px 11px; border-radius: var(--r-pill); background: rgba(11,20,39,.07); font-size: 12px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; color: var(--ink-2); }
.rx { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 6px 0 12px; }
.rx div { padding: 12px; border-radius: var(--r-in); background: var(--white); border: 1px solid var(--ink-line); }
.rx dt { font-size: 11.5px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: var(--ink-2); }
.rx dd { margin: 2px 0 0; font-size: 22px; font-weight: 800; color: var(--ink); }
.superset__list { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 10px; }
.superset__list li { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--r-in); background: var(--white); border: 1px solid var(--ink-line); }
.superset__num { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--ice); color: var(--ice-ink); display: grid; place-items: center; font-weight: 800; }
.superset__then { display: block; font-size: 11.5px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: var(--ink-2); }
.mv { display: block; font-size: 17px; font-weight: 800; color: var(--ink); }
.empty { display: grid; gap: 4px; padding: 16px 18px; border-radius: var(--r-card); border: 1.5px dashed rgba(255,255,255,.2); font-size: 14px; color: var(--text-2); }
.empty strong { color: var(--white); font-size: 15px; }

/* notes + watched tile (Spot: light notes card + ice tile) */
.notes-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 12px; }
.notes { display: flex; flex-direction: column; }
.notes textarea { flex: 1; width: 100%; min-height: 120px; margin-top: 8px; padding: 6px 0 10px; border: 0; border-bottom: 2px solid var(--ink-line); background: transparent; color: var(--ink); font: inherit; font-size: 16px; line-height: 1.5; resize: vertical; border-radius: 0; }
.notes textarea::placeholder { color: rgba(11,20,39,.72); }
.notes textarea:focus-visible { outline: 3px solid var(--deep); outline-offset: 4px; border-radius: 6px; }
.notes__status { min-height: 1.4em; margin: 8px 0 0; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.watchtile { appearance: none; -webkit-appearance: none; border: 0; cursor: pointer; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; gap: 18px; padding: 18px; border-radius: var(--r-card); background: var(--ice); color: var(--ice-ink); text-align: left; min-height: 140px; transition: transform .2s var(--e-out); }
.watchtile:active { transform: scale(.98); }
.watchtile__ring { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--ice-ink); display: grid; place-items: center; }
.watchtile__ring svg { width: 18px; height: 18px; opacity: 0; transition: opacity .2s; }
.watchtile__label { font-size: 17px; font-weight: 800; letter-spacing: .3px; text-transform: uppercase; line-height: 1.2; }
.watchtile[aria-pressed="true"] { background: var(--ice-ink); color: var(--ice); box-shadow: inset 0 0 0 2px var(--ice); }
.watchtile[aria-pressed="true"] .watchtile__ring { background: var(--ice); border-color: var(--ice); color: var(--ice-ink); }
.watchtile[aria-pressed="true"] .watchtile__ring svg { opacity: 1; }
.watchtile:focus-visible { outline-color: var(--white); }

/* up next + pager */
.upnext { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-radius: var(--r-card); background: var(--card); text-decoration: none; }
.upnext .eyebrow { margin-bottom: 3px; }
.upnext__nm { display: block; font-size: 18px; font-weight: 800; line-height: 1.2; }
.upnext__go { flex: none; color: var(--ice); }
.upnext__go svg { width: 26px; height: 26px; }
.upnext:hover { background: #1E3150; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pbtn { display: grid; gap: 2px; align-content: start; padding: 14px 16px; border-radius: var(--r-card); background: var(--inset); text-decoration: none; min-width: 0; }
.pbtn--next { text-align: right; }
.pbtn__dir { font-size: 11.5px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: var(--ice); }
.pbtn__nm { font-size: 14.5px; font-weight: 700; line-height: 1.3; }
.pbtn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; pointer-events: none; }
.pbtn[aria-disabled="true"] .pbtn__dir { color: var(--text-2); }

/* ---------- footer ---------- */
.foot { margin-top: 32px; border-top: 1px solid var(--line); }
.foot__in { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; padding-top: 18px; padding-bottom: calc(22px + env(safe-area-inset-bottom)); }
.foot__line { font-size: 10.5px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; color: var(--text-3); }
.private-tag { padding: 3px 10px; border-radius: var(--r-pill); border: 1px solid var(--line); font-size: 11px; font-weight: 700; color: var(--text-2); }
.foot__note { font-size: 11px; color: var(--text-3); }

/* ---------- responsive ---------- */
@media (max-width: 370px) {
  .ccard__name { font-size: 18px; }
  .notes-grid { grid-template-columns: 1fr; }
}
@media (min-width: 640px) {
  :root { --gutter: 28px; }
  .page-label { font-size: 12px; letter-spacing: .6px; }
  .hero { min-height: 520px; }
  .home-progress { grid-template-columns: 1.3fr 1fr; align-items: stretch; }
}
@media (min-width: 960px) {
  :root { --gutter: 40px; }
  .nav { display: flex; }
  .brand img { height: 26px; }
  .topbar__in { min-height: 72px; }
  .section { padding: 56px 0; }
  .section--tight { padding: 8px 0; }
  .page-top { padding-top: 40px; }
  .hero { min-height: 620px; }
  .hero .display { margin-top: 200px; }
  .hero__in { padding-bottom: 40px; }
  .hero__img { object-position: 70% 30%; }
  .hero__sub { font-size: 20px; }
  .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
  .ccard { aspect-ratio: 3 / 4; padding: 16px; }
  .ccard__name { font-size: 30px; }
  .coll-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: start; }
  .coll-head { position: sticky; top: 104px; }
  .coll-head__img { display: block; margin-top: 18px; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-card); }
  .coll-list { margin-top: 52px; }
  .lesson-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: start; }
  .lesson-main { position: sticky; top: 100px; }
  .lesson-side { margin-top: 52px; }
  .notes-grid { grid-template-columns: 1fr; }
  .watchtile { min-height: 0; flex-direction: row; align-items: center; justify-content: flex-start; }
}

/* ---------- v2.1: REA reference pass (NTC / Ladder / Fitness+) ---------- */
/* one filled ice action */
.btn-fill { appearance: none; -webkit-appearance: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 22px; border-radius: var(--r-pill); background: var(--ice); color: var(--ice-ink); font-size: 15px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; text-decoration: none; transition: background .25s, transform .25s var(--e-out); }
.btn-fill svg { width: 20px; height: 20px; }
.btn-fill:hover { background: #8AD7FF; }
.btn-fill:active { transform: scale(.98); }
.continue { flex-wrap: wrap; }
.continue__btn { flex: 1 0 100%; }
/* per-lesson check circles */
.progress--dots .bar { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); -webkit-mask-image: none; mask-image: none; }
.progress--dots { position: relative; }
.dots { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.dot { display: grid; justify-items: center; gap: 5px; }
.dot__c { width: 26px; height: 26px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); display: grid; place-items: center; color: transparent; transition: background .25s, border-color .25s, color .25s; }
.dot__c svg { width: 14px; height: 14px; }
.dot.is-on .dot__c { background: var(--ice); border-color: var(--ice); color: var(--ice-ink); }
.dot__code { font-size: 10.5px; font-weight: 700; color: var(--text-2); }
.dots--codes { gap: 10px 12px; margin-top: 4px; }
.dots--codes .dot__c { width: 32px; height: 32px; }
.progress--dots .progress__row { order: 0; }
.progress--dots .dots { order: 1; }
.progress--dots { display: flex; flex-direction: column; }
.progress--big.progress--dots .progress__row { margin: 0 0 14px; }
.progress--card .dots { gap: 5px; margin-top: 8px; }
.progress--card .dot__c { width: 16px; height: 16px; border-width: 1.5px; border-color: rgba(255,255,255,.7); background: rgba(11,20,39,.35); }
.progress--card .dot__c svg { width: 10px; height: 10px; }
/* lesson meta icon row + action bar */
.meta-row { list-style: none; margin: 14px 2px 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13.5px; font-weight: 600; color: var(--text-2); }
.meta-row li { display: inline-flex; align-items: center; gap: 7px; }
.meta-row svg { width: 17px; height: 17px; color: var(--text-3); }
.actionbar { display: flex; gap: 10px; margin-top: 16px; }
.actionbar__main { flex: 1; min-width: 0; white-space: nowrap; padding: 0 16px; font-size: 14px; letter-spacing: .3px; }
.actionbar__ring { width: 22px; height: 22px; border-radius: 50%; border: 2px solid currentColor; display: grid; place-items: center; }
.actionbar__ring svg { width: 13px; height: 13px; opacity: 0; }
.actionbar__main[aria-pressed="true"] { background: var(--ice-ink); color: var(--ice); box-shadow: inset 0 0 0 2px var(--ice); }
.actionbar__main[aria-pressed="true"] .actionbar__ring { background: var(--ice); color: var(--ice-ink); border-color: var(--ice); }
.actionbar__main[aria-pressed="true"] .actionbar__ring svg { opacity: 1; }
.actionbar__next { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 18px; border-radius: var(--r-pill); background: var(--inset); color: var(--white); font-size: 15px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; text-decoration: none; }
.actionbar__next svg { width: 18px; height: 18px; color: var(--ice); }
/* bottom tab bar (mobile) */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(4, 1fr); padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); background: rgba(11,20,39,.94); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border-top: 1px solid var(--line); }
.tabbar a { display: grid; justify-items: center; gap: 3px; padding: 6px 0; border-radius: 12px; text-decoration: none; color: var(--text-3); font-size: 11px; font-weight: 700; }
.tabbar svg { width: 22px; height: 22px; }
.tabbar a[aria-current="page"] { color: var(--ice); }
body { padding-bottom: 72px; }
body[data-view="lesson"] .tabbar { display: none; }
body[data-view="lesson"] { padding-bottom: 92px; }
@media (max-width: 959px) {
  html { scroll-padding-bottom: 84px; }
  html[data-view="lesson"] { scroll-padding-bottom: 104px; }
  body[data-view="lesson"] .actionbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; margin: 0; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: rgba(11,20,39,.94); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border-top: 1px solid var(--line); }
}
@media (min-width: 960px) {
  .tabbar { display: none; }
  body, body[data-view="lesson"] { padding-bottom: 0; }
  .nav__sep { width: 1px; margin: 8px 6px; background: var(--line); }
  .continue__btn { flex: 0 0 auto; margin-left: auto; }
  .continue { flex-wrap: nowrap; }
}
/* progress + notes views */
.prog-list { display: grid; gap: 12px; margin-top: 14px; }
.prog-row { display: grid; gap: 12px; text-decoration: none; }
.prog-row__head { display: flex; justify-content: space-between; align-items: center; }
.prog-row__name { font-size: 22px; font-weight: 800; text-transform: uppercase; }
.prog-row__next { font-size: 13.5px; color: var(--text-2); }

.note-card { display: grid; gap: 4px; text-decoration: none; }
.note-card__nm { font-size: 18px; font-weight: 800; }
.note-card__txt { font-size: 15px; color: var(--ink-2); white-space: pre-wrap; overflow-wrap: anywhere; }
/* 250 ms view fade */
#app > * { animation: viewin .25s ease-out both; }
@keyframes viewin { from { opacity: 0; } to { opacity: 1; } }

/* ---------- v3: real video player + filled draft guides ---------- */
.player--video { aspect-ratio: 16 / 9; background: #000; }
.player--video::after { display: none; }
.player__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.vctl { display: flex; align-items: center; gap: 12px; margin-top: 10px; padding: 8px 14px 8px 8px; border-radius: var(--r-pill); background: var(--card); }
.vctl__btn { appearance: none; -webkit-appearance: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px 0 8px; border-radius: var(--r-pill); background: var(--ice); color: var(--ice-ink); font-size: 14px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; }
.vctl__ico { width: 30px; height: 30px; border-radius: 50%; background: var(--ice-ink); color: var(--ice); display: grid; place-items: center; }
.vctl__ico svg { width: 16px; height: 16px; }
.vctl__time { font-size: 14px; font-weight: 700; color: var(--white); }
.vctl__tag { margin-left: auto; font-size: 12px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.draft-tag { justify-self: start; display: inline-flex; margin: 0; padding: 3px 10px; border-radius: var(--r-pill); border: 1px solid var(--line); font-size: 11px; font-weight: 700; letter-spacing: .3px; color: var(--text-3); }
.slot__text { margin: 0; font-size: 15.5px; line-height: 1.55; color: var(--ink); }
.guide-list { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 12px; counter-reset: gl; }
.guide-list li { counter-increment: gl; display: grid; grid-template-columns: 24px 1fr; gap: 10px; font-size: 15px; line-height: 1.5; color: var(--ink); }
.guide-list li::before { content: counter(gl); width: 24px; height: 24px; border-radius: 50%; background: var(--ice-ink); color: var(--ice); display: grid; place-items: center; font-size: 11.5px; font-weight: 800; }
.guide-list--avoid li::before { content: "\00D7"; background: rgba(11,20,39,.08); color: var(--ink); font-size: 15px; }
.rx-sum { margin: 0 0 10px; font-size: 15px; font-weight: 800; color: var(--ink); }
.rx--4 { grid-template-columns: repeat(2, 1fr); }
.rx--filled dd, [data-rx-card] dd { font-size: clamp(16px, 4.6vw, 22px); white-space: nowrap; }
[data-rx-card] div { padding: 12px 10px; }
.rx--4 dd { font-size: 19px; white-space: normal; }
.rx-details { list-style: none; margin: 0 0 4px; padding: 0; display: grid; gap: 8px; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.rx-details strong { color: var(--ink); font-weight: 800; }
.rx-note { margin-top: 12px; padding: 12px 14px; border-radius: var(--r-in); background: var(--white); border: 1px solid var(--ink-line); }
.rx-note--drop { border-style: dashed; }
.rx-note__tag { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 4px; font-size: 12px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: var(--ink); }
.rx-note__tag span { padding: 2px 8px; border-radius: var(--r-pill); background: rgba(11,20,39,.08); font-size: 10.5px; color: var(--ink-2); }
.rx-note__txt { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--ink); }
@media (min-width: 960px) { .rx--4 { grid-template-columns: repeat(4, 1fr); } .rx--4 dd { font-size: 16px; } .rx--4 div { padding: 12px 10px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
