/* ═══════════════════════════════════════════════════════════════════════
   Rec2Link: tela de gravar e tela de assistir.
   Escuro com o vermelho de "gravando" indo para o âmbar (vidro, grade e brilho); o claro entra pelo prefers-color-scheme.
   Mobile-first: alvos de toque de 44px ou mais, sem rolagem horizontal. Não depende de Bootstrap nem de tokens.css.
   Animações: a classe .calm no <html> (botão "Animações" ou o pedido do sistema) desliga todas. Documentação: docs/apps/rec2link.md
   ═══════════════════════════════════════════════════════════════════════ */

/* ───────── Tokens ───────── */
:root {
	color-scheme: dark;
	--bg: #09050a;
	--card: rgb(255 255 255 / .045);
	--card-2: rgb(255 255 255 / .08);
	--line: rgb(255 170 190 / .17);
	--ink: #fdeef2;
	--ink-2: #d2b8c0;
	--ink-3: #ab929b;
	--accent: #ff4d6d;
	--accent-2: #ffa24a;
	--accent-ink: #ff8aa0;
	--on-accent: #1d050b;
	--btn-grad: linear-gradient(135deg, #ff4d6d, #ff9a4a);
	--rec-grad: linear-gradient(135deg, #d91c47, #d03a1a); /* texto branco com 4,7:1 ou mais nos dois pontos (medido) */
	--on-rec: #fff;
	--on-ok: #04170d;
	--danger-ink: #ffb8c2;
	--danger-bg: rgb(255 51 85 / .16);
	--warn-ink: #ffd37a;
	--warn-bg: rgb(255 193 70 / .1);
	--ok: #34f5a0;
	--sheet: #1a0d12;
	--scrim: rgb(5 2 6 / .72);
	--sk-1: rgb(255 255 255 / .06);
	--sk-2: rgb(255 255 255 / .14);
	--glow-a: rgb(255 77 109 / .17);
	--glow-b: rgb(255 162 74 / .12);
	--grid: rgb(255 170 190 / .07);
	--shadow: 0 30px 60px -30px rgb(0 0 0 / .85);
	--screen: #000;
	--radius: 22px;
	--ease: cubic-bezier(.2, .8, .2, 1);
	--font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	--mono: 'JetBrains Mono', ui-monospace, 'Cascadia Code', Consolas, monospace;
}

@media (prefers-color-scheme: light) {
	:root {
		color-scheme: light;
		--bg: #fff4f6;
		--card: rgb(255 255 255 / .74);
		--card-2: #fff;
		--line: rgb(150 40 70 / .18);
		--ink: #2a0d14;
		--ink-2: #6a4651;
		--ink-3: #7d5b66;
		--accent: #e11d48;
		--accent-2: #f97316;
		--accent-ink: #b8113a;
		--on-accent: #fff;
		--btn-grad: linear-gradient(135deg, #c81e48, #d03a1a);
		--on-ok: #fff;
		--danger-ink: #a50f33;
		--danger-bg: rgb(225 29 72 / .09);
		--warn-ink: #7a4d00;
		--warn-bg: rgb(245 158 11 / .14);
		--ok: #0b7a4b;
		--sheet: #fff;
		--scrim: rgb(60 20 30 / .5);
		--sk-1: rgb(150 40 70 / .07);
		--sk-2: rgb(150 40 70 / .15);
		--glow-a: rgb(225 29 72 / .16);
		--glow-b: rgb(249 115 22 / .13);
		--grid: rgb(150 40 70 / .08);
		--shadow: 0 26px 50px -30px rgb(110 30 50 / .45);
	}
}

/* ───────── Base ───────── */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0; min-height: 100dvh; display: flex; flex-direction: column;
	font: 400 1rem/1.55 var(--font); color: var(--ink); background: var(--bg);
	-webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
h1, h2, h3, p, dl, dd, ul, ol, fieldset { margin: 0; padding: 0; }
a { color: var(--accent-ink); }
button, input, textarea, select { font: inherit; color: inherit; }
.i { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mono { font-family: var(--mono); }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 300; padding: 10px 16px; border-radius: 12px; background: var(--sheet); color: var(--ink); transition: top .2s; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 10px; }
.main { flex: 1; padding-bottom: 48px; outline: none; }
.grad { background: linear-gradient(100deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ───────── Fundo: brilhos e grade ───────── */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--bg); }
.bg::before {
	content: ''; position: absolute; inset: 0;
	background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
	background-size: 64px 64px;
	-webkit-mask-image: radial-gradient(80% 60% at 50% 0%, #000, transparent 75%);
	mask-image: radial-gradient(80% 60% at 50% 0%, #000, transparent 75%);
}
.bg i { position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; filter: blur(110px); will-change: transform; animation: drift 28s ease-in-out infinite alternate; }
.bg i:nth-child(1) { background: var(--glow-a); top: -30vmax; left: -18vmax; }
.bg i:nth-child(2) { background: var(--glow-b); right: -24vmax; top: 24vh; animation-duration: 36s; animation-delay: -10s; }
@keyframes drift { to { transform: translate3d(8vmax, 6vmax, 0) scale(1.12); } }

/* ───────── Topo ───────── */
.top { position: relative; z-index: 5; padding-top: max(14px, env(safe-area-inset-top)); }
.top__in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; }
.top__tools { display: flex; align-items: center; gap: 8px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand__mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; color: var(--on-accent); background: var(--btn-grad); box-shadow: 0 0 28px -4px color-mix(in srgb, var(--accent) 70%, transparent); }
.brand__mark .i { width: 22px; height: 22px; }
.brand__name { font: 700 1.15rem/1 var(--font); letter-spacing: -.02em; }
.brand__name b { color: var(--accent-ink); }
.tool { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--ink-2); cursor: pointer; transition: background .2s, color .2s, transform .15s; }
.tool:hover { background: var(--card-2); color: var(--ink); }
.tool:active { transform: scale(.92); }
.tool.is-off { color: var(--ink-3); }
.pill { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink-2); font-size: .9rem; font-weight: 600; text-decoration: none; transition: background .2s, color .2s; }
.pill:hover { background: var(--card-2); color: var(--ink); }
@media (max-width: 479px) { .pill { display: none; } }

/* ───────── Hero ───────── */
.hero { text-align: center; padding: clamp(24px, 6vw, 56px) 0 8px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; font: 600 .74rem/1 var(--mono); letter-spacing: .13em; text-transform: uppercase; color: var(--accent-ink); }
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.pulse::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--accent); animation: ping 1.8s ease-out infinite; }
@keyframes ping { from { transform: scale(1); opacity: .7; } to { transform: scale(3.2); opacity: 0; } }
.hero__title { font-size: clamp(2.1rem, 7vw, 3.9rem); font-weight: 800; line-height: 1.05; letter-spacing: -.035em; }
.hero__lead { max-width: 600px; margin: 16px auto 0; color: var(--ink-2); font-size: clamp(1rem, 2.6vw, 1.15rem); }
.facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.facts li { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink-2); font-size: .85rem; font-weight: 500; }
.facts .i { color: var(--accent-ink); }

/* ───────── Estrutura ───────── */
.layout { display: grid; gap: 20px; margin-top: 28px; }
@media (min-width: 960px) {
	.layout { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: start; gap: 24px; }
	/* `.layout` na frente: sem isso a regra `.panel { position: relative }`, que vem depois, vence o sticky e o top de 20px só empurra o painel para baixo */
	.layout .panel--history { position: sticky; top: 20px; }
}
.panel {
	position: relative; padding: clamp(18px, 4vw, 30px); border-radius: var(--radius); border: 1px solid var(--line);
	background: linear-gradient(180deg, var(--card-2), var(--card));
	-webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%);
	box-shadow: inset 0 1px 0 rgb(255 255 255 / .07), var(--shadow);
}
.panel::before { content: ''; position: absolute; left: 12%; right: 12%; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: .7; }
.panel__head { margin-bottom: 14px; }
.panel__head h2 { font-size: 1.15rem; letter-spacing: -.01em; }
.view__title { font-size: clamp(1.3rem, 4.4vw, 1.7rem); letter-spacing: -.02em; outline: none; }

/* ───────── Avisos ───────── */
.alert { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); font-size: .95rem; }
.alert .i { margin-top: 3px; }
.alert--warn { color: var(--warn-ink); background: var(--warn-bg); border-color: color-mix(in srgb, var(--warn-ink) 35%, transparent); }
#fullNotice { margin-top: 24px; }
.notice { padding: 14px 16px; border-radius: 14px; background: var(--warn-bg); color: var(--warn-ink); }
.field-error { margin-top: 10px; padding: 10px 14px; border-radius: 12px; color: var(--danger-ink); background: var(--danger-bg); font-size: .92rem; font-weight: 500; }
.hint { margin-top: 8px; color: var(--ink-3); font-size: .85rem; }
.tiny { margin-top: 14px; color: var(--ink-3); font-size: .82rem; text-align: center; }

/* ───────── Formulário: modo, som, qualidade ───────── */
.group { border: 0; min-width: 0; }
.group + .group, .group + .adv, .adv + .alert { margin-top: 22px; }
.group--tight { margin-bottom: 16px; }
.label { display: block; float: left; width: 100%; margin-bottom: 10px; padding: 0; font-weight: 700; font-size: .95rem; }
.label + * { clear: both; }

/* os rádios e caixas de verdade ficam invisíveis, mas continuam focáveis e lidos por leitores de tela */
.mode input, .seg__item input, .switch input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.modes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 520px) { .modes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.mode { display: grid; cursor: pointer; }
.mode__card {
	display: grid; justify-items: center; align-content: center; gap: 2px; min-height: 108px; padding: 14px 8px; text-align: center; height: 100%;
	border-radius: 18px; border: 1.5px solid var(--line); background: var(--card);
	transition: transform .2s var(--ease), border-color .2s, background .2s, box-shadow .25s;
}
.mode__card .i { width: 28px; height: 28px; margin-bottom: 6px; color: var(--ink-2); transition: color .2s, transform .25s var(--ease); }
.mode__card b { font-size: .98rem; line-height: 1.2; }
.mode__card small { color: var(--ink-3); font-size: .78rem; line-height: 1.25; }
.mode:hover .mode__card { background: var(--card-2); }
.mode:active .mode__card { transform: scale(.97); }
.mode input:checked + .mode__card { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--card)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 15%, transparent), 0 0 40px -12px color-mix(in srgb, var(--accent) 60%, transparent); }
.mode input:checked + .mode__card .i { color: var(--accent-ink); transform: scale(1.1); }
.mode input:focus-visible + .mode__card, .seg__item input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 3px; }
.mode input:disabled + .mode__card { opacity: .4; cursor: not-allowed; }

.switch { display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 6px 2px; cursor: pointer; }
.switch + .switch { border-top: 1px solid var(--line); }
.switch__track { position: relative; flex: none; width: 50px; height: 30px; border-radius: 999px; background: var(--sk-2); border: 1px solid var(--line); transition: background .25s, border-color .25s; }
.switch__track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); transition: transform .25s var(--ease), background .25s; box-shadow: 0 2px 6px rgb(0 0 0 / .3); }
.switch input:checked + .switch__track { background: var(--btn-grad); border-color: transparent; }
.switch input:checked + .switch__track::after { transform: translateX(20px); background: #fff; }
.switch input:focus-visible + .switch__track { outline: 3px solid var(--accent); outline-offset: 3px; }
.switch input:disabled + .switch__track { opacity: .4; }
.switch__text { display: grid; min-width: 0; }
.switch__text b { font-weight: 600; font-size: .98rem; }
.switch__text small { color: var(--ink-3); font-size: .82rem; line-height: 1.35; }
#sources .field-error { margin-top: 12px; }

.seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.seg--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.seg__item { display: block; cursor: pointer; }
.seg__item span {
	display: grid; align-content: center; gap: 1px; min-height: 64px; padding: 10px 8px; text-align: center; border-radius: 14px; border: 1.5px solid var(--line); background: var(--card);
	transition: border-color .2s, background .2s, transform .15s var(--ease);
}
.seg__item b { font-size: .92rem; line-height: 1.2; }
.seg__item small { color: var(--ink-3); font-size: .74rem; line-height: 1.25; }
.seg__item:hover span { background: var(--card-2); }
.seg__item:active span { transform: scale(.97); }
.seg__item input:checked + span { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 11%, var(--card)); }
.budget { margin-top: 12px; padding: 11px 14px; border-radius: 14px; background: color-mix(in srgb, var(--accent) 8%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent); color: var(--ink-2); font-size: .88rem; }

.adv { border-radius: 16px; border: 1px solid var(--line); background: var(--card); }
.adv summary { display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 16px; font-weight: 600; font-size: .95rem; cursor: pointer; list-style: none; }
.adv summary::-webkit-details-marker { display: none; }
.adv summary::after { content: ''; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg); transition: transform .25s var(--ease); }
.adv[open] summary::after { transform: rotate(-135deg); }
.adv summary .i { color: var(--accent-ink); }
.adv__body { padding: 4px 16px 16px; border-top: 1px solid var(--line); }
.adv__body .group { margin-top: 14px; }
.field { margin-top: 16px; }
.field label { display: block; margin-bottom: 8px; font-weight: 600; font-size: .95rem; }
.field label small { color: var(--ink-3); font-weight: 400; }
input[type='text'], select {
	width: 100%; min-width: 0; min-height: 52px; padding: 13px 15px; border-radius: 14px; border: 1px solid var(--line);
	background: var(--card); font-size: 1rem; /* 16px: o iOS não dá zoom ao focar */ transition: border-color .2s, box-shadow .2s;
}
select { appearance: none; padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
select option { background: var(--sheet); color: var(--ink); }
input::placeholder { color: var(--ink-3); }
input:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 24%, transparent); }
.adv__body .switch:first-of-type { margin-top: 12px; }

/* ───────── Botões ───────── */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 52px; padding: 0 24px; border-radius: 16px; border: 1px solid transparent;
	font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer; transition: transform .15s var(--ease), box-shadow .25s, background .2s, opacity .2s;
}
.btn:active { transform: scale(.96); }
.btn--block { display: flex; width: 100%; margin-top: 22px; }
.btn--primary { color: var(--on-accent); background: var(--btn-grad); box-shadow: 0 14px 34px -12px color-mix(in srgb, var(--accent) 80%, transparent); }
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 18px 40px -12px color-mix(in srgb, var(--accent) 95%, transparent); }
.btn--rec { color: var(--on-rec); background: var(--rec-grad); box-shadow: 0 14px 34px -12px color-mix(in srgb, var(--accent) 85%, transparent); }
.btn--rec:hover { transform: translateY(-1px); box-shadow: 0 18px 40px -12px color-mix(in srgb, var(--accent) 95%, transparent); }
.btn--rec .i { fill: none; }
.btn--ghost { color: var(--ink); background: var(--card); border-color: var(--line); }
.btn--ghost:hover { background: var(--card-2); }
.btn--text { min-height: 44px; padding: 0 12px; color: var(--ink-3); background: none; font-weight: 600; font-size: .9rem; }
.btn--text:hover { color: var(--ink); }
.btn--danger, .btn.is-confirm { color: var(--danger-ink); background: var(--danger-bg); border-color: color-mix(in srgb, var(--danger-ink) 30%, transparent); }
.btn:disabled, .btn[aria-disabled='true'] { opacity: .42; cursor: not-allowed; box-shadow: none; transform: none; pointer-events: none; }
.is-full #startButton { opacity: .5; }
.icon-btn { display: grid; place-items: center; flex: none; width: 52px; min-height: 52px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); color: var(--ink-2); cursor: pointer; transition: background .2s, color .2s, transform .15s; }
.icon-btn:hover { background: var(--card-2); color: var(--ink); }
.icon-btn:active { transform: scale(.94); }
#setupForm .btn--block { margin-top: 24px; min-height: 58px; font-size: 1.05rem; }

/* flash curto quando a gravação começa */
.is-flash #recPanel::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: color-mix(in srgb, var(--accent) 22%, transparent); animation: flash .22s ease-out both; }
@keyframes flash { from { opacity: 1; } to { opacity: 0; } }

/* ───────── Contagem 3, 2, 1 ───────── */
.countdown { display: grid; justify-items: center; align-content: center; gap: 8px; min-height: 340px; text-align: center; }
.countdown__label { color: var(--ink-2); font-weight: 600; }
.countdown__num { position: relative; display: grid; place-items: center; width: 190px; height: 190px; font: 800 6.4rem/1 var(--mono); letter-spacing: -.06em; background: linear-gradient(135deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* o número cresce até 1,7x a cada segundo e passaria por cima do botão Cancelar: ele é só desenho e nunca pega o clique */
.countdown__num { pointer-events: none; }
.countdown__num::before { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 3px solid var(--accent); opacity: 0; }
.countdown__num.pop { animation: pop-num .9s var(--ease) both; }
.countdown__num.pop::before { animation: ring-out .9s ease-out both; }
@keyframes pop-num { 0% { transform: scale(1.7); opacity: 0; } 25% { opacity: 1; } 100% { transform: scale(1); } }
@keyframes ring-out { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.25); opacity: 0; } }
.countdown .btn { position: relative; z-index: 1; margin-top: 10px; }

/* ───────── Gravando ───────── */
.rec { display: grid; gap: 14px; }
.rec__top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--danger-bg); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); color: var(--danger-ink); font: 700 .78rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.badge__dot { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.badge__dot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--accent); animation: ping 1.4s ease-out infinite; }
.badge.is-paused { background: var(--warn-bg); border-color: color-mix(in srgb, var(--warn-ink) 40%, transparent); color: var(--warn-ink); }
.badge.is-paused .badge__dot { background: var(--warn-ink); }
.badge.is-paused .badge__dot::after { animation: none; }
.rec__time { font: 800 clamp(2rem, 8vw, 2.8rem)/1 var(--mono); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.rec__max { color: var(--ink-3); font: 500 .9rem var(--mono); }
.bar { height: 8px; border-radius: 999px; background: var(--sk-2); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transform-origin: 0 50%; transform: scaleX(0); transition: transform .3s linear; }
.bar.is-warn i { background: var(--warn-ink); animation: breathe 1s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .45; } }

.live { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: var(--screen); border: 1px solid var(--line); box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent), 0 0 38px -14px var(--accent); }
.live video, .live canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.live video { object-fit: contain; }
/* a webcam aparece espelhada, como no espelho (só na tela: o arquivo gravado sai do jeito que a câmera viu, com o texto certo) */
.live[data-source='camera'] video { transform: scaleX(-1); }
.live canvas { padding: 18px 22px; }
.live[data-kind='audio'] video, .live[data-kind='video'] canvas { display: none; }
.live[data-kind='audio'] { background: radial-gradient(90% 120% at 50% 100%, color-mix(in srgb, var(--accent) 14%, #000), #050205); }
.live__tag { position: absolute; top: 10px; left: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: rgb(0 0 0 / .6); color: #fff; font: 700 .7rem/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.live__tag::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: breathe 1.2s ease-in-out infinite; }
.live__paused { position: absolute; inset: 0; display: none; place-items: center; background: rgb(0 0 0 / .62); color: #fff; font: 800 1.6rem var(--font); letter-spacing: -.02em; }
.live[data-paused] .live__paused { display: grid; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; margin: 0; }
.stats div { padding: 10px 6px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); text-align: center; }
.stats dt { color: var(--ink-3); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
.stats dd { margin: 3px 0 0; font: 600 .95rem var(--mono); }
.meter { display: inline-flex; align-items: flex-end; gap: 2px; height: 20px; }
.meter i { width: 5px; height: 6px; border-radius: 2px; background: var(--sk-2); transition: background .08s, height .08s; }
.meter i:nth-child(n + 3) { height: 9px; }
.meter i:nth-child(n + 5) { height: 12px; }
.meter i:nth-child(n + 7) { height: 15px; }
.meter i:nth-child(n + 9) { height: 20px; }
.meter i.is-on { background: var(--ok); }
.meter i.is-on:nth-child(n + 8) { background: var(--warn-ink); }
.meter i.is-on:nth-child(n + 10) { background: var(--accent); }
.rec__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rec__actions .btn { min-height: 58px; }
#discardButton { justify-self: center; }

/* ───────── Finalizando ───────── */
.proc { display: grid; gap: 16px; justify-items: center; text-align: center; }
.sk { display: block; border-radius: 10px; background: linear-gradient(90deg, var(--sk-1) 25%, var(--sk-2) 37%, var(--sk-1) 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; }
.sk--line { height: 16px; margin: 10px 0; }
.sk--short { width: 60%; margin-inline: auto; }
.sk--player { width: 100%; aspect-ratio: 16 / 9; border-radius: 18px; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
.steps { display: grid; gap: 10px; width: min(100%, 320px); margin: 0; padding: 0; list-style: none; text-align: left; }
.steps li { position: relative; display: flex; align-items: center; gap: 12px; min-height: 30px; padding-left: 0; color: var(--ink-3); font-weight: 500; transition: color .25s; }
.steps li::before { content: ''; flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); transition: background .25s, border-color .25s, box-shadow .25s; }
.steps li.is-active { color: var(--ink); }
.steps li.is-active::before { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); animation: breathe 1s ease-in-out infinite; }
.steps li.is-done { color: var(--ink-2); }
.steps li.is-done::before { border-color: var(--ok); background: var(--ok) center / 12px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23062' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E"); }

@media (prefers-color-scheme: light) {
	/* o verde do tema claro é escuro: o ✓ passa a ser branco */
	.steps li.is-done::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E"); }
}

/* ───────── Conferir ───────── */
.review { display: grid; gap: 14px; }
.player { position: relative; border-radius: 18px; overflow: hidden; background: var(--screen); border: 1px solid var(--line); }
.player video { display: block; width: 100%; max-height: 62vh; background: var(--screen); }
.player audio { display: block; width: 100%; }
.review .player:has(audio:not([hidden])) { padding: 14px; background: var(--card); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips li { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink-2); font: 500 .82rem var(--mono); }
.chips .i { color: var(--accent-ink); width: 1em; height: 1em; }
.review .field { margin-top: 2px; }
.review .btn--block { margin-top: 4px; }
.review__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.review__row .btn { min-height: 52px; padding: 0 12px; font-size: .92rem; }

/* ───────── Enviando ───────── */
.progress { display: grid; justify-items: center; gap: 4px; text-align: center; padding: 6px 0; }
.ring { position: relative; width: 156px; aspect-ratio: 1; margin-bottom: 12px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 8; }
.ring__track { stroke: var(--line); }
.ring__bar { stroke-linecap: round; stroke-dasharray: 339.292; stroke-dashoffset: calc(339.292 * (1 - var(--p))); transition: stroke-dashoffset .25s linear; filter: drop-shadow(0 0 7px color-mix(in srgb, var(--accent) 70%, transparent)); }
.ring.is-saving .ring__bar { animation: breathe 1.2s ease-in-out infinite; }
.ring__value { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; font-family: var(--mono); }
.ring__value b { font-size: 2.3rem; line-height: 1; letter-spacing: -.04em; }
.ring__value small { color: var(--ink-3); font-size: .9rem; }
.progress__file { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-3); font-size: .92rem; }
.progress .stats { margin: 16px 0; }
.saving { width: 100%; margin-bottom: 14px; }

/* ───────── Pronto ───────── */
.done { display: grid; justify-items: center; gap: 10px; text-align: center; }
.done__check { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; color: var(--on-ok); background: var(--ok); box-shadow: 0 0 0 8px color-mix(in srgb, var(--ok) 18%, transparent), 0 0 44px -6px color-mix(in srgb, var(--ok) 70%, transparent); animation: pop .55s var(--ease) both; }
.done__check .i { width: 32px; height: 32px; stroke-width: 3; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.done__title { margin-top: 8px; font-size: clamp(1.4rem, 4.6vw, 1.8rem); letter-spacing: -.02em; outline: none; }
.done__lead { color: var(--ink-2); max-width: 420px; }
.linkbox { display: grid; gap: 10px; width: 100%; margin-top: 8px; }
.linkbox input { min-height: 56px; text-align: center; font: 600 1rem var(--mono); color: var(--accent-ink); }
.done__row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; width: 100%; }
.done__row .btn { flex: 1 1 160px; }
.expiry { display: inline-flex; align-items: center; justify-content: center; gap: 7px; margin-top: 6px; color: var(--ink-3); font-size: .92rem; }
.expiry b { font-family: var(--mono); color: var(--accent-ink); font-weight: 600; }
.done .btn--block { margin-top: 10px; }
@media (min-width: 560px) { .linkbox { grid-template-columns: 1fr auto; } }

.confetti { position: fixed; z-index: 400; width: 0; height: 0; pointer-events: none; }
.confetti i { position: absolute; left: -4px; top: -6px; width: 8px; height: 12px; border-radius: 2px; background: var(--c); animation: confetti 1.2s cubic-bezier(.15, .7, .3, 1) both; }
@keyframes confetti { 0% { transform: translate(0, 0) rotate(0) scale(.4); opacity: 1; } 70% { opacity: 1; } 100% { transform: translate(var(--dx), calc(var(--dy) + 46px)) rotate(var(--r)) scale(1); opacity: 0; } }

/* ───────── Histórico ───────── */
.history { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.hitem { display: grid; grid-template-columns: auto 1fr; gap: 10px 12px; align-items: center; padding: 12px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); animation: rise .35s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.hitem__icon { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 14px; color: var(--accent-ink); background: color-mix(in srgb, var(--accent) 14%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
.hitem__main { display: grid; min-width: 0; }
.hitem__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.hitem__main small { color: var(--ink-3); font-size: .85rem; }
.hitem__time { display: inline-flex; align-items: center; gap: 6px; margin-top: 2px; font: 500 .8rem var(--mono); color: var(--accent-ink); }
.hitem__actions { grid-column: 1 / -1; display: flex; gap: 8px; }
.hitem__actions .icon-btn { flex: none; width: 48px; min-height: 44px; border-radius: 12px; }
.hitem__actions .btn { flex: 1; min-height: 44px; padding: 0 12px; gap: 6px; border-radius: 12px; font-size: .88rem; white-space: nowrap; }
.hitem.is-expired { opacity: .55; }
.hitem.is-expired .hitem__time { color: var(--ink-3); }
@media (min-width: 560px) {
	.hitem { grid-template-columns: auto 1fr auto; }
	.hitem__actions { grid-column: auto; }
}
@media (min-width: 960px) {
	.hitem { grid-template-columns: auto 1fr; }
	.hitem__actions { grid-column: 1 / -1; }
}

/* ───────── Estado vazio ───────── */
.empty { display: grid; justify-items: center; gap: 6px; padding: 22px 12px; text-align: center; }
.empty__icon, .orb { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 20px; color: var(--accent-ink); background: color-mix(in srgb, var(--accent) 12%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent); }
.empty__icon .i, .orb .i { width: 26px; height: 26px; }
.empty__title { margin-top: 8px; font-size: 1.05rem; }
.empty__text { max-width: 300px; color: var(--ink-3); font-size: .92rem; }

/* ───────── Números globais ───────── */
.numbers { margin-top: clamp(44px, 9vw, 84px); }
.numbers__head { margin-bottom: 22px; text-align: center; }
.numbers__head h2 { font-size: clamp(1.5rem, 4.8vw, 2.2rem); letter-spacing: -.03em; }
.numbers__head .eyebrow { margin-bottom: 10px; }
.numbers__head .hint { max-width: 580px; margin: 10px auto 0; }
.numbers__empty { border: 1px dashed var(--line); border-radius: 20px; }
.numbers__main { display: grid; gap: 10px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat { position: relative; display: grid; justify-items: center; gap: 4px; padding: 18px 6px 16px; border-radius: 20px; border: 1px solid var(--line); text-align: center; overflow: hidden; background: linear-gradient(180deg, var(--card-2), var(--card)); }
.stat::before { content: ''; position: absolute; inset: -40% 10% auto; height: 80%; pointer-events: none; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 16%, transparent), transparent); }
.stat__icon { position: relative; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; color: var(--accent-ink); background: color-mix(in srgb, var(--accent) 13%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent); }
.stat__value { position: relative; max-width: 100%; margin-top: 6px; font: 800 clamp(1.5rem, 6.4vw, 3rem)/1.1 var(--mono); letter-spacing: -.045em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; background: linear-gradient(100deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat__label { position: relative; color: var(--ink-2); font-size: .82rem; font-weight: 500; }
@media (min-width: 560px) { .stat { padding: 24px 14px 22px; } .stat__label { font-size: 1rem; } .numbers__main { gap: 12px; } }
.numbers__grid { display: grid; gap: 10px; margin: 10px 0 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 720px) { .numbers__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 719px) { .numbers__grid div:last-child:nth-child(odd) { grid-column: 1 / -1; } }
.numbers__grid div { padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); }
.numbers__grid dt { color: var(--ink-3); font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; }
.numbers__grid dd { margin: 5px 0 0; font: 600 1.05rem/1.3 var(--mono); font-variant-numeric: tabular-nums; }
.numbers__grid dd span { white-space: nowrap; }

/* ═════════ Assistir (/r/<id>) ═════════ */
.center-card { display: grid; justify-items: center; gap: 12px; width: min(100%, 480px); margin: clamp(28px, 8vw, 72px) auto 0; text-align: center; }
.center-card h1 { font-size: clamp(1.5rem, 5vw, 1.9rem); letter-spacing: -.025em; }
.lead { color: var(--ink-2); }
.center-card .btn { margin-top: 6px; }
.orb { width: 72px; height: 72px; border-radius: 24px; box-shadow: 0 0 44px -10px color-mix(in srgb, var(--accent) 60%, transparent); }
.orb .i { width: 32px; height: 32px; }

.watch { display: grid; gap: 22px; width: min(100%, 880px); margin-inline: auto; padding-top: clamp(22px, 5vw, 48px); }
.watch__head { text-align: center; }
.watch__title { font-size: clamp(1.7rem, 5.6vw, 2.6rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.12; overflow-wrap: anywhere; }
.watch__head .lead { margin-top: 8px; font-size: .95rem; }
.stage { position: relative; }
.player--video { aspect-ratio: var(--ratio, 16 / 9); max-height: 72vh; margin-inline: auto; box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 28%, transparent), 0 30px 70px -34px var(--accent); }
.player--video video { width: 100%; height: 100%; max-height: none; object-fit: contain; }
.player--audio { display: grid; gap: 12px; padding: 18px; background: radial-gradient(90% 140% at 50% 100%, color-mix(in srgb, var(--accent) 14%, var(--sheet)), var(--sheet)); }
.player--audio canvas { width: 100%; aspect-ratio: 4 / 1; }
.gone-card { display: grid; justify-items: center; gap: 8px; padding: 44px 16px; border-radius: 18px; border: 1px dashed var(--line); background: var(--card); text-align: center; }
.gone-card p { color: var(--ink-3); font-size: .92rem; }

.watch__info { display: grid; gap: 14px; }
.expiry-card { position: relative; display: flex; align-items: center; gap: 14px; padding: 16px 18px 20px; border-radius: 18px; border: 1px solid var(--line); background: linear-gradient(180deg, var(--card-2), var(--card)); overflow: hidden; }
.expiry-card__icon { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 14px; color: var(--accent-ink); background: color-mix(in srgb, var(--accent) 14%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
.expiry-card__text { display: grid; }
.expiry-card__text small { color: var(--ink-3); font-size: .82rem; }
.expiry-card__clock { font: 800 clamp(1.7rem, 7vw, 2.4rem)/1.1 var(--mono); letter-spacing: -.04em; font-variant-numeric: tabular-nums; color: var(--accent-ink); }
.drain { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--sk-1); }
.drain i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transform-origin: 0 50%; transform: scaleX(var(--left, 1)); transition: transform 1s linear; }
.expiry-card.is-low .expiry-card__clock { color: var(--warn-ink); }
.expiry-card.is-low .drain i { background: var(--warn-ink); }
.expiry-card.is-urgent .expiry-card__clock { color: var(--danger-ink); animation: breathe 1s ease-in-out infinite; }
.expiry-card.is-urgent .drain i { background: var(--accent); }
.counts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.counts li { display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink-2); font-size: .95rem; }
.counts .i { color: var(--accent-ink); }
.counts b { font: 700 1rem var(--mono); color: var(--ink); font-variant-numeric: tabular-nums; }
.counts b.bump { animation: bump .6s var(--ease); }
@keyframes bump { 40% { transform: scale(1.4); color: var(--ok); } }
.watch__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.watch__actions .btn { flex: 1 1 150px; }
.tech { border-radius: 16px; border: 1px solid var(--line); background: var(--card); }
.tech summary { display: flex; align-items: center; min-height: 48px; padding: 0 16px; font-weight: 600; font-size: .92rem; color: var(--ink-2); cursor: pointer; }
.tech dl { display: grid; gap: 10px; padding: 4px 16px 16px; }
.tech dt { color: var(--ink-3); font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; }
.tech dd { margin: 2px 0 0; font: 500 .9rem var(--mono); overflow-wrap: anywhere; }
.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.cta .btn { flex: 0 0 auto; }

/* ───────── Rodapé e avisos ───────── */
.foot { border-top: 1px solid var(--line); padding: 20px 0 max(20px, env(safe-area-inset-bottom)); color: var(--ink-3); font-size: .85rem; }
.foot__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; }
.toasts { position: fixed; z-index: 500; left: 0; right: 0; bottom: max(16px, env(safe-area-inset-bottom)); display: grid; justify-items: center; gap: 8px; padding: 0 16px; pointer-events: none; }
.toast { display: inline-flex; align-items: center; gap: 10px; max-width: min(100%, 460px); padding: 12px 18px; border-radius: 14px; background: var(--sheet); color: var(--ink); border: 1px solid var(--line); box-shadow: 0 18px 40px -16px rgb(0 0 0 / .7); font-size: .92rem; font-weight: 500; animation: rise .3s var(--ease) both; transition: opacity .3s, transform .3s; }
.toast .i { color: var(--ok); }
.toast--error .i { color: var(--accent-ink); }
.toast.is-leaving { opacity: 0; transform: translateY(8px); }

/* ───────── Transcrição (opcional) ───────── */
.switch__text .tag { margin-left: 6px; padding: 2px 8px; border-radius: 999px; vertical-align: middle; font: 600 .62rem/1.5 var(--mono); font-style: normal; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); background: color-mix(in srgb, var(--accent) 14%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
#txHint { color: var(--ink-2); } /* o aviso de privacidade precisa ser lido: um tom acima do texto discreto */
.switch input:disabled ~ .switch__text { opacity: .6; }

/* legenda ao vivo sobre a pré-visualização: a frase que acabou de ser dita (a que ainda está sendo falada fica mais apagada) */
.live__caption { position: absolute; left: 50%; bottom: 12px; z-index: 2; width: max-content; max-width: calc(100% - 28px); margin: 0; padding: 6px 12px; transform: translateX(-50%); border-radius: 10px; background: rgb(0 0 0 / .74); color: #fff; font: 500 .92rem/1.35 var(--font); text-align: center; pointer-events: none; }
.live__caption.is-interim { color: rgb(255 255 255 / .78); }

/* selo de status da transcrição: verde quando ouve, âmbar em pausa e neutro (nunca vermelho) quando parou, porque é só um extra */
.txchip { display: inline-flex; align-items: center; gap: 7px; margin-left: auto; padding: 4px 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink-2); font: 600 .72rem/1.4 var(--mono); }
.txchip i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); }
.txchip[data-state='on'] { color: var(--ink); }
.txchip[data-state='on'] i { background: var(--ok); animation: breathe 1.4s ease-in-out infinite; }
.txchip[data-state='paused'] i { background: var(--warn-ink); }
.toast--info .i { color: var(--accent-2); }

/* conferência: a transcrição que foi feita, com os trechos clicáveis */
.tx { border-radius: 16px; border: 1px solid var(--line); background: var(--card); }
.tx summary { display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 16px; font-weight: 600; font-size: .95rem; cursor: pointer; list-style: none; }
.tx summary::-webkit-details-marker { display: none; }
.tx summary::after { content: ''; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg); transition: transform .25s var(--ease); }
.tx[open] summary::after { transform: rotate(-135deg); }
.tx summary .i { color: var(--accent-ink); }
.tx__body { padding: 4px 16px 16px; border-top: 1px solid var(--line); }
.tx__body .hint { margin: 12px 0 4px; }
.cues--review { max-height: 240px; margin-top: 10px; overflow-y: auto; }

/* os trechos (na conferência e na página do link) */
.cues { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.cues li[hidden] { display: none; }
.cue { display: grid; grid-template-columns: 3.4em 1fr; align-items: baseline; gap: 10px; width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid transparent; border-radius: 12px; background: none; color: var(--ink); font-size: .95rem; line-height: 1.4; text-align: left; cursor: pointer; transition: background .15s, border-color .15s; }
.cue time { color: var(--accent-ink); font: 600 .78rem var(--mono); font-variant-numeric: tabular-nums; }
.cue:hover { background: var(--card-2); }
.cue.is-active { background: color-mix(in srgb, var(--accent) 12%, transparent); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }

/* página do link: transcrição com busca, copiar e baixar */
.transcript { padding: 18px; border-radius: 18px; border: 1px solid var(--line); background: linear-gradient(180deg, var(--card-2), var(--card)); }
.transcript__head h2 { display: flex; align-items: center; gap: 8px; font-size: 1.15rem; letter-spacing: -.01em; }
.transcript__head h2 .i { color: var(--accent-ink); }
.transcript__head h2 small { color: var(--ink-3); font: 500 .8rem var(--mono); }
.transcript__head .hint { margin-top: 4px; }
.transcript__tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.transcript__tools input { flex: 1 1 200px; min-height: 48px; }
.transcript__tools .btn { min-height: 48px; padding: 0 16px; font-size: .88rem; }
.transcript__tools[hidden] { display: none; }
.transcript__body { position: relative; max-height: 340px; margin-top: 12px; padding-right: 2px; overflow-y: auto; border-radius: 12px; outline: none; }
.transcript__body:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.transcript__skeleton { display: grid; gap: 4px; padding: 6px 4px; }
.transcript__empty { padding: 18px 8px; color: var(--ink-3); font-size: .92rem; text-align: center; }
.now-line { min-height: 2.8em; margin: 0; color: var(--ink); font-size: 1.1rem; font-weight: 600; line-height: 1.4; text-align: center; letter-spacing: -.01em; }

/* ───────── Menos movimento ───────── */
/* O botão "Animações" liga a classe .calm; sem JavaScript, vale o pedido do sistema. Os estados finais continuam (as animações de entrada usam `both`). */
.calm *, .calm *::before, .calm *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
@media (prefers-reduced-motion: reduce) {
	html:not(.lively) *, html:not(.lively) *::before, html:not(.lively) *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
.calm .bg i { animation: none; }

/* ───────── Telas estreitas ───────── */
@media (max-width: 520px) {
	/* os quatro recados do topo ocupavam quatro linhas e empurravam o gravador para longe: menores, ficam em três */
	.facts { gap: 6px; margin-top: 18px; }
	.facts li { padding: 5px 11px; font-size: .78rem; }
}
@media (max-width: 400px) {
	.mode__card { min-height: 100px; padding: 12px 4px; }
	.mode__card b { font-size: .88rem; }
	.mode__card small { font-size: .72rem; }
	.countdown__num { width: 150px; height: 150px; font-size: 5rem; }
	.seg { grid-template-columns: 1fr; }
	.seg--two { grid-template-columns: 1fr 1fr; }
	.seg__item span { min-height: 56px; }
	.review__row { grid-template-columns: 1fr; }
}
