/* editor.css — editor de video ao vivo (26/08/2026). Tema escuro de sala de edicao. */
:root {
  --ed-bg: #101214; --ed-painel: #181b1f; --ed-borda: #262a30; --ed-texto: #e8eaed; --ed-fraco: #9aa0a8;
  --ed-acento: #d4ff3c; --ed-acento-ink: #0a0a0a; --ed-sel: #6fb3ff; --ed-perigo: #ff6b6b;
  --ed-fonte: 'Inter Tight', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--ed-bg); color: var(--ed-texto); font-family: var(--ed-fonte); font-size: 14px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h3, h4 { margin: 0 0 10px; font-weight: 600; }
h3 { font-size: 16px; } h4 { font-size: 12px; color: var(--ed-fraco); text-transform: uppercase; letter-spacing: .04em; margin-top: 18px; }

.ed { display: grid; grid-template-rows: 52px auto minmax(0, 1fr) 240px; grid-template-columns: minmax(0, 1fr); height: 100vh; width: 100vw; overflow: hidden; }
.ed-topo { grid-row: 1; display: flex; align-items: center; gap: 16px; padding: 0 16px; background: var(--ed-painel); border-bottom: 1px solid var(--ed-borda); }
.ed-voltar { color: var(--ed-fraco); text-decoration: none; font-size: 13px; }
.ed-voltar::before { content: '\2190  '; }
.ed-titulo { flex: 1; display: flex; align-items: baseline; gap: 12px; min-width: 0; }
.ed-titulo strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.ed-salvo { font-size: 12px; color: var(--ed-fraco); }
.ed-salvo--sujo { color: #f5c542; } .ed-salvo--erro { color: var(--ed-perigo); } .ed-salvo--ok { color: #7bd88f; }
.ed-topo-acoes { display: flex; gap: 8px; }
.ed-btn { background: #23272d; border: 1px solid var(--ed-borda); border-radius: 8px; padding: 7px 14px; color: var(--ed-texto); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.ed-btn:hover { background: #2c3138; }
.ed-btn:disabled { opacity: .4; cursor: default; }
.ed-btn-primario { background: var(--ed-acento); color: var(--ed-acento-ink); border-color: var(--ed-acento); font-weight: 600; }
.ed-btn-primario:hover { background: #e2ff70; }
.ed-aviso { grid-row: 2; margin: 0; padding: 8px 16px; background: #3a2f12; color: #ffd982; font-size: 13px; border-bottom: 1px solid #5a4a1e; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ed-aviso .ed-btn { padding: 4px 10px; font-size: 12px; }
.ed-aviso[hidden] { display: none; }

.ed-corpo { grid-row: 3; display: grid; grid-template-columns: 250px minmax(0, 1fr) 340px; min-height: 0; min-width: 0; }
.ed-biblioteca, .ed-inspetor { background: var(--ed-painel); padding: 14px; overflow-y: auto; overflow-x: hidden; min-width: 0; }
.ed-biblioteca { border-right: 1px solid var(--ed-borda); }
.ed-inspetor { border-left: 1px solid var(--ed-borda); }
.ed-biblioteca h4:first-child { margin-top: 0; }
.ed-bib-grade { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ed-bib-grade button, .ed-bib-lista button { background: #1f2329; border: 1px solid var(--ed-borda); border-radius: 10px; padding: 10px 8px; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; color: var(--ed-texto); }
.ed-bib-grade button:hover, .ed-bib-lista button:hover { border-color: #3a4048; background: #242930; }
.ed-bib-lista { display: flex; flex-direction: column; gap: 6px; }
.ed-bib-lista button { flex-direction: row; justify-content: flex-start; padding: 9px 12px; }
.ed-bib-lista button:disabled { opacity: .4; }
.ed-bib-amostra { font-size: 24px; font-weight: 700; line-height: 1; }
.ed-bib-amostra--titulo { font-family: 'Cormorant Garamond', serif; font-size: 30px; }
.ed-bib-amostra--etiqueta { font-size: 11px; background: var(--ed-acento); color: var(--ed-acento-ink); padding: 3px 8px; border-radius: 6px; }
.ed-bib-amostra--numero { font-size: 28px; }
.ed-bib-nota { color: var(--ed-fraco); font-size: 12px; line-height: 1.4; margin-top: 18px; }

.ed-palco { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 14px; min-height: 0; min-width: 0; overflow: hidden; background: #0b0c0e; }
.ed-quadro { position: relative; height: calc(100% - 48px); aspect-ratio: 9 / 16; max-width: 100%; max-height: calc(100% - 48px); }
.ed-quadro canvas { width: 100%; height: 100%; display: block; border-radius: 12px; background: #000; box-shadow: 0 10px 40px rgba(0,0,0,.6); cursor: default; }
.ed-selecao { position: absolute; border: 2px solid var(--ed-sel); border-radius: 4px; pointer-events: none; box-shadow: 0 0 0 1px rgba(0,0,0,.5); }
.ed-selecao[hidden] { display: none; }
/* A alça vale pra TUDO que a moldura seleciona (01/09): texto, legenda e logo escalam
   pelo arrasto da bolinha — antes só texto tinha, e o dono dependia do slider do menu. */
.ed-selecao .ed-alca { display: block; position: absolute; right: -7px; bottom: -7px; width: 14px; height: 14px; background: var(--ed-sel); border: 2px solid #fff; border-radius: 50%; cursor: nwse-resize; pointer-events: auto; }
.ed-transporte { display: flex; align-items: center; gap: 10px; }
.ed-btn-mini { padding: 5px 10px; font-size: 12px; }
.ed-btn-mini.on { border-color: var(--ed-acento); color: var(--ed-acento); }
.ed-guia { position: absolute; inset: 0; pointer-events: none; border-radius: 12px; overflow: hidden; }
.ed-guia[hidden] { display: none; }
.ed-guia-topo, .ed-guia-base { position: absolute; left: 0; right: 0; background: rgba(255, 80, 80, .18); border: 1px dashed rgba(255, 120, 120, .8); color: #ffd0d0; font-size: 10px; padding: 4px 6px; }
.ed-guia-topo { top: 0; height: 12%; }
.ed-guia-base { bottom: 0; height: 16%; display: flex; align-items: flex-end; }
.ed-guia-lado { position: absolute; right: 0; top: 40%; bottom: 16%; width: 18%; background: rgba(255, 80, 80, .12); border-left: 1px dashed rgba(255, 120, 120, .6); }
.ins-acervo { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ins-acervo-item { padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: #0f1114; aspect-ratio: 1; }
.ins-acervo-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ins-acervo-item:hover { border-color: var(--ed-acento); }
.ed-btn-play { min-width: 90px; justify-content: center; }
.ed-tempo { color: var(--ed-fraco); font-variant-numeric: tabular-nums; min-width: 60px; }

/* inspetor */
.ins .ins-campo { display: block; margin-bottom: 12px; }
.ins .ins-campo > span { display: block; font-size: 12px; color: var(--ed-fraco); margin-bottom: 5px; }
.ins .ins-campo > span em { font-style: normal; color: #7bd88f; font-size: 11px; margin-left: 6px; }
.ins input[type=text], .ins input[type=number], .ins textarea, .ins select { width: 100%; background: #0f1114; border: 1px solid var(--ed-borda); border-radius: 8px; padding: 8px 10px; color: var(--ed-texto); }
.ins textarea { resize: vertical; }
.ins-range { display: flex; align-items: center; gap: 8px; }
.ins-range input { flex: 1; min-width: 0; accent-color: var(--ed-acento); }
.ins-range output { font-size: 12px; color: var(--ed-fraco); min-width: 46px; text-align: right; font-variant-numeric: tabular-nums; }
.ins-cores { display: flex; gap: 8px; flex-wrap: wrap; }
.ins-cor { width: 28px; height: 28px; border-radius: 50%; border: 2px solid transparent; box-shadow: 0 0 0 1px rgba(255,255,255,.18); padding: 0; position: relative; }
.ins-cor--on { border-color: var(--ed-sel); box-shadow: 0 0 0 2px #fff; }
.ins-cor--nenhum { background: repeating-linear-gradient(45deg, #333 0 4px, #555 4px 8px); }
.ins-cor--nenhum::after { content: ''; position: absolute; left: 4px; right: 4px; top: 50%; height: 2px; background: var(--ed-perigo); transform: rotate(-45deg); }
.ins-cor--livre { background: conic-gradient(red, yellow, lime, cyan, blue, magenta, red); overflow: hidden; }
.ins-cor--livre input { opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.ins-segmento { display: flex; border: 1px solid var(--ed-borda); border-radius: 8px; overflow: hidden; }
.ins-segmento button { flex: 1; background: #0f1114; border: 0; padding: 7px; color: var(--ed-fraco); }
.ins-segmento button.on { background: #2c3138; color: #fff; }
.ins-chips, .ins-grade-pos { display: flex; flex-wrap: wrap; gap: 6px; }
.ins-grade-pos { display: grid; grid-template-columns: repeat(3, 1fr); }
.ins-chip, .ins-grade-pos button { background: #0f1114; border: 1px solid var(--ed-borda); border-radius: 999px; padding: 6px 12px; font-size: 12px; color: var(--ed-texto); }
.ins-grade-pos button { border-radius: 8px; padding: 8px 4px; font-size: 11px; }
.ins-chip.on, .ins-grade-pos button.on { background: var(--ed-acento); color: var(--ed-acento-ink); border-color: var(--ed-acento); font-weight: 600; }
.ins-toggle { display: inline-flex; align-items: center; gap: 8px; margin: 4px 14px 10px 0; font-size: 13px; }
.ins-toggle input { accent-color: var(--ed-acento); width: 16px; height: 16px; }
.ins-linha { display: flex; gap: 10px; flex-wrap: wrap; }
.ins-linha .ins-campo { flex: 1; min-width: 120px; }
.ins-linha--botoes { margin: 6px 0 12px; }
.ins-btn { background: #23272d; border: 1px solid var(--ed-borda); border-radius: 8px; padding: 7px 12px; font-size: 13px; color: var(--ed-texto); }
.ins-btn:hover { background: #2c3138; }
.ins-btn--perigo { color: var(--ed-perigo); }
.ins-btn--primario { background: var(--ed-acento); color: var(--ed-acento-ink); border-color: var(--ed-acento); font-weight: 600; }
.ins-dica { color: var(--ed-fraco); font-size: 12px; line-height: 1.45; }
.ins-fatos { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0 0 12px; font-size: 13px; }
.ins-fatos dt { color: var(--ed-fraco); } .ins-fatos dd { margin: 0; }
.ins-atalhos { list-style: none; padding: 0; margin: 0; font-size: 12px; color: var(--ed-fraco); display: grid; gap: 4px; }
kbd { background: #23272d; border: 1px solid #3a4048; border-radius: 4px; padding: 1px 5px; font-size: 11px; color: #fff; }
.ins-palavras { display: flex; flex-direction: column; gap: 6px; max-height: 260px; overflow-y: auto; padding-right: 4px; }
.ins-bloco { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px; background: #0f1114; border-radius: 8px; }
.ins-pal { background: transparent; border: 1px solid transparent; border-radius: 5px; padding: 3px 5px; font-size: 12px; color: var(--ed-texto); width: auto; }
.ins-pal:hover, .ins-pal:focus { border-color: #3a4048; background: #1a1e23; outline: 0; }
.ins-pal--ed { color: var(--ed-acento); }

/* timeline */
.ed-timeline { grid-row: 4; background: var(--ed-painel); border-top: 1px solid var(--ed-borda); display: flex; flex-direction: column; min-height: 0; min-width: 0; width: 100%; }
.tl-barra { display: flex; align-items: center; gap: 6px; padding: 6px 12px; border-bottom: 1px solid var(--ed-borda); font-size: 12px; }
.tl-btn { background: #23272d; border: 1px solid var(--ed-borda); border-radius: 6px; padding: 4px 10px; font-size: 12px; color: var(--ed-texto); }
.tl-btn:hover { background: #2c3138; }
.tl-sep { width: 1px; height: 18px; background: var(--ed-borda); margin: 0 6px; }
.tl-tempo { color: var(--ed-fraco); font-variant-numeric: tabular-nums; margin-left: 6px; }
.tl-dica { margin-left: auto; color: #5f6672; }
.tl-rolagem { flex: 1; min-height: 0; min-width: 0; width: 100%; overflow: auto; position: relative; }
.tl-conteudo { position: relative; user-select: none; }
.tl-linha { display: flex; height: 40px; border-bottom: 1px solid #1f2328; }
.tl-linha--regua { height: 22px; background: #14171a; position: sticky; top: 0; z-index: 3; }
.tl-rotulo { position: sticky; left: 0; width: 96px; flex: 0 0 96px; background: var(--ed-painel); border-right: 1px solid var(--ed-borda); font-size: 11px; color: var(--ed-fraco); padding: 0 10px; display: flex; align-items: center; z-index: 2; }
.tl-linha--regua .tl-rotulo { background: #14171a; }
.tl-lane { position: relative; flex: 1; }
.tl-regua .tl-tick { position: absolute; top: 0; height: 100%; border-left: 1px solid #3a4048; font-size: 10px; color: var(--ed-fraco); padding-left: 3px; line-height: 22px; }
.tl-regua .tl-tick--meio { border-left-color: #262a30; height: 40%; }
.tl-cta-marca { position: absolute; top: 0; height: 100%; background: rgba(212,255,60,.12); border-left: 1px dashed var(--ed-acento); font-size: 10px; color: var(--ed-acento); padding-left: 4px; line-height: 22px; white-space: nowrap; overflow: hidden; }
.tl-clipe { position: absolute; top: 4px; height: 32px; background: linear-gradient(180deg, #2e5d9a, #24487a); border: 1px solid #3b78c4; border-radius: 6px; overflow: hidden; display: flex; align-items: center; cursor: grab; }
.tl-clipe--foto { background: linear-gradient(180deg, #2f7a5a, #245e46); border-color: #3f9f76; }
.tl-clipe--cta { background: linear-gradient(180deg, #4c4a2a, #3a3820); border-color: #7b7640; }
.tl-clipe.tl-sel, .tl-texto.tl-sel, .tl-legenda-fundo.tl-sel, .tl-trilha-barra.tl-sel { outline: 2px solid var(--ed-sel); outline-offset: -1px; }
.tl-clipe.tl-arrastando { opacity: .7; z-index: 5; }
.tl-clipe-rotulo, .tl-texto-rotulo { flex: 1; font-size: 11px; padding: 0 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
/* miniaturas e onda (01/09): o canvas fica ATRAS; rotulo e alcas sobem de camada */
.tl-mini { position: absolute; inset: 0; z-index: 0; pointer-events: none; border-radius: 5px; }
.tl-clipe-rotulo { position: relative; z-index: 1; text-shadow: 0 1px 3px rgba(0,0,0,.85); }
.tl-clipe .tl-alca { position: relative; z-index: 2; }
.tl-onda { position: absolute; inset: 0; z-index: 0; pointer-events: none; border-radius: 6px; }
.tl-trilha-nome { position: relative; z-index: 1; text-shadow: 0 1px 3px rgba(0,0,0,.7); }
.tl-alca { width: 8px; height: 100%; background: rgba(255,255,255,.18); cursor: ew-resize; flex: 0 0 8px; }
.tl-alca:hover { background: rgba(255,255,255,.4); }
.tl-texto { position: absolute; height: 22px; background: #5a3f8a; border: 1px solid #8a63c9; border-radius: 5px; display: flex; align-items: center; overflow: hidden; cursor: grab; }
.tl-texto--gancho { background: #7a4d1f; border-color: #c48440; }
.tl-texto--sobre { background: #1c5f5f; border-color: #3aa7a7; }
.tl-texto--adesivo { background: #5f2f56; border-color: #a95a9a; }
.ed-bib-grade--adesivos button { font-size: 11px; padding: 8px 4px; }
.ed-bib-kit { width: 100%; margin-top: 8px; padding: 9px 10px; font-size: 12px; background: transparent; border: 1px dashed var(--ed-borda); border-radius: 8px; color: var(--ed-texto); cursor: pointer; }
.ed-bib-kit:hover { border-color: var(--ed-acento); color: var(--ed-acento); }
.tl-lane--legenda { overflow: hidden; }
.tl-legenda-fundo { position: absolute; top: 6px; height: 28px; background: #1d2a1f; border-radius: 6px; }
.tl-legenda-off { font-size: 11px; color: var(--ed-fraco); padding: 0 8px; line-height: 28px; }
.tl-bloco { position: absolute; top: 12px; height: 16px; background: #4caf6e; border-radius: 3px; opacity: .85; }
.tl-trilha-barra { position: absolute; top: 8px; height: 24px; background: repeating-linear-gradient(90deg, #6a4a1a 0 6px, #7d5a22 6px 12px); border-radius: 6px; font-size: 11px; line-height: 24px; padding: 0 8px; color: #ffe0a8; white-space: nowrap; overflow: hidden; cursor: pointer; }
.tl-trilha-barra--off { background: #22262b; color: var(--ed-fraco); }
.tl-cabeca { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--ed-acento); z-index: 4; pointer-events: none; }
.tl-cabeca-topo { position: absolute; top: 0; left: -6px; width: 14px; height: 14px; background: var(--ed-acento); clip-path: polygon(0 0, 100% 0, 50% 100%); }

/* hub */
.ed-hub { position: fixed; inset: 0; display: grid; grid-template-rows: 52px 1fr; background: var(--ed-bg); z-index: 40; }
.ed-hub[hidden] { display: none; }
.ed-hub-corpo { overflow-y: auto; padding: 24px; max-width: 1180px; width: 100%; margin: 0 auto; }
.ed-hub-corpo h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--ed-fraco); margin: 22px 0 10px; }
.ed-hub-corpo h2:first-child { margin-top: 0; }
.ed-hub-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.ed-hub-card { display: flex; flex-direction: column; gap: 6px; background: var(--ed-painel); border: 1px solid var(--ed-borda); border-radius: 14px; padding: 14px; text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; }
a.ed-hub-card:hover { border-color: var(--ed-acento); transform: translateY(-1px); }
.ed-hub-card strong { font-size: 14px; line-height: 1.3; }
.ed-hub-card p { margin: 0; color: var(--ed-fraco); font-size: 12px; line-height: 1.4; }
.ed-hub-tag { align-self: flex-start; font-size: 11px; padding: 2px 8px; border-radius: 999px; background: #23272d; color: var(--ed-fraco); }
.ed-hub-tag--pronto { background: var(--ed-acento); color: var(--ed-acento-ink); font-weight: 600; }
.ed-hub-tag--montando { background: #3a2f12; color: #ffd982; }
.ed-hub-video { width: 100%; aspect-ratio: 9 / 16; max-height: 220px; object-fit: cover; border-radius: 10px; background: #000; }
.ed-hub-vazio { color: var(--ed-fraco); }
.ed-hub-cliente { margin: 0 0 14px; color: var(--ed-fraco); font-size: 13px; }
.ed-hub-cliente a { color: var(--ed-acento); }
.ed-hub-card .ed-btn { align-self: flex-start; margin-top: 4px; }
button.ed-hub-card { text-align: left; cursor: pointer; font: inherit; }
button.ed-hub-card:hover { border-color: var(--ed-acento); }
.ed-hub-card--novo { border-color: var(--ed-acento); background: linear-gradient(180deg, #1d2410, var(--ed-painel)); }
.ed-ass { max-width: 720px; }
.ed-ass h2 { font-size: 20px; text-transform: none; letter-spacing: 0; color: var(--ed-texto); margin: 10px 0 14px; }
.ed-ass-campo { display: block; margin: 14px 0; }
.ed-ass-campo > span { display: block; font-size: 13px; color: var(--ed-fraco); margin-bottom: 6px; }
.ed-ass-campo input[type=text] { width: 100%; background: #0f1114; border: 1px solid var(--ed-borda); border-radius: 8px; padding: 9px 12px; color: var(--ed-texto); }
.ed-ass-campo input[type=file] { color: var(--ed-fraco); }
.ed-ass-arqs { color: var(--ed-fraco); font-size: 12px; margin: -6px 0 0; }
.ed-ass-roteiro { color: var(--ed-fraco); font-size: 13px; line-height: 1.5; }
.ed-ass-roteiro a { color: var(--ed-acento); }
.ed-ass-status { font-size: 13px; color: var(--ed-fraco); align-self: center; }

/* hub v3 (design) */
.ed-hub-corpo { padding: 28px 32px 60px; }
.hub-eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ed-fraco); }
.hub-eyebrow a { color: var(--ed-acento); text-decoration: none; text-transform: none; letter-spacing: 0; }
.hub-hero { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: center; padding: 34px 36px; border-radius: 22px; background: radial-gradient(120% 140% at 0% 0%, #1f2a12 0%, #181b1f 45%, #131518 100%); border: 1px solid #262a30; margin-bottom: 34px; }
.hub-hero h1 { font-size: 34px; line-height: 1.08; margin: 12px 0 14px; letter-spacing: -.01em; }
.hub-hero p { color: var(--ed-fraco); font-size: 15px; line-height: 1.55; margin: 0 0 20px; max-width: 520px; }
.hub-hero-acoes { display: flex; gap: 10px; flex-wrap: wrap; }
.ed-btn-grande { padding: 12px 20px; font-size: 15px; border-radius: 12px; }
.hub-passos { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hub-passos li { display: grid; grid-template-columns: 38px 1fr; gap: 4px 14px; align-items: center; background: rgba(255,255,255,.03); border: 1px solid #262a30; border-radius: 14px; padding: 12px 14px; }
.hub-passos b { grid-row: span 2; width: 38px; height: 38px; border-radius: 50%; background: var(--ed-acento); color: var(--ed-acento-ink); display: grid; place-items: center; font-size: 15px; }
.hub-passos span { font-weight: 600; }
.hub-passos small { color: var(--ed-fraco); font-size: 12px; }
.hub-secao { margin-bottom: 34px; }
.hub-secao > header { display: flex; align-items: baseline; gap: 14px; margin-bottom: 14px; }
.hub-secao > header h2 { margin: 0; font-size: 18px; text-transform: none; letter-spacing: 0; color: var(--ed-texto); }
.hub-secao > header p { margin: 0; color: var(--ed-fraco); font-size: 13px; }
.hub-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.hub-grade--sug { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.hub-card { display: flex; flex-direction: column; background: var(--ed-painel); border: 1px solid var(--ed-borda); border-radius: 16px; overflow: hidden; text-decoration: none; color: inherit; text-align: left; font: inherit; cursor: pointer; padding: 0; transition: transform .15s, border-color .15s, box-shadow .15s; }
.hub-card:hover { transform: translateY(-2px); border-color: #3a4048; box-shadow: 0 14px 40px rgba(0,0,0,.35); }
.hub-card-thumb { position: relative; display: block; aspect-ratio: 9 / 12; background: #0b0c0e; overflow: hidden; }
.hub-card-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hub-card-thumb--prod { display: grid; place-items: center; aspect-ratio: 16 / 7; background: linear-gradient(180deg, #1a1f12, #0f1114); }
.hub-card-play { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: rgba(255,255,255,.92); }
.hub-card-play::after { content: ''; position: absolute; left: 18px; top: 14px; border-left: 14px solid #111; border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.hub-card-corpo { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; }
.hub-card-meta { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--ed-fraco); }
.hub-card strong { font-size: 14px; line-height: 1.3; }
.hub-card small { color: var(--ed-fraco); font-size: 12px; }
.hub-card--sug { padding: 18px; gap: 8px; background: linear-gradient(180deg, #1b1f24, var(--ed-painel)); }
.hub-card--sug q { quotes: '\201C' '\201D'; color: #d8dbe0; font-size: 14px; line-height: 1.45; font-style: italic; }
.hub-card--sug .ed-btn { align-self: flex-start; margin-top: 6px; }
.hub-card--prod .ed-spinner { margin: 0; }

/* assistente v2 */
.ass { max-width: 860px; margin: 0 auto; }
.ass-topo { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.ass-stepper { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; }
.ass-stepper li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ed-fraco); }
.ass-stepper b { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--ed-borda); display: grid; place-items: center; font-size: 12px; }
.ass-stepper li.on { color: var(--ed-texto); } .ass-stepper li.on b { background: var(--ed-acento); color: var(--ed-acento-ink); border-color: var(--ed-acento); }
.ass-stepper li.feito b { background: #2a3b2e; border-color: #2a3b2e; color: #7bd88f; }
.ass-passo h2 { font-size: 26px; text-transform: none; letter-spacing: -.01em; color: var(--ed-texto); margin: 0 0 8px; }
.ass-sub { color: var(--ed-fraco); margin: 0 0 20px; }
.ass-campo { display: block; margin: 18px 0; }
.ass-campo > span { display: block; font-size: 13px; color: var(--ed-fraco); margin-bottom: 6px; }
.ass-campo input, .ass-pergunta input { width: 100%; background: #0f1114; border: 1px solid var(--ed-borda); border-radius: 10px; padding: 12px 14px; color: var(--ed-texto); font-size: 15px; }
.ass-gancho { margin: 14px 0 18px; padding: 16px 18px; border-left: 3px solid var(--ed-acento); background: rgba(255,255,255,.03); border-radius: 0 12px 12px 0; font-size: 16px; line-height: 1.5; }
.ass-gancho span { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--ed-fraco); margin-bottom: 4px; }
.ass-gancho a { color: var(--ed-acento); font-size: 13px; }
.ass-drop { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 40px 20px; border: 2px dashed #3a4048; border-radius: 18px; background: rgba(255,255,255,.02); color: var(--ed-fraco); cursor: pointer; text-align: center; transition: border-color .15s, background .15s; }
.ass-drop:hover, .ass-drop.on { border-color: var(--ed-acento); background: rgba(212,255,60,.05); color: var(--ed-texto); }
.ass-drop strong { font-size: 16px; color: var(--ed-texto); } .ass-drop em { font-style: normal; color: var(--ed-acento); }
.ass-drop small { font-size: 12px; }
.ass-arquivos { display: grid; gap: 8px; margin-top: 12px; }
.ass-arq { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; background: var(--ed-painel); border: 1px solid var(--ed-borda); border-radius: 12px; padding: 8px 10px; }
.ass-arq-thumb { width: 44px; height: 78px; border-radius: 8px; background: #0b0c0e center/cover no-repeat; }
.ass-arq-corpo { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ass-arq-corpo strong { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ass-arq-corpo small { color: var(--ed-fraco); font-size: 12px; }
.ass-arq-x { background: transparent; border: 1px solid var(--ed-borda); color: var(--ed-fraco); border-radius: 8px; width: 32px; height: 32px; font-size: 18px; line-height: 1; }
.ass-arq-x:hover { color: var(--ed-perigo); border-color: var(--ed-perigo); }
.ass-erro { color: var(--ed-perigo); font-size: 13px; margin: 10px 0 0; }
.ass-erro[hidden] { display: none; }
.ass-nav { display: flex; gap: 10px; justify-content: flex-end; margin-top: 26px; }
.ass-perguntas { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; }
.ass-pergunta h3 { font-size: 14px; margin: 0 0 10px; }
.ass-opcoes { display: grid; gap: 8px; }
.ass-opcao { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; background: #0f1114; border: 1px solid var(--ed-borda); border-radius: 12px; padding: 10px 12px; color: var(--ed-texto); font: inherit; }
.ass-opcao strong { font-size: 13px; font-weight: 600; } .ass-opcao small { font-size: 12px; color: var(--ed-fraco); }
.ass-opcao.on { background: rgba(212,255,60,.1); border-color: var(--ed-acento); box-shadow: inset 0 0 0 1px var(--ed-acento); }
.ass-opcao.on strong { color: var(--ed-acento); }
.ass-dica { display: block; color: var(--ed-fraco); font-size: 12px; margin-top: 6px; }
.ass-resumo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; margin: 18px 0 8px; }
.ass-resumo div { background: var(--ed-painel); border: 1px solid var(--ed-borda); border-radius: 12px; padding: 10px 14px; }
.ass-resumo dt { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--ed-fraco); }
.ass-resumo dd { margin: 2px 0 0; font-size: 14px; }
.ass-status { color: var(--ed-fraco); font-size: 13px; min-height: 18px; text-align: right; }
@media (max-width: 900px) { .hub-hero, .ass-perguntas, .ass-resumo { grid-template-columns: 1fr; } }

/* montagem (loading com blur) */
.ed-montagem { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(10,11,13,.55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.ed-montagem[hidden] { display: none; }
.ed-montagem-caixa { background: var(--ed-painel); border: 1px solid var(--ed-borda); border-radius: 18px; padding: 30px; max-width: 520px; width: 100%; text-align: center; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.ed-montagem-caixa h2 { margin: 0 0 8px; font-size: 20px; }
.ed-montagem-passos { list-style: none; padding: 0; margin: 6px 0 12px; text-align: left; display: grid; gap: 6px; font-size: 13px; color: var(--ed-fraco); }
.ed-montagem-passos li::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: currentColor; opacity: .35; margin-right: 10px; vertical-align: middle; }
.ed-montagem-passos li.feito { color: var(--ed-texto); } .ed-montagem-passos li.feito::before { opacity: 1; background: #7bd88f; }
.ed-montagem-passos li.atual { color: var(--ed-texto); font-weight: 600; } .ed-montagem-passos li.atual::before { opacity: 1; background: var(--ed-acento); animation: ed-pulso 1s infinite; }
@keyframes ed-pulso { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* telas cheias */
.ed-carregando, .ed-celular, .ed-modal { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(10,11,13,.92); z-index: 50; padding: 20px; }
.ed-carregando[hidden], .ed-celular[hidden], .ed-modal[hidden] { display: none; }
.ed-carregando-caixa, .ed-modal-caixa { background: var(--ed-painel); border: 1px solid var(--ed-borda); border-radius: 16px; padding: 28px; max-width: 520px; width: 100%; text-align: center; }
.ed-carregando-caixa h2, .ed-modal-caixa h3 { margin: 0 0 8px; font-size: 20px; }
.ed-carregando-caixa p, .ed-modal-caixa p { color: var(--ed-fraco); margin: 0 0 14px; line-height: 1.45; }
.ed-spinner { width: 36px; height: 36px; border: 3px solid #2c3138; border-top-color: var(--ed-acento); border-radius: 50%; margin: 0 auto 16px; animation: ed-gira .9s linear infinite; }
@keyframes ed-gira { to { transform: rotate(360deg); } }
.ed-barra { height: 10px; background: #0f1114; border-radius: 999px; overflow: hidden; margin: 10px 0 12px; }
.ed-barra-fill { height: 100%; background: linear-gradient(90deg, #9fd62e, var(--ed-acento)); transition: width .25s; }
.ed-modal-sub { font-size: 14px; }
.ed-modal-video { width: 100%; max-height: 52vh; border-radius: 10px; background: #000; margin-bottom: 14px; }
.ed-modal-acoes { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }
.ed-dica { font-size: 12px; }

/* FERRAMENTAS (02/09): o botão da coluna esquerda acende o controle no painel
   da direita — o brilho ancora o olho de quem nunca abriu aquele painel. */
.ins-flash { outline: 2px solid var(--ed-acento, #d4ff3c); outline-offset: 4px; border-radius: 8px; animation: edFlashSome 1.8s ease forwards; }
@keyframes edFlashSome { 0%, 55% { outline-color: var(--ed-acento, #d4ff3c); } 100% { outline-color: transparent; } }
