/* Product layer — auth, paywall, locked state. Kept separate from the
   learning UI in styles.css so the two can evolve independently. */

/* ---------- brand header (home) ---------- */

header.brand {
  display: flex; align-items: center; gap: 13px;
  padding: 18px 0 16px;
  position: sticky; top: 0; z-index: 20;
  background: linear-gradient(var(--bg) 72%, transparent);
}

/* Full-colour brand badge — drawn as a background image rather than masked,
   because the mark carries its own yellow/red/navy. */
.logo-mark {
  width: 42px; height: 42px; flex: none;
  background: url(brand/logo-192.png) center / contain no-repeat;
}

header.brand .who { flex: 1; min-width: 0; }
header.brand .who b {
  display: block; font-size: 17px; font-weight: 650;
  letter-spacing: -0.012em; line-height: 1.25;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
header.brand .stats {
  display: flex; flex-wrap: wrap; gap: 4px 10px;
  font-size: 12.5px; color: var(--ink-faint);
  font-variant-numeric: tabular-nums; margin-top: 2px;
}
header.brand .stats .s { white-space: nowrap; }
header.brand .stats .flame { color: var(--accent); }

/* Fixed-width tag column so every unit title starts on the same line,
   however long the Kannada phrase is. */
.unit .kn-tag {
  width: 94px; min-width: 94px;
  font-size: 14px; line-height: 1.3;
}

.unit.locked { opacity: 0.62; }
.unit.locked .kn-tag { color: var(--ink-faint); }

.pill.lock {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-faint);
  font-size: 13px;
}

/* "or" divider on the sign-in card */
.or {
  display: flex; align-items: center; gap: 12px;
  color: var(--ink-faint); font-size: 12.5px; margin: 4px 0 14px;
}
.or::before, .or::after {
  content: ''; flex: 1; height: 1px; background: var(--line);
}

/* plan cards on the paywall */
.choice.plan {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 4px 12px;
  padding: 17px 18px;
}
.choice.plan b { font-size: 16.5px; font-weight: 600; }
.choice.plan .price {
  font-size: 21px; font-weight: 650; color: var(--accent);
  font-variant-numeric: tabular-nums; grid-row: 1 / span 2;
  grid-column: 2; align-self: center;
}
.choice.plan .sub { grid-column: 1; margin-top: 0; }
.choice.plan:active { background: var(--surface-2); }

/* sign-in form */
label.faint { display: block; margin-bottom: 2px; }
input.search[inputmode=numeric] {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
}

code {
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 6px; padding: 1px 6px; font-size: 13px;
}

.setting .btn.slim { flex: none; }

/* ============================================================
   Brand palette, taken from the logo: yellow field, red ring,
   navy wordmark. Navy carries primary actions, red carries
   highlights and active state.
   ============================================================ */

:root {
  --brand: #FFCF31;
  --brand-ink: #1B2A6B;
  --brand-red: #D8342A;
  --brand-orange: #E8873D;
  --accent: #1B2A6B;
  --accent-soft: #eef0fa;
}


nav.tabs a.on { color: var(--brand-red); }
.streak { color: var(--brand-red); background: #fff3d6; border-color: #f0e2b8; }

/* ---------- dashboard home ---------- */

.dash-head { display: flex; align-items: center; gap: 13px; padding: 16px 0 14px; }
.dash-head .logo-mark { width: 46px; height: 46px; }
.dash-head .t { flex: 1; min-width: 0; }
.dash-head .t b { display: block; font-size: 16.5px; font-weight: 700; letter-spacing: -0.01em; }
.dash-head .t span { font-size: 12.5px; color: var(--ink-faint); }

/* The daily fact: a quiet full-width line under the header, above everything
   that asks anything of you. */
.fact { font-size: 12.5px; line-height: 1.45; color: var(--ink-faint); margin: 0 0 12px; }
.fact b { color: var(--ink-dim); font-weight: 700; }
.fact b::after { content: ' · '; color: var(--ink-faint); font-weight: 400; }

.sec-head {
  display: flex; align-items: baseline; gap: 8px;
  font-size: 11.5px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
  color: var(--ink-faint); margin: 20px 0 9px;
}
.sec-head:first-of-type { margin-top: 4px; }
.sec-head span {
  margin-left: auto; font-size: 11px; letter-spacing: 0; text-transform: none;
  font-weight: 600; color: var(--ink-faint); font-variant-numeric: tabular-nums;
}

.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 13px; position: relative; text-align: left; min-height: 96px;
}
.tile .e { font-size: 23px; display: block; margin-bottom: 6px; line-height: 1; }
.tile b { font-size: 13.5px; font-weight: 650; display: block; line-height: 1.25; }
.tile span { font-size: 11.5px; color: var(--ink-faint); }
.tile .bar { margin-top: 7px; }
.tile .bar > i { background: var(--brand-orange); }
/* A finished topic turns green. The bar is the only thing on the tile that
   says how far along you are, and a full in-progress bar reads as unfinished rather
   than as an achievement — the same shape meaning "nearly there" and "done"
   depending on a width you have to measure by eye. */
.tile .bar.done > i { background: var(--good); }
.tile.lock { opacity: .6; }
.tile .pill-pro {
  position: absolute; top: 10px; right: 10px; font-size: 9.5px; font-weight: 800;
  background: #fff3d0; color: #9a7413; border-radius: 999px; padding: 2px 7px; letter-spacing: .04em;
}
.tile:active { background: var(--surface-2); }

.dash-foot { text-align: center; margin: 20px 0 4px; }

/* ---------- update banner ---------- */

.update-bar {
  position: fixed; left: 12px; right: 12px; bottom: 70px; z-index: 40;
  background: var(--brand-ink); color: #fff; border-radius: 12px;
  padding: 12px 14px; display: flex; align-items: center; gap: 12px;
  font-size: 13.5px; box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.update-bar button {
  margin-left: auto; background: var(--brand); color: var(--brand-ink);
  border: none; border-radius: 8px; padding: 7px 13px; font-weight: 700; font-size: 13px;
}

/* ---------- expandable list row ----------
   Tap plays it and opens the rest: the Hindi hook, the literal reading, the
   speed control. One row open at a time. */
.pb-item.open { background: var(--surface-2); border-radius: 12px; }
.pb-item.open .pb-head { padding-left: 12px; padding-right: 12px; }
.pb-more { padding: 2px 12px 12px; }
.pb-more .hi, .pb-more .lit { font-size: 13px; color: var(--ink-dim); margin-bottom: 6px; }
/* A cognate is good news — "you already know this one" — so it reads as a note
   rather than as another translation. */
.pb-more .hi.same { color: var(--accent); }
/* In a list row the Devanagari trails the romanisation on the same line: it is
   the same word said twice, not a second field. */
/* The two spellings share the top line — the same word written twice, one in
   letters the reader sounds out and one in letters they already read. The
   meaning keeps the line below to itself. */
.pb-main .t .l1 { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; }
.pb-main .t .l1 b { display: inline; }
.pb-main .t .dev { font-size: 15px; color: var(--accent); font-weight: 500; }
/* The meaning line carries both languages, so a row stands on its own without
   being opened. */
.pb-main .t .him { font-style: normal; color: var(--ink-faint); }
.pb-more .btn.slim { width: 100%; }

/* The "what does this mean?" card deliberately shows no word. Without a label
   it is a blank box, which reads as a failure rather than as the exercise. */
.listen-card { text-align: center; }
.listen-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 62px; cursor: pointer;
  background: var(--accent-soft); border: 1px solid var(--line);
  border-radius: 14px; color: var(--brand-ink); font-size: 17px; font-weight: 700;
}
.listen-btn .ico { font-size: 26px; }
.listen-btn:active { background: var(--surface-2); }
.listen-hint { font-size: 12.5px; color: var(--ink-faint); margin: 8px 0 2px; }

/* ---------- donate ---------- */
.donate-row { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; margin-bottom: 8px; }
.donate-amt { display: block; text-align: center; text-decoration: none; }
#donate-sheet .btn { width: 100%; }
/* A quiet secondary action: offered, never pressed upon. */
.linky {
  display: block; width: 100%; margin: 14px 0 0; padding: 6px;
  background: none; border: 0; cursor: pointer;
  font-size: 13.5px; color: var(--ink-faint);
  text-decoration: underline; text-underline-offset: 3px;
}
.linky:active { color: var(--ink); }

/* Amount chips: the choice is visible rather than hidden in a default. */
.donate-step { margin: 16px 0 6px; font-weight: 700; color: var(--ink-dim); }
.chip {
  background: var(--surface); border: 1px solid var(--line); color: var(--ink);
  border-radius: 999px; padding: 10px 6px; font-size: 14px; font-weight: 600;
  min-height: 42px; cursor: pointer;
}
.chip.on { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.donate-app { display: block; text-align: center; text-decoration: none; margin-bottom: 8px; }

/* ---------- feedback ---------- */
.foot-links { display: flex; flex-direction: column; gap: 2px; }
.fb-q { border: 0; padding: 0; margin: 0 0 18px; }
.fb-q legend { font-size: 14px; font-weight: 650; color: var(--ink); padding: 0 0 8px; }
.fb-scale { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; }
/* The whole chip is the target, not a 20px circle — this is read by people
   with older eyes and larger thumbs. */
.fb-dot input { position: absolute; opacity: 0; pointer-events: none; }
.fb-dot span {
  display: block; text-align: center; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 13px 0; font-size: 16px; font-weight: 650; color: var(--ink);
}
.fb-dot input:checked + span {
  background: var(--accent); color: var(--on-accent); border-color: var(--accent);
}
.fb-dot input:focus-visible + span { outline: 2px solid var(--ring); outline-offset: 2px; }
.fb-ends {
  display: flex; justify-content: space-between;
  font-size: 11.5px; color: var(--ink-faint); margin-top: 6px;
}
#fb-text {
  width: 100%; background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; padding: 12px 14px; font: inherit; font-size: 15px;
  color: var(--ink); resize: vertical;
}
#fb-send { width: 100%; }

/* ---------- analytics (owner only) ---------- */
.astats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.astat {
  background: var(--surface); border: 1px solid var(--line); border-radius: 13px;
  padding: 12px 8px; text-align: center;
}
.astat b {
  display: block; font-size: 20px; font-weight: 800; color: var(--brand-ink);
  font-variant-numeric: tabular-nums; line-height: 1.15;
}
.astat span { font-size: 11px; color: var(--ink-faint); line-height: 1.3; display: block; margin-top: 3px; }
:root[data-theme="dark"] .astat b { color: var(--accent); }

.alist { list-style: none; margin: 0 0 8px; padding: 0; }
.alist li {
  display: flex; align-items: center; gap: 12px;
  border-bottom: 1px solid var(--line); padding: 11px 2px;
}
.at { flex: 1; min-width: 0; }
.at b { display: block; font-size: 15px; font-weight: 650; }
.at span { font-size: 12.5px; color: var(--ink-faint); }
.an { flex: none; text-align: right; font-size: 13.5px; font-weight: 700; }
.an span { display: block; font-size: 11px; font-weight: 400; color: var(--ink-faint); }

.afb {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; padding: 12px 14px; margin-bottom: 8px;
}
.afb-h { font-size: 11.5px; color: var(--ink-faint); }
.afb-s { font-size: 12.5px; color: var(--ink-dim); margin-top: 3px; }
.afb p { margin: 6px 0 0; font-size: 14.5px; }

/* Five tabs only for the owner. Labels tighten rather than truncate — a tab
   reading "Setti…" looks broken, and this bar is the one thing always on screen. */
nav.tabs.five a { font-size: 10px; }
nav.tabs.five a .i { font-size: 17px; }

/* ---------- topic flow (module 1 / topic 1.1) ---------- */

/* Six segments, each labelled — filled behind you, orange where you are,
   grey ahead. The label under each one is what makes "which step" legible
   without a "2/6" to decode; the colour is what makes "how far" legible
   without reading any of them. */
.step-bar { display: flex; gap: 4px; margin: -2px 0 16px; }
.step-bar .seg {
  flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.step-bar i {
  display: block; width: 100%; height: 4px; border-radius: 2px; background: var(--surface-2);
}
.step-bar i.done { background: var(--good); }
.step-bar i.now { background: var(--brand-orange); }
.step-bar span {
  font-size: 8.5px; color: var(--ink-faint); text-align: center; line-height: 1.15;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}
.step-bar span.done { color: var(--good); }
.step-bar span.now { color: var(--brand-orange); font-weight: 700; }
/* Which step you are ON, said separately from whether it is finished — on a
   fully green lesson the bars alone cannot answer "where am I". */
.step-bar .seg.at span { color: var(--brand-orange); font-weight: 800; }
.step-bar .seg.at span::before { content: '▾'; display: block; line-height: 1; font-size: 9px; }

.gate-hint { text-align: center; margin: 10px 0 0; }

/* Two people talking, above the lesson overview. */
.lesson-art { display: block; width: 168px; max-width: 70%; height: auto; margin: 0 auto 4px; }

/* A turn the learner owes before they may see it: a task card, not a
   covered-up answer. */
.bubble.you.try { background: var(--surface); border-style: dashed; border-color: var(--brand-orange); }
.try-say { margin: 2px 0 6px; font-size: 12.5px; color: var(--ink-faint); }
.try-en { margin: 0 0 12px; font-size: 18px; font-weight: 650; color: var(--ink); }
.try-reveal { width: 100%; }

/* Three controls per option now (hear, hear-slow, choose), so the two audio
   buttons give up width to keep the answer itself readable. */
.choice-wrap .hear { width: 44px; font-size: 17px; }
.choice .l1 { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; }
.choice .l1 .dev { font-size: 15px; color: var(--accent); font-weight: 500; }

.qprev { width: auto; margin: 0 0 10px; }

.lesson-hero { text-align: center; padding: 6px 0 0; }
.lesson-hero .e { font-size: 40px; display: block; margin-bottom: 10px; }
.lesson-points {
  text-align: left; background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 16px; margin-top: 18px;
}
.lesson-points b { font-size: 14.5px; }
.lesson-points ul { margin: 10px 0 0; padding-left: 18px; }
.lesson-points li { font-size: 14px; color: var(--ink-dim); margin-bottom: 6px; }

/* A slim fill under the quiz's existing "N/total" counter — reuses the same
   fill colour as a topic tile's own progress bar. */
.qbar { height: 4px; background: var(--surface-2); border-radius: 2px; overflow: hidden; }
.qbar > i { display: block; height: 100%; background: var(--brand-orange); border-radius: 2px; transition: width .3s; }

.pat.try-it { border-left-color: var(--good); }

/* Alternating turns. `them` is always visible; `you` starts blurred behind a
   reveal overlay so the learner tries the line before checking it. */
.convo { display: flex; flex-direction: column; gap: 10px; }
.bubble {
  position: relative; border-radius: 14px; padding: 10px 12px;
  border: 1px solid var(--line); background: var(--surface);
}
.bubble.them { margin-right: 15%; }
.bubble.you { margin-left: 15%; background: var(--accent-soft); }
.bubble .who {
  display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--ink-faint); margin-bottom: 2px;
}
.bubble-row { display: flex; align-items: center; gap: 6px; }
.bubble .pb-main { padding: 3px 2px; flex: 1; min-width: 0; }
.bubble .convo-tick { flex: none; }
.bubble.blank .preview { font-size: 13px; color: var(--ink-dim); margin: 8px 0 10px; min-height: 1em; }
.bubble .pb-main.ref { opacity: .8; }

/* ---------- sounds first ---------- */
.snd-tiles { grid-template-columns: 1fr 1fr; }
.snd-tile { min-height: 84px; }
.snd-t-letter {
  display: block; font-size: 28px; line-height: 1; margin-bottom: 6px;
  color: var(--brand-ink); font-weight: 700;
}
:root[data-theme="dark"] .snd-t-letter { color: var(--accent); }
.snd-tile.done { border-color: var(--good); }
.snd-tile .pill.done { position: absolute; top: 10px; right: 10px; }

.snd-hero { text-align: center; padding: 6px 0 4px; }
.snd-letter {
  font-size: 76px; line-height: 1.05; color: var(--brand-ink); font-weight: 700;
}
:root[data-theme="dark"] .snd-letter { color: var(--accent); }
.snd-hindi { font-size: 15px; color: var(--ink-dim); margin-top: 2px; }
.snd-hindi b { font-size: 19px; color: var(--ink); }
.snd-who { font-size: 14.5px; line-height: 1.5; margin: 10px 0 14px; }

/* The letters carrying the sound. Underlined as well as coloured, so it still
   reads when the colour does not — on a dim screen, or to a colour-blind eye. */
.rf {
  font-style: normal; color: var(--brand-red);
  text-decoration: underline; text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
:root[data-theme="dark"] .rf { color: #ff8a7a; }

/* Support and feedback, above the fold rather than below a list nobody
   finishes. A quiet row: two underlined links, no card, no colour. */
.give {
  display: flex; gap: 18px; justify-content: center;
  margin: -4px 0 16px;
}
.give .linky { width: auto; margin: 0; padding: 4px 0; }

/* End-of-page links. Quiet, centred, and genuinely at the end — this sat
   between the progress card and the first lesson once, which is the one place
   on the screen it had no business being. */
.give-end { margin: 22px 0 4px; }
.no-hit { text-align: center; padding: 24px 0 8px; }
.no-hit .linky { margin-top: 2px; }

/* Say-it-yourself pairs. No audio: a Kannada voice cannot read Devanagari, and
   the point is to hear the sound in your own mouth, in a word you already own. */
.aloud { padding: 14px 16px; }
.aloud-h { margin: 0 0 10px; font-size: 12.5px; color: var(--ink-faint); }
.aloud-row {
  display: flex; align-items: baseline; gap: 12px;
  padding: 7px 0; border-top: 1px solid var(--line);
}
.aloud-say { font-size: 19px; font-weight: 700; min-width: 54px; }
.aloud-hi { font-size: 20px; color: var(--brand-ink); min-width: 74px; }
:root[data-theme="dark"] .aloud-hi { color: var(--accent); }
.aloud-en { font-size: 12.5px; color: var(--ink-faint); flex: 1; }

/* The letter is a button: people tap the big glyph, so it had better do
   something. It plays the letter alone — the sound with nothing around it. */
button.snd-letter {
  background: none; border: 0; cursor: pointer; padding: 0;
  display: block; margin: 0 auto;
}
.snd-tap { font-size: 12px; color: var(--ink-faint); margin-top: 2px; }

/* The two letters alone, side by side — the one comparison the whole lesson is
   about, so they get equal weight and sit as a pair rather than a list. */
.pair-row { display: flex; gap: 10px; }
.pair-side {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 12px 6px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--card); cursor: pointer; font: inherit; text-align: center;
}
.pair-side:active { background: var(--line); }
.pair-letter { font-size: 40px; line-height: 1.1; color: var(--brand-ink); font-weight: 700; }
:root[data-theme="dark"] .pair-letter { color: var(--accent); }
.pair-ro { font-size: 16px; font-weight: 700; }
.pair-tag {
  font-size: 11px; letter-spacing: .04em; text-transform: uppercase;
  color: var(--ink-faint); margin-top: 3px;
}


/* The build id, top of the Learn screen. Quiet enough to ignore and specific
   enough to answer "did my change reach the phone?" without opening Settings. */
.buildline {
  margin: -6px 0 10px; font-size: 11px; color: var(--ink-faint);
  letter-spacing: .02em; text-align: right;
}
.buildline b { color: var(--accent); font-weight: 600; cursor: pointer; }


/* ---------- tutor ---------- */

/* A voice, not a banner: quiet, indented like speech, and never occupying the
   space the lesson itself needs. Off entirely unless Settings turns it on. */
.tutor-say {
  display: flex; align-items: flex-start; gap: 9px;
  background: var(--accent-soft); border: 1px solid var(--line);
  border-radius: 14px; padding: 10px 13px; margin: 0 0 14px;
}
.tutor-face { font-size: 19px; line-height: 1.2; flex: none; }
.tutor-text { font-size: 14px; line-height: 1.4; color: var(--ink-dim); }
/* Finishing something is worth a warmer colour than a running remark. */
.tutor-say.step, .tutor-say.done {
  background: color-mix(in srgb, var(--good) 12%, var(--surface));
  border-color: color-mix(in srgb, var(--good) 35%, var(--line));
}
.tutor-say.done .tutor-text { font-weight: 650; color: var(--ink); }
.tutor-say.wrong {
  background: var(--surface-2);
}

/* ---------- bilingual instructions ---------- */

/* English above, Hindi under it, so a reader who needs the Hindi is not
   reading past an English sentence to find it. The two are separate elements
   rather than one string so a Hindi-only mode can hide the English outright. */
.c-hi { display: block; margin-top: 2px; }
/* Inside a button both lines sit centred, the Hindi a touch smaller — the
   button is one action, not two. */
.btn .c-hi { font-size: .88em; opacity: .85; }
.gate-hint .c-hi, .faint .c-hi { color: var(--ink-faint); }
.try-hi { display: block; font-size: .8em; color: var(--ink-dim); margin-top: 3px; font-weight: 500; }
.listen-hint .c-hi, .counter .c-hi { display: block; }

/* The letters are tappable too — say so, and tick them like every other row. */
.heard-mark { display: block; font-size: 12px; margin-top: 4px; line-height: 1; }
button.snd-letter .heard-mark { font-size: 14px; margin-top: 2px; }
/* An option that cannot be chosen yet, because its recording is unplayed. */
.snd-choice:disabled { opacity: .45; }
.choice-wrap .snd-choice { text-align: center; color: var(--ink-faint); }
.choice-wrap .snd-choice.ready { color: var(--ink); font-weight: 600; }

/* Where you are and who is talking. A conversation only teaches if it is
   clear who says these words to whom. */
.scene {
  background: var(--surface); border: 1px solid var(--line);
  border-left: 3px solid var(--brand); border-radius: 12px;
  padding: 11px 13px; margin: 0 0 12px;
}
.scene-k {
  display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink-faint); margin-bottom: 3px;
}
.scene p { margin: 0; font-size: 14.5px; line-height: 1.45; color: var(--ink); }

/* Where one small exchange ends and the next begins. */
.beat { display: flex; align-items: center; gap: 10px; margin: 18px 2px 10px; }
.beat:first-child { margin-top: 2px; }
.beat::before, .beat::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.beat span {
  font-size: 10.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: var(--ink-faint); text-align: center;
}
.beat .c-hi { display: block; text-transform: none; letter-spacing: 0; font-weight: 600; }

/* ---------- opposite pairs ---------- */

/* The pair is the unit of teaching, so it is the unit on screen: two halves
   of one row, with the arrow between them saying what they are to each other. */
.opp-pair {
  display: flex; align-items: stretch; gap: 8px; margin-bottom: 9px;
}
.opp-half {
  flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 13px;
  padding: 11px 12px; text-align: left; cursor: pointer;
}
.opp-half:active { background: var(--surface-2); }
.opp-half.done { border-color: color-mix(in srgb, var(--good) 40%, var(--line)); }
.opp-ro { font-size: 16px; font-weight: 650; line-height: 1.2; }
.opp-en { font-size: 12.5px; color: var(--ink-dim); }
.opp-hi { font-size: 12.5px; color: var(--ink-faint); }
.opp-half .heard-mark { margin-top: 4px; }
.opp-half.done .heard-mark { color: var(--good); }
.opp-vs {
  flex: none; align-self: center; font-size: 15px; color: var(--ink-faint);
}

/* Age band chips on the setup screen. */
.band-row { display: flex; flex-wrap: wrap; gap: 7px; margin: 4px 0 0; }
.band-row .chip { flex: 1 1 30%; min-width: 88px; padding: 10px 8px; font-size: 13.5px; }
.band-row .chip .c-hi { display: block; font-size: .85em; opacity: .8; }
