/* =========================================================
   MediaDumper — visual futurista (neon sobre escuro)
   As 4 cores ficam em body[data-t=...]. Trocar a cor muda só
   as variáveis --ac / --ac2 / --bg / --tint.
   ========================================================= */

:root {
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Space Grotesk", var(--font);
  --mono: "JetBrains Mono", "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  --text: #eef2f6; --soft: #c9d1dc; --muted: #8791a0; --faint: #5b6575;
  /* cores dos status (iguais em todos os temas) */
  --new: #4cc9ff; --msg: #ffc24b; --wait: #a78bfa; --fu: #ff7a5c;
  --meet: #2ee6c5; --prop: #ff7ad9; --won: #6dff9c; --off: #7d8796;
  /* cor padrão (ciano); os outros temas trocam só estas cinco variáveis */
  --ac: #22e3ff; --ac2: #3d7bff; --bg: #04070c; --tint: 120,200,255; --on-ac: #021018;
  color-scheme: dark;
}
body[data-t=ciano]     { --ac: #22e3ff; --ac2: #3d7bff; --bg: #04070c; --tint: 120,200,255; --on-ac: #021018; }
body[data-t=violeta]   { --ac: #b47bff; --ac2: #ff4fd8; --bg: #07050e; --tint: 190,150,255; --on-ac: #12041f; }
body[data-t=ambar]     { --ac: #ffb224; --ac2: #ff5a2e; --bg: #0a0705; --tint: 255,190,120; --on-ac: #1a0d00; }
body[data-t=esmeralda] { --ac: #35f5a6; --ac2: #12c2d6; --bg: #040a08; --tint: 130,255,200; --on-ac: #00160d; }

.c-new { --c: var(--new); } .c-msg { --c: var(--msg); } .c-wait { --c: var(--wait); } .c-fu { --c: var(--fu); }
.c-meet { --c: var(--meet); } .c-prop { --c: var(--prop); } .c-won { --c: var(--won); } .c-off { --c: var(--off); }
.c-ac { --c: var(--ac); }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  --line: rgba(var(--tint), .14); --line2: rgba(var(--tint), .07);
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 14px; line-height: 1.45; -webkit-font-smoothing: antialiased;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(1000px 520px at 56% -170px, color-mix(in srgb, var(--ac) 22%, transparent), transparent 70%),
    radial-gradient(760px 620px at 108% 108%, color-mix(in srgb, var(--ac2) 17%, transparent), transparent 70%),
    var(--bg);
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(rgba(var(--tint), .055) 1px, transparent 1px), linear-gradient(90deg, rgba(var(--tint), .055) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(1000px 640px at 56% 0, #000 0, transparent 78%);
          mask-image: radial-gradient(1000px 640px at 56% 0, #000 0, transparent 78%);
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; text-align: inherit; }
a { color: inherit; text-decoration: none; }
i, em { font-style: normal; }
h1, h2, h3, p { margin: 0; }
svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 2px solid var(--ac); outline-offset: 2px; border-radius: 6px; }
::selection { background: color-mix(in srgb, var(--ac) 40%, transparent); }

.label { font-family: var(--mono); font-size: 10px; letter-spacing: .15em; text-transform: uppercase; color: var(--faint); }
.grow { flex: 1; }
.so-celular { display: none; }
.vazio { color: var(--muted); padding: 26px 18px; text-align: center; border: 1px dashed var(--line); border-radius: 14px; }

/* ---------- cartão de vidro com linha de neon ---------- */
.card { position: relative; background: linear-gradient(180deg, rgba(var(--tint), .055), rgba(var(--tint), .016)); border: 1px solid var(--line); border-radius: 14px; }
.card.glow::before { content: ""; position: absolute; left: 16px; right: 16px; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--c, var(--ac)), transparent); }
.card.glow::after { content: ""; position: absolute; left: 18%; right: 18%; top: -8px; height: 16px; background: radial-gradient(closest-side, color-mix(in srgb, var(--c, var(--ac)) 55%, transparent), transparent); filter: blur(7px); opacity: .75; pointer-events: none; }

/* ---------- estrutura ---------- */
.app { position: relative; z-index: 1; display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }
.main { padding-block: 24px 70px; padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); min-width: 0; display: flex; flex-direction: column; gap: 18px; }

/* ---------- menu ---------- */
.side { position: sticky; top: env(safe-area-inset-top, 0px); height: 100vh; height: calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)); overflow-y: auto; border-right: 1px solid var(--line); padding: 18px 12px 14px max(12px, env(safe-area-inset-left, 0px)); display: flex; flex-direction: column; background: rgba(0, 0, 0, .3); }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 12px; }
.logo { width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg, var(--ac), var(--ac2)); color: var(--on-ac); display: grid; place-items: center; box-shadow: 0 0 20px color-mix(in srgb, var(--ac) 60%, transparent); }
.logo svg { fill: currentColor; stroke: none; width: 15px; height: 15px; }
.brand b { font-family: var(--display); font-size: 15.5px; font-weight: 600; letter-spacing: -.01em; display: block; line-height: 1.2; }
.brand span { font-size: 11.5px; color: var(--muted); }
.navlabel { font-family: var(--mono); font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); padding: 18px 10px 7px; }
.nav { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: #a9b2bf; font-size: 13px; margin-bottom: 2px; position: relative; }
.nav:hover { color: #fff; background: rgba(var(--tint), .05); }
.nav .n { margin-left: auto; font-family: var(--mono); font-size: 10.5px; color: var(--faint); }
.nav .curto { display: none; }
.nav.on { color: #fff; font-weight: 600; background: linear-gradient(90deg, color-mix(in srgb, var(--ac) 20%, transparent), transparent 88%); }
.nav.on::before { content: ""; position: absolute; left: 0; top: 7px; bottom: 7px; width: 2px; border-radius: 2px; background: var(--ac); box-shadow: 0 0 12px 1px var(--ac); }
.nav.on svg { color: var(--ac); filter: drop-shadow(0 0 5px var(--ac)); }
.nav .n.quente, .nav.on .n { color: var(--on-ac); background: var(--ac); padding: 0 7px; border-radius: 999px; font-weight: 600; box-shadow: 0 0 14px color-mix(in srgb, var(--ac) 65%, transparent); }
.sidecard { margin-top: auto; padding: 12px; }
.sidecard .v { font-size: 12.5px; font-weight: 600; margin-top: 6px; line-height: 1.35; }
.sidecard .d { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.cores { display: flex; align-items: center; gap: 8px; padding: 12px 10px 4px; }
.cores span { margin-right: auto; }
.cor { width: 18px; height: 18px; border-radius: 50%; background: linear-gradient(135deg, var(--a), var(--b)); border: 2px solid transparent; outline: 1px solid rgba(255, 255, 255, .12); }
.cor.on { border-color: #fff; box-shadow: 0 0 12px var(--a); }

/* ---------- cabeçalho da tela ---------- */
.top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.eyebrow { font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--ac); display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
.eyebrow i { width: 6px; height: 6px; border-radius: 50%; background: var(--ac); box-shadow: 0 0 10px 1px var(--ac); }
.eyebrow span { color: var(--faint); }
h1 { font-family: var(--display); font-size: 31px; font-weight: 600; letter-spacing: -.025em; line-height: 1.1; }
h1 em { color: var(--muted); font-weight: 400; font-size: 15px; letter-spacing: 0; margin-left: 12px; white-space: nowrap; }
h2 { font-family: var(--display); font-size: 17px; font-weight: 600; letter-spacing: -.01em; display: flex; align-items: center; gap: 9px; }
h2 i { width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--ac)); box-shadow: 0 0 10px var(--c, var(--ac)); }
h2 small { font-family: var(--font); font-size: 12.5px; font-weight: 400; color: var(--muted); }
.actions { display: flex; gap: 10px; align-items: center; }
.search { width: 250px; height: 38px; border: 1px solid var(--line); border-radius: 10px; background: rgba(var(--tint), .035); display: flex; align-items: center; gap: 8px; padding: 0 12px; color: var(--faint); }
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; font-size: 12.5px; color: var(--text); }
.search input::placeholder { color: var(--faint); }

/* ---------- botões ---------- */
.btn { height: 38px; padding: 0 15px; border-radius: 10px; background: linear-gradient(135deg, var(--ac), var(--ac2)); color: var(--on-ac); font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; white-space: nowrap; box-shadow: 0 0 0 1px color-mix(in srgb, var(--ac) 55%, transparent), 0 8px 28px -8px color-mix(in srgb, var(--ac) 80%, transparent); }
.btn svg { stroke-width: 2.3; }
.b1, .b2, .b3 { height: 36px; padding: 0 13px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; font-size: 12.5px; white-space: nowrap; }
.b1 { background: var(--c, var(--ac)); color: #100603; font-weight: 700; box-shadow: 0 10px 28px -10px var(--c, var(--ac)), 0 0 0 1px color-mix(in srgb, var(--c, var(--ac)) 60%, transparent); }
.b2 { border: 1px solid var(--line); color: var(--text); font-weight: 600; background: rgba(var(--tint), .04); }
.b2:hover { border-color: color-mix(in srgb, var(--ac) 50%, transparent); }
/* baixar um vídeo já baixado: contorno amarelo leve que acende ao passar o mouse ou tocar (Daniel, 2026-11-23) */
.b2.baixar { border-color: color-mix(in srgb, var(--msg) 45%, transparent); transition: border-color .15s, background .15s, box-shadow .15s; }
.b2.baixar svg { color: var(--msg); }
.b2.baixar:hover, .b2.baixar:focus-visible, .b2.baixar:active { border-color: var(--msg); background: color-mix(in srgb, var(--msg) 10%, transparent); box-shadow: 0 0 18px -6px var(--msg); }
.b3 { color: var(--muted); font-weight: 600; padding: 0 8px; }
.b3:hover { color: var(--text); }
.b3.perigo:hover { color: var(--fu); }

/* ---------- números do topo ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.stat { padding: 14px 16px 13px; display: flex; flex-direction: column; min-height: 104px; }
.stat .k { display: flex; align-items: center; gap: 7px; min-height: 18px; }
.stat .k i { width: 6px; height: 6px; border-radius: 50%; background: var(--c, var(--ac)); box-shadow: 0 0 9px var(--c, var(--ac)); }
.stat .k u { text-decoration: none; margin-left: auto; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0; color: var(--ac); border: 1px solid color-mix(in srgb, var(--ac) 40%, transparent); border-radius: 999px; padding: 0 6px; background: color-mix(in srgb, var(--ac) 9%, transparent); }
.stat .v { font-family: var(--display); font-size: 30px; font-weight: 600; letter-spacing: -.025em; margin-top: 6px; line-height: 1.15; text-shadow: 0 0 26px color-mix(in srgb, var(--c, var(--ac)) 40%, transparent); }
.stat .d { color: var(--muted); font-size: 11.5px; margin-top: auto; padding-top: 4px; }
.bar { height: 6px; border-radius: 999px; background: rgba(var(--tint), .11); margin: 11px 0 3px; position: relative; }
.bar i { position: absolute; left: 0; top: 0; bottom: 0; min-width: 6px; max-width: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--ac2), var(--ac)); box-shadow: 0 0 14px color-mix(in srgb, var(--ac) 75%, transparent); }
.bar i::after { content: ""; position: absolute; right: -2px; top: -3px; width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 0 12px 2px var(--ac); }
.sprow { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; flex: 1; }
.spark { width: 150px; height: 52px; stroke-width: 2; overflow: visible; margin-bottom: 2px; }
.spark .ln { stroke: var(--ac); filter: drop-shadow(0 0 5px var(--ac)); }
.spark .ar { fill: color-mix(in srgb, var(--ac) 16%, transparent); stroke: none; }

/* ---------- filtros ---------- */
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { height: 30px; padding: 0 10px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 550; border: 1px solid var(--line); color: var(--soft); background: rgba(var(--tint), .03); white-space: nowrap; }
.chip:hover { border-color: color-mix(in srgb, var(--c, var(--ac)) 50%, transparent); }
.chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); box-shadow: 0 0 9px var(--c); }
.chip b { font-family: var(--mono); font-weight: 500; font-size: 10.5px; color: var(--faint); }
.chip.on { border-color: color-mix(in srgb, var(--c, var(--ac)) 70%, transparent); color: var(--c, var(--ac)); background: color-mix(in srgb, var(--c, var(--ac)) 11%, transparent); box-shadow: 0 0 18px -5px color-mix(in srgb, var(--c, var(--ac)) 70%, transparent); }
.chip.on b { color: inherit; opacity: .7; }

/* ---------- etiqueta de status e avatar ---------- */
.pill { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 650; border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); background: color-mix(in srgb, var(--c) 9%, transparent); color: var(--c); white-space: nowrap; box-shadow: 0 0 16px -7px var(--c); }
.pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); }
.pill.mini { height: 22px; font-size: 11px; padding: 0 8px; }
.av { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-family: var(--mono); font-weight: 600; font-size: 10.5px; background: color-mix(in srgb, var(--c) 9%, transparent); border: 1px solid color-mix(in srgb, var(--c) 42%, transparent); color: var(--c); flex: none; }
.av.grande { width: 46px; height: 46px; border-radius: 13px; font-size: 13.5px; box-shadow: 0 0 22px -8px var(--c); }

/* ---------- tela Hoje: fila do dia ---------- */
.fila { display: grid; grid-template-columns: repeat(auto-fill, minmax(430px, 1fr)); gap: 16px; align-items: start; }
.qcard { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.qcard header { display: flex; align-items: center; gap: 11px; }
.qcard .who { min-width: 0; flex: 1; text-align: left; }
.qcard .who b { display: block; font-weight: 600; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qcard .who span { color: var(--muted); font-size: 12px; }
.qcard .who:hover b { color: var(--c); }
.meta { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--muted); font-size: 12px; }
.meta b { color: var(--soft); font-weight: 600; }
.meta .atraso { color: var(--fu); font-weight: 600; }
.msg { border: 1px solid color-mix(in srgb, var(--c) 28%, transparent); background: color-mix(in srgb, var(--c) 6%, transparent); border-radius: 12px; padding: 12px 14px; font-size: 13.5px; line-height: 1.55; color: var(--soft); white-space: pre-wrap; }
.extra { display: flex; gap: 9px; align-items: flex-start; font-size: 12.5px; color: var(--muted); }
.extra svg { margin-top: 2px; color: var(--c); }
.extra b { color: var(--soft); font-weight: 600; }
.qcard footer { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.qcard.feito { opacity: .7; padding: 12px 16px; }
.qcard.feito header { gap: 10px; }
.lista { display: flex; flex-direction: column; gap: 10px; }
.linha { display: flex; align-items: center; gap: 12px; padding: 12px 16px; flex-wrap: wrap; }
.linha .who { flex: 1; min-width: 180px; text-align: left; }
.linha .who b { display: block; font-weight: 600; font-size: 14px; }
.linha .who span { color: var(--muted); font-size: 12px; }
.linha .obs { flex: 2; min-width: 200px; color: var(--soft); font-size: 12.5px; }
.linha .quando { font-family: var(--display); font-size: 15px; font-weight: 600; min-width: 132px; }
.linha .quando small { display: block; font-family: var(--font); font-size: 11.5px; color: var(--muted); font-weight: 400; }
.linha .quando.largo { min-width: 208px; }
.linha .quando.agora { color: var(--c); text-shadow: 0 0 18px color-mix(in srgb, var(--c) 55%, transparent); }
.linha .obs small { display: block; color: var(--muted); font-size: 11.5px; margin-top: 4px; }
.linha a.b1 { text-decoration: none; }
.passos { display: inline-flex; gap: 6px; vertical-align: middle; }
.passos i { width: 9px; height: 9px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--c) 55%, transparent); }
.passos i.ok { background: var(--c); box-shadow: 0 0 9px var(--c); }

/* ---------- funil (colunas) ---------- */
.kanban { display: grid; grid-template-columns: repeat(6, minmax(170px, 1fr)); gap: 12px; overflow-x: auto; padding: 8px 2px 10px; }
.col { border: 1px solid var(--line); border-radius: 14px; background: rgba(var(--tint), .022); min-height: 430px; display: flex; flex-direction: column; position: relative; }
.col::before { content: ""; position: absolute; left: 14px; right: 14px; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--c), transparent); }
.col.sobre { border-color: var(--c); box-shadow: 0 0 0 1px var(--c), 0 0 34px -10px var(--c); }
.col > header { padding: 11px 12px 9px; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; min-height: 58px; align-content: center; border-bottom: 1px solid var(--line2); }
.col > header i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); box-shadow: 0 0 9px var(--c); }
.col > header b { font-size: 12.5px; font-weight: 650; }
.col > header span { font-family: var(--mono); font-size: 10.5px; color: var(--faint); }
.col > header span { margin-left: auto; }
.col > header em { flex-basis: 100%; padding-left: 15px; font-size: 11.5px; color: var(--c); font-weight: 600; }
.col .cards { padding: 10px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.kcard { border: 1px solid var(--line); border-radius: 11px; padding: 10px 11px; background: rgba(0, 0, 0, .3); cursor: grab; display: block; width: 100%; }
.kcard:hover { border-color: color-mix(in srgb, var(--c) 55%, transparent); box-shadow: 0 0 20px -10px var(--c); }
.kcard.arrastando { opacity: .4; }
.kcard b { display: block; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kcard span { display: block; color: var(--muted); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kcard .pe { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 11.5px; color: var(--soft); }
.kcard .pe i { width: 5px; height: 5px; border-radius: 50%; background: var(--c); box-shadow: 0 0 7px var(--c); }
.kcard .pe em { margin-left: auto; color: var(--c); font-weight: 600; }
.nota { color: var(--muted); font-size: 12.5px; }
.nota a { color: var(--ac); }

/* ---------- tabela de leads ---------- */
.table { display: flex; flex-direction: column; }
.th, .tr { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, .9fr) minmax(0, 1fr) minmax(0, 1.25fr) 164px; align-items: center; padding: 0 16px; gap: 12px; }
.th { height: 38px; border-bottom: 1px solid var(--line); }
.tr { min-height: 62px; border-bottom: 1px solid var(--line2); position: relative; width: 100%; }
.tr:last-child { border-bottom: 0; }
.tr:hover { background: color-mix(in srgb, var(--c) 6%, transparent); }
.tr.sel { background: linear-gradient(90deg, color-mix(in srgb, var(--c) 17%, transparent), color-mix(in srgb, var(--c) 3%, transparent) 72%); }
.tr.sel::before { content: ""; position: absolute; left: -1px; top: 0; bottom: 0; width: 2px; background: var(--c); box-shadow: 0 0 16px 1px var(--c); }
.lead { display: flex; align-items: center; gap: 11px; min-width: 0; }
.lead > div { min-width: 0; }
.lead b { display: block; font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.3; }
.lead span { color: var(--muted); font-size: 12px; white-space: nowrap; }
.cell { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--soft); font-size: 13px; }
.cell small { display: block; color: var(--muted); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; }
.tf { min-height: 42px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; color: var(--muted); font-size: 12px; border-top: 1px solid var(--line2); }

/* ---------- painel ---------- */
.grid2 { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 14px; }
.bloco { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.funilbar { display: grid; grid-template-columns: 132px minmax(0, 1fr) 86px; align-items: center; gap: 12px; font-size: 13px; }
.funilbar .tr2 { height: 22px; border-radius: 7px; background: rgba(var(--tint), .07); overflow: hidden; }
.funilbar .tr2 i { display: block; height: 100%; min-width: 4px; border-radius: 7px; background: linear-gradient(90deg, color-mix(in srgb, var(--c) 45%, transparent), var(--c)); box-shadow: 0 0 16px -2px var(--c); }
.funilbar b { font-family: var(--display); font-size: 16px; font-weight: 600; }
.funilbar small { color: var(--muted); font-size: 11.5px; margin-left: 6px; }
.tabmini { width: 100%; border-collapse: collapse; font-size: 13px; }
.tabmini th { text-align: left; font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); font-weight: 500; padding: 0 8px 8px 0; }
.tabmini td { padding: 9px 8px 9px 0; border-top: 1px solid var(--line2); color: var(--soft); }
.tabmini td:first-child { color: var(--text); font-weight: 600; }
.tabmini .num, .tabmini th.num { text-align: right; font-variant-numeric: tabular-nums; }
.tabmini .taxa { color: var(--ac); font-weight: 650; }
.barras { display: flex; align-items: flex-end; gap: 6px; height: 110px; }
.barras div { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; }
.barras i { width: 100%; border-radius: 5px 5px 2px 2px; min-height: 3px; background: color-mix(in srgb, var(--ac) 30%, transparent); }
.barras .hoje i { background: linear-gradient(180deg, var(--ac), var(--ac2)); box-shadow: 0 0 16px color-mix(in srgb, var(--ac) 70%, transparent); }
.barras span { font-family: var(--mono); font-size: 9.5px; color: var(--faint); }

/* ---------- mensagens prontas e aparência ---------- */
.modelos { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 16px; }
.modelo { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.modelo .hd { display: flex; align-items: center; gap: 10px; }
.modelo .hd b { font-family: var(--display); font-size: 16px; font-weight: 600; }
.modelo p { color: var(--muted); font-size: 12.5px; }
textarea, .campo input, .campo select { width: 100%; border: 1px solid var(--line); border-radius: 10px; background: rgba(0, 0, 0, .32); padding: 10px 12px; font-size: 13.5px; line-height: 1.5; color: var(--soft); outline: 0; }
textarea { resize: vertical; min-height: 120px; }
textarea:focus, .campo input:focus, .campo select:focus { border-color: color-mix(in srgb, var(--ac) 65%, transparent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ac) 14%, transparent); }
.campo select option { background: #0b1016; color: var(--text); }
.vars { display: flex; flex-wrap: wrap; gap: 6px; }
.vars code { font-family: var(--mono); font-size: 10.5px; color: var(--ac); border: 1px solid color-mix(in srgb, var(--ac) 30%, transparent); border-radius: 6px; padding: 1px 6px; }
.temas { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.tema { padding: 16px; text-align: left; display: flex; flex-direction: column; gap: 12px; --c: var(--a); }
.tema .amostra { height: 74px; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--a) 40%, transparent); background: radial-gradient(160px 90px at 50% -30%, color-mix(in srgb, var(--a) 55%, transparent), transparent 75%), #05070a; position: relative; overflow: hidden; }
.tema .amostra::after { content: ""; position: absolute; left: 14px; right: 40%; bottom: 14px; height: 6px; border-radius: 999px; background: linear-gradient(90deg, var(--b), var(--a)); box-shadow: 0 0 14px var(--a); }
.tema b { font-family: var(--display); font-size: 16px; font-weight: 600; display: block; }
.tema span { color: var(--muted); font-size: 12.5px; }
.tema.on { border-color: var(--a); box-shadow: 0 0 0 1px var(--a), 0 0 40px -14px var(--a); }
.tema.on b::after { content: " · em uso"; font-family: var(--font); font-size: 12px; font-weight: 500; color: var(--a); }
.ajustes { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.campo { display: flex; flex-direction: column; gap: 6px; }
.campo > span { font-size: 12.5px; color: var(--soft); font-weight: 600; }
.campo small { color: var(--muted); font-size: 11.5px; }
.rowbtn { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ---------- ficha do lead (gaveta à direita) ---------- */
.scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, .55); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 30; }
.scrim.on { opacity: 1; pointer-events: auto; }
.ficha { position: fixed; top: 0; right: 0; bottom: 0; width: 420px; max-width: 100vw; z-index: 40; overflow-y: auto; transform: translateX(104%); transition: transform .24s cubic-bezier(.2, .8, .2, 1); border-left: 1px solid var(--line); background: #060a10; }
.ficha.on { transform: none; box-shadow: -30px 0 80px rgba(0, 0, 0, .55); }
.ficha-in { padding: calc(22px + env(safe-area-inset-top, 0px)) max(22px, env(safe-area-inset-right, 0px)) calc(22px + env(safe-area-inset-bottom, 0px)) max(22px, env(safe-area-inset-left, 0px)); display: flex; flex-direction: column; gap: 15px; min-height: 100%; position: relative; background: linear-gradient(180deg, color-mix(in srgb, var(--c) 10%, transparent), transparent 320px), radial-gradient(500px 400px at 110% 100%, color-mix(in srgb, var(--ac2) 12%, transparent), transparent 70%); }
.ficha-in::before { content: ""; position: absolute; left: -1px; top: 0; height: 300px; width: 1px; background: linear-gradient(180deg, var(--c), transparent); box-shadow: 0 0 14px var(--c); }
.dl { display: flex; justify-content: space-between; align-items: center; }
.dl button { color: var(--muted); padding: 4px; }
.dl button:hover { color: var(--text); }
.dh { display: flex; gap: 12px; align-items: center; }
.dh b { font-family: var(--display); font-size: 19px; font-weight: 600; letter-spacing: -.015em; display: block; line-height: 1.2; }
.dh span { color: var(--muted); font-size: 12.5px; }
.banner { border-radius: 12px; padding: 12px 14px; background: color-mix(in srgb, var(--c) 10%, transparent); border: 1px solid color-mix(in srgb, var(--c) 55%, transparent); display: flex; align-items: center; gap: 12px; box-shadow: 0 0 30px -10px var(--c), inset 0 0 24px -14px var(--c); }
.banner .ring { width: 34px; height: 34px; border-radius: 50%; background: var(--c); color: #100603; display: grid; place-items: center; flex: none; box-shadow: 0 0 16px color-mix(in srgb, var(--c) 70%, transparent); }
.banner b { color: var(--c); font-size: 13.5px; display: block; line-height: 1.3; }
.banner span { color: var(--soft); opacity: .85; font-size: 12px; }
.btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btns > :only-child, .btns > :nth-child(3):last-child { grid-column: 1 / -1; }
.btns .b1, .btns .b2 { height: 38px; }
.score { display: flex; align-items: center; gap: 14px; padding: 10px 14px; }
.gauge { position: relative; width: 58px; height: 58px; flex: none; }
.gauge svg { width: 58px; height: 58px; stroke-width: 5; overflow: visible; }
.gauge .t0 { stroke: rgba(var(--tint), .13); }
.gauge .t1 { stroke: var(--ac); filter: drop-shadow(0 0 5px var(--ac)); }
.gauge em { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: -.02em; }
.score b { display: block; font-size: 13.5px; font-weight: 600; margin-top: 3px; line-height: 1.3; }
.score span:not(.label) { color: var(--muted); font-size: 12px; }
.info { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.info .label { display: block; margin-bottom: 3px; }
.info b { font-weight: 600; font-size: 13px; word-break: break-word; }
.hr { height: 1px; background: linear-gradient(90deg, var(--line), transparent); flex: none; }
.tl { display: flex; flex-direction: column; }
.ti { display: grid; grid-template-columns: 18px 1fr auto; gap: 10px; position: relative; padding-bottom: 12px; }
.ti::before { content: ""; position: absolute; left: 8.5px; top: 16px; bottom: -2px; width: 1px; background: var(--line); }
.ti:last-child { padding-bottom: 0; }
.ti:last-child::before { display: none; }
.ti i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); margin: 5px 4.5px 0; box-shadow: 0 0 10px 1px var(--c); }
.ti b { font-weight: 600; font-size: 12.8px; display: block; line-height: 1.3; }
.ti span { color: var(--muted); font-size: 12px; }
.ti time { font-family: var(--mono); color: var(--faint); font-size: 10.5px; white-space: nowrap; padding-top: 2px; }
.msgbox { padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; border-color: color-mix(in srgb, var(--ac) 32%, transparent); background: linear-gradient(180deg, color-mix(in srgb, var(--ac) 8%, transparent), color-mix(in srgb, var(--ac) 2%, transparent)); --c: var(--ac); }
.msgbox .t { display: flex; justify-content: space-between; align-items: center; }
.msgbox .t em { color: var(--ac); display: flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 9.5px; letter-spacing: .15em; text-transform: uppercase; }
.msgbox p { font-size: 13px; line-height: 1.5; color: var(--soft); white-space: pre-wrap; }
.ficha textarea { min-height: 84px; }

/* ---------- janela de confirmação ---------- */
.modal-wrap { position: fixed; inset: 0; z-index: 60; display: none; align-items: center; justify-content: center; padding: 18px; background: rgba(0, 0, 0, .62); }
.modal-wrap.on { display: flex; }
.modal { width: 440px; max-width: 100%; padding: 22px; display: flex; flex-direction: column; gap: 14px; background: #080d14; box-shadow: 0 30px 90px rgba(0, 0, 0, .7), 0 0 60px -30px var(--c, var(--ac)); }
.modal h3 { font-family: var(--display); font-size: 19px; font-weight: 600; letter-spacing: -.015em; }
.modal p { color: var(--muted); font-size: 13px; }
.modal .pe { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
.duas { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ---------- aviso rápido ---------- */
.toast { position: fixed; left: 50%; bottom: calc(26px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 30px); opacity: 0; pointer-events: none; transition: all .22s; z-index: 80; background: #0b1119; border: 1px solid color-mix(in srgb, var(--ac) 50%, transparent); border-radius: 12px; padding: 11px 16px; font-size: 13px; color: var(--text); box-shadow: 0 14px 40px rgba(0, 0, 0, .6), 0 0 30px -12px var(--ac); max-width: calc(100vw - 32px); text-align: center; }
.toast.on { transform: translate(-50%, 0); opacity: 1; }

/* ---------- telas menores ---------- */
@media (max-width: 1180px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid2 { grid-template-columns: 1fr; }
  .temas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .side { position: fixed; top: auto; bottom: 0; left: 0; right: 0; height: auto; z-index: 20; flex-direction: row; align-items: stretch; gap: 2px; padding: 6px max(8px, env(safe-area-inset-right, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px)); border-right: 0; border-top: 1px solid var(--line); background: rgba(4, 7, 12, .94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); overflow-x: auto; overflow-y: hidden; }
  .side .brand, .side .navlabel, .side .sidecard, .side .cores { display: none; }
  .nav { flex: 1 0 42px; flex-direction: column; gap: 3px; padding: 7px 0; font-size: 9.5px; margin: 0; text-align: center; white-space: nowrap; }
  .nav .longo { display: none; }
  .nav .curto { display: inline; }
  .nav .n:not(.quente) { display: none; }
  .nav.on .n { display: block; }
  .nav svg { width: 19px; height: 19px; }
  .nav .n { position: absolute; top: 2px; left: 54%; margin: 0; font-size: 9px; }
  .nav.on { background: none; }
  .nav.on::before { left: 22%; right: 22%; top: 0; bottom: auto; width: auto; height: 2px; }
  .main { padding-block: 18px 104px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .so-celular { display: block; margin-bottom: 8px; }
  h1 { font-size: 26px; }
  h1 em { display: block; margin: 6px 0 0; white-space: normal; }
  .actions { width: 100%; }
  .search { flex: 1; width: auto; }
  .fila, .modelos { grid-template-columns: minmax(0, 1fr); }
  .th { display: none; }
  .tr { grid-template-columns: minmax(0, 1fr) auto; padding: 12px 14px; gap: 6px 10px; }
  .tr > :nth-child(2), .tr > :nth-child(3) { display: none; }
  .tr > :nth-child(4) { grid-column: 1; padding-left: 47px; }
  .tr > :nth-child(5) { grid-column: 2; grid-row: 1; }
  .temas { grid-template-columns: 1fr 1fr; }
  .ficha { width: 100vw; }
  .funilbar { grid-template-columns: 104px minmax(0, 1fr) 70px; }
  .toast { bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
