/* Onest (SIL OFL 1.1, fonts/onest/OFL.txt) — the kit's face, served from va itself */
@font-face{font-family:"Onest";font-style:normal;font-display:swap;font-weight:400;src:url(/static/fonts/onest/onest-cyrillic-ext-400-normal.woff2) format("woff2");unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}
@font-face{font-family:"Onest";font-style:normal;font-display:swap;font-weight:400;src:url(/static/fonts/onest/onest-cyrillic-400-normal.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"Onest";font-style:normal;font-display:swap;font-weight:400;src:url(/static/fonts/onest/onest-latin-ext-400-normal.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Onest";font-style:normal;font-display:swap;font-weight:400;src:url(/static/fonts/onest/onest-latin-400-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Onest";font-style:normal;font-display:swap;font-weight:500;src:url(/static/fonts/onest/onest-cyrillic-ext-500-normal.woff2) format("woff2");unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}
@font-face{font-family:"Onest";font-style:normal;font-display:swap;font-weight:500;src:url(/static/fonts/onest/onest-cyrillic-500-normal.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"Onest";font-style:normal;font-display:swap;font-weight:500;src:url(/static/fonts/onest/onest-latin-ext-500-normal.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Onest";font-style:normal;font-display:swap;font-weight:500;src:url(/static/fonts/onest/onest-latin-500-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Onest";font-style:normal;font-display:swap;font-weight:600;src:url(/static/fonts/onest/onest-cyrillic-ext-600-normal.woff2) format("woff2");unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}
@font-face{font-family:"Onest";font-style:normal;font-display:swap;font-weight:600;src:url(/static/fonts/onest/onest-cyrillic-600-normal.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"Onest";font-style:normal;font-display:swap;font-weight:600;src:url(/static/fonts/onest/onest-latin-ext-600-normal.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Onest";font-style:normal;font-display:swap;font-weight:600;src:url(/static/fonts/onest/onest-latin-600-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Onest";font-style:normal;font-display:swap;font-weight:700;src:url(/static/fonts/onest/onest-cyrillic-ext-700-normal.woff2) format("woff2");unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}
@font-face{font-family:"Onest";font-style:normal;font-display:swap;font-weight:700;src:url(/static/fonts/onest/onest-cyrillic-700-normal.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"Onest";font-style:normal;font-display:swap;font-weight:700;src:url(/static/fonts/onest/onest-latin-ext-700-normal.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Onest";font-style:normal;font-display:swap;font-weight:700;src:url(/static/fonts/onest/onest-latin-700-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

/* va UI kit components (kit approved 2026-11-12, /pages/ui-kit-the-final-set). Every value is a
   --k-* token from kit-tokens.css (generated from tools/ui_kit/tokens.json); no colour is typed here.
   One element, one block. */

/* ================= 13 the ONE speak button (rules 9, 12, 14) ================= */
.k-speak{--s:var(--k-size-speak);flex:none;display:inline-flex;flex-direction:column;align-items:center;gap:8px;text-align:center;min-width:0;
  font-family:var(--k-font);-webkit-font-smoothing:antialiased;color:var(--k-text)}
.k-speak .sb{position:relative;overflow:hidden;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;
  width:var(--k-size-speak);height:var(--k-size-speak);max-width:100%;padding:0;margin:0;border:0;outline:0;
  border-radius:var(--k-r-round);background:var(--k-track);color:var(--k-text);font:inherit;cursor:pointer;
  -webkit-appearance:none;appearance:none;-webkit-tap-highlight-color:transparent}
.k-speak .sb:focus-visible{box-shadow:0 0 0 3px var(--k-mark)}
.k-speak .sb svg{display:block;width:28px;height:28px;flex:none}
/* idle: a circle — it makes sound happen; orange as the screen's main action… */
.k-speak.idle .sb{border-radius:50%;background:var(--k-accent);color:var(--k-on-accent)}
/* …quiet grey when another action is the main one (rule 14) */
.k-speak.idle.quiet .sb{background:var(--k-track);color:var(--k-text)}
/* Motion — ONE spec for web, iOS, Android: /opt/shared/ui-kit/motion-spec.md (Vitaly 2026-11-12: «make sure these new
   animated buttons are identical on both ios and android and web»). S = --s, the button's side (76 big, 48 small, 56 in the pill).
   §1 idle → recording: circle (50%) → square, radius 22% of S, same S, orange; 200 ms ease-in-out; the wave fades in. */
.k-speak.rec .sb{border-radius:22%;background:var(--k-accent);color:var(--k-on-accent);animation:k-pulse 1.4s cubic-bezier(.42,0,.58,1) infinite;transition:border-radius .2s cubic-bezier(.42,0,.58,1)}
/* §2 recording: the whole button pulses 1.00 → 1.07 → 1.00 every 1400 ms; 7 bars, on-accent, width .045·S, gap .035·S,
   centred, rounded caps — their heights come from speak.js (the mic's peak every 70 ms) */
.k-speak .k-lv{display:flex;align-items:center;justify-content:center;gap:calc(var(--s) * .035);height:100%;animation:k-in .2s cubic-bezier(.42,0,.58,1) both}
.k-speak .k-lv i{flex:none;width:calc(var(--s) * .045);height:calc(var(--s) * .12);border-radius:calc(var(--s) * .0225);background:currentColor}
@keyframes k-pulse{0%,100%{transform:scale(1)}50%{transform:scale(1.07)}}
@keyframes k-in{from{opacity:0}to{opacity:1}}
.k-speak .k-out{position:absolute;inset:0;display:grid;place-items:center;animation:k-out .2s cubic-bezier(.42,0,.58,1) both}
@keyframes k-out{from{opacity:1}to{opacity:0}}
/* §3 «Розпізнаю…»: the magnifying glass — 13 bars on the track-grey circle, drawn by speak.js; centre bars orange, the rest muted */
.k-speak .sb svg.k-lens{display:block;width:100%;height:100%}
.k-speak .k-lens rect{fill:var(--k-muted)}
.k-speak .k-lens rect.c{fill:var(--k-accent)}
/* §4 «Готово»: the tick draws itself, short leg first, 350 ms ease-out, then holds; icon .37·S; nothing at progress 0 */
.k-speak.done .sb{color:var(--k-text)}
.k-speak.done .sb svg{width:calc(var(--s) * .37);height:calc(var(--s) * .37)}
.k-speak .k-tick path{stroke-dasharray:1;stroke-dashoffset:0;animation:k-tick .35s cubic-bezier(0,0,.58,1) both}
@keyframes k-tick{from{stroke-dashoffset:1;visibility:hidden}to{stroke-dashoffset:0;visibility:visible}}
/* reduce motion: no pulse, no fade; the bars still follow the level; the lens stands still (speak.js); the tick shows whole */
@media (prefers-reduced-motion:reduce){.k-speak.rec .sb,.k-speak .k-lv,.k-speak .k-tick path{animation:none}.k-speak .k-out{display:none}.k-speak.rec .sb{transition:none}}
.k-speak.busy .sb{cursor:default}
/* send: the same circle once she has typed */
.k-speak.send .sb{background:var(--k-accent);color:var(--k-on-accent)}
/* small size: same shapes, colours, words */
.k-speak.sm{--s:var(--k-size-speak-sm);gap:4px;width:var(--k-size-speak-sm-width)}
.k-speak.sm .sb{width:var(--k-size-speak-sm);height:var(--k-size-speak-sm);gap:4px}
.k-speak.sm .sb svg{width:22px;height:22px}
/* the phrase field: a field plus the small speak button */
.k-say{display:flex;align-items:flex-start;gap:8px}
.k-say .k-say-in{flex:1;min-width:0;height:var(--k-size-field);border:0;outline:0;border-radius:var(--k-r-control);
  background:var(--k-fill);color:var(--k-text);padding:0 14px;font:inherit;font-family:var(--k-font);font-size:var(--k-fs-field);
  caret-color:var(--k-accent)}
.k-say .k-say-in::placeholder{color:var(--k-muted);opacity:1}
.k-say .k-say-in:focus{background:var(--k-track)}
/* locked — listen first (sp.lock): a dim grey mic; a tap only says «Спершу послухай» */
.k-speak.idle.locked .sb{background:var(--k-track);color:var(--k-mark);cursor:default}
/* her last take joined to the speak button in one pill (B-mode practice; kit fragment 26, rule 12): speak on the left,
   a round play on the right with only a time beside it — «Моя спроба» is the screen-reader label; grey and quiet until a take exists */
.k-combo{display:inline-flex;align-items:center;gap:14px;padding:12px 16px;border-radius:var(--k-r-card);background:var(--k-block)}
.k-combo .k-speak{--s:var(--k-size-speak-sm-width)}
.k-combo .k-speak .sb{width:var(--k-size-speak-sm-width);height:var(--k-size-speak-sm-width)}
.k-combo-div{align-self:stretch;width:1px;background:var(--k-line);margin:4px 0}
.k-take{display:flex;flex-direction:row;align-items:center;gap:10px;padding:0;margin:0;border:0;outline:0;background:none;
  font:inherit;font-family:var(--k-font);cursor:pointer;-webkit-appearance:none;appearance:none;-webkit-tap-highlight-color:transparent}
.k-take:disabled{cursor:default}
.k-take:focus-visible .pb{box-shadow:0 0 0 3px var(--k-track)}
.k-take .pb{display:grid;place-items:center;flex:none;width:var(--k-size-speak-sm-width);aspect-ratio:1;border-radius:var(--k-r-round);background:var(--k-track);color:var(--k-mark)}
.k-take .pb svg{width:24px;height:24px}
.k-take .tm{min-width:6em;font-size:13px;line-height:1.2;font-weight:var(--k-fw-semibold);color:var(--k-muted);white-space:nowrap;font-variant-numeric:tabular-nums}
.k-take.on .pb{background:var(--k-inv);color:var(--k-on-inv)}
.k-take.on .tm{color:var(--k-text)}
/* ================= segmented choice (kit rule 6: «chosen» = a white piece on the grey track) ================= */
.k-seg{display:flex;gap:2px;background:var(--k-track);border-radius:var(--k-r-seg);padding:3px;font-family:var(--k-font)}
.k-seg>*{flex:1;min-width:0;display:flex;align-items:center;justify-content:center;min-height:38px;padding:4px 8px;margin:0;border:0;
  border-radius:var(--k-r-seg-piece);background:none;color:var(--k-text);font:inherit;font-size:14px;font-weight:var(--k-fw-medium);
  line-height:1.2;text-align:center;cursor:pointer;-webkit-appearance:none;appearance:none;-webkit-tap-highlight-color:transparent}
.k-seg>.on{background:var(--k-piece);box-shadow:var(--k-shadow-piece);font-weight:var(--k-fw-semibold)}
.k-seg>*:focus-visible{outline:2px solid var(--k-mark);outline-offset:1px}

/* ================= page tabs (kit 06, rule 18): where she is = an orange line under the word ================= */
.k-tabs{display:flex;gap:20px;border-bottom:1px solid var(--k-line);font-family:var(--k-font)}
.k-tabs>*{position:relative;height:42px;display:flex;align-items:center;padding:0;margin:0;border:0;background:none;
  color:var(--k-muted);font:inherit;font-family:var(--k-font);font-size:15px;font-weight:var(--k-fw-medium);cursor:pointer;
  -webkit-appearance:none;appearance:none;-webkit-tap-highlight-color:transparent}
.k-tabs>.on{color:var(--k-text);font-weight:var(--k-fw-bold)}
.k-tabs>.on::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:3px;border-radius:2px;background:var(--k-accent)}
.k-tabs>*:focus-visible{outline:2px solid var(--k-mark);outline-offset:2px}

/* ================= 01 buttons (final.css §01, unscoped): soft rectangles, always filled; c560 uses them on the try-it pages ================= */
.k-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:44px;padding:0 18px;border:0;border-radius:var(--k-r-control);font:inherit;font-weight:600;font-size:15px;line-height:1;white-space:nowrap;text-decoration:none;cursor:pointer;background:var(--k-fill);color:var(--k-text)}
.k-btn.pri{background:var(--k-accent);color:var(--k-on-accent)}
.k-btn.dis,.k-btn[disabled]{color:var(--k-muted);opacity:.6;cursor:default}
.k-btn.wide{display:flex;width:100%}
