/* Analyst Gym: design system. Light, tinted canvas with pastel aurora, white glass cards, colour-coded areas,
   one vivid gradient hero per page, editorial display type. */
:root {
  --bg: #F3F4FA; --bg-2: #ECEEF8;
  --card: rgba(255, 255, 255, .82); --card-solid: #fff; --card-2: #F7F8FD; --card-3: #EFF1F9;
  --line: rgba(20, 22, 48, .08); --line-2: rgba(20, 22, 48, .14);
  --text: #15172E; --text-2: #3D4160; --muted: #62677F;
  --indigo: #5B4BF5; --indigo-ink: #4338CA; --indigo-50: #EEEDFF; --indigo-100: #DEDBFF;
  --teal: #0E9F9A; --teal-ink: #0B7C78; --teal-50: #E2F6F4; --teal-100: #C3EDE9;
  --amber: #D97706; --amber-ink: #B45309; --amber-50: #FFF3DC; --amber-100: #FDE3B0;
  --rose: #E11D48; --rose-ink: #BE123C; --rose-50: #FFE8EE; --rose-100: #FECDD8;
  --green: #059669; --green-ink: #047857; --green-50: #E1F7EE; --green-100: #BDEBD7;
  --sky: #0284C7; --sky-ink: #0369A1; --sky-50: #E2F2FC; --sky-100: #BEE3F8;
  --violet: #9333EA; --violet-ink: #7E22CE; --violet-50: #F4E9FF; --violet-100: #E5CCFE;
  --up: #059669; --down: #E11D48;
  --grad: linear-gradient(120deg, #0EA5E9 0%, #6D5DFC 50%, #C026D3 100%);
  --grad-btn: linear-gradient(135deg, #6457F0 0%, #4F3FE0 50%, #3B2FB8 100%);
  --shadow-sm: 0 1px 2px rgba(20, 22, 48, .05);
  --shadow: 0 1px 2px rgba(20, 22, 48, .04), 0 12px 32px -16px rgba(67, 56, 202, .22);
  --shadow-lg: 0 2px 6px rgba(20, 22, 48, .05), 0 30px 60px -28px rgba(67, 56, 202, .38);
  --r: 20px; --r-sm: 14px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Inter Tight', 'Inter', system-ui, sans-serif;
  --serif: 'Instrument Serif', 'Times New Roman', Georgia, serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  /* default tone, overridden by .tone-* */
  --tone: var(--indigo); --tone-ink: var(--indigo-ink); --tone-50: var(--indigo-50); --tone-100: var(--indigo-100);
}
.tone-indigo { --tone: var(--indigo); --tone-ink: var(--indigo-ink); --tone-50: var(--indigo-50); --tone-100: var(--indigo-100); }
.tone-teal { --tone: var(--teal); --tone-ink: var(--teal-ink); --tone-50: var(--teal-50); --tone-100: var(--teal-100); }
.tone-amber { --tone: var(--amber); --tone-ink: var(--amber-ink); --tone-50: var(--amber-50); --tone-100: var(--amber-100); }
.tone-rose { --tone: var(--rose); --tone-ink: var(--rose-ink); --tone-50: var(--rose-50); --tone-100: var(--rose-100); }
.tone-green { --tone: var(--green); --tone-ink: var(--green-ink); --tone-50: var(--green-50); --tone-100: var(--green-100); }
.tone-sky { --tone: var(--sky); --tone-ink: var(--sky-ink); --tone-50: var(--sky-50); --tone-100: var(--sky-100); }
.tone-violet { --tone: var(--violet); --tone-ink: var(--violet-ink); --tone-50: var(--violet-50); --tone-100: var(--violet-100); }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
h1, h2, h3, .hl-title, .lr-t, .tc-title, .story summary, .qcard summary, .rev-stem, .nc-title { overflow-wrap: anywhere; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.55 var(--font); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { min-height: 100vh; overflow-x: hidden; }
::selection { background: var(--indigo-100); }
a { color: var(--indigo-ink); text-decoration: none; }
a:hover { color: var(--indigo); }
img, svg { max-width: 100%; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.mono { font-family: var(--mono); }
.ok { color: var(--green-ink); } .ko { color: var(--rose-ink); } .warn { color: var(--amber-ink) !important; }
.mb { margin-bottom: 16px; }
.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; }
main:focus { outline: none; }
:focus-visible { outline: 2px solid var(--indigo); outline-offset: 2px; border-radius: 8px; }
::-webkit-scrollbar { width: 10px; height: 10px; } ::-webkit-scrollbar-thumb { background: rgba(20, 22, 48, .16); border-radius: 10px; border: 2px solid transparent; background-clip: padding-box; } ::-webkit-scrollbar-track { background: transparent; }

/* ---------- background ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.aurora { position: absolute; border-radius: 50%; filter: blur(80px); will-change: transform; }
.a1 { width: 62vw; height: 48vw; left: -20vw; top: -28vw; background: radial-gradient(circle at 45% 45%, #C9C2FF 0%, rgba(201, 194, 255, 0) 66%); opacity: .9; animation: drift1 30s var(--ease) infinite alternate; }
.a2 { width: 54vw; height: 42vw; right: -18vw; top: -16vw; background: radial-gradient(circle, #A8EFE8 0%, rgba(168, 239, 232, 0) 66%); opacity: .75; animation: drift2 36s var(--ease) infinite alternate; }
.a3 { width: 50vw; height: 40vw; left: 28vw; top: 58vh; background: radial-gradient(circle, #FFD8C4 0%, rgba(255, 216, 196, 0) 66%); opacity: .6; animation: drift1 42s var(--ease) infinite alternate-reverse; }
@keyframes drift1 { to { transform: translate3d(8vw, 6vh, 0) scale(1.12); } }
@keyframes drift2 { to { transform: translate3d(-10vw, 8vh, 0) scale(.92); } }
.bg-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(20, 22, 48, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(20, 22, 48, .045) 1px, transparent 1px); background-size: 64px 64px; -webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 0%, #000 15%, transparent 72%); mask-image: radial-gradient(ellipse 70% 50% at 50% 0%, #000 15%, transparent 72%); }
.grain { position: absolute; inset: -50%; opacity: .035; mix-blend-mode: multiply; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ---------- top bar & nav ---------- */
.top { position: sticky; top: 0; z-index: 30; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; padding: 12px max(28px, calc((100vw - 1200px) / 2 + 28px)); background: rgba(243, 244, 250, .72); backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); white-space: nowrap; justify-self: start; }
.brand:hover { color: var(--text); }
.brand .mark { width: 32px; height: 32px; flex: none; filter: drop-shadow(0 6px 12px rgba(91, 75, 245, .35)); }
.brand-t { font-family: var(--display); font-weight: 650; font-size: 17px; letter-spacing: -.02em; }
.brand-t i { font-family: var(--serif); font-weight: 400; font-size: 20px; letter-spacing: 0; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: 2px; }
#nav { display: flex; gap: 2px; margin: 0; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .7); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.nav-a { position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 999px; color: var(--text-2); font-weight: 500; font-size: 14px; white-space: nowrap; transition: color .2s, background .2s; }
.nav-a:hover { color: var(--text); background: rgba(20, 22, 48, .04); }
.nav-a.on { color: var(--indigo-ink); background: var(--indigo-50); box-shadow: inset 0 0 0 1px var(--indigo-100); }
.nav-ic { display: inline-flex; } .ic { width: 16px; height: 16px; }
.badge { font-family: var(--mono); font-size: 10.5px; font-weight: 600; line-height: 1; padding: 3px 6px; border-radius: 999px; background: var(--grad); color: #fff; }
.badge.dot { width: 8px; height: 8px; padding: 0; background: var(--teal); box-shadow: 0 0 0 3px var(--teal-50); }
.gear { justify-self: end; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: var(--text-2); border: 1px solid var(--line); background: rgba(255, 255, 255, .7); box-shadow: var(--shadow-sm); transition: color .2s, transform .4s var(--ease); }
.gear .ic { width: 18px; height: 18px; }
.gear:hover { color: var(--indigo); transform: rotate(45deg); }
.gear.on { color: var(--indigo-ink); background: var(--indigo-50); border-color: var(--indigo-100); }

/* ---------- layout ---------- */
main { max-width: 1200px; margin: 0 auto; padding: 32px 28px 120px; }
main.enter > * { animation: rise .55s var(--ease) backwards; }
main.enter > *:nth-child(2) { animation-delay: .04s; } main.enter > *:nth-child(3) { animation-delay: .08s; } main.enter > *:nth-child(4) { animation-delay: .12s; }
main.enter > *:nth-child(5) { animation-delay: .16s; } main.enter > *:nth-child(6) { animation-delay: .2s; } main.enter > *:nth-child(n+7) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 18px; align-items: start; margin-bottom: 18px; }
.grid-2.wide-left { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.grid-2 > .card, .stack > .card { margin-bottom: 0; }
.stack { display: grid; gap: 18px; align-content: start; min-width: 0; }
.loading { display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--muted); padding: 80px 0; font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--indigo-100); border-top-color: var(--indigo); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.shake { animation: shake .35s; border-color: var(--rose) !important; }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.lesson-crumbs { max-width: 780px; margin: 0 auto 14px; }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--display); letter-spacing: -.02em; margin: 0; color: var(--text); }
h1 { font-size: 30px; font-weight: 650; } h2 { font-size: 16.5px; font-weight: 650; } h3 { font-size: 15px; margin: 22px 0 10px; }
.display { font-family: var(--display); font-weight: 650; font-size: clamp(30px, 4.2vw, 48px); line-height: 1.03; letter-spacing: -.04em; }
.display.xl { font-size: clamp(42px, 6.4vw, 80px); letter-spacing: -.05em; }
.display.md { font-size: clamp(26px, 3vw, 34px); margin: 8px 0 14px; }
.display .hl, .hl { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
.kicker { display: inline-flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.kicker::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 0 3px rgba(109, 93, 252, .14); flex: none; }
.lead { font-size: 17px; line-height: 1.6; color: var(--text-2); max-width: 720px; margin: 10px 0 0; }
.page-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.page-h h1 { margin: 12px 0 0; }
.page-sub { margin-top: 10px; max-width: 680px; font-size: 15.5px; color: var(--text-2); }
.ph-ring { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.crumbs { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-bottom: 14px; letter-spacing: .02em; }
.crumbs a { color: var(--muted); } .crumbs a:hover { color: var(--indigo); }

/* ---------- surfaces ---------- */
.card { position: relative; background: var(--card); border: 1px solid rgba(255, 255, 255, .9); outline: 1px solid var(--line); outline-offset: -1px; border-radius: var(--r); padding: 22px; margin-bottom: 18px; box-shadow: var(--shadow); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); min-width: 0; }
.card[class*="tone-"] { background: linear-gradient(180deg, var(--tone-50) 0, rgba(255, 255, 255, .86) 120px); }
.card[class*="tone-"] > .card-h h2 { display: inline-flex; align-items: center; gap: 10px; }
.card[class*="tone-"] > .card-h h2::before { content: ''; width: 10px; height: 10px; border-radius: 3px; background: var(--tone); box-shadow: 0 0 0 4px var(--tone-100); }
.skill-card::before, .train-card::before, .mock-card::before, .theme-card::before, .drill-card::before, .task::before, .step::before, .mkt::before { content: ''; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), rgba(109, 93, 252, .09), transparent 45%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.skill-card:hover::before, .train-card:hover::before, .mock-card:hover::before, .theme-card:hover::before, .drill-card:hover::before, .task:hover::before, .step:hover::before, .mkt:hover::before { opacity: 1; }
.card-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.cta { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 24px; margin-bottom: 18px; border-radius: var(--r); background: linear-gradient(120deg, var(--indigo-50), var(--violet-50) 55%, var(--sky-50)); border: 1px solid var(--indigo-100); box-shadow: var(--shadow); }
.cta-t { font-family: var(--display); font-weight: 650; font-size: 18px; letter-spacing: -.02em; }
.notice { background: var(--amber-50); border: 1px solid var(--amber-100); color: #7A4A06; padding: 12px 16px; border-radius: var(--r-sm); margin-bottom: 16px; }
.notice.ok { background: var(--green-50); border-color: var(--green-100); color: #065F46; }
.note-accent { margin: 8px 0 4px; padding: 9px 12px; border-left: 3px solid var(--teal); background: var(--teal-50); border-radius: 0 10px 10px 0; color: var(--text-2); }

/* ---------- buttons & controls ---------- */
button { font: inherit; color: var(--text); cursor: pointer; border-radius: 12px; border: 1px solid var(--line-2); background: #fff; padding: 9px 15px; display: inline-flex; align-items: center; gap: 8px; transition: transform .15s var(--ease), background .2s, border-color .2s, box-shadow .2s, opacity .2s; }
button:hover:not(:disabled) { border-color: var(--indigo-100); background: var(--card-2); }
button:disabled { opacity: .45; cursor: not-allowed; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border-radius: 12px; border: 1px solid var(--line-2); background: #fff; color: var(--text); font-weight: 550; font-size: 14.5px; line-height: 1.2; white-space: nowrap; box-shadow: var(--shadow-sm); transition: transform .15s var(--ease), background .2s, border-color .2s, box-shadow .2s, filter .2s; }
.btn:hover:not(:disabled) { color: var(--text); border-color: var(--indigo-100); background: #fff; transform: translateY(-1px); box-shadow: 0 6px 16px -8px rgba(67, 56, 202, .35); }
.btn.primary, button.primary { background: var(--grad-btn); border-color: transparent; color: #fff; font-weight: 600; box-shadow: 0 10px 24px -10px rgba(91, 75, 245, .75), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn.primary:hover:not(:disabled), button.primary:hover:not(:disabled) { background: var(--grad-btn); color: #fff; filter: brightness(1.06); box-shadow: 0 14px 30px -10px rgba(91, 75, 245, .9), inset 0 1px 0 rgba(255, 255, 255, .3); }
.btn.big { padding: 13px 20px; font-size: 15.5px; border-radius: 14px; }
.btn.small, button.small { padding: 6px 11px; font-size: 13px; border-radius: 10px; }
.btn.ghost, button.ghost { background: rgba(255, 255, 255, .6); }
.btn.danger, button.danger { color: var(--rose-ink); border-color: var(--rose-100); }
.icon-btn { padding: 6px 9px; }
.arrow { display: inline-block; transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.kbd { font-family: var(--mono); font-size: 11px; padding: 2px 6px; border-radius: 6px; background: rgba(255, 255, 255, .25); }
.cta-txt { overflow: hidden; text-overflow: ellipsis; }
.linkbtn { background: none; border: 0; color: var(--indigo-ink); padding: 4px 0; border-radius: 6px; box-shadow: none; font-weight: 500; }
.linkbtn:hover:not(:disabled) { background: none; color: var(--indigo); text-decoration: underline; }
.row-end { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.row-start { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border-radius: 13px; background: var(--card-3); border: 1px solid var(--line); }
.seg button, .seg .segbtn { border: 0; background: transparent; color: var(--text-2); padding: 7px 13px; border-radius: 10px; font-size: 14px; box-shadow: none; }
.seg button:hover:not(:disabled) { background: rgba(255, 255, 255, .7); color: var(--text); }
.seg button.on, .seg .segbtn.on { background: #fff; color: var(--indigo-ink); font-weight: 600; box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--indigo-100); }
.seg.small button { padding: 4px 10px; font-size: 13px; }
.tabs { display: flex; gap: 2px; padding: 4px; margin-bottom: 22px; border-radius: 15px; background: rgba(255, 255, 255, .6); border: 1px solid var(--line); width: fit-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; box-shadow: var(--shadow-sm); }
.tab { display: inline-flex; align-items: center; gap: 8px; padding: 8px 15px; border-radius: 11px; color: var(--text-2); font-weight: 500; font-size: 14px; white-space: nowrap; transition: background .2s, color .2s; }
.tab:hover { color: var(--text); background: rgba(20, 22, 48, .04); }
.tab.on { color: var(--indigo-ink); background: #fff; font-weight: 600; box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--indigo-100); }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; line-height: 1.4; padding: 3px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--line-2); color: var(--text-2); white-space: nowrap; }
a.chip:hover { color: var(--indigo-ink); border-color: var(--indigo-100); }
.chip.on { background: var(--indigo-50); border-color: var(--indigo-100); color: var(--indigo-ink); font-weight: 600; }
.chip.accent { background: var(--teal-50); border-color: var(--teal-100); color: var(--teal-ink); }
.chip.live { background: var(--teal-50); border-color: var(--teal-100); color: var(--teal-ink); font-family: var(--mono); font-size: 11px; }
.chip.live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.chips-row { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.sk-tag { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: .05em; padding: 2px 6px; border-radius: 7px; background: var(--tone-50); border: 1px solid var(--tone-100); color: var(--tone-ink); flex: none; }
.lvl-badge { display: inline-flex; align-items: center; width: fit-content; font-family: var(--mono); font-size: 11px; font-weight: 500; padding: 2px 9px; border-radius: 999px; margin: 4px 0; border: 1px solid var(--line-2); color: var(--muted); background: #fff; }
.lvl-badge.new { border-style: dashed; }
.lvl-badge.base { color: var(--text-2); }
.lvl-badge.bronze { color: #9A4A15; border-color: #F3C9A6; background: #FCEEE2; }
.lvl-badge.silver { color: #3F4A5E; border-color: #D3D9E4; background: #F1F4F9; }
.lvl-badge.gold { color: #92560A; border-color: #F6D58A; background: linear-gradient(120deg, #FFF6D8, #FFE9B0); box-shadow: 0 4px 12px -6px rgba(217, 119, 6, .6); }
.lvl-badge.stale { border-color: var(--rose-100); }
input, textarea, select { font: inherit; color: var(--text); background: #fff; border: 1px solid var(--line-2); border-radius: 12px; padding: 10px 12px; transition: border-color .2s, box-shadow .2s; }
input:focus, textarea:focus { outline: none; border-color: var(--indigo); box-shadow: 0 0 0 4px rgba(91, 75, 245, .14); }
input[type="checkbox"] { accent-color: var(--indigo); }

/* ---------- meters, kpis ---------- */
.meter { height: 6px; border-radius: 999px; background: var(--card-3); overflow: hidden; margin-top: 8px; }
.meter i { display: block; height: 100%; border-radius: 999px; background: var(--grad); transition: width .9s var(--ease); }
.meter.thin { height: 4px; }
.meter.base i { background: #C7CADB; }
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.kpis.three { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 18px; }
.kpi { position: relative; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); min-width: 0; }
.kpi-big { font-family: var(--display); font-size: 30px; font-weight: 650; letter-spacing: -.04em; min-width: 52px; font-variant-numeric: tabular-nums; color: var(--text); }
.kpi-big.warn { color: var(--amber-ink) !important; } .kpi-big.ok { color: var(--green-ink); }
.kpi-txt { min-width: 0; flex: 1; }
.kpi-l { font-weight: 600; font-size: 13.5px; }
.ring { display: block; overflow: visible; }
.ring .ring-n { font-family: var(--display); letter-spacing: -.03em; }
.ring .ring-s { font-family: var(--mono); }
.ring-arc { animation: ring-in 1.1s var(--ease) both; }
@keyframes ring-in { from { stroke-dasharray: 0 var(--c); } }

/* ---------- hero (Oggi): the one vivid surface ---------- */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 28px; align-items: stretch; padding: 34px; margin-bottom: 18px; border-radius: 28px; overflow: hidden; color: #fff; box-shadow: var(--shadow-lg);
  background: radial-gradient(760px 420px at 0% 0%, #7C6CFF 0%, rgba(124, 108, 255, 0) 62%), radial-gradient(640px 420px at 100% 0%, #D946EF 0%, rgba(217, 70, 239, 0) 58%), radial-gradient(760px 480px at 70% 130%, #22D3EE 0%, rgba(34, 211, 238, 0) 62%), linear-gradient(135deg, #4338CA, #5B21B6); }
.hero::before { content: ''; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 0 0 60px rgba(255, 255, 255, .03), 0 0 0 120px rgba(255, 255, 255, .025); pointer-events: none; }
.hero .kicker { color: rgba(255, 255, 255, .78); } .hero .kicker::before { background: #FDE68A; box-shadow: 0 0 0 3px rgba(253, 230, 138, .25); }
.hero h1 { color: #fff; }
.hero .display .hl { background: linear-gradient(120deg, #FDE68A, #FBCFE8 60%, #A5F3FC); -webkit-background-clip: text; background-clip: text; }
.hero-art { position: absolute; left: 0; right: 0; bottom: 0; height: 26%; opacity: .7; pointer-events: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); }
.hero-art svg { width: 100%; height: 100%; display: block; }
.hero-line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.6s var(--ease) .25s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero-l, .hero-r { z-index: 1; }
.hero-l { position: relative; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.hero-l h1 { margin: 4px 0 0; }
.hero-sub { margin: 0; color: rgba(255, 255, 255, .86); font-size: 16px; line-height: 1.6; max-width: 560px; }
.hero-bar { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .2); overflow: hidden; max-width: 560px; }
.hero-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #FDE68A, #fff); box-shadow: 0 0 18px rgba(255, 255, 255, .7); animation: grow 1.2s var(--ease) both; transform-origin: left; }
@keyframes grow { from { transform: scaleX(0); } }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.hero .btn.primary { background: #fff; color: var(--indigo-ink); box-shadow: 0 12px 28px -12px rgba(15, 10, 60, .55); max-width: 100%; }
.hero .btn.primary:hover:not(:disabled) { background: #fff; color: var(--indigo-ink); filter: none; transform: translateY(-1px); }
.hero .btn.ghost { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .35); color: #fff; box-shadow: none; }
.hero .btn.ghost:hover:not(:disabled) { background: rgba(255, 255, 255, .22); color: #fff; }
.hero-r { position: relative; min-width: 0; }
.weeks { height: 100%; display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: 20px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .25); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.weeks .kicker { color: rgba(255, 255, 255, .8); }
.weeks .muted { color: rgba(255, 255, 255, .78); }
.weeks-h { display: flex; justify-content: space-between; align-items: center; }
.streak { font-family: var(--mono); font-size: 12px; color: #FDE68A; }
.weeks-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; flex: 1; min-height: 110px; }
.wk { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.wk-bar { flex: 1; width: 100%; max-width: 34px; border-radius: 9px; background: rgba(255, 255, 255, .14); display: flex; align-items: flex-end; overflow: hidden; }
.wk-bar i { display: block; width: 100%; border-radius: 9px; animation: grow-y .9s var(--ease) both; transform-origin: bottom; }
@keyframes grow-y { from { transform: scaleY(0); } }
.wk.full i { background: linear-gradient(180deg, #fff, #C7D2FE); }
.wk.half i { background: #FCD34D; }
.wk.miss i { background: #FDA4AF; }
.wk.cur i { background: repeating-linear-gradient(-45deg, #fff 0 6px, #C7D2FE 6px 12px); background-size: 34px 34px; animation: grow-y .9s var(--ease) both, stripes 1.6s linear infinite; }
@keyframes stripes { to { background-position: 34px 0; } }
.wk span { font-family: var(--mono); font-size: 11px; color: rgba(255, 255, 255, .7); }
.wk.cur span { color: #fff; font-weight: 600; }
.wk.empty .wk-bar { background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .3) 0 2px, transparent 2px 8px); }

/* ---------- mission & steps ---------- */
.tasks, .steps { display: grid; gap: 8px; }
.task, .step { position: relative; display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 15px; background: rgba(255, 255, 255, .75); border: 1px solid var(--line); color: var(--text); transition: border-color .2s, transform .2s var(--ease), background .2s, box-shadow .2s; min-width: 0; }
.task:hover, .step:hover { color: var(--text); border-color: var(--tone-100); transform: translateX(2px); background: #fff; box-shadow: var(--shadow-sm); }
.task-dot { width: 28px; height: 28px; border-radius: 9px; border: 1.5px solid var(--tone-100); background: var(--tone-50); display: grid; place-items: center; flex: none; font-size: 13px; font-weight: 700; color: var(--tone-ink); }
.task.done .task-dot { border-color: var(--tone); background: var(--tone); color: #fff; box-shadow: 0 6px 14px -6px var(--tone); }
.task-b, .step-b { flex: 1; min-width: 0; }
.task-t, .step-t { font-weight: 600; font-size: 14.5px; }
.task-l { font-family: var(--mono); font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.task.done .task-t { color: var(--text-2); }
.task .meter { margin-top: 7px; }
.task .meter i { background: var(--tone); }
.step-n { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; font-family: var(--mono); font-size: 11.5px; font-weight: 600; color: var(--indigo-ink); background: var(--indigo-50); flex: none; }
.go { margin-left: auto; color: var(--muted); transition: transform .2s var(--ease), color .2s; flex: none; }
.task:hover .go, .step:hover .go, .drill-card:hover .go { color: var(--tone-ink); transform: translateX(3px); }

/* ---------- skills ---------- */
.skill-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.skill-card { position: relative; display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 18px; background: #fff; border: 1px solid var(--line); color: var(--text); box-shadow: var(--shadow-sm); transition: border-color .2s, transform .25s var(--ease), box-shadow .25s; min-width: 0; }
.skill-card:hover { color: var(--text); border-color: var(--tone-100); transform: translateY(-2px); box-shadow: var(--shadow); }
.sk-b { min-width: 0; }
.sk-name { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.train-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(225px, 1fr)); gap: 12px; }
.train-card { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 18px; background: #fff; border: 1px solid var(--line); color: var(--text); box-shadow: var(--shadow-sm); transition: border-color .2s, transform .25s var(--ease), box-shadow .25s; min-width: 0; }
.train-card:hover { color: var(--text); border-color: var(--tone-100); transform: translateY(-2px); box-shadow: var(--shadow); }
.tc-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 6px; }
.tc-t { font-family: var(--display); font-weight: 650; font-size: 17px; letter-spacing: -.02em; }
.setup-row { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; flex-wrap: wrap; }
.setup-k { width: 86px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.setup-desc { margin: 4px 0 2px; }

/* ---------- path, plan, progress ---------- */
.stages { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.stage { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 18px; background: #fff; border: 1px solid var(--line); color: var(--text); box-shadow: var(--shadow-sm); transition: border-color .2s; }
.stage:hover { color: var(--text); border-color: var(--indigo-100); }
.stage-n { font-family: var(--mono); font-size: 12px; color: var(--indigo-ink); margin-bottom: 4px; }
.stage.done { background: linear-gradient(180deg, var(--green-50), #fff 70%); }
.stage.done .stage-n { color: var(--green-ink); }
.stage-t { font-family: var(--display); font-weight: 650; font-size: 17px; letter-spacing: -.02em; }
.stage-l { font-family: var(--mono); font-size: 11.5px; color: var(--text-2); margin-top: 6px; }
.plan { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.plan-day { padding: 16px; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.plan-t { font-family: var(--display); font-weight: 650; font-size: 17px; margin-bottom: 8px; }
.plan-row { display: flex; gap: 12px; padding: 6px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--text-2); }
.plan-row b { font-family: var(--mono); font-weight: 600; color: var(--teal-ink); min-width: 34px; }
.bvn { display: grid; gap: 10px; }
.bvn-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) 170px; gap: 14px; align-items: center; }
.bvn-row b { font-family: var(--mono); font-size: 12.5px; font-weight: 500; }
.bvn-bars .meter { margin: 3px 0; }
.legend-inline { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.lg { display: inline-block; width: 14px; height: 3px; border-radius: 3px; margin-left: 8px; }
.lg.violet { background: var(--indigo); } .lg.cyan { background: var(--teal); } .lg.dash { background: repeating-linear-gradient(90deg, var(--amber) 0 3px, transparent 3px 6px); }
.chart { width: 100%; height: auto; display: block; }
.chart text { font-family: var(--mono); }
.empty { color: var(--muted); padding: 24px; text-align: center; }

/* ---------- tables ---------- */
.tbl-wrap { overflow-x: auto; max-width: 100%; --tbl-bg: #fff; background: linear-gradient(90deg, var(--tbl-bg) 30%, rgba(255, 255, 255, 0)) left / 32px 100% no-repeat local, linear-gradient(270deg, var(--tbl-bg) 30%, rgba(255, 255, 255, 0)) right / 32px 100% no-repeat local, radial-gradient(farthest-side at 0 50%, rgba(20, 22, 48, .16), transparent) left / 12px 100% no-repeat scroll, radial-gradient(farthest-side at 100% 50%, rgba(20, 22, 48, .16), transparent) right / 12px 100% no-repeat scroll; }
.dataset .tbl-wrap { --tbl-bg: var(--card-2); }
.data-table, .md-table { border-collapse: collapse; width: 100%; font-size: 14px; }
.data-table th, .md-table th { text-align: left; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 9px 10px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.data-table td, .md-table td { padding: 9px 10px; border-bottom: 1px solid var(--line); }
.data-table tbody tr:hover td { background: var(--card-2); }
.data-table td.num, .data-table th.num { text-align: right; font-family: var(--mono); font-size: 13px; font-variant-numeric: tabular-nums; }
.data-table.compact td, .data-table.compact th { padding: 7px 9px; }

/* ---------- lessons ---------- */
.lesson-list { display: grid; gap: 6px; }
.lesson-row { position: relative; display: flex; align-items: center; gap: 12px; padding: 11px 13px; border-radius: 14px; background: #fff; border: 1px solid var(--line); color: var(--text); transition: border-color .2s, background .2s, box-shadow .2s; }
.lesson-row:hover { color: var(--text); border-color: var(--indigo-100); box-shadow: var(--shadow-sm); }
.lesson-row .tick { width: 24px; height: 24px; border-radius: 8px; border: 1.5px solid var(--line-2); display: grid; place-items: center; font-size: 11px; font-weight: 700; flex: none; color: #fff; }
.lesson-row.read .tick { border-color: var(--green); background: var(--green); }
.lr-b { min-width: 0; flex: 1; }
.lr-t { font-weight: 600; }
.lr-m { font-family: var(--mono); font-size: 12px; color: var(--muted); flex: none; }
.lesson { max-width: 780px; margin: 0 auto; padding: 32px 36px; border-radius: 26px; background: rgba(255, 255, 255, .9); border: 1px solid var(--line); box-shadow: var(--shadow); }
.lesson .display { margin: 12px 0 0; }
.lesson h2 { font-size: 23px; margin: 38px 0 12px; letter-spacing: -.03em; }
.lesson .md p, .lesson .md li { font-size: 16px; line-height: 1.75; color: var(--text-2); }
.lesson .md strong { color: var(--text); }
.md h3, .md h4 { font-family: var(--display); margin: 18px 0 8px; }
.md ul, .md ol { padding-left: 22px; }
.md table { margin: 10px 0; }
.md code, .stem code { font-family: var(--mono); font-size: .9em; background: var(--indigo-50); color: var(--indigo-ink); padding: 1px 6px; border-radius: 6px; }
.toc { display: flex; gap: 6px; flex-wrap: wrap; margin: 22px 0 6px; }
.toc-a { font-size: 12.5px; padding: 5px 11px; border-radius: 999px; background: var(--indigo-50); border: 1px solid var(--indigo-100); color: var(--indigo-ink); box-shadow: none; }
.toc-a:hover:not(:disabled) { background: #fff; }
.example { position: relative; margin: 12px 0; padding: 16px 18px; border-radius: 16px; background: var(--sky-50); border: 1px solid var(--sky-100); }
.ex-q { font-size: 15.5px; line-height: 1.6; }
.ex-sol { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--sky-100); color: var(--text-2); }
.ex-sol ol { padding-left: 20px; margin: 0; } .ex-sol li { margin: 4px 0; }
.ex-ans { margin-top: 8px; color: var(--text); }
.reveal { margin-top: 6px; }
.cheat { margin: 26px 0; padding: 16px 20px; border-radius: 18px; background: var(--amber-50); border: 1px solid var(--amber-100); }
.cheat-h { font-family: var(--mono); font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--amber-ink); margin-bottom: 6px; }
.cheat ul { margin: 0; padding-left: 20px; } .cheat li { margin: 5px 0; color: var(--text-2); }

/* ---------- quiz ---------- */
.quiz { position: relative; padding: 22px 24px 24px; border-radius: 26px; border: 1px solid transparent; border-top-width: 3px; background: linear-gradient(rgba(255, 255, 255, .95), rgba(255, 255, 255, .95)) padding-box, linear-gradient(90deg, #0EA5E9, #6D5DFC 50%, #C026D3) border-box; box-shadow: var(--shadow-lg); min-width: 0; }
.quiz-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.quiz-title { font-family: var(--display); font-weight: 650; font-size: 16.5px; letter-spacing: -.02em; margin-right: auto; min-width: 0; }
.quiz-prog { font-family: var(--mono); font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.quiz-timer { font-family: var(--mono); font-size: 13px; font-variant-numeric: tabular-nums; padding: 5px 11px; border-radius: 999px; background: var(--card-3); border: 1px solid var(--line); }
.quiz-bar { height: 4px; border-radius: 4px; margin: 14px 0 18px; background: var(--card-3); overflow: hidden; }
.quiz-bar i { display: block; height: 100%; width: 0; background: var(--grad); transition: width .35s var(--ease); }
.quiz-stage { animation: rise .35s var(--ease) backwards; }
.item-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.lvl { display: inline-flex; gap: 3px; }
.lvl i { width: 7px; height: 7px; border-radius: 50%; background: var(--card-3); border: 1px solid var(--line-2); }
.lvl i.on { background: var(--indigo); border-color: var(--indigo); }
.item-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.item-single { max-width: 760px; }
.item-ctx { position: sticky; top: 84px; min-width: 0; }
.item-q { min-width: 0; }
.passage { padding: 18px 20px; border-radius: 18px; background: var(--card-2); border: 1px solid var(--line); font-size: 15px; line-height: 1.75; color: var(--text-2); max-height: 70vh; overflow: auto; }
.passage-title { font-family: var(--display); font-weight: 650; font-size: 16px; color: var(--text); margin-bottom: 8px; }
.dataset { margin: 0; padding: 16px; border-radius: 18px; background: var(--card-2); border: 1px solid var(--line); min-width: 0; }
.ds-title { font-family: var(--display); font-weight: 650; margin-bottom: 10px; } .ds-unit { color: var(--muted); font-weight: 400; }
.ds-note { color: var(--muted); font-size: 12.5px; margin-top: 8px; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.stem { font-size: 18px; line-height: 1.5; font-weight: 550; margin-bottom: 16px; overflow-wrap: anywhere; color: var(--text); }
.answers { display: grid; gap: 9px; }
.opt { width: 100%; justify-content: flex-start; text-align: left; gap: 12px; padding: 13px 14px; border-radius: 15px; background: #fff; border: 1px solid var(--line-2); font-size: 15px; line-height: 1.45; box-shadow: var(--shadow-sm); }
.opt:hover:not(:disabled) { border-color: var(--indigo); background: var(--indigo-50); transform: translateY(-1px); }
.opt .k { width: 26px; height: 26px; border-radius: 8px; background: var(--card-3); display: grid; place-items: center; color: var(--text-2); font-family: var(--mono); font-weight: 600; font-size: 12px; flex: none; transition: background .2s, color .2s; }
.opt:hover:not(:disabled) .k { background: var(--indigo); color: #fff; }
.opt:disabled { cursor: default; opacity: .55; }
.opt.right, .opt.wrong, .opt.picked { opacity: 1; }
.opt.right { border-color: var(--green); background: var(--green-50); }
.opt.right .k { background: var(--green); color: #fff; }
.opt.wrong { border-color: var(--rose); background: var(--rose-50); }
.opt.wrong .k { background: var(--rose); color: #fff; }
.opt.picked { border-color: var(--indigo); background: var(--indigo-50); }
.opt-html { display: inline-flex; width: auto; padding: 8px; }
.answers:has(.opt-html) { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); }
.panels { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.panel-q { width: 96px; height: 120px; border: 2px dashed var(--indigo-100); background: var(--indigo-50); border-radius: 8px; display: grid; place-items: center; font-family: var(--display); font-size: 30px; color: var(--indigo); }
.num-row { display: flex; gap: 8px; flex-wrap: wrap; }
.num-in { width: 220px; font-family: var(--mono); font-size: 17px; }
.sjt-grid { display: grid; grid-template-columns: minmax(0, 1fr) 64px 64px; gap: 7px 8px; align-items: center; }
.sjt-hd { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); text-align: center; }
.sjt-hd:first-child { text-align: left; }
.sjt-opt { display: flex; gap: 10px; padding: 11px 13px; border-radius: 14px; background: #fff; border: 1px solid var(--line-2); line-height: 1.45; }
.sjt-opt .k { font-family: var(--mono); color: var(--muted); font-weight: 600; }
.pick { justify-content: center; color: #C3C6D6; border-radius: 12px; }
.pick.on { color: #fff; border-color: var(--indigo); background: var(--indigo); }
.pick:disabled { opacity: 1; cursor: default; }
.pick:disabled:not(.on):not(.right) { opacity: .5; }
.pick.right { color: #fff; border-color: var(--green); background: var(--green); opacity: 1; }
.pick.wrong { color: #fff; border-color: var(--rose); background: var(--rose); }
.hintbtn { margin-top: 8px; }
.hint { margin-top: 12px; padding: 11px 14px; border-radius: 14px; background: var(--amber-50); border: 1px solid var(--amber-100); color: #6B4407; font-size: 14px; }
.hint b { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--amber-ink); margin-right: 6px; }
.feedback { margin-top: 16px; }
.verdict { padding: 11px 14px; border-radius: 14px; font-size: 15px; border: 1px solid transparent; animation: rise .35s var(--ease) backwards; }
.verdict.ok { background: var(--green-50); border-color: var(--green-100); color: var(--green-ink); }
.verdict.ko { background: var(--rose-50); border-color: var(--rose-100); color: var(--rose-ink); }
.verdict.mid { background: var(--amber-50); border-color: var(--amber-100); color: var(--amber-ink); }
.verdict span { color: var(--text-2); font-family: var(--mono); font-size: 12.5px; }
.correct-ans { margin: 12px 0; }
.mini-opt { margin-top: 6px; }
.expl { margin-top: 10px; }
.expl:not(.open) .expl-body { display: none; }
.expl-body { padding: 16px 18px; border-radius: 18px; background: linear-gradient(180deg, var(--card-2), #fff); border: 1px solid var(--line); }
.expl-h { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--indigo-ink); margin: 2px 0 8px; }
.expl-sec ol { margin: 0 0 10px 20px; padding: 0; } .expl-sec li { margin: 5px 0; font-size: 14.5px; line-height: 1.65; color: var(--text-2); }
.expl-chip { display: flex; gap: 12px; padding: 10px 12px; border-radius: 12px; margin-top: 8px; font-size: 14px; line-height: 1.55; color: var(--text-2); border: 1px solid transparent; }
.expl-chip b { font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; padding-top: 3px; min-width: 92px; }
.expl-chip.sc { background: var(--teal-50); border-color: var(--teal-100); } .expl-chip.sc b { color: var(--teal-ink); }
.expl-chip.tr { background: var(--rose-50); border-color: var(--rose-100); } .expl-chip.tr b { color: var(--rose-ink); }
.expl-chip.ru { background: var(--amber-50); border-color: var(--amber-100); } .expl-chip.ru b { color: var(--amber-ink); }
.sjt-ratings { display: grid; gap: 5px; margin-bottom: 12px; }
.sjt-r { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--text-2); }
.rate { width: 150px; font-family: var(--mono); font-size: 11px; font-weight: 500; padding: 3px 8px; border-radius: 8px; text-align: center; flex: none; align-self: flex-start; }
.rate.r4 { background: var(--green-100); color: var(--green-ink); } .rate.r3 { background: var(--green-50); color: var(--green-ink); } .rate.r2 { background: var(--amber-50); color: var(--amber-ink); } .rate.r1 { background: var(--rose-50); color: var(--rose-ink); }
.news-ctx { padding: 18px; border-radius: 18px; background: linear-gradient(160deg, var(--teal-50), var(--indigo-50)); border: 1px solid var(--teal-100); }
.nc-kicker { font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-ink); margin-bottom: 8px; }
.nc-title { display: block; font-family: var(--display); font-weight: 650; font-size: 18px; line-height: 1.3; letter-spacing: -.02em; color: var(--text); }
a.nc-title:hover { color: var(--indigo-ink); text-decoration: underline; text-decoration-color: var(--indigo-100); }
.nc-meta { font-family: var(--mono); font-size: 11.5px; color: var(--muted); margin: 6px 0 12px; }
.nc-theme { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 14px; }
.nc-note { margin-top: 10px; font-size: 12.5px; color: var(--muted); }

/* calculator */
.calc { position: fixed; right: 18px; bottom: 18px; width: 264px; padding: 12px; z-index: 40; border-radius: 18px; background: rgba(255, 255, 255, .96); border: 1px solid var(--line-2); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: var(--shadow-lg); }
.calc-h { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.calc-in { width: 100%; font-family: var(--mono); }
.calc-out { font-family: var(--mono); font-size: 20px; text-align: right; padding-top: 8px; min-height: 30px; color: var(--indigo-ink); }

/* report */
.report-hero { display: flex; gap: 22px; align-items: center; margin-bottom: 18px; flex-wrap: wrap; }
.report-hero .big { font-family: var(--display); font-size: 68px; font-weight: 700; letter-spacing: -.05em; line-height: 1; }
.report-hero .big.ok { background: linear-gradient(120deg, #059669, #0EA5E9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.report-hero .big.ko { background: linear-gradient(120deg, #E11D48, #F59E0B); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rh-title { font-family: var(--display); font-weight: 650; font-size: 19px; letter-spacing: -.02em; }
.breakdown { display: grid; gap: 8px; margin-bottom: 14px; }
.bd { display: grid; grid-template-columns: 150px minmax(0, 1fr) 54px 160px; gap: 12px; align-items: center; font-size: 14px; }
.bd b { font-family: var(--mono); font-weight: 600; }
.bd > span:last-child { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.bd .meter { margin: 0; }
.review-list { display: grid; gap: 8px; }
.rev, .qcard, .story { padding: 13px 16px; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); min-width: 0; }
.rev summary, .qcard summary, .story summary { cursor: pointer; list-style: none; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.rev summary { display: grid; grid-template-columns: 12px 46px minmax(0, 1fr); column-gap: 10px; row-gap: 3px; align-items: baseline; }
.rev summary > .sk-tag { width: 46px; }
.rev-stem { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rev[open] .rev-stem { -webkit-line-clamp: unset; display: block; }
.rev-meta, .rev summary > em { grid-column: 3; font-family: var(--mono); font-size: 11.5px; color: var(--muted); font-style: normal; }
.small-stem { font-size: 15.5px; margin: 12px 0 4px; }
.rev summary::-webkit-details-marker, .qcard summary::-webkit-details-marker, .story summary::-webkit-details-marker { display: none; }
.rev summary::before, .qcard summary::before, .story summary::before { content: '›'; color: var(--indigo); font-weight: 700; transition: transform .2s; display: inline-block; }
.rev[open] summary::before, .qcard[open] summary::before, .story[open] summary::before { transform: rotate(90deg); }

.rev-ctx { margin: 12px 0; }
.rev-opts { margin: 8px 0; padding-left: 22px; } .rev-opts li { margin: 3px 0; color: var(--text-2); }
.rev-opts li.right { color: var(--green-ink); font-weight: 600; } .rev-opts li.wrong { color: var(--rose-ink); text-decoration: line-through; text-decoration-color: var(--rose-100); }

/* ---------- mocks ---------- */
.mock-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 14px; margin-bottom: 18px; }
.mock-card { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 20px; border-radius: 20px; background: linear-gradient(180deg, var(--tone-50), #fff 110px); border: 1px solid var(--line); color: var(--text); box-shadow: var(--shadow-sm); transition: border-color .2s, transform .25s var(--ease), box-shadow .25s; min-width: 0; }
.mock-card:hover { color: var(--text); border-color: var(--tone-100); transform: translateY(-2px); box-shadow: var(--shadow); }
.mock-card .chip { background: #fff; border-color: var(--tone-100); color: var(--tone-ink); font-weight: 600; }
.mc-top { display: flex; justify-content: space-between; align-items: center; }
.mc-min { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.mc-t { font-family: var(--display); font-weight: 650; font-size: 19px; letter-spacing: -.02em; }
.mc-foot { margin-top: auto; padding-top: 10px; display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-family: var(--mono); font-size: 11.5px; border-top: 1px solid var(--line); }
.mc-best.ok { color: var(--green-ink); }
.mock-intro .display { margin: 10px 0 0; }
.sec-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin: 18px 0; }
.sec-item { display: flex; align-items: center; gap: 14px; padding: 11px 14px; border-radius: 14px; background: var(--card-2); border: 1px solid var(--line); }
.sec-n { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: var(--indigo-50); font-family: var(--mono); font-size: 11.5px; font-weight: 600; color: var(--indigo-ink); }
.sec-name { font-weight: 600; flex: 1; }
.sec-meta { font-family: var(--mono); font-size: 12px; color: var(--muted); }

/* ---------- interviews ---------- */
.qbank { display: grid; gap: 8px; }
.q-body { margin-top: 12px; display: grid; gap: 10px; color: var(--text-2); }
.q-body ol, .q-body ul { margin: 0 0 0 20px; padding: 0; } .q-body li { margin: 3px 0; }
.pit li { color: var(--rose-ink); }
.skeleton { background: var(--violet-50); border: 1px dashed var(--violet-100); border-radius: 14px; padding: 12px 14px; font-family: var(--serif); font-size: 18px; font-style: italic; line-height: 1.5; color: var(--text); }
.stories { display: grid; gap: 8px; }
.story-b { display: grid; gap: 10px; margin-top: 12px; }
.fld { display: grid; gap: 5px; } .fld span { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; color: var(--muted); }
.fld textarea, .fld input { width: 100%; resize: vertical; }
.ev-row { display: flex; gap: 8px; flex-wrap: wrap; } .ev-row input:first-child { flex: 1; min-width: 180px; }
.video-room { display: grid; gap: 14px; }
.vr-q { padding: 18px 20px; border-radius: 20px; background: linear-gradient(135deg, var(--violet-50), var(--indigo-50)); border: 1px solid var(--violet-100); }
.vr-qt { font-family: var(--display); font-size: 21px; font-weight: 650; letter-spacing: -.02em; line-height: 1.3; margin-top: 6px; }
.vr-stage { position: relative; min-height: 300px; display: grid; place-items: center; overflow: hidden; border-radius: 22px; color: #fff; background: radial-gradient(600px 300px at 50% 0%, rgba(124, 108, 255, .35), transparent 70%), #12132A; border: 1px solid var(--line); box-shadow: var(--shadow); }
.vr-cam { width: 100%; max-height: 440px; object-fit: cover; transform: scaleX(-1); }
.vr-timer:empty { display: none; }
.vr-idle { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; padding: 24px; text-align: center; color: rgba(255, 255, 255, .78); font-size: 14px; max-width: 420px; margin: auto; }
.vr-idle-ic { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); color: #C7D2FE; }
.vr-timer { position: absolute; top: 14px; right: 14px; font-family: var(--mono); font-size: 20px; font-weight: 600; background: rgba(0, 0, 0, .45); padding: 5px 12px; border-radius: 12px; font-variant-numeric: tabular-nums; }
.vr-status { position: absolute; bottom: 14px; left: 14px; right: 14px; width: fit-content; background: rgba(0, 0, 0, .45); padding: 6px 12px; border-radius: 12px; font-size: 13.5px; }
.vr-ctrl { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.vr-rec { width: 100%; max-height: 360px; border-radius: 16px; }
.vr-play { display: grid; gap: 8px; }
.rubric { padding: 16px 18px; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); display: grid; gap: 10px; }
.rub-row { display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; }

/* ---------- news ---------- */
.ticker { position: relative; overflow: hidden; margin-bottom: 18px; padding: 13px 0; border-radius: 16px; background: linear-gradient(90deg, #14163A, #1E1B4B 50%, #14163A); box-shadow: var(--shadow); -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.tk-track { display: flex; gap: 34px; width: max-content; animation: marquee 70s linear infinite; padding-left: 20px; }
.ticker:hover .tk-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.tk { display: inline-flex; gap: 9px; align-items: baseline; font-family: var(--mono); font-size: 13px; white-space: nowrap; }
.tk-n { color: #A5A9C9; } .tk-v { color: #fff; }
.tk-c.up { color: #34D399; } .tk-c.down { color: #FB7185; }
.up { color: var(--up); } .down { color: var(--down); }
.mkt-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.mkt { position: relative; padding: 14px 15px 12px; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); min-width: 0; }
.mkt-top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.mkt-n { font-size: 13px; font-weight: 600; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mkt-c { font-family: var(--mono); font-size: 12px; white-space: nowrap; padding: 1px 7px; border-radius: 999px; }
.mkt-c.up { background: var(--green-50); color: var(--green-ink); } .mkt-c.down { background: var(--rose-50); color: var(--rose-ink); }
.mkt-v { font-family: var(--display); font-size: 24px; font-weight: 650; letter-spacing: -.03em; margin: 4px 0 2px; font-variant-numeric: tabular-nums; }
.mkt-spark .spark { width: 100%; height: 34px; display: block; }
.mkt-d { font-family: var(--mono); font-size: 10.5px; color: var(--muted); margin-top: 4px; }
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.theme-card { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 18px; background: linear-gradient(160deg, var(--tone-50), #fff 75%); border: 1px solid var(--tone-100); color: var(--text); box-shadow: var(--shadow-sm); transition: border-color .2s, transform .25s var(--ease), box-shadow .25s; min-width: 0; }
.theme-card:hover { color: var(--text); border-color: var(--tone); transform: translateY(-2px); box-shadow: var(--shadow); }
.theme-card.quiet { background: #fff; border-color: var(--line); }
.theme-card.quiet .tc-title { color: var(--text-2); }
.tc-k { font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--tone-ink); }
.tc-title { font-family: var(--display); font-weight: 650; font-size: 17px; letter-spacing: -.02em; line-height: 1.25; }
.tc-count { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.tc-count b { font-family: var(--display); font-size: 22px; color: var(--tone); }
.tc-hl { font-size: 12.5px; color: var(--text-2); margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.theme-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.theme-pill { display: inline-flex; gap: 10px; align-items: center; max-width: 100%; padding: 7px 13px; border-radius: 999px; background: var(--tone-50); border: 1px solid var(--tone-100); color: var(--text); font-size: 13.5px; font-weight: 500; }
.theme-pill b { font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.theme-pill span { flex: none; font-family: var(--mono); font-size: 11.5px; font-weight: 600; color: var(--tone-ink); }
.theme-pill:hover { color: var(--text); border-color: var(--tone); }
.hl-list { display: grid; }
.hl-row { display: grid; grid-template-columns: 130px minmax(0, 1fr) 60px; gap: 14px; align-items: baseline; padding: 10px 2px; border-top: 1px solid var(--line); color: var(--text); }
.hl-row:hover { color: var(--indigo-ink); }
.hl-row.read { color: var(--muted); }
.hl-src, .hl-d { font-family: var(--mono); font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hl-d { text-align: right; }
.hl-t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hl-feed { display: grid; }
.hl-item { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 12px 2px; border-top: 1px solid var(--line); }
.hl-tick { width: 24px; height: 24px; padding: 0; border-radius: 8px; justify-content: center; border: 1.5px solid var(--line-2); background: #fff; font-size: 11px; font-weight: 700; color: #fff; margin-top: 1px; box-shadow: none; }
.hl-item.read .hl-tick { border-color: var(--green); background: var(--green); }
.hl-title { font-size: 15px; font-weight: 550; line-height: 1.4; color: var(--text); }
a.hl-title:hover { color: var(--indigo-ink); text-decoration: underline; text-decoration-color: var(--indigo-100); }
.hl-item.read .hl-title { color: var(--muted); font-weight: 500; }
.hl-meta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 5px; font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.hl-meta .chip { font-family: var(--font); }
.hl-note { margin-top: 2px; }
.sources { margin: 6px 4px 0; line-height: 1.6; }
.drill-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; margin-bottom: 14px; }
.drill-card { position: relative; display: flex; flex-direction: column; gap: 8px; min-height: 168px; padding: 20px; border-radius: 22px; background: linear-gradient(160deg, var(--tone-50), #fff 80%); border: 1px solid var(--tone-100); color: var(--text); box-shadow: var(--shadow-sm); transition: border-color .2s, transform .25s var(--ease), box-shadow .25s; }
.drill-card:hover { color: var(--text); border-color: var(--tone); transform: translateY(-3px); box-shadow: var(--shadow); }
.drill-card .kicker { color: var(--tone-ink); } .drill-card .kicker::before { background: var(--tone); box-shadow: 0 0 0 3px var(--tone-100); }
.drill-card.off { opacity: .5; }
.dc-t { font-family: var(--display); font-weight: 650; font-size: 21px; letter-spacing: -.03em; }
.drill-card .go { margin-top: auto; align-self: flex-end; }
.theme-detail .md p, .theme-detail .md li { color: var(--text-2); line-height: 1.75; font-size: 15.5px; }
.interview-box { margin-top: 14px; padding: 14px 16px; border-radius: 16px; background: var(--violet-50); border: 1px solid var(--violet-100); }
.interview-box .expl-h { color: var(--violet-ink); }
.interview-box .md p { margin: 6px 0; }

/* ---------- motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .tk-track { animation: none; }
  .ticker { overflow-x: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; }
  .skill-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .passage { max-height: none; overflow: visible; }
  .grid-2, .grid-2.wide-left { grid-template-columns: minmax(0, 1fr); }
  .stages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .item-grid { grid-template-columns: minmax(0, 1fr); }
  .item-ctx { position: static; }
}
@media (max-width: 900px) { .mkt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  html { scroll-padding-bottom: 110px; }
  .hero-art { display: none; }
  .sec-list { grid-template-columns: 1fr; }
  .top { display: flex; padding: 10px 16px; gap: 10px; justify-content: space-between; backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(243, 244, 250, .96); }
  #nav { position: fixed; z-index: 35; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 6px; border-radius: 22px; background: rgba(255, 255, 255, .92); border-color: var(--line-2); backdrop-filter: blur(18px) saturate(170%); -webkit-backdrop-filter: blur(18px) saturate(170%); box-shadow: 0 18px 40px -12px rgba(20, 22, 48, .35); }
  .nav-a { flex-direction: column; gap: 3px; padding: 7px 0; font-size: 10.5px; border-radius: 16px; justify-content: center; }
  .nav-a .ic { width: 20px; height: 20px; }
  .nav-a .badge { position: absolute; top: 3px; left: calc(50% + 6px); font-size: 9.5px; padding: 2px 5px; }
  .nav-a .badge.dot { padding: 0; }
  main { padding: 22px 16px 120px; }
  .calc { bottom: 96px; right: 12px; }
  .hero { padding: 22px; border-radius: 24px; }
  .lesson { padding: 22px 18px; border-radius: 22px; }
  .plan { grid-template-columns: 1fr; }
  .bd { grid-template-columns: 110px minmax(0, 1fr) 46px; } .bd > span:last-child { display: none; }
  .bvn-row { grid-template-columns: 1fr; gap: 6px; }
  .hl-row { grid-template-columns: minmax(0, 1fr) 52px; } .hl-src { display: none; }
  .hl-t { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .hl-tick { width: 32px; height: 32px; }
  .hl-item { grid-template-columns: 32px minmax(0, 1fr) auto; }
  .chip { padding: 6px 12px; font-size: 12.5px; }
  .quiz-head .btn, .quiz-head button { min-height: 38px; min-width: 38px; }
  .seg button { min-height: 38px; }
  .tab { padding: 10px 14px; }
  .sjt-r { flex-direction: column; gap: 4px; } .rate { width: fit-content; }
}
@media (max-width: 560px) {
  .card { padding: 18px 16px; border-radius: 18px; }
  .quiz { padding: 16px 14px 18px; border-radius: 22px; }
  .quiz-title { flex-basis: 100%; }
  .quiz-timer { margin-left: auto; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpis.three { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .kpis.three .kpi { flex-direction: column; align-items: flex-start; gap: 4px; }
  .kpis.three .kpi-txt .muted { display: none; }
  .skill-card { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; }
  .tabs { flex-wrap: wrap; }
  .hl-item { grid-template-columns: 32px minmax(0, 1fr); }
  .kpi { padding: 12px; gap: 10px; }
  .kpi-big { font-size: 24px; min-width: 0; }
  .stages { grid-template-columns: 1fr; }
  .sjt-grid { grid-template-columns: minmax(0, 1fr) 46px 46px; }
  .num-in { width: 100%; }
  .data-table { font-size: 13px; } .data-table th, .data-table td { padding: 7px 7px; }
  .report-hero .big { font-size: 52px; }
  .expl-chip { flex-direction: column; gap: 4px; } .expl-chip b { min-width: 0; }
  .mock-grid { grid-template-columns: 1fr; }
  .hl-note { grid-column: 2; justify-self: start; }
  .setup-k { width: 100%; }
  .hero-cta .btn { width: 100%; }
  .page-h { margin-bottom: 18px; }
}

/* ---------- weekly wrap (story viewer) ---------- */
.wrap { position: relative; margin-bottom: 14px; }
.wrap-top { position: sticky; top: 64px; z-index: 5; padding: 10px 0 12px; background: linear-gradient(var(--bg) 70%, rgba(243, 244, 250, 0)); }
.wrap-segs { display: flex; gap: 5px; margin-bottom: 10px; }
.wrap-segs i { flex: 1; height: 4px; border-radius: 4px; background: rgba(20, 22, 48, .1); overflow: hidden; }
.wrap-segs i b { display: block; height: 100%; width: 0; border-radius: 4px; background: var(--grad); }
.wrap-segs i.done b { width: 100%; }
.wrap-segs i.cur b { width: 100%; }
.wrap.playing .wrap-segs i.cur b { width: 0; animation: seg var(--pill-ms, 13s) linear forwards; }
@keyframes seg { to { width: 100%; } }
.wrap-ctrl { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.wrap-count { font-family: var(--mono); font-size: 12px; color: var(--muted); min-width: 52px; }
.wrap-track { display: flex; align-items: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 28px; outline-offset: 4px; }
.wrap-track::-webkit-scrollbar { display: none; }
.wrap.list .wrap-track { flex-direction: column; gap: 16px; overflow: visible; scroll-snap-type: none; }
.wrap.list .wrap-segs { display: none; }
.pill { flex: 0 0 100%; scroll-snap-align: start; min-height: 480px; display: flex; flex-direction: column; gap: 14px; padding: 30px 34px; border-radius: 28px; background: radial-gradient(700px 300px at 100% 0%, var(--tone-100), transparent 60%), linear-gradient(160deg, var(--tone-50), #fff 70%); border: 1px solid var(--tone-100); box-shadow: var(--shadow); }
.wrap.list .pill { min-height: 0; }
.pill-k { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--tone-ink); }
.pill-n { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: var(--tone); color: #fff; letter-spacing: 0; }
.pill-t { font-family: var(--display); font-weight: 650; font-size: clamp(30px, 4vw, 46px); line-height: 1.04; letter-spacing: -.04em; margin: 0; }
.pill-b { display: flex; flex-direction: column; gap: 12px; font-size: 16.5px; line-height: 1.6; color: var(--text-2); max-width: 900px; }
.pill-b p { margin: 0; }
.pill-note { font-size: 14px; color: var(--muted); }
.pill-why { font-size: 19px; line-height: 1.5; color: var(--text); font-weight: 500; }
.pill-rule { display: flex; gap: 12px; align-items: baseline; padding: 10px 14px; border-radius: 14px; background: rgba(255, 255, 255, .75); border: 1px solid var(--tone-100); font-size: 14px; margin-top: auto; }
.pill-rule b { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--tone-ink); }
.pill-cover { color: #fff; border: 0; box-shadow: var(--shadow-lg); background: radial-gradient(760px 420px at 0% 0%, #7C6CFF 0%, rgba(124, 108, 255, 0) 62%), radial-gradient(640px 420px at 100% 0%, #D946EF 0%, rgba(217, 70, 239, 0) 58%), radial-gradient(760px 480px at 70% 130%, #22D3EE 0%, rgba(34, 211, 238, 0) 62%), linear-gradient(135deg, #4338CA, #5B21B6); }
.pill-cover .pill-k { color: rgba(255, 255, 255, .8); } .pill-cover .pill-n { background: #fff; color: var(--indigo-ink); }
.pill-cover .pill-t { color: #fff; font-size: clamp(38px, 5.6vw, 68px); }
.pill-cover .pill-b { color: rgba(255, 255, 255, .9); font-size: 18px; }
.pill-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.pill-stat { padding: 14px 16px; border-radius: 18px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25); }
.pill-stat span { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; opacity: .8; }
.pill-stat b { display: block; font-family: var(--display); font-size: 30px; letter-spacing: -.03em; margin-top: 2px; }
.pill-stat.text b { font-size: 19px; line-height: 1.25; }
.pill-cover .up { color: #A7F3D0; } .pill-cover .down { color: #FECDD3; }
.pbars { display: grid; gap: 9px; }
.pbar { display: grid; grid-template-columns: 120px minmax(0, 1fr) 70px 80px; gap: 12px; align-items: center; }
.pbar-k { font-weight: 600; color: var(--text); font-size: 14.5px; }
.pbar-track { position: relative; height: 12px; border-radius: 999px; background: rgba(20, 22, 48, .06); }
.pbar-track::after { content: ''; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px; background: rgba(20, 22, 48, .25); }
.pbar-track i { position: absolute; top: 0; bottom: 0; border-radius: 999px; animation: grow .8s var(--ease) both; }
.pbar-track i.pos { left: 50%; background: linear-gradient(90deg, #34D399, #059669); transform-origin: left; }
.pbar-track i.neg { right: 50%; background: linear-gradient(270deg, #FB7185, #E11D48); transform-origin: right; }
.pbar b { font-family: var(--mono); font-size: 14px; text-align: right; }
.pbar-l { font-family: var(--mono); font-size: 12px; color: var(--muted); text-align: right; }
.ptiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.ptile { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 16px; background: rgba(255, 255, 255, .85); border: 1px solid var(--tone-100); }
.ptile span { font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.ptile b { font-family: var(--display); font-size: 24px; letter-spacing: -.03em; color: var(--text); }
.ptile em { font-family: var(--mono); font-style: normal; font-size: 12px; }
.pill-count { font-size: 14px; color: var(--muted); } .pill-count b { font-family: var(--display); font-size: 26px; color: var(--tone); }
.pill-heads { display: grid; gap: 8px; }
.pill-head { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .85); border: 1px solid var(--tone-100); color: var(--text); font-weight: 550; font-size: 15px; line-height: 1.4; }
a.pill-head:hover { color: var(--text); border-color: var(--tone); box-shadow: var(--shadow-sm); }
.pill-head em { font-family: var(--mono); font-style: normal; font-weight: 400; font-size: 11.5px; color: var(--muted); }
.pill-script { margin: 0; padding: 20px 22px; border-radius: 18px; background: #fff; border: 1px solid var(--tone-100); border-left: 4px solid var(--tone); font-family: var(--serif); font-size: 22px; line-height: 1.45; color: var(--text); }
@media (max-width: 760px) {
  .wrap-top { top: 56px; }
  .pill { padding: 22px 18px; min-height: 0; border-radius: 22px; }
  .wrap-ctrl .row-start { width: 100%; }
  .wrap-ctrl .row-start .btn:last-child { margin-left: auto; }
  .pbar { grid-template-columns: 92px minmax(0, 1fr) 58px; } .pbar-l { display: none; }
  .pill-script { font-size: 19px; }
}

/* ---------- phone fixes (QA round 2) ---------- */
.calc-h { display: flex; justify-content: space-between; align-items: center; }
.calc-x { width: 34px; height: 34px; padding: 0; justify-content: center; border-radius: 10px; }
.calc-keys { display: grid; grid-template-columns: repeat(8, 1fr); gap: 5px; margin-top: 8px; }
.calc-keys button { height: 36px; padding: 0; justify-content: center; font-family: var(--mono); font-size: 14px; border-radius: 9px; }
.num-pm { min-width: 46px; justify-content: center; font-family: var(--mono); font-size: 17px; }
.num-hint { margin-top: 6px; }
.your-ans { margin: -4px 0 12px; }
.pick-l { display: none; }
.lvl-badge { white-space: nowrap; }
.tbl-wrap { background-size: 32px 100%, 32px 100%, 18px 100%, 18px 100%; }
@media (max-width: 760px) {
  input, textarea, select, .calc-in { font-size: 16px; }
  .calc { left: 10px; right: 10px; width: auto; bottom: calc(14px + env(safe-area-inset-bottom)); }
  body.calc-open main { padding-bottom: 330px; }
  body.quiz-on #nav { display: none; }
  body.quiz-on main { padding-bottom: 60px; }
  .calc-keys button { height: 44px; }
  .quiz-head .btn, .quiz-head button { min-height: 44px; min-width: 44px; }
  .btn.small, button.small { min-height: 40px; }
  .linkbtn { min-height: 40px; }
  .hl-tick { width: 40px; height: 40px; }
  .hl-item { grid-template-columns: 40px minmax(0, 1fr) 40px; gap: 10px; }
  .hl-note { grid-column: 3; grid-row: 1; width: 40px; height: 40px; padding: 0; justify-content: center; font-size: 0; }
  .hl-note::before { content: '✎'; font-size: 17px; }
  .theme-grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: none; }
  .theme-grid > * { scroll-snap-align: start; }
  .mkt { padding: 12px; } .mkt-v { font-size: 20px; } .mkt-spark .spark { height: 26px; }
  .rub-row .seg { display: grid; grid-template-columns: repeat(5, 1fr); width: 100%; }
  .rub-row .seg button { min-height: 44px; justify-content: center; }
  .vr-ctrl label { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
  .vr-ctrl input[type="checkbox"] { width: 22px; height: 22px; }
  .video-room { display: flex; flex-direction: column; }
  .vr-stage { min-height: 220px; }
  .vr-ctrl { order: -1; }
  .vr-q { order: -2; }
}
@media (max-width: 560px) {
  .tabs { flex-wrap: nowrap; width: 100%; overflow-x: auto; scroll-snap-type: x proximity; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
  .tab { scroll-snap-align: start; }
  .sjt-grid { grid-template-columns: 1fr 1fr; gap: 6px 8px; }
  .sjt-grid .sjt-hd { display: none; }
  .sjt-grid .sjt-opt { grid-column: 1 / -1; margin-top: 6px; }
  .pick { gap: 8px; min-height: 44px; }
  .pick-l { display: inline; font-size: 13px; font-weight: 600; }
  .pick-dot { font-size: 10px; }
  .pick.on .pick-l, .pick.right .pick-l, .pick.wrong .pick-l { color: #fff; }
  .pick:not(.on):not(.right):not(.wrong) .pick-l { color: var(--text-2); }
}
