/* KM17 · gravador de histórias — usa os tokens do site (funciona nos temas claro e escuro) */
.grav{margin:36px 0 12px;max-width:520px;padding:20px;border:1px solid var(--line-2);border-radius:20px;background:var(--surface);color:var(--text)}
.grav__sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.grav__linha{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.grav__rec{display:inline-flex;align-items:center;gap:12px;min-height:56px;padding:0 24px 0 8px;border-radius:999px;border:0;background:var(--yellow,#FFD100);color:#151515;font:600 1rem/1 var(--f-text,inherit);cursor:pointer;transition:transform .2s,box-shadow .2s}
.grav__rec:hover{transform:translateY(-1px)}
.grav__rec:focus-visible,.grav__in:focus-visible,.grav__lgpd input:focus-visible{outline:3px solid var(--yt);outline-offset:3px}
.grav__ico{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:#151515;color:var(--yellow,#FFD100)}
.grav__ico svg{width:20px;height:20px}
.grav__rec.is-rec{background:#E5484D;color:#fff}
.grav__rec.is-rec .grav__ico{background:#fff;color:#E5484D}
.grav__rec-dot{width:12px;height:12px;border-radius:50%;background:#E5484D;animation:grav-pisca 1s ease-in-out infinite}
@keyframes grav-pisca{50%{opacity:.25}}
.grav__tempo{font:500 1.25rem/1 var(--f-mono,monospace);letter-spacing:.04em}
.grav__dica{color:var(--muted);font-size:.9rem}
.grav__onda{display:block;width:100%;height:72px;margin-top:16px;color:var(--yt)}
.grav__tit{font:600 1.05rem/1.35 var(--f-text,inherit);margin:0 0 12px}
.grav__msg{margin:12px 0 0;color:var(--muted)}
.grav__msg.is-erro,.grav__erro{color:#E5484D}
.grav audio{display:block;width:100%;margin:0 0 16px}
.grav__acoes{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}
.grav__acoes .btn{min-height:48px}
.grav__campo{display:grid;gap:6px;margin-bottom:14px}
.grav__campo label{font-weight:600;font-size:.95rem}
.grav__in{min-height:48px;padding:0 14px;border-radius:12px;border:1px solid var(--line-2);background:var(--bg);color:var(--text);font:500 1rem/1 var(--f-text,inherit)}
.grav__lgpd label{display:flex;gap:12px;align-items:flex-start;font-weight:400;font-size:.92rem;line-height:1.5;cursor:pointer}
.grav__lgpd input{flex:none;width:22px;height:22px;margin:1px 0 0;accent-color:var(--yellow,#FFD100)}
.grav__erro{margin:0;min-height:0;font-size:.88rem}
.grav__erro:empty{display:none}
.grav__barra{height:12px;border-radius:99px;background:var(--line);overflow:hidden}
.grav__barra i{display:block;height:100%;width:0;background:var(--yellow,#FFD100);transition:width .25s}
.grav__pct{display:block;margin:8px 0 6px;font:500 .95rem/1 var(--f-mono,monospace)}
.grav__feito{display:flex;gap:16px;align-items:flex-start}
.grav__check{flex:none;display:grid;place-items:center;width:48px;height:48px;border-radius:50%;background:var(--yellow,#FFD100);color:#151515}
.grav__check svg{width:26px;height:26px}
.grav__feito+.btn{margin-top:18px}
.hist__alt{margin-top:18px}
@media (prefers-reduced-motion:reduce){.grav__rec,.grav__barra i{transition:none}.grav__rec-dot{animation:none}}
