@font-face { font-family: Inter; src: url(fonts/inter-cyrillic-wght-normal.woff2) format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Inter; src: url(fonts/inter-latin-ext-wght-normal.woff2) format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0; }
@font-face { font-family: Inter; src: url(fonts/inter-latin-wght-normal.woff2) format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122; }

:root {
  --bg: #fff; --surface: #fff; --soft: #f4f4f5; --line: #e4e4e7; --text: #111113; --muted: #63636b;
  --accent: #1f5eff; --on-accent: #fff; --primary: #111113; --on-primary: #fff; --rec: #d92d20;
  --radius: 14px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #000; --surface: #0e0e10; --soft: #17171a; --line: #2a2a2e; --text: #f5f5f6; --muted: #a1a1aa;
    --accent: #6b95ff; --on-accent: #000; --primary: #f5f5f6; --on-primary: #000; --rec: #ff6b5e; }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.5 Inter, system-ui, -apple-system, sans-serif; -webkit-font-smoothing: antialiased; }
button, textarea, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }

.bar { position: fixed; inset: 0 0 auto; height: 3px; background: var(--soft); z-index: 5; }
.bar-fill { height: 100%; width: 0; background: var(--accent); transition: width .3s ease; }

.page { min-height: 100dvh; max-width: 560px; margin: 0 auto; padding: 12px 20px 0; display: flex; flex-direction: column; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; color: var(--muted); font-size: 14px; }
.top-side { display: flex; align-items: center; gap: 4px; }
.link { min-height: 44px; padding: 0 8px; color: var(--muted); font-size: 14px; font-weight: 500; }
.link:first-child { margin-left: -8px; }
.body { flex: 1; padding: 20px 0 24px; animation: rise .22s ease; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }

h1 { font-size: 26px; line-height: 1.15; letter-spacing: -.025em; font-weight: 650; margin: 0 0 12px; }
.text { margin: 0 0 12px; }
.hint { margin: 0 0 12px; color: var(--muted); font-size: 15px; }

.q { padding: 16px 0; border-top: 1px solid var(--line); }
h2 { font-size: 16px; line-height: 1.3; font-weight: 600; margin: 0 0 4px; }
.q-text { margin: 0; font-size: 15px; line-height: 1.4; }
.q-hint { margin: 6px 0 0; color: var(--muted); font-size: 13px; line-height: 1.4; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.pill { min-height: 36px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); font-size: 14px; line-height: 1.25; text-align: left; transition: border-color .12s, background .12s; }
.pill.quiet { color: var(--muted); }
.pill[aria-pressed="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--surface)); color: var(--text); font-weight: 500; }
.own textarea { min-height: 140px; }

.speak { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 56px; border-radius: var(--radius); background: var(--accent); color: var(--on-accent); font-weight: 600; }
.speak svg { width: 22px; height: 22px; }
textarea { display: block; width: 100%; min-height: 104px; margin-top: 10px; padding: 14px 16px; resize: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); font-size: 17px; line-height: 1.45; }
textarea::placeholder { color: var(--muted); }
.note { margin: 10px 0 0; color: var(--muted); font-size: 14px; }
.note.warn { color: var(--rec); }

.rec { padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); }
.rec-row { display: flex; align-items: center; gap: 12px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--rec); animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.level { flex: 1; height: 6px; border-radius: 3px; background: var(--soft); overflow: hidden; }
.level i { display: block; height: 100%; width: 0; background: var(--rec); }
.time { font-variant-numeric: tabular-nums; font-size: 15px; }
.rec-actions { display: flex; gap: 8px; margin-top: 12px; }
.rec-actions .solid { flex: 1; }

.foot { position: sticky; bottom: 0; background: var(--bg); padding: 8px 0 calc(12px + env(safe-area-inset-bottom)); }
.solid { width: 100%; min-height: 54px; border-radius: var(--radius); background: var(--primary); color: var(--on-primary); font-weight: 600; }
.solid:disabled { opacity: .35; cursor: default; }
.ghost { min-height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; font-size: 15px; font-weight: 500; }
.status { min-height: 20px; text-align: center; color: var(--muted); font-size: 13px; margin: 6px 0 0; }

.foot.plain { position: static; }
.consent { margin: 0 0 10px; color: var(--muted); font-size: 13px; line-height: 1.45; }

.review { white-space: pre-wrap; font-size: 15px; }
.missing { list-style: none; margin: 16px 0 0; padding: 0; }
.missing button { width: 100%; min-height: 48px; padding: 10px 0; text-align: left; border-bottom: 1px solid var(--line); }

.sheet { width: 100%; max-width: 560px; max-height: 82dvh; margin: auto auto 0; padding: 16px 20px calc(16px + env(safe-area-inset-bottom)); border: 0; border-radius: 20px 20px 0 0; background: var(--surface); color: var(--text); }
.sheet::backdrop { background: rgb(0 0 0 / .4); }
.sheet-head { display: flex; justify-content: space-between; align-items: center; font-weight: 600; }
.sheet ul { list-style: none; margin: 8px 0 0; padding: 0; }
.sheet li button { display: flex; gap: 12px; align-items: center; width: 100%; min-height: 48px; padding: 10px 0; text-align: left; border-bottom: 1px solid var(--line); }
.sheet .n { flex: none; width: 34px; color: var(--muted); font-size: 14px; }
.sheet .state { flex: none; width: 8px; height: 8px; margin-left: auto; border-radius: 50%; background: var(--line); }
.sheet .state.done { background: var(--accent); }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
