/* CelpipTestAI.com — one accent (brick), warm light neutrals, soft depth, large radii. System fonts only. */
:root {
  --bg: #f7f5f1;
  --bg-2: #efebe5;
  --card: #ffffff;
  --ink: #1d1a17;
  --ink-2: #514a43;
  --ink-3: #847c73;
  --line: #e6e0d8;
  --line-2: #d8d1c7;
  --accent: #a6412a;
  --accent-ink: #8c3521;
  --accent-tint: #f7e8e2;
  --accent-tint-2: #fbf2ee;
  --exam-bar: #e9e6e1;
  --r-lg: 24px;
  --r: 18px;
  --r-sm: 12px;
  --sh-1: 0 1px 2px rgba(40, 25, 10, .05), 0 2px 8px -2px rgba(40, 25, 10, .06);
  --sh-2: 0 1px 2px rgba(40, 25, 10, .05), 0 18px 40px -18px rgba(70, 40, 20, .28);
  --sh-3: 0 2px 4px rgba(40, 25, 10, .06), 0 30px 60px -24px rgba(90, 45, 20, .38);
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --tabs-h: 0px;
}
* { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--font); overflow-x: clip;
  padding-bottom: var(--tabs-h); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); text-underline-offset: 3px; }
h1, h2, h3, h4 { line-height: 1.18; letter-spacing: -.018em; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(34px, 5.2vw, 58px); font-weight: 760; letter-spacing: -.028em; }
h2 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 720; }
h3 { font-size: 20px; font-weight: 680; }
p { margin: 0 0 1em; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--ink-3); }
.small { font-size: 15px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-ink); margin-bottom: 14px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── header ─────────────────────────────────────────────────────────── */
.top { position: sticky; top: 0; z-index: 20; background: rgba(247, 245, 241, .86); backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid rgba(216, 209, 199, .6); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 760;
  font-size: 18px; letter-spacing: -.01em; white-space: nowrap; }
.logo-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--accent); display: grid; place-items: center;
  box-shadow: 0 6px 14px -6px rgba(166, 65, 42, .7); flex: none; }
.logo-mark svg { width: 18px; height: 18px; }
.nav { display: flex; gap: 6px; margin-left: auto; align-items: center; }
.nav > a, .nav .nav-cta { text-decoration: none; color: var(--ink-2); font-size: 15px; font-weight: 560; padding: 8px 12px; border-radius: 999px; white-space: nowrap; }
.nav > a:hover, .nav > a[aria-current] { color: var(--ink); background: var(--bg-2); }
.nav a.nav-cta { background: var(--ink); color: #fff; margin-left: 6px; display: inline-block; }
.nav a.nav-cta:hover { background: #000; color: #fff; }

/* account slot: same box before and after /api/auth?a=me answers (no "Sign in" flash for a signed-in visitor) */
.acct-slot { position: relative; min-width: 82px; height: 40px; display: flex; align-items: center; justify-content: flex-end; flex: none; }
.acct-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 10px 0 4px; margin-left: 6px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--card); color: var(--ink); font: 600 15px/1 var(--font); cursor: pointer; max-width: 210px; }
.acct-btn:hover { border-color: var(--ink-3); }
.acct-btn:focus-visible, .acct-menu [role=menuitem]:focus-visible { outline: 3px solid var(--accent-tint); outline-offset: 2px; }
.acct-slot.is-here .acct-btn, .acct-slot.open .acct-btn { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink) inset; }
.acct-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-chev { width: 16px; height: 16px; color: var(--ink-3); flex: none; transition: transform .15s; }
.acct-slot.open .acct-chev { transform: rotate(180deg); }
.avatar { width: 32px; height: 32px; border-radius: 50%; flex: none; display: grid; place-items: center; overflow: hidden;
  background: var(--accent-tint); color: var(--accent-ink); font-size: 13px; font-weight: 750; letter-spacing: .02em; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-lg { width: 44px; height: 44px; font-size: 16px; }
.acct-menu { position: absolute; right: 0; top: calc(100% + 10px); width: 292px; z-index: 40; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-2), 0 24px 48px -24px rgba(29, 26, 23, .35); padding: 8px; }
.acct-menu[hidden] { display: none; }
.acct-menu-head { display: flex; gap: 12px; align-items: flex-start; padding: 10px 10px 14px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.acct-menu-head > div { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.acct-menu-head b { font-size: 15.5px; line-height: 1.3; }
.acct-menu-head span:not(.chip) { font-size: 13.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-menu-head .chip { align-self: flex-start; margin-top: 6px; }
.acct-menu [role=menuitem] { display: flex; align-items: center; width: 100%; min-height: 44px; padding: 10px 12px; border-radius: var(--r-sm);
  border: 0; background: none; font: 560 15.5px/1.2 var(--font); color: var(--ink); text-decoration: none; text-align: left; cursor: pointer; }
.acct-menu [role=menuitem]:hover, .acct-menu [role=menuitem]:focus { background: var(--bg-2); outline: none; }
.acct-menu [role=menuitem][aria-current] { color: var(--accent-ink); font-weight: 650; }
.acct-menu .acct-out { margin-top: 6px; border-top: 1px solid var(--line); border-radius: 0 0 var(--r-sm) var(--r-sm); color: var(--ink-2); }

/* ── bottom tabs (phones) ───────────────────────────────────────────── */
.tabs { display: none; }
@media (max-width: 760px) {
  :root { --tabs-h: 68px; }
  .nav > a:not(.nav-keep) { display: none; }
  .acct-slot { min-width: 76px; height: 44px; }
  .acct-btn { height: 44px; padding: 0 8px 0 5px; gap: 4px; }
  .acct-name { display: none; }
  .acct-menu { position: fixed; top: 62px; left: 12px; right: 12px; width: auto; }
  .top .wrap { height: 58px; }
  .tabs { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    height: calc(var(--tabs-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
    background: rgba(255, 255, 255, .94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--line); }
  .tabs a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; text-decoration: none;
    color: var(--ink-3); font-size: 12px; font-weight: 600; }
  .tabs a svg { width: 23px; height: 23px; }
  .tabs a[aria-current] { color: var(--accent); }
  body.focus-task { --tabs-h: 0px; }
  body.focus-task .tabs { display: none; }
  body:has(textarea:focus) .tabs { display: none; }
}

/* ── buttons ────────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px;
  border-radius: 999px; border: 1px solid transparent; font: 650 16px/1.2 var(--font); text-decoration: none; cursor: pointer;
  white-space: nowrap; transition: transform .12s, box-shadow .12s, background .12s; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 24px -10px rgba(166, 65, 42, .8); }
.btn-primary:hover { background: var(--accent-ink); }
.btn-primary:active { transform: translateY(1px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-ghost { background: var(--card); color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink-3); }
.btn-lg { min-height: 56px; padding: 16px 30px; font-size: 17px; }
.btn-sm { min-height: 38px; padding: 8px 16px; font-size: 14px; }
.btn[disabled], .btn[aria-disabled=true] { opacity: .5; cursor: not-allowed; box-shadow: none; }
.btn svg { width: 18px; height: 18px; flex: none; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--accent-ink); text-decoration: underline;
  text-underline-offset: 3px; cursor: pointer; }

/* ── cards ──────────────────────────────────────────────────────────── */
.card { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--sh-2); padding: 28px; border: 1px solid rgba(230, 224, 216, .7); }
.card-flat { background: var(--card); border-radius: var(--r); border: 1px solid var(--line); padding: 22px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; background: var(--bg-2);
  color: var(--ink-2); font-size: 13px; font-weight: 600; white-space: nowrap; }
.chip-accent { background: var(--accent-tint); color: var(--accent-ink); }
.section { padding: 84px 0; }
.section-tight { padding: 48px 0; }
.section-head { max-width: 720px; margin-bottom: 36px; }
.section-head p { color: var(--ink-2); font-size: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .grid-2, .grid-4 { grid-template-columns: 1fr; } .section { padding: 56px 0; } .card { padding: 22px; } }

/* ── home ───────────────────────────────────────────────────────────── */
.hero { position: relative; padding: 64px 0 72px; }
.hero::before { content: ""; position: absolute; inset: -80px 0 0 0; z-index: -1; pointer-events: none;
  background: radial-gradient(640px 420px at 78% 18%, rgba(166, 65, 42, .13), transparent 70%),
              radial-gradient(520px 380px at 8% 0%, rgba(166, 65, 42, .06), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero-sub { font-size: 19px; color: var(--ink-2); max-width: 34em; margin-bottom: 30px; }
.hero-note { font-size: 15px; color: var(--ink-3); margin-top: 14px; }
.stage { position: relative; min-height: 560px; }
.mock-editor { position: absolute; left: 0; top: 0; width: 82%; padding: 22px 22px 18px; }
.mock-editor .mock-bar > span:last-child { white-space: nowrap; }
.mock-editor .mock-bar { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--ink-3);
  border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 14px; gap: 10px; }
.mock-editor .mock-bar b { color: var(--ink); font-weight: 650; }
.mock-text { font-size: 14.5px; line-height: 1.65; color: var(--ink-2); }
.mock-text mark { background: var(--accent-tint); color: var(--accent-ink); border-radius: 4px; padding: 0 2px; }
.mock-count { margin-top: 12px; text-align: left; font-size: 13px; color: var(--ink-3); }
.mock-report { position: absolute; right: 0; bottom: 0; width: 64%; box-shadow: var(--sh-3); padding: 22px; }
.mock-report .lvl { display: flex; align-items: baseline; gap: 10px; }
.mock-report .lvl b { font-size: 46px; line-height: 1; letter-spacing: -.03em; }
.fix-label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); }
.ba { font-size: 14px; line-height: 1.5; margin-top: 8px; }
.ba s { color: var(--ink-3); }
.ba ins { text-decoration: none; background: var(--accent-tint); color: var(--accent-ink); border-radius: 4px; padding: 0 3px; }
@media (max-width: 1024px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } .stage { max-width: 640px; } }
@media (max-width: 760px) { .hero { padding: 36px 0 48px; } .hero-sub { font-size: 17px; }
  .stage { min-height: 0; display: grid; gap: 0; }
  .mock-editor, .mock-report { position: relative; width: auto; }
  .mock-report { margin: -40px 0 0 14%; }
  .hero .btn-lg { width: 100%; } }

.skill { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: inherit; min-height: 200px; }
.skill .ico { width: 44px; height: 44px; border-radius: 14px; background: var(--accent-tint); display: grid; place-items: center; color: var(--accent); }
.skill .ico svg { width: 22px; height: 22px; }
.skill p { color: var(--ink-2); font-size: 15.5px; margin: 0; }
.skill .go { margin-top: auto; font-weight: 650; font-size: 15px; color: var(--accent-ink); }
.skill.soon { box-shadow: none; background: transparent; border: 1px dashed var(--line-2); }
.skill.soon .ico { background: var(--bg-2); color: var(--ink-3); }
.skill.soon .go { color: var(--ink-3); }
a.skill:hover { box-shadow: var(--sh-3); }

.loop { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; counter-reset: s; }
.loop li { list-style: none; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; font-size: 15px; color: var(--ink-2); }
.loop li b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 4px; }
.loop li::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 28px; height: 28px;
  border-radius: 50%; background: var(--accent); color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.loop { padding: 0; margin: 0; }
@media (max-width: 1024px) { .loop { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .loop { grid-template-columns: 1fr; } }

.crit h3 { font-size: 18px; margin-bottom: 6px; }
.crit p { font-size: 15.5px; color: var(--ink-2); margin: 0; }
.note-box { background: var(--accent-tint-2); border: 1px solid var(--accent-tint); border-radius: var(--r); padding: 22px 24px; color: var(--ink-2); }
.note-box h3 { font-size: 18px; }

.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; font-weight: 650; font-size: 18px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 26px; font-weight: 400; color: var(--ink-3); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-2); padding-right: 36px; }

/* ── prices ─────────────────────────────────────────────────────────── */
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.plan { display: flex; flex-direction: column; gap: 6px; position: relative; }
.plan .price { font-size: 40px; font-weight: 760; letter-spacing: -.03em; line-height: 1.1; }
.plan .price small { font-size: 16px; font-weight: 600; color: var(--ink-3); letter-spacing: 0; }
.plan .perday { font-size: 15px; color: var(--ink-2); }
.plan ul { padding-left: 18px; margin: 10px 0 18px; color: var(--ink-2); font-size: 15px; }
.plan .btn { margin-top: auto; width: 100%; }
.plan.pick { outline: 2px solid var(--accent); box-shadow: var(--sh-3); }
.plan .tag { position: absolute; top: -13px; left: 24px; }
.plan .tag:empty { display: none; }
@media (max-width: 1100px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .plans { grid-template-columns: 1fr; } }
.when { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.when button { border: 1px solid var(--line-2); background: var(--card); border-radius: 999px; padding: 10px 18px; font: 600 15px var(--font);
  cursor: pointer; color: var(--ink); min-height: 44px; }
.when button[aria-pressed=true] { background: var(--ink); color: #fff; border-color: var(--ink); }
.when input[type=date] { border: 1px solid var(--line-2); border-radius: 999px; padding: 9px 16px; font: 500 15px var(--font); min-height: 44px; background: var(--card); color: var(--ink); }
.side-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 28px; }
.free-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 20px; flex-wrap: wrap; }
.free-row > div { flex: 1 1 360px; }
@media (max-width: 900px) { .side-facts { grid-template-columns: 1fr; } }

/* ── forms ──────────────────────────────────────────────────────────── */
label.f { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
input.in, select.in { width: 100%; min-height: 50px; border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 12px 14px;
  font: 500 17px var(--font); background: var(--card); color: var(--ink); }
input.in:focus, select.in:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.err { color: var(--accent-ink); font-weight: 600; }
.ok-box { background: var(--bg-2); border-radius: var(--r-sm); padding: 14px 16px; font-size: 15px; }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 15px; font-weight: 600; color: var(--ink-2); user-select: none; }
.switch input { appearance: none; -webkit-appearance: none; width: 44px; height: 26px; border-radius: 999px; background: var(--line-2);
  position: relative; cursor: pointer; transition: background .15s; flex: none; margin: 0; }
.switch input::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .15s; }
.switch input:checked { background: var(--accent); }
.switch input:checked::after { transform: translateX(18px); }

/* ── sign-in panel ──────────────────────────────────────────────────── */
.signin { border: 1px solid var(--line); border-radius: var(--r); padding: 22px; background: var(--accent-tint-2); }
.signin h3 { font-size: 19px; margin-bottom: 4px; }
.signin form { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.signin form .in { flex: 1 1 220px; }
.signin .code { font-family: var(--mono); font-size: 22px; letter-spacing: .2em; font-weight: 700; color: var(--ink); }
.preview-code { margin-top: 12px; padding: 12px 14px; border-radius: var(--r-sm); background: #fff; border: 1px dashed var(--line-2); font-size: 14px; color: var(--ink-2); }

/* ── practice pages ─────────────────────────────────────────────────── */
.page-head { padding: 36px 0 20px; }
.page-head p { color: var(--ink-2); font-size: 18px; max-width: 46em; }
.crumbs { font-size: 14px; color: var(--ink-3); margin-bottom: 10px; }
.crumbs a { color: var(--ink-3); }
.work { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 28px; align-items: start; padding-bottom: 72px; }
@media (max-width: 1024px) { .work { grid-template-columns: 1fr; } }
.prompt h2 { font-size: 24px; margin-bottom: 12px; }
.prompt .sit { font-size: 17px; color: var(--ink); }
.prompt ul { padding-left: 22px; margin: 6px 0 0; }
.prompt li { margin-bottom: 6px; }
.prompt .instr { color: var(--ink-2); font-weight: 600; margin: 16px 0 4px; }
.helpers { margin-top: 18px; display: grid; gap: 12px; }
.fold { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.fold > summary { cursor: pointer; list-style: none; padding: 16px 48px 16px 20px; font-weight: 650; position: relative; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--ink-3);
  border-bottom: 2px solid var(--ink-3); transform: translateY(-70%) rotate(45deg); transition: transform .15s; }
.fold[open] > summary::after { transform: translateY(-30%) rotate(225deg); }
.fold .fold-body { padding: 0 20px 18px; font-size: 15.5px; color: var(--ink-2); }
.fold ol { padding-left: 20px; margin: 0; }
.fold ol li { margin-bottom: 6px; }
.seg { display: inline-flex; background: var(--bg-2); border-radius: 999px; padding: 4px; gap: 2px; margin-bottom: 14px; }
.seg button { border: 0; background: transparent; border-radius: 999px; padding: 8px 16px; font: 650 14px var(--font); color: var(--ink-2); cursor: pointer; min-height: 36px; }
.seg button[aria-selected=true] { background: var(--card); color: var(--ink); box-shadow: var(--sh-1); }
.model { white-space: pre-wrap; font-size: 15.5px; line-height: 1.7; color: var(--ink); background: var(--bg); border-radius: var(--r-sm); padding: 16px; }
.editor-card { padding: 0; overflow: visible; }
.editor-top { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--line); gap: 12px; flex-wrap: wrap; }
.editor-top .timer { font-family: var(--mono); font-weight: 700; font-size: 16px; }
textarea.answer { display: block; width: 100%; min-height: 380px; resize: vertical; border: 0; padding: 20px; font: 17px/1.7 var(--font);
  color: var(--ink); background: transparent; border-radius: 0; }
textarea.answer:focus { outline: none; }
.editor-foot { border-top: 1px solid var(--line); padding: 14px 20px 20px; }
.wc { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--ink-2); margin-bottom: 14px; }
.wc b { color: var(--ink); font-variant-numeric: tabular-nums; }
.meter { flex: 1; height: 6px; border-radius: 999px; background: var(--bg-2); position: relative; overflow: hidden; }
.meter i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--ink-3); border-radius: 999px; transition: width .2s; }
.meter.in-range i { background: var(--ink); }
.meter.over i { background: var(--accent); }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.redo-banner { background: var(--ink); color: #fff; border-radius: var(--r); padding: 16px 20px; margin-bottom: 20px; font-size: 15.5px; }
.redo-banner b { color: #fff; }
.redo-banner .ba s { color: #b9b1a8; }
.redo-banner .ba ins { background: rgba(255, 255, 255, .14); color: #fff; }

/* hubs */
.task-group { margin-bottom: 44px; }
.task-group-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.task-group-head h2 { font-size: 24px; margin: 0; }
.items { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1024px) { .items { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .items { grid-template-columns: 1fr; } }
.item-card { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: inherit; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); padding: 18px 20px; transition: box-shadow .15s, border-color .15s; min-height: 118px; }
.item-card:hover { box-shadow: var(--sh-2); border-color: transparent; }
.item-card b { font-size: 17px; }
.item-card .meta { margin-top: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.exam-cta { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; margin-bottom: 48px;
  background: linear-gradient(135deg, #fff, var(--accent-tint-2)); }
.exam-cta h2 { font-size: 26px; margin-bottom: 4px; }
.exam-cta p { margin: 0; color: var(--ink-2); }
.drill-link { font-size: 14px; font-weight: 600; }

/* ── exam mode (writing + speaking) ─────────────────────────────────── */
body.exam { background: #f3f1ed; }
.exam-bar { position: sticky; top: 0; z-index: 25; background: var(--exam-bar); border-bottom: 1px solid #d6d1ca; }
.exam-bar .wrap { display: flex; align-items: center; gap: 16px; min-height: 58px; padding-top: 6px; padding-bottom: 6px; }
.exam-bar .where { font-weight: 650; font-size: 15px; color: var(--ink-2); flex: 1; min-width: 0; }
.exam-bar .where b { color: var(--ink); }
.exam-bar .clock { font-size: 15px; color: var(--ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.exam-bar .clock b { font-family: var(--mono); color: var(--ink); font-size: 17px; }
.exam-bar .clock.red, .exam-bar .clock.red b { color: var(--accent); }
.exam-bar .btn { min-height: 40px; padding: 8px 20px; }
.exam-body { padding: 28px 0 60px; }
.exam-split { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); background: var(--card); border-radius: var(--r-lg);
  box-shadow: var(--sh-2); overflow: hidden; border: 1px solid var(--line); }
.exam-split .left { background: #f6f4f0; padding: 26px; border-right: 1px solid var(--line); }
.exam-split .right { padding: 26px; }
.exam-split .left h3 { font-size: 16px; color: var(--ink-2); }
.exam-split textarea.answer { border: 1px solid var(--line-2); border-radius: var(--r-sm); min-height: 340px; }
.exam-split .wc-center { text-align: center; margin-top: 10px; font-size: 15px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .exam-split { grid-template-columns: 1fr; } .exam-split .left { border-right: 0; border-bottom: 1px solid var(--line); }
  .exam-bar .where small { display: none; }
  /* phones: title + button on the first line (the title never shrinks for the button), timer on its own second line */
  .exam-bar .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "where act" "clock clock"; gap: 2px 12px; }
  .exam-bar .where { grid-area: where; }
  .exam-bar .where b { white-space: nowrap; }
  .exam-bar .clock { grid-area: clock; white-space: normal; font-size: 14px; }
  .exam-bar .wrap > :not(.where):not(.clock) { grid-area: act; justify-self: end; } }
.confirm-strip { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; background: var(--ink); color: #fff;
  border-radius: var(--r); padding: 14px 18px; margin-bottom: 18px; }
.confirm-strip p { margin: 0; }
.confirm-strip .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .4); }
.intro { max-width: 720px; margin: 40px auto; }
.intro ul { color: var(--ink-2); padding-left: 20px; }
.opts { display: grid; gap: 10px; margin: 12px 0 16px; }
.opt { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 14px; cursor: pointer; background: var(--card); }
.opt input { margin-top: 5px; accent-color: var(--accent); flex: none; }
.opt:has(input:checked) { border-color: var(--accent); background: var(--accent-tint-2); }

/* ── speaking ───────────────────────────────────────────────────────── */
.sp { max-width: 980px; margin: 0 auto; padding-bottom: 40px; }
.sp-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.sp-prompt { font-size: 18px; line-height: 1.6; }
.sp-prompt .i { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: #fff;
  font-size: 13px; font-weight: 700; margin-right: 8px; font-style: normal; vertical-align: 2px; }
.sp-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 24px; margin-top: 20px; align-items: start; }
.sp-grid.solo { grid-template-columns: 1fr; }
@media (max-width: 900px) { .sp-grid { grid-template-columns: 1fr; } }
.pic { border-radius: var(--r); overflow: hidden; background: var(--bg-2); border: 1px solid var(--line); }
.pic img { width: 100%; }
.desc-card { border-radius: var(--r); border: 1px dashed var(--line-2); background: #fbfaf8; padding: 20px; font-size: 16px; color: var(--ink-2); }
.desc-card .chip { margin-bottom: 10px; }
.status { text-align: center; padding: 26px 20px; border-radius: var(--r); background: #f6f4f0; border: 1px solid var(--line); }
.status .lbl { font-size: 15px; font-weight: 650; color: var(--ink-2); display: flex; align-items: center; justify-content: center; gap: 8px; }
.status .lbl svg { width: 20px; height: 20px; }
.status .big { font-family: var(--mono); font-size: 54px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; margin: 6px 0 12px; font-variant-numeric: tabular-nums; }
.status.rec { background: var(--accent-tint-2); border-color: var(--accent-tint); }
.status.rec .lbl { color: var(--accent-ink); }
.bar { height: 10px; border-radius: 999px; background: #e4dfd8; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--ink); border-radius: 999px; }
.status.rec .bar i { background: var(--accent); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .dot { animation: none; } }
.level-meter { height: 8px; border-radius: 999px; background: #e4dfd8; overflow: hidden; margin-top: 10px; }
.level-meter i { display: block; height: 100%; width: 0; background: var(--ink-3); transition: width .08s; }
.toggles { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 18px; }
.dock { margin-top: 22px; }
@media (max-width: 760px) {
  .dock { position: sticky; bottom: 0; z-index: 15; margin: 18px -24px 0; padding: 12px 24px calc(12px + env(safe-area-inset-bottom));
    background: rgba(247, 245, 241, .97); border-top: 1px solid var(--line); }
  body.exam .dock { background: rgba(243, 241, 237, .97); }
}
.dock .actions { justify-content: center; }
.dock .btn-rec { min-width: 220px; min-height: 60px; font-size: 18px; }
@media (max-width: 760px) { .dock .actions .btn { flex: 1 1 100%; } }
.t5-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 640px) { .t5-cards { grid-template-columns: 1fr; } }
.t5 { display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--line-2); border-radius: var(--r); padding: 16px; background: var(--card); }
.t5 ul { margin: 0; padding-left: 18px; font-size: 15px; color: var(--ink-2); }
.t5 .photo { aspect-ratio: 16/9; border-radius: var(--r-sm); background: var(--bg-2); display: grid; place-items: center; padding: 12px;
  font-size: 13px; color: var(--ink-3); text-align: center; }
.t5 .btn { margin-top: auto; }
.t5.chosen { border-color: var(--accent); background: var(--accent-tint-2); }
.scratch { display: grid; gap: 10px; margin-top: 12px; }
.scratch input { min-height: 46px; }
.player { width: 100%; margin-top: 10px; }
.queue { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 8px; }
.queue li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; border-radius: var(--r-sm); background: var(--card); border: 1px solid var(--line); font-size: 15px; }

/* ── report ─────────────────────────────────────────────────────────── */
.rep-hero { min-height: calc(100vh - 64px - var(--tabs-h)); min-height: calc(100svh - 64px - var(--tabs-h)); display: flex; align-items: center; padding: 40px 0; position: relative; }
.rep-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(600px 400px at 50% 30%, rgba(166, 65, 42, .10), transparent 70%); }
.fix-card { max-width: 760px; margin: 0 auto; text-align: left; }
.fix-card h1 { font-size: clamp(28px, 4vw, 42px); margin: 8px 0 18px; }
.fix-card .ba { font-size: 17px; margin: 0 0 8px; }
.fix-card .ba-row { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 12px 0; border-top: 1px solid var(--line); }
.fix-card .ba-row span { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.fix-card .actions { margin-top: 22px; }
.scroll-cue { font-size: 14px; color: var(--ink-3); margin-top: 18px; }
.cmp { display: flex; gap: 14px; flex-wrap: wrap; margin: 4px 0 18px; }
.cmp .chip { font-size: 14px; padding: 6px 12px; }
.up { color: var(--ink); font-weight: 750; }
.rep-sec { padding: 28px 0; }
.rep-sec h2 { font-size: 26px; }
.scale { position: relative; margin: 38px 0 10px; }
.scale-cells { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; }
.scale-cells i { height: 18px; border-radius: 6px; background: var(--bg-2); }
.scale-cells i.on { background: var(--ink); }
.scale-cells i.band { background: #bdb5ab; }
.scale-nums { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; font-size: 13px; color: var(--ink-3); text-align: center; margin-top: 6px; font-variant-numeric: tabular-nums; }
.target-line { position: absolute; top: -30px; bottom: 0; width: 0; border-left: 2px dashed var(--accent); pointer-events: none; }
.target-line span { position: absolute; top: -2px; left: 6px; font-size: 12px; font-weight: 700; color: var(--accent-ink); white-space: nowrap; }
.target-line.flip span { left: auto; right: 6px; }
.level-row { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.level-big { font-size: 64px; font-weight: 780; letter-spacing: -.04em; line-height: 1; }
.level-big small { font-size: 18px; font-weight: 600; color: var(--ink-3); letter-spacing: 0; }
.dims { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 760px) { .dims { grid-template-columns: 1fr; } }
.dim { display: flex; flex-direction: column; gap: 8px; }
.dim-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.dim-head b { font-size: 17px; }
.dim-head .n { font-size: 28px; font-weight: 760; letter-spacing: -.02em; }
.dim p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.dim q { display: block; quotes: none; font-size: 15px; color: var(--ink); background: var(--bg); border-left: 3px solid var(--line-2); padding: 8px 12px; border-radius: 0 8px 8px 0; }
.pips { display: grid; grid-template-columns: repeat(12, 1fr); gap: 3px; }
.pips i { height: 6px; border-radius: 3px; background: var(--bg-2); }
.pips i.on { background: var(--ink); }
.points { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.points li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-sm); background: var(--card); border: 1px solid var(--line); }
.points .st { flex: none; font-size: 12px; font-weight: 750; text-transform: uppercase; letter-spacing: .05em; border-radius: 999px; padding: 3px 10px; margin-top: 2px; min-width: 76px; text-align: center; }
.st-done { background: var(--ink); color: #fff; }
.st-partial { background: var(--bg-2); color: var(--ink); }
.st-missed { background: var(--accent-tint); color: var(--accent-ink); }
.edits { display: grid; gap: 12px; }
.edit { padding: 16px 18px; border-radius: var(--r-sm); background: var(--card); border: 1px solid var(--line); }
.edit .from { color: var(--ink-3); text-decoration: line-through; text-decoration-color: rgba(166, 65, 42, .6); }
.edit .to { color: var(--ink); margin-top: 4px; }
.edit .to::before { content: "→ "; color: var(--accent); font-weight: 700; }
.edit .why { font-size: 14px; color: var(--ink-3); margin-top: 6px; }
.prose { white-space: pre-wrap; font-size: 16.5px; line-height: 1.75; }
.transcript .fl { background: var(--accent-tint); color: var(--accent-ink); border-radius: 4px; padding: 0 3px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat { padding: 16px; border-radius: var(--r-sm); background: var(--card); border: 1px solid var(--line); }
.stat b { display: block; font-size: 26px; letter-spacing: -.02em; }
.stat span { font-size: 14px; color: var(--ink-3); }
.flag { background: var(--accent-tint); color: var(--accent-ink); border-radius: var(--r-sm); padding: 14px 16px; font-weight: 600; margin-bottom: 14px; }
.stub-banner { background: var(--ink); color: #fff; border-radius: var(--r-sm); padding: 12px 16px; font-size: 15px; margin-bottom: 18px; }
.task-rows { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.task-rows a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--r-sm); text-decoration: none; color: inherit; }
.task-rows a:hover { box-shadow: var(--sh-1); }
.task-rows .lv { font-weight: 760; font-size: 20px; }
.rep-list a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; }
.rep-list .when-s { grid-column: 1; font-size: 13px; color: var(--ink-3); }

/* ── CLB calculator ─────────────────────────────────────────────────── */
.calc { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 28px; }
@media (max-width: 1024px) { .calc { grid-template-columns: minmax(0, 1fr); } }
.calc-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.seg-wide { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
.tbl-wrap { overflow-x: auto; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--card); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.tbl th, .tbl td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl th { white-space: normal; vertical-align: bottom; font-size: 13px; color: var(--ink-3); font-weight: 650; text-transform: uppercase; letter-spacing: .04em; background: #faf9f7; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td.num, .tbl th.num { text-align: right; }
.tbl tr.total td { font-weight: 750; background: #faf9f7; }
.gap-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.gap-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--r-sm); background: var(--bg); flex-wrap: wrap; }
.big-num { font-size: 46px; font-weight: 780; letter-spacing: -.03em; line-height: 1; }

/* ── footer ─────────────────────────────────────────────────────────── */
.foot { border-top: 1px solid var(--line); margin-top: 40px; padding: 40px 0 48px; color: var(--ink-3); font-size: 14px; background: #f2efea; }
.foot .links { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 18px; }
.foot .links a { color: var(--ink-2); text-decoration: none; font-weight: 600; }
.foot .disc { max-width: 900px; line-height: 1.6; margin: 0 0 8px; }
body.exam .foot { margin-top: 0; }
@media (max-width: 760px) { #clb-out { padding: 18px 12px; } #clb-out .tbl th, #clb-out .tbl td { padding-left: 5px; padding-right: 5px; } .tbl { font-size: 14px; } .tbl th, .tbl td { padding: 9px 6px; } .tbl th:first-child, .tbl td:first-child { padding-left: 12px; } .tbl td:first-child { white-space: normal; } }

/* ── round 2 fixes ──────────────────────────────────────────────────── */
body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; }
body > main { flex: 1 0 auto; }
.signin form[hidden] { display: none; }
.note-box, .prose, .edit, .ba { overflow-wrap: anywhere; }
@media (max-width: 640px) { .fix-card .ba-row { grid-template-columns: 1fr; gap: 4px; } }
.acct-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.acct-plan { font-size: 20px; margin-top: 4px; }
.refund-facts { margin: 6px 0 14px; padding-left: 20px; color: var(--ink-2); }
.order { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--r-sm); }
.order .when-s { display: block; font-size: 13px; color: var(--ink-3); }
/* fix-it loop */
.loop-steps { list-style: none; padding: 0; margin: 0 0 22px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.loop-steps li { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ink-3); min-width: 0; }
.loop-steps li span { min-width: 0; line-height: 1.25; }
.loop-steps i { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--bg-2); font-style: normal; font-size: 12px; font-weight: 700; }
.loop-steps li.now { color: var(--ink); }
.loop-steps li.now i { background: var(--accent); color: #fff; }
.loop-steps li.done i { background: var(--ink); color: #fff; }
@media (max-width: 640px) { .loop-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 8px; } }
.verdict { display: flex; flex-direction: column; gap: 2px; border-radius: var(--r-sm); padding: 14px 16px; margin-bottom: 18px; background: var(--bg-2); }
.verdict b { font-size: 19px; }
.verdict span { font-size: 15px; color: var(--ink-2); }
.verdict.held { background: var(--ink); }
.verdict.held b, .verdict.held span { color: #fff; }
/* drill */
.dr-wrap { max-width: 860px; padding-bottom: 60px; }
.dr-h1 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 10px; }
.dr-fix { font-size: 19px; font-weight: 650; color: var(--ink); margin: 0 0 8px; }
.dr-fix .fix-label { display: block; margin-bottom: 4px; }
.dr-list { list-style: none; padding: 0; margin: 8px 0 28px; display: grid; gap: 16px; }
.dr-item { display: flex; flex-direction: column; gap: 10px; }
.dr-top { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.chip-dark { background: var(--ink); color: #fff; }
.dr-ins { margin: 0; font-weight: 600; }
.dr-src { margin: 0; padding: 10px 14px; background: var(--bg); border-left: 3px solid var(--line-2); border-radius: 0 10px 10px 0; color: var(--ink-2); overflow-wrap: anywhere; }
textarea.dr-in { width: 100%; min-height: 84px; resize: vertical; border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 12px 14px; font: 17px/1.55 var(--font); color: var(--ink); background: var(--card); }
.dr-res { border-radius: var(--r-sm); padding: 12px 14px; font-size: 15.5px; background: var(--bg-2); overflow-wrap: anywhere; }
.dr-res.ok b { color: var(--ink); }
.dr-res.no { background: var(--accent-tint-2); }
.dr-res.no b { color: var(--accent-ink); }
.dr-better { margin-top: 8px; color: var(--ink); }
.dr-better span { display: block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.dr-next { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.dr-next h2 { font-size: 24px; margin-bottom: 4px; }
@media (max-width: 760px) { .dr-next .btn, .dr-item .actions .btn { width: 100%; } }
/* plan */
.plan-wrap { max-width: 900px; padding-bottom: 60px; }
.plan-form h2, .plan-head h2 { font-size: 24px; margin: 0; }
.plan-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
@media (max-width: 640px) { .plan-fields { grid-template-columns: 1fr; } }
.plan-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.plan-head .eyebrow { margin-bottom: 6px; }
.plan-tasks { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.plan-tasks li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--card); }
.plan-tasks li.done .plan-t b { color: var(--ink-3); text-decoration: line-through; }
.plan-chk input { width: 22px; height: 22px; accent-color: var(--accent); margin: 0; display: block; }
.plan-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
@media (max-width: 640px) { .plan-tasks li { grid-template-columns: auto minmax(0, 1fr); } .plan-tasks li .btn { grid-column: 2; justify-self: start; } }
.plan-days { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.plan-days li { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 16px;
  border-radius: var(--r-sm); background: var(--card); border: 1px solid var(--line); font-size: 15px; }
.plan-date { font-weight: 650; }
.plan-what { color: var(--ink-2); min-width: 0; }
@media (max-width: 640px) { .plan-days li { grid-template-columns: minmax(0, 1fr) auto; } .plan-what { grid-column: 1 / -1; grid-row: 2; } }
.today-sec { padding: 28px 0 0; }
.today-card { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.today-card.col { flex-direction: column; align-items: stretch; }
.today-card h2 { font-size: 24px; margin: 0; }
.today-card .eyebrow { margin-bottom: 6px; }

/* ── round 3: nav width, legal pages, Google sign-in, share my score, delete account ── */
@media (max-width: 980px) { .nav a.nav-wide { display: none; } }
.legal { max-width: 820px; padding-bottom: 60px; }
.legal section { margin-top: 34px; }
.legal h2 { font-size: 24px; margin: 0 0 10px; }
.legal p, .legal li { color: var(--ink-2); }
.legal ul { padding-left: 22px; margin: 8px 0; }
.legal li { margin: 6px 0; }
.legal code { font: 15px var(--mono); background: var(--bg-2); padding: 1px 6px; border-radius: 6px; }
.legal-toc { margin-top: 6px; }
.legal-toc ol { margin: 0; padding-left: 22px; columns: 2; column-gap: 32px; }
.legal-toc li { margin: 3px 0; break-inside: avoid; }
@media (max-width: 640px) { .legal-toc ol { columns: 1; } .legal h2 { font-size: 21px; } }
.foot .disc a { color: inherit; }
.gsi-box { min-height: 44px; margin-top: 16px; }
.gsi-fallback { display: inline-flex; align-items: center; gap: 10px; }
.preview-only { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line-2); }
.share-card { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.share-card img { width: 220px; max-width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--sh-1); }
.share-card .share-body { flex: 1 1 260px; min-width: 0; }
.share-card .share-text { font-size: 15px; background: var(--bg-2); border-radius: 12px; padding: 10px 12px; margin: 8px 0 12px; overflow-wrap: anywhere; }
.share-card .row { gap: 10px; flex-wrap: wrap; }
.danger-zone { border: 1px solid #e7c9c0; }
.btn-danger { background: #fff; color: #9b2c17; border: 1px solid #d9a99b; }
.btn-danger:hover { background: #fbf0ec; }
.band-note { font-size: 14px; color: var(--ink-3); }
#up-sec .dot { display: inline-block; margin-right: 6px; vertical-align: 1px; }
.level-big small { display: inline-block; line-height: 1.3; }

/* ── account & plan (/account) ──────────────────────────────────────── */
.acct-who { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.acct-who-txt { display: flex; flex-direction: column; min-width: 0; margin-right: auto; }
.acct-who-txt b { font-size: 18px; line-height: 1.3; }
.acct-who-txt span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-step { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 20px;
  background: linear-gradient(180deg, var(--accent-tint-2), var(--card)); border-color: var(--accent-tint); }
.next-step h2 { font-size: 26px; margin: 0 0 6px; }
.next-step p { margin: 0; color: var(--ink-2); max-width: 36em; }
.next-step .eyebrow { margin-bottom: 8px; }
.next-step .btn { flex: none; }
.plan-now { margin-bottom: 8px; }
.plan-now-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 8px; }
.plan-now-head h2 { font-size: 26px; margin: 0; }
.plan-now-head .eyebrow { margin-bottom: 6px; }
.plan-sub { font-size: 16px; margin: 20px 0 10px; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; }
.facts > div { background: var(--bg); border-radius: var(--r-sm); padding: 12px 14px; }
.facts dt { font-size: 13px; color: var(--ink-3); font-weight: 600; }
.facts dd { margin: 2px 0 0; font-weight: 650; font-size: 15.5px; line-height: 1.35; }
.meters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.qmeter { background: var(--bg); border-radius: var(--r-sm); padding: 12px 14px; }
.qmeter-top { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; color: var(--ink-2); }
.qmeter-top b { color: var(--ink); white-space: nowrap; }
.qmeter-bar { height: 6px; border-radius: 999px; background: var(--line); margin-top: 10px; overflow: hidden; }
.qmeter-bar i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.upgrade { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.upgrade-what { margin: 0 0 12px; }
.upgrade-buy { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.upgrade-go { display: flex; align-items: center; gap: 16px; flex: none; }
@media (max-width: 900px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .next-step { flex-direction: column; align-items: stretch; }
  .next-step .btn { width: 100%; }
  .meters { grid-template-columns: 1fr; }
  .upgrade-go { width: 100%; flex-direction: column; align-items: stretch; text-align: center; gap: 10px; }
}

/* ── home, signed in ────────────────────────────────────────────────── */
.home-me-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.home-me-head h2 { font-size: 26px; margin: 0; }
.home-me-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.home-me-cell { display: flex; flex-direction: column; gap: 4px; background: var(--bg); border-radius: var(--r); padding: 18px 20px; }
.home-me-cell b { font-size: 18px; line-height: 1.3; }
.home-me-cell .btn { margin-top: auto; align-self: flex-start; }
.home-me-cell .small { margin-bottom: 14px; }
.home-me-k { font-size: 12.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--accent-ink); }
@media (max-width: 760px) { .home-me-grid { grid-template-columns: 1fr; } .home-me-cell .btn { align-self: stretch; } }
.empty-state { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.empty-state h2 { font-size: 24px; margin: 0 0 6px; }
.empty-state p { margin: 0; color: var(--ink-2); max-width: 34em; }
.empty-go { display: flex; flex-direction: column; align-items: center; gap: 10px; flex: none; }
@media (max-width: 760px) { .empty-state { flex-direction: column; align-items: stretch; } .empty-go .btn { width: 100%; } }
.quota-note { margin: 10px 0 0; } .quota-note[hidden] { display: none; }
@media (max-width: 480px) { .facts > .facts-wide { grid-column: 1 / -1; } }

/* Original task guides separate explanations, examples and the practice step. */
.guide-article h2 { margin-top: 32px; }
