/* Editor de Vídeo da Brands · base visual: macOS Tahoe com uma camada retrô 8-bit.
   Tahoe (HIG + medidas em _refs/TOKENS.md): conteúdo sólido, vidro só no que é navegação e controle flutuante (barra
   lateral, cápsula de ações, pílulas da prévia), cantos grandes, escala de texto do Mac (13/16, título 26/32, ajuda 11/14).
   8-bit: papel de parede preto com fogo em pixel (pontilhado Bayer entre as cores), cursor de seleção de videogame em volta do cartão escolhido,
   números e setas em pixel, grade de pixels no palco da prévia. O pixel é tempero: o que a pessoa lê segue em Inter. */
@font-face { font-family: "Inter Mac"; src: url("fontes/Inter_18pt-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter Mac"; src: url("fontes/Inter_18pt-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter Mac"; src: url("fontes/Inter_18pt-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter Mac"; src: url("fontes/Inter_18pt-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
/* fontes da legenda (as mesmas do editor, OFL): a prévia ao vivo desenha a legenda com elas */
@font-face { font-family: "TikTok Sans K"; src: url("fontes/TikTokSans-Bold.ttf") format("truetype"); font-weight: 700 900; font-display: swap; }
@font-face { font-family: "TikTok Sans K"; src: url("fontes/TikTokSans-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Playfair K"; src: url("fontes/PlayfairEnfase-Italic.ttf") format("truetype"); font-style: italic; font-weight: 700; font-display: swap; }

:root {
  color-scheme: light;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter Mac", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
  --accent: #EE5A24; --accent-ink: #fff; --accent-soft: rgba(238, 90, 36, .13);
  --win: #FFFFFF;                       /* janela: conteúdo sólido */
  --papel-fundo: #FFFFFF;               /* papel de parede: branco com fogo laranja */
  --card: #F6F6F8;                      /* cartão grande dentro da janela (caixa do pedido, herói) */
  --group: #F2F2F5;                     /* grupo arredondado dos Ajustes */
  --stage: #F3F3F7;                     /* palco da prévia */
  --janela: #FFFFFF;                    /* fundo da janela inteira: palco, painel e trilho na mesma cor */
  --label: rgba(0, 0, 0, .86); --label-2: rgba(0, 0, 0, .52); --label-3: rgba(0, 0, 0, .3);
  --sep: rgba(0, 0, 0, .08); --fill: rgba(0, 0, 0, .055); --fill-2: rgba(0, 0, 0, .035); --fill-sel: rgba(0, 0, 0, .09);
  --field: #FFFFFF; --field-rim: inset 0 0 0 1px rgba(0, 0, 0, .12);
  --thumb: #FFFFFF; --thumb-shadow: 0 1px 2px rgba(0, 0, 0, .16), 0 0 0 .5px rgba(0, 0, 0, .08);
  --glass: rgba(255, 255, 255, .62); --glass-blur: blur(28px) saturate(180%);
  --glass-rim: inset 0 1px 0 rgba(255, 255, 255, .85), inset 0 0 0 1px rgba(255, 255, 255, .45);
  --glass-shadow: 0 0 0 .5px rgba(0, 0, 0, .08), 0 8px 28px rgba(20, 10, 40, .14);
  --win-shadow: 0 0 0 .5px rgba(0, 0, 0, .14), 0 18px 50px rgba(40, 16, 60, .22);
  --pontos: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Crect width='2' height='2' fill='%23000' fill-opacity='.11'/%3E%3C/svg%3E");
  --r-card: 14px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --accent: #FF7A45; --accent-ink: #1a0b04; --accent-soft: rgba(255, 122, 69, .16);
  --papel-fundo: #000000;
  /* cinza único na janela toda (a opção "espacial" com degradê ficou guardada em painel-v2/mockup-cinzas, opção C) */
  --win: #1B1B1E; --card: #222226; --group: #26262A; --stage: #1B1B1E; --janela: #1B1B1E;
  --label: rgba(255, 255, 255, .92); --label-2: rgba(255, 255, 255, .56); --label-3: rgba(255, 255, 255, .3);
  --sep: rgba(255, 255, 255, .08); --fill: rgba(255, 255, 255, .09); --fill-2: rgba(255, 255, 255, .05); --fill-sel: rgba(255, 255, 255, .14);
  --field: rgba(255, 255, 255, .06); --field-rim: inset 0 0 0 1px rgba(255, 255, 255, .13);
  --thumb: #636368; --thumb-shadow: 0 1px 2px rgba(0, 0, 0, .4);
  --glass: rgba(34, 34, 40, .5);
  --glass-rim: inset 0 1px 0 rgba(255, 255, 255, .16), inset 0 0 0 1px rgba(255, 255, 255, .08);
  --glass-shadow: 0 0 0 .5px rgba(0, 0, 0, .6), 0 12px 34px rgba(0, 0, 0, .45);
  --win-shadow: 0 0 0 .5px rgba(0, 0, 0, .7), 0 20px 60px rgba(0, 0, 0, .55);
  --pontos: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Crect width='2' height='2' fill='%23fff' fill-opacity='.09'/%3E%3C/svg%3E");
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font: 400 13px/16px var(--font); letter-spacing: -.005em; color: var(--label); background: var(--papel-fundo); -webkit-font-smoothing: antialiased; overflow: hidden; }
button, input, textarea, select { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 50%, transparent); outline-offset: 2px; }
.oculto { display: none !important; }
* { scrollbar-width: thin; scrollbar-color: var(--fill-sel) transparent; }

/* vidro: só a camada de navegação e os controles que flutuam por cima do conteúdo */
.vidro { background: var(--glass); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); box-shadow: var(--glass-rim), var(--glass-shadow); }
@media (prefers-reduced-transparency: reduce) { .vidro { background: var(--group); -webkit-backdrop-filter: none; backdrop-filter: none; } }

.logo { display: inline-flex; align-items: center; height: 12px; color: var(--label); opacity: .72; }
.logo svg { height: 100%; width: auto; display: block; }

/* ---------- pixel 8-bit ---------- */
.px { display: block; width: 14px; height: 14px; flex: none; }
.px.dig { width: 10px; height: 14px; }
/* canto em degrau de 1 pixel (o "arredondado" dos jogos antigos) */
.caixa-px { --d: 4px; clip-path: polygon(var(--d) 0, calc(100% - var(--d)) 0, calc(100% - var(--d)) var(--d), 100% var(--d), 100% calc(100% - var(--d)),
  calc(100% - var(--d)) calc(100% - var(--d)), calc(100% - var(--d)) 100%, var(--d) 100%, var(--d) calc(100% - var(--d)), 0 calc(100% - var(--d)), 0 var(--d), var(--d) var(--d)); }
/* degradê pontilhado (gerado no painel, --dither): fundo dos cartões especiais */
.dither { background: var(--papel-fundo) var(--dither, none) center / cover; image-rendering: pixelated; }
.dither img { image-rendering: auto; }

/* ---------- controles ---------- */
/* seletor segmentado */
.seg { display: inline-flex; padding: 2px; border-radius: 9px; background: var(--fill); gap: 0; }
.seg button { height: 24px; padding: 0 12px; border-radius: 7px; color: var(--label); font-weight: 500; white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; transition: background .16s var(--ease), box-shadow .16s var(--ease); }
.seg button:hover:not(.on) { background: var(--fill-2); }
.seg button.on { background: var(--thumb); box-shadow: var(--thumb-shadow); font-weight: 600; }
.seg.cheio { display: flex; } .seg.cheio button { flex: 1; }
/* botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 30px; padding: 0 15px; border-radius: 999px;
  font-weight: 500; white-space: nowrap; transition: background .16s var(--ease), filter .16s, transform .12s var(--ease); }
.btn:active { transform: scale(.97); }
.btn.cinza { background: var(--fill); } .btn.cinza:hover { background: var(--fill-sel); }
.btn.texto { color: var(--label-2); padding: 0 10px; } .btn.texto:hover { color: var(--label); background: var(--fill-2); }
.btn.prim { background: var(--accent); color: var(--accent-ink); font-weight: 600; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 1px 2px rgba(0, 0, 0, .15), 0 6px 18px color-mix(in srgb, var(--accent) 35%, transparent); }
.btn.prim:hover { filter: brightness(1.06); }
.btn.grande { height: 40px; padding: 0 22px; font-size: 14px; }
.btn.peq { height: 24px; padding: 0 12px; }
.btn svg { width: 15px; height: 15px; } .btn .px { width: 12px; height: 12px; }
.ico-btn { width: 30px; padding: 0; }
.ib { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: var(--label-2); transition: background .16s var(--ease), color .16s; }
.ib:hover { background: var(--fill); color: var(--label); }
.ib svg { width: 16px; height: 16px; }
/* atalho em pílula (os "chips" do Captions): + quando desligado, check em pixel quando ligado */
.chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 13px 0 10px; border-radius: 999px; font-weight: 500; color: var(--label-2);
  background: var(--win); box-shadow: inset 0 0 0 1px var(--sep); transition: background .16s var(--ease), color .16s, box-shadow .16s; }
.chip:hover { color: var(--label); box-shadow: inset 0 0 0 1px var(--fill-sel); }
.chip svg { width: 13px; height: 13px; } .chip .px { width: 11px; height: 11px; }
.chip.on { color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent); font-weight: 600; }
/* campos */
input[type=text], textarea { width: 100%; border: 0; border-radius: 9px; background: var(--field); box-shadow: var(--field-rim); padding: 6px 10px; outline: none;
  transition: box-shadow .16s var(--ease); }
input[type=text] { height: 32px; }
input[type=text]:focus, textarea:focus { box-shadow: inset 0 0 0 1px var(--accent), 0 0 0 3px var(--accent-soft); }
textarea { resize: vertical; min-height: 56px; line-height: 1.45; }
input::placeholder, textarea::placeholder { color: var(--label-3); }
input[type=range] { width: 150px; accent-color: var(--accent); }
/* menu suspenso (pop-up) no jeito dos Ajustes: valor + cápsula com ⌃⌄ */
select.popup { appearance: none; -webkit-appearance: none; border: 0; height: 26px; padding: 0 30px 0 9px; border-radius: 8px; cursor: pointer; text-align: right;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20'%3E%3Ccircle cx='10' cy='10' r='10' fill='%23888' fill-opacity='.16'/%3E%3Cpath d='M7 8.5l3-3 3 3M7 11.5l3 3 3-3' fill='none' stroke='%23888' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 2px center; }
select.popup:hover { background-color: var(--fill-2); }
select.popup option { color: initial; }
/* chave liga/desliga */
.chave { position: relative; flex: none; width: 40px; height: 24px; border-radius: 12px; background: var(--fill-sel); transition: background .2s var(--ease); }
.chave::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .28); transition: transform .2s var(--ease); }
.chave.on { background: var(--accent); } .chave.on::after { transform: translateX(16px); }

/* ---------- formulário em grupos (Ajustes do Sistema) ---------- */
.aj + .aj, .aj + details, details + .aj { margin-top: 22px; }
.aj > h4 { display: flex; align-items: center; gap: 9px; margin: 0 0 8px 4px; font-size: 13px; line-height: 16px; font-weight: 700; scroll-margin-top: 16px; }
.grupo { background: var(--group); border-radius: 14px; padding: 0 14px; }
.grupo > :not(.oculto) ~ :not(.oculto) { border-top: 1px solid var(--sep); }   /* fio só entre linhas que aparecem */
.linha { position: relative; display: flex; align-items: center; gap: 14px; min-height: 46px; padding: 10px 0; }
.linha .rot { flex: 1; min-width: 0; font-weight: 500; }
.linha .rot small, .linha .dica { display: block; margin-top: 3px; font-size: 11px; line-height: 14px; color: var(--label-2); font-weight: 400; letter-spacing: .005em; }
.linha .dica:empty { display: none; }
.linha .ctl { flex: none; display: flex; align-items: center; gap: 8px; max-width: 62%; }
.linha .ctl input[type=text] { width: 220px; }
/* linha empilhada: rótulo em cima, controle largo embaixo */
.linha.pilha { flex-direction: column; align-items: stretch; gap: 9px; padding: 12px 0 13px; }
.linha.pilha .ctl { display: block; max-width: none; }
.linha.pilha .ctl input[type=text] { width: 100%; }
.linha.pilha .seg { display: flex; } .linha.pilha .seg button { flex: 1; height: 28px; min-width: 0; }
/* 4 opções compridas: grade 2x2 com ícone (Música) */
.linha.pilha .seg.grade2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.linha.pilha .seg.grade2 button { height: 32px; }
.seg button .ic { width: 14px; height: 14px; color: var(--label-2); }
.seg button.on .ic { color: var(--accent); }
.linha.pilha .ctl > .dica { margin-top: 7px; }
.valor-dir { position: absolute; right: 0; top: 12px; font-weight: 600; color: var(--label); max-width: 55%; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cheia { padding: 10px 0 12px; }
.cheia > .dica { margin: 8px 0 0; font-size: 11px; line-height: 14px; color: var(--label-2); display: block; }
.cheia > .dica:empty { display: none; }
.tile { width: 22px; height: 22px; flex: none; border-radius: 6px; display: grid; place-items: center; background: var(--tile);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), inset 0 -1px 0 rgba(0, 0, 0, .12); }
.ic { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.tile .ic { width: 13px; height: 13px; color: #fff; stroke-width: 2.1; }
.aa { font-weight: 700; line-height: 1; letter-spacing: -.01em; }
.aa.p { font-size: 10px; } .aa.m { font-size: 12px; } .aa.g { font-size: 15px; }
/* "Opções avançadas": um triângulo só, fechado por padrão */
details.avancado > summary { list-style: none; display: flex; align-items: center; gap: 7px; margin: 0 0 8px 4px; cursor: pointer; font-weight: 700; scroll-margin-top: 16px; }
details.avancado > summary::-webkit-details-marker { display: none; }
details.avancado > summary::before { content: ""; width: 6px; height: 6px; border-right: 1.7px solid var(--label-2); border-bottom: 1.7px solid var(--label-2);
  transform: rotate(-45deg); transition: transform .2s var(--ease); margin-right: 2px; }
details.avancado[open] > summary::before { transform: rotate(45deg); }
details.avancado > summary small { margin-left: 4px; color: var(--label-2); font-weight: 400; font-size: 11px; }
/* estilo das animações: faixa com o escolhido e os mais usados, "Ver todos" abre a grade */
.faixa { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.faixa-it { display: flex; flex-direction: column; gap: 5px; min-width: 0; text-align: center; }
.faixa-img { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 9 / 14; border-radius: 9px; overflow: hidden; background: #0d0d10; color: #fff;
  box-shadow: 0 0 0 .5px rgba(0, 0, 0, .2); transition: box-shadow .16s var(--ease), transform .16s var(--ease); }
.faixa-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.faixa-img .ic { width: 18px; height: 18px; }
.faixa-img.vazio { background: var(--fill); color: var(--label-2); box-shadow: none; }
.faixa-img.dither { background: var(--papel-fundo) var(--dither, none) center / cover; }
.faixa-img em { position: absolute; bottom: 8px; font: 600 11px/1 var(--font); color: var(--label-2); }
.faixa-nome { font-size: 10.5px; line-height: 13px; color: var(--label-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.faixa-it:hover .faixa-img { transform: translateY(-1px); box-shadow: 0 0 0 2px var(--fill-sel); }
.faixa-it.on .faixa-img { box-shadow: 0 0 0 2px var(--group), 0 0 0 4px var(--accent); }
.faixa-it.on .faixa-nome { color: var(--label); font-weight: 600; }
/* legenda: miniaturas de todas, o nome embaixo, a escolhida com anel na cor de destaque */
.legendas { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 10px; }
.legendas button { display: flex; flex-direction: column; gap: 5px; text-align: left; }
/* o template desenhado em código sobre o mesmo placeholder da prévia (listras do insert), na fonte e na cor de verdade */
.legendas .leg-img { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 700 / 260; border-radius: 9px; overflow: hidden;
  background: repeating-linear-gradient(115deg, #4f6fd0 0 9px, #3a58b8 9px 18px); container-type: inline-size;
  box-shadow: 0 0 0 .5px rgba(0, 0, 0, .2); transition: box-shadow .16s var(--ease); }
.legendas .leg-amostra { --t: 9.4cqw; display: block; text-align: center; white-space: nowrap; line-height: 1.1; }
.legendas .leg-img.txt { display: grid; place-items: center; background: var(--fill); color: var(--label-2); font-size: 11px; }
.legendas b { font-size: 12px; font-weight: 500; color: var(--label-2); }
.legendas button:hover:not(.on) .leg-img { box-shadow: 0 0 0 2px var(--fill-sel); }
.legendas button.on .leg-img { box-shadow: 0 0 0 2px var(--group), 0 0 0 4px var(--accent); }
.legendas button.on b { color: var(--label); font-weight: 600; }
.linha .valor { color: var(--label-2); }
/* formato: 4 opções com a proporção desenhada */
.formatos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.formatos button { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 10px 4px 9px; border-radius: 11px; background: var(--fill-2);
  transition: background .16s var(--ease), box-shadow .16s var(--ease); }
.formatos button:hover { background: var(--fill); }
.formatos .forma { width: 44px; height: 44px; display: grid; place-items: center; margin-bottom: 6px; }
.formatos .forma i { display: block; border-radius: 4px; box-shadow: inset 0 0 0 1.6px var(--label-3); }
.formatos b { font-size: 13px; font-weight: 600; }
.formatos small { font-size: 11px; color: var(--label-2); white-space: nowrap; }
.formatos button.on { background: var(--thumb); box-shadow: var(--thumb-shadow); }
.formatos button.on .forma i { background: var(--accent-soft); box-shadow: inset 0 0 0 1.8px var(--accent); }

/* listas "quando eu falar de ___, mostre/use ___" (provas na tela e vídeo certo pra um assunto) */
.par-linha { display: grid; grid-template-columns: auto 1fr 30px; gap: 6px 8px; align-items: center; padding: 8px 0; }
.par-linha + .par-linha { border-top: 1px solid var(--sep); }
.par-linha > span { color: var(--label-2); font-size: 11px; white-space: nowrap; }
.par-linha > .ico-btn { grid-column: 3; grid-row: 1 / span 2; height: 30px; align-self: center; }
.par-linha > .campo-arq { grid-column: 2; }
.mais-prova { margin-top: 6px; }
.certos .par-linha:first-child { padding-top: 0; }

/* campo que aceita link/texto OU arquivo (escolher ou arrastar): o painel só anota nome, tamanho e duração */
.campo-arq { display: flex; gap: 6px; align-items: center; border-radius: 10px; transition: box-shadow .16s var(--ease); }
.campo-arq > input[type=text] { flex: 1; min-width: 0; }
.campo-arq > .btn { flex: none; height: 32px; }
.campo-arq.solta { box-shadow: 0 0 0 2px var(--accent); }
.cheia > .campo-arq + .dica, .cheia > input + .campo-arq { margin-top: 0; }
/* zona do vídeo gravado */
.zona { position: relative; }
.zona-vazia { width: 100%; display: grid; justify-items: center; gap: 4px; padding: 16px 14px; border-radius: 12px; text-align: center; color: var(--label-2);
  background: var(--field); box-shadow: inset 0 0 0 1.5px var(--fill-sel); outline: 1.5px dashed var(--label-3); outline-offset: -6px;
  transition: background .16s var(--ease), outline-color .16s; }
.zona-vazia:hover { background: var(--fill-2); outline-color: var(--accent); }
.zona-vazia b { color: var(--label); font-size: 14px; line-height: 18px; font-weight: 600; }
.zona-vazia > span:not(.zona-ic) { font-size: 12px; line-height: 16px; }
.zona-vazia small { margin-top: 4px; font-size: 11px; line-height: 14px; color: var(--label-3); max-width: 52ch; }
.zona-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 4px; }
.zona-ic .ic { width: 18px; height: 18px; }
.zona.solta .zona-vazia { outline-color: var(--accent); background: var(--accent-soft); }
.zona-cheia { display: none; align-items: center; gap: 12px; padding: 8px 8px 8px 8px; border-radius: 12px; background: var(--field); box-shadow: var(--field-rim); }
.zona.tem .zona-vazia { display: none; } .zona.tem .zona-cheia { display: flex; }
.zona.tem.solta .zona-cheia { box-shadow: 0 0 0 2px var(--accent); }
.zona-thumb { flex: none; width: 40px; height: 56px; border-radius: 7px; overflow: hidden; background: #0d0d10; color: #fff; display: grid; place-items: center; }
.zona-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.zona-thumb .ic { width: 16px; height: 16px; }
.zona-txt { flex: 1; min-width: 0; }
.zona-txt b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zona-txt small { display: block; margin-top: 2px; font-size: 11px; line-height: 14px; color: var(--label-2); }
/* caixa de insumos: 3 portas de entrada + a lista, cada insumo com o papel dele */
.insumos { border-radius: 14px; transition: box-shadow .16s var(--ease); }
.insumos.solta { box-shadow: 0 0 0 2px var(--accent); }
.ins-acoes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ins-bt { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 12px; border-radius: 12px; text-align: left; background: var(--field);
  box-shadow: inset 0 0 0 1px var(--sep); transition: background .16s var(--ease), box-shadow .16s var(--ease); }
.ins-bt:hover { background: var(--fill-2); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent); }
.ins-bt > span:last-child { min-width: 0; }
.ins-bt b { display: block; font-weight: 600; line-height: 16px; }
.ins-bt small { display: block; margin-top: 1px; font-size: 11px; line-height: 14px; color: var(--label-2); }
.ins-ic { flex: none; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.ins-ic .ic { width: 17px; height: 17px; }
.insumos.tem .ins-acoes { display: flex; flex-wrap: wrap; gap: 6px; }
.insumos.tem .ins-bt { padding: 6px 12px 6px 7px; border-radius: 999px; }
.insumos.tem .ins-bt small { display: none; }
.insumos.tem .ins-ic { width: 24px; height: 24px; border-radius: 50%; } .insumos.tem .ins-ic .ic { width: 13px; height: 13px; }
.insumos.tem .ins-bt b { font-weight: 500; font-size: 12px; }
.ins-colar { display: flex; gap: 6px; align-items: center; margin-top: 8px; }
.ins-colar input { flex: 1; min-width: 0; }
.ins-lista { display: flex; flex-direction: column; gap: 6px; }
.ins-lista:not(:empty) { margin: 10px 0 0; }
.ins-it { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 6px 6px 6px 6px; border-radius: 12px; background: var(--field); box-shadow: var(--field-rim); }
.ins-thumb { flex: none; width: 34px; height: 46px; border-radius: 7px; overflow: hidden; background: #0d0d10; color: #fff; display: grid; place-items: center; }
.ins-thumb video, .ins-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ins-thumb .ic { width: 15px; height: 15px; }
.ins-txt { flex: 1; min-width: 0; }
.ins-txt b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ins-txt small { display: block; margin-top: 1px; font-size: 11px; line-height: 14px; color: var(--label-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ins-papel { flex: none; display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 8px 0 11px; border-radius: 999px; font-size: 12px; font-weight: 600;
  color: var(--pc, var(--label)); background: color-mix(in srgb, var(--pc, var(--label-2)) 14%, transparent); }
.ins-papel .ic { width: 13px; height: 13px; transition: transform .16s var(--ease); }
.ins-papel[aria-expanded="true"] .ic { transform: rotate(180deg); }
.p-gravacao { --pc: #0A84FF; } .p-ref { --pc: #FF9F0A; } .p-apoio { --pc: #30B158; } .p-print { --pc: #BF5AF2; } .p-musica { --pc: #FF375F; } .p-outro { --pc: #8E8E93; }
.ins-papeis { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 2px 2px 44px; }
.ins-papeis button { height: 26px; padding: 0 11px; border-radius: 999px; font-size: 12px; font-weight: 500; background: var(--fill); }
.ins-papeis button:hover { background: var(--fill-sel); }
.ins-papeis button.on { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.ins-dica { display: block; margin-top: 8px; font-size: 11px; line-height: 14px; color: var(--label-2); }
.ins-sug { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; padding: 9px 10px; border-radius: 12px; background: var(--accent-soft); }
.ins-sug > span { flex: 1 1 220px; font-size: 12px; line-height: 16px; font-weight: 500; color: var(--label); }
/* no painel estreito dos ajustes, as 3 portas empilham */
.painel-aj .ins-acoes { grid-template-columns: 1fr; }
.painel-aj .ins-bt { padding: 9px 10px; }
@media (max-width: 760px) { .ins-acoes { grid-template-columns: 1fr; } }
/* resumo do estilo das animações (escolher é no passo "Animação") */
.mini-anim { position: relative; flex: none; width: 30px; height: 42px; border-radius: 7px; overflow: hidden; background: #0d0d10; color: #fff; display: grid; place-items: center; }
.mini-anim > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mini-anim.vazio { background: var(--fill); color: var(--label-2); }
.mini-anim .ref-ic, .fig-ref .ref-ic { position: relative; display: grid; place-items: center; width: 100%; height: 100%; background: rgba(0, 0, 0, .35); }
.mini-anim .ic { width: 15px; height: 15px; }
.mini-anim .mosaico { gap: 1px; }
.valor-anim { font-weight: 600; max-width: 130px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* pedido: o que falta aparece marcado, nunca como [PREENCHER] */
.pedido mark.falta { background: rgba(255, 159, 10, .2); color: #C77700; font-weight: 600; padding: 0 5px; border-radius: 5px; }
:root[data-theme="dark"] .pedido mark.falta { color: #FFB340; }

/* pedido: texto leigo (não pode parecer código) */
.pedido { font: 12px/1.65 var(--font); white-space: pre-wrap; word-break: break-word; color: var(--label-2); margin: 0;
  background: var(--group); border-radius: 14px; padding: 16px 18px; overflow: auto; user-select: text; }
.pedido .k { color: var(--label); font-weight: 600; }
.pedido .c { color: var(--label-3); }

/* ---------- cartão de estilo (galeria) ---------- */
.cartao { position: relative; display: block; width: 100%; text-align: left; border-radius: var(--r-card); }
.cartao .tela { position: relative; display: block; width: 100%; aspect-ratio: 9 / 16; border-radius: var(--r-card); overflow: hidden; background: #0d0d10;
  box-shadow: 0 0 0 .5px rgba(0, 0, 0, .18), 0 4px 14px rgba(0, 0, 0, .1); transition: transform .22s var(--ease), box-shadow .22s var(--ease); }
.cartao .tela::after { content: ""; position: absolute; inset: 50% 0 0; background: linear-gradient(transparent, rgba(0, 0, 0, .74)); pointer-events: none; }
.cartao:hover .tela { transform: translateY(-3px); box-shadow: 0 0 0 .5px rgba(0, 0, 0, .2), 0 14px 28px rgba(0, 0, 0, .2); }
.cartao.on .tela { box-shadow: 0 0 0 2px var(--win), 0 0 0 4.5px var(--accent), 0 14px 28px rgba(0, 0, 0, .2); }
.cartao video, .cartao img.poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.cartao img, .cartao video { -webkit-user-drag: none; user-select: none; }
.cartao .nome-c { position: absolute; left: 8px; right: 8px; bottom: 11px; z-index: 1; color: #fff; font-size: 13px; line-height: 16px; font-weight: 600;
  text-align: center; text-shadow: 0 1px 3px rgba(0, 0, 0, .45); }
/* cursor de seleção de videogame: 4 cantos em pixel que pulsam em volta do escolhido */
.mira { position: absolute; inset: -11px; pointer-events: none; background: var(--accent); opacity: 0;
  -webkit-mask: var(--m-tl) top left / 15px 15px no-repeat, var(--m-tr) top right / 15px 15px no-repeat, var(--m-bl) bottom left / 15px 15px no-repeat, var(--m-br) bottom right / 15px 15px no-repeat;
  mask: var(--m-tl) top left / 15px 15px no-repeat, var(--m-tr) top right / 15px 15px no-repeat, var(--m-bl) bottom left / 15px 15px no-repeat, var(--m-br) bottom right / 15px 15px no-repeat; }
.cartao.on .mira { opacity: 1; animation: mira 1.1s steps(1) infinite; }
@keyframes mira { 50% { inset: -8px; } }
.selo { position: absolute; left: 8px; top: 8px; padding: 3px 8px; border-radius: 99px; font-size: 10.5px; font-weight: 600; color: #fff;
  background: rgba(0, 0, 0, .45); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
/* Estilo novo (01/12, João): faixa "NOVO" na diagonal no canto superior direito; a .tela corta as pontas */
.cartao .faixa-novo { position: absolute; top: 13px; right: -34px; z-index: 2; width: 116px; padding: 3px 0; transform: rotate(45deg);
  background: var(--accent); color: #fff; font-size: 10px; line-height: 13px; font-weight: 800; letter-spacing: .12em; text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .35); pointer-events: none; }
.grade-estilos .cartao .faixa-novo { top: 9px; right: -38px; font-size: 8.5px; line-height: 11px; padding: 2px 0; }
/* "Automático": estilos de verdade lado a lado */
.mosaico { position: absolute; inset: 0; display: grid; grid-template: 1fr 1fr / 1fr 1fr; gap: 2px; background: #0d0d10; }
.mosaico.m8 { grid-template: repeat(4, 1fr) / 1fr 1fr; }
.mosaico img { position: static; width: 100%; height: 100%; object-fit: cover; display: block; }
/* "Copiar de um vídeo" e "Automático": ícone em pixel, versão escura e clara */
.atalho-arte { position: absolute; inset: 0; }
.atalho-arte img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; display: block; }
:root[data-theme="light"] .atalho-arte .so-escuro, :root:not([data-theme="light"]) .atalho-arte .so-claro { display: none; }
/* "Copiar de um vídeo": o vídeo e a cópia dele (como o ícone de copiar), sobre o mesmo quadro desfocado, e a pílula do link */
.ref-vazio { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; background: #0d0d10; container-type: inline-size; }
.ref-vazio img { display: block; object-fit: cover; }
.ref-fundo { position: absolute; inset: -12%; width: 124%; height: 124%; filter: blur(16px) saturate(2) brightness(.3); }
.ref-dupla { position: absolute; left: 50%; top: 40%; width: 44%; aspect-ratio: 9 / 16; transform: translate(-50%, -50%); }
.ref-dupla img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 7px; }
.ref-a { transform: translate(-14%, -6%) rotate(-7deg); opacity: .55; box-shadow: 0 0 0 1px rgba(255, 255, 255, .35); }
.ref-b { transform: translate(14%, 6%) rotate(5deg); box-shadow: 0 0 0 1.5px #fff, 0 10px 24px rgba(0, 0, 0, .5); }
.ref-pilula { position: absolute; left: 50%; top: 73%; transform: translateX(-50%); display: flex; align-items: center; gap: 5px; white-space: nowrap;
  padding: 5px 10px 5px 8px; border-radius: 99px; color: #fff; font-size: 11px; line-height: 14px; font-weight: 600;
  background: rgba(0, 0, 0, .34); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.ref-pilula .ic { width: 13px; height: 13px; flex: none; }
@container (max-width: 110px) { .ref-pilula { font-size: 0; gap: 0; padding: 6px; } }
.ilu { position: absolute; inset: 0; background: linear-gradient(180deg, #2a3242, #171b24); }

/* folha (sheet) com a grade de estilos */
dialog.dlg-estilos { width: min(940px, calc(100vw - 32px)); }
.grade-estilos { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 18px 14px; max-height: min(64vh, 660px); overflow: auto;
  padding: 12px 12px 14px; margin: 0 -12px; outline: none; }
.grade-estilos .cartao .nome-c { font-size: 11.5px; line-height: 14px; bottom: 8px; }

/* aviso que some sozinho */
.aviso { position: fixed; left: 50%; bottom: 96px; transform: translate(-50%, 20px); opacity: 0; z-index: 50; padding: 10px 18px; border-radius: 99px;
  font-weight: 500; pointer-events: none; transition: .25s var(--ease); }
.aviso.ve { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* tema claro: o ladrilho de fogo é branco em cima, então ícone e texto por cima dele ficam escuros */
:root:not([data-theme="dark"]) .faixa-img.dither { color: #7A2A10; }

/* ---------- templates de legenda: os mesmos números do motor (motor/reels/estilos.py), em % da largura do vídeo ----------
   --k = escala (1 no celular da prévia, maior na miniatura do botão). Destaque = a palavra em <em> */
@font-face { font-family: "Fredoka K"; src: url("fontes/FredokaLegenda-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
.bloco { --k: 1; display: inline-block; white-space: nowrap; }
.leg-amostra .bloco { --k: 1.32; }
.l-casa { font: 700 calc(6.85cqw * var(--k))/1.15 "TikTok Sans K", Arial, sans-serif; color: #FFE01B; -webkit-text-stroke: calc(.4cqw * var(--k)) #000; paint-order: stroke fill; }
.l-casa em { font: italic 700 calc(8.9cqw * var(--k)) "Playfair K", Georgia, serif; }
.l-classica { font: 700 calc(7.04cqw * var(--k))/1.15 "TikTok Sans K", Arial, sans-serif; color: #fff; -webkit-text-stroke: calc(1.3cqw * var(--k)) #000; paint-order: stroke fill;
  text-shadow: calc(.37cqw * var(--k)) calc(.37cqw * var(--k)) 0 #000; }
.l-classica em { font-style: normal; color: #FFD400; }
.l-aesthetic { font: 500 calc(5.93cqw * var(--k))/1.15 "TikTok Sans K", Arial, sans-serif; color: #F5D652; -webkit-text-stroke: calc(.37cqw * var(--k)) rgba(0, 0, 0, .44); paint-order: stroke fill;
  text-shadow: 0 calc(.2cqw * var(--k)) calc(.5cqw * var(--k)) rgba(0, 0, 0, .56); }
.l-aesthetic em { font: italic 700 calc(7.4cqw * var(--k)) "Playfair K", Georgia, serif; }
.l-editorial { font: italic 700 calc(7.6cqw * var(--k))/1.15 "Playfair K", Georgia, serif; color: #fff; -webkit-text-stroke: calc(.46cqw * var(--k)) rgba(0, 0, 0, .75); paint-order: stroke fill;
  text-shadow: calc(.28cqw * var(--k)) calc(.28cqw * var(--k)) 0 rgba(0, 0, 0, .62); }
.l-editorial em { color: #FFE01B; }
.l-pilula { font: 700 calc(5.37cqw * var(--k))/1.2 "TikTok Sans K", Arial, sans-serif; color: #000; background: #fff; padding: calc(.5cqw * var(--k)) calc(1.1cqw * var(--k)); }
.l-pilula em { font: italic 700 calc(6.7cqw * var(--k)) "Playfair K", Georgia, serif; }
.l-arredondada { font: 700 calc(7.22cqw * var(--k))/1.15 "Fredoka K", "Arial Rounded MT Bold", sans-serif; color: #fff; -webkit-text-stroke: calc(1.1cqw * var(--k)) #000; paint-order: stroke fill;
  text-shadow: calc(.28cqw * var(--k)) calc(.28cqw * var(--k)) 0 #000; }
.l-arredondada em { font-style: normal; color: #FF8A1F; }
/* tradicional (10/11): legenda de filme, a frase inteira parada embaixo; sem destaque */
.l-tradicional { font: 500 calc(5cqw * var(--k))/1.25 "TikTok Sans K", Arial, sans-serif; color: #fff; -webkit-text-stroke: calc(.28cqw * var(--k)) #000; paint-order: stroke fill;
  text-shadow: calc(.2cqw * var(--k)) calc(.2cqw * var(--k)) calc(.3cqw * var(--k)) rgba(0, 0, 0, .5); text-align: center; }
.l-tradicional em { font-style: normal; }

/* ---------- esquema em placeholder (como o painel antigo): listras = insert, silhueta = você ---------- */
:root { --ciclo-e: 4.8s; }
.esq { position: absolute; inset: 0; overflow: hidden; background: #1a1a1f; container-type: size; }
.esq > span { position: absolute; left: 0; right: 0; }
.esq-ins { top: 0; height: 50%; overflow: hidden; background: repeating-linear-gradient(115deg, #4f6fd0 0 6cqw, #3a58b8 6cqw 12cqw);
  animation: esq-rola 1.6s linear infinite, esq-cortes 3s steps(1) infinite; }
@keyframes esq-rola { to { background-position: 26.5cqw 0; } }
@keyframes esq-cortes { 0% { filter: none; } 33% { filter: hue-rotate(115deg); } 66% { filter: hue-rotate(230deg) saturate(.8); } }
.esq-ins > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.esq.i-motion .esq-ins { background: #0d0d10; animation: none; }
.esq.fC.i-motion .esq-ins { animation: esq-Ci var(--ciclo-e) steps(1) infinite; }
.esq.i-misto .esq-ins > img { animation: esq-misto 3.2s steps(1) infinite; }
@keyframes esq-misto { 0% { opacity: 0; } 50% { opacity: 1; } }
.esq-mo { position: absolute; inset: 0; display: grid; place-items: center; }
.esq-mo i { position: absolute; font: 800 12cqw/1 var(--font); font-style: normal; letter-spacing: -.04em; color: #F2EFE8; opacity: 0; animation: esq-bate 3s infinite both; }
.esq-mo i:nth-child(2) { animation-delay: 1s; color: var(--accent); } .esq-mo i:nth-child(3) { animation-delay: 2s; }
@keyframes esq-bate { 0% { opacity: 0; transform: scale(.5); } 6% { opacity: 1; transform: scale(1.12); } 10% { transform: scale(1); } 30% { opacity: 1; } 33%, 100% { opacity: 0; } }
.esq-voce { top: 50%; height: 50%; background: radial-gradient(circle at 50% 42%, #3a2c22 0 15%, transparent 15.6%), radial-gradient(ellipse 60% 40% at 50% 100%, #3a2c22 0 97%, transparent 100%), #dccfbf; }
.esq-tag { position: absolute; left: 5cqw; top: 5cqw; z-index: 3; padding: .25em .7em; border-radius: 99px; font: 700 clamp(8px, 6cqw, 11px)/1.2 var(--font); font-style: normal;
  letter-spacing: .06em; text-transform: uppercase; color: #fff; background: rgba(0, 0, 0, .55); white-space: nowrap; }
.esq-voce .esq-tag { color: #3a2c22; background: rgba(255, 255, 255, .7); }
/* na prévia grande, as etiquetas descem pro canto de baixo (o título e a legenda ficam em cima e no meio) */
.fone .esq-ins .esq-tag, .fone .esq-voce .esq-tag { top: auto; bottom: 3.5cqw; }
.fone .esq-mo i { font-size: 9cqw; }
.esq-leg { left: 24% !important; right: 24% !important; top: calc(50% - 1.6cqh); height: 3.2cqh; border-radius: 2cqh; background: #FFE01B; box-shadow: 0 0 0 .6cqw #000; z-index: 2; }
/* B: dividida e, nas frases fortes, você em tela cheia */
.esq.fB .esq-voce, .esq.fref .esq-voce { animation: esq-B var(--ciclo-e) steps(1) infinite; }
@keyframes esq-B { 0% { top: 50%; height: 50%; } 50% { top: 0; height: 100%; } }
.esq.fB .esq-leg { animation: esq-legB var(--ciclo-e) steps(1) infinite; }
@keyframes esq-legB { 0% { top: calc(50% - 1.6cqh); } 50% { top: 70%; } }
/* C: dividida, insert em tela cheia, você em tela cheia */
.esq.fC .esq-ins { animation: esq-rola 1.6s linear infinite, esq-cortes 3s steps(1) infinite, esq-Ci var(--ciclo-e) steps(1) infinite; }
@keyframes esq-Ci { 0% { height: 50%; } 33.33% { height: 100%; } 66.66% { height: 50%; } }
.esq.fC .esq-voce { animation: esq-Cv var(--ciclo-e) steps(1) infinite; }
@keyframes esq-Cv { 0% { top: 50%; height: 50%; } 33.33% { top: 100%; height: 0; } 66.66% { top: 0; height: 100%; } }
.esq.fC .esq-leg { animation: esq-legC var(--ciclo-e) steps(1) infinite; }
@keyframes esq-legC { 0% { top: calc(50% - 1.6cqh); } 33.33% { top: 70%; } }
/* D: fundo verde trocado pelo insert; você recortado na frente */
.esq.fD .esq-ins { height: 100%; }
.esq.fD .esq-voce { top: 34%; height: 66%; background: radial-gradient(circle at 50% 40%, #3a2c22 0 13%, transparent 13.6%), radial-gradient(ellipse 50% 40% at 50% 100%, #3a2c22 0 97%, transparent 100%); }
.esq.fD .esq-voce .esq-tag { top: auto; bottom: 4cqw; left: 50%; transform: translateX(-50%); }
.esq.fD .esq-leg { top: 30%; }
/* E e Cards: você em tela cheia, com a animação (ou o cartão) por cima */
.esq.fE .esq-ins, .esq.fcards .esq-ins { display: none; }
.esq.fE .esq-voce, .esq.fcards .esq-voce { top: 0; height: 100%; }
.esq.fE .esq-voce .esq-tag, .esq.fcards .esq-voce .esq-tag { top: auto; bottom: 5cqw; }
.esq.fE .esq-leg, .esq.fcards .esq-leg { top: 70%; }
/* Corte de editor (pele Caixa): tudo numa caixa de cantos redondos sobre o preto; você e o insert se revezam nela */
.esq.feditor { background: #000; }
.esq.feditor .esq-voce, .esq.feditor .esq-ins { left: 5% !important; right: 5% !important; top: 30.5%; height: 39%; border-radius: 3.5cqw; }
.esq.feditor .esq-ins { z-index: 1; animation: esq-rola 1.6s linear infinite, esq-ed 3s steps(1) infinite; }
.esq.feditor .esq-leg { left: 41% !important; right: 41% !important; top: calc(50% - .9cqh); height: 1.8cqh; background: #fff; box-shadow: none; }
@keyframes esq-ed { 0% { opacity: 0 } 45% { opacity: 1 } 75% { opacity: 0 } }
.esq-anim { left: 12% !important; right: 12% !important; top: 12%; height: 22%; z-index: 2; background: var(--accent); border: .8cqw solid #111; box-shadow: 1.6cqw 1.6cqw 0 #111;
  animation: esq-entra 2.4s ease-in-out infinite; }
.esq-anim .esq-tag { left: 50%; top: 50%; transform: translate(-50%, -50%); background: rgba(0, 0, 0, .3); }
.esq-card { left: 12% !important; right: 12% !important; top: 10%; height: 26%; z-index: 2; display: flex; flex-direction: column; justify-content: center; gap: 2.4cqw;
  padding: 0 7cqw; border-radius: 4cqw; background: #fff; box-shadow: 0 2cqw 6cqw rgba(0, 0, 0, .25); animation: esq-entra 2.4s ease-in-out infinite; }
.esq-card i { display: block; height: 3cqw; border-radius: 2cqw; background: #d9d4cc; }
.esq-card i:first-child { width: 45%; height: 5cqw; background: var(--accent); } .esq-card i:last-child { width: 70%; }
@keyframes esq-entra { 0%, 10% { transform: translateY(30%); opacity: 0; } 28%, 82% { transform: none; opacity: 1; } 100% { opacity: 0; } }
/* copiar de um vídeo: o vídeo de referência com a pílula do link por cima */
.esq-link { left: 50% !important; right: auto !important; top: 50%; z-index: 4; transform: translate(-50%, -50%); display: flex; align-items: center; gap: .4em; white-space: nowrap;
  padding: .45em .9em .45em .7em; border-radius: 99px; color: #fff; font: 700 max(8.5px, 6.4cqw)/1.2 var(--font); background: rgba(0, 0, 0, .62); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); }
.esq-link .ic { width: 1.2em; height: 1.2em; flex: none; }
.esq.fref .esq-leg { display: none; }

/* ---------- etapa 2: de onde vêm os inserts, o que buscar e o vídeo a copiar ---------- */
.fontes-ins { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.fontes-ins button { position: relative; display: flex; align-items: center; gap: 16px; padding: 14px 16px 14px 14px; border-radius: 20px; text-align: left; background: var(--card);
  box-shadow: inset 0 0 0 1px var(--sep); transition: box-shadow .16s var(--ease), background .16s var(--ease), transform .16s var(--ease); }
.fontes-ins button:hover:not(.on) { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 50%, transparent); transform: translateY(-1px); }
.fontes-ins button.on { background: color-mix(in srgb, var(--accent) 8%, var(--card)); box-shadow: inset 0 0 0 2px var(--accent); }
.fi-tela { position: relative; flex: none; width: 62px; aspect-ratio: 9 / 16; border-radius: 10px; overflow: hidden; box-shadow: 0 0 0 1px rgba(0, 0, 0, .25), 0 6px 14px rgba(0, 0, 0, .2); }
.fi-tx { min-width: 0; padding-right: 18px; }
.fi-tx b { display: block; font-size: 16px; line-height: 21px; font-weight: 700; }
.fi-tx small { display: block; margin-top: 4px; font-size: 12.5px; line-height: 17px; color: var(--label-2); }
.fi-check { position: absolute; top: 12px; right: 12px; width: 22px; height: 22px; border-radius: 50%; display: none; place-items: center; background: var(--accent); color: var(--accent-ink); }
.fi-check svg { width: 14px; height: 14px; }
.fontes-ins button.on .fi-check { display: grid; }
.bloco-e2 { margin-top: 18px; padding: 18px 20px 20px; border-radius: 20px; background: var(--card); box-shadow: inset 0 0 0 1px var(--sep); }
.bloco-e2 h3 { margin: 0 0 12px; font-size: 16px; line-height: 21px; font-weight: 700; }
.bloco-e2 h3 small { margin-left: 8px; font-size: 12px; font-weight: 500; color: var(--label-2); }
.bloco-e2 textarea { display: block; width: 100%; min-height: 76px; padding: 10px 14px; border-radius: 12px; font-size: 14px; }
.bloco-e2 .campo-arq input[type=text] { height: 40px; padding: 0 14px; border-radius: 12px; font-size: 14px; }
.bloco-e2 .campo-arq > .btn { height: 40px; }
.dica-e2 { display: block; margin-top: 8px; font-size: 12px; line-height: 16px; color: var(--label-2); }
.dica-e2:empty { display: none; }
.linha-e2 { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 14px; }
.linha-e2 > span { color: var(--label-2); font-weight: 500; }
.linha-e2 .seg button { height: 28px; padding: 0 16px; }
@media (max-width: 900px) { .fontes-ins { grid-template-columns: 1fr; } }

/* ---------- régua de pontos fixos (padrão Apple): trilho fino, marcas, bolinha branca; o recomendado leva etiqueta ---------- */
.regua { --n: 4; --v: 0; position: relative; width: 100%; padding-top: 2px; }
.regua input[type=range] { display: block; width: 100%; height: 22px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
.regua input[type=range]::-webkit-slider-runnable-track { height: 4px; border-radius: 2px;
  background: linear-gradient(to right, var(--accent) 0 calc(var(--v) / var(--n) * 100%), var(--fill-sel) calc(var(--v) / var(--n) * 100%) 100%); }
.regua input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -8px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 0 .5px rgba(0, 0, 0, .14), 0 2px 6px rgba(0, 0, 0, .28); transition: transform .12s var(--ease); }
.regua input[type=range]:active::-webkit-slider-thumb { transform: scale(1.08); }
.regua-marcas { position: relative; height: 36px; margin: 3px 10px 0; }
.regua-marcas span { position: absolute; left: calc(var(--i) / var(--n) * 100%); top: 0; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-size: 11.5px; line-height: 14px; font-weight: 500; color: var(--label-2); white-space: nowrap; cursor: pointer; }
.regua-marcas span::before { content: ""; width: 1.5px; height: 5px; border-radius: 1px; background: var(--label-3); }
.regua-marcas span.on { color: var(--label); font-weight: 600; }
.regua-marcas em { font-style: normal; font-size: 9px; line-height: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent);
  background: var(--accent-soft); padding: 0 6px; border-radius: 99px; }
.regua-marcas span:first-child { transform: translateX(-10px); align-items: flex-start; }
.regua-marcas span:last-child { transform: translateX(calc(-100% + 10px)); align-items: flex-end; }

/* ---------- esquema deitado (16:9): insert à esquerda, você à direita; legenda embaixo no meio ---------- */
.esq.h .esq-ins { top: 0; left: 0; right: auto; width: 50%; height: 100%; }
.esq.h .esq-voce { top: 0; left: 50%; right: auto; width: 50%; height: 100%; }
.esq.h .esq-leg { top: 82%; left: 36% !important; right: 36% !important; height: 5cqh; }
.esq.h.fB .esq-voce { animation: esq-Bh var(--ciclo-e) steps(1) infinite; }
@keyframes esq-Bh { 0% { left: 50%; width: 50%; } 50% { left: 0; width: 100%; } }
.esq.h.fB .esq-leg, .esq.h.fC .esq-leg { animation: none; }
.esq.h.fC .esq-ins { animation: esq-rola 1.6s linear infinite, esq-cortes 3s steps(1) infinite, esq-Chi var(--ciclo-e) steps(1) infinite; }
.esq.h.fC.i-motion .esq-ins { animation: esq-Chi var(--ciclo-e) steps(1) infinite; }
@keyframes esq-Chi { 0% { width: 50%; } 33.33% { width: 100%; } 66.66% { width: 50%; } }
.esq.h.fC .esq-voce { animation: esq-Chv var(--ciclo-e) steps(1) infinite; }
@keyframes esq-Chv { 0% { left: 50%; width: 50%; } 33.33% { left: 100%; width: 0; } 66.66% { left: 0; width: 100%; } }
.esq.h.fD .esq-ins { width: 100%; }
.esq.h.fD .esq-voce { left: 30%; width: 40%; top: 20%; height: 80%; }
.esq.h.fE .esq-voce, .esq.h.fcards .esq-voce { left: 0; width: 100%; }
.esq.h .esq-anim, .esq.h .esq-card { left: 6% !important; right: auto !important; width: 30%; top: 14%; height: 40%; }
.esq.h.fref .esq-voce { animation: esq-Bh var(--ciclo-e) steps(1) infinite; }
.esq.h .esq-voce { background: radial-gradient(circle at 50% 40%, #3a2c22 0 14%, transparent 14.6%), radial-gradient(ellipse 60% 34% at 50% 100%, #3a2c22 0 97%, transparent 100%), #dccfbf; }
.esq.h.fD .esq-voce { background: radial-gradient(circle at 50% 40%, #3a2c22 0 13%, transparent 13.6%), radial-gradient(ellipse 50% 40% at 50% 100%, #3a2c22 0 97%, transparent 100%); }
.esq.h .esq-tag { font-size: clamp(8px, 3.4cqw, 11px); }
