/* Bodhaa design system (approved sample design, Dec 2026). Used by templates that extend site/base.html. */
:root {
  --paper: #f5f3ee; --surface: #fff; --line: #e7e3d9; --line-2: #d9d4c7;
  --ink: #18181b; --text: #2b2b2e; --muted: #5d5d63; --faint: #8a8a90;
  --teal: #136b67; --teal-dark: #0e5652; --teal-soft: #e3efec;
  --board: #1f2a25; --board-2: #26332d; --wood: #6b4a2b;
  --yellow: #f2c14e; --yellow-soft: #fcefd0; --amber-text: #8a5a00;
  --chalk-blue: #8ecfe3; --chalk-coral: #ec8576; --chalk-green: #a6d17a; --chalk-white: #f1f0ea;
  --night: #18191b;
  --chem-bg: #e9eff8; --chem-ink: #1f3d7a; --chem-bar: #9db2d6;
  --math-ink: #8a5a12; --math-bar: #d9b44a;
  --bio-bg: #efede3; --bio-ink: #3e5b23; --bio-bar: #7f9a57;
  --r: 14px; --r-lg: 18px;
  --head: "Space Grotesk", system-ui, sans-serif; --body: "Inter", system-ui, sans-serif;
  --chalk: "Caveat", "Comic Sans MS", cursive;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 15px/1.6 var(--body); }
img, svg { max-width: 100%; }
a { color: var(--teal); }
h1, h2, h3, h4 { font-family: var(--head); color: var(--ink); line-height: 1.12; margin: 0 0 .4em; letter-spacing: -.01em; }
h1 { font-size: clamp(34px, 5vw, 52px); font-weight: 700; }
h2 { font-size: clamp(22px, 2.6vw, 28px); font-weight: 600; }
h3 { font-size: 17px; font-weight: 600; font-family: var(--body); }
p { margin: 0 0 1em; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.narrow { max-width: 940px; margin: 0 auto; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.lead { font-size: 17px; color: var(--muted); max-width: 640px; }
.chalk { font-family: var(--chalk); font-weight: 600; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Header and footer */
.top { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.top .wrap { display: flex; align-items: center; gap: 22px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 700 19px var(--head); }
.brand .mark { width: 34px; height: 34px; border-radius: 9px; background: var(--teal); display: grid; place-items: center; }
.top nav { display: flex; gap: 4px; flex: 1; }
.top nav a { color: var(--ink); text-decoration: none; padding: 7px 12px; border-radius: 9px; font-size: 14.5px; }
.top nav a:hover { background: var(--paper); }
.top nav a.on { background: var(--teal-soft); color: var(--teal-dark); font-weight: 600; }
.crumbs { flex: 1; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--teal); text-decoration: none; }
.crumbs span { margin: 0 6px; color: var(--faint); }
.top .actions { display: flex; gap: 10px; align-items: center; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--yellow); color: var(--ink); display: grid; place-items: center; font-weight: 700; text-decoration: none; }
.foot { border-top: 1px solid var(--line); padding: 22px 0 40px; font-size: 13px; color: var(--muted); }
.foot .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.foot a { color: var(--teal); }
.menu-btn { display: none; }

/* Buttons, chips, pills */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 10px; padding: 10px 18px;
  font: 600 14.5px var(--body); text-decoration: none; cursor: pointer; border: 1px solid transparent; line-height: 1.2; }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); }
.btn-outline { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn-outline-teal { background: var(--surface); color: var(--teal); border-color: var(--teal); }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-ghost-dark { background: transparent; color: #fff; border-color: #3c4943; }
.btn-block { display: flex; width: 100%; padding: 13px 18px; }
.btn-sm { padding: 7px 13px; font-size: 13.5px; border-radius: 9px; }
.link { color: var(--teal); font-weight: 600; text-decoration: none; background: none; border: 0; cursor: pointer; font: inherit; padding: 0; }
.chip { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: #eeede8; color: var(--text); }
.pill-ok { background: var(--teal-soft); color: var(--teal-dark); }
.pill-soon { background: var(--yellow-soft); color: var(--amber-text); }
.eyebrow { display: inline-block; background: var(--teal-soft); color: var(--teal-dark); font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.kicker { color: var(--teal); font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.seg { display: inline-flex; background: #eae7df; border-radius: 999px; padding: 4px; gap: 2px; flex-wrap: wrap; }
.seg button, .seg a { border: 0; background: none; padding: 7px 14px; border-radius: 999px; font: 600 13px var(--body); color: var(--ink); cursor: pointer; text-decoration: none; }
.seg .on { background: var(--night); color: #fff; }
.filters { display: flex; gap: 8px; }
.filters button { border: 1px solid var(--line-2); background: var(--surface); border-radius: 999px; padding: 7px 14px; font: 500 13px var(--body); cursor: pointer; }
.filters button.on { background: var(--night); border-color: var(--night); color: #fff; }

/* Cards and panels */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.pad { padding: 24px; }
.soft { background: #f1efe8; border-radius: var(--r); }
.section { padding: 56px 0; }
.section-white { background: var(--surface); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.row { display: flex; align-items: center; gap: 12px; }
.between { justify-content: space-between; }
.stack > * + * { margin-top: 12px; }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { padding-left: 24px; position: relative; margin: 6px 0; font-size: 14px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 10px; height: 5px; border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(-45deg); }
.on-board .ticks li::before { border-color: var(--chalk-green); }

/* Chalkboard */
.board { background: var(--board); color: var(--chalk-white); border-radius: var(--r-lg); position: relative; overflow: hidden; }
.board-framed { border: 8px solid var(--wood); border-radius: 16px; }
.board .chalk-title { font: 600 30px/1.1 var(--chalk); color: var(--yellow); }
.board .chalk-line { font: 500 18px var(--chalk); color: var(--chalk-white); }
.play { width: 54px; height: 54px; border-radius: 50%; background: var(--yellow); display: grid; place-items: center; border: 0; cursor: pointer; }
.play svg { margin-left: 3px; }
.dur { background: rgba(0, 0, 0, .55); color: #fff; font-size: 12px; padding: 2px 8px; border-radius: 5px; }

/* Hero */
.hero { padding: 48px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.hero h1 { margin: 14px 0 18px; }
.hero .lead { margin-bottom: 22px; }
.hero-board { text-decoration: none; display: block; aspect-ratio: 16 / 9.4; padding: 22px 24px; }
.hero-board svg.traj { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-board .bar { position: absolute; left: 24px; right: 24px; bottom: 22px; display: flex; align-items: center; gap: 14px; }
.hero-board .track { flex: 1; height: 3px; background: #3c4943; border-radius: 3px; position: relative; }
.hero-board .track i { position: absolute; left: 0; top: 0; bottom: 0; width: 30%; background: var(--yellow); border-radius: 3px; }

/* Course cards with subject themes */
.course-card { display: flex; flex-direction: column; overflow: hidden; }
.course-card .cover { height: 88px; padding: 20px 14px 12px; display: flex; flex-direction: column; justify-content: flex-end; border-bottom: 4px solid var(--line-2); }
.course-card .cover b { font-size: 22px; line-height: 1.05; }
.course-card .cover small { font-size: 11.5px; margin-top: 5px; }
.course-card .body { padding: 14px; display: flex; flex-direction: column; flex: 1; }
.course-card .body h3 { margin: 8px 0 6px; font-size: 15px; }
.course-card .body p { font-size: 13px; color: var(--muted); flex: 1; margin-bottom: 14px; }
.course-card .foot-row { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 12px; font-size: 14px; }
.course-card .foot-row strong { font-weight: 700; }
.course-card .foot-row form { margin: 0; }
.theme-chalkboard .cover { background: var(--board); border-color: var(--wood); }
.theme-chalkboard .cover b { font: 600 26px var(--chalk); color: var(--yellow); }
.theme-chalkboard .cover small { color: #d9d8d0; }
.theme-notebook .cover { background: var(--chem-bg); border-color: var(--chem-bar); }
.theme-notebook .cover b { font: 700 22px var(--head); color: var(--chem-ink); }
.theme-graph .cover { background-color: #fff; background-image: linear-gradient(#ececec 1px, transparent 1px), linear-gradient(90deg, #ececec 1px, transparent 1px); background-size: 14px 14px; border-color: var(--math-bar); }
.theme-graph .cover b { font: 700 22px var(--head); color: var(--math-ink); }
.theme-journal .cover { background: var(--bio-bg); border-color: var(--bio-bar); }
.theme-journal .cover b { font: 700 22px var(--head); color: var(--bio-ink); }
.theme-plain .cover { background: #efece4; border-color: var(--line-2); }
.theme-plain .cover b { font: 700 22px var(--head); color: var(--ink); }
.cover small { color: var(--muted); }

/* Feature tiles and banners */
.tile { background: #f7f5f0; border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.tile .ico { color: var(--teal); margin-bottom: 10px; }
.tile h3 { margin-bottom: 6px; }
.tile p { font-size: 13.5px; color: var(--muted); margin: 0; }
.banner-dark { background: var(--night); color: #e7e7e7; border-radius: var(--r-lg); padding: 30px 28px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.banner-dark h2 { color: #fff; margin-bottom: 8px; }
.banner-dark p { margin: 0; font-size: 14px; max-width: 560px; }
.banner-dark .price { font: 700 30px var(--head); color: #fff; margin-right: 8px; }
.banner-board { background: var(--board); color: #e7e7e7; border-radius: var(--r-lg); padding: 28px 32px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.banner-board h2 { font: 600 36px var(--chalk); color: var(--yellow); margin: 0 0 6px; }
.banner-board p { margin: 0; }
.how-board { padding: 26px 24px; }
.how-board h3 { font: 600 28px var(--chalk); margin-bottom: 12px; }
.c-yellow { color: var(--yellow) !important; } .c-blue { color: var(--chalk-blue) !important; } .c-green { color: var(--chalk-green) !important; } .c-coral { color: var(--chalk-coral) !important; }

/* Course page */
.course-hero { background: var(--board); color: #e6e6e1; padding: 56px 0; border-bottom: 6px solid var(--wood); }
.course-hero.theme-journal { background: #f1efe6; color: var(--text); border-color: var(--bio-bar); }
.course-hero .hero-grid { grid-template-columns: 1fr 440px; }
.course-hero h1 { font: 600 58px/1 var(--chalk); color: var(--yellow); margin: 18px 0 14px; }
.course-hero.theme-journal h1 { font: 700 56px var(--head); color: var(--bio-ink); }
.course-hero .tagline { font: 500 22px var(--chalk); margin-bottom: 18px; }
.course-hero .level { border: 1px solid #50605a; color: #fff; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.course-hero .stats { display: flex; gap: 20px; font-size: 14px; flex-wrap: wrap; }
.course-hero .stats b.y { color: var(--yellow); } .course-hero .stats b.b { color: var(--chalk-blue); } .course-hero .stats b.g { color: var(--chalk-green); }
.buy-card { background: var(--surface); color: var(--text); border-radius: var(--r-lg); padding: 14px; }
.buy-card .preview { aspect-ratio: 16 / 9; border-radius: 12px; display: grid; place-items: center; position: relative; }
.buy-card .preview .label { position: absolute; left: 12px; bottom: 10px; font-size: 12px; color: #e5e5e5; }
.buy-card .price-line { display: flex; align-items: baseline; gap: 8px; margin: 14px 4px 12px; flex-wrap: wrap; }
.buy-card .price-line b { font: 700 32px var(--head); color: var(--ink); }
.buy-card .price-line span { font-size: 13px; color: var(--muted); }
.buy-card .btn + .btn { margin-top: 10px; }
.buy-card .ticks { margin: 12px 4px 4px; }
.unit { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
.unit summary { display: flex; align-items: center; gap: 16px; padding: 14px 16px; cursor: pointer; list-style: none; font-weight: 600; font-size: 14.5px; color: var(--ink); }
.unit summary::-webkit-details-marker { display: none; }
.unit summary .num { font: 600 20px var(--chalk); width: 28px; }
.unit summary .n { margin-left: auto; font-weight: 400; font-size: 13px; color: var(--muted); }
.unit[open] { border: 1.5px solid var(--ink); }
.unit ul { list-style: none; margin: 0; padding: 0 16px 14px 60px; }
.unit li { display: flex; align-items: center; gap: 8px; font-size: 13.5px; padding: 3px 0; }
.unit li .t { margin-left: auto; color: var(--muted); font-size: 13px; }
.unit li a { color: var(--ink); text-decoration: none; }
.lock { width: 12px; height: 12px; color: var(--muted); }
.code-board { padding: 18px 20px; }
.code-board div { display: flex; align-items: center; gap: 12px; font: 500 19px var(--chalk); margin: 6px 0; }
.code-board i { width: 24px; height: 3px; border-radius: 2px; display: inline-block; }
.free-tag { background: var(--teal-soft); color: var(--teal-dark); font-size: 10.5px; font-weight: 700; padding: 2px 7px; border-radius: 4px; letter-spacing: .03em; }

/* Exam page */
.exam-hero { background: var(--surface); border-bottom: 1px solid var(--line); padding: 36px 0 40px; }
.exam-hero .wrap { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; flex-wrap: wrap; }
.next-exam { background: #f1efe8; border-radius: var(--r); padding: 16px 18px; min-width: 260px; }
.next-exam .label { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.next-exam b { display: block; font: 700 17px var(--head); color: var(--ink); margin: 4px 0 2px; }
.table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; font-size: 14px; }
.table th { text-align: left; font-weight: 600; color: var(--muted); font-size: 13px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.table td { padding: 11px 14px; border-bottom: 1px solid #f0ede6; }
.table tr:last-child td { border-bottom: 0; }
.bundle { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.bundle .price { font: 700 26px var(--head); color: var(--ink); margin-right: 8px; }

/* Free samples */
.sample { overflow: hidden; display: flex; flex-direction: column; }
.sample .shot { aspect-ratio: 16 / 9; background: var(--board); border-bottom: 6px solid var(--wood); padding: 18px 20px; position: relative; }
.sample .shot .chalk-title { font: 600 30px var(--chalk); color: var(--yellow); line-height: 1; }
.sample .shot .chalk-line { font: 500 19px var(--chalk); color: var(--chalk-white); }
.sample .shot .dur { position: absolute; left: 20px; bottom: 16px; }
.sample .shot .play { position: absolute; right: 18px; bottom: 14px; }
.sample .meta { padding: 14px 20px 18px; }
.sample .meta .k { font-size: 13px; color: var(--muted); font-weight: 600; }
.sample .meta h3 { font-size: 17px; margin: 4px 0 4px; }
.sample .meta p { margin: 0; font-size: 14px; color: var(--muted); }

/* Plans */
.plans-head { text-align: center; padding: 40px 0 10px; }
.plans-head .lead { margin: 0 auto 18px; }
.toggles { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.toggles .row { flex-wrap: wrap; justify-content: center; }
.toggles .lbl { font-size: 13px; color: var(--muted); }
.subj-chips { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.subj-chips button { border: 1px solid var(--line-2); background: var(--surface); border-radius: 10px; padding: 7px 12px; font: 600 13px var(--body); cursor: pointer; display: flex; gap: 6px; align-items: center; }
.subj-chips button.on { border: 1.5px solid var(--teal); color: var(--teal-dark); }
.plan-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 900px; margin: 26px auto 0; }
.plan { padding: 26px; border-radius: var(--r-lg); position: relative; }
.plan h2 { margin-bottom: 8px; }
.plan .amt { display: flex; align-items: baseline; gap: 8px; margin: 14px 0 16px; flex-wrap: wrap; }
.plan .amt b { font: 700 40px var(--head); }
.plan .amt span { font-size: 13px; }
.plan.dark { background: var(--board); border: 8px solid var(--wood); color: #e6e6e1; }
.plan.dark h2 { font: 600 34px var(--chalk); color: var(--yellow); }
.plan.dark .amt b { color: #fff; }
.plan .ribbon { position: absolute; top: -14px; right: 14px; background: var(--yellow); color: var(--ink); font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.plan .tba { font: 600 20px var(--head); color: inherit; }
.compare { max-width: 900px; margin: 0 auto; }
.compare table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; font-size: 13.5px; }
.compare th, .compare td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid #f0ede6; }
.compare td:nth-child(3), .compare th:nth-child(3) { background: #f0f6f4; }
.compare .grp td { color: var(--teal); font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding-top: 18px; background: var(--surface) !important; }
.compare td small, .compare th small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }
.compare .tick { color: var(--teal); font-weight: 700; }
.compare td:nth-child(3) { font-weight: 500; color: var(--ink); }

/* Help and policies */
.faq { overflow: hidden; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary { padding: 18px 22px; font-weight: 600; color: var(--ink); cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--teal); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 22px 18px; margin: 0; color: var(--muted); }
.input, .field input, .field select, .field textarea { width: 100%; border: 1px solid var(--line-2); border-radius: 10px; padding: 12px 14px; font: 15px var(--body); background: #fff; color: var(--ink); }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; font-size: 14px; color: var(--ink); margin-bottom: 6px; }
.field .err { color: #b3261e; font-size: 13px; margin-top: 4px; }
.field .hint { color: var(--muted); font-size: 13px; margin-top: 4px; }
.policy-layout { display: grid; grid-template-columns: 270px 1fr; gap: 40px; max-width: 1150px; margin: 0 auto; padding: 48px 28px; }
.policy-nav .label { font-size: 12px; font-weight: 700; letter-spacing: .05em; color: var(--muted); padding: 0 14px 8px; }
.policy-nav a { display: block; padding: 10px 14px; border-radius: 10px; color: var(--ink); text-decoration: none; margin-bottom: 4px; }
.policy-nav a.on { background: var(--teal-soft); color: var(--teal-dark); font-weight: 600; }
.policy { padding: 40px 42px; }
.policy h1 { font-size: 40px; }
.policy h2 { font-size: 21px; margin-top: 28px; font-family: var(--body); font-weight: 700; }
.policy .short { background: #f5f3ee; border-radius: 10px; padding: 14px 18px; margin: 14px 0 6px; }

/* Login */
.auth { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.auth-board { background: var(--board); border-right: 10px solid var(--wood); color: #ddd; padding: 48px 50px; display: flex; flex-direction: column; }
.auth-board .brand { color: #fff; }
.auth-board .say { margin: auto 0; }
.auth-board .say b { display: block; font: 600 46px/1.1 var(--chalk); color: var(--yellow); }
.auth-board .say span { font: 500 24px var(--chalk); color: #f0f0ea; }
.auth-board .small { color: #cfcfca; }
.auth-form { display: grid; place-items: center; padding: 40px 28px; }
.auth-form .box { width: 100%; max-width: 420px; }
.auth-form h1 { font-size: 34px; margin-bottom: 10px; }
.phone { display: flex; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; overflow: hidden; }
.phone span { padding: 12px 14px; border-right: 1px solid var(--line-2); font-weight: 600; }
.phone input { border: 0; padding: 12px 14px; font: 15px var(--body); flex: 1; min-width: 0; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 16px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.otp-boxes { letter-spacing: .5em; font: 600 22px var(--head); text-align: center; }
.msgs { max-width: 1200px; margin: 14px auto 0; padding: 0 28px; }
.msg { background: var(--teal-soft); color: var(--teal-dark); padding: 10px 14px; border-radius: 10px; margin-bottom: 8px; font-size: 14px; }
.msg.error { background: #fbe9e7; color: #9a2a1b; }

/* Responsive */
@media (max-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero-grid, .course-hero .hero-grid, .split, .plan-cards { grid-template-columns: 1fr; }
  .policy-layout { grid-template-columns: 1fr; padding: 28px 18px; gap: 18px; }
  .policy-nav { display: flex; overflow-x: auto; gap: 6px; } .policy-nav .label { display: none; } .policy-nav a { white-space: nowrap; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 18px; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .top nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 8px 14px 14px; border-bottom: 1px solid var(--line); }
  .top nav.open { display: flex; }
  .menu-btn { display: inline-flex; margin-left: auto; background: none; border: 1px solid var(--line-2); border-radius: 9px; padding: 7px 9px; cursor: pointer; }
  .top .actions .btn-primary { display: none; }
  .auth { grid-template-columns: 1fr; }
  .auth-board { border-right: 0; border-bottom: 8px solid var(--wood); padding: 28px 22px; min-height: 0; }
  .auth-board .say { margin: 36px 0 8px; } .auth-board .say b { font-size: 36px; }
  .policy { padding: 26px 20px; }
  .course-hero h1 { font-size: 46px; }
  .compare { overflow-x: auto; } .compare table { min-width: 640px; }
  .section { padding: 40px 0; }
}

/* Onboarding */
.steps-bar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.steps-bar i { height: 5px; border-radius: 3px; background: #e7e3d9; }
.steps-bar i.on { background: var(--teal); }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; }
.choice span { display: block; border: 1px solid var(--line-2); border-radius: 12px; padding: 16px; }
.choice b { display: block; color: var(--ink); font-size: 16px; } .choice small { color: var(--muted); font-size: 13px; }
.choice input:checked + span { border: 2px solid var(--teal); background: var(--teal-soft); padding: 15px; }
.choice input:checked + span b, .choice input:checked + span small { color: var(--teal-dark); }
.choice input:focus-visible + span { outline: 2px solid var(--teal); outline-offset: 2px; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px 18px; margin-top: 14px; }
.check-grid label { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid #f0ede6; font-size: 14.5px; }

/* My learning */
.continue { display: flex; align-items: center; gap: 26px; padding: 26px 30px; margin-top: 22px; text-decoration: none; color: #e7e7e1; }
.continue .chalk-title { font: 600 36px var(--chalk); color: var(--yellow); }
.continue .track { width: 440px; max-width: 100%; height: 5px; background: #3c4943; border-radius: 3px; position: relative; display: inline-block; }
.continue .track i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--yellow); border-radius: 3px; }
.unit-row { display: grid; grid-template-columns: 40px 1fr 210px 48px; align-items: center; gap: 12px; padding: 16px 0; border-bottom: 1px solid #f0ede6; }
.unit-row:last-child { border-bottom: 0; }
.unit-row .num { font-size: 20px; } .unit-row b { color: var(--ink); font-weight: 600; font-size: 15px; }
.unit-row .bar { height: 6px; background: #eeebe3; border-radius: 4px; position: relative; overflow: hidden; }
.unit-row .bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--teal); border-radius: 4px; }
.unit-row .pct { text-align: right; font-size: 13px; color: var(--muted); }
.stat { font: 700 30px var(--head); color: var(--ink); }
@media (max-width: 760px) { .unit-row { grid-template-columns: 30px 1fr 60px; } .unit-row .bar { display: none; } .continue { padding: 20px; gap: 16px; } .continue .chalk-title { font-size: 28px; } }

/* Lesson player (dark) */
body:has(.lesson-page) { background: #121417; color: #e6e6e3; }
.lesson-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 40px; border-bottom: 1px solid #23262b; }
.lesson-top .back { display: flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-size: 17px; }
.lesson-top .crumb { color: #a9a9ae; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lesson-page { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 26px; padding: 26px 40px 60px; max-width: 1500px; margin: 0 auto; }
.player-box { aspect-ratio: 16 / 9; position: relative; }
.player-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-box .locked { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 12px; padding: 40px; }
.player-box .locked p { color: #cfcfc8; margin: 0; max-width: 460px; }
.marks { position: relative; height: 10px; margin: 10px 0 4px; background: #2a2e33; border-radius: 4px; }
.marks i { position: absolute; top: 1px; width: 8px; height: 8px; margin-left: -4px; border-radius: 2px; background: #b9a2f0; }
.marks b { position: absolute; top: -3px; bottom: -3px; width: 3px; background: var(--chalk-blue); border-radius: 2px; }
.marks-key { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: #9a9aa0; margin: 0; }
.marks-key i { display: inline-block; width: 9px; height: 9px; margin-right: 6px; vertical-align: -1px; border-radius: 2px; }
.marks-key .sq { background: #b9a2f0; } .marks-key .ln { background: var(--chalk-blue); width: 3px; }
.title-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; border-top: 1px solid #23262b; margin-top: 16px; padding-top: 16px; }
.title-row h1 { color: #f1f1ee; font-size: 26px; margin: 0; }
.title-row form { margin: 0; }
.btn-dark-line { background: #16181b; color: #f1f1ee; border-color: #3a3e44; }
.btn-dark-line:hover { border-color: #5a5e64; }
.in-video { background: #1a1d21; border-radius: 14px; padding: 14px 16px; margin: 18px 0; }
.in-video .label, .side-title { color: #a9a9ae; font-size: 14px; font-weight: 600; margin: 0 0 8px; }
.in-video a, .unit-item { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px; color: #e6e6e3; text-decoration: none; font-size: 14.5px; }
.in-video a.on, .unit-item.on { background: #262a30; font-weight: 600; }
.in-video .t, .unit-item .t { margin-left: auto; color: #9a9aa0; font-size: 13px; }
.in-video small { color: var(--chalk-blue); }
.dot { width: 11px; height: 11px; border-radius: 50%; border: 2px solid #6b6f75; flex: none; }
.dot.done { background: var(--chalk-green); border-color: var(--chalk-green); }
.dot.now { background: var(--yellow); border-color: var(--yellow); }
.dark-seg { background: #1f2226; margin-top: 4px; } .dark-seg button { color: #d8d8d4; } .dark-seg .on { background: #f1f1ee; color: #121417; }
.dark-h2 { color: #f1f1ee; margin-top: 30px; font-size: 22px; }
.q-dark { background: #1a1d21; border: 1px solid #2a2e33; border-radius: 14px; padding: 18px 20px; margin-bottom: 14px; }
.q-dark b { color: #fff; } .q-dark .chip { background: #2a2e33; color: #d8d8d4; }
.q-dark .opt { display: block; padding: 9px 12px; border: 1px solid #33373d; border-radius: 10px; margin: 6px 0; cursor: pointer; }
.q-dark .result .ok { color: var(--chalk-green); } .q-dark .result .no { color: var(--chalk-coral); }
.q-dark .result p { color: #d8d8d4; } .q-dark .result iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 10px; margin-top: 10px; }
.lesson-side { background: #1a1d21; border-radius: 16px; padding: 14px; align-self: start; position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow: auto; }
.tabs { display: flex; border-bottom: 1px solid #2a2e33; margin: -14px -14px 14px; }
.tabs button { flex: 1; background: none; border: 0; color: #a9a9ae; padding: 14px; font: 600 15px var(--body); cursor: pointer; border-bottom: 3px solid transparent; }
.tabs button.on { color: #fff; border-color: var(--yellow); }
.tabs .close { flex: none; display: none; font-size: 22px; }
#doubt-panel .me { background: #262a30; border-radius: 12px; padding: 12px 14px; margin: 0 0 12px 30px; color: #f1f1ee; }
#doubt-panel .me .at { display: block; color: #b9a2f0; font-size: 12.5px; margin-bottom: 4px; }
#doubt-panel .tutor { background: #1f2a25; border: 1px solid #2c3b33; border-radius: 12px; padding: 14px 16px; margin-bottom: 12px; color: #e6e6e3; }
#doubt-panel .tutor .who { display: block; color: var(--chalk-green); font-size: 12.5px; font-weight: 600; margin-bottom: 6px; }
#doubt-panel .tutor .txt > p:first-child { font: 600 21px/1.2 var(--chalk); color: var(--yellow); }
#doubt-panel .tutor.failed { border-color: #5a2f2a; }
#doubt-panel .doubt-img { max-width: 100%; border-radius: 8px; display: block; margin-bottom: 6px; }
.quick { display: flex; flex-wrap: wrap; gap: 8px; } .quick form { margin: 0; }
.quick button { background: #16181b; color: #f1f1ee; border: 1px solid #3a3e44; border-radius: 999px; padding: 8px 14px; font: 600 13px var(--body); cursor: pointer; }
.panel-empty { color: #c9c9c5; font-size: 14px; } .panel-empty b { color: #fff; }
.panel-err { background: #3a2220; color: #f3c2bb; border-radius: 10px; padding: 10px 12px; font-size: 13.5px; margin-bottom: 10px; }
.ask { display: flex; gap: 8px; align-items: stretch; margin-top: 12px; }
.ask textarea { flex: 1; background: #121417; color: #f1f1ee; border: 1px solid #3a3e44; border-radius: 12px; padding: 10px 12px; font: 14px var(--body); resize: vertical; min-height: 46px; }
.ask .cam, .ask .send { width: 46px; border-radius: 12px; display: grid; place-items: center; cursor: pointer; border: 1px solid #3a3e44; color: #e6e6e3; }
.ask .send { background: var(--teal); border-color: var(--teal); }
.sheet { border: 0; border-radius: 22px; background: #1a1d21; color: #e6e6e3; max-width: 460px; width: calc(100% - 24px); padding: 28px 24px; }
.sheet::backdrop { background: rgba(0, 0, 0, .55); }
.sheet h2 { font: 600 30px/1.15 var(--chalk); color: var(--yellow); }
.sheet p { color: #cfcfc8; }
@media (max-width: 1000px) {
  .lesson-page { grid-template-columns: 1fr; padding: 0 0 40px; gap: 0; }
  .lesson-main { padding: 0 16px; } .player-box { margin: 0 -16px; border-left: 0; border-right: 0; border-radius: 0; }
  .lesson-top { padding: 12px 16px; } .lesson-top .crumb:last-child { display: none; }
  .lesson-side { margin: 16px; position: static; max-height: none; }
  .lesson-side.open { position: fixed; left: 0; right: 0; bottom: 0; margin: 0; max-height: 72vh; border-radius: 20px 20px 0 0; z-index: 40; box-shadow: 0 -10px 40px rgba(0,0,0,.5); }
  .lesson-side.open .tabs .close { display: block; }
  .title-row h1 { font-size: 22px; }
}
@media (max-width: 760px) { .sheet { margin: auto 0 0; max-width: none; width: 100%; border-radius: 22px 22px 0 0; } }

/* Course map, plan, practice */
.tier-pill { background: var(--night); color: var(--yellow); font-size: 12.5px; font-weight: 700; padding: 6px 12px; border-radius: 999px; }
.legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin: 0 0 14px; }
.legend i { display: inline-block; width: 14px; height: 7px; border-radius: 4px; margin-right: 6px; }
.lg-m { background: #3f7d3a; } .lg-l { background: var(--teal); } .lg-w { background: #c98a1d; }
.topic { display: flex; align-items: center; gap: 16px; padding: 16px 20px; margin-bottom: 12px; text-decoration: none; color: inherit; }
.topic b { display: block; color: var(--ink); font-size: 16px; } .topic small { color: var(--muted); font-size: 13.5px; }
.topic.focus { border: 2px solid #c98a1d; padding: 15px 19px; } .topic.current { border: 2px solid var(--teal); padding: 15px 19px; }
.topic-no { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font: 600 18px var(--chalk); background: #efece4; color: var(--ink); flex: none; }
.topic-no.ok { background: #e3f0de; color: #3f7d3a; } .topic-no.warn { background: #fbecd2; color: #a06a10; } .topic-no.cur { background: var(--teal-soft); color: var(--teal-dark); }
.bma { display: flex; gap: 10px; } .bma > span { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 48px; }
.bma b { font-size: 11.5px; color: var(--ink); display: inline; }
.bma .track { display: block; width: 48px; height: 6px; background: #eeebe3; border-radius: 4px; position: relative; overflow: hidden; }
.bma .fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: var(--teal); }
.fill.st-mastered { background: #3f7d3a; } .fill.st-weak { background: #c98a1d; } .fill.st-none { width: 0 !important; }
.plan-list { list-style: none; padding: 0; margin: 18px 0; } .plan-list li { display: flex; gap: 16px; padding: 18px 20px; margin-bottom: 12px; }
.practice-q { padding: 18px 20px; margin-bottom: 14px; } .practice-q .opt { display: block; padding: 9px 12px; border: 1px solid var(--line-2); border-radius: 10px; margin: 6px 0; cursor: pointer; }
.practice-q .result .ok b { color: #2e7d32; } .practice-q .result .no b { color: #b3261e; } .practice-q .result iframe { width: 100%; aspect-ratio: 16/9; border: 0; border-radius: 10px; margin-top: 10px; }
@media (max-width: 760px) { .bma { gap: 4px; } .bma > span, .bma .track { width: 30px; } }

/* Pause points and other ways to watch */
.pause-layer { position: absolute; inset: 0; background: var(--board); padding: 28px 32px; overflow: auto; z-index: 3; }
.pause-steps { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.pause-steps span { background: #2a2e33; color: #d8d8d4; font-size: 13px; padding: 5px 12px; border-radius: 999px; }
.pause-steps span.on { background: var(--yellow); color: var(--ink); font-weight: 700; }
.pause-kicker { color: var(--chalk-blue); font-weight: 700; font-size: 14px; margin: 0 0 8px; }
.pause-q { font: 500 clamp(20px, 2.4vw, 30px)/1.3 var(--chalk); color: #f1f0ea; margin: 0 0 16px; }
.pause-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.pause-opts button, .pause-opts label { background: transparent; color: #f1f0ea; border: 1px solid #3f5149; border-radius: 10px; padding: 14px 16px; text-align: left; font: 600 15px var(--body); cursor: pointer; }
.pause-opts button:hover { border-color: var(--yellow); }
.pause-msg { color: #f1f0ea; font-weight: 600; } .pause-msg.ok { color: var(--chalk-green); font: 600 28px var(--chalk); }
.pause-hint { background: #26332d; border-radius: 10px; padding: 12px 14px; color: #e6e6e1; margin: 8px 0 14px; font-size: 14.5px; }
.marks u { position: absolute; top: -2px; width: 4px; height: 14px; margin-left: -2px; background: var(--yellow); border-radius: 2px; }
.marks u.done { background: var(--chalk-green); }
.marks-key .pt { background: var(--yellow); width: 4px; }
.now-playing { position: absolute; top: 12px; right: 12px; z-index: 2; background: #2a2e33; color: #f1f1ee; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; }
.now-playing a { color: var(--yellow); }
.sheet.wide { max-width: 640px; }
.way { display: flex; align-items: center; gap: 14px; background: #121417; border: 1px solid #33373d; border-radius: 14px; padding: 12px 16px; margin: 10px 0; color: #f1f1ee; text-decoration: none; cursor: pointer; font: inherit; }
.way:hover { border-color: var(--yellow); }
.way b { display: block; color: #fff; font-size: 16px; } .way small { color: #a9a9ae; font-size: 13px; } .way .t { color: #a9a9ae; font-size: 13px; }
.way .ico { width: 46px; height: 46px; border-radius: 10px; display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; }
.k-different { background: var(--yellow); color: var(--ink); } .k-hi { background: #2c4a37; color: var(--chalk-green); }
.k-slower { background: #24313a; color: var(--chalk-blue); } .k-basics { background: #2a2e33; color: #fff; }

/* Tests: ladder */
.tests-page { padding: 36px 28px 64px; display: flex; flex-direction: column; gap: 26px; }
.tests-page h1 { font-size: 38px; margin: 0; }
.tests-top { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 18px; }
.mock-card { padding: 22px; display: flex; flex-direction: column; gap: 10px; border-radius: 20px; }
.mock-card p { margin: 0; color: #d9d5c8; font-size: 15px; }
.mock-card .chalk-title { margin: 0; font-size: 32px; }
.eyebrow-dark { font-size: 13px; font-weight: 700; color: #bfbbae; letter-spacing: .02em; }
.countdown { display: flex; gap: 12px; font-family: var(--head); }
.countdown span { padding: 8px 12px; border-radius: 10px; background: var(--board-2); }
.countdown b { font-size: 22px; }
.mock-card .btn { min-height: 46px; border-radius: 12px; }
.progress-card { padding: 22px; display: flex; flex-direction: column; gap: 10px; border: 2px solid var(--teal); border-radius: 20px; }
.progress-card h2 { font: 600 22px var(--body); margin: 0; } .progress-card p { margin: 0; font-size: 15px; }
.progress-card .btn { align-self: flex-start; min-height: 46px; border-radius: 12px; }
.bar-line { height: 8px; border-radius: 4px; background: #efece4; overflow: hidden; } .bar-line i { display: block; height: 8px; background: var(--teal); border-radius: 4px; }
.test-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.test-filters a { padding: 9px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line-2); font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: none; }
.test-filters a.on { background: var(--night); border-color: var(--night); color: #fff; }
.test-filters a.pat.on { background: var(--teal-soft); border-color: var(--teal-soft); color: var(--teal-dark); }
.test-filters .sep { width: 1px; height: 24px; background: var(--line-2); margin: 0 6px; }
.tests-body { display: flex; flex-wrap: wrap; gap: 24px; }
.ladder { flex: 999 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.ladder h2, .tests-side h2, .result-page h2 { font-size: 24px; margin: 0; }
.ladder-row { border-radius: 16px; background: #fff; border: 1px solid var(--line); padding: 16px 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.ladder-row.locked { border-style: dashed; border-color: #c9c3b4; }
.ladder-icon { width: 44px; height: 44px; border-radius: 12px; background: #f1eee6; display: grid; place-items: center; font: 700 22px var(--chalk); color: var(--board); flex: none; }
.ladder-name { flex: 1 1 260px; min-width: 0; } .ladder-name b { display: block; color: var(--ink); } .ladder-name small { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.ladder-row .btn { min-height: 44px; }
.status { padding: 5px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; background: #f1eee6; color: var(--muted); }
.status.st-done { background: #e3f1e0; color: #2f5d2a; } .status.st-ready, .status.st-progress { background: var(--teal-soft); color: var(--teal-dark); }
.tests-side { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.trend-card { padding: 18px; border-radius: 16px; }
.trend { display: flex; align-items: flex-end; gap: 10px; height: 150px; margin-top: 12px; }
.trend > div { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.trend i { display: block; width: 100%; max-width: 34px; border-radius: 6px 6px 0 0; background: var(--teal); min-height: 4px; }
.trend .v { font-size: 12px; font-weight: 700; } .trend .k { font-size: 12px; color: var(--muted); }

/* Tests: instructions (exam look, cool greys like the real exam) */
body:has(.exam-light) { background: #f4f5f7; }
.intro-grid { padding: 32px 28px 56px; display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; max-width: 1100px; }
.ex-panel { background: #fff; border: 1px solid #dadde3; border-radius: 12px; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.intro-main { flex: 999 1 560px; min-width: 0; padding: 28px; gap: 18px; }
.intro-main h1 { font-size: 30px; margin: 4px 0 0; }
.intro-side { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.ex-kicker { font-size: 13px; font-weight: 600; color: #5a606b; }
.ex-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ex-stats > div { border-radius: 10px; background: #f4f5f7; padding: 14px; } .ex-stats small { display: block; font-size: 13px; color: #5a606b; } .ex-stats b { font-size: 22px; color: var(--ink); }
.ex-table-wrap { overflow-x: auto; }
.ex-table { width: 100%; min-width: 480px; border-collapse: collapse; font-size: 15px; }
.ex-table th { text-align: left; color: #5a606b; font-weight: 600; padding: 10px 0; border-bottom: 1px solid #dadde3; }
.ex-table td { padding: 12px 8px 12px 0; border-bottom: 1px solid #eef0f3; } .ex-table tr:last-child td { border-bottom: 0; }
.ex-h2 { font: 600 17px var(--body); margin: 0 0 6px; }
.ex-list { margin: 0; padding-left: 20px; line-height: 1.85; font-size: 15px; color: #2e333b; }
.check-row { display: flex; align-items: center; gap: 10px; font-size: 15px; } .check-row span { flex: 1; } .check-row small { font-size: 13px; color: #5a606b; text-align: right; }
.dot { width: 12px; height: 12px; border-radius: 50%; flex: none; background: #2f8a3e; } .dot.warn { background: #c98a1b; } .dot.bad { background: #b3261e; }
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.5; cursor: pointer; }
.agree input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--teal); }
.ex-start { min-height: 52px; width: 100%; border-radius: 10px; background: var(--teal); color: #fff; font: 700 15px var(--body); display: flex; align-items: center; justify-content: center; text-decoration: none; border: 0; cursor: pointer; }
.ex-start:disabled, .ex-start.off { background: #dadde3; color: #5a606b; cursor: not-allowed; }

/* Tests: exam screen (NTA style) */
body:has(.nta) { background: #f4f5f7; }
body:has(.nta) .msgs { display: none; }
.nta-top { background: #1f2a37; color: #fff; padding: 10px 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; position: sticky; top: 0; z-index: 20; }
.nta-brand { font-weight: 700; font-size: 16px; } .nta-name { flex: 1; font-size: 14px; color: #c9ced6; min-width: 0; }
.nta-clock { display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 8px; background: #2e3b4b; font-size: 14px; }
.nta-clock strong { font-size: 16px; font-variant-numeric: tabular-nums; } .nta-clock.low { background: #8a2a12; }
.nta-saved { font-size: 13px; color: #9fe0b0; } .nta-saved.busy { color: #c9ced6; } .nta-saved.offline { color: #f2c14e; }
.nta-fs { background: transparent; color: #c9ced6; border: 1px solid #4a5868; border-radius: 8px; padding: 6px 10px; font: 600 13px var(--body); cursor: pointer; }
.nta { display: flex; flex-wrap: wrap; min-height: calc(100vh - 52px); }
.nta-main { flex: 999 1 640px; min-width: 0; display: flex; flex-direction: column; background: #fff; border-right: 1px solid #dadde3; }
.nta-tabs { display: flex; border-bottom: 1px solid #dadde3; padding: 0 20px; gap: 4px; overflow-x: auto; }
.nta-tabs a { min-height: 48px; padding: 0 14px; display: flex; align-items: center; font: 600 14px var(--body); color: #5a606b; text-decoration: none; white-space: nowrap; }
.nta-tabs a[aria-selected="true"] { color: var(--ink); box-shadow: inset 0 -3px 0 #1f6fd1; }
.nta-q { flex: 1; display: flex; flex-direction: column; } .nta-q[hidden] { display: none; }
.nta-qhead { padding: 16px 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; border-bottom: 1px solid #eef0f3; }
.nta-qhead b { font-size: 17px; color: var(--ink); }
.nta-marks { margin-left: auto; font-size: 13px; padding: 4px 10px; border-radius: 6px; background: #eef0f3; }
.nta-qbody { padding: 24px; display: flex; flex-direction: column; gap: 20px; }
.nta-text { margin: 0; font-size: 18px; line-height: 1.6; max-width: 760px; color: var(--ink); }
.nta-opts { display: flex; flex-direction: column; gap: 10px; max-width: 560px; }
.nta-opt { min-height: 52px; border-radius: 8px; padding: 10px 14px; display: flex; align-items: center; gap: 12px; cursor: pointer; font: 500 16px var(--body); border: 1px solid #c9ced6; background: #fff; color: var(--ink); position: relative; }
.nta-opt input { position: absolute; opacity: 0; pointer-events: none; }
.nta-opt .mk { width: 18px; height: 18px; border-radius: 50%; flex: none; border: 2px solid #9aa3af; }
.nta-opt input[type=checkbox] + .mk { border-radius: 4px; }
.nta-opt:has(input:checked) { border: 2px solid #1f6fd1; background: #eef5fd; padding: 9px 13px; }
.nta-opt input:checked + .mk { border: 6px solid #1f6fd1; }
.nta-opt:has(input:focus-visible) { outline: 3px solid #1f6fd1; outline-offset: 2px; }
.numpad { display: flex; flex-direction: column; gap: 12px; max-width: 300px; } .numpad label { font-size: 14px; font-weight: 600; }
.num-out { min-height: 52px; border: 2px solid #9aa3af; border-radius: 8px; padding: 0 14px; font: 500 22px var(--body); font-variant-numeric: tabular-nums; background: #fbfbfc; width: 100%; }
.keys { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.keys button { min-height: 48px; border-radius: 8px; border: 1px solid #c9ced6; background: #fff; font: 600 18px var(--body); cursor: pointer; }
.keys .wide { grid-column: 1 / -1; font-size: 15px; }
.nta-actions { padding: 14px 20px; border-top: 1px solid #dadde3; display: flex; flex-wrap: wrap; gap: 10px; background: #fbfbfc; position: sticky; bottom: 0; }
.grow { flex-grow: 1; }
.nb { min-height: 46px; padding: 0 16px; border-radius: 8px; border: 1px solid #c9ced6; background: #fff; font: 600 14px var(--body); cursor: pointer; color: var(--ink); display: inline-flex; align-items: center; text-decoration: none; }
.nb-mark { border-color: #6b4fb8; color: #4b2e9a; } .nb-save { border: 0; background: #2f8a3e; color: #fff; font-weight: 700; padding: 0 20px; }
.nta-side { flex: 1 1 320px; min-width: 0; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.sheet-head { display: none; }
.nta-legend { background: #fff; border: 1px solid #dadde3; border-radius: 10px; padding: 14px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; font-size: 13px; }
.nta-legend span { display: flex; align-items: center; gap: 8px; } .nta-legend .full { grid-column: 1 / -1; }
.nta-legend .pal { min-width: 28px; height: 28px; font-style: normal; }
.nta-pal-box { background: #fff; border: 1px solid #dadde3; border-radius: 10px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.pal-title { font-size: 13px; font-weight: 700; color: #5a606b; }
.nta-pal { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.pal { min-height: 44px; border-radius: 8px; font: 700 14px var(--body); display: inline-flex; align-items: center; justify-content: center; text-decoration: none; border: 1px solid #c9ced6; background: #eef0f3; color: #2e333b; }
.pal.not-answered { background: #fbe3dd; color: #8a2a12; border-color: #e0927c; }
.pal.answered { background: #2f8a3e; color: #fff; border-color: #2f8a3e; }
.pal.marked { background: #6b4fb8; color: #fff; border-color: #6b4fb8; }
.pal.answered-marked { background: #6b4fb8; color: #fff; border: 3px solid #2f8a3e; }
.nta-pal .pal[aria-current] { outline: 3px solid #1f6fd1; outline-offset: 2px; }
.nta-submit { min-height: 50px; border-radius: 8px; background: #1f2a37; color: #fff; font: 700 15px var(--body); border: 0; cursor: pointer; }
.nta-dialog { border: 0; border-radius: 14px; padding: 24px; max-width: 420px; } .nta-dialog .t { font: 700 22px var(--head); margin: 0 0 6px; color: var(--ink); }
@media (max-width: 760px) {
  .nta-name, .nta-brand { display: none; } .nta-top { padding: 10px 14px; gap: 10px; } .nta-clock { margin-right: auto; }
  .nta { padding-bottom: 76px; } .nta-main { border-right: 0; }
  .nta-qhead, .nta-qbody { padding: 14px 16px; } .nta-text { font-size: 16px; }
  .nta-actions { bottom: 64px; padding: 10px 14px; } .nta-actions .nb { flex: 1 1 40%; justify-content: center; padding: 0 10px; } .nta-actions .grow { display: none; }
  .nta-side { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; background: #fff; border-radius: 18px 18px 0 0; border-top: 1px solid #dadde3;
    box-shadow: 0 -8px 24px rgba(0,0,0,.08); padding: 6px 16px 16px; max-height: 64px; overflow: hidden; transition: max-height .2s; }
  .nta-side.open { max-height: 85vh; overflow: auto; }
  .sheet-head { display: flex; flex-direction: column; align-items: stretch; gap: 8px; background: none; border: 0; padding: 4px 0; font: inherit; text-align: left; cursor: pointer; color: var(--ink); }
  .sheet-head .grip { align-self: center; width: 40px; height: 4px; border-radius: 2px; background: #c9ced6; }
  .sheet-head small { color: #5a606b; font-size: 12px; margin-left: 6px; }
  .nta-pal { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

/* Tests: result */
.result-page { padding: 32px 28px 64px; display: flex; flex-direction: column; gap: 24px; }
.result-h1 { font-size: 32px; margin: 2px 0 0; }
.score-board { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.score-board small { display: block; font-size: 13px; color: var(--muted); }
.sb { padding: 18px; } .sb b { display: block; font: 700 34px var(--head); color: var(--ink); }
.sb-main { padding: 18px; border-width: 6px; } .sb-main small { color: #bfbbae; }
.sb-main b { display: block; font: 700 46px/1.1 var(--chalk); color: var(--yellow); } .sb-main b span { font-size: 24px; color: #edeae0; }
.result-two { display: flex; flex-wrap: wrap; gap: 24px; } .result-two > section { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.quads { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.quad { border-radius: 14px; padding: 16px; } .quad b { display: block; } .quad small { display: block; font-size: 13px; margin-top: 4px; }
.q-fast_right { background: #e3f1e0; color: #2f5d2a; } .q-slow_right { background: var(--teal-soft); color: var(--teal-dark); }
.q-fast_wrong { background: #fbefd9; color: #7a4a06; } .q-slow_wrong { background: #fbe3dd; color: #8a2a12; }
.strategy { padding: 16px; } .strategy h3 { margin: 0 0 6px; font-size: 16px; } .strategy p { margin: 0 0 6px; font-size: 14px; color: var(--muted); line-height: 1.55; }
.skills { padding: 6px 18px; }
.skill { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #efece4; } .skill:last-child { border-bottom: 0; }
.skill .nm { flex: 1 1 160px; font-weight: 600; color: var(--ink); } .skill .tr { flex: 0 1 160px; height: 8px; border-radius: 4px; background: #efece4; overflow: hidden; }
.skill .tr i { display: block; height: 8px; border-radius: 4px; background: var(--teal); } .skill .tr i.lv-ok { background: #3f7d3a; } .skill .tr i.lv-low { background: #c98a1b; }
.skill .sc { width: 48px; text-align: right; font-size: 14px; }
.wrong-list { display: flex; flex-direction: column; gap: 12px; }
.wrong { padding: 18px; display: flex; flex-direction: column; gap: 12px; border-radius: 16px; }
.wq { flex: 1 1 400px; font-size: 15px; line-height: 1.5; }
.wmeta { display: flex; flex-wrap: wrap; gap: 16px; font-size: 14px; align-items: center; } .wmeta .ok { color: #2f5d2a; }
.idea { border-radius: 10px; background: var(--paper); padding: 12px 14px; font-size: 14px; line-height: 1.55; }
.wfoot { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; } .wfoot .btn { min-height: 40px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; } .tag-row form { margin: 0; }
.tag-btn { min-height: 40px; padding: 0 12px; border-radius: 999px; cursor: pointer; font: 600 13px var(--body); background: #fff; color: var(--ink); border: 1px solid var(--line-2); }
.tag-btn[aria-pressed="true"] { background: var(--night); color: #fff; border-color: var(--night); }
.next-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.next { padding: 22px; display: flex; flex-direction: column; gap: 12px; } .next h2 { font: 600 18px var(--body); } .next form { margin: 0; }
.next .btn-block { min-height: 50px; border-radius: 12px; }
.next-plan { padding: 20px; display: flex; flex-direction: column; gap: 8px; border-width: 6px; }
.next-plan .chalk-title { font-size: 26px; } .next-plan p { margin: 0; font-size: 14px; line-height: 1.55; color: #d9d5c8; } .next-plan a { color: var(--yellow); font-weight: 700; }
.video-dialog { border: 0; padding: 0; border-radius: 14px; width: min(900px, 94vw); background: #000; }
.video-dialog iframe { width: 100%; aspect-ratio: 16/9; border: 0; display: block; }
.video-dialog .x { position: absolute; top: 6px; right: 10px; background: none; border: 0; color: #fff; font-size: 28px; cursor: pointer; z-index: 2; }
@media (max-width: 760px) { .tests-page, .result-page, .intro-grid { padding-left: 18px; padding-right: 18px; } .ex-stats b { font-size: 18px; } .quads { grid-template-columns: 1fr; } }
