/* MIKO, by MILO — the app. The logo's navy and blue (green only means passed), Outfit for display, Geist for text,
   8px corners, 12px plates. Phone first; the dashboard widens. Same tokens as miko-site/site.css. */
:root {
  --canvas: #F4F9FB; --surface: #FFFFFF; --ink: #0E1B40; --ink-2: #4A6382; --ink-3: #8AA0B8;
  --line: #DCE7EF; --line-2: #C6D6E2; --sky: #E3F1F8; --sky-2: #EDF5F9; --mint: #E6F6F0; --mint-2: #CDEEDF;
  --accent: #1D5BB9; --accent-2: #174A9C; --tint: #E6EFFB; --tint-2: #CFE0F7; --navy: #0A2062; --glow: #50B0EB;
  --hero: radial-gradient(120% 90% at 100% 0%, #1D5BB9 0%, transparent 60%), radial-gradient(90% 80% at 0% 100%, #1B4F9E 0%, transparent 65%), #0A2062;
  --blue: #1D5BB9; --blue-dark: #174A9C; --green: #0A7A5E; --green-2: #086A51; --amber: #B7791F; --red: #B42318;
  --white: #fff; --r: 8px; --r-plate: 12px;
  --shadow: 0 1px 2px rgba(11,37,69,.05), 0 8px 24px -8px rgba(11,37,69,.10);
  --shadow-2: 0 2px 4px rgba(11,37,69,.06), 0 18px 40px -14px rgba(11,37,69,.18);
  --fd: "Outfit", system-ui, sans-serif; --ft: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--canvas); color: var(--ink); font: 16px/1.55 var(--ft); -webkit-font-smoothing: antialiased; overflow-x: hidden;
  font-feature-settings: "ss01", "cv11"; }
body.dash { font-size: 15px; }
h1, h2, h3, h4, .wordmark, .who, .stat b, .score b, .big-score, .kpi b, .tier h1, .num { font-family: var(--fd); }
h1 { font-size: 2rem; line-height: 1.1; letter-spacing: -0.03em; font-weight: 600; margin: 0 0 8px; text-wrap: balance; }
h2 { font-size: 1.3rem; line-height: 1.2; letter-spacing: -0.02em; font-weight: 600; margin: 0 0 6px; }
h3 { font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; margin: 18px 0 8px; }
p { margin: 0 0 10px; text-wrap: pretty; }
a { color: var(--blue); text-underline-offset: 0.15em; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r);
  padding: 11px 13px; width: 100%; outline: none; min-height: 46px; transition: border-color .12s, box-shadow .12s; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(29,91,185,.16); }
input::placeholder, textarea::placeholder { color: var(--ink-3); }
textarea { min-height: 88px; resize: vertical; line-height: 1.5; }
select { appearance: none; -webkit-appearance: none; padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='M3 5l4 4 4-4' fill='none' stroke='%234A6382' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; }
label { display: block; font-size: 13px; color: var(--ink-2); margin: 14px 0 6px; font-weight: 500; }
.hidden { display: none !important; }
.wrap { width: min(560px, 100%); margin: 0 auto; padding: 16px 16px 56px; }
.wide { width: min(1120px, 100%); }
.eyebrow { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; margin: 0 0 6px; }

/* ------------------------------------------------------------ top bar + nav */
.top { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 8px 0 18px; }
body.dash .top { position: sticky; top: 0; z-index: 5; margin: 0 -16px 18px; padding: 10px 16px;
  background: color-mix(in oklab, var(--canvas) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line); }
.mark { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.mark > img { width: 34px; height: 34px; }
.wordmark { font-weight: 700; letter-spacing: -0.03em; font-size: 1.25rem; line-height: 1; }
.wordmark img { display: block; height: 15px; width: auto; }
.wordmark small { display: block; font-family: var(--ft); letter-spacing: 0; font-weight: 400; color: var(--ink-2); font-size: 12px; margin-top: 3px; }
.nav { display: flex; gap: 2px; align-items: center; }
.nav a { position: relative; text-decoration: none; color: var(--ink-2); padding: 8px 12px; border-radius: var(--r); font-weight: 500; white-space: nowrap; }
.nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; border-radius: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.nav a.on { color: var(--ink); }
.nav a.on::after { transform: scaleX(1); }
.nav a:hover { background: var(--sky); }
.nav .me { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: #fff; font-family: var(--fd); font-weight: 600; font-size: 13px; margin-left: 8px; }

/* ------------------------------------------------------------ plates and layout */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-plate); padding: 20px 22px; margin: 0 0 14px; box-shadow: var(--shadow); }
.card > h2:first-child, .card > .row:first-child h2 { margin-top: 0; }
.card h3:first-child { margin-top: 0; }
.lead { color: var(--ink-2); margin: 0 0 14px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.right { margin-left: auto; }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); }
.small { font-size: 13px; }
.sep { height: 1px; background: var(--line); margin: 16px 0; }
.center { text-align: center; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 6px 0 18px; }
.page-head h1 { margin: 0; }
.page-head .sub { color: var(--ink-2); margin: 4px 0 0; }
.page-head .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.grid2 { display: grid; grid-template-columns: 1fr; gap: 14px; }
.grid3 { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 760px) { .grid2 { grid-template-columns: 1fr 1fr; } .grid3 { grid-template-columns: repeat(3, 1fr); } .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } .pick { grid-template-columns: 1fr 1fr; } }
.grid2 > .card, .grid3 > .card { margin: 0; }
.crumbs { display: flex; gap: 6px; align-items: center; font-size: 13px; color: var(--ink-2); margin: 0 0 10px; flex-wrap: wrap; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs i { color: var(--ink-3); font-style: normal; }

/* ------------------------------------------------------------ buttons, chips */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: var(--r);
  border: 1px solid var(--line-2); background: var(--surface); font-weight: 600; font-size: 14.5px; text-decoration: none; color: var(--ink);
  white-space: nowrap; transition: background .12s ease, border-color .12s ease, transform .06s ease; }
.btn:hover { background: var(--sky-2); border-color: var(--ink-3); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn.quiet { border-color: transparent; background: transparent; color: var(--ink-2); }
.btn.quiet:hover { background: var(--sky); color: var(--ink); }
.btn.danger { color: var(--red); }
.btn.danger:hover { background: #FBEDEA; border-color: #E8B4AC; }
.btn.sm { min-height: 34px; padding: 0 12px; font-size: 13px; }
.btn.block { width: 100%; }
.btn.big { min-height: 52px; font-size: 16px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 6px; font-size: 12px; font-weight: 600; line-height: 1.4;
  background: var(--sky-2); border: 1px solid var(--line); color: var(--ink-2); white-space: nowrap; }
.chip.blue { color: var(--blue); background: #E6EFFB; border-color: transparent; }
.chip.green { color: var(--green); background: var(--mint); border-color: transparent; }
.chip.amber { color: var(--amber); background: #FBF1DD; border-color: transparent; }
.chip.red { color: var(--red); background: #FBEDEA; border-color: transparent; }
.chip.ink { color: #fff; background: var(--ink); border-color: transparent; }
.dot { display: inline-grid; place-items: center; min-width: 30px; height: 26px; padding: 0 6px; border-radius: 6px; font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; background: var(--sky-2); color: var(--ink-2); border: 1px solid var(--line); }
.dot.green { background: var(--mint); color: var(--green); border-color: transparent; }
.dot.red { background: #FBEDEA; color: var(--red); border-color: transparent; }
.dot.amber { background: #FBF1DD; color: var(--amber); border-color: transparent; }
.avatar { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--tint); color: var(--accent); font-family: var(--fd); font-weight: 600; font-size: 13.5px; flex: none; letter-spacing: 0; }
.avatar.lg { width: 52px; height: 52px; font-size: 19px; }
.avatar.grey { background: var(--sky-2); color: var(--ink-2); }

/* ------------------------------------------------------------ dashboard numbers + lists */
.stat { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 14px; }
.stat .card, .kpi { margin: 0; padding: 16px 18px; }
.stat b, .kpi b { display: block; font-size: 32px; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1; font-weight: 600; }
.stat span, .kpi span { display: block; font-size: 13px; color: var(--ink-2); margin-top: 6px; }
.pulse { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-plate); box-shadow: var(--shadow); margin-bottom: 14px; overflow: hidden; }
.pulse .kpi { border-left: 1px solid var(--line); padding: 18px 20px; }
.pulse .kpi:first-child { border-left: 0; }
.pulse .kpi.on b { color: var(--accent); }
.progress { height: 6px; border-radius: 3px; background: var(--sky-2); overflow: hidden; display: flex; }
.progress i { display: block; height: 100%; background: var(--accent); }
.progress i.live { background: var(--blue); }
.list { display: flex; flex-direction: column; gap: 8px; }
.item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r-plate); border: 1px solid var(--line); background: var(--surface);
  text-align: left; width: 100%; color: inherit; text-decoration: none; transition: border-color .12s, box-shadow .12s; }
.item:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.item .t { font-weight: 600; font-family: var(--fd); font-size: 16px; letter-spacing: -0.01em; }
.item .s { font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.item .meter { width: 180px; flex: none; }
.item .meter .small { display: flex; justify-content: space-between; margin-bottom: 5px; }
.empty { text-align: center; padding: 36px 20px; color: var(--ink-2); }
.empty h2 { color: var(--ink); }
.tabs { display: inline-flex; gap: 2px; padding: 3px; border-radius: var(--r); background: var(--sky-2); border: 1px solid var(--line); }
.tabs button { border: 0; background: transparent; padding: 6px 12px; border-radius: 6px; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.tabs button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(11,37,69,.08); font-weight: 600; }
.search { max-width: 260px; min-height: 38px; padding: 7px 12px; font-size: 14px; }

.levels { display: flex; flex-direction: column; gap: 10px; }
.lvl { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r-plate); border: 1px solid var(--line); background: var(--surface);
  text-align: left; width: 100%; color: inherit; }
.lvl .num { flex: none; width: 38px; height: 38px; border-radius: var(--r); display: grid; place-items: center; font-weight: 600; color: var(--ink-2); background: var(--sky-2); border: 1px solid var(--line); font-size: 15px; }
.lvl .body { flex: 1; min-width: 0; }
.lvl .t { font-weight: 600; font-family: var(--fd); font-size: 16px; letter-spacing: -0.01em; }
.lvl .s { font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.lvl.current, .lvl.open { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(29,91,185,.14); }
.lvl.current .num, .lvl.open .num { background: var(--accent); color: #fff; border-color: var(--accent); }
.lvl.locked { opacity: .55; }
.lvl.done .num { background: var(--mint); color: var(--green); border-color: transparent; }
.lvl.done.failed .num { background: #FBEDEA; color: var(--red); }
.lvl.practice .num { background: var(--sky); color: var(--blue); border-color: transparent; }

.pick { display: grid; grid-template-columns: 1fr; gap: 10px; }
.tile { text-align: left; padding: 16px 18px; border-radius: var(--r-plate); border: 1px solid var(--line); background: var(--surface); color: inherit; transition: border-color .12s, box-shadow .12s; }
.tile:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.tile.on { border-color: var(--accent); background: var(--tint); }
.tile .t { font-weight: 600; font-family: var(--fd); font-size: 16px; margin-bottom: 4px; }
.tile .s { font-size: 13px; color: var(--ink-2); }

.check { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-plate); background: var(--sky-2); margin-top: 16px; cursor: pointer; font-size: 14px; line-height: 1.5; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--accent); min-height: 0; }
.check.on { border-color: var(--accent); background: var(--tint); }
.err { color: var(--red); font-size: 14px; min-height: 1em; margin: 8px 0 0; }
.ok { color: var(--green); font-size: 14px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r); font-size: 14px; box-shadow: var(--shadow-2); z-index: 9; }
.note { background: var(--sky-2); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; font-size: 14px; color: var(--ink-2); }
.note b { color: var(--ink); }

/* ------------------------------------------------------------ tables */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line); }
td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: var(--sky-2); }
td .name { font-weight: 600; font-family: var(--fd); font-size: 15px; }
td .who { display: flex; align-items: center; gap: 10px; }
.table-wrap { overflow-x: auto; margin: 0 -22px; padding: 0 22px; }
.num-cell { font-family: var(--fd); font-weight: 600; font-size: 20px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.linkbox { display: flex; gap: 8px; align-items: center; }
.linkbox input { font-size: 13px; padding: 8px 10px; min-height: 36px; background: var(--sky-2); color: var(--ink-2); }
.links { display: grid; gap: 6px; }
.links .lk { display: grid; grid-template-columns: minmax(120px, 1fr) minmax(0, 2fr) auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.links .lk:last-child { border-bottom: 0; }
.links .lk .url { font-size: 12.5px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.drop { border: 1.5px dashed var(--line-2); border-radius: var(--r-plate); padding: 18px; text-align: center; color: var(--ink-2); font-size: 14px; background: var(--sky-2); }
.drop.on { border-color: var(--accent); background: var(--tint); }
.preview { font-size: 13.5px; }
.preview td { padding: 8px 10px; }
.preview .dup td { color: var(--ink-3); }

/* ------------------------------------------------------------ the live call */
.call { min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 24px 16px calc(24px + env(safe-area-inset-bottom)); gap: 8px; position: relative;
  background: radial-gradient(60% 40% at 50% 38%, var(--tint) 0%, transparent 70%), var(--canvas); }
.call .tag { font-size: 13px; color: var(--ink-2); font-weight: 500; }
.logo { position: relative; width: 160px; height: 160px; display: grid; place-items: center; margin: 8px 0; --mic: 0; }
.logo img { width: 104px; height: 104px; object-fit: contain; position: relative; z-index: 1; transition: transform .3s ease; }
.ring { position: absolute; inset: 12px; border-radius: 50%; opacity: 0; border: 2px solid rgba(29,91,185,.55); }
.ring.r2 { inset: -2px; border-color: rgba(29,91,185,.3); }
.halo { position: absolute; inset: 16px; border-radius: 50%; background: rgba(29,91,185,.22); filter: blur(8px);
  transform: scale(calc(0.9 + var(--mic) * 0.6)); opacity: calc(var(--mic) * .9); transition: transform .08s linear, opacity .12s linear; }
.call[data-state="listening"] .ring { opacity: 1; animation: pulse 2s ease-out infinite; }
.call[data-state="listening"] .ring.r2 { animation-delay: .5s; }
.call[data-state="speaking"] .ring { opacity: 1; animation: pulse 1s ease-out infinite; }
.call[data-state="speaking"] .ring.r2 { animation-delay: .22s; }
.call[data-state="speaking"] .logo img { transform: scale(1.06); }
.call[data-state="thinking"] .logo img, .call[data-state="connecting"] .logo img { animation: breathe 1.4s ease-in-out infinite; }
.call[data-state="ended"] .logo img { filter: saturate(.4); }
.call:not([data-state="listening"]) .halo { opacity: 0; }
@keyframes pulse { 0% { transform: scale(.9); opacity: .85; } 100% { transform: scale(1.3); opacity: 0; } }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
.who { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; }
.state { font-size: 15px; font-weight: 600; color: var(--accent); min-height: 24px; }
.caption { max-width: 440px; min-height: 48px; color: var(--ink-2); font-size: 17px; line-height: 1.45; text-wrap: pretty; }
.caption.you { color: var(--ink); }
.controls { display: flex; gap: 10px; margin-top: 16px; width: min(440px, 100%); }
.controls .btn { flex: 1; min-height: 54px; }
.btn.done { background: var(--tint); border-color: transparent; color: var(--accent); }
.btn.hang { background: var(--red); border-color: var(--red); color: #fff; }
.timer { position: absolute; top: 18px; right: 16px; font-variant-numeric: tabular-nums; font-size: 14px; color: var(--ink-2); font-family: var(--fd); }
.notice { position: absolute; top: 18px; left: 16px; right: 90px; font-size: 13px; color: var(--amber); text-align: left; }

/* ------------------------------------------------------------ results */
.score { display: flex; align-items: baseline; gap: 8px; }
.score b { font-size: 46px; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1; font-weight: 600; }
.score span { color: var(--ink-2); }
.big-score { font-size: 60px; font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.bar { height: 8px; border-radius: 4px; background: var(--sky-2); overflow: hidden; margin-top: 6px; }
.bar i { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.comp { padding: 10px 0; border-top: 1px solid var(--line); }
.comp:first-child { border-top: 0; }
.comp .row { justify-content: space-between; }
.comp .row b { font-family: var(--fd); font-variant-numeric: tabular-nums; }
.comp .ev { font-size: 13px; color: var(--ink-2); margin-top: 6px; }
.yna h4 { margin: 14px 0 6px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; font-family: var(--ft); }
.yna h4.y { color: var(--green); } .yna h4.n { color: var(--amber); } .yna h4.a { color: var(--blue); }
.yna ul { margin: 0; padding-left: 18px; }
.yna li { margin: 4px 0; }
.transcript p { margin: 8px 0; font-size: 14px; }
.transcript b { color: var(--ink-2); font-weight: 600; }
.transcript p.rep b { color: var(--accent); }
.transcript audio { display: block; width: 100%; height: 34px; margin-top: 4px; }
.hero { padding: 28px 8px 12px; text-align: center; }
.hero img { width: 72px; height: 72px; animation: breathe 4.5s ease-in-out infinite; }
.hero h1 { font-size: 28px; margin: 12px 0 6px; }
.hero p { color: var(--ink-2); margin: 0 auto; max-width: 420px; }
.foot { text-align: center; color: var(--ink-3); font-size: 12px; padding: 18px 0 0; }
.steps { display: flex; gap: 6px; justify-content: center; margin: 4px 0 16px; }
.steps i { width: 32px; height: 4px; border-radius: 2px; background: var(--line); }
.steps i.on { background: var(--accent); }
.login { width: min(420px, 100%); margin: 8vh auto 0; }

/* ------------------------------------------------------------ credits + prices */
.balance { display: flex; align-items: baseline; gap: 10px; }
.balance b { font-family: var(--fd); font-size: 44px; letter-spacing: -0.03em; line-height: 1; font-weight: 600; font-variant-numeric: tabular-nums; }
.balance span { color: var(--ink-2); }
.packs { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-top: 12px; }
.pack { text-align: left; padding: 16px; border-radius: var(--r-plate); border: 1px solid var(--line); background: var(--surface); color: inherit; }
.pack:hover { border-color: var(--accent); }
.pack .n { font-family: var(--fd); font-size: 26px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.pack .n small { font-size: 13px; font-weight: 500; color: var(--ink-2); letter-spacing: 0; margin-left: 4px; font-family: var(--ft); }
.pack .p { margin-top: 8px; font-weight: 600; }
.pack .s { font-size: 12.5px; color: var(--ink-2); }
.ledger td:first-child { font-variant-numeric: tabular-nums; font-weight: 600; font-family: var(--fd); }
.price-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr auto; gap: 8px; align-items: center; }
.price-grid input { min-height: 40px; padding: 8px 10px; }
.switch-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--sky-2); }
.switch-row input { width: 20px; height: 20px; min-height: 0; accent-color: var(--accent); }

.row > h2.grow { min-width: 9rem; }
.tabs { max-width: 100%; overflow-x: auto; }
@media (max-width: 640px) {
  .card { padding: 16px; }
  .wordmark small { display: none; }
  .nav { overflow-x: auto; flex: 1; justify-content: flex-end; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav .me { display: none; }
  .table-wrap { margin: 0 -16px; padding: 0 16px; }
  .item .meter { display: none; }
  .page-head { align-items: flex-start; flex-direction: column; }
  .nav a { padding: 8px 9px; font-size: 14px; }
  .price-grid { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) { .hero img, .ring, .logo img { animation: none !important; } }

/* ------------------------------------------------------------ the practice round: what to say, and an example to watch */
.say4 { list-style: none; counter-reset: say; margin: 0; padding: 0; display: grid; gap: 8px; text-align: left; }
.say4 li { counter-increment: say; position: relative; padding: 10px 12px 10px 46px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.say4 li::before { content: counter(say); position: absolute; left: 10px; top: 10px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px;
  background: var(--sky); color: var(--ink); font-family: var(--fd); font-weight: 600; font-size: 14px; }
.say4 b { display: block; font-weight: 600; font-size: 14.5px; }
.say4 q { display: block; margin-top: 2px; color: var(--ink-2); font-size: 14.5px; quotes: "“" "”"; }
.say4.live { width: min(440px, 100%); margin: 14px auto 4px; gap: 6px; }
.say4.live li { padding: 8px 10px 8px 42px; opacity: .55; transition: opacity .2s, border-color .2s; }
.say4.live li::before { left: 8px; top: 8px; }
.say4.live li.on { opacity: 1; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(29,91,185,.14); }
.say4.live li.on::before { background: var(--accent); color: #fff; }
.say4.live li.done { opacity: .5; }
.say4.live li.done::before { content: "✓"; background: var(--mint); color: var(--green); }
.say4.live li:not(.on) q { display: none; }
.ex { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; align-items: center; margin: 4px 0 6px; padding: 12px; border-radius: 12px; background: var(--hero); color: #fff; }
.ex-play { display: grid; place-items: center; width: 56px; height: 56px; border: 0; border-radius: 12px; background: #fff; color: var(--navy); font-size: 20px; line-height: 1; }
.ex-body b { display: block; font-family: var(--fd); font-weight: 600; font-size: 1.02rem; letter-spacing: -0.01em; }
.ex-cap { margin: 3px 0 8px; min-height: 2.9em; font-size: 14px; color: #DCE7F2; }
.ex-cap .you { color: var(--glow); font-weight: 600; } .ex-cap .them { color: #fff; font-weight: 600; }
.ex-steps { display: flex; gap: 6px; margin-bottom: 8px; }
.ex-steps i { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: rgba(255,255,255,.14); color: #B9CBE0; font-style: normal; font-family: var(--fd); font-weight: 600; font-size: 13px; }
.ex-steps i.on { background: #fff; color: var(--navy); } .ex-steps i.done { background: rgba(80,176,235,.5); color: #fff; }
.ex .bar { background: rgba(255,255,255,.16); } .ex .bar i { background: var(--glow); transition: none; }
