:root {
  --green: #188038;
  --green-dark: #0d652d;
  --green-soft: #e6f4ea;
  --ink: #1f2328;
  --muted: #5f6368;
  --line: #dadce0;
  --grid-line: #e2e3e3;
  --bg: #ffffff;
  --bg-soft: #f8f9fa;
  --blue: #1a73e8;
  --blue-soft: rgba(26, 115, 232, 0.1);
  --red: #c5221f;
  --red-soft: #fce8e6;
  --yellow-soft: #fef7e0;
  --radius: 10px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.5; }
a { color: var(--blue); }
code, kbd { font-family: var(--mono); font-size: 0.88em; }
code { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; }
kbd { border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; padding: 0 4px; background: #fff; }

.btn { white-space: nowrap; font: inherit; font-weight: 600; border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 8px; padding: 8px 14px; cursor: pointer; text-decoration: none; display: inline-block; }
.btn:hover { background: var(--bg-soft); }
.btn.primary { background: var(--green); border-color: var(--green); color: #fff; }
.btn.primary:hover { background: var(--green-dark); }
.btn.ghost { border-color: transparent; background: transparent; color: var(--muted); }
.btn.small { padding: 5px 10px; font-size: 0.9em; }
.btn.big { padding: 14px 26px; font-size: 1.1em; border-radius: 10px; }

/* ---------- top bar ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 20px; border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 20; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); text-decoration: none; }
.logo-mark { background: var(--green); color: #fff; border-radius: 6px; padding: 1px 7px; font-style: italic; font-family: Georgia, serif; }
.topbar nav { display: flex; align-items: center; gap: 16px; }
.topbar nav a { color: var(--muted); text-decoration: none; font-weight: 500; }

/* ---------- progress ---------- */
.progress { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 0.9em; }
.bar { flex: 1; height: 8px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 99px; overflow: hidden; max-width: 320px; }
.bar span { display: block; height: 100%; background: var(--green); border-radius: 99px; transition: width .4s; }

/* ---------- catalog ---------- */
#catalog { max-width: 860px; margin: 0 auto; padding: 32px 16px 64px; }
.catalog-head h1 { margin: 0 0 4px; font-size: 1.8em; }
.catalog-head p { margin: 0 0 16px; color: var(--muted); }
.upgrade-banner { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--green-soft); border: 1px solid #ceead6; border-radius: var(--radius); padding: 14px 16px; margin: 20px 0; }
.lesson-list { display: grid; gap: 10px; margin-top: 20px; }
.lesson-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: inherit; background: #fff; transition: border-color .15s, box-shadow .15s; }
.lesson-card:hover { border-color: var(--green); box-shadow: 0 1px 6px rgba(0,0,0,.06); }
.lesson-card.locked { background: var(--bg-soft); }
.lesson-card .num { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--green-soft); color: var(--green-dark); display: grid; place-items: center; font-weight: 700; }
.lesson-card .body { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.lesson-card small { color: var(--muted); }
.dots { display: flex; gap: 4px; margin-top: 6px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.dots i.on { background: var(--green); }
.pill { flex: none; font-size: 0.8em; font-weight: 600; padding: 2px 10px; border-radius: 99px; }
.pill.ok { background: var(--green-soft); color: var(--green-dark); }
.pill.free { background: #e8f0fe; color: var(--blue); }
.pill.lock { background: #f1f3f4; color: var(--muted); }

/* ---------- lesson view ---------- */
body.app { height: 100vh; display: flex; flex-direction: column; }
.lesson-view { flex: 1; display: grid; grid-template-columns: minmax(300px, 380px) 1fr; min-height: 0; }
.lesson-view[hidden] { display: none; }
.panel { border-right: 1px solid var(--line); padding: 16px 18px 32px; overflow-y: auto; background: #fff; }
.panel h1 { font-size: 1.3em; margin: 8px 0; }
.back { color: var(--muted); text-decoration: none; font-size: 0.9em; }
.intro { margin: 14px 0; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; background: var(--bg-soft); }
.intro summary { cursor: pointer; font-weight: 600; }
.intro p, .intro ul { margin: 8px 0; }
.intro ul { padding-left: 18px; }
.tasks { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
.task { display: flex; gap: 10px; padding: 10px 12px; border-radius: var(--radius); border: 1px solid transparent; color: var(--muted); }
.task.current { border-color: var(--green); background: #fff; color: var(--ink); box-shadow: 0 1px 8px rgba(24,128,56,.12); }
.task.done { color: var(--muted); }
.task.done .tnum { background: var(--green); color: #fff; }
.tnum { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--bg-soft); border: 1px solid var(--line); display: grid; place-items: center; font-size: 0.8em; font-weight: 700; }
.task.done .tnum { border-color: var(--green); }
.tbody { flex: 1; min-width: 0; }
.task-actions { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.feedback { margin-top: 10px; padding: 10px 12px; border-radius: 8px; font-size: 0.93em; overflow-wrap: anywhere; }
.feedback p { margin: 4px 0 0; }
.feedback.bad { background: var(--red-soft); color: #7a1512; }
.feedback.hint { background: var(--yellow-soft); color: #5c4400; }
.answer { display: inline-block; font-size: 1em; margin-top: 4px; user-select: all; word-break: break-all; }
.complete { display: grid; gap: 10px; padding: 14px; border-radius: var(--radius); background: var(--green-soft); margin-bottom: 14px; }

.sheet-area { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; background: #fff; }
.fxbar { display: flex; align-items: center; border-bottom: 1px solid var(--line); height: 36px; flex: none; }
.name-box { width: 90px; padding: 0 10px; border-right: 1px solid var(--line); font-family: var(--mono); font-size: 0.85em; color: var(--muted); line-height: 36px; white-space: nowrap; overflow: hidden; }
.fx-label { padding: 0 10px; color: var(--muted); font-style: italic; font-family: Georgia, serif; }
.fx-input { flex: 1; height: 100%; border: 0; outline: 0; font-family: var(--mono); font-size: 14px; padding: 0 8px; min-width: 0; }
.cell-status { display: none; position: absolute; left: 0; right: 0; bottom: 30px; z-index: 7; pointer-events: none; box-shadow: 0 -2px 8px rgba(0,0,0,.08); padding: 4px 12px; background: var(--red-soft); color: #7a1512; font-size: 0.85em; border-bottom: 1px solid #f4c7c3; }
.cell-status.show { display: block; }
.grid-host { flex: 1; min-height: 0; position: relative; }
.keys { flex: none; margin: 0; padding: 6px 12px; font-size: 0.78em; color: var(--muted); border-top: 1px solid var(--line); background: var(--bg-soft); }

/* ---------- grid ---------- */
.grid-scroll { position: absolute; inset: 0; overflow: auto; outline: none; }
.grid { border-collapse: separate; border-spacing: 0; table-layout: fixed; font-size: 13px; user-select: none; }
.grid th { background: var(--bg-soft); color: var(--muted); font-weight: 500; font-size: 11px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); height: 24px; position: sticky; z-index: 2; }
.grid thead th { top: 0; }
.grid .corner { left: 0; z-index: 3; }
.grid th.rowh { left: 0; z-index: 1; text-align: center; }
.grid th.hl { background: #d3e3fd; color: #0b57d0; font-weight: 700; }
.grid td { height: 24px; padding: 0 5px; border-right: 1px solid var(--grid-line); border-bottom: 1px solid var(--grid-line); white-space: nowrap; overflow: hidden; text-overflow: clip; cursor: cell; position: relative; }
.grid td.num { text-align: right; }
.grid td.bool { text-align: center; }
.grid td.err { color: var(--red); font-weight: 600; }
.grid td.hdr { font-weight: 700; background: #f3f6f4; }
.grid td.target { background: var(--yellow-soft); box-shadow: inset 0 0 0 1px #f9d26e; }
.grid td.inrange { background: var(--blue-soft); }
.grid td.active { box-shadow: inset 0 0 0 2px var(--blue); }
.grid td.copying { outline: 1px dashed var(--blue); outline-offset: -2px; }
.grid td.refc0 { box-shadow: inset 0 0 0 2px #1a73e8; background: rgba(26,115,232,.08); }
.grid td.refc1 { box-shadow: inset 0 0 0 2px #d93025; background: rgba(217,48,37,.07); }
.grid td.refc2 { box-shadow: inset 0 0 0 2px #9334e6; background: rgba(147,52,230,.07); }
.grid td.refc3 { box-shadow: inset 0 0 0 2px #e37400; background: rgba(227,116,0,.08); }
.cell-editor { position: absolute; display: none; z-index: 5; border: 2px solid var(--blue); outline: 0; font-family: var(--mono); font-size: 13px; padding: 0 4px; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.18); }

.ac-list, .arg-hint { position: fixed; z-index: 50; display: none; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 4px 16px rgba(0,0,0,.14); font-size: 13px; max-width: 460px; }
.ac-item { display: flex; gap: 10px; padding: 6px 10px; cursor: pointer; white-space: nowrap; }
.ac-item span { color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.ac-item.sel, .ac-item:hover { background: #e8f0fe; }
.arg-hint { padding: 8px 10px; }
.arg-hint .sig { font-family: var(--mono); }
.arg-hint .sig b { color: var(--blue); }
.arg-hint .desc { color: var(--muted); margin-top: 2px; }

.flash { position: fixed; left: 50%; bottom: 48px; transform: translate(-50%, 20px); background: var(--green); color: #fff; font-weight: 700; padding: 10px 22px; border-radius: 99px; opacity: 0; pointer-events: none; z-index: 60; box-shadow: 0 4px 16px rgba(24,128,56,.35); }
.flash.show { animation: flash 1.6s ease; }
@keyframes flash { 0% { opacity: 0; transform: translate(-50%, 20px); } 15%, 75% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, 0); } }

/* ---------- paywall ---------- */
.paywall { border: 0; border-radius: 16px; padding: 28px; max-width: 520px; width: calc(100% - 32px); box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.paywall::backdrop { background: rgba(32,33,36,.5); }
.paywall h2 { margin: 0 0 10px; font-size: 1.35em; padding-right: 24px; }
.paywall .close { position: absolute; right: 14px; top: 10px; border: 0; background: none; font-size: 26px; color: var(--muted); cursor: pointer; }
.perks { padding-left: 20px; color: var(--muted); }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.plan { font: inherit; background: #fff; cursor: pointer; position: relative; display: flex; flex-direction: column; gap: 2px; padding: 18px 14px 14px; border: 2px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); text-align: center; }
.plan:hover { border-color: var(--green); }
.plan.best { border-color: var(--green); background: var(--green-soft); }
.plan .badge { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); background: var(--green); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 10px; border-radius: 99px; white-space: nowrap; }
.plan-name { font-weight: 600; }
.plan-price { font-size: 1.8em; font-weight: 800; }
.plan-price small { font-size: 0.45em; font-weight: 500; color: var(--muted); }
.plan-note { font-size: 0.85em; color: var(--muted); }
.paywall-msg { color: var(--red); font-size: 0.9em; min-height: 1em; }

@media (max-width: 820px) {
  body.app { height: auto; }
  .lesson-view { grid-template-columns: 1fr; }
  .panel { border-right: 0; border-bottom: 1px solid var(--line); }
  .sheet-area { height: 70vh; }
  .keys { display: none; }
  .plans { grid-template-columns: 1fr; }
  .upgrade-banner { flex-direction: column; align-items: flex-start; }
}

/* ---------- landing page ---------- */
.landing section { padding: 64px 16px; }
.wrap { max-width: 1040px; margin: 0 auto; }
.narrow { max-width: 720px; margin: 0 auto; }
.hero { background: linear-gradient(180deg, var(--green-soft), #fff); text-align: center; padding-top: 72px !important; }
.hero h1 { font-size: clamp(2em, 5vw, 3.2em); line-height: 1.1; margin: 0 0 16px; letter-spacing: -0.02em; }
.hero .sub { font-size: 1.2em; color: var(--muted); max-width: 640px; margin: 0 auto 28px; }
.hero .cta-note { color: var(--muted); font-size: 0.9em; margin-top: 10px; }
.demo { overflow-x: auto; margin: 44px auto 0; max-width: 720px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: 0 12px 40px rgba(0,0,0,.08); text-align: left; background: #fff; }
.demo .fxbar { height: 34px; }
.demo .fake-fx { font-family: var(--mono); font-size: 14px; padding: 0 10px; }
.demo table { width: 100%; border-collapse: collapse; font-size: 14px; }
.demo td, .demo th { border: 1px solid var(--grid-line); padding: 4px 8px; height: 28px; }
.demo th { background: var(--bg-soft); color: var(--muted); font-weight: 500; font-size: 12px; }
.demo td.n { text-align: right; }
.demo td.h { font-weight: 700; background: #f3f6f4; }
.demo td.t { box-shadow: inset 0 0 0 2px var(--blue); background: var(--yellow-soft); font-family: var(--mono); }
.demo .msg { padding: 10px 14px; background: var(--red-soft); color: #7a1512; font-size: 14px; }
.demo .msg.ok { background: var(--green-soft); color: var(--green-dark); }
.landing h2 { font-size: 1.9em; letter-spacing: -0.01em; margin: 0 0 16px; }
.landing p { font-size: 1.05em; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 28px; }
.feature { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.feature h3 { margin: 0 0 6px; font-size: 1.1em; }
.feature p { margin: 0; color: var(--muted); font-size: 0.98em; }
.alt { background: var(--bg-soft); }
.curriculum { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 8px 24px; padding: 0; list-style: none; margin-top: 20px; }
.curriculum li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.curriculum li small { display: block; color: var(--muted); }
.curriculum .free-tag { color: var(--blue); font-weight: 600; font-size: 0.8em; margin-left: 6px; }
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; max-width: 760px; margin: 28px auto 0; }
.price-card { border: 2px solid var(--line); border-radius: 14px; padding: 24px; text-align: center; background: #fff; }
.price-card.best { border-color: var(--green); }
.price-card .amount { font-size: 2.4em; font-weight: 800; }
.price-card .amount small { font-size: 0.4em; color: var(--muted); font-weight: 500; }
.price-card ul { text-align: left; color: var(--muted); padding-left: 20px; }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { font-weight: 600; cursor: pointer; font-size: 1.05em; }
.faq p { color: var(--muted); margin: 8px 0 0; }
.final-cta { text-align: center; background: var(--green); color: #fff; }
.final-cta h2 { color: #fff; }
.final-cta .btn { background: #fff; color: var(--green-dark); border-color: #fff; }
footer.site { padding: 28px 16px; text-align: center; color: var(--muted); font-size: 0.85em; border-top: 1px solid var(--line); }

/* ---------- accounts ---------- */
.account { display: flex; align-items: center; gap: 6px; }
.account-menu { position: relative; }
.account-menu summary { list-style: none; cursor: pointer; padding: 5px 10px; border: 1px solid var(--line); border-radius: 99px; font-size: 0.9em; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-menu summary::-webkit-details-marker { display: none; }
.account-menu .menu { position: absolute; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.12); min-width: 200px; padding: 6px; z-index: 40; }
.menu-status { padding: 8px 10px; font-size: 0.9em; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.menu-status small { color: var(--muted); }
.menu-item { display: block; width: 100%; text-align: left; font: inherit; background: none; border: 0; padding: 8px 10px; border-radius: 6px; cursor: pointer; }
.menu-item:hover { background: var(--bg-soft); }
.auth { max-width: 420px; }
.auth form { display: grid; gap: 12px; margin-top: 8px; }
.auth label { display: grid; gap: 4px; font-weight: 600; font-size: 0.92em; }
.auth input { font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; }
.auth input:focus { outline: 2px solid var(--green); border-color: var(--green); }
.auth .btn.big { width: 100%; }
.auth-reason { background: var(--green-soft); color: var(--green-dark); padding: 10px 12px; border-radius: 8px; margin: 0; }
.auth-info { color: var(--green-dark); font-size: 0.92em; margin: 0; }
.auth-info:empty, .auth .paywall-msg:empty { display: none; }
.auth-links { text-align: center; font-size: 0.92em; color: var(--muted); margin-bottom: 0; }
.paywall-note { text-align: center; color: var(--muted); font-size: 0.85em; margin: 12px 0 0; }
.save-nudge { font-size: 0.92em; display: grid; gap: 8px; justify-items: start; }
.fatal { background: var(--red-soft); color: #7a1512; padding: 12px 16px; }
/* ---------- in-page dialog ---------- */
.ask { max-width: 400px; }
.ask p { color: var(--muted); margin: 0 0 18px; }
.ask-actions { display: flex; justify-content: flex-end; gap: 8px; }

/* ---------- legal pages / 404 ---------- */
.legal { max-width: 720px; margin: 0 auto; padding: 40px 16px 64px; }
.legal h1 { font-size: 2em; margin: 0 0 4px; }
.legal h2 { font-size: 1.2em !important; margin: 28px 0 8px !important; }
.legal .updated { color: var(--muted); margin-top: 0; }
.legal li { margin: 4px 0; }
.not-found { text-align: center; padding: 96px 16px; }
.not-found h1 { font-size: 2.2em; margin: 0 0 8px; }
footer.site a, .app-footer a { color: var(--muted); }
.app-footer { text-align: center; color: var(--muted); font-size: 0.85em; margin-top: 32px; }

/* ---------- phones ---------- */
@media (max-width: 820px) {
  .flash { bottom: 24px; }
  .cell-status { bottom: 0; }
  .panel { padding: 12px 14px 16px; }
  /* keep the current task right above the sheet */
  .task:not(.current) { display: none; }
  .sheet-area { height: 60vh; }
  #reset { margin-top: 4px; }
}
@media (max-width: 560px) {
  .topbar { padding: 8px 12px; gap: 8px; }
  .topbar nav { gap: 10px; }
  .topbar nav .nav-opt { display: none; }
  .account-menu summary { max-width: 120px; }
  body.app .logo #site-name { display: none; }
  .demo .opt { display: none; }
  .demo table { font-size: 13px; }
  .demo .fake-fx { font-size: 12px; }
  .landing section { padding: 48px 16px; }
  .hero h1 br { display: none; }
}

/* ---------- /practice SEO pages ---------- */
.seo { max-width: 780px; margin: 0 auto; padding: 32px 16px 64px; }
.seo h1 { font-size: 2.1em; letter-spacing: -0.01em; margin: 4px 0 12px; }
.seo h2 { font-size: 1.35em !important; margin: 36px 0 10px !important; }
.seo .lead { font-size: 1.12em; color: var(--ink); }
.seo .crumbs { font-size: .9em; color: var(--muted); }
.seo .crumbs a { color: var(--muted); }
.seo pre.syntax { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; overflow-x: auto; font-family: var(--mono); font-size: .95em; }
.seo code { font-family: var(--mono); font-size: .92em; }
.seo dl.args { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; }
.seo dl.args dt { margin: 0; }
.seo dl.args dd { margin: 0; color: var(--muted); }
@media (max-width: 560px) { .seo dl.args { grid-template-columns: 1fr; } .seo dl.args dd { margin-bottom: 8px; } }
.mini-wrap { overflow-x: auto; margin: 8px 0 12px; }
table.mini { border-collapse: collapse; font-size: .92em; background: #fff; }
table.mini td, table.mini th { border: 1px solid var(--grid-line); padding: 4px 10px; white-space: nowrap; text-align: left; }
table.mini th { background: var(--bg-soft); color: var(--muted); font-weight: 500; text-align: center; min-width: 24px; }
table.mini td.n { text-align: right; }
table.mini td.h { font-weight: 600; }
table.mini.result td { background: var(--green-soft); }
.ex { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin: 14px 0; background: #fff; }
.ex.done { border-color: var(--green); }
.ex-task { margin: 0 0 10px; }
.ex-n { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--green-soft); color: var(--green-dark); font-weight: 700; font-size: .85em; margin-right: 6px; }
.ex.done .ex-n { background: var(--green); color: #fff; }
.ex-row { display: flex; gap: 8px; align-items: center; }
.ex-cell { font-family: var(--mono); color: var(--muted); font-size: .9em; }
.ex-row input { flex: 1; min-width: 0; font-family: var(--mono); font-size: 1em; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; }
.ex-row input:focus { outline: 2px solid var(--blue-soft); border-color: var(--blue); }
.ex-out { margin-top: 8px; font-size: .95em; overflow-wrap: anywhere; }
.ex-out:empty { display: none; }
.ex-out.good { color: var(--green-dark); }
.ex-out.bad { color: var(--red); }
.ex-out .hint { color: var(--ink); background: var(--yellow-soft); border-radius: 6px; padding: 6px 10px; margin-top: 6px; }
.ex-out table.mini { margin-top: 6px; }
button.link { background: none; border: 0; padding: 0; margin-top: 6px; color: var(--blue); cursor: pointer; font: inherit; text-decoration: underline; }
.cta-box { margin: 32px 0; padding: 20px 22px; border-radius: var(--radius); background: var(--green-soft); border: 1px solid #b7dfc2; }
.cta-box h3 { margin: 0 0 6px; }
.cta-box .btn { margin: 6px 8px 0 0; }
.cta-box.pulse { animation: ctaPulse 1.2s ease 2; }
@keyframes ctaPulse { 50% { box-shadow: 0 0 0 6px rgba(24,128,56,.18); } }
.seo ul.mistakes li, .seo ul.related li { margin: 6px 0; }
details.faq { border-bottom: 1px solid var(--line); padding: 10px 0; }
details.faq summary { cursor: pointer; font-weight: 600; }
details.faq p { margin: 8px 0 0; color: var(--muted); }
.topic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin: 20px 0; }
.topic { display: block; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; text-decoration: none; color: var(--ink); background: #fff; }
.topic:hover { border-color: var(--green); }
.topic b { display: block; margin-bottom: 4px; }
.topic span { color: var(--muted); font-size: .92em; }

/* ---------- /excel-test ---------- */
.seo.xt { max-width: 1060px; }
.xt #xt-intro, .xt #xt-results, .xt #xt-thanks, .xt .xt-faq { max-width: 780px; }
.xt .muted { color: var(--muted); }
.xt .small { font-size: .88em; }
.xt-facts { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 18px 0; }
.xt-facts li { background: var(--green-soft); border-radius: 999px; padding: 6px 14px; }
.btn.big { font-size: 1.1em; padding: 12px 26px; }
.xt-bar { display: flex; justify-content: space-between; align-items: center; font-weight: 600; position: sticky; top: 52px; background: #fff; padding: 10px 0; z-index: 5; border-bottom: 1px solid var(--line); }
.xt-timer { font-family: var(--mono); font-size: 1.2em; padding: 2px 10px; border-radius: 6px; background: var(--bg-soft); }
.xt-timer.low { background: var(--red-soft); color: var(--red); }
.xt-dots { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.xt-dot { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; font: inherit; font-size: .85em; }
.xt-dot.answered { background: var(--green-soft); border-color: #b7dfc2; }
.xt-dot.on { border: 2px solid var(--green); font-weight: 700; }
.xt-task { font-size: 1.1em; min-height: 3em; }
.xt-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 16px; }
.xt-nav #xt-finish { margin-left: auto; }
table.mini td.target { background: var(--blue-soft); outline: 2px solid var(--blue); text-align: center; font-weight: 700; color: var(--blue); }
.xt-score { display: flex; gap: 20px; align-items: center; margin: 12px 0; }
.xt-big { font-size: 3.4em; font-weight: 800; line-height: 1; min-width: 2.6em; }
.xt-big.good { color: var(--green); } .xt-big.mid { color: #b06000; } .xt-big.low { color: var(--red); }
.xt-score p { margin: 4px 0; }
.xt-skill { margin: 10px 0; }
.xt-skill-top { display: flex; justify-content: space-between; gap: 10px; font-size: .95em; }
.xt-meter { height: 8px; background: var(--bg-soft); border-radius: 4px; overflow: hidden; margin-top: 4px; }
.xt-meter i { display: block; height: 100%; }
.xt-meter i.good { background: var(--green); } .xt-meter i.mid { background: #f9ab00; } .xt-meter i.low { background: var(--red); }
.xt-review li { margin: 12px 0; }
.xt-review li p { margin: 2px 0; }
.xt-review .ok { color: var(--green-dark); font-weight: 600; white-space: nowrap; }
.xt-review .no { color: var(--red); font-weight: 600; white-space: nowrap; }
.xt-review .skip { color: var(--muted); font-weight: 600; white-space: nowrap; }
@media (max-width: 560px) { .xt-score { flex-direction: column; align-items: flex-start; gap: 8px; } .xt-nav #xt-finish { margin-left: 0; } }

.seo h2.xt-h { font-size: 2.1em !important; margin: 4px 0 12px !important; }
.ex-fill { color: var(--muted); font-size: .9em; }
