/* EMIADA browser practice.
   Matches the iOS app: cool neutral ground, white surfaces, accent #0369A1.
   One expressive device: the other person speaks in a serif "voice", set
   large while it is their current line; your words stay in the UI sans. */

:root {
  color-scheme: light;
  --ground: #edf1f3;
  --surface: #ffffff;
  --ink: #13202b;
  --muted: #4b5a66;
  --rule: #d2dae0;
  --tide: #0369a1;
  --tide-deep: #024f7a;
  --tide-wash: #e2eef6;
  --on-tide: #ffffff;
  --moss: #047857;
  --amber: #a94f08;
  --danger: #b42318;
  --focus: #0369a1;
  --shadow: 0 1px 0 rgba(19, 32, 43, 0.04), 0 8px 24px -16px rgba(19, 32, 43, 0.28);

  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --voice: "Iowan Old Style", "Charter", "Bitstream Charter", "Palatino Linotype", "Book Antiqua", Georgia, "Noto Serif", "Songti SC", "Noto Serif CJK SC", serif;

  --gutter: 16px;
  --column: 680px;
  --radius-control: 14px;
  --radius-panel: 20px;

  font-family: var(--sans);
  font-size: 100%;
  line-height: 1.5;
  color: var(--ink);
  background: var(--ground);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --ground: #0e1820;
    --surface: #16232d;
    --ink: #e6edf2;
    --muted: #a3b2be;
    --rule: #2b3a46;
    --tide: #5cb8ea;
    --tide-deep: #8fd0f3;
    --tide-wash: #173447;
    --on-tide: #06263a;
    --moss: #4cc9a0;
    --amber: #f0a35a;
    --danger: #ff8a7a;
    --focus: #8fd0f3;
    --shadow: 0 1px 0 rgba(0, 0, 0, 0.3), 0 10px 28px -18px rgba(0, 0, 0, 0.8);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 72px; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--ground);
  color: var(--ink);
}
h1, h2, h3, p, ul, ol, dl, dd, blockquote, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--tide); text-underline-offset: 3px; }
button, input, textarea { font: inherit; color: inherit; }
button, a, summary, label { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
[tabindex="-1"]:focus { outline: none; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--gutter); top: -60px; z-index: 30;
  padding: 10px 14px; border-radius: 10px;
  background: var(--ink); color: var(--ground); font-weight: 650; text-decoration: none;
}
.skip-link:focus { top: 10px; }

/* ---------- top bar ---------- */

.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 56px;
  padding: 0 max(var(--gutter), env(safe-area-inset-left)) 0 max(var(--gutter), env(safe-area-inset-left));
  background: color-mix(in srgb, var(--ground) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--rule) 70%, transparent);
}
.wordmark {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink);
  font-size: 0.86rem; font-weight: 800; letter-spacing: 0.18em;
  text-decoration: none;
  padding: 8px 0;
}
/* The app icon tile from the iOS header. */
.brand-tile {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--tide); color: var(--on-tide);
}
.brand-tile .icon { width: 18px; height: 18px; }
.topnav { display: flex; align-items: center; gap: 6px; }
.nav-link, .lang-link, .pilot-badge {
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 40px; padding: 0 12px;
  border-radius: 999px;
  color: var(--ink); font-size: 0.9rem; font-weight: 600; text-decoration: none;
}
.nav-link:hover, .lang-link:hover { background: color-mix(in srgb, var(--rule) 55%, transparent); }
.lang-link { font-variant-numeric: tabular-nums; letter-spacing: 0.04em; color: var(--muted); }
.pilot-badge {
  background: var(--tide-wash); color: var(--tide-deep);
  font-variant-numeric: tabular-nums;
}
.pilot-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--moss); flex: none; }

/* Track switch: its own row under the wordmark on phones, inline when wider. */
.topbar { flex-wrap: wrap; }
.track-switch { order: 3; flex: 1 0 100%; padding-bottom: 8px; }
.track-switch[hidden] { display: none; }
.segmented {
  display: flex; padding: 3px; gap: 3px;
  border: 1px solid var(--rule); border-radius: 999px;
  background: var(--surface);
}
.segment {
  flex: 1 1 0; min-width: 0; min-height: 38px;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 0 12px; border: 0; border-radius: 999px;
  background: transparent; color: var(--muted);
  font: inherit; font-size: 0.86rem; font-weight: 650; cursor: pointer;
}
.segment span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.segment .icon { width: 16px; height: 16px; flex: none; }
.segment[aria-pressed="true"] { background: var(--ink); color: var(--ground); }
.segment:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* Track chooser on the start screen. */
.tracks { border: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.tracks legend { padding: 0; font-weight: 700; font-size: 1.05rem; }
.track-options { display: grid; gap: 10px; margin-top: 8px; }
.track-option { position: relative; }
.track-option input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.track-card {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 18px; min-height: 88px;
  border: 1px solid var(--rule); border-radius: var(--radius-panel);
  background: var(--surface); cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.track-icon {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 44px; height: 44px; border-radius: 13px;
  background: var(--tide-wash); color: var(--tide-deep);
}
.track-icon .icon { width: 22px; height: 22px; }
.track-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.track-title { font-size: 1.15rem; font-weight: 750; color: var(--ink); }
.track-desc { color: var(--muted); }
.track-option input:checked + .track-card { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.track-option input:checked + .track-card .track-icon { background: var(--ink); color: var(--ground); }
.track-option input:focus-visible + .track-card { outline: 3px solid var(--focus); outline-offset: 3px; }
button.track-card {
  width: 100%; align-items: center; text-align: left;
  font: inherit; color: inherit;
}
button.track-card > .icon { margin-left: auto; color: var(--muted); }
button.track-card:hover { border-color: var(--muted); }
button.track-card[aria-pressed="true"] { border-color: var(--tide); box-shadow: inset 0 0 0 1px var(--tide); }
button.track-card[aria-pressed="true"] .track-icon { background: var(--tide); color: var(--on-tide); }
button.track-card[aria-pressed="true"] > .icon { color: var(--tide); }
button.track-card:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

/* ---------- layout ---------- */

.view {
  flex: 1;
  width: 100%;
  padding: 28px var(--gutter) 56px;
  outline: none;
}
.screen { max-width: var(--column); margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.view[data-route="talk"] { padding-top: 0; padding-bottom: 0; }

h1 {
  font-size: clamp(1.9rem, 6.4vw, 2.75rem);
  line-height: 1.1;
  font-weight: 750;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h2 { font-size: 1.12rem; line-height: 1.3; font-weight: 700; }
h3 { font-size: 0.95rem; line-height: 1.35; font-weight: 650; }
.lede { color: var(--muted); font-size: 1.08rem; line-height: 1.6; max-width: 62ch; }
.muted { color: var(--muted); }
.hint { color: var(--muted); font-size: 0.9rem; }
.center { text-align: center; }
.eyebrow { color: var(--tide); font-size: 0.92rem; font-weight: 650; }
.loading, .empty { color: var(--muted); padding: 32px 0; }

/* ---------- buttons ---------- */

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 20px;
  border: 1px solid transparent; border-radius: var(--radius-control);
  font-size: 1rem; font-weight: 650; line-height: 1.2; text-align: center; text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}
.button:disabled { cursor: not-allowed; opacity: 0.5; }
.button.wide { width: 100%; }
.button.primary { background: var(--tide); color: var(--on-tide); }
.button.primary:not(:disabled):hover { background: var(--tide-deep); }
.button.secondary { background: var(--surface); color: var(--ink); border-color: var(--rule); }
.button.secondary:not(:disabled):hover { border-color: var(--muted); }
.button.danger { background: var(--danger); color: #fff; }
.button.danger-quiet { background: transparent; color: var(--danger); min-height: 44px; }
.button.danger-quiet:not(:disabled):hover { background: color-mix(in srgb, var(--danger) 9%, transparent); }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; }
.link-button {
  border: 0; background: none; padding: 6px 0; min-height: 36px;
  color: var(--tide); font-weight: 650; text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.link-button.quiet { color: var(--muted); }
.chip {
  min-height: 38px; padding: 0 14px;
  border: 1px solid var(--rule); border-radius: 999px; background: var(--surface);
  font-size: 0.88rem; font-weight: 600; cursor: pointer;
}
.chip:hover { border-color: var(--muted); }

.spinner {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- notices and errors ---------- */

.notice {
  padding: 12px 16px; border-radius: var(--radius-control);
  background: color-mix(in srgb, var(--moss) 12%, var(--surface));
  color: var(--ink); border: 1px solid color-mix(in srgb, var(--moss) 35%, transparent);
}
.alert {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px; border-radius: var(--radius-control);
  background: color-mix(in srgb, var(--amber) 10%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--amber) 40%, transparent);
}
.alert .icon { color: var(--amber); margin-top: 2px; }
.alert-actions { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 4px; }
.field-error { color: var(--danger); font-size: 0.9rem; }

/* ---------- start ---------- */

.start { gap: 28px; padding-top: clamp(8px, 4vw, 40px); }
.start-intro { display: flex; flex-direction: column; gap: 14px; }
.start h1 { font-size: clamp(2.1rem, 8vw, 3.4rem); }
.languages { border: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.languages legend { padding: 0; font-weight: 700; font-size: 1.05rem; }
.language-options { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.language-option { position: relative; }
.language-option input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.language-option span {
  display: inline-flex; align-items: center; min-height: 46px; padding: 0 18px;
  border: 1px solid var(--rule); border-radius: 999px; background: var(--surface);
  font-weight: 600; cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease;
}
.language-option input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--ground); }
.language-option input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 3px; }

.pilot {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-panel);
}
.pilot > summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 56px; padding: 0 20px; font-weight: 650;
}
.pilot > summary::-webkit-details-marker { display: none; }
.pilot > summary::after {
  content: ""; width: 9px; height: 9px; flex: none;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translateY(-3px); transition: transform 160ms ease;
}
.pilot[open] > summary::after { transform: rotate(225deg) translate(-2px, 0); }
.pilot-body, .pilot.joined { padding: 4px 20px 22px; display: flex; flex-direction: column; gap: 14px; }
.pilot.joined { padding-top: 20px; }
.pilot-points { display: flex; flex-direction: column; gap: 10px; color: var(--muted); font-size: 0.95rem; }
.pilot-points li { padding-left: 18px; position: relative; }
.pilot-points li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--tide);
}
.pilot-form { display: flex; flex-direction: column; gap: 8px; padding-top: 6px; border-top: 1px solid var(--rule); }
.pilot-form .field { margin-top: 10px; }
.field-label { font-weight: 650; font-size: 0.95rem; }
.code-input {
  width: 100%; max-width: 280px; min-height: 50px; padding: 0 14px;
  border: 1px solid var(--rule); border-radius: 12px; background: var(--ground);
  font-size: 1.15rem; font-weight: 650; letter-spacing: 0.12em; text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}
.code-input[aria-invalid="true"] { border-color: var(--danger); }
.code-input:focus-visible { outline-offset: 1px; }
.consent { display: flex; align-items: center; gap: 12px; min-height: 48px; margin-top: 6px; cursor: pointer; font-weight: 600; }
.consent input { width: 22px; height: 22px; accent-color: var(--tide); flex: none; margin: 0; }
.pilot-form .button { align-self: flex-start; margin-top: 6px; }
.pilot-code-display .code {
  display: inline-block; padding: 6px 14px; border-radius: 10px;
  background: var(--tide-wash); color: var(--tide-deep);
  font-size: 1.4rem; font-weight: 750; letter-spacing: 0.14em;
}
.pilot.joined .button { align-self: flex-start; }

/* ---------- welcome and sign-in ---------- */

.welcome-actions { display: flex; flex-direction: column; gap: 10px; }
.welcome-actions .button.primary .icon:last-child { margin-left: -2px; }
.button.quiet-secondary {
  background: transparent; color: var(--ink); border-color: var(--rule); min-height: 46px;
}
.button.quiet-secondary:hover { background: var(--surface); }
.account-line {
  display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 12px 16px; border-radius: var(--radius-control);
  background: var(--surface); border: 1px solid var(--rule);
  font-weight: 600; overflow-wrap: anywhere;
}
.loop {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px;
  padding: 16px; border-radius: var(--radius-panel);
  background: var(--surface); border: 1px solid var(--rule);
}
.loop-step { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-weight: 650; font-size: 0.92rem; }
.loop-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 13px;
  background: var(--tide-wash); color: var(--tide-deep);
}
.signin-form { display: flex; flex-direction: column; gap: 10px; }
.text-input {
  width: 100%; min-height: 52px; padding: 0 16px;
  border: 1px solid var(--rule); border-radius: var(--radius-control); background: var(--surface);
  font-size: 1.08rem;
}
.text-input[aria-invalid="true"] { border-color: var(--danger); }
.text-input:focus-visible { outline-offset: 1px; }
.signin .button.wide { margin-top: 4px; }
.sent-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 60px; height: 60px; border-radius: 18px;
  background: var(--tide-wash); color: var(--tide-deep);
}
.sent-icon .icon { width: 30px; height: 30px; }
.sent .lede { overflow-wrap: anywhere; }
.code-form {
  padding: 18px 20px; border-radius: var(--radius-panel);
  background: var(--surface); border: 1px solid var(--rule);
}
.code-input.otp { max-width: 220px; letter-spacing: 0.35em; font-size: 1.4rem; text-transform: none; }
.code-form .button { align-self: flex-start; }

/* Signed-in state in the header. */
.account-menu { position: relative; }
.account-chip {
  list-style: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 0 12px 0 4px; border-radius: 999px;
  border: 1px solid var(--rule); background: var(--surface);
  font-size: 0.88rem; font-weight: 600;
}
.account-chip::-webkit-details-marker { display: none; }
.account-avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--tide); color: var(--on-tide); font-weight: 750;
}
.account-email { max-width: 18ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-pop {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 25;
  width: min(300px, calc(100vw - 2 * var(--gutter)));
  display: flex; flex-direction: column; gap: 6px;
  padding: 16px; border-radius: var(--radius-control);
  background: var(--surface); border: 1px solid var(--rule); box-shadow: var(--shadow);
}
.account-address { font-weight: 650; overflow-wrap: anywhere; margin-bottom: 6px; }
@media (max-width: 520px) {
  .account-email { display: none; }
  .account-chip { padding-right: 4px; }
}

/* ---------- catalog ---------- */

.catalog { gap: 18px; }
.resume {
  padding: 18px 20px; border-radius: var(--radius-panel);
  background: var(--tide-wash); display: flex; flex-direction: column; gap: 6px;
}
.resume h2 { font-size: 1rem; color: var(--tide-deep); }
.resume-scenario { font-weight: 650; font-size: 1.1rem; }
.resume .button-row { margin-top: 8px; }
.pack { margin-top: 14px; display: flex; flex-direction: column; gap: 12px; }
.pack-head { display: flex; flex-direction: column; gap: 2px; padding: 0 4px; }
.pack-head h2 { font-size: 1.4rem; letter-spacing: -0.01em; }
.pack-role { font-family: var(--voice); font-size: 1.12rem; color: var(--muted); font-style: italic; }
.scenario-list {
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-panel);
  overflow: hidden; box-shadow: var(--shadow);
}
.scenario-list li + li { border-top: 1px solid var(--rule); }
.scenario {
  display: flex; gap: 14px; align-items: center; justify-content: space-between;
  padding: 18px 18px 18px 20px; color: var(--ink); text-decoration: none;
  transition: background-color 160ms ease;
}
.scenario:hover { background: color-mix(in srgb, var(--tide-wash) 55%, var(--surface)); }
.scenario:focus-visible { outline-offset: -3px; border-radius: 0; }
.scenario-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.scenario-title { font-weight: 700; font-size: 1.08rem; line-height: 1.3; }
.scenario-with { color: var(--tide-deep); font-size: 0.9rem; font-weight: 600; }
.scenario-summary { color: var(--muted); font-size: 0.95rem; line-height: 1.45; }
.scenario-meta { color: var(--muted); font-size: 0.85rem; font-variant-numeric: tabular-nums; margin-top: 2px; }
.scenario > .icon { color: var(--muted); }
.pack-note { color: var(--muted); font-size: 0.85rem; padding: 0 4px; }

/* ---------- briefing ---------- */

.back-link {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 4px;
  min-height: 40px; margin-left: -6px; padding-right: 8px;
  color: var(--muted); font-weight: 600; text-decoration: none;
}
.back-link:hover { color: var(--ink); }
.briefing .eyebrow { margin-top: 2px; }
.briefing h1 { margin-top: -10px; }
.setting { color: var(--muted); }
.roles {
  display: grid; gap: 0;
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-panel);
}
.roles > div { padding: 16px 20px; display: flex; flex-direction: column; gap: 3px; }
.roles > div + div { border-top: 1px solid var(--rule); }
.roles dt, .context-item h3 { color: var(--muted); font-size: 0.85rem; font-weight: 650; }
.roles dd { font-weight: 550; }
.brief-block { display: flex; flex-direction: column; gap: 8px; padding: 0 4px; }
.brief-block h3 { margin-top: 10px; }
.objective { padding: 20px; background: var(--surface); border-radius: var(--radius-panel); border: 1px solid var(--rule); }
.objective-text { font-size: 1.15rem; font-weight: 650; line-height: 1.4; }
.signals { display: flex; flex-direction: column; gap: 8px; }
.signals li { position: relative; padding-left: 26px; color: var(--muted); }
.signals li::before {
  content: ""; position: absolute; left: 2px; top: 0.3em;
  width: 13px; height: 7px; border-left: 2px solid var(--moss); border-bottom: 2px solid var(--moss);
  transform: rotate(-45deg);
}
.opening { display: flex; flex-direction: column; gap: 10px; padding: 8px 4px; }

/* The persona's voice: serif, generous, with a tide rule. */
.voice, .line.persona .words {
  font-family: var(--voice);
  border-left: 3px solid var(--tide);
  padding: 2px 0 2px 18px;
}
.voice p { font-size: clamp(1.35rem, 4.6vw, 1.75rem); line-height: 1.35; letter-spacing: -0.005em; }
.voice footer { margin-top: 8px; font-family: var(--sans); color: var(--muted); font-size: 0.9rem; font-weight: 600; }
.pilot-note {
  display: flex; align-items: center; gap: 8px;
  color: var(--tide-deep); font-size: 0.92rem; font-weight: 600;
}
.pilot-note::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--moss); flex: none; }

/* ---------- conversation ---------- */

.talk { max-width: 1120px; gap: 0; }
.stage { display: flex; flex-direction: column; min-height: calc(100vh - 56px); min-height: calc(100dvh - 56px); }
.talk-head {
  position: sticky; top: 56px; z-index: 10;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; align-items: center;
  grid-template-areas: "title title" "meter tools";
  padding: 14px 0 12px;
  background: var(--ground);
  border-bottom: 1px solid var(--rule);
}
.talk-title { min-width: 0; grid-area: title; }
.talk-tools { grid-area: tools; }
.talk-head h1 { font-size: 1.05rem; font-weight: 700; letter-spacing: 0; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.talk-persona { color: var(--muted); font-size: 0.85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.talk-tools { display: flex; gap: 6px; }
.talk-tools .chip { min-height: 36px; padding: 0 12px; }
.talk-tools .voice-toggle { display: inline-flex; align-items: center; justify-content: center; width: 36px; padding: 0; color: var(--muted); }
.voice-toggle[aria-pressed="true"] { color: var(--tide); border-color: color-mix(in srgb, var(--tide) 45%, var(--rule)); }
.voice-toggle .icon { width: 18px; height: 18px; }
.turn-meter { grid-area: meter; display: flex; align-items: center; min-width: 0; }
/* Progress runs along the header's bottom edge. */
.turn-meter .meter { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; border-radius: 0; background: transparent; }
.turn-label { color: var(--muted); font-size: 0.85rem; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.meter { position: relative; flex: 1; height: 4px; border-radius: 4px; background: var(--rule); overflow: hidden; display: block; }
.meter-fill { position: absolute; inset: 0 auto 0 0; background: var(--tide); border-radius: inherit; transition: width 300ms ease; }

.context {
  display: none;
  flex-direction: column; gap: 14px;
  margin: 12px 0 0; padding: 18px 20px;
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-panel);
}
.context.open { display: flex; }
.context h2 { font-size: 1rem; }
.context-item { display: flex; flex-direction: column; gap: 4px; }
.context-item p { font-size: 0.95rem; }
.context .objective-text { font-size: 1rem; }
.context .signals li { font-size: 0.92rem; }

.transcript { flex: 1; display: flex; flex-direction: column; gap: 22px; padding: 24px 0 28px; }
.scene-note p {
  color: var(--muted); font-size: 0.92rem;
  padding: 12px 16px; border-radius: var(--radius-control);
  background: color-mix(in srgb, var(--rule) 35%, transparent);
}
.line { display: flex; flex-direction: column; gap: 6px; max-width: 62ch; }
.speaker { font-size: 0.82rem; font-weight: 700; color: var(--muted); }
.line.persona .speaker { color: var(--tide-deep); }
.line.persona .words p { font-size: 1.12rem; line-height: 1.5; }
.line.persona.current .words p { font-size: clamp(1.3rem, 4.4vw, 1.6rem); line-height: 1.38; }
/* Listen again / Tap to listen, aligned with the persona's words. */
.voice-controls { padding-left: 21px; }
.voice-line { display: inline-flex; align-items: center; gap: 6px; font-size: 0.88rem; text-decoration: none; }
.voice-line:hover { text-decoration: underline; }
.voice-line:disabled { color: var(--muted); cursor: default; text-decoration: none; }
.voice-line .icon { width: 18px; height: 18px; }
.voice-line .spinner { width: 14px; height: 14px; }
.line.user { align-self: flex-end; align-items: flex-end; max-width: min(56ch, 88%); }
.line.user .words {
  padding: 12px 16px; border-radius: 18px 18px 6px 18px;
  background: var(--tide-wash); line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere;
}
.line.arrived .words { animation: arrive 420ms ease-out both; }
@keyframes arrive { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.typing { display: inline-flex; gap: 5px; padding: 10px 0 10px 21px; border-left: 3px solid var(--tide); }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--tide); opacity: 0.35; animation: pulse 1.2s ease-in-out infinite; }
.typing span:nth-child(2) { animation-delay: 0.2s; }
.typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes pulse { 50% { opacity: 1; } }

.composer, .done {
  position: sticky; bottom: 0; z-index: 5;
  display: flex; flex-direction: column; gap: 8px;
  margin: 0 calc(var(--gutter) * -1);
  padding: 14px var(--gutter) max(14px, env(safe-area-inset-bottom));
  background: var(--surface);
  border-top: 1px solid var(--rule);
  box-shadow: 0 -12px 24px -20px rgba(19, 32, 43, 0.35);
}
.composer textarea {
  width: 100%; min-height: 84px; max-height: 40vh; resize: vertical;
  padding: 12px 14px; border: 1px solid var(--rule); border-radius: 12px;
  background: var(--ground); font-size: 1rem; line-height: 1.5;
}
.composer textarea:focus-visible { outline-offset: 1px; }
.composer textarea[readonly] { opacity: 0.7; }
.composer-status { min-height: 1.4em; }
.composer-status:empty { display: none; }
.composer-actions { display: flex; gap: 10px; }
.composer-actions .send { flex: 1; }
.button.mic { background: var(--ground); border-color: var(--rule); color: var(--ink); padding: 12px 18px; }
.button.mic.listening { background: var(--danger); border-color: var(--danger); color: #fff; }
.button.mic.listening .icon { fill: currentColor; stroke: none; }
.fine-print { color: var(--muted); font-size: 0.78rem; line-height: 1.45; }
.fine-print:empty { display: none; }
.done { gap: 10px; }
.done h2 { font-size: 1.1rem; }
.done p { color: var(--muted); }

/* ---------- review ---------- */

.review { gap: 18px; }
.review .headline { color: var(--tide-deep); font-weight: 650; }
.length { color: var(--tide-deep); font-size: 0.92rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.moments, .skills, .modes, .next { display: flex; flex-direction: column; gap: 12px; margin-top: 10px; }
.moment-list { display: flex; flex-direction: column; gap: 12px; }
.moment {
  padding: 18px 20px; border-radius: var(--radius-panel);
  background: var(--surface); border: 1px solid var(--rule);
  display: flex; flex-direction: column; gap: 10px;
  border-left: 4px solid var(--amber);
}
.moment-strength { border-left-color: var(--moss); }
.moment-turning_point { border-left-color: var(--tide); }
.moment-head { display: flex; justify-content: space-between; gap: 12px; font-size: 0.85rem; }
.moment-type { font-weight: 700; color: var(--amber); }
.moment-strength .moment-type { color: var(--moss); }
.moment-turning_point .moment-type { color: var(--tide-deep); }
.moment-turn { color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.evidence p { font-size: 1.05rem; line-height: 1.5; quotes: "“" "”"; }
.evidence p::before { content: open-quote; }
.evidence p::after { content: close-quote; }
:lang(ru) .evidence p, :lang(fr) .evidence p { quotes: "«" "»"; }
.alternative { padding-top: 10px; border-top: 1px solid var(--rule); display: flex; flex-direction: column; gap: 4px; }
.alternative h3 { color: var(--tide-deep); font-size: 0.85rem; }

.review-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.metric { padding: 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--rule); display: flex; flex-direction: column; gap: 2px; }
.metric-label { color: var(--muted); font-size: 0.85rem; }
.metric-value { font-size: 1.5rem; font-weight: 750; font-variant-numeric: tabular-nums; }
.metric-direction { color: var(--tide-deep); font-size: 0.85rem; font-weight: 650; }
.skill-list { display: flex; flex-direction: column; gap: 14px; }
.skill { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; }
.skill-name { font-weight: 600; font-size: 0.95rem; }
.skill-value { font-weight: 700; color: var(--tide-deep); font-variant-numeric: tabular-nums; }
.skill .meter { grid-column: 1 / -1; height: 6px; }
.evidence-note { padding: 14px 16px; border-radius: var(--radius-control); background: color-mix(in srgb, var(--rule) 30%, transparent); }
.mode-list { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-panel); overflow: hidden; }
.mode { display: flex; justify-content: space-between; gap: 12px; padding: 13px 18px; }
.mode + .mode { border-top: 1px solid var(--rule); }
.mode-name { font-weight: 600; }
.mode.strongest .mode-name { color: var(--tide-deep); }
.mode-count { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.disclosure {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 52px; padding: 0 4px; border: 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  background: none; font-weight: 650; cursor: pointer; text-align: left;
}
.disclosure .icon { color: var(--tide); transform: rotate(90deg); transition: transform 160ms ease; }
.disclosure[aria-expanded="true"] .icon { transform: rotate(-90deg); }
.response-list { display: flex; flex-direction: column; }
.response-list li { padding: 14px 4px; display: flex; flex-direction: column; gap: 6px; }
.response-list li + li { border-top: 1px solid var(--rule); }
.response-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.mode-tag { font-weight: 650; color: var(--tide-deep); }
.mode-tag.low { color: var(--muted); }
.next { padding: 20px; background: var(--tide-wash); border-radius: var(--radius-panel); }
.next h2 { color: var(--tide-deep); font-size: 0.95rem; }
.next p { font-size: 1.08rem; font-weight: 600; line-height: 1.45; }

/* ---------- dialog ---------- */

.dialog {
  width: min(440px, calc(100vw - 32px));
  padding: 24px; border: 0; border-radius: var(--radius-panel);
  background: var(--surface); color: var(--ink);
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.5);
}
.dialog::backdrop { background: rgba(9, 18, 26, 0.45); }
.dialog h2 { font-size: 1.2rem; margin-bottom: 8px; }
.dialog p { color: var(--muted); }
.dialog-actions { display: flex; flex-wrap: wrap-reverse; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.dialog-actions .button { flex: 1 1 140px; }

/* ---------- footer ---------- */

.site-footer {
  padding: 24px var(--gutter) max(28px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--rule);
  color: var(--muted); font-size: 0.82rem; line-height: 1.5;
  display: flex; flex-direction: column; gap: 8px; align-items: center; text-align: center;
}
.site-footer p { max-width: 64ch; }
.footer-links { display: flex; gap: 18px; }
.footer-links a { color: var(--muted); }
body:has(.view[data-route="talk"]) .site-footer { display: none; }

/* ---------- wider screens ---------- */

@media (min-width: 720px) {
  :root { --gutter: 28px; }
  .track-switch { order: 0; flex: 0 1 380px; padding-bottom: 0; }
  .track-options { grid-template-columns: 1fr 1fr; }
  .view { padding-top: 44px; }
  .review-actions { flex-direction: row; flex-wrap: wrap; }
  .review-actions .alert { flex-basis: 100%; }
  .review-actions .button.primary { flex: 1 1 auto; }
  .roles { grid-template-columns: 1fr 1fr; }
  .roles > div + div { border-top: 0; border-left: 1px solid var(--rule); }
}

@media (min-width: 1000px) {
  .talk { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 40px; align-items: start; }
  .context {
    display: flex; position: sticky; top: 76px;
    max-height: calc(100vh - 96px); overflow-y: auto; margin-top: 20px;
  }
  .context-toggle { display: none; }
  .talk-head { grid-template-areas: "title tools" "meter meter"; }
  .composer, .done {
    margin: 0; padding: 16px 20px 20px;
    border: 1px solid var(--rule); border-bottom: 0;
    border-radius: var(--radius-panel) var(--radius-panel) 0 0;
  }
  .line.persona.current .words p { font-size: 1.65rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .spinner { animation: none; border-right-color: currentColor; opacity: 0.6; }
}

@media (forced-colors: active) {
  .meter-fill { background: Highlight; }
  .button.primary { border-color: ButtonText; }
  .segment[aria-pressed="true"], .track-option input:checked + .track-card { outline: 2px solid Highlight; }
}

/* ---------- feedback about a practice ---------- */

.share-feedback { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; padding-top: 18px; border-top: 1px solid var(--rule); }
.share-feedback .button { align-self: flex-start; }
.share-dialog { width: min(520px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto; }
.share-dialog p + p { margin-top: 8px; }
.dialog .share-private { color: var(--ink); font-weight: 600; }
.share-label { display: block; margin-top: 18px; margin-bottom: 6px; }
.share-note {
  width: 100%; min-height: 110px; max-height: 40vh; resize: vertical;
  padding: 12px 14px; border: 1px solid var(--rule); border-radius: 12px;
  background: var(--ground); font-size: 1rem; line-height: 1.5;
}
.dialog .share-hint { display: flex; justify-content: space-between; gap: 12px; margin-top: 4px; font-size: 0.85rem; font-variant-numeric: tabular-nums; }
.share-ratings { border: 0; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.share-ratings legend { padding: 0; margin-bottom: 8px; }
.share-rating { position: relative; }
.share-rating input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.share-rating span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  border: 1px solid var(--rule); border-radius: 999px; background: var(--surface);
  font-weight: 600; cursor: pointer;
}
.share-rating input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--ground); }
.share-rating input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 3px; }
.dialog .field-error { margin-top: 12px; color: var(--danger); }

/* ---------- goal quiz and personal plan ----------
   The quiz is one question per screen with large native choices. The plan is
   a route: numbered stops on a rail, scene titles in the persona's serif voice
   (most titles are what the other person says). */

/* Entry points on the track chooser and the catalog. */
.plan-offer {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 18px 20px; border-radius: var(--radius-panel);
  background: var(--tide-wash);
}
.plan-offer-icon {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 44px; height: 44px; border-radius: 13px;
  background: var(--surface); color: var(--tide-deep);
}
.plan-offer-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.plan-offer h2 { color: var(--tide-deep); }
.plan-offer p { color: var(--ink); }
.plan-offer-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-top: 8px; }
.plan-offer-actions .button { min-height: 46px; }

.plan-entry-link {
  display: flex; align-items: center; gap: 14px;
  min-height: 64px; padding: 12px 18px;
  border: 1px dashed color-mix(in srgb, var(--muted) 55%, var(--rule)); border-radius: var(--radius-panel);
  color: var(--ink); text-decoration: none;
  transition: border-color 160ms ease, background-color 160ms ease;
}
.plan-entry-link:hover { border-style: solid; border-color: var(--tide); background: color-mix(in srgb, var(--tide-wash) 45%, transparent); }
.plan-entry-link > .icon:first-child { color: var(--tide); }
.plan-entry-link > .icon:last-child { margin-left: auto; color: var(--muted); }
.plan-entry-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.plan-entry-lead { color: var(--muted); font-size: 0.9rem; }
.plan-entry-action { font-weight: 700; }
.plan-entry.compact .plan-entry-link { min-height: 56px; }

/* One question per screen. */
.quiz { gap: 18px; }
.quiz-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.quiz-progress { display: inline-flex; align-items: center; gap: 10px; }
.quiz-count { color: var(--muted); font-size: 0.88rem; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.quiz-ticks { display: inline-flex; gap: 4px; }
.quiz-tick { width: 18px; height: 6px; border-radius: 3px; background: var(--rule); transition: width 240ms ease, background-color 240ms ease; }
.quiz-tick.on { background: var(--tide); }
.quiz-tick.current { width: 30px; }
.quiz-form { display: flex; flex-direction: column; gap: 14px; }
.quiz-set { border: 0; padding: 0; margin: 0; min-width: 0; }
.quiz-legend { padding: 0; float: left; width: 100%; }
.quiz-legend + * { clear: both; }
.quiz h1 { font-size: clamp(1.85rem, 7.4vw, 2.7rem); }
.quiz-hint { padding-top: 10px; }
.quiz-choices { display: grid; gap: 8px; margin-top: 18px; }
.quiz-choice {
  position: relative;
  display: flex; align-items: center; gap: 14px;
  min-height: 62px; padding: 14px 18px;
  border: 1px solid var(--rule); border-radius: var(--radius-control);
  background: var(--surface);
  font-size: 1.04rem; font-weight: 600; line-height: 1.3;
  cursor: pointer;
  transition: border-color 140ms ease, background-color 140ms ease, box-shadow 140ms ease;
}
.quiz-choice:hover { border-color: var(--muted); }
.quiz-input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.quiz-mark {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 26px; height: 26px; border-radius: 8px;
  border: 2px solid color-mix(in srgb, var(--muted) 70%, var(--rule));
  color: transparent; background: var(--surface);
  transition: background-color 140ms ease, border-color 140ms ease, transform 140ms ease;
}
.quiz-choice.is-single .quiz-mark { border-radius: 50%; }
.quiz-mark .icon { width: 16px; height: 16px; stroke-width: 3; }
.quiz-input:checked + .quiz-mark { background: var(--tide); border-color: var(--tide); color: var(--on-tide); animation: mark-pop 200ms ease-out; }
.quiz-choice:has(.quiz-input:checked) {
  border-color: var(--tide); box-shadow: inset 0 0 0 1px var(--tide);
  background: color-mix(in srgb, var(--tide-wash) 70%, var(--surface));
}
.quiz-choice:has(.quiz-input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }
@keyframes mark-pop { 50% { transform: scale(1.14); } }
.quiz-own { display: flex; flex-direction: column; gap: 6px; padding: 12px 4px 4px 4px; }
.quiz-actions {
  position: sticky; bottom: 0; z-index: 4;
  margin: 0 calc(var(--gutter) * -1); padding: 14px var(--gutter) max(16px, env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--ground) 72%, color-mix(in srgb, var(--ground) 0%, transparent));
}
.quiz-actions .icon { margin-right: -4px; }

/* The plan: a route of numbered stops on a rail. */
.plan-result { gap: 18px; }
.plan-result h1 { font-size: clamp(2.1rem, 8vw, 3.2rem); }
.route { display: flex; flex-direction: column; margin-top: 8px; }
.stop { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 0 16px; padding-bottom: 28px; }
.stop:last-child { padding-bottom: 0; }
.stop:not(:last-child)::before {
  content: ""; position: absolute; left: 21px; top: 48px; bottom: 4px; width: 2px;
  background: repeating-linear-gradient(to bottom, var(--rule) 0 6px, transparent 6px 11px);
}
.stop.is-done:not(:last-child)::before { background: var(--moss); }
.stop-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid var(--rule); background: var(--surface); color: var(--muted);
  font-size: 1.05rem; font-weight: 750; font-variant-numeric: tabular-nums;
}
.stop.is-next .stop-mark { border-color: var(--tide); background: var(--tide); color: var(--on-tide); box-shadow: 0 0 0 6px var(--tide-wash); }
.stop.is-done .stop-mark { border-color: var(--moss); background: var(--moss); color: var(--surface); }
.stop-mark .icon { width: 20px; height: 20px; stroke-width: 2.6; }
.stop-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding-top: 2px; }
.stop-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; color: var(--muted); font-size: 0.84rem; font-weight: 650; }
.stop-track { display: inline-flex; align-items: center; gap: 5px; }
.stop-track .icon { width: 15px; height: 15px; }
.stop-done { color: var(--moss); }
.stop-title {
  align-self: flex-start;
  font-family: var(--voice); font-size: clamp(1.4rem, 5.4vw, 1.75rem); line-height: 1.22; letter-spacing: -0.005em;
  color: var(--ink); text-decoration: none; text-wrap: balance;
}
.stop-title:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.stop.is-done .stop-title { color: var(--muted); }
.stop-with { color: var(--tide-deep); font-size: 0.9rem; font-weight: 600; }
.stop-why { display: flex; flex-direction: column; gap: 3px; margin-top: 6px; max-width: 54ch; color: var(--ink); }
.stop-because { color: var(--muted); font-size: 0.88rem; }
.route.reveal .stop { animation: arrive 460ms ease-out both; animation-delay: calc(var(--i) * 140ms); }
.plan-own {
  padding: 14px 16px; border-radius: var(--radius-control);
  background: color-mix(in srgb, var(--rule) 35%, transparent); color: var(--muted);
  overflow-wrap: anywhere;
}
.plan-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.plan-links { display: flex; flex-wrap: wrap; gap: 4px 22px; }

/* Compact route in the catalog card. */
.plan-card {
  display: flex; flex-direction: column; gap: 16px;
  padding: 18px 20px 20px; border-radius: var(--radius-panel);
  background: var(--surface); border: 1px solid var(--rule); box-shadow: var(--shadow);
}
.plan-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.plan-card-head h2 { font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.plan-card .button { align-self: stretch; }
.route.compact { margin-top: 0; }
.route.compact .stop { grid-template-columns: 30px minmax(0, 1fr); gap: 0 12px; padding-bottom: 14px; }
.route.compact .stop:last-child { padding-bottom: 0; }
.route.compact .stop:not(:last-child)::before { left: 14px; top: 34px; bottom: 2px; }
.route.compact .stop-mark { width: 30px; height: 30px; font-size: 0.88rem; }
.route.compact .stop.is-next .stop-mark { box-shadow: 0 0 0 4px var(--tide-wash); }
.route.compact .stop-mark .icon { width: 16px; height: 16px; }
.route.compact .stop-body { padding-top: 0; gap: 2px; }
.route.compact .stop-meta { font-size: 0.78rem; }
.route.compact .stop-title { font-size: 1.12rem; }
.route.compact .stop.is-next .stop-title { font-weight: 600; }

/* The next plan scene inside the catalog list. */
.scenario.is-next { background: color-mix(in srgb, var(--tide-wash) 60%, var(--surface)); box-shadow: inset 4px 0 0 var(--tide); }
.scenario-tag {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 10px 2px 8px; margin-bottom: 2px; border-radius: 999px;
  background: var(--surface); color: var(--tide-deep); font-size: 0.8rem; font-weight: 700;
}
.scenario-tag .icon { width: 14px; height: 14px; }

@media (min-width: 720px) {
  .quiz-choices { gap: 10px; }
  .quiz-actions { margin: 0; padding-left: 0; padding-right: 0; }
  .plan-actions { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 14px 24px; }
  .plan-actions .button.wide { width: auto; min-width: 260px; }
}
@media (forced-colors: active) {
  .quiz-choice:has(.quiz-input:checked), .stop.is-next .stop-mark { outline: 2px solid Highlight; }
  .quiz-tick.on { background: Highlight; }
}
