/* voice.css — стили экрана «Голосовая заметка» (#voice). Все классы с префиксом .vc- */

.vc-wrap{max-width:640px;margin:0 auto}
.vc-lead{color:var(--muted);font-size:16px;line-height:1.45;margin:-4px 0 14px}

/* ---------- Сцена с микрофоном ---------- */
.vc-stage{display:flex;flex-direction:column;align-items:center;text-align:center;padding:28px 16px 24px}
.vc-mic{width:96px;height:96px;border-radius:50%;border:0;background:var(--accent);color:#fff;display:grid;place-items:center;cursor:pointer;box-shadow:0 8px 22px rgba(29,92,153,.35);position:relative;flex:none;transition:transform .15s}
.vc-mic:active{transform:scale(.96)}
.vc-mic svg{width:44px;height:44px}
.vc-mic.rec{background:var(--red);box-shadow:0 8px 22px rgba(192,57,43,.35);animation:vc-pulse 1.4s ease-out infinite}
.vc-mic.rec::before,.vc-mic.rec::after{content:"";position:absolute;inset:-6px;border-radius:50%;border:2px solid rgba(192,57,43,.45);animation:vc-ring 1.4s ease-out infinite}
.vc-mic.rec::after{animation-delay:.7s}
@keyframes vc-pulse{0%{transform:scale(1)}30%{transform:scale(1.05)}100%{transform:scale(1)}}
@keyframes vc-ring{0%{transform:scale(1);opacity:.8}100%{transform:scale(1.55);opacity:0}}
.vc-tap{margin-top:14px;font-size:18px;font-weight:600}
/* «или напечатать» под микрофоном: мелко, но не меньше 44 px в высоту, чтобы попасть пальцем */
.vc-type{display:inline-flex;align-items:center;justify-content:center;min-height:44px;min-width:44px;margin-top:6px;padding:0 14px;border:0;background:transparent;color:var(--accent);font:inherit;font-size:15px;text-decoration:underline;text-underline-offset:3px;cursor:pointer;border-radius:var(--radius-s)}
.vc-type:active{background:var(--accent-soft)}

/* Жёлтая подсказка на шаге 1: браузер не дал распознать речь (код ошибки + «Напечатать заметку») */
.vc-hint{display:grid;grid-template-columns:auto minmax(0,1fr);gap:12px;align-items:start;padding:14px 16px}
.vc-hint-ic{width:40px;height:40px;border-radius:50%;background:#fff;color:var(--yellow);display:grid;place-items:center;flex:none}
.vc-hint-ic svg{width:22px;height:22px}
.vc-hint-b{min-width:0}
.vc-hint-b p{margin:0 0 6px;font-size:16px;line-height:1.45;color:var(--text)}
.vc-hint-ua{color:var(--muted);font-size:13px;line-height:1.35;margin-bottom:10px;overflow-wrap:anywhere}
.vc-hint-b .btn{background:#fff}
@media (max-width:419px){
  .vc-hint{grid-template-columns:minmax(0,1fr)}
  .vc-hint-ic{display:none}
}

/* Бегущая волна из полосок */
.vc-wave{display:flex;align-items:center;justify-content:center;gap:5px;height:40px;margin-top:18px}
.vc-wave i{display:block;width:6px;height:10px;border-radius:3px;background:var(--accent);animation:vc-bar .9s ease-in-out infinite}
.vc-wave i:nth-child(1){animation-delay:0s}
.vc-wave i:nth-child(2){animation-delay:.12s}
.vc-wave i:nth-child(3){animation-delay:.24s}
.vc-wave i:nth-child(4){animation-delay:.36s}
.vc-wave i:nth-child(5){animation-delay:.48s}
.vc-wave i:nth-child(6){animation-delay:.6s}
.vc-wave i:nth-child(7){animation-delay:.72s}
@keyframes vc-bar{0%,100%{height:8px;opacity:.6}50%{height:36px;opacity:1}}

/* Распознанный текст с курсором (шаг «Слушаю…»); серым — промежуточный, ещё не окончательный кусок */
.vc-live{margin-top:16px;min-height:72px;width:100%;text-align:left;font-size:18px;line-height:1.5;overflow-wrap:anywhere}
.vc-interim{color:#8a9299}
.vc-cur{display:inline-block;width:2px;height:1.1em;background:var(--accent);vertical-align:text-bottom;margin-left:2px;animation:vc-blink 1s steps(2) infinite}
@keyframes vc-blink{0%{opacity:1}100%{opacity:0}}

/* Серая подпись под микрофоном («здесь показан пример») и над разбором */
.vc-note{color:var(--muted);font-size:14px;line-height:1.35;margin-top:10px;max-width:420px}
.vc-note-top{margin:-6px 0 12px;max-width:none}

/* ---------- Шаг «Проверь текст» (живая диктовка) ---------- */
.vc-check{padding:14px 16px 16px}
.vc-text-l{display:block;color:var(--muted);font-size:14px;margin-bottom:6px}
.vc-text{display:block;box-sizing:border-box;width:100%;min-height:120px;margin:0;padding:12px;border:1.5px solid var(--line);border-radius:var(--radius-s);background:#fff;color:var(--text);font:inherit;font-size:17px;line-height:1.45;resize:vertical;overflow-wrap:anywhere}
.vc-text:focus{outline:2px solid var(--accent);outline-offset:1px;border-color:var(--accent)}
.vc-text[readonly]{background:#f6f7f6;color:var(--muted)}
.vc-spin{display:inline-block;width:22px;height:22px;border-radius:50%;border:3px solid rgba(255,255,255,.35);border-top-color:#fff;animation:vc-rot .8s linear infinite;flex:none}
@keyframes vc-rot{to{transform:rotate(360deg)}}

/* «Не понял, о ком речь» */
.vc-none{text-align:center;padding:24px 16px 20px}
.vc-none-ic{width:56px;height:56px;border-radius:50%;background:var(--yellow-soft);color:var(--yellow);display:grid;place-items:center;margin:0 auto 12px}
.vc-none-ic svg{width:30px;height:30px}
.vc-none h2{margin-bottom:8px}
.vc-none p{margin:0;color:var(--muted);font-size:16px;line-height:1.45}

/* Чипы примеров */
.vc-ex{margin-top:4px}
.vc-ex-t{color:var(--muted);font-size:15px;margin-bottom:6px}
.vc-chips{flex-wrap:wrap;overflow:visible}
.vc-chips .chip{min-height:48px}

/* ---------- Шаг 3: цитата и разбор ---------- */
.vc-quote{display:grid;grid-template-columns:auto minmax(0,1fr);gap:12px;align-items:start;color:var(--muted);font-size:17px;line-height:1.45}
.vc-quote svg{width:24px;height:24px;color:#9aa3aa;margin-top:2px}
.vc-quote p{margin:0}
.vc-quote>div{min-width:0}
.vc-sum{margin-top:8px;font-size:15px;color:#7a838a}
.vc-parse{padding-bottom:4px}
.vc-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:12px;align-items:center;padding:10px 0;border-top:1px solid #eceeec}
.vc-row:first-of-type{border-top:0}
.vc-ic{width:40px;height:40px;border-radius:50%;background:var(--accent-soft);color:var(--accent);display:grid;place-items:center;flex:none}
.vc-ic svg{width:22px;height:22px}
.vc-b{min-width:0}
.vc-label{color:var(--muted);font-size:14px;line-height:1.3}
.vc-val{font-weight:600;line-height:1.3;overflow-wrap:anywhere}
.vc-val .badge{margin-left:2px}
.vc-sub{color:var(--muted);font-size:15px;line-height:1.35;margin-top:2px;overflow-wrap:anywhere}
.vc-r{display:flex;flex-direction:column;align-items:flex-end;gap:2px;flex:none}
.vc-found{display:inline-flex;align-items:center;gap:3px;color:var(--green);font-size:14px;font-weight:600;white-space:nowrap}
.vc-found svg{width:16px;height:16px}
.vc-edit{min-height:48px;min-width:48px;padding:0 6px;border:0;background:transparent;color:var(--accent);font-size:14px;text-decoration:underline;text-underline-offset:2px;white-space:nowrap;cursor:pointer}
.vc-toggle{display:flex;align-items:center;gap:10px;min-height:48px;margin-top:6px;padding:4px 10px;border:1px solid var(--line);border-radius:var(--radius-s);background:var(--yellow-soft);cursor:pointer;font-size:15px;line-height:1.3}
.vc-toggle input{width:22px;height:22px;margin:0;accent-color:var(--accent);flex:none}
@media (max-width:419px){
  .vc-row{grid-template-columns:auto minmax(0,1fr)}
  .vc-r{grid-column:2;flex-direction:row;align-items:center;justify-content:flex-start;gap:14px}
}

/* ---------- Шаг 4: записано ---------- */
.vc-done{text-align:center;padding:24px 16px 18px}
.vc-ok{width:64px;height:64px;border-radius:50%;background:var(--green-dot);color:#fff;display:grid;place-items:center;margin:0 auto 12px;animation:vc-pop .35s ease-out}
.vc-ok svg{width:36px;height:36px;stroke-width:2.4}
@keyframes vc-pop{from{transform:scale(.5)}to{transform:none}}
.vc-done h2{margin-bottom:12px}
.vc-links{text-align:left;margin:0;padding:0}
.vc-links li{border-top:1px solid #cfe5d7}
.vc-links li:first-child{border-top:0}
.vc-links a{display:flex;align-items:center;gap:10px;min-height:48px;padding:6px 2px;color:var(--accent);text-decoration:none;font-weight:600;line-height:1.3;overflow-wrap:anywhere}
.vc-links a svg{width:20px;height:20px;flex:none;color:var(--green)}
