/* Sayeh — shadowing practice. Colors follow the main site's night/day themes. */
:root {
  --font: "Vazirmatn", Tahoma, sans-serif;
  --en: "Segoe UI", "Inter", system-ui, -apple-system, sans-serif;
  --ipa: "Segoe UI", "Lucida Sans Unicode", "Noto Sans", "Arial Unicode MS", sans-serif;
  --radius: 18px;
  --ease: 180ms ease;
}
[data-theme="night"] {
  --bg: #101114;
  --surface: #16181d;
  --surface-2: #1c1f26;
  --sunken: #0d0e11;
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .16);
  --ink: #eef1f6;
  --ink-2: #c4cad6;
  --muted: #8d95a3;
  --faint: #4a505c;
  --accent: #9dd3ff;
  --accent-2: #b8a4ff;
  --accent-soft: rgba(157, 211, 255, .1);
  --btn-ink: #0b1320;
  --ok: #6ee7b7;
  --close: #fcd34d;
  --wrong: #fca5a5;
  --unclear: #93c5fd;
  --rec: #f05a78;
  --glow: rgba(140, 170, 255, .12);
  --shadow: 0 20px 60px rgba(0, 0, 0, .35);
}
[data-theme="day"] {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-2: #f0f3f8;
  --sunken: #e9edf4;
  --line: rgba(20, 30, 50, .09);
  --line-strong: rgba(20, 30, 50, .18);
  --ink: #141a24;
  --ink-2: #3a4352;
  --muted: #5b6474;
  --faint: #b5bcc8;
  --accent: #2f78c4;
  --accent-2: #7359d6;
  --accent-soft: rgba(47, 120, 196, .09);
  --btn-ink: #ffffff;
  --ok: #0f8f63;
  --close: #b7791f;
  --wrong: #d04545;
  --unclear: #2b74c9;
  --rec: #e0405f;
  --glow: rgba(80, 150, 230, .14);
  --shadow: 0 16px 40px rgba(30, 50, 90, .1);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: radial-gradient(800px 420px at 85% -120px, var(--glow), transparent 70%), var(--bg);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.75;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.en { font-family: var(--en); direction: ltr; unicode-bidi: isolate; }
.muted { color: var(--muted); }
h1, h2, h3 { line-height: 1.4; }

/* ---------- header ---------- */
.top {
  display: flex; align-items: center; gap: 18px;
  max-width: 1180px; margin: 0 auto; padding: 18px 20px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 21px; }
.logo {
  width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(90deg, var(--ink) 50%, var(--accent) 50%);
  box-shadow: 0 0 20px var(--glow);
}
.nav { display: flex; gap: 4px; }
.nav a { padding: 5px 14px; border-radius: 10px; color: var(--muted); font-size: 15px; transition: var(--ease); }
.nav a:hover { color: var(--ink); }
.nav a.on { color: var(--ink); background: var(--accent-soft); }
.top-end { margin-right: auto; display: flex; align-items: center; gap: 10px; }
.site-link { font-size: 14px; color: var(--muted); }
.site-link:hover { color: var(--ink); }
.pill { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); padding: 3px 12px; border: 1px solid var(--line); border-radius: 99px; }
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.pill.on::before { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.icon-btn {
  width: 36px; height: 36px; border-radius: 11px; border: 1px solid var(--line); background: var(--surface);
  cursor: pointer; display: grid; place-items: center; font-size: 16px; transition: var(--ease);
}
.icon-btn:hover, .icon-btn.on { border-color: var(--line-strong); background: var(--surface-2); }
main { max-width: 1180px; margin: 0 auto; padding: 0 20px 70px; }

/* ---------- common ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid var(--line); background: var(--surface-2); border-radius: 12px;
  padding: 8px 15px; cursor: pointer; transition: var(--ease); white-space: nowrap; font-size: 14.5px;
}
.btn:hover { border-color: var(--line-strong); }
.btn:disabled { opacity: .45; cursor: default; }
.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--btn-ink);
  border: 0; font-weight: 700; box-shadow: 0 8px 22px var(--glow);
}
.btn.primary:hover { filter: brightness(1.06); }
.btn.big { padding: 13px 30px; font-size: 17px; border-radius: 15px; min-width: 210px; }
.btn.ghost { background: transparent; }
.btn.rec { background: var(--rec); color: #fff; border: 0; }
.btn.next { border-color: var(--accent); color: var(--accent); background: transparent; font-weight: 600; }
.btn.next.hint { animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 50% { box-shadow: 0 0 0 5px var(--accent-soft); } }
.input {
  background: var(--sunken); border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; outline: none; transition: var(--ease);
}
.input:focus { border-color: var(--accent); }
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); max-width: calc(100% - 32px);
  background: var(--surface-2); border: 1px solid var(--line-strong); box-shadow: var(--shadow);
  padding: 10px 18px; border-radius: 12px; z-index: 20; font-size: 14.5px;
}
.bar { height: 6px; background: var(--sunken); border-radius: 9px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .4s; }
.empty { color: var(--muted); padding: 34px 20px; text-align: center; border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.spin { width: 13px; height: 13px; border-radius: 50%; border: 2px solid var(--line-strong); border-top-color: var(--accent); animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
kbd { background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 0 6px; font-family: var(--en); font-size: 11.5px; }

/* ---------- home ---------- */
.hero { padding: 36px 0 28px; max-width: 760px; }
.hero h1 { font-size: clamp(25px, 4vw, 38px); margin: 0 0 10px; font-weight: 800; }
.hero h1 em {
  font-style: normal; background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { color: var(--muted); margin: 0 0 22px; font-size: 16px; }
.new-form { display: flex; gap: 10px; }
.new-form .input { flex: 1; font-size: 15px; min-width: 0; }
.sources { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; align-items: center; }
.chip { font-size: 12.5px; padding: 2px 11px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); }
details.adv { margin-top: 16px; font-size: 14px; }
details.adv summary { cursor: pointer; color: var(--muted); width: max-content; }
details.adv summary:hover { color: var(--ink); }
.adv-body { margin-top: 12px; padding: 16px; display: grid; gap: 14px; }
.adv-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; color: var(--muted); }
.adv-row label { display: flex; gap: 8px; align-items: center; }
.adv-row .input { width: 100px; padding: 6px 10px; }
.adv-row .input.wide { width: 230px; }
.yt-box { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 14px; }
.yt-box .yt-text { flex: 1; min-width: 220px; display: flex; flex-direction: column; line-height: 1.6; }
.yt-box .yt-text .muted { font-size: 13px; }
.mode-note { padding: 12px 16px; margin-bottom: 16px; font-size: 14px; color: var(--ink-2); line-height: 1.9; }
.mode-note b { color: var(--ink); }
.mode-note.on { border-color: color-mix(in srgb, var(--ok) 45%, transparent); }
.file-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 12px; font-size: 13px; }
.file-btn { cursor: pointer; }
.hero.drop .new-form .input { border-color: var(--accent); background: var(--accent-soft); }

.steps { list-style: none; padding: 0; margin: 4px 0 40px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; counter-reset: st; }
.steps li { padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-size: 13.5px; color: var(--muted); counter-increment: st; }
.steps li b { display: flex; align-items: center; gap: 8px; color: var(--ink); font-size: 15px; margin-bottom: 2px; }
.steps li b::before {
  content: counter(st, persian); width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  font-size: 12px; background: var(--accent-soft); color: var(--accent);
}

.section-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.section-head h2 { font-size: 19px; margin: 0; }
.section-head .note { margin-right: auto; font-size: 12.5px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.lesson-card { padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; cursor: pointer; transition: var(--ease); }
.lesson-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.lesson-card h3 { margin: 0; font-size: 15.5px; font-weight: 600; overflow-wrap: anywhere; }
.lesson-card .meta { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 13px; gap: 8px; }
.lesson-card .via { display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; }
.lesson-card .err { color: var(--wrong); font-size: 13px; overflow-wrap: anywhere; }
.del { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 13px; padding: 0; }
.del:hover { color: var(--wrong); }

/* ---------- practice ---------- */
.practice-head { display: flex; align-items: center; gap: 12px; margin: 4px 0 14px; flex-wrap: wrap; }
.practice-head .back { font-size: 20px; }
.practice-head .title { flex: 1; min-width: 180px; }
.practice-head h1 { font-size: 17px; margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.practice-head .title .muted { font-size: 13px; }

.mode-switch { display: inline-flex; padding: 4px; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.mode-switch button { border: 0; background: none; cursor: pointer; padding: 6px 16px; border-radius: 10px; color: var(--muted); font-size: 14.5px; transition: var(--ease); }
.mode-switch button.on { background: var(--accent-soft); color: var(--accent); font-weight: 700; }

.settings-panel { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; padding: 12px 18px; margin-bottom: 14px; font-size: 14px; color: var(--muted); }
.settings-panel label { display: flex; gap: 8px; align-items: center; }
.settings-panel select { background: var(--sunken); border: 1px solid var(--line); border-radius: 9px; padding: 3px 8px; }
.settings-panel input[type=range] { accent-color: var(--accent); width: 140px; }
.settings-panel input[type=checkbox] { accent-color: var(--accent); width: 16px; height: 16px; }
.settings-panel #maxwv { color: var(--ink); min-width: 160px; }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.stage { padding: 22px 26px 24px; position: relative; overflow: hidden; }

.stepper { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.stepper li { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); padding: 0; }
.stepper li::before { content: ""; height: 4px; border-radius: 4px; background: var(--sunken); transition: background .3s; }
.stepper li.done::before { background: color-mix(in srgb, var(--accent) 45%, transparent); }
.stepper li.on::before { background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.stepper li.on { color: var(--ink); font-weight: 700; }
.stepper button { all: unset; cursor: pointer; text-align: center; }
.stepper button:disabled { cursor: default; }
.stepper button:not(:disabled):hover { color: var(--ink); }

.auto-bar { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 8px 14px; border-radius: 12px; background: var(--accent-soft); color: var(--ink-2); font-size: 14px; }
.auto-bar .timer { flex: 1; max-width: 160px; margin-right: auto; }
.auto-bar .timer i { transition: width linear; }

.sentence {
  min-height: 170px; display: flex; flex-wrap: wrap; align-content: center; justify-content: center;
  gap: 6px 12px; padding: 30px 4px 22px; font-size: clamp(23px, 3.3vw, 34px); font-weight: 600; text-align: center;
}
.sentence .w { position: relative; transition: color .12s; color: var(--ink-2); }
.sentence .w.on, .sentence .cw.on .w { color: var(--accent); }
.sentence .w.past { color: var(--ink); }
.sentence.karaoke .w, .sentence.karaoke .cw .w { color: var(--faint); }
.sentence.karaoke .w.past, .sentence.karaoke .cw.past .w { color: var(--ink); }
.sentence.karaoke .w.on, .sentence.karaoke .cw.on .w { color: var(--accent); }
.sentence .w.ok { color: var(--ok); }
.sentence .w.close { color: var(--close); }
.sentence .w.wrong { color: var(--wrong); }
.sentence .w.missed { color: var(--wrong); opacity: .55; text-decoration: line-through; }
.sentence .w.unclear { color: var(--unclear); text-decoration: underline dashed; text-underline-offset: 6px; }
.sentence .w .heard { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); font-size: 13px; font-weight: 400; color: var(--muted); white-space: nowrap; }
.sentence.fb-words { row-gap: 22px; }
.blank { display: inline-block; height: 12px; border-radius: 6px; background: var(--sunken); border: 1px solid var(--line); align-self: center; transition: background .12s, transform .12s; }
.blank.on { background: var(--accent); transform: scaleY(1.4); }
.blank.past { background: color-mix(in srgb, var(--accent-2) 40%, transparent); }

/* word blocks: stress dot, word, spoken IPA */
.sentence .cw { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; cursor: pointer; padding: 4px 5px 2px; border-radius: 12px; transition: background var(--ease); }
.sentence .cw:hover { background: var(--accent-soft); }
.sentence .cw.weak .w { font-weight: 400; font-size: .8em; }
.sentence .cw .ipa { font-size: 15px; font-weight: 400; color: var(--muted); font-family: var(--ipa); }
.sentence .cw .ipa b { color: var(--accent-2); }
.sentence .cw .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); margin-bottom: 4px; transition: transform .12s; }
.sentence .cw.strong .dot { width: 17px; height: 17px; background: var(--accent-2); }
.sentence .cw.on .dot { transform: scale(1.25); }
.sentence .cw.focus .w { text-decoration: underline 3px var(--accent); text-underline-offset: 8px; }
.sentence .lk { align-self: center; color: var(--accent); font-size: 26px; margin: 0 -6px; transform: translateY(-4px); }
.sentence .lk-flap, .sentence .lk-nt, .sentence .lk-reduce, .sentence .lk-yod { color: var(--close); }
.sentence .lk-stopt { color: var(--wrong); }
.sentence .gap { width: 4px; }

.status-line { text-align: center; color: var(--muted); font-size: 14px; min-height: 24px; display: flex; gap: 8px; justify-content: center; align-items: center; flex-wrap: wrap; }
.rec-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--rec); animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; align-items: center; margin-top: 14px; }
.step-nav { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.step-nav .spacer { flex: 1; }
.countdown { position: absolute; inset: 0; display: grid; place-items: center; font-size: 86px; font-weight: 800; background: color-mix(in srgb, var(--surface) 85%, transparent); color: var(--accent); pointer-events: none; }

.panel:not(:empty) { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 20px; }
.notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.notes li { background: var(--surface-2); border: 1px solid transparent; border-radius: 12px; padding: 9px 14px; font-size: 14.5px; line-height: 1.9; }
.notes li[data-play] { cursor: pointer; }
.notes li[data-play]:hover { border-color: var(--line-strong); }
.notes .tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 0 10px; border-radius: 99px; margin-left: 8px; background: var(--accent-soft); color: var(--accent); }
.notes .t-flap, .notes .t-nt, .notes .t-reduce, .notes .t-yod { background: color-mix(in srgb, var(--close) 16%, transparent); color: var(--close); }
.notes .t-stopt { background: color-mix(in srgb, var(--wrong) 16%, transparent); color: var(--wrong); }
.notes .play-hint { color: var(--muted); font-size: 11px; }
.ipa-inline { color: var(--accent-2); font-size: 14px; font-family: var(--ipa); }
.sound-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 14px 0 0; font-size: 13px; }
.sound-chips .chip { color: var(--ink-2); font-family: var(--en); }
.sound-chips .chip:hover, .sound-chips .chip.on { border-color: var(--accent); color: var(--accent); }

.melody { margin-top: 14px; background: var(--surface-2); border-radius: 14px; padding: 10px 14px 4px; }
.melody-head { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; font-size: 13px; }
.melody-head .muted { flex: 1; }
.mlegend { display: flex; gap: 10px; align-items: center; color: var(--muted); }
.mlegend i { display: inline-block; width: 16px; height: 4px; border-radius: 2px; margin-left: 4px; }
.mlegend i.o { background: var(--accent-2); }
.mlegend i.u { background: var(--close); }
.melody svg { width: 100%; height: auto; display: block; direction: ltr; }
.melody .po { fill: none; stroke: var(--accent-2); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.melody .pu { fill: none; stroke: var(--close); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.melody .gl { stroke: var(--line); stroke-width: 1; }
.melody .gl.strong { stroke: var(--line-strong); stroke-dasharray: 3 3; }
.melody .lbl { fill: var(--muted); font-size: 11px; font-family: var(--en); }
.melody .lbl.strong { fill: var(--ink); font-weight: 700; }

.fb { display: grid; grid-template-columns: 120px 1fr; gap: 22px; align-items: start; }
.ring { width: 112px; height: 112px; position: relative; }
.ring svg { transform: rotate(-90deg); }
.ring .track { stroke: var(--sunken); }
.ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 30px; }
.stats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.stat { background: var(--surface-2); border-radius: 10px; padding: 5px 12px; font-size: 13.5px; color: var(--muted); }
.stat b { color: var(--ink); }
.tips { margin: 0; padding: 0 18px 0 0; font-size: 14.5px; }
.tips li { margin-bottom: 5px; }
.heard-line { font-size: 13px; color: var(--muted); margin-top: 10px; }
.legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-top: 10px; }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-left: 4px; }

.side { padding: 12px; max-height: calc(100vh - 120px); overflow: auto; position: sticky; top: 16px; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.side-head { display: flex; justify-content: space-between; align-items: center; padding: 2px 6px 10px; font-size: 14px; }
.grow-info { font-size: 12.5px; color: var(--accent); padding: 0 6px 10px; display: flex; gap: 8px; align-items: center; }
.chunk-item { display: flex; gap: 10px; align-items: center; padding: 7px 8px; border-radius: 10px; cursor: pointer; font-size: 13.5px; border: 1px solid transparent; }
.chunk-item:hover { background: var(--surface-2); }
.chunk-item.cur { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.chunk-item .txt { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); text-align: left; }
.chunk-item .num { color: var(--muted); font-size: 12px; min-width: 20px; }
.badge { font-size: 12px; min-width: 32px; text-align: center; border-radius: 8px; padding: 0 6px; background: var(--surface-2); color: var(--muted); }
.badge.g { background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok); }
.badge.y { background: color-mix(in srgb, var(--close) 16%, transparent); color: var(--close); }
.badge.r { background: color-mix(in srgb, var(--wrong) 16%, transparent); color: var(--wrong); }
.kbd { font-size: 12px; color: var(--muted); text-align: center; margin-top: 14px; }

.processing { padding: 40px 24px; text-align: center; max-width: 560px; margin: 30px auto; }
.processing h2 { font-size: 18px; margin: 0 0 6px; overflow-wrap: anywhere; }
.processing .bar { max-width: 420px; margin: 18px auto; }

/* ---------- sounds ---------- */
.sounds-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.sound-card { padding: 16px 18px; display: flex; flex-direction: column; gap: 2px; transition: var(--ease); }
.sound-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.sipa { font-size: 34px; font-weight: 700; color: var(--accent-2); line-height: 1.3; font-family: var(--ipa); }
.sipa.big { font-size: 72px; min-width: 110px; text-align: center; }
.sound-card .count { font-size: 12px; color: var(--muted); margin-top: 6px; }
.sound-detail { display: flex; gap: 24px; padding: 24px; align-items: flex-start; margin-bottom: 26px; }
.sound-detail h1 { margin: 0; font-size: 22px; }
.sound-detail p { margin: 8px 0; }
.mistake { color: var(--wrong); }
.hits { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 10px; }
.hit { padding: 12px 16px; display: flex; flex-direction: column; gap: 4px; transition: var(--ease); }
.hit:hover { border-color: var(--accent); }
.hit .ctx { font-size: 16.5px; color: var(--ink-2); text-align: left; }
.hit .ctx b { color: var(--accent); }
.hit .src { font-size: 12px; }

@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .side { position: static; max-height: 340px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .fb { grid-template-columns: 1fr; justify-items: center; }
  .sound-detail { flex-direction: column; }
}
@media (max-width: 600px) {
  .top { padding: 14px 16px; gap: 10px; flex-wrap: wrap; }
  main { padding: 0 16px 60px; }
  .pill { display: none; }
  .new-form { flex-direction: column; }
  .steps { grid-template-columns: 1fr; }
  .stage { padding: 16px 14px 20px; }
  .stepper li { font-size: 11.5px; }
  .btn.big { min-width: 0; width: 100%; }
  .kbd { display: none; }
}
