/* OETAce design system — "clinical light"
   Sister of RealPTE: same light-studio bones (airy canvas, white floating panels, layered shadow),
   its own voice: one deep clinical teal family, warm-grey neutrals, a single gradient moment.
   Depth comes from light and shadow, never from a dark background. */
:root {
  color-scheme: light;
  --paper: #FAF9F6;
  --paper-2: #F1F0EC;
  --paper-3: #E8E6E0;
  --card: #FFFFFF;
  --card-2: #F7F6F3;
  --ink: #0F1F1E;
  --ink-2: #3B4847;
  --mute: #6A7372;
  --line: rgba(15,31,30,.08);
  --line-2: rgba(15,31,30,.14);
  --t-900: #0A4746;
  --t-800: #0B5E5D;
  --t-700: #0E7C7B;
  --t-600: #10928F;
  --t-500: #17A9A3;
  --t-300: #7DD8CF;
  --t-200: #BDEBE5;
  --t-100: #DFF4F1;
  --t-50: #F0FAF8;
  --grad: linear-gradient(135deg, #0B6A69 0%, #0E7C7B 38%, #1BB3A6 100%);
  --glow: rgba(14,124,123,.30);
  /* status: "clears the line" is the accent itself; only two extra hues, both muted */
  --near: #9A5B00;
  --near-soft: #FFF2D9;
  --below: #B4441B;
  --below-soft: #FCE8DF;
  --sh-1: 0 1px 2px rgba(15,31,30,.05), 0 1px 3px rgba(15,31,30,.04);
  --sh-2: 0 2px 4px rgba(15,31,30,.03), 0 18px 50px -18px rgba(15,31,30,.20);
  --sh-3: 0 4px 10px rgba(15,31,30,.04), 0 40px 90px -30px rgba(15,31,30,.32);
  --f-display: "Bricolage Grotesque", "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --r: 22px;
  --r-m: 16px;
  --r-s: 12px;
  --wrap: 1320px;
  --gut: clamp(16px, 4vw, 40px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--f-body); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden; min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1 0 auto; }
h1, h2, h3, h4 { font-family: var(--f-display); margin: 0; letter-spacing: -0.02em; line-height: 1.12; text-wrap: balance; font-weight: 700; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { display: block; }
img { max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--t-600); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--t-200); }

.num { font-family: var(--f-mono); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.wrap { width: min(var(--wrap), 100%); margin-inline: auto; padding-inline: var(--gut); }
.wrap-n { width: min(880px, 100%); margin-inline: auto; padding-inline: var(--gut); }
.mute { color: var(--mute); }
.ink2 { color: var(--ink-2); }
.small { font-size: 14px; }
.tiny { font-size: 12.5px; }
.center { text-align: center; }
.stack > * + * { margin-top: var(--s, 12px); }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.spacer { flex: 1; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.link { color: var(--t-700); font-weight: 600; text-decoration: underline; text-decoration-color: var(--t-200); text-underline-offset: 3px; }
.link:hover { text-decoration-color: var(--t-600); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; min-height: 28px; padding: 3px 12px 3px 10px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--sh-1); font-family: var(--f-mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); }
.eyebrow::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 8px var(--glow); }
.kicker { font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--t-700); font-weight: 500; }

/* Glow wash — teal family only, never a dark ground */
.glow { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.glow i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .8; }
.glow .g1 { width: 760px; height: 560px; left: -220px; top: -240px; background: radial-gradient(closest-side, #BFEDE6, transparent); animation: drift 18s ease-in-out infinite alternate; }
.glow .g2 { width: 640px; height: 520px; right: -200px; top: -120px; background: radial-gradient(closest-side, #D3F1EC, transparent); animation: drift 22s ease-in-out infinite alternate-reverse; }
.glow .g3 { width: 620px; height: 460px; left: 38%; top: 280px; background: radial-gradient(closest-side, #E6F6F3, transparent); animation: drift 26s ease-in-out infinite alternate; }
.glow .g4 { width: 420px; height: 320px; right: 8%; top: 360px; background: radial-gradient(closest-side, rgba(27,179,166,.22), transparent); animation: drift 20s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate(40px, 26px) scale(1.06); } }
.grid-dots { position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(15,31,30,.09) 1px, transparent 1px); background-size: 22px 22px; mask-image: radial-gradient(ellipse 60% 55% at 50% 0%, #000 20%, transparent 72%); -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 0%, #000 20%, transparent 72%); pointer-events: none; }

/* ---------- Nav ---------- */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 60; padding-top: 12px; pointer-events: none; }
.nav-in { pointer-events: auto; display: flex; align-items: center; gap: 18px; height: 60px; padding: 0 8px 0 16px; border-radius: 999px; background: rgba(255,255,255,.78); border: 1px solid rgba(255,255,255,.95); box-shadow: 0 1px 0 rgba(15,31,30,.04), 0 14px 40px -16px rgba(15,31,30,.24); backdrop-filter: blur(18px) saturate(1.6); -webkit-backdrop-filter: blur(18px) saturate(1.6); }
.brand { display: inline-flex; align-items: center; font-family: var(--f-display); font-weight: 800; font-size: 19px; letter-spacing: -0.03em; white-space: nowrap; }
.brand .mark { flex: none; width: 28px; height: 28px; margin-right: 9px; border-radius: 9px; background: var(--grad); box-shadow: 0 6px 16px -4px var(--glow); position: relative; }
.brand .mark::before, .brand .mark::after { content: ""; position: absolute; background: #fff; border-radius: 2px; }
.brand .mark::before { left: 12px; top: 7px; width: 4px; height: 14px; }
.brand .mark::after { left: 7px; top: 12px; width: 14px; height: 4px; }
.brand b { color: var(--t-700); font-weight: 800; }
.nav-links { display: flex; gap: 2px; font-size: 14.5px; color: var(--ink-2); }
.nav-links a { padding: 8px 12px; border-radius: 999px; transition: background .15s ease, color .15s ease; white-space: nowrap; }
.nav-links a:hover { color: var(--ink); background: var(--paper-2); }
.nav-links a[aria-current="page"] { color: var(--t-800); background: var(--t-50); font-weight: 600; }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); align-items: center; justify-content: center; }
.menu-btn svg { width: 18px; height: 18px; stroke: var(--ink); fill: none; stroke-width: 2; stroke-linecap: round; }
.drawer { display: none; pointer-events: auto; margin-top: 10px; border: 1px solid var(--line); border-radius: var(--r); background: rgba(255,255,255,.96); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: var(--sh-2); padding: 8px 18px 18px; }
.drawer.open { display: block; animation: rise .25s ease both; }
.drawer a.dl { display: flex; align-items: center; justify-content: space-between; min-height: 48px; font-size: 17px; border-bottom: 1px solid var(--line); }
.drawer a.dl small { color: var(--mute); font-size: 13px; }
.drawer .row { padding-top: 14px; }
.drawer .row .btn { flex: 1; }
.acct-dot { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--t-100); color: var(--t-800); font-weight: 700; font-size: 14px; }
@media (max-width: 1040px) {
  .nav-links { display: none; }
  .nav-right .hide-m { display: none; }
  .menu-btn { display: inline-flex; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent; font-weight: 600; font-size: 15px; line-height: 1.2; white-space: nowrap; transition: transform .15s ease, box-shadow .2s ease, background .15s ease, border-color .15s ease, opacity .15s; text-align: center; }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn.is-disabled { opacity: .45; pointer-events: none; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 24px -8px var(--glow), 0 1px 0 rgba(255,255,255,.3) inset; }
.btn-primary:hover { box-shadow: 0 16px 32px -8px var(--glow), 0 1px 0 rgba(255,255,255,.3) inset; transform: translateY(-1px); }
.btn-ghost { border-color: var(--line-2); background: var(--card); color: var(--ink); box-shadow: var(--sh-1); }
.btn-ghost:hover { border-color: rgba(15,31,30,.24); transform: translateY(-1px); }
.btn-soft { background: var(--t-50); color: var(--t-800); border-color: var(--t-100); }
.btn-soft:hover { background: var(--t-100); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #1d3331; }
.btn-text { background: none; color: var(--t-700); padding: 0 8px; }
.btn-text:hover { color: var(--t-900); }
.btn-lg { min-height: 54px; padding: 0 28px; font-size: 16.5px; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 13.5px; }
.btn-block { width: 100%; }
.btn .ar { transition: transform .2s ease; }
.btn:hover .ar { transform: translateX(3px); }
.btn-wrap { white-space: normal; }

/* ---------- Surfaces ---------- */
.card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-1); }
.card.pad { padding: clamp(18px, 2.6vw, 28px); }
.card.deep { box-shadow: var(--sh-2); }
.card.float { box-shadow: var(--sh-3); }
.card.lift { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.card.lift:hover { transform: translateY(-4px); box-shadow: var(--sh-2); border-color: var(--line-2); }
.card.hot { background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box; border: 2px solid transparent; box-shadow: 0 24px 60px -24px var(--glow); }
.card.tint { background: linear-gradient(180deg, var(--t-50), #fff 70%); }
.panel-h { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 14px; }
.panel-h .dots3 { display: flex; gap: 6px; }
.panel-h .dots3 i { width: 9px; height: 9px; border-radius: 50%; background: var(--paper-3); }

.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 2px 10px; border-radius: 999px; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .02em; border: 1px solid var(--line); color: var(--ink-2); background: var(--card); white-space: nowrap; }
.chip.t { border-color: transparent; background: var(--t-100); color: var(--t-800); }
.chip.solid { border-color: transparent; background: var(--t-700); color: #fff; }
.chip.near { border-color: transparent; background: var(--near-soft); color: var(--near); }
.chip.below { border-color: transparent; background: var(--below-soft); color: var(--below); }
.chip.ghost { background: transparent; }
.pill { display: inline-flex; align-items: center; gap: 6px; min-height: 24px; padding: 0 9px; border-radius: 7px; font-family: var(--f-mono); font-size: 12px; font-weight: 500; white-space: nowrap; }
.pill.ok { background: var(--t-100); color: var(--t-800); }
.pill.near { background: var(--near-soft); color: var(--near); }
.pill.below { background: var(--below-soft); color: var(--below); }
.pill.neutral { background: var(--paper-2); color: var(--ink-2); }

/* ---------- Forms ---------- */
.field { display: grid; gap: 6px; }
.field > span, .label { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.input, .select, .textarea { width: 100%; min-height: 48px; padding: 11px 14px; border-radius: var(--r-s); border: 1px solid var(--line-2); background: #fff; font-size: 16px; transition: border-color .15s, box-shadow .15s; }
.select { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%233B4847' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--t-600); box-shadow: 0 0 0 4px var(--t-100); }
.textarea { resize: vertical; line-height: 1.6; }
.seg { display: inline-flex; padding: 4px; gap: 4px; background: var(--paper-2); border-radius: 999px; border: 1px solid var(--line); }
.seg button { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 0; background: transparent; font-weight: 600; font-size: 14.5px; color: var(--ink-2); transition: background .2s, color .2s, box-shadow .2s; white-space: nowrap; }
.seg button[aria-pressed="true"] { background: #fff; color: var(--t-800); box-shadow: var(--sh-1); }
.seg.full { display: flex; width: 100%; }
.seg.full button { flex: 1; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.check input { width: 20px; height: 20px; accent-color: var(--t-700); margin-top: 2px; flex: none; }

/* ---------- Sections ---------- */
.sec { padding-block: clamp(48px, 7vw, 96px); position: relative; }
.sec-h { display: grid; gap: 12px; max-width: 760px; margin-bottom: clamp(24px, 4vw, 44px); }
.sec-h h2 { font-size: clamp(28px, 4.2vw, 46px); }
.sec-h p { font-size: clamp(16px, 1.6vw, 18.5px); color: var(--ink-2); }
.page-h { position: relative; padding-block: clamp(28px, 5vw, 56px) clamp(18px, 3vw, 32px); }
.page-h h1 { font-size: clamp(32px, 5vw, 54px); margin-top: 14px; }
.page-h p.lead { margin-top: 12px; font-size: clamp(16px, 1.7vw, 19px); color: var(--ink-2); max-width: 720px; }
.grid { display: grid; gap: clamp(14px, 2vw, 22px); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

/* ---------- Home hero ---------- */
.hero { position: relative; padding-block: clamp(28px, 5vw, 64px) clamp(40px, 6vw, 80px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(38px, 5.6vw, 72px); line-height: 1.02; letter-spacing: -0.035em; margin-top: 18px; }
.hero .lead { margin-top: 18px; font-size: clamp(17px, 1.7vw, 20px); color: var(--ink-2); max-width: 600px; }
.picker { margin-top: 26px; padding: 18px; display: grid; gap: 14px; max-width: 600px; }
.picker-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: center; }
.picker-row .seg { justify-self: start; }
.lines { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.line-tile { padding: 10px 10px 9px; border-radius: 14px; background: var(--card-2); border: 1px solid var(--line); text-align: center; transition: background .3s; }
.line-tile b { display: block; font-family: var(--f-mono); font-size: 20px; letter-spacing: -0.03em; color: var(--ink); transition: color .3s; }
.line-tile span { font-size: 12px; color: var(--mute); }
.line-tile.up { background: var(--t-50); border-color: var(--t-100); }
.line-tile.up b { color: var(--t-800); }
.picker .note { font-size: 13px; color: var(--mute); }
.hero-cta { margin-top: 22px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.hero-cta .sub { font-size: 14px; color: var(--mute); }
.trust-row { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 8px; }

/* hero product moment: marked letter */
.stage { position: relative; min-height: 560px; }
.letter-panel { position: relative; z-index: 2; overflow: hidden; animation: rise .8s .15s cubic-bezier(.2,.8,.2,1) both; }
.letter-body { padding: 18px 22px 20px; font-size: 14.5px; line-height: 1.75; color: var(--ink-2); font-family: var(--f-body); }
.letter-body p + p { margin-top: 10px; }
.hl { background: linear-gradient(transparent 55%, rgba(27,179,166,.28) 55%); border-radius: 2px; padding: 0 1px; }
.hl.warn { background: linear-gradient(transparent 55%, rgba(255,180,60,.38) 55%); }
.hl.bad { background: linear-gradient(transparent 55%, rgba(225,110,70,.30) 55%); text-decoration: line-through; text-decoration-color: rgba(180,68,27,.55); }
.anno { position: absolute; z-index: 3; width: 260px; padding: 14px 16px; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-3); font-size: 13.5px; animation: rise .8s cubic-bezier(.2,.8,.2,1) both; }
.anno .tag { display: inline-flex; margin-bottom: 6px; }
.anno p { color: var(--ink-2); }
.anno .fix { margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: var(--t-50); color: var(--t-900); font-size: 13px; }
.crit-panel { position: absolute; z-index: 4; padding: 16px 18px; border-radius: 18px; background: rgba(255,255,255,.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,.9); box-shadow: var(--sh-3); animation: rise .8s .45s cubic-bezier(.2,.8,.2,1) both; }
.bubble-float { position: absolute; z-index: 4; max-width: 270px; padding: 12px 14px; border-radius: 18px 18px 18px 6px; background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-3); font-size: 13.5px; animation: rise .8s .7s cubic-bezier(.2,.8,.2,1) both, bob 6s 1.6s ease-in-out infinite; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes bob { 50% { transform: translateY(-6px); } }

@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; }
  .stage { min-height: 0; }
}

/* ---------- Criterion bars ---------- */
.crit { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: center; font-size: 13.5px; }
.crit + .crit { margin-top: 10px; }
.crit .nm { color: var(--ink-2); font-weight: 500; min-width: 0; }
.crit .sc { font-family: var(--f-mono); font-weight: 600; font-size: 13px; color: var(--ink); }
.crit .sc small { color: var(--mute); font-weight: 400; }
.crit .track { grid-column: 1 / -1; position: relative; height: 8px; border-radius: 999px; background: var(--paper-2); }
.crit .track i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: var(--grad); transform-origin: left; animation: grow 1.1s cubic-bezier(.2,.8,.2,1) both; }
.crit .track i.near { background: linear-gradient(90deg, #C98A1E, #E4A63B); }
.crit .track i.below { background: linear-gradient(90deg, #C2582D, #E07A4C); }
.crit .track b { position: absolute; top: -4px; width: 2px; height: 16px; border-radius: 2px; background: var(--ink); opacity: .55; }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- Score band (0–500 axis with range and regulator line) ---------- */
.band { position: relative; height: 44px; margin-top: 8px; }
.band .axis { position: absolute; left: 0; right: 0; top: 18px; height: 8px; border-radius: 999px; background: var(--paper-2); }
.band .rng { position: absolute; top: 14px; height: 16px; border-radius: 999px; background: var(--grad); box-shadow: 0 6px 16px -6px var(--glow); animation: grow 1s cubic-bezier(.2,.8,.2,1) both; transform-origin: left; }
.band .rng.near { background: linear-gradient(90deg, #C98A1E, #E4A63B); box-shadow: none; }
.band .rng.below { background: linear-gradient(90deg, #C2582D, #E07A4C); box-shadow: none; }
.band .ln { position: absolute; top: 6px; width: 2px; height: 32px; background: var(--ink); border-radius: 2px; }
.band .ln span { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); font-family: var(--f-mono); font-size: 11px; color: var(--ink); white-space: nowrap; background: var(--card); padding: 0 4px; border-radius: 4px; }
.band .ticks { position: absolute; left: 0; right: 0; top: 32px; display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 10.5px; color: var(--mute); }

/* ---------- Big score readout ---------- */
.score-hero { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 22px; align-items: center; }
.score-ring { position: relative; width: 148px; height: 148px; flex: none; }
.score-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.score-ring .v { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.score-ring .v b { font-family: var(--f-mono); font-size: 25px; letter-spacing: -0.04em; line-height: 1.05; }
.score-ring .v span { font-size: 12px; color: var(--mute); }
.verdict { font-family: var(--f-display); font-size: clamp(22px, 3vw, 30px); font-weight: 700; letter-spacing: -0.02em; }
.conf { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-2); }
.conf .meter { display: inline-flex; gap: 3px; }
.conf .meter i { width: 14px; height: 6px; border-radius: 3px; background: var(--paper-3); }
.conf .meter i.on { background: var(--t-600); }
@media (max-width: 560px) { .score-hero { grid-template-columns: 1fr; justify-items: start; } .score-ring { width: 128px; height: 128px; } }

/* ---------- Lists (test cards) ---------- */
.test-card { display: grid; gap: 14px; padding: 20px; }
.test-card h3 { font-size: 20px; }
.test-card .meta { display: flex; flex-wrap: wrap; gap: 6px; }
.test-card .foot-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: auto; }
.test-card.done { border-color: var(--t-200); }
.diff { display: inline-flex; gap: 3px; align-items: center; }
.diff i { width: 7px; height: 7px; border-radius: 50%; background: var(--paper-3); }
.diff i.on { background: var(--t-600); }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 20px; }
.empty { padding: 36px 24px; text-align: center; color: var(--ink-2); }
.empty h3 { font-size: 20px; margin-bottom: 8px; color: var(--ink); }
.icon-tile { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--t-50); border: 1px solid var(--t-100); color: var(--t-700); flex: none; }
.icon-tile svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-tile.solid { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 10px 22px -10px var(--glow); }

/* ---------- Waiting (every wait explains itself) ---------- */
.wait { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: start; padding: 20px; border-radius: var(--r-m); background: #fff; border: 1px solid var(--t-100); box-shadow: var(--sh-2); }
.spin { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--t-100); border-top-color: var(--t-600); animation: spin .9s linear infinite; flex: none; }
.spin.sm { width: 18px; height: 18px; border-width: 2px; }
@keyframes spin { to { transform: rotate(360deg); } }
.wait h4 { font-size: 17px; font-family: var(--f-body); font-weight: 700; letter-spacing: -0.01em; }
.wait p { color: var(--ink-2); font-size: 14.5px; margin-top: 4px; }
.wait .elapsed { font-family: var(--f-mono); font-size: 12.5px; color: var(--mute); margin-top: 8px; }
.wait ul { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; font-size: 14px; color: var(--ink-2); }
.wait li { display: flex; gap: 8px; align-items: center; }
.wait li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--t-300); flex: none; }
.skel { background: linear-gradient(90deg, var(--paper-2), #fff, var(--paper-2)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; border-radius: 10px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Notice / alerts ---------- */
.note-box { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-s); background: var(--t-50); border: 1px solid var(--t-100); font-size: 14.5px; color: var(--t-900); }
.note-box.near { background: var(--near-soft); border-color: #F6DFAE; color: #5C3A00; }
.note-box.below { background: var(--below-soft); border-color: #F4C9B7; color: #6B2610; }
.note-box svg { width: 18px; height: 18px; flex: none; margin-top: 2px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }

/* ---------- Toast & modal ---------- */
.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 200; max-width: min(520px, calc(100vw - 32px)); padding: 12px 18px; border-radius: 14px; background: var(--ink); color: #fff; font-size: 14.5px; box-shadow: var(--sh-3); animation: rise .25s ease both; }
.modal-bg { position: fixed; inset: 0; z-index: 150; background: rgba(15,31,30,.32); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); display: grid; place-items: center; padding: 16px; animation: fade .2s ease both; }
.modal { width: min(520px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: #fff; border-radius: var(--r); box-shadow: var(--sh-3); padding: 24px; animation: rise .25s ease both; }
.modal h3 { font-size: 22px; margin-bottom: 8px; }
.modal .row { margin-top: 18px; justify-content: flex-end; }
@keyframes fade { from { opacity: 0; } }

/* ---------- Footer ---------- */
.foot { margin-top: clamp(40px, 6vw, 80px); border-top: 1px solid var(--line); padding-block: 44px 40px; color: var(--mute); font-size: 14.5px; background: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 28px; }
.foot h4 { font-family: var(--f-body); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 10px; font-weight: 600; }
.foot a { display: block; padding: 6px 0; }
.foot a.brand { display: inline-flex; padding: 0; color: var(--ink); }
.foot a:hover { color: var(--ink); }
.foot .blurb { margin-top: 12px; max-width: 340px; }
.foot .legal { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: 13px; line-height: 1.55; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- Prose (legal/about) ---------- */
.prose { font-size: 16.5px; line-height: 1.7; color: var(--ink-2); }
.prose h2 { font-size: clamp(22px, 2.6vw, 28px); color: var(--ink); margin: 36px 0 10px; }
.prose h3 { font-size: 19px; color: var(--ink); margin: 24px 0 8px; }
.prose p, .prose ul, .prose ol { margin: 0 0 14px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 4px 0; }
.prose a { color: var(--t-700); text-decoration: underline; text-underline-offset: 3px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 8px 0 18px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.prose th { color: var(--ink); font-weight: 600; }

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.plan { display: flex; flex-direction: column; gap: 16px; padding: 26px; }
.plan h3 { font-size: 22px; }
.plan .price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.plan .price b { font-family: var(--f-display); font-size: 46px; letter-spacing: -0.04em; line-height: 1; }
.plan .price span { color: var(--mute); font-size: 15px; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 15px; color: var(--ink-2); }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li svg { width: 18px; height: 18px; flex: none; margin-top: 3px; stroke: var(--t-600); fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.plan .btn { margin-top: auto; }
.plan .badge { position: absolute; top: -13px; left: 24px; }
@media (max-width: 900px) { .price-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; } }

/* ============================================================
   EXAM SHELL (computer-based test replica)
   ============================================================ */
body.exam { background: #F4F3EF; }
.xbar { position: sticky; top: 0; z-index: 70; background: rgba(255,255,255,.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.xbar-in { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 8px var(--gut); max-width: 1600px; margin-inline: auto; }
.xbar .ttl { min-width: 0; display: grid; }
.xbar .ttl b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xbar .ttl span { font-size: 12.5px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xbar .brand { font-size: 17px; }
.xbar .brand .mark { width: 26px; height: 26px; }
.timer { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 999px; background: var(--card-2); border: 1px solid var(--line); font-family: var(--f-mono); font-size: 16px; font-weight: 600; white-space: nowrap; }
.timer svg { width: 16px; height: 16px; stroke: var(--t-700); fill: none; stroke-width: 2; }
.timer.warn { background: var(--near-soft); border-color: #F6DFAE; color: var(--near); }
.timer.crit { background: var(--below-soft); border-color: #F4C9B7; color: var(--below); animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .65; } }
.xmain { max-width: 1600px; margin-inline: auto; padding: 20px var(--gut) 120px; width: 100%; }
.xsplit { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.xsplit > .pane { min-width: 0; }
.pane-sticky { position: sticky; top: 80px; max-height: calc(100vh - 180px); overflow: auto; }
@media (max-width: 960px) {
  .xsplit { grid-template-columns: 1fr; }
  .pane-sticky { position: static; max-height: none !important; }
  .xsplit .aud-pane { order: -1; position: sticky; top: 62px; z-index: 20; }
  .xsplit .aud-pane .m-hide { display: none; }
  .xsplit .aud-pane #audcard { box-shadow: var(--sh-2); }
}
.rp-split { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
.m-switch, .m-switch.seg { display: none; margin-bottom: 14px; }
@media (max-width: 960px) {
  .m-switch, .m-switch.seg { display: flex; position: sticky; top: 66px; z-index: 15; box-shadow: var(--sh-2); background: rgba(241,240,236,.96); }
  .xsplit[data-show="t"] > .pane:nth-child(2), .xsplit[data-show="q"] > .pane:nth-child(1) { display: none; }
}
.xpart-h { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.xpart-h h2 { font-size: clamp(20px, 2.4vw, 26px); }
.xcard { background: #fff; border: 1px solid var(--line); border-radius: var(--r-m); box-shadow: var(--sh-1); padding: clamp(16px, 2.4vw, 24px); }
.xcard + .xcard { margin-top: 16px; }

/* Bottom navigator */
.xnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; background: rgba(255,255,255,.95); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom, 0px); }
.xnav-in { display: flex; align-items: center; gap: 10px; max-width: 1600px; margin-inline: auto; padding: 10px var(--gut); }
.qstrip { display: flex; gap: 6px; overflow-x: auto; flex: 1; min-width: 0; padding: 4px 2px; scrollbar-width: thin; }
.qb { position: relative; flex: none; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line-2); background: #fff; font-family: var(--f-mono); font-size: 12.5px; font-weight: 600; color: var(--ink-2); display: grid; place-items: center; transition: background .15s, border-color .15s; }
.qb.ans { background: var(--t-100); border-color: var(--t-200); color: var(--t-900); }
.qb.cur { border-color: var(--t-300); }
.qb.cur::before { content: ""; position: absolute; left: 8px; right: 8px; bottom: -6px; height: 3px; border-radius: 2px; background: var(--t-600); }
.qb.flag::after { content: ""; position: absolute; top: -3px; right: -3px; width: 10px; height: 10px; border-radius: 50%; background: #E4A63B; border: 2px solid #fff; }
.qb.locked { opacity: .4; }
.qb.right { background: var(--t-700); color: #fff; border-color: transparent; }
.qb.wrong { background: var(--below-soft); color: var(--below); border-color: #F4C9B7; }
.xnav .btn { flex: none; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--mute); }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; vertical-align: -2px; margin-right: 5px; border: 1px solid var(--line-2); }
.legend i.a { background: var(--t-100); border-color: var(--t-200); }
.legend i.f { background: #E4A63B; border-color: transparent; border-radius: 50%; }
.flag-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.flag-btn svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }
.flag-btn[aria-pressed="true"] { background: var(--near-soft); border-color: #F6DFAE; color: var(--near); }
.flag-btn[aria-pressed="true"] svg { fill: currentColor; }

/* Audio bar */
.aud { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 16px; border-radius: var(--r-m); background: linear-gradient(180deg, #fff, var(--t-50)); border: 1px solid var(--t-100); }
.aud .play { width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--grad); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 22px -10px var(--glow); }
.aud .play svg { width: 20px; height: 20px; fill: currentColor; }
.aud .play[disabled] { background: var(--paper-3); box-shadow: none; cursor: default; }
.aud .prog { height: 6px; border-radius: 999px; background: var(--t-100); overflow: hidden; }
.aud .prog i { display: block; height: 100%; width: 0; background: var(--grad); transition: width .25s linear; }
.aud .st { font-size: 13.5px; color: var(--ink-2); margin-bottom: 6px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.aud .tm { font-family: var(--f-mono); font-size: 13px; color: var(--mute); white-space: nowrap; }
.eq { display: inline-flex; gap: 2px; align-items: flex-end; height: 14px; }
.eq i { width: 3px; background: var(--t-600); border-radius: 2px; animation: eq 1s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: .2s; } .eq i:nth-child(3) { animation-delay: .4s; } .eq i:nth-child(4) { animation-delay: .1s; }
@keyframes eq { 0%, 100% { height: 4px; } 50% { height: 14px; } }

/* Case notes with gaps (Listening Part A) */
.notes { font-size: 16px; line-height: 2.05; }
.notes h4 { font-family: var(--f-body); font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--t-800); margin: 18px 0 2px; font-weight: 700; }
.notes h4:first-child { margin-top: 0; }
.notes .ln { padding-left: 2px; }
.gap { display: inline-flex; align-items: center; gap: 4px; vertical-align: baseline; }
.gap .qn { font-family: var(--f-mono); font-size: 11.5px; font-weight: 600; color: var(--t-800); background: var(--t-100); border-radius: 6px; padding: 1px 6px; line-height: 1.6; }
.gap input { width: 150px; max-width: 46vw; min-height: 32px; height: 32px; padding: 2px 10px; border-radius: 9px; border: 1px solid var(--line-2); background: #FFFEFB; font-size: 15.5px; transition: border-color .15s, box-shadow .15s; }
.gap input:focus { outline: none; border-color: var(--t-600); box-shadow: 0 0 0 3px var(--t-100); }
.gap.flagged input { border-color: #E4A63B; }
.gap.r input { border-color: var(--t-600); background: var(--t-50); }
.gap.w input { border-color: #E07A4C; background: var(--below-soft); }

/* MCQ */
.mcq { display: grid; gap: 10px; }
.mcq .qhead { display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; }
.mcq .qtext { font-weight: 600; font-size: 16.5px; line-height: 1.45; }
.mcq .qtext .qn { font-family: var(--f-mono); font-size: 12px; color: var(--t-800); background: var(--t-100); border-radius: 6px; padding: 2px 7px; margin-right: 8px; vertical-align: 2px; }
.opt { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: flex-start; padding: 12px 14px; min-height: 48px; border-radius: 12px; border: 1px solid var(--line-2); background: #fff; text-align: left; transition: border-color .15s, background .15s, box-shadow .15s; width: 100%; }
.opt:hover { border-color: var(--t-300); }
.opt .k { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; font-family: var(--f-mono); font-size: 12.5px; font-weight: 600; color: var(--ink-2); flex: none; }
.opt[aria-checked="true"] { border-color: var(--t-600); background: var(--t-50); box-shadow: 0 0 0 3px var(--t-100); }
.opt[aria-checked="true"] .k { background: var(--t-700); color: #fff; border-color: transparent; }
.opt.is-ans { border-color: var(--t-600); background: var(--t-50); }
.opt.is-ans .k { background: var(--t-700); color: #fff; border-color: transparent; }
.opt.is-wrong { border-color: #E9A487; background: var(--below-soft); }
.opt.is-wrong .k { background: var(--below); color: #fff; border-color: transparent; }
.opt.strike { opacity: .5; text-decoration: line-through; }

/* Reading passages */
.passage { font-size: 16.5px; line-height: 1.75; color: var(--ink); }
.passage h3 { font-size: 19px; margin-bottom: 8px; }
.passage p + p { margin-top: 10px; }
.passage table { border-collapse: collapse; font-size: 15px; margin: 10px 0; width: 100%; }
.passage td, .passage th { border: 1px solid var(--line-2); padding: 6px 8px; text-align: left; }
.passage ul { padding-left: 20px; margin: 8px 0; }
mark.hlt { background: #FFE58A; color: inherit; border-radius: 3px; padding: 0 1px; cursor: pointer; box-shadow: 0 0 0 1px rgba(200,150,0,.2); }
mark.evi { background: var(--t-200); color: inherit; border-radius: 3px; padding: 0 2px; }
.tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; }
.tab { flex: none; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; font-weight: 600; font-size: 14px; color: var(--ink-2); }
.tab[aria-selected="true"] { background: var(--ink); color: #fff; border-color: transparent; }
.tool-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tool { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.tool[aria-pressed="true"] { background: #FFF6CC; border-color: #F0D46A; color: #6B5300; }
.tool svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }

/* Pre-test lobby */
.lobby { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 900px) { .lobby { grid-template-columns: 1fr; } }
.mode-opt { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; padding: 16px; border-radius: var(--r-m); border: 1.5px solid var(--line-2); background: #fff; text-align: left; width: 100%; transition: border-color .15s, box-shadow .15s, background .15s; }
.mode-opt + .mode-opt { margin-top: 10px; }
.mode-opt[aria-checked="true"] { border-color: var(--t-600); background: var(--t-50); box-shadow: 0 0 0 4px var(--t-100); }
.mode-opt .rd { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-2); margin-top: 2px; position: relative; }
.mode-opt[aria-checked="true"] .rd { border-color: var(--t-700); }
.mode-opt[aria-checked="true"] .rd::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--t-700); }
.mode-opt b { display: block; font-size: 16px; }
.mode-opt span { font-size: 14px; color: var(--ink-2); }
.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.facts li { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 10px; font-size: 14.5px; color: var(--ink-2); }
.facts li b { font-family: var(--f-mono); font-size: 13px; color: var(--t-800); }

/* Results */
.res-top { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
@media (max-width: 960px) { .res-top { grid-template-columns: 1fr; } }
.cause-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cause { padding: 12px 14px; border-radius: 14px; background: var(--card-2); border: 1px solid var(--line); }
.cause b { font-family: var(--f-mono); font-size: 22px; letter-spacing: -0.03em; }
.cause span { display: block; font-size: 13px; color: var(--ink-2); }
.item-row { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); }
.item-row:first-child { border-top: 0; }
.item-row .qno { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-family: var(--f-mono); font-weight: 600; font-size: 13px; }
.item-row .qno.r { background: var(--t-100); color: var(--t-800); }
.item-row .qno.w { background: var(--below-soft); color: var(--below); }
.item-row .ans-line { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14.5px; }
.item-row .ans-line s { color: var(--below); }
.item-row .evi { margin-top: 8px; padding: 10px 12px; border-left: 3px solid var(--t-500); background: var(--t-50); border-radius: 0 10px 10px 0; font-size: 14.5px; color: var(--t-900); }
.item-row .why { margin-top: 8px; font-size: 14.5px; color: var(--ink-2); }
.item-row details { margin-top: 8px; font-size: 14px; color: var(--ink-2); }
.item-row summary { cursor: pointer; color: var(--t-700); font-weight: 600; min-height: 32px; display: flex; align-items: center; }

/* Speaking */
.cand-card { position: relative; overflow: hidden; }
.cand-card .cc-h { padding: 16px 20px; background: var(--grad); color: #fff; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.cand-card .cc-h b { font-size: 17px; font-family: var(--f-display); }
.cand-card .cc-b { padding: 18px 20px 20px; }
.cand-card .cc-b h4 { font-family: var(--f-body); font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--t-800); margin: 14px 0 6px; }
.cand-card .cc-b h4:first-child { margin-top: 0; }
.cand-card ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.chat { display: grid; gap: 12px; align-content: start; }
.bub { max-width: min(560px, 88%); padding: 12px 16px; border-radius: 18px; font-size: 15.5px; line-height: 1.5; animation: rise .3s ease both; }
.bub small { display: block; font-size: 11.5px; font-family: var(--f-mono); color: var(--mute); margin-bottom: 3px; }
.bub.pt { background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-1); border-bottom-left-radius: 6px; }
.bub.me { margin-left: auto; background: var(--t-700); color: #fff; border-bottom-right-radius: 6px; }
.bub.me small { color: rgba(255,255,255,.7); }
.bub.sys { margin-inline: auto; max-width: 100%; background: var(--paper-2); color: var(--ink-2); font-size: 13.5px; text-align: center; border-radius: 12px; }
.bub.ghost { opacity: .7; font-style: italic; }
.mic-dock { position: sticky; bottom: 0; z-index: 5; padding: 14px 0 calc(14px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(180deg, rgba(244,243,239,0), #F4F3EF 30%); }
.mic-panel { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: center; padding: 14px 16px; border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-3); }
.orb { position: relative; width: 64px; height: 64px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--paper-2); color: var(--ink-2); flex: none; transition: background .2s; }
.orb svg { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }
.orb .ring { position: absolute; inset: -6px; border-radius: 50%; border: 3px solid var(--t-300); opacity: 0; transform: scale(var(--lvl, 1)); transition: transform .08s linear, opacity .2s; }
.orb.live { background: var(--grad); color: #fff; box-shadow: 0 12px 28px -10px var(--glow); }
.orb.live .ring { opacity: .8; }
.orb.busy { background: var(--t-50); color: var(--t-700); }
.mic-state b { display: block; font-size: 16px; }
.mic-state span { font-size: 13.5px; color: var(--ink-2); }
.mic-actions { grid-column: 1 / -1; display: flex; gap: 10px; flex-wrap: wrap; }
.mic-actions .btn-primary { flex: 1 1 220px; }
.typed { display: flex; gap: 8px; grid-column: 1 / -1; }
.typed .input { flex: 1; }
.prep-notes { min-height: 220px; font-size: 15.5px; }
.level { height: 8px; border-radius: 999px; background: var(--paper-2); overflow: hidden; }
.level i { display: block; height: 100%; width: 0; background: var(--grad); transition: width .08s linear; }
.fix-card { padding: 16px; border-radius: var(--r-m); border: 1px solid var(--line); background: #fff; }
.fix-card + .fix-card { margin-top: 12px; }
.fix-card .said { font-size: 14.5px; color: var(--below); }
.fix-card .better { margin-top: 6px; font-size: 15.5px; color: var(--t-900); font-weight: 600; }
.fix-card .why { margin-top: 6px; font-size: 14px; color: var(--ink-2); }
.quote { margin-top: 8px; padding: 9px 12px; border-left: 3px solid var(--t-300); background: var(--card-2); border-radius: 0 10px 10px 0; font-size: 14px; color: var(--ink-2); }
.quote .t { font-family: var(--f-mono); font-size: 11px; color: var(--mute); margin-right: 6px; }
.crit-block { padding: 14px 0; border-top: 1px solid var(--line); }
.crit-block:first-of-type { border-top: 0; }
.crit-block summary { list-style: none; cursor: pointer; }
.crit-block summary::-webkit-details-marker { display: none; }
.ind { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ind span { font-family: var(--f-mono); font-size: 11.5px; padding: 3px 8px; border-radius: 6px; background: var(--paper-2); color: var(--mute); }
.ind span.on { background: var(--t-100); color: var(--t-800); }
.task-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.task-list li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; font-size: 14.5px; }
.tick { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--t-100); color: var(--t-800); }
.tick.no { background: var(--below-soft); color: var(--below); }
.tick svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

/* Writing */
.case-notes { font-size: 15px; line-height: 1.6; }
.case-notes h4 { font-family: var(--f-body); font-size: 13px; text-transform: uppercase; letter-spacing: .07em; color: var(--t-800); margin: 16px 0 6px; }
.case-notes h4:first-child { margin-top: 0; }
.case-notes ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.case-notes li { padding: 3px 8px; border-radius: 8px; }
.cn-tri li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); background: #fff; margin-bottom: 6px; }
.tri-btns { display: inline-flex; gap: 4px; }
.tri-btns button { min-height: 36px; min-width: 64px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.tri-btns button[aria-pressed="true"].inc { background: var(--t-700); color: #fff; border-color: transparent; }
.tri-btns button[aria-pressed="true"].om { background: var(--ink-2); color: #fff; border-color: transparent; }
.cn-tri li.ok { border-color: var(--t-200); background: var(--t-50); }
.cn-tri li.bad { border-color: #F4C9B7; background: var(--below-soft); }
.cn-tri .fb { grid-column: 1 / -1; font-size: 13.5px; color: var(--ink-2); }
.editor-wrap { position: relative; }
.editor { width: 100%; min-height: 520px; padding: 18px 20px; border-radius: var(--r-m); border: 1px solid var(--line-2); background: #fff; font-family: var(--f-body); font-size: 16px; line-height: 1.7; resize: vertical; }
.editor:focus { outline: none; border-color: var(--t-600); box-shadow: 0 0 0 4px var(--t-100); }
.editor[readonly] { background: var(--card-2); color: var(--mute); }
.lock-veil { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; border-radius: var(--r-m); background: rgba(250,249,246,.72); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); text-align: center; }
.lock-veil .card { padding: 20px 22px; max-width: 360px; }
.wc { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; color: var(--ink-2); margin-top: 10px; }
.wc .meter { flex: 1; min-width: 120px; height: 6px; border-radius: 999px; background: var(--paper-2); position: relative; overflow: hidden; }
.wc .meter i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--grad); border-radius: 999px; transition: width .2s; }
.wc .meter .zone { position: absolute; top: 0; bottom: 0; background: rgba(14,124,123,.18); }
.letter-out { white-space: pre-wrap; font-size: 15.5px; line-height: 1.75; padding: clamp(16px, 2.4vw, 26px); }
.letter-out mark { background: linear-gradient(transparent 50%, rgba(255,190,70,.45) 50%); color: inherit; cursor: pointer; border-radius: 2px; padding: 0 1px; transition: background .15s; }
.letter-out mark.sel { background: rgba(255,190,70,.55); box-shadow: 0 0 0 2px rgba(220,150,20,.35); }
.letter-out mark .ctag { font-family: var(--f-mono); font-size: 10px; vertical-align: super; color: var(--near); margin-left: 1px; }
.cov { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.cov li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; background: var(--card-2); font-size: 14px; }
.anno-pop { position: sticky; top: 80px; }

/* Dashboard */
.dash-grid { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 960px) { .dash-grid { grid-template-columns: 1fr; } }
.sub-tile { padding: 20px; display: grid; gap: 6px; }
.sub-tile h3 { font-size: 19px; }
.sub-tile .big { font-family: var(--f-mono); font-size: 28px; letter-spacing: -0.04em; font-weight: 600; }
.spark { height: 36px; width: 100%; }
.verdict-card { padding: 24px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: center; }
.verdict-card .vi { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; }
.verdict-card .vi svg { width: 28px; height: 28px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.verdict-card.v-go { background: linear-gradient(135deg, #fff 40%, var(--t-50)); border-color: var(--t-200); box-shadow: 0 24px 60px -28px var(--glow); }
.verdict-card.v-go .vi { background: var(--grad); color: #fff; }
.verdict-card.v-wait .vi { background: var(--near-soft); color: var(--near); }
.verdict-card.v-none .vi { background: var(--paper-2); color: var(--ink-2); }

/* Home extras */
.room { padding: 22px; display: flex; flex-direction: column; gap: 14px; overflow: hidden; }
.room h3 { font-size: 22px; }
.room p { color: var(--ink-2); font-size: 15px; }
.room .mini { margin-top: auto; padding: 14px; border-radius: 14px; background: var(--card-2); border: 1px solid var(--line); font-size: 13.5px; }
.step-num { font-family: var(--f-mono); font-size: 12px; color: var(--t-700); }
.who { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.who .card { padding: 16px 18px; }
.who b { display: block; font-size: 16px; }
.who span { font-size: 14px; color: var(--ink-2); }
.faq details { padding: 18px 0; border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; min-height: 32px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--f-mono); font-size: 20px; color: var(--t-700); transition: transform .2s; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 10px; color: var(--ink-2); max-width: 760px; }
.cta-band { position: relative; overflow: hidden; padding: clamp(28px, 5vw, 56px); border-radius: 28px; background: linear-gradient(135deg, var(--t-900), var(--t-700) 55%, #1BB3A6); color: #fff; box-shadow: 0 40px 80px -40px var(--glow); }
.cta-band h2 { font-size: clamp(28px, 4vw, 44px); }
.cta-band p { color: rgba(255,255,255,.85); margin-top: 10px; max-width: 620px; font-size: 17px; }
.cta-band .btn-ghost { border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.12); color: #fff; box-shadow: none; }
.cta-band .btn-light { background: #fff; color: var(--t-900); }
.cta-band::after { content: ""; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,255,255,.25), transparent); }

/* Reveal on scroll */
.rv { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.rv.in { opacity: 1; transform: none; }

@media (max-width: 420px) {
  .btn-lg { padding: 0 22px; }
  .lines { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .rv { opacity: 1; transform: none; } }
@media print { .nav, .xbar, .xnav, .foot, .mic-dock { display: none !important; } body { background: #fff; } }
@media (max-width: 520px) {
  .picker-row { grid-template-columns: 1fr; gap: 8px; }
  .hide-xs { display: none !important; }
}

/* List page layout */
.lay { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(16px, 2vw, 24px); align-items: start; }
.lay > aside { display: grid; gap: 16px; position: sticky; top: 92px; }
@media (max-width: 960px) { .lay { grid-template-columns: 1fr; } .lay > aside { position: static; } }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: clamp(14px, 2vw, 20px); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; counter-reset: st; }
.steps li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; font-size: 14.5px; color: var(--ink-2); counter-increment: st; }
.steps li::before { content: counter(st); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--t-50); border: 1px solid var(--t-100); color: var(--t-800); font-family: var(--f-mono); font-size: 12.5px; font-weight: 600; }
.steps li b { display: block; color: var(--ink); font-size: 15px; }
.m-only { display: none; }
details.m-card > summary { list-style: none; }
details.m-card > summary::-webkit-details-marker { display: none; }
@media (max-width: 960px) { .m-only { display: inline-flex; } }
@media (min-width: 961px) { details.m-card > summary { display: none; } }
@media (max-width: 960px) { .rp-split { grid-template-columns: 1fr; } }
.grid > .xcard + .xcard { margin-top: 0; }
.crit-block summary::after { content: "Show evidence"; display: inline-block; margin-top: 6px; font-size: 12.5px; font-weight: 600; color: var(--t-700); }
.crit-block[open] summary::after { content: "Hide evidence"; }
.w-split { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.r-split { grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); }
@media (max-width: 960px) { .w-split, .r-split { grid-template-columns: 1fr; } }
.prose code { font-family: var(--f-mono); font-size: .9em; background: var(--paper-2); padding: 1px 6px; border-radius: 6px; }
.prose .btn { text-decoration: none; }
@media (max-width: 960px) { .dash-grid > aside { order: 2; } }
@media (max-width: 520px) { .verdict-card { grid-template-columns: 1fr; gap: 12px; padding: 20px; } .verdict-card .vi { width: 48px; height: 48px; border-radius: 14px; } }
.gflag { width: 30px; height: 30px; border-radius: 8px; border: 0; background: transparent; color: var(--paper-3); display: inline-grid; place-items: center; margin-left: -2px; }
.gflag svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }
.gflag:hover { color: var(--mute); background: var(--paper-2); }
.gflag[aria-pressed="true"] { color: #D99A2E; }
.gflag[aria-pressed="true"] svg { fill: currentColor; }
.gap { white-space: nowrap; }
@media (max-width: 520px) {
  .aud { grid-template-columns: auto minmax(0, 1fr); gap: 12px; padding: 12px; }
  .aud .tm { grid-column: 2; margin-top: -4px; }
  .aud .play { width: 44px; height: 44px; }
  .gap input { width: 132px; }
}

/* ============================================================
   SCORE LINES (/requirements, /requirements/<slug>) + I FAILED (/failed)
   Owned by the requirements builder (tools/build_requirements.py). Appended block; uses existing tokens only.
   ============================================================ */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 13.5px; color: var(--mute); margin-bottom: 14px; }
.crumbs a { color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.crumbs a:hover { color: var(--t-800); }
.crumbs .sep { color: var(--paper-3); }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }
.answer { color: var(--ink-2); }
.page-h .answer.lead { max-width: 860px; color: var(--ink); font-size: clamp(17px, 1.8vw, 20px); line-height: 1.5; }
.rq-chips { margin-top: 18px; gap: 8px; }
.rq-chips a.chip:hover { border-color: var(--t-300); color: var(--t-800); }
.rq-h2 { font-size: clamp(19px, 2vw, 23px); margin-bottom: 12px; }
.rq-h3 { font-size: 17.5px; margin-bottom: 8px; }
.rq-sec { margin-top: clamp(36px, 5vw, 64px); }
.rq-sec .sec-h { margin-bottom: 18px; max-width: 900px; }
.rq-sec .sec-h h2 { font-size: clamp(24px, 3vw, 34px); }
.rq-sec .sec-h .answer { font-size: clamp(16px, 1.5vw, 18px); }

/* tool */
.rq-tool { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: clamp(16px, 2vw, 24px); align-items: start; }
.rq-pick { display: grid; gap: 16px; position: sticky; top: 92px; }
.rq-pick .rq-h2 { margin-bottom: 0; }
.rq-out { padding: clamp(18px, 2.6vw, 30px); display: grid; gap: 16px; animation: rise .5s cubic-bezier(.2,.8,.2,1) both; }
.rq-out-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.rq-out-h h3 { font-size: clamp(20px, 2.4vw, 26px); margin-top: 4px; }
.rq-out .answer { font-size: 15.5px; }
.rq-out-cta { gap: 12px; }
.rq-lines { margin-top: 4px; }
.rq-lines .line-tile { padding: 14px 10px 12px; }
.rq-lines .line-tile b { font-size: clamp(22px, 2.6vw, 30px); }
.rq-lines .line-tile span { font-size: 13px; }
.rq-flexnote { margin-top: 8px; }
.rq-facts { margin: 0; display: grid; gap: 0; }
.rq-facts > div { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 4px 16px; padding: 11px 0; border-top: 1px solid var(--line); }
.rq-facts > div:first-child { border-top: 0; }
.rq-facts dt { font-weight: 600; font-size: 14px; color: var(--ink); }
.rq-facts dd { margin: 0; font-size: 14.5px; color: var(--ink-2); min-width: 0; }
.rq-recent + .rq-recent { margin-top: 10px; }
.rq-recent b { font-weight: 700; }
@media (max-width: 960px) { .rq-tool { grid-template-columns: 1fr; } .rq-pick { position: static; } }
@media (max-width: 560px) { .rq-facts > div { grid-template-columns: 1fr; } }

/* recent change cards */
.rq-change { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.rq-change .rq-h3 { margin: 2px 0 0; }
.rq-change .link { margin-top: auto; }

/* comparison table: a real table on desktop, stacked cards on small screens */
.cmp-wrap { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-2); overflow: hidden; }
.cmp { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.cmp thead th { position: sticky; top: 0; background: var(--card-2); text-align: left; font-size: 12.5px; font-weight: 600; letter-spacing: .02em; color: var(--ink-2); padding: 12px 12px; border-bottom: 1px solid var(--line-2); }
.cmp th, .cmp td { padding: 12px; vertical-align: top; border-bottom: 1px solid var(--line); text-align: left; }
.cmp tbody tr:last-child > * { border-bottom: 0; }
.cmp tbody tr { transition: background .15s; }
.cmp tbody tr:hover { background: var(--t-50); }
.cmp th[scope="row"] { font-weight: 600; min-width: 190px; }
.cmp th[scope="row"] small { display: block; font-weight: 400; font-size: 12.5px; color: var(--mute); margin-top: 2px; }
.cmp .n { text-align: right; font-size: 15.5px; font-weight: 600; white-space: nowrap; }
.cmp thead .n { text-align: right; }
.cmp .pill { white-space: normal; min-height: 0; padding: 4px 9px; line-height: 1.35; font-size: 12px; }
@media (max-width: 1100px) and (min-width: 901px) { .cmp { font-size: 13.5px; } .cmp th, .cmp td { padding: 10px 8px; } .cmp th[scope="row"] { min-width: 150px; } }
@media (max-width: 900px) {
  .cmp-wrap { background: none; border: 0; box-shadow: none; overflow: visible; }
  .cmp, .cmp tbody { display: block; }
  .cmp thead { display: none; }
  .cmp tr { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 10px; padding: 16px; margin-bottom: 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-m); box-shadow: var(--sh-1); }
  .cmp th, .cmp td { padding: 0; border: 0; }
  .cmp th[scope="row"] { grid-column: 1 / -1; min-width: 0; font-size: 16px; }
  .cmp td.n { text-align: left; padding: 8px 10px; border-radius: 12px; background: var(--card-2); border: 1px solid var(--line); font-size: 18px; }
  .cmp td.n::before { content: attr(data-l); display: block; font-family: var(--f-body); font-size: 11.5px; font-weight: 500; color: var(--mute); letter-spacing: 0; }
  .cmp td:not(.n) { grid-column: 1 / -1; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 14px; }
  .cmp td:not(.n)::before { content: attr(data-l); font-size: 13px; color: var(--mute); }
  .cmp td .pill { justify-self: start; }
}
@media (max-width: 380px) { .cmp tr { gap: 8px 6px; padding: 14px; } .cmp td.n { padding: 7px 7px; font-size: 16px; } }

/* answer cards + bottom */
.rq-q { display: grid; gap: 10px; align-content: start; }
.rq-q .rq-h2 { margin-bottom: 0; }
.rq-q .rq-facts dt { font-size: 13.5px; }
.rq-q .rq-facts > div { grid-template-columns: 1fr; }
.rq-bottom { align-items: start; }
.rq-sources { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 10px; font-size: 14.5px; }
.rq-sources li { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.rq-sources .link { overflow-wrap: anywhere; }
.faq details:first-child { border-top: 0; padding-top: 4px; }

/* per-regulator page */
.rq-page { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(16px, 2vw, 24px); align-items: start; }
.rq-main { display: grid; gap: clamp(14px, 2vw, 20px); min-width: 0; }
.rq-side { display: grid; gap: 16px; position: sticky; top: 92px; }
.rq-cta { display: grid; gap: 12px; }
.rq-cta .rq-h2 { margin-bottom: 0; }
.rq-cta .btn { white-space: normal; }
.rq-rels { display: grid; gap: 8px; margin-bottom: 12px; }
.rq-rel { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--card-2); transition: border-color .15s, background .15s; }
.rq-rel:hover { border-color: var(--t-200); background: var(--t-50); }
.rq-rel b { font-size: 15px; }
.rq-rel span { font-size: 12.5px; color: var(--mute); }
.rq-levels { display: grid; gap: 14px; }
.rq-level { padding: 14px; border-radius: var(--r-m); border: 1px solid var(--line); background: var(--card-2); }
.rq-level h3 { font-size: 17px; }
.rq-level .lines { margin-top: 10px; }
.rq-level .line-tile { background: #fff; }
.rq-changes { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.rq-changes li { display: grid; gap: 6px; justify-items: start; }
.rq-changes p { font-size: 15px; color: var(--ink-2); }
.rq-block .note-box { margin-top: 14px; }
@media (max-width: 960px) { .rq-page { grid-template-columns: 1fr; } .rq-side { position: static; } }

/* /failed */
.fx-grid { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: clamp(16px, 2vw, 24px); align-items: start; }
.fx-form { display: grid; gap: 16px; position: sticky; top: 92px; }
.fx-form .rq-h2 { margin-bottom: 0; }
.fx-set { border: 0; padding: 0; margin: 0; display: grid; gap: 12px; min-width: 0; }
.fx-set legend { font-weight: 700; font-size: 15px; padding: 0; margin-bottom: 10px; }
.fx-scores { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.fx-scores .field > span { font-size: 12.5px; }
.fx-scores .input { padding: 10px 8px; text-align: center; font-family: var(--f-mono); font-size: 17px; -moz-appearance: textfield; }
.fx-scores .input::-webkit-outer-spin-button, .fx-scores .input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.fx-form .btn-text { justify-self: start; min-height: 44px; padding: 0 2px; }
.fx-out { display: grid; gap: 16px; min-width: 0; scroll-margin-top: 96px; }
.fx-empty { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: start; }
.fx-rows { display: grid; gap: 14px; margin-top: 8px; }
.fx-row-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fx-row-h b { font-size: 15.5px; min-width: 84px; }
.fx-row-h .num { font-size: 18px; font-weight: 600; }
.fx-need { margin: 10px 0; padding-left: 20px; display: grid; gap: 6px; font-size: 15px; color: var(--ink-2); }
.fx-facts { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; font-size: 14.5px; color: var(--ink-2); }
.fx-facts li { padding: 10px 12px; border-radius: 12px; background: var(--card-2); border: 1px solid var(--line); }
.fx-weeks { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 12px; counter-reset: wk; }
.fx-weeks > li { padding: 14px 16px; border-radius: var(--r-m); border: 1px solid var(--line); background: linear-gradient(180deg, #fff, var(--card-2)); }
.fx-weeks h4 { font-family: var(--f-body); font-size: 15px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 8px; color: var(--t-900); }
.fx-weeks ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 14.5px; color: var(--ink-2); }
.fx-weeks ul .chip { margin-right: 4px; vertical-align: 1px; }
.fx-out .card.pad > p + p { margin-top: 8px; }
@media (max-width: 960px) { .fx-grid { grid-template-columns: 1fr; } .fx-form { position: static; } }
@media (max-width: 400px) { .fx-scores { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rq-jump { display: grid; gap: 2px; padding-top: 14px; border-top: 1px solid var(--line); }
.rq-jump .label { margin-bottom: 4px; }
.rq-jump a { display: flex; align-items: center; min-height: 40px; padding: 0 10px; margin: 0 -10px; border-radius: 10px; font-size: 14.5px; color: var(--ink-2); transition: background .15s, color .15s; }
.rq-jump a::after { content: "→"; margin-left: auto; color: var(--t-600); }
.rq-jump a:hover { background: var(--t-50); color: var(--t-800); }
[id="changes"], [id="compare"], [id="combine"], [id="athome"] { scroll-margin-top: 96px; }
@media (min-width: 901px) { .cmp td.d { white-space: nowrap; } }
/* ---- end SCORE LINES + I FAILED ---- */

/* == funnel == (stream 2: nav menu, home picker, readiness dashboard, pricing, list-page rules, install hint) */
.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; }
.seg button[aria-checked="true"] { background: #fff; color: var(--t-800); box-shadow: var(--sh-1); }
/* nav: Practise menu */
.nav-links { align-items: center; }
.nav-dd { position: relative; }
.nav-dd-btn { display: inline-flex; align-items: center; gap: 4px; padding: 8px 10px 8px 12px; border: 0; border-radius: 999px; background: transparent; font: inherit; color: inherit; cursor: pointer; transition: background .15s, color .15s; }
.nav-dd-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.nav-dd-btn:hover, .nav-dd.open .nav-dd-btn { color: var(--ink); background: var(--paper-2); }
.nav-dd-btn.cur { color: var(--t-800); background: var(--t-50); font-weight: 600; }
.nav-dd.open .nav-dd-btn svg { transform: rotate(180deg); }
.nav-dd-panel { position: absolute; top: calc(100% + 12px); left: -8px; width: 290px; padding: 8px; border-radius: 18px; background: rgba(255,255,255,.98); border: 1px solid var(--line); box-shadow: var(--sh-3); display: grid; gap: 2px; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s ease, transform .18s ease, visibility .18s; }
.nav-dd.open .nav-dd-panel { opacity: 1; visibility: visible; transform: none; }
.nav-links .nav-dd-panel a { display: grid; gap: 1px; padding: 10px 12px; border-radius: 12px; white-space: normal; }
.nav-dd-panel a b { font-size: 15px; color: var(--ink); font-weight: 600; }
.nav-dd-panel a small { font-size: 12.5px; color: var(--mute); }
.nav-links .nav-dd-panel a:hover { background: var(--t-50); }
.nav-links .nav-dd-panel a[aria-current="page"] { background: var(--t-50); }
.drawer { max-height: calc(100vh - 96px); max-height: calc(100dvh - 96px); overflow-y: auto; overscroll-behavior: contain; }
.drawer .dh { display: block; padding: 14px 0 2px; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--t-700); }
.drawer a.dl[aria-current="page"] { color: var(--t-800); font-weight: 600; }
@media (max-width: 1180px) and (min-width: 1041px) { .nav-links a, .nav-dd-btn { padding-inline: 9px; } .nav-links { font-size: 14px; } }

/* home picker: country -> profession -> regulator */
.picker .pk-q { display: grid; gap: 8px; }
.pk-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pk-chip { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; font-weight: 600; font-size: 14.5px; color: var(--ink-2); transition: background .15s, color .15s, border-color .15s, box-shadow .15s; }
.pk-chip:hover { border-color: var(--t-300); color: var(--ink); }
.pk-chip[aria-checked="true"] { background: var(--t-700); border-color: var(--t-700); color: #fff; box-shadow: 0 8px 18px -10px var(--glow); }
.pk-prof { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pk-other .select { min-height: 48px; width: auto; max-width: 100%; font-size: 14.5px; font-weight: 600; color: var(--ink-2); border-radius: 999px; padding-left: 16px; }
.pk-other .select.on { border-color: var(--t-600); color: var(--t-800); background-color: var(--t-50); }
.pk-out { display: grid; gap: 10px; padding-top: 4px; border-top: 1px solid var(--line); }
.pk-out .lines { margin-top: 10px; }
.pk-reg { font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.pk-alt { margin: 0 4px; min-height: 32px; padding: 2px 26px 2px 10px; border-radius: 10px; border: 1px solid var(--line-2); font: inherit; font-size: 13.5px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7' fill='none' stroke='%233B4847' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M1 1.5l4 4 4-4'/%3E%3C/svg%3E") no-repeat right 9px center; appearance: none; -webkit-appearance: none; max-width: 100%; }
.taster { margin-top: 16px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; max-width: 600px; padding: 12px 14px; border-radius: 16px; border: 1px dashed var(--t-200); background: rgba(255,255,255,.6); font-size: 14.5px; color: var(--ink-2); transition: background .2s, border-color .2s, transform .2s; }
.taster:hover { background: #fff; border-color: var(--t-300); transform: translateY(-1px); }
.taster b { color: var(--ink); }
.taster .tz-i { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--t-50); color: var(--t-700); }
.taster .tz-i svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.taster .tz-go { color: var(--t-700); font-size: 18px; }

/* readiness dashboard */
.dash-main { display: grid; gap: 20px; min-width: 0; }
.tgt { display: grid; gap: 14px; position: sticky; top: 92px; }
.tgt-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tgt-h h2 { font-size: 19px; }
.tgt-toggle, .tgt-sum { display: none; }
.tgt-form { display: grid; gap: 14px; }
.tgt .select:disabled { opacity: 1; color: var(--ink); background-image: none; background-color: var(--card-2); }
@media (max-width: 960px) {
  .dash-grid > aside.tgt { order: 0; position: static; }
  .tgt-toggle { display: inline-flex; }
  .tgt-sum { display: block; font-size: 14.5px; color: var(--ink-2); margin-top: -6px; }
  .tgt.closed .tgt-form { display: none; }
  .tgt:not(.closed) .tgt-sum { display: none; }
}
.verdict-card .verdict { font-family: var(--f-display); font-weight: 700; font-size: clamp(20px, 2.2vw, 25px); letter-spacing: -0.02em; line-height: 1.2; }
.calib { margin-top: 12px; display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--mute); }
.calib svg { width: 15px; height: 15px; flex: none; margin-top: 2px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.plan { display: grid; gap: 16px; }
.plan-h { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: center; }
.plan-h h2 { font-size: 20px; }
.cd { display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 12px; border-radius: 16px; background: var(--t-50); border: 1px solid var(--t-100); color: var(--t-900); }
.cd b { font-family: var(--f-mono); font-size: 30px; font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.cd span { font-size: 13px; line-height: 1.3; }
.cd small { color: var(--mute); }
.cd.soon { background: var(--near-soft); border-color: #F6DFAE; color: #5C3A00; }
.cd.past { background: var(--paper-2); border-color: var(--line); color: var(--ink-2); }
.cd-empty { border-style: dashed; cursor: pointer; font: inherit; min-height: 56px; }
.cd-empty b { font-size: 24px; }
.wk { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.wk li { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 6px 12px 6px 6px; border-radius: 14px; background: var(--card-2); border: 1px solid var(--line); transition: background .2s, opacity .2s; }
.wk li:hover { background: #fff; }
.wk a { display: grid; gap: 2px; padding: 6px 0; min-width: 0; }
.wk a b { font-size: 15px; color: var(--ink); line-height: 1.35; }
.wk a span { font-size: 13.5px; color: var(--ink-2); }
.wk-m { font-family: var(--f-mono); font-size: 12px; color: var(--mute); white-space: nowrap; }
.wk-c { width: 44px; height: 44px; border-radius: 12px; border: 0; background: transparent; display: grid; place-items: center; cursor: pointer; }
.wk-c svg { width: 22px; height: 22px; padding: 3px; border-radius: 7px; border: 1.6px solid var(--line-2); background: #fff; fill: none; stroke: transparent; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; transition: background .2s, stroke .2s, border-color .2s; }
.wk-c[aria-pressed="true"] svg { background: var(--t-700); border-color: var(--t-700); stroke: #fff; }
.wk li.done a b { text-decoration: line-through; text-decoration-color: var(--t-300); color: var(--ink-2); }
@media (max-width: 520px) { .plan-h { grid-template-columns: 1fr; } .cd { justify-self: start; } .wk li { grid-template-columns: 44px minmax(0, 1fr); } .wk-m { grid-column: 2; margin-top: -6px; padding-bottom: 6px; } }
.trend-w { margin-top: 4px; display: grid; gap: 2px; }
.trend { width: 100%; height: 44px; overflow: visible; }
.trend .tl { stroke: var(--ink); stroke-opacity: .3; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.trend .tp { fill: none; stroke: var(--t-600); stroke-width: 1.6; stroke-opacity: .55; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.trend .te { fill: var(--t-700); }
.trend .tq { fill: #fff; stroke: var(--t-600); stroke-width: 1.6; }
.lg { display: inline-flex; gap: 6px; align-items: center; margin-left: 6px; white-space: nowrap; }
.lg i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.lg i.te { background: var(--t-700); }
.lg i.tq { background: #fff; border: 1.5px solid var(--t-600); margin-left: 4px; }
.dash-links .dl-card { padding: 18px; display: grid; gap: 8px; align-content: start; }
.dash-links .dl-card b { font-size: 16.5px; }
@media (max-width: 1100px) and (min-width: 681px) { .dash-links { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.rules summary { cursor: pointer; list-style: none; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.rules summary::-webkit-details-marker { display: none; }
.rules summary::after { content: "+"; margin-left: auto; font-family: var(--f-mono); font-size: 20px; color: var(--t-700); transition: transform .2s; }
.rules[open] summary::after { transform: rotate(45deg); }
.rules-l { margin: 14px 0 0; padding-left: 18px; display: grid; gap: 8px; font-size: 14.5px; color: var(--ink-2); }
.rules-l b { color: var(--ink); }

/* pricing */
.fx-cap { margin-top: 10px; }
.fxref { display: flex; flex-wrap: wrap; gap: 4px 10px; font-family: var(--f-mono); font-size: 12px; color: var(--mute); margin-top: -8px; }
.fxref .me { color: var(--t-800); font-weight: 600; }
.plan li span b { color: var(--ink); }
/* list pages: free allowance up front */
.quota { margin-top: 16px; max-width: 760px; }
.quota .note-box { font-size: 14px; }
/* install hint (mobile, after a few visits) */
.a2hs { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 70; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; align-items: center; padding: 14px; border-radius: 20px; background: rgba(255,255,255,.97); border: 1px solid var(--line); box-shadow: var(--sh-3); animation: rise .35s ease both; }
.a2hs .mark { width: 36px; height: 36px; border-radius: 11px; background: var(--grad); position: relative; }
.a2hs .mark::before, .a2hs .mark::after { content: ""; position: absolute; background: #fff; border-radius: 2px; }
.a2hs .mark::before { left: 15.5px; top: 8px; width: 5px; height: 20px; }
.a2hs .mark::after { left: 8px; top: 15.5px; width: 20px; height: 5px; }
.a2hs b { font-size: 15px; }
.a2hs p { font-size: 13.5px; color: var(--ink-2); margin-top: 2px; }
.a2hs-b { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 8px; }
.a2hs-b .btn { min-height: 44px; }
@media (max-width: 680px) { .dash-links { gap: 10px; } .dash-links .dl-card { grid-template-columns: auto minmax(0, 1fr); gap: 2px 14px; padding: 14px 16px; } .dash-links .dl-card .icon-tile { grid-row: span 2; align-self: center; } }
.pk-alt { display: block; width: 100%; max-width: 440px; margin: 6px 0; min-height: 40px; text-overflow: ellipsis; }
.wk .wk-c { color: transparent; }
.wk .wk-c svg, .wk .wk-c svg path { stroke: currentColor; }
.wk .wk-c[aria-pressed="true"] { color: #fff; }
.wk .wk-c:hover svg { border-color: var(--t-300); }
/* calibration honesty: "What is this number?", consent, score report, /accuracy, /calibrate */
.witi { margin-top: 10px; font-size: 13.5px; }
.witi summary { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; cursor: pointer; list-style: none; color: var(--t-700); font-weight: 600; }
.witi summary::-webkit-details-marker { display: none; }
.witi summary svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.witi-b { margin-top: 6px; padding: 12px 14px; border-radius: 12px; background: var(--card-2); border: 1px solid var(--line); color: var(--ink-2); display: grid; gap: 6px; max-width: 560px; }
.consent { margin-top: 20px; display: grid; gap: 12px; }
.consent-h { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: start; }
.consent-h > svg { width: 22px; height: 22px; margin-top: 3px; fill: none; stroke: var(--t-700); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.consent h3 { font-size: 17px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 4px; }
.consent-a { gap: 12px; }
.consent [data-st], .rep [data-st] { display: inline-flex; gap: 6px; align-items: flex-start; }
.consent [data-st] svg, .rep [data-st] svg { width: 16px; height: 16px; flex: none; margin-top: 2px; fill: none; stroke: var(--t-700); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.consent.done { border-color: var(--t-200); background: var(--t-50); }
.rep { display: grid; gap: 16px; }
.rep-h h2 { font-size: clamp(18px, 2vw, 21px); line-height: 1.3; margin-bottom: 6px; }
.rep-g { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 14px; align-items: end; }
.rep fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.rep legend { font-size: 13.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; padding: 0; }
.rep-s { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.rep-s .input { text-align: center; font-family: var(--f-mono); -moz-appearance: textfield; }
.rep-s .input::-webkit-outer-spin-button, .rep-s .input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.rep .row { gap: 12px; }
.small.err, .tiny.err { color: var(--below); }
.small.ok { color: var(--t-800); }
@media (max-width: 560px) { .rep-g { grid-template-columns: 1fr; } .rep-s { grid-template-columns: repeat(2, minmax(0, 1fr)); } .rep .seg.full button { padding: 0 8px; font-size: 13.5px; } }
.acc { display: grid; gap: 18px; }
.acc-status { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: start; }
.acc-status h2 { font-size: clamp(21px, 2.4vw, 26px); margin-bottom: 8px; }
.acc-badge { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--near-soft); color: var(--near); }
.acc-badge svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.acc-h { font-size: clamp(22px, 2.6vw, 30px); margin-top: clamp(16px, 3vw, 32px); }
.acc-n .card { display: grid; gap: 6px; }
.acc-n b { font-family: var(--f-mono); font-size: 40px; font-weight: 600; letter-spacing: -0.04em; line-height: 1.1; color: var(--ink); }
.acc-pub .card, .acc-how .card { display: grid; gap: 10px; align-content: start; }
.acc-pub h3, .acc-how h3 { font-size: 18px; }
.acc-when { padding: 8px 10px; border-radius: 10px; background: var(--t-50); color: var(--t-900); }
@media (max-width: 520px) { .acc-status { grid-template-columns: 1fr; } }
.cal-h { padding-bottom: 12px; }
.cal-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(340px, .75fr); gap: 20px; align-items: start; }
.cal-left { display: grid; gap: 16px; min-width: 0; }
.cal-right { position: sticky; top: 92px; max-height: calc(100vh - 110px); overflow-y: auto; border-radius: var(--r); }
.cal-task summary { cursor: pointer; }
.cal-notes { margin-top: 10px; font-size: 14px; color: var(--ink-2); display: grid; gap: 6px; }
.cal-notes h4 { font-family: var(--f-body); font-size: 13.5px; font-weight: 700; color: var(--ink); margin-top: 6px; }
.cal-notes ul, .cal-task ul { margin: 0; padding-left: 18px; display: grid; gap: 3px; }
.cal-letter { white-space: pre-wrap; font-size: 15.5px; line-height: 1.75; color: var(--ink); }
.cal-tr { display: grid; gap: 10px; font-size: 15px; }
.cal-tr p { padding: 10px 12px; border-radius: 12px; background: var(--card-2); border: 1px solid var(--line); max-width: 92%; }
.cal-tr p.me { justify-self: end; background: var(--t-50); border-color: var(--t-100); }
.cal-tr small { display: block; font-size: 11.5px; color: var(--mute); margin-bottom: 2px; }
.cal-marks { display: grid; gap: 14px; }
.cal-marks h3 { font-size: 18px; }
.cal-c { border: 0; margin: 0; padding: 12px 0 0; border-top: 1px solid var(--line); display: grid; gap: 6px; min-width: 0; }
.cal-c legend { padding: 0; font-size: 14.5px; }
.cal-scale { display: flex; flex-wrap: wrap; gap: 6px; }
.cal-scale label { position: relative; }
.cal-scale input { position: absolute; opacity: 0; pointer-events: none; }
.cal-scale span { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line-2); background: #fff; font-family: var(--f-mono); font-size: 14px; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.cal-scale label.na span { font-family: var(--f-body); font-size: 12.5px; color: var(--ink-2); }
.cal-scale input:checked + span { background: var(--t-700); border-color: var(--t-700); color: #fff; }
.cal-scale input:focus-visible + span { box-shadow: 0 0 0 3px var(--t-200); }
.cal-ends { display: flex; justify-content: space-between; gap: 10px; }
.cal-msg { max-width: 640px; }
@media (max-width: 960px) { .cal-grid { grid-template-columns: 1fr; } .cal-right { position: static; max-height: none; } }
.list-h { font-size: clamp(19px, 2vw, 23px); margin: 0 0 6px; }
.list-sub { margin: 0 0 14px; max-width: 760px; }
.mock-static .facts { max-width: 760px; }
.dr-about { margin-top: 28px; max-width: 820px; }
.dr-about h2 { font-size: 20px; margin-bottom: 8px; }
.dr-about p + p { margin-top: 8px; }
.dr-about ul { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 4px; color: var(--ink-2); font-size: 15px; }
/* == end funnel == */
/* == exam == (stream 1: official-rules exam engine, navigator, full mock) */
/* navigator: current part/section only, never overlaps; full overview in a dialog */
.xnav-in { gap: 8px; }
.xn-sec { flex: none; font-size: 12.5px; font-weight: 600; color: var(--ink-2); white-space: nowrap; max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
.qstrip { gap: 5px; padding: 6px 4px 8px; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 10px, #000 calc(100% - 10px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 10px, #000 calc(100% - 10px), transparent 100%); }
.xn-count { flex: none; gap: 2px; font-weight: 600; }
.xn-count .num { font-family: var(--f-mono); }
.qb.locked { opacity: .38; cursor: not-allowed; }
.x-ov { width: min(640px, 100%); }
.x-ov h4 { font-family: var(--f-body); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--t-800); margin: 16px 0 8px; }
.x-ov-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 8px; }
.x-ov-grid .qb { width: 100%; height: 44px; }
.x-ov .legend i { vertical-align: -2px; }
/* finish summary */
.x-sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 10px; }
.x-sum > div { display: grid; gap: 2px; padding: 12px 14px; border-radius: var(--r-s); background: var(--card-2); border: 1px solid var(--line); }
.x-sum b { font-size: 24px; line-height: 1.1; color: var(--ink); }
.x-sum span { font-size: 12.5px; color: var(--mute); }
/* time reminder banner (like the official yellow "5 minutes left") */
.x-banner { position: fixed; top: 70px; left: 50%; z-index: 160; transform: translate(-50%, -16px); opacity: 0; pointer-events: none; display: flex; align-items: center; gap: 10px; max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 14px; background: var(--near-soft); border: 1px solid #F6DFAE; color: #5C3A00; font-weight: 600; font-size: 14.5px; box-shadow: var(--sh-2); transition: opacity .25s, transform .25s; }
.x-banner.on { opacity: 1; transform: translate(-50%, 0); }
.x-banner svg { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; }
/* listening: phase steps + section list fill the right column on desktop */
@media (min-width: 961px) { .l-split { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); } }
.x-steps { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.x-steps li { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; background: var(--card-2); font-size: 12.5px; font-weight: 600; color: var(--mute); min-width: 0; }
.x-steps li span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.x-steps li i { flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-family: var(--f-mono); font-size: 11px; background: #fff; border: 1px solid var(--line-2); }
.x-steps li i svg { width: 11px; height: 11px; stroke: currentColor; fill: none; stroke-width: 3; }
.x-steps li.cur { background: var(--t-50); color: var(--t-900); box-shadow: inset 0 0 0 1px var(--t-200); }
.x-steps li.cur i { background: var(--t-700); color: #fff; border-color: transparent; }
.x-steps li.done { color: var(--t-800); }
.x-steps li.done i { background: var(--t-100); border-color: transparent; color: var(--t-800); }
.x-secs ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.x-secs button { width: 100%; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto auto; align-items: center; gap: 10px; min-height: 44px; padding: 6px 10px; border-radius: 10px; border: 1px solid transparent; background: transparent; text-align: left; color: var(--ink-2); }
.x-secs button:not([disabled]):hover { background: var(--card-2); }
.x-secs button[disabled] { cursor: default; }
.x-secs .nm { font-family: var(--f-mono); font-size: 12px; font-weight: 600; color: var(--t-800); background: var(--t-50); border-radius: 7px; padding: 3px 0; text-align: center; }
.x-secs .lb { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.x-secs .ct { font-size: 12px; color: var(--mute); }
.x-secs .lk svg { width: 14px; height: 14px; stroke: var(--mute); fill: none; stroke-width: 2; }
.x-secs li.cur button { background: var(--t-50); border-color: var(--t-200); color: var(--t-900); font-weight: 600; }
.x-secs li.cur .nm { background: var(--t-700); color: #fff; }
.x-secs li.done button { opacity: .6; }
/* reading: text size, two independently scrolling columns, A–D buttons */
.x-fs .passage { font-size: calc(16.5px * var(--xfs, 1)); }
.x-fs .passage h3 { font-size: calc(19px * var(--xfs, 1)); }
.x-ptools { justify-content: space-between; margin-bottom: 12px; gap: 8px; }
.x-fsz { display: inline-flex; gap: 4px; }
.x-fsz .tool { padding: 0 10px; font-family: var(--f-mono); }
.x-abcd { gap: 6px; margin-top: 8px; }
.x-abcd .opt { width: auto; min-width: 52px; grid-template-columns: auto; justify-items: center; }
.x-aq { justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 8px 10px; }
.x-aq .x-wide { flex-basis: 100%; order: 3; }
.x-aq .x-wide input { width: min(100%, 360px); max-width: none; }
@media (min-width: 961px) {
  .x-tall { max-height: calc(100vh - 190px); overflow: auto; overscroll-behavior: contain; }
  .r-pane > .pane.x-tall + .pane.x-tall { top: 80px; }
}
.opt.strike .k { text-decoration: none; }
#xo[aria-pressed="true"] { background: var(--below-soft); border-color: #F4C9B7; color: var(--below); }
/* break / resume / time-up screens */
.x-break { max-width: 620px; margin: clamp(10px, 6vh, 60px) auto 0; text-align: center; }
.x-break .xcard { padding: clamp(22px, 4vw, 36px); box-shadow: var(--sh-2); }
.x-big { font-family: var(--f-mono); font-size: clamp(44px, 9vw, 68px); font-weight: 600; letter-spacing: -.02em; margin: 18px 0; color: var(--t-800); }
.x-resume { box-shadow: var(--sh-2); }
.x-timeup .card { max-width: 380px; }
.x-train { background: linear-gradient(180deg, #fff, var(--card-2)); }
/* pre-start gate + sticky primary action on phones */
.x-gate .note-box b { color: inherit; }
.x-cta { margin-top: 16px; }
.x-cta-in { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: flex-end; }
@media (max-width: 900px) {
  .x-cta { position: sticky; bottom: 0; z-index: 40; margin: 16px calc(-1 * var(--gut)) 0; padding: 12px var(--gut) calc(12px + env(safe-area-inset-bottom, 0px)); background: rgba(250,249,246,.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
  .x-cta-in { justify-content: stretch; }
  .x-cta-in > .btn-primary { flex: 1 1 100%; }
}
/* writing: annotation opens under the tapped sentence on phones */
.x-inline { display: block; margin: 8px 0 10px; padding: 12px 14px; border-radius: var(--r-s); background: var(--card-2); border: 1px solid var(--line); white-space: normal; font-family: var(--f-body); }
/* full mock */
.x-plan { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.x-plan li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 12px 14px; border-radius: var(--r-s); background: var(--card-2); border: 1px solid var(--line); }
.x-plan li > span:nth-child(2) { display: grid; gap: 2px; min-width: 0; }
.x-plan .nm { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1px solid var(--t-100); color: var(--t-800); font-family: var(--f-mono); font-size: 12.5px; font-weight: 600; }
.x-plan .tiny { white-space: nowrap; padding-top: 4px; }
.x-rail { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 8px; }
.x-rail li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px 12px; border-radius: var(--r-s); border: 1px solid var(--line); background: #fff; }
.x-rail li > span { display: grid; }
.x-rail i { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-family: var(--f-mono); font-size: 12px; background: var(--card-2); border: 1px solid var(--line-2); }
.x-rail i svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 3; }
.x-rail li.done { background: var(--t-50); border-color: var(--t-100); }
.x-rail li.done i { background: var(--t-100); color: var(--t-800); border-color: transparent; }
.x-rail li.cur { border-color: var(--t-300); box-shadow: 0 0 0 3px var(--t-100); }
.x-rail li.cur i { background: var(--t-700); color: #fff; border-color: transparent; }
.x-mock-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.x-mock-sub { display: grid; gap: 6px; align-content: start; padding: 16px; border-radius: var(--r-m); border: 1px solid var(--line); background: var(--card-2); }
.x-mock-sub b { font-size: 26px; line-height: 1.1; }
.x-mock-sub .pill { justify-self: start; }
.x-mock-sub.ok { background: var(--t-50); border-color: var(--t-100); }
@media (max-width: 900px) { .x-mock-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .x-mock-grid { grid-template-columns: 1fr; } }
/* tap targets: at least 44px on touch-sized screens */
@media (max-width: 960px) {
  .gap input { height: 44px; min-height: 44px; }
  .gflag { width: 44px; height: 44px; margin-left: -4px; }
  .flag-btn, .tool, .tab { min-height: 44px; }
  .qb { width: 44px; height: 44px; }
  .notes { line-height: 2.6; }
  .x-steps li { padding: 8px; }
}
@media (max-width: 520px) {
  .xnav-in { gap: 6px; }
  .xn-count { padding: 0 10px; }
}
.x-partpick .seg { display: flex; width: 100%; flex-wrap: wrap; border-radius: 18px; }
.x-partpick .seg button { flex: 1 1 auto; padding: 0 12px; }
/* speaking: barge-in */
.bub .x-unheard { opacity: .38; }
.orb.barge .ring { animation: pulse 2.4s ease-in-out infinite; }
/* == end exam == */

/* == learn == (stream 5: /learn lessons, plan, mistakes; /drills) */
.ln-crumb { display: flex; gap: 8px; align-items: center; font-size: 13.5px; color: var(--mute); margin-bottom: 14px; flex-wrap: wrap; }
.ln-crumb a { color: var(--t-700); font-weight: 600; }
.ln-crit { margin-top: 14px; gap: 6px; }
.ln-loop { margin-top: 24px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 860px; }
.ln-step { position: relative; display: grid; gap: 2px; padding: 14px 16px 14px 54px; border-radius: var(--r-m); background: rgba(255,255,255,.86); border: 1px solid var(--line); box-shadow: var(--sh-2); font-size: 14px; color: var(--ink-2); }
.ln-step .num { position: absolute; left: 14px; top: 14px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--t-100); color: var(--t-800); font-weight: 600; font-size: 13px; }
.ln-step:last-child .num { background: var(--grad); color: #fff; box-shadow: 0 6px 14px -6px var(--glow); }
.ln-step b { color: var(--ink); font-size: 15.5px; }
@media (max-width: 680px) { .ln-loop { grid-template-columns: 1fr; } }
.ln-main .lay > * { min-width: 0; }
.ln-filter { margin-bottom: 18px; max-width: 100%; overflow-x: auto; }
.ln-group { margin-bottom: clamp(28px, 4vw, 40px); scroll-margin-top: 90px; }
.ln-group-h { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.ln-group-h h2 { font-size: clamp(22px, 2.6vw, 28px); }
.ln-card, .ln-drill { display: flex; flex-direction: column; gap: 10px; padding: 20px; min-height: 100%; }
.ln-card h3, .ln-drill h3 { font-size: 18.5px; line-height: 1.2; }
.ln-card p, .ln-drill p { font-size: 14.5px; color: var(--ink-2); }
.ln-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ln-card-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; }
.ln-card-meta .chip { white-space: normal; height: auto; text-align: left; }
.ln-done { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--paper-2); color: transparent; transition: background .2s, color .2s; }
.ln-done svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.ln-card.done { border-color: var(--t-200); }
.ln-card.done .ln-done { background: var(--t-700); color: #fff; }
.ln-side-cta { display: grid; gap: 8px; }
.ln-side-cta h3 { font-size: 19px; }
.ln-dlist { display: grid; gap: 8px; }
.ln-dcard { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 14px; box-shadow: none; }
.ln-dcard span:last-child { display: grid; }
.ln-dcard b { font-size: 14.5px; }
.ln-dcard .icon-tile { width: 38px; height: 38px; border-radius: 11px; }
.ln-weak { margin-bottom: 22px; }
.ln-weak h2 { font-size: clamp(20px, 2.4vw, 26px); margin: 6px 0 12px; }
.ln-weak-list { display: grid; gap: 10px; margin-bottom: 10px; }
.ln-weak-row { display: flex; align-items: center; justify-content: space-between; gap: 10px 14px; flex-wrap: wrap; padding: 12px 14px; border-radius: 14px; background: var(--card-2); border: 1px solid var(--line); }
.ln-weak-row > div:first-child { display: grid; }

/* lesson article */
.ln-h h1 { max-width: 900px; }
.ln-lay { align-items: start; }
.ln-art { min-width: 0; font-size: 17px; }
.ln-art .ln-sec + .ln-sec { margin-top: 34px; padding-top: 28px; border-top: 1px solid var(--line); }
.ln-art .ln-sec { scroll-margin-top: 96px; }
.ln-art h2 { margin-top: 0; }
.ln-art h4 { font-family: var(--f-body); font-size: 15px; font-weight: 700; color: var(--ink); margin: 0 0 8px; letter-spacing: 0; }
.ln-art strong { color: var(--ink); }
.ln-steps { counter-reset: st; list-style: none; padding-left: 0 !important; }
.ln-steps li { counter-increment: st; position: relative; padding-left: 40px; margin: 10px 0; }
.ln-steps li::before { content: counter(st); position: absolute; left: 0; top: 1px; width: 26px; height: 26px; border-radius: 50%; background: var(--t-50); border: 1px solid var(--t-100); color: var(--t-800); font-family: var(--f-mono); font-size: 12.5px; font-weight: 600; display: grid; place-items: center; }
.ln-ex { margin: 16px 0; padding: 14px 16px; border-radius: var(--r-m); background: var(--card-2); border: 1px solid var(--line); }
.ln-ex figcaption, .ln-dl figcaption, .ln-notes figcaption { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--t-700); margin-bottom: 8px; }
.ln-ex-ctx { font-size: 14.5px; color: var(--mute); margin-bottom: 8px !important; }
.ln-ex-row { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 10px; align-items: baseline; padding: 8px 0; }
.ln-ex-row + .ln-ex-row { border-top: 1px dashed var(--line-2); }
.ln-ex-row p { margin: 0 !important; }
.ln-ex-tag { font-family: var(--f-mono); font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 6px; text-align: center; }
.ln-ex-row.weak .ln-ex-tag { background: var(--below-soft); color: var(--below); }
.ln-ex-row.weak p { color: var(--ink-2); }
.ln-ex-row.better .ln-ex-tag { background: var(--t-100); color: var(--t-800); }
.ln-ex-row.better p { color: var(--ink); }
.ln-ex-why { font-size: 14.5px; margin: 8px 0 0 !important; }
.ln-call { display: flex; gap: 12px; margin: 16px 0; padding: 14px 16px; border-radius: var(--r-m); background: var(--t-50); border: 1px solid var(--t-100); color: var(--t-900); font-size: 15.5px; }
.ln-call.warn { background: var(--near-soft); border-color: #F6DFAE; color: #5C3A00; }
.ln-call p { margin: 2px 0 0 !important; }
.ln-call-i svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-top: 2px; }
.ln-phr { margin: 16px 0; padding: 16px; border-radius: var(--r-m); background: #fff; border: 1px solid var(--t-100); box-shadow: var(--sh-1); }
.ln-phr ul { list-style: none; padding: 0 !important; margin: 0 !important; display: grid; gap: 10px; }
.ln-phr li { display: grid; gap: 2px; padding-left: 14px; border-left: 3px solid var(--t-200); margin: 0; }
.ln-phr q { color: var(--ink); font-weight: 500; quotes: "“" "”"; }
.ln-phr li span { font-size: 13.5px; color: var(--mute); }
.ln-table { overflow-x: auto; margin: 14px 0; border-radius: 12px; border: 1px solid var(--line); }
.ln-table table { width: 100%; border-collapse: collapse; font-size: 15px; display: table; margin: 0; }
.ln-table th, .ln-table td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: normal; min-width: 120px; }
.ln-table th { background: var(--card-2); font-size: 13.5px; color: var(--ink); }
.ln-table tr:last-child td { border-bottom: 0; }
.ln-dl { margin: 16px 0; padding: 14px 16px; border-radius: var(--r-m); background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-1); display: grid; gap: 8px; }
.ln-dl-line { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; font-size: 15.5px; }
.ln-dl-line b { font-size: 13px; font-family: var(--f-mono); color: var(--t-800); padding-top: 3px; overflow-wrap: anywhere; }
.ln-dl-line p { margin: 0 !important; }
.ln-dl-note { font-size: 14px; color: var(--mute); margin: 4px 0 0 !important; border-top: 1px dashed var(--line-2); padding-top: 8px; }
.ln-notes { margin: 16px 0; padding: 14px 16px; border-radius: var(--r-m); background: #FBFAF6; border: 1px solid var(--line-2); }
.ln-notes pre { margin: 0; font-family: var(--f-mono); font-size: 13.5px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink); }
@media (max-width: 560px) { .ln-ex-row, .ln-dl-line { grid-template-columns: 1fr; gap: 4px; } .ln-ex-tag { justify-self: start; } .ln-art { font-size: 16.5px; } }
.ln-check .ln-q { margin-top: 18px; padding: 16px; border-radius: var(--r-m); background: var(--card-2); border: 1px solid var(--line); }
.ln-q-t { font-weight: 600; color: var(--ink); margin: 0 0 10px !important; }
.ln-q-t .num { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--t-100); color: var(--t-800); font-size: 12px; margin-right: 4px; }
.ln-opts { display: grid; gap: 8px; }
.ln-opt { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: flex-start; padding: 11px 14px; min-height: 48px; border-radius: 12px; border: 1px solid var(--line-2); background: #fff; text-align: left; font-size: 15.5px; color: var(--ink); transition: border-color .15s, background .15s; }
.ln-opt:hover:not(:disabled) { border-color: var(--t-300); }
.ln-opt .k { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; font-family: var(--f-mono); font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.ln-opt:disabled { cursor: default; }
.ln-opt.right { border-color: var(--t-300); background: var(--t-50); }
.ln-opt.right .k { background: var(--t-700); border-color: transparent; color: #fff; }
.ln-opt.wrong { border-color: #F4C9B7; background: var(--below-soft); }
.ln-opt.wrong .k { background: var(--below); border-color: transparent; color: #fff; }
.ln-q-why { margin: 10px 0 0 !important; font-size: 15px; animation: rise .25s ease both; }
.ln-check-score { margin-top: 16px !important; padding: 14px 16px; border-radius: var(--r-m); background: var(--t-50); border: 1px solid var(--t-100); color: var(--t-900); }
.ln-side { display: grid; gap: 16px; position: sticky; top: 92px; }
.ln-toc h3, .ln-now h3 { font-size: 17px; margin-bottom: 10px; }
.ln-toc nav { display: grid; gap: 2px; }
.ln-toc a { padding: 7px 10px; border-radius: 10px; font-size: 14px; color: var(--ink-2); }
.ln-toc a:hover { background: var(--t-50); color: var(--t-800); }
.ln-now { display: grid; gap: 10px; }
.ln-now h3 { margin: 0; font-size: 19px; }
.ln-also, .ln-verify { display: grid; gap: 8px; }
.ln-next-l { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--card-2); font-size: 14px; transition: border-color .15s; }
.ln-next-l:hover { border-color: var(--t-300); }
.ln-next-l span { font-size: 12.5px; color: var(--mute); }
.ln-pn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 22px; }
.ln-pn { display: grid; gap: 4px; padding: 16px 18px; }
.ln-pn.nx { text-align: right; }
@media (max-width: 960px) {
  .ln-side { position: static; }
  .ln-toc { display: none; }
  .ln-lay > aside { order: 2; }
}
@media (max-width: 560px) { .ln-pn-row { grid-template-columns: 1fr; } .ln-pn.nx { text-align: left; } }

/* mistakes */
.ln-msum { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.ln-mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr)); gap: 18px; align-items: start; }
.ln-mg-h { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ln-mg-h h3 { font-size: 19px; margin-top: 2px; }
.ln-steps-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.ln-stp { position: relative; display: grid; gap: 3px; align-content: start; padding: 10px 12px; border-radius: 12px; background: var(--card-2); border: 1px solid var(--line); font-size: 13px; color: var(--ink-2); transition: border-color .15s; }
a.ln-stp:hover { border-color: var(--t-300); }
.ln-stp b { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--t-800); }
.ln-stp.ok { background: var(--t-50); border-color: var(--t-200); }
.ln-stp.ok b::after { content: " ✓"; }
.ln-stp.no { background: var(--near-soft); border-color: #F6DFAE; }
@media (max-width: 680px) { .ln-steps-row { grid-template-columns: 1fr; } }
.ln-mlist { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; }
.ln-mi { padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: #fff; display: grid; gap: 6px; transition: opacity .25s, transform .25s; }
.ln-mi.gone { opacity: 0; transform: translateX(12px); }
.ln-mi-q { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; font-size: 14.5px; color: var(--ink-2); }
.ln-mi-a { display: flex; gap: 6px 16px; flex-wrap: wrap; font-size: 14.5px; }
.ln-mi-ev { font-size: 13.5px; color: var(--mute); border-left: 3px solid var(--t-200); padding-left: 10px; }
.ln-mi .row { gap: 4px; margin-left: -8px; }
.ln-h2 { font-size: clamp(20px, 2.4vw, 26px); margin: 34px 0 14px; }
.ln-wsgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 14px; }
.ln-ws h3 { font-size: 17px; margin: 4px 0 2px; }
.ln-empty h2 { font-size: clamp(22px, 2.6vw, 28px); margin-bottom: 8px; }

/* plan */
.ln-form { display: grid; gap: 14px; }
.ln-form h3 { font-size: 18px; }
.ln-est { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ln-est legend { margin-bottom: 8px; padding: 0; }
.ln-est label { display: grid; gap: 4px; font-size: 13px; color: var(--ink-2); font-weight: 600; }
.ln-plan > aside { order: 2; }
.ln-plan > #plan-out { order: 1; min-width: 0; }
.ln-plan-intro h2 { font-size: clamp(20px, 2.4vw, 26px); margin: 6px 0 12px; }
.ln-bul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; color: var(--ink-2); }
.ln-bul li { padding-left: 18px; position: relative; }
.ln-bul li::before { content: ""; position: absolute; left: 0; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--t-500); }
.ln-plan-sum { display: grid; gap: 14px; margin-bottom: 18px; }
.ln-subs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.ln-sub { display: grid; justify-items: start; gap: 4px; padding: 12px; border-radius: 14px; background: var(--card-2); border: 1px solid var(--line); }
.ln-sub b { font-size: 24px; letter-spacing: -0.03em; line-height: 1; }
@media (max-width: 560px) { .ln-subs { grid-template-columns: 1fr 1fr; } }
.ln-weeks { display: grid; gap: 12px; }
.ln-week summary { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 18px; min-height: 52px; cursor: pointer; list-style: none; }
.ln-week summary::-webkit-details-marker { display: none; }
.ln-week summary::after { content: "▾"; color: var(--mute); transition: transform .2s; }
.ln-week[open] summary::after { transform: rotate(180deg); }
.ln-days { list-style: none; margin: 0; padding: 0 12px 12px; display: grid; gap: 8px; }
.ln-day { padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: #fff; }
.ln-day.today { border-color: var(--t-300); box-shadow: 0 0 0 3px var(--t-50); }
.ln-day.past { opacity: .72; }
.ln-day.rest { background: var(--card-2); }
.ln-day-h { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 14.5px; }
.ln-tasks { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ln-task { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: start; font-size: 14.5px; }
.ln-task > div { display: grid; gap: 1px; min-width: 0; }
.ln-task a { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--t-200); text-underline-offset: 3px; overflow-wrap: anywhere; }
.ln-task small { color: var(--mute); font-size: 12.5px; }
.ln-kind { font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--t-700); }
.ln-task.k-verify .ln-kind, .ln-task.k-mock .ln-kind, .ln-task.k-diagnose .ln-kind { color: var(--near); }
.ln-task.k-verify > div { padding-left: 8px; border-left: 3px solid #E4A63B; }
.ln-tick { width: 44px; height: 44px; margin: -8px 0 -8px -8px; border: 0; background: transparent; display: grid; place-items: center; }
.ln-tick svg { width: 22px; height: 22px; padding: 3px; border-radius: 7px; border: 1.5px solid var(--line-2); stroke: transparent; fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; background: #fff; transition: background .15s, stroke .15s; }
.ln-task.done .ln-tick svg { background: var(--t-700); border-color: transparent; stroke: #fff; }
.ln-task.done a, .ln-task.done > div > span:not(.ln-kind) { text-decoration: line-through; color: var(--mute); }
@media print { .nav, .foot, .ln-plan > aside, #plan-print, .glow { display: none !important; } .ln-week { box-shadow: none; break-inside: avoid; } }

/* drills */
.dr-h { padding-bottom: 12px; }
.dr-h h1 { font-size: clamp(28px, 4.2vw, 44px); }
.dr-wrap { }
.dr-in { max-width: 520px; }
.dr-foot { margin-top: 16px; }
.dr-setup { display: grid; gap: 16px; }
.dr-setup h2 { font-size: clamp(22px, 2.8vw, 30px); margin: 6px 0 8px; }
.dr-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.dr-start { justify-self: start; }
.dr-rule { max-width: 720px; }
.dr-sets { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 12px; }
.dr-set { display: grid; gap: 6px; align-content: start; text-align: left; padding: 16px; font-size: 15px; }
.dr-run, .dr-end, .dr-rw, .dr-ph, .dr-cn { display: grid; gap: 16px; }
.dr-app .card > *, .dr-scan > * { min-width: 0; }
.dr-top { display: flex; align-items: center; gap: 12px; }
.dr-bar { flex: 1; height: 8px; border-radius: 999px; background: var(--paper-2); overflow: hidden; }
.dr-bar i { display: block; height: 100%; background: var(--grad); border-radius: 999px; transition: width .4s cubic-bezier(.2,.8,.2,1); }
.dr-stage { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 8px 0; }
.dr-play { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px 0 14px; border-radius: 999px; border: 1px solid var(--t-200); background: var(--t-50); color: var(--t-800); font-weight: 600; font-size: 15px; }
.dr-play svg { width: 18px; height: 18px; fill: currentColor; }
.dr-play.big { min-height: 64px; padding: 0 26px 0 20px; font-size: 17px; background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 14px 30px -12px var(--glow); }
.dr-play[data-state="play"] { animation: pulse 1.2s ease-in-out infinite; }
.dr-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.dr-in { flex: 1 1 240px; font-size: 20px; min-height: 56px; font-family: var(--f-mono); }
.dr-note { font-family: var(--f-mono); font-size: 16px; line-height: 2.2; flex: 1 1 100%; overflow-wrap: anywhere; }
.dr-gap { display: inline-block; width: min(220px, 60vw); min-height: 44px; font-family: var(--f-mono); vertical-align: middle; margin: 0 4px; }
.dr-fb:empty { display: none; }
.dr-fb { display: grid; gap: 10px; padding: 16px; border-radius: var(--r-m); background: var(--card-2); border: 1px solid var(--line); animation: rise .25s ease both; }
.dr-v { display: flex; align-items: center; gap: 8px; font-size: 16px; flex-wrap: wrap; }
.dr-v svg { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.dr-v.ok { color: var(--t-800); }
.dr-v.near { color: var(--near); }
.dr-v.no { color: var(--below); }
.dr-cmp { display: flex; gap: 6px 18px; flex-wrap: wrap; font-size: 16px; }
.dr-word { font-family: var(--f-mono); letter-spacing: .02em; }
.dr-word ins { text-decoration: none; background: var(--near-soft); color: var(--near); border-radius: 3px; padding: 0 1px; }
.dr-sent { font-style: italic; }
.dr-next { justify-self: start; }
.dr-missed { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.dr-missed li { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--below-soft); border: 1px solid #F4C9B7; }
.dr-missed li.ok { background: var(--t-50); border-color: var(--t-100); }
.dr-missed b { font-family: var(--f-mono); font-size: 15px; }
/* scan */
.dr-scan { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 18px; align-items: start; }
.dr-scan-q { padding: clamp(16px, 2.4vw, 24px); display: grid; gap: 12px; position: sticky; top: 92px; }
.dr-scan-t { padding: 14px; min-width: 0; }
.dr-tabs { margin-bottom: 12px; }
.dr-texts { display: grid; gap: 14px; max-height: calc(100vh - 210px); overflow: auto; padding-right: 4px; }
.dr-text { padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: #fff; font-size: 15px; line-height: 1.6; }
.dr-text h4 { display: flex; align-items: center; gap: 10px; font-size: 16px; margin-bottom: 8px; }
.dr-key { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--t-100); color: var(--t-800); font-family: var(--f-mono); font-size: 13px; flex: none; }
.dr-text p + p, .dr-text ul, .dr-text ol { margin-top: 8px; }
.dr-text ul, .dr-text ol { padding-left: 20px; }
.dr-text mark { background: rgba(27,179,166,.28); border-radius: 3px; padding: 0 2px; }
.dr-tbl { overflow-x: auto; margin-top: 6px; }
.dr-tbl table { border-collapse: collapse; font-size: 14px; width: 100%; }
.dr-tbl th, .dr-tbl td { border: 1px solid var(--line-2); padding: 6px 8px; text-align: left; vertical-align: top; }
.dr-tbl th { background: var(--card-2); }
.dr-q { font-size: 17px; font-weight: 600; color: var(--ink); }
.dr-qclk.slow { color: var(--near); font-weight: 600; }
.dr-abcd { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.dr-opt { min-height: 52px; border-radius: 12px; border: 1px solid var(--line-2); background: #fff; font-family: var(--f-mono); font-size: 18px; font-weight: 600; transition: border-color .15s, background .15s; }
.dr-opt:hover:not(:disabled) { border-color: var(--t-300); }
.dr-opt.right { background: var(--t-700); color: #fff; border-color: transparent; }
.dr-opt.wrong { background: var(--below-soft); color: var(--below); border-color: #F4C9B7; }
@media (min-width: 961px) { .dr-tabs, .dr-tabs.seg { display: none; } .dr-text[data-off] { display: block; } }
@media (max-width: 960px) {
  .dr-scan { grid-template-columns: 1fr; }
  .dr-scan-q { position: static; }
  .dr-text[data-off] { display: none; }
  .dr-texts { max-height: none; overflow: visible; }
}
/* case notes */
.dr-brief { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dr-brief > div { display: grid; gap: 2px; padding: 12px 14px; border-radius: 14px; background: var(--t-50); border: 1px solid var(--t-100); }
@media (max-width: 560px) { .dr-brief { grid-template-columns: 1fr; } }
.dr-notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; counter-reset: n; }
.dr-notes li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; align-items: center; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line); background: #fff; }
.dr-notes code { font-family: var(--f-mono); font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.dr-notes .seg button { min-height: 40px; padding: 0 12px; font-size: 13.5px; }
.dr-notes .seg button:disabled { cursor: default; }
.dr-notes li.ok { border-color: var(--t-200); background: var(--t-50); }
.dr-notes li.no { border-color: #F4C9B7; background: var(--below-soft); }
.dr-why { grid-column: 1 / -1; font-size: 14px; color: var(--ink-2); }
@media (max-width: 560px) { .dr-notes li { grid-template-columns: 1fr; } .dr-notes .seg { justify-self: start; } }
.dr-cn-foot { align-items: center; }
/* rewrite */
.dr-rw-top { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.dr-rwf { max-width: 100%; overflow-x: auto; }
.dr-rwf button { padding: 0 12px; font-size: 13.5px; }
.dr-orig { margin: 0; padding: 14px 16px; border-radius: 14px; background: var(--card-2); border-left: 4px solid #E4A63B; font-size: 16px; color: var(--ink); }
#rwc.over { color: var(--near); font-weight: 600; }
.dr-checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 14.5px; }
.dr-checks li { display: flex; gap: 8px; align-items: flex-start; }
.dr-checks svg { width: 18px; height: 18px; flex: none; margin-top: 2px; fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.dr-checks li.ok svg { stroke: var(--t-700); }
.dr-checks li.no svg { stroke: var(--below); }
.dr-model { display: grid; gap: 6px; padding: 12px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--t-100); }
.dr-model p:not(.small) { font-size: 16px; color: var(--ink); }
/* phrases */
.dr-phg { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.dr-phg .chip { min-height: 36px; padding: 4px 12px; font-family: var(--f-body); font-size: 13.5px; cursor: pointer; }
.dr-ph-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.dr-ph-h h3 { font-size: 20px; margin: 4px 0; }
.dr-say { padding: 18px; border-radius: var(--r-m); background: linear-gradient(180deg, var(--t-50), #fff); border: 1px solid var(--t-100); display: grid; gap: 6px; }
.dr-phrase { font-family: var(--f-display); font-size: clamp(20px, 2.6vw, 26px); font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; color: var(--ink); transition: filter .25s; }
.dr-say.hidden-text .dr-phrase { filter: blur(7px); user-select: none; }
.dr-ph-ctl { gap: 10px; }
.dr-ph-ctl .btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }
.dr-kw { display: flex; gap: 6px; flex-wrap: wrap; }
/* == end learn == */
