/* Gordon Teach — math-notebook look: navy ink, orange marker, squared paper. */
:root {
  --ink: #1d2b53;
  --ink-soft: #3d4c7a;
  --muted: #5b6785;
  --line: #dce3ef;
  --page: #f6f8fc;
  --paper: #ffffff;
  --grid: rgba(29, 43, 83, 0.07);
  --orange: #f08a24;
  --orange-ink: #a85508;
  --orange-soft: #fff2e4;
  --green: #2e9e6b;
  --green-ink: #1d7a50;
  --green-soft: #e6f6ee;
  --red: #c8412f;
  --red-soft: #fdecea;
  --sky: #4c9be8;
  --sun: #f5b829;
  --leaf: #3fb37f;
  --berry: #8e63ce;
  --coral: #f06e5a;
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 22px;
  --font: 'Rubik', 'Heebo', system-ui, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--page); }
img, svg { max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 0.5em; font-weight: 700; }
h1 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.6rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.3rem, 1.1rem + 0.9vw, 1.7rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
.math { font-variant-numeric: tabular-nums; white-space: nowrap; unicode-bidi: isolate; direction: ltr; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(560px, 100% - 32px); margin-inline: auto; }
.main { min-height: 60vh; }
.section { padding-block: 56px; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 36em; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.push { margin-inline-start: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: var(--r-sm); z-index: 10; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 4px; }

/* ---------- buttons & bits ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border: 2px solid var(--ink); border-radius: 999px;
  background: var(--ink); color: #fff; font: inherit; font-weight: 500; text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--ink-soft); border-color: var(--ink-soft); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--paper); }
.btn.small { min-height: 38px; padding: 0 16px; font-size: 0.9rem; }
.btn.big { min-height: 56px; padding: 0 30px; font-size: 1.1rem; }
.btn.block { width: 100%; }
.btn.ok-btn { background: var(--green); border-color: var(--green); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--ink-soft); text-decoration: underline; cursor: pointer; }
.text-link { color: var(--ink-soft); text-underline-offset: 3px; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--orange-soft); color: var(--orange-ink); font-size: 0.8rem; font-weight: 500; }
.pill.ok { background: var(--green-soft); color: var(--green-ink); }
.pill.warn { background: var(--orange-soft); color: var(--orange-ink); }
.stars i { font-style: normal; color: var(--line); font-size: 1.1em; }
.stars i.on { color: var(--sun); }
.ok { background: var(--green-soft); color: var(--green-ink); padding: 10px 14px; border-radius: var(--r-sm); }
.warn { background: var(--orange-soft); color: var(--orange-ink); padding: 10px 14px; border-radius: var(--r-sm); }
.form-error { background: var(--red-soft); color: var(--red); padding: 10px 14px; border-radius: var(--r-sm); }
.empty { text-align: center; padding: 48px 16px; color: var(--muted); }
.crumbs { display: flex; gap: 8px; font-size: 0.875rem; color: var(--muted); padding-block: 20px 8px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); }

/* ---------- forms ---------- */
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; font-weight: 500; font-size: 0.95rem; }
.field input, .field select, .field textarea {
  font: inherit; font-weight: 400; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--paper); color: var(--ink); width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink-soft); outline: none; box-shadow: 0 0 0 3px rgba(29, 43, 83, 0.12); }
.inline-form { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); align-items: end; }
.colors { border: 0; padding: 0; margin: 0; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.colors legend { margin-bottom: 6px; }
.swatch input { position: absolute; opacity: 0; }
.swatch { position: relative; width: 34px; height: 34px; border-radius: 50%; background: var(--c); cursor: pointer; border: 3px solid transparent; }
.swatch:has(input:checked) { border-color: var(--ink); }
.swatch:has(input:focus-visible) { outline: 3px solid var(--orange); outline-offset: 2px; }

.c-sky { --c: var(--sky); } .c-sun { --c: var(--sun); } .c-leaf { --c: var(--leaf); } .c-berry { --c: var(--berry); } .c-coral { --c: var(--coral); }

/* ---------- site header / footer ---------- */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.header-row { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 500; font-size: 1.15rem; color: var(--ink); }
.logo b { color: var(--orange); font-weight: 700; }
.main-nav { display: flex; gap: 20px; }
.main-nav a { text-decoration: none; color: var(--ink-soft); }
.main-nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.header-end { margin-inline-start: auto; display: flex; gap: 14px; align-items: center; white-space: nowrap; }
.site-footer { background: var(--paper); border-top: 1px solid var(--line); margin-top: 64px; padding-block: 28px; }
.footer-row { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; }
.footer-row p { margin: 0; }
.footer-links { margin-inline-start: auto; display: flex; gap: 18px; font-size: 0.875rem; }
.footer-links a { color: var(--muted); }
@media (max-width: 720px) {
  .main-nav { display: none; }
  .header-row { gap: 10px; }
  .header-end { gap: 10px; }
  .header-end .btn.small { padding: 0 12px; font-size: 0.85rem; }
  .logo { font-size: 1rem; }
  .footer-links { margin-inline-start: 0; }
}

/* ---------- hero: squared paper + a live square ---------- */
.hero {
  background-color: var(--paper);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px;
  border-bottom: 1px solid var(--line);
  padding-block: 64px 72px;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.3rem); font-weight: 800; line-height: 1.12; }
.demo { margin: 0; background: var(--paper); border: 2px solid var(--ink); border-radius: var(--r-lg); padding: 24px; box-shadow: 8px 8px 0 var(--ink); }
.demo-grid { --n: 3; display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 4px; width: min(100%, 260px); aspect-ratio: 1; margin: 0 auto 18px; }
.demo-grid span { background: var(--orange); border-radius: 4px; }
.demo-grid span.edge { background: #f6a85c; }
.demo figcaption { display: grid; gap: 8px; }
.demo label { font-weight: 500; }
.demo input[type='range'] { width: 100%; accent-color: var(--orange); height: 32px; }
.demo-eq { font-size: 1.15rem; margin: 0; }
.demo-eq .math { font-weight: 700; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .demo { box-shadow: 5px 5px 0 var(--ink); }
}

/* ---------- how it works ---------- */
.flow { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: f; }
.flow li { position: relative; padding: 20px 20px 4px; border-top: 4px solid var(--ink); }
.flow li:nth-child(1) { border-color: var(--ink); }
.flow li:nth-child(n + 2) { border-color: var(--orange); }
.flow-time { display: inline-block; font-weight: 700; color: var(--orange-ink); margin-bottom: 6px; }
.flow p { color: var(--ink-soft); font-size: 0.95rem; }
@media (max-width: 860px) { .flow { grid-template-columns: 1fr 1fr; row-gap: 16px; } }
@media (max-width: 520px) { .flow { grid-template-columns: 1fr; } }

/* ---------- catalog ---------- */
.grade-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.grade-card { display: grid; gap: 4px; padding: 20px; background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--r); text-decoration: none; }
.grade-card:hover { border-color: var(--ink); }
.grade-letter { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 12px; background: var(--ink); color: #fff; font-size: 1.6rem; font-weight: 800; margin-bottom: 8px; }
.grade-name { font-weight: 700; font-size: 1.15rem; }
.trust-band { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; border-top: 1px solid var(--line); }
.trust-band p { color: var(--ink-soft); margin: 0; }
@media (max-width: 720px) { .trust-band { grid-template-columns: 1fr; gap: 20px; } }

.subject { margin-block: 24px 40px; }
.domain { color: var(--orange-ink); margin-top: 24px; font-size: 1rem; font-weight: 500; }
.topic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.topic-card { display: flex; flex-direction: column; gap: 6px; padding: 20px; background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--r); text-decoration: none; }
.topic-card:hover { border-color: var(--ink); }
.topic-card p { color: var(--ink-soft); font-size: 0.95rem; flex: 1; margin: 0; }
.topic-meta { display: flex; justify-content: space-between; align-items: center; font-size: 0.875rem; color: var(--muted); padding-top: 10px; border-top: 1px dashed var(--line); }
.topic-meta strong { color: var(--ink); font-size: 1rem; }

.topic-layout { display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: start; padding-bottom: 40px; }
.units-title { margin-top: 32px; }
.unit-list { list-style: none; padding: 0; margin: 0; counter-reset: u; }
.unit-list li { counter-increment: u; position: relative; padding: 14px 52px 14px 0; border-bottom: 1px solid var(--line); }
.unit-list li::before { content: counter(u); position: absolute; inset-inline-start: 0; top: 14px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: var(--orange-soft); color: var(--orange-ink); font-weight: 700; }
.unit-list h3 { margin: 0; }
.unit-list p { margin: 2px 0 0; font-size: 0.95rem; }
.buy-box { position: sticky; top: 92px; background: var(--paper); border: 2px solid var(--ink); border-radius: var(--r-lg); padding: 24px; display: grid; gap: 12px; }
.buy-box .price, .pay-card .price { font-size: 2.2rem; font-weight: 800; margin: 0; }
.buy-box p { margin: 0; }
.trust { color: var(--muted); }
@media (max-width: 860px) { .topic-layout { grid-template-columns: 1fr; } .buy-box { position: static; } }

/* ---------- auth / account ---------- */
.auth { padding-block: 48px; }
.auth .form { margin-block: 20px; }
.panel { background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--r); padding: 24px; margin-block: 20px; }
.account { padding-block: 32px; }
.kid-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin-bottom: 16px; }
.kid { border: 1.5px solid var(--line); border-top: 6px solid var(--c, var(--sky)); border-radius: var(--r); padding: 18px; display: grid; gap: 8px; }
.kid p { margin: 0; }
.kid-head { display: flex; gap: 12px; align-items: center; }
.kid-head h3 { margin: 0; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--c, var(--sky)); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 1.2rem; flex: none; }
.avatar.big { width: 64px; height: 64px; font-size: 1.7rem; }
.meter { -webkit-appearance: none; appearance: none; width: 100%; height: 10px; border: 0; background: var(--page); border-radius: 999px; overflow: hidden; }
.meter::-webkit-progress-bar { background: var(--page); border-radius: 999px; }
.meter::-webkit-progress-value { background: var(--green); border-radius: 999px; }
.meter::-moz-progress-bar { background: var(--green); border-radius: 999px; }
.add-kid summary { cursor: pointer; font-weight: 500; padding-block: 8px; }
.lines { list-style: none; padding: 0; margin: 0; }
.lines li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }

.who { padding-block: 48px; text-align: center; }
.who-grid { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-top: 24px; }
.who-btn { display: grid; justify-items: center; gap: 10px; padding: 22px 26px; min-width: 150px; background: var(--paper); border: 2px solid var(--line); border-radius: var(--r-lg); font: inherit; font-size: 1.1rem; font-weight: 500; color: var(--ink); cursor: pointer; }
.who-btn:hover { border-color: var(--c); }

/* ---------- learning map ---------- */
.learn { padding-block: 28px; }
.learn-head { display: flex; gap: 16px; align-items: center; margin-bottom: 20px; flex-wrap: wrap; }
.learn-head h1 { margin: 0; }
.learn-head p { margin: 0; }
.path { background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: 24px; margin-bottom: 20px; }
.path-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.step a { display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; padding: 12px 14px; border-radius: var(--r); text-decoration: none; border: 1.5px solid var(--line); }
.step a:hover { border-color: var(--ink); }
.step-num { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--page); font-weight: 700; color: var(--muted); }
.step-title { font-weight: 500; }
.step-state { display: flex; gap: 8px; align-items: center; }
.step.done .step-num { background: var(--green); color: #fff; }
.step.weak .step-num { background: var(--orange); color: #fff; }
.step.next a { border-color: var(--ink); border-width: 2px; background: var(--orange-soft); }
.step.next .step-num { background: var(--ink); color: #fff; }
@media (max-width: 520px) { .step a { grid-template-columns: 40px 1fr; } .step-state { grid-column: 2; } }

/* ---------- unit player ---------- */
.player { padding-bottom: 40px; }
.player-head { padding-top: 18px; }
.player-head h1 { margin-bottom: 16px; }
.player-head p { margin: 4px 0; }
.phase-bar { list-style: none; padding: 0; margin: 0 0 20px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.phase-bar li { text-align: center; font-size: 0.85rem; font-weight: 500; color: var(--muted); padding: 8px 4px 0; border-top: 5px solid var(--line); }
.phase-bar li.done { border-color: var(--green); color: var(--green-ink); }
.phase-bar li.now { border-color: var(--orange); color: var(--ink); }
.lesson-frame { background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.lesson-frame iframe { display: block; width: 100%; height: 72vh; min-height: 520px; border: 0; }
.phase-foot { display: flex; justify-content: center; padding-block: 24px; }

.card-q { background: var(--paper); border: 2px solid var(--ink); border-radius: var(--r-lg); padding: 24px; box-shadow: 6px 6px 0 var(--ink); }
.q-progress { display: flex; justify-content: space-between; color: var(--muted); font-size: 0.9rem; margin-bottom: 12px; }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.dots i.right { background: var(--green); }
.dots i.wrong { background: var(--orange); }
.dots i.now { background: var(--ink); }
.q-prompt { font-size: 1.25rem; font-weight: 500; margin-bottom: 18px; }
.choices { display: grid; gap: 10px; }
.choice { text-align: start; font: inherit; font-size: 1.1rem; min-height: 56px; padding: 12px 18px; border: 2px solid var(--line); border-radius: var(--r); background: var(--paper); color: var(--ink); cursor: pointer; }
.choice:hover:not(:disabled) { border-color: var(--ink); }
.choice.right { border-color: var(--green); background: var(--green-soft); }
.choice.wrong { border-color: var(--orange); background: var(--orange-soft); }
.choice:disabled { cursor: default; }
.num-answer { display: flex; gap: 10px; }
.num-answer input { font: inherit; font-size: 1.4rem; width: 9ch; text-align: center; padding: 10px; border: 2px solid var(--line); border-radius: var(--r); direction: ltr; }
.feedback { margin-top: 16px; padding: 14px 16px; border-radius: var(--r); }
.feedback.right { background: var(--green-soft); color: var(--green-ink); }
.feedback.wrong { background: var(--orange-soft); color: var(--orange-ink); }
.feedback strong { display: block; font-size: 1.1rem; }
.feedback p { margin: 4px 0 0; color: var(--ink); }
.q-next { margin-top: 18px; display: flex; justify-content: flex-end; }

.result { text-align: center; padding-block: 12px; }
.result .stars { font-size: 2.6rem; display: block; margin-block: 8px; letter-spacing: 6px; }
.result .score { font-size: 1.3rem; font-weight: 700; }
.concepts { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 8px; text-align: start; }
.concepts li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--r); border: 1.5px solid var(--line); }
.concepts li::before { content: ''; width: 14px; height: 14px; border-radius: 50%; flex: none; }
.concepts li.good { background: var(--green-soft); border-color: transparent; }
.concepts li.good::before { background: var(--green); }
.concepts li.weak { background: var(--orange-soft); border-color: transparent; }
.concepts li.weak::before { background: var(--orange); }

.fix { background: var(--paper); border: 2px solid var(--orange); border-radius: var(--r-lg); padding: 24px; }
.fix h3 { margin-top: 20px; }
.fix-label { color: var(--orange-ink); font-weight: 500; font-size: 0.9rem; }
.fix .example {
  background-color: var(--page);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 20px 20px; padding: 14px 16px; border-radius: var(--r); white-space: pre-line;
}
.done-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }

/* ---------- misc pages ---------- */
.prose { padding-block: 40px; }
.pay-card { padding-block: 40px; display: grid; gap: 12px; text-align: center; }
.test-note { background: var(--orange-soft); color: var(--orange-ink); padding: 10px; border-radius: var(--r-sm); font-size: 0.9rem; }

@media (prefers-reduced-motion: no-preference) {
  .demo-grid span { transition: transform 0.25s ease; }
  .feedback, .result, .fix { animation: pop 0.25s ease-out; }
}
@keyframes pop { from { transform: translateY(6px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ================= back office ================= */
.is-admin { font-size: 16px; }
.admin-header { background: var(--ink); color: #fff; }
.admin-header .logo { color: #fff; }
.admin-header .logo svg rect { fill: #fff; }
.admin-header .logo svg path:first-child { fill: var(--ink); }
.admin-row { display: flex; align-items: center; gap: 18px; min-height: 60px; flex-wrap: wrap; }
.admin-tag { font-size: 0.8rem; background: rgba(255, 255, 255, 0.14); padding: 2px 10px; border-radius: 999px; }
.admin-nav { display: flex; gap: 16px; flex-wrap: wrap; }
.admin-nav a, .admin-header .text-link, .admin-header .link { color: #dfe5f3; text-decoration: none; font-size: 0.95rem; }
.admin-nav a:hover { color: #fff; text-decoration: underline; }
.admin-end { margin-inline-start: auto; display: flex; gap: 16px; align-items: center; }
.is-admin .main { width: min(1120px, 100% - 32px); margin-inline: auto; padding-block: 28px 64px; }
.back { display: inline-block; margin-bottom: 8px; color: var(--muted); font-size: 0.9rem; }
.back::before { content: '› '; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-block: 16px 24px; }
.stat { background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--r); padding: 14px 16px; display: grid; }
.stat > span { color: var(--muted); font-size: 0.85rem; }
.stat strong { font-size: 1.5rem; }
.table { width: 100%; border-collapse: collapse; background: var(--paper); border-radius: var(--r); overflow: hidden; border: 1.5px solid var(--line); margin-block: 8px 16px; font-size: 0.95rem; }
.table th, .table td { padding: 10px 12px; text-align: start; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { background: var(--page); font-weight: 500; color: var(--muted); font-size: 0.85rem; }
@media (max-width: 720px) { .table { display: block; overflow-x: auto; } }
.status { display: inline-block; font-size: 0.8rem; font-weight: 500; padding: 2px 10px; border-radius: 999px; background: var(--page); color: var(--muted); white-space: nowrap; }
.s-running { background: #e8effc; color: #2a55a8; }
.s-ready { background: var(--orange-soft); color: var(--orange-ink); }
.s-approved { background: var(--green-soft); color: var(--green-ink); }
.s-failed { background: var(--red-soft); color: var(--red); }
.stage-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.stage-head h2 { margin: 0; }
.stage-num { min-width: 36px; height: 36px; padding: 0 8px; display: grid; place-items: center; border-radius: 10px; background: var(--ink); color: #fff; font-weight: 700; }
.stage.locked { opacity: 0.6; }
.stage .row { margin-top: 16px; align-items: end; }
.run-form { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; flex: 1; }
.run-form .field { flex: 1; min-width: 220px; }
.inline { display: inline; }
.sources { padding-inline-start: 20px; }
.sources li { margin-bottom: 6px; }
.principle { font-size: 1.2rem; font-weight: 700; background: var(--orange-soft); border-inline-start: 5px solid var(--orange); padding: 12px 16px; border-radius: var(--r-sm); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 860px) { .two { grid-template-columns: 1fr; } }
.qa ul { list-style: none; padding: 0; columns: 2; column-gap: 24px; }
.qa li { padding: 4px 0; break-inside: avoid; }
.qa li.pass { color: var(--green-ink); }
.qa li.fail { color: var(--red); font-weight: 500; }
@media (max-width: 720px) { .qa ul { columns: 1; } }
.admin-frame { margin-inline: auto; transition: max-width 0.2s; }
.admin-frame.phone { max-width: 390px; }
.preview-toggle { display: flex; gap: 14px; margin-bottom: 8px; }
.qlist { padding-inline-start: 22px; }
.qlist > li { margin-bottom: 14px; }
.opts-preview { list-style: none; padding: 0; margin: 6px 0; display: flex; flex-wrap: wrap; gap: 6px; }
.opts-preview li { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 2px 10px; font-size: 0.9rem; }
.opts-preview li.right, .right { color: var(--green-ink); font-weight: 700; }
.opts-preview li.right { border-color: var(--green); background: var(--green-soft); }
.fix-preview { border-top: 1px dashed var(--line); padding-top: 12px; margin-top: 12px; }
.bulk { padding-top: 16px; border-top: 1px dashed var(--line); }
.login { width: min(420px, 100% - 32px); margin: 48px auto; display: grid; gap: 14px; }
.or { text-align: center; color: var(--muted); }
details > summary { cursor: pointer; }
.cost { font-variant-numeric: tabular-nums; }
.cost-panel .stats { margin-block: 8px 12px; }
.cost-lines { list-style: none; padding: 0; margin: 0 0 12px; max-width: 420px; }
.cost-lines li { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.form > .btn:not(.block) { justify-self: start; }
.autopilot { margin-top: 18px; padding: 16px; border-radius: var(--r); background: var(--green-soft); display: grid; gap: 6px; justify-items: start; }
.autopilot p { margin: 0; }
.manual { margin-top: 12px; }
.manual summary { color: var(--muted); font-size: 0.9rem; }
