[hidden] { display: none !important; }
/* Direção "Vidro navy": escuro primeiro. Fundo navy com luz azul suave e grão, cartões de vidro translúcido
   com borda clara fina, cantos 22px, barra de abas flutuante em pílula. No computador vira trilho lateral de vidro.
   Única cor de marca: o azul #0453D4 sobre o navy #051534. Verde/âmbar/vermelho só com significado. */
:root {
  --bg: #050C1F; --bg-2: #071331;
  --aura-a: rgba(4,83,212,.55); --aura-b: rgba(159,182,232,.14); --aura-c: rgba(4,83,212,.22);
  --glass: rgba(255,255,255,.055); --glass-2: rgba(255,255,255,.09); --glass-3: rgba(255,255,255,.14);
  --edge: rgba(159,182,232,.18); --edge-2: rgba(159,182,232,.32); --line: rgba(159,182,232,.13);
  --ink: #E8EEFA; --strong: #FFFFFF; --muted: #9DAECF; --faint: #6F7FA3;
  --accent: #3B7BF2; --accent-2: #0453D4; --accent-hover: #5C92F5; --on-accent: #FFFFFF; --accent-soft: rgba(59,123,242,.16); --accent-glow: rgba(4,83,212,.5);
  --chrome: #051534; --on-chrome: #FFFFFF; --chrome-muted: #9FB6E8;
  --ok: #4FD08A; --ok-bg: rgba(79,208,138,.14); --warn: #F5B544; --warn-bg: rgba(245,181,68,.14); --risk: #F5736E; --risk-bg: rgba(245,115,110,.15);
  --bubble: rgba(255,255,255,.09); --chat: rgba(2,8,23,.45);
  --shadow: 0 10px 30px rgba(0,0,0,.35); --shadow-lg: 0 -10px 50px rgba(0,0,0,.6); --glow: 0 8px 28px var(--accent-glow);
  --blur: blur(18px) saturate(150%);
  --fd: "Manrope", Arial, Helvetica, sans-serif;
  --f: "Manrope", Arial, Helvetica, sans-serif;
  --r: 12px; --r-lg: 18px; --r-xl: 22px;
  --ease: cubic-bezier(.16,1,.3,1);
  color-scheme: dark;
}
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) {
  --bg: #EDF1F9; --bg-2: #F7F9FD;
  --aura-a: rgba(4,83,212,.22); --aura-b: rgba(255,255,255,.9); --aura-c: rgba(5,21,52,.08);
  --glass: rgba(255,255,255,.66); --glass-2: rgba(255,255,255,.85); --glass-3: rgba(255,255,255,1);
  --edge: rgba(5,21,52,.08); --edge-2: rgba(5,21,52,.16); --line: rgba(5,21,52,.08);
  --ink: #0F1B2D; --strong: #051534; --muted: #5F6B85; --faint: #8A95AD;
  --accent: #0453D4; --accent-2: #0453D4; --accent-hover: #0343A8; --on-accent: #FFFFFF; --accent-soft: rgba(4,83,212,.10); --accent-glow: rgba(4,83,212,.35);
  --ok: #1F7A4A; --ok-bg: rgba(31,122,74,.12); --warn: #8F5600; --warn-bg: rgba(242,169,59,.18); --risk: #B5363A; --risk-bg: rgba(225,87,89,.14);
  --bubble: #FFFFFF; --chat: rgba(5,21,52,.06);
  --shadow: 0 10px 30px rgba(5,21,52,.10); --shadow-lg: 0 -10px 50px rgba(5,21,52,.25); --glow: 0 8px 24px var(--accent-glow);
  color-scheme: light; } }
:root[data-theme="light"] {
  --bg: #EDF1F9; --bg-2: #F7F9FD;
  --aura-a: rgba(4,83,212,.22); --aura-b: rgba(255,255,255,.9); --aura-c: rgba(5,21,52,.08);
  --glass: rgba(255,255,255,.66); --glass-2: rgba(255,255,255,.85); --glass-3: rgba(255,255,255,1);
  --edge: rgba(5,21,52,.08); --edge-2: rgba(5,21,52,.16); --line: rgba(5,21,52,.08);
  --ink: #0F1B2D; --strong: #051534; --muted: #5F6B85; --faint: #8A95AD;
  --accent: #0453D4; --accent-2: #0453D4; --accent-hover: #0343A8; --on-accent: #FFFFFF; --accent-soft: rgba(4,83,212,.10); --accent-glow: rgba(4,83,212,.35);
  --ok: #1F7A4A; --ok-bg: rgba(31,122,74,.12); --warn: #8F5600; --warn-bg: rgba(242,169,59,.18); --risk: #B5363A; --risk-bg: rgba(225,87,89,.14);
  --bubble: #FFFFFF; --chat: rgba(5,21,52,.06);
  --shadow: 0 10px 30px rgba(5,21,52,.10); --shadow-lg: 0 -10px 50px rgba(5,21,52,.25); --glow: 0 8px 24px var(--accent-glow);
  color-scheme: light; }

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); }
body { background: var(--bg); color: var(--ink); font: 14px/1.5 var(--f); font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; min-height: 100%; }
/* luz ambiente: duas auras azuis e grão fino, fixas atrás de tudo */
.aura { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; background:
  radial-gradient(900px 600px at 85% -10%, var(--aura-a), transparent 60%),
  radial-gradient(700px 500px at -10% 30%, var(--aura-c), transparent 60%),
  radial-gradient(600px 400px at 60% 110%, var(--aura-b), transparent 60%),
  linear-gradient(180deg, var(--bg-2), var(--bg) 60%); }
.aura::after { content: ""; position: absolute; inset: 0; opacity: .07; mix-blend-mode: overlay;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { margin: 0; color: var(--strong); line-height: 1.12; text-wrap: balance; font-family: var(--fd); }
h1 { font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
h2 { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
h3 { font-size: 14px; font-weight: 600; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.kicker { font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); font-family: var(--fd); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bg-2); }

/* ---------- Topo (vidro, transparente) ---------- */
.topo { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; color: var(--strong);
  background: color-mix(in srgb, var(--bg) 70%, transparent); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border-bottom: 1px solid var(--line);
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.topo-in { display: flex; align-items: center; gap: 10px; height: 52px; max-width: 1180px; margin: 0 auto; }
.marca { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.marca svg { width: 24px; height: auto; filter: drop-shadow(0 2px 8px var(--accent-glow)); }
.marca b { font-family: var(--fd); font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.marca span { color: var(--muted); font-size: 12px; font-weight: 600; }
.topo-dir { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.pill-ensaio { display: inline-flex; align-items: center; gap: 6px; border: 1px solid rgba(255,255,255,.18); background: linear-gradient(135deg, #0453D4, #2F74F0); color: #fff; font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; box-shadow: var(--glow); font-family: var(--fd); }
.pill-ensaio i { width: 7px; height: 7px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px #fff; animation: pulso 2s infinite; }
.pill-parado { background: linear-gradient(135deg, #B5363A, #E15759); box-shadow: 0 8px 24px rgba(225,87,89,.45); }
@keyframes pulso { 50% { opacity: .35; } }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--glass-2); color: var(--strong); font-weight: 700; font-size: 14px; border: 1px solid var(--edge-2); font-family: var(--fd); }

/* ---------- Estrutura ---------- */
.casca { max-width: 1180px; margin: 0 auto; }
main { padding-block: 16px calc(96px + env(safe-area-inset-bottom, 0px));
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); min-width: 0; }
.tela { display: grid; gap: 14px; max-width: 680px; margin: 0 auto; animation: entra .45s var(--ease); }
@keyframes entra { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.cab { display: grid; gap: 4px; }
.col { display: grid; gap: 14px; min-width: 0; }
.cab-linha { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* barra de abas flutuante (celular) */
.abas { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; pointer-events: none;
  padding: 0 max(12px, env(safe-area-inset-left, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-right, 0px)); }
.abas-in { pointer-events: auto; display: grid; grid-template-columns: repeat(5, 1fr); max-width: 440px; margin: 0 auto; padding: 5px;
  background: color-mix(in srgb, var(--bg-2) 72%, transparent); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--edge); border-radius: 999px; box-shadow: var(--shadow); }
.aba { position: relative; display: grid; justify-items: center; gap: 2px; padding: 7px 2px 6px; border: 0; background: none; color: var(--muted); font-size: 10.5px; font-weight: 600; min-height: 50px; border-radius: 999px; transition: background .2s, color .2s; }
.aba svg { width: 21px; height: 21px; }
.aba[aria-current="page"] { color: var(--strong); background: var(--glass-3); }
.aba[aria-current="page"] svg { color: var(--accent); }
.badge { position: absolute; top: 4px; left: calc(50% + 5px); min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: linear-gradient(135deg, #B5363A, #E15759); color: #fff; font-size: 10px; font-weight: 800; display: grid; place-items: center; box-shadow: 0 2px 8px rgba(225,87,89,.5); }
.lateral { display: none; }

@media (min-width: 960px) {
  .abas { display: none; }
  .casca { display: grid; grid-template-columns: 220px 1fr; gap: 28px; }
  .lateral { display: grid; align-content: start; gap: 2px; position: sticky; top: calc(60px + env(safe-area-inset-top, 0px)); height: calc(100vh - 60px); padding: 24px 0 24px max(16px, env(safe-area-inset-left, 0px)); }
  .lateral .grupo { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); padding: 18px 14px 6px; font-family: var(--fd); }
  .lateral button { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid transparent; background: none; border-radius: 12px; color: var(--muted); font-weight: 600; font-size: 14px; text-align: left; transition: background .2s, color .2s; }
  .lateral button svg { width: 18px; height: 18px; }
  .lateral button:hover { background: var(--glass); color: var(--strong); }
  .lateral button[aria-current="page"] { background: var(--glass-2); border-color: var(--edge); color: var(--strong); box-shadow: var(--shadow); }
  .lateral button[aria-current="page"] svg { color: var(--accent); filter: drop-shadow(0 0 8px var(--accent-glow)); }
  .lateral .cont { margin-left: auto; background: linear-gradient(135deg, #B5363A, #E15759); color: #fff; font-size: 12px; padding: 1px 8px; border-radius: 999px; }
  main { padding-left: 0; padding-bottom: 48px; }
  .tela { max-width: 900px; }
  .tela.duas { grid-template-columns: 1.1fr 1fr; align-items: start; }
  .tela.duas > .larg { grid-column: 1 / -1; }
}

/* ---------- Peças ---------- */
.card { background: var(--glass); border: 1px solid var(--edge); border-radius: var(--r-lg); box-shadow: var(--shadow); min-width: 0;
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); position: relative; }
.card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(160deg, rgba(255,255,255,.07), transparent 40%); }
.card-pad { padding: 14px; display: grid; gap: 12px; }
.lista { display: grid; }
.item { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-top: 1px solid var(--line); min-width: 0; position: relative; }
.item:first-child { border-top: 0; }
.item > .txt { flex: 1 1 auto; min-width: 0; display: grid; gap: 2px; }
.item .nome { font-weight: 500; color: var(--strong); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
button.item { width: 100%; border-left: 0; border-right: 0; border-bottom: 0; background: none; text-align: left; border-radius: 0; transition: background .15s; }
button.item:first-child { border-top: 0; border-radius: var(--r-lg) var(--r-lg) 0 0; }
button.item:last-child { border-radius: 0 0 var(--r-lg) var(--r-lg); }
button.item:only-child { border-radius: var(--r-lg); }
button.item:hover { background: var(--glass); }
.chev { width: 18px; height: 18px; color: var(--faint); flex: none; }

.btn { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 0 16px; border-radius: 999px; font-weight: 600; font-size: 13.5px; border: 1px solid var(--edge-2); background: var(--glass-2); color: var(--strong); white-space: nowrap; transition: background .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s; }
.btn:hover { background: var(--glass-3); border-color: var(--edge-2); }
.btn:active { transform: scale(.98); }
.btn svg { width: 16px; height: 16px; }
.btn-p { background: linear-gradient(135deg, var(--accent-2), var(--accent)); border-color: transparent; color: var(--on-accent); box-shadow: var(--glow); }
.btn-p:hover { background: linear-gradient(135deg, var(--accent), var(--accent-hover)); }
.btn-r { color: var(--risk); }
.btn-r:hover { border-color: var(--risk); }
.btn-rr { background: linear-gradient(135deg, #B5363A, #E15759); border-color: transparent; color: #fff; box-shadow: 0 8px 24px rgba(225,87,89,.35); }
.btn-txt { border-color: transparent; background: none; padding: 0 8px; min-height: 34px; color: var(--accent); box-shadow: none; }
.btn-txt:hover { border-color: transparent; background: var(--accent-soft); }
.btn-bl { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.acoes { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.acoes-3 { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; }

.selo { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; white-space: nowrap; line-height: 1.4; border: 1px solid transparent; }
.selo::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.selo.sem::before { display: none; }
.s-ok { background: var(--ok-bg); color: var(--ok); }
.s-warn { background: var(--warn-bg); color: var(--warn); }
.s-risk { background: var(--risk-bg); color: var(--risk); }
.s-az { background: var(--accent-soft); color: var(--accent); }
.s-ci { background: var(--glass-2); color: var(--muted); border-color: var(--edge); }
.cod { white-space: nowrap; font-size: 11px; font-weight: 700; letter-spacing: .04em; color: var(--muted); background: var(--glass-2); border: 1px solid var(--edge); padding: 4px 9px; border-radius: 999px; font-family: var(--fd); }

/* chave liga/desliga */
.chave { position: relative; width: 46px; height: 28px; flex: none; display: inline-block; }
.chave input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.chave span { position: absolute; inset: 0; border-radius: 999px; background: var(--glass-3); border: 1px solid var(--edge-2); transition: background .25s, box-shadow .25s; }
.chave span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.35); transition: transform .3s var(--ease); }
.chave input:checked + span { background: linear-gradient(135deg, #1F9A5E, var(--ok)); border-color: transparent; box-shadow: 0 0 16px rgba(79,208,138,.35); }
.chave input:checked + span::after { transform: translateX(18px); }
.chave input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }

/* segmentado */
.seg { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--chat); border: 1px solid var(--line); border-radius: 999px; padding: 4px; gap: 4px; max-width: 100%; }
.seg button { border: 0; background: none; padding: 6px 8px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--muted); min-height: 32px; white-space: nowrap; transition: background .2s, color .2s; }
.seg button[aria-pressed="true"] { background: var(--glass-3); color: var(--strong); box-shadow: 0 2px 10px rgba(0,0,0,.25); }
.seg button[aria-pressed="true"].v-auto { color: var(--ok); }
.seg button[aria-pressed="true"].v-apr { color: var(--accent); }
.seg button:disabled { opacity: .4; cursor: not-allowed; text-decoration: line-through; }
.seg-bl { display: grid; width: 100%; }

/* chips de filtro */
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: -2px; }
.chip { flex: none; border: 1px solid var(--edge-2); background: var(--glass); color: var(--ink); border-radius: 999px; padding: 5px 12px; font-size: 12.5px; font-weight: 500; min-height: 32px; transition: background .2s, color .2s; }
.chip[aria-pressed="true"] { background: var(--strong); border-color: var(--strong); color: var(--bg); }
.chip em { font-style: normal; opacity: .6; margin-left: 5px; }

/* campos */
.campo { display: grid; gap: 6px; }
.campo > label, .campo > .rot { font-size: 12.5px; font-weight: 600; color: var(--strong); }
.campo .ajuda { font-size: 12px; color: var(--muted); }
.campo .erro { font-size: 12px; color: var(--risk); font-weight: 600; }
.in { width: 100%; min-height: 40px; padding: 8px 12px; border: 1px solid var(--edge-2); border-radius: var(--r); background: var(--chat); color: var(--ink); font-size: 14px; transition: border-color .2s, box-shadow .2s; }
.in::placeholder { color: var(--faint); }
.in:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 4px var(--accent-soft); }
.in.ruim { border-color: var(--risk); box-shadow: 0 0 0 4px var(--risk-bg); }
select.in { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239DAECF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
select.in option { background: var(--bg-2); color: var(--ink); }
@media (pointer: coarse) { .in { font-size: 16px; } }
textarea.in { min-height: 150px; resize: vertical; line-height: 1.5; }
.grid2 { display: grid; gap: 14px; }
@media (min-width: 640px) { .grid2 { grid-template-columns: 1fr 1fr; } }

/* WhatsApp */
.conversa { background: var(--chat); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 12px; display: grid; gap: 8px; }
.balao { background: var(--bubble); border: 1px solid var(--edge); border-radius: 6px 16px 16px 16px; padding: 9px 12px 5px; white-space: pre-wrap; font-size: 13.5px; line-height: 1.45; max-width: 100%; overflow-wrap: anywhere; color: var(--ink); }
.balao .hora { display: block; text-align: right; font-size: 11px; color: var(--faint); margin-top: 2px; }
.balao .ens { display: block; font-size: 11.5px; font-weight: 700; color: var(--accent); margin-bottom: 4px; letter-spacing: .04em; }
.conversa .para { font-size: 12px; font-weight: 600; color: var(--faint); text-align: center; }

/* Início: estado do Vero (cartão-herói com luz) */
.estado { color: #DCE8F5; border-radius: var(--r-xl); padding: 18px; display: grid; gap: 14px; position: relative; overflow: hidden; border: 1px solid rgba(159,182,232,.28);
  background: radial-gradient(520px 320px at 110% -20%, rgba(59,123,242,.85), transparent 60%), radial-gradient(400px 260px at -10% 110%, rgba(4,83,212,.45), transparent 60%), linear-gradient(160deg, #0A2050, #051534 60%);
  box-shadow: 0 20px 60px rgba(4,83,212,.25), inset 0 1px 0 rgba(255,255,255,.12); }
.estado::after { content: ""; position: absolute; right: -30px; top: -20px; width: 230px; height: 205px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 110 97.5'%3E%3Cpolygon points='0,17.5 22.5,17.5 50,72.67 77.5,17.5 100,17.5 60.13,97.5 39.88,97.5' fill='%23ffffff'/%3E%3C/svg%3E") no-repeat center / contain; opacity: .07; pointer-events: none; }
.estado h1 { color: #fff; font-size: 24px; font-weight: 600; }
.estado .sub { color: #C3D0EC; font-size: 13.5px; max-width: 46ch; }
.estado .kicker { color: #9FB6E8; }
.estado .vivo { display: inline-flex; align-items: center; gap: 7px; justify-self: start; padding: 4px 10px 4px 7px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); font-size: 11.5px; font-weight: 700; color: #fff; backdrop-filter: blur(8px); }
.estado .vivo i { width: 9px; height: 9px; border-radius: 50%; background: #4FD08A; box-shadow: 0 0 12px #4FD08A; animation: pulso 2.4s infinite; }
.estado.off .vivo i { background: #F5736E; box-shadow: 0 0 12px #F5736E; animation: none; }
.ctrl { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center; padding: 11px 14px; border-radius: 16px; background: rgba(2,8,23,.3); border: 1px solid rgba(159,182,232,.14); backdrop-filter: blur(10px); }
.ctrl b { color: #fff; font-size: 14px; font-family: var(--fd); font-weight: 600; }
.ctrl p { color: #A9B9DC; font-size: 12.5px; grid-column: 1; }
.ctrl .btn { grid-row: 1 / span 2; grid-column: 2; }
.btn-claro { background: #fff; border-color: #fff; color: #051534; box-shadow: 0 8px 24px rgba(255,255,255,.18); }
.btn-claro:hover { background: #E6EEFC; border-color: #E6EEFC; }
.btn-fant { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.26); color: #fff; }
.btn-fant:hover { background: rgba(255,255,255,.16); border-color: #fff; }
.estado.off { background: radial-gradient(520px 320px at 110% -20%, rgba(225,87,89,.55), transparent 60%), linear-gradient(160deg, #3A1618, #1A0A0C 70%); border-color: rgba(245,115,110,.3); box-shadow: 0 20px 60px rgba(225,87,89,.18); }
.estado.off .sub, .estado.off .ctrl p { color: #F2C4C4; }

.numeros { display: grid; grid-template-columns: repeat(4, 1fr); }
.numeros > div { padding: 12px 12px; display: grid; gap: 1px; border-left: 1px solid var(--line); position: relative; }
.numeros > div:first-child { border-left: 0; }
.numeros b { font-family: var(--fd); font-size: 22px; font-weight: 600; color: var(--strong); line-height: 1.1; letter-spacing: -.02em; }
.numeros span { font-size: 11.5px; color: var(--muted); font-weight: 600; }
@media (max-width: 420px) { .numeros { grid-template-columns: repeat(2, 1fr); } .numeros > div:nth-child(3) { border-left: 0; } .numeros > div:nth-child(n+3) { border-top: 1px solid var(--line); } }

.atencao { display: flex; gap: 12px; align-items: center; padding: 11px 14px; border-radius: var(--r-lg); background: var(--glass); border: 1px solid var(--edge); width: 100%; text-align: left; color: var(--ink); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); box-shadow: var(--shadow); transition: transform .2s var(--ease), background .2s; }
.atencao:hover { background: var(--glass-2); transform: translateY(-1px); }
.atencao .ic { width: 36px; height: 36px; border-radius: 12px; background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: #fff; display: grid; place-items: center; flex: none; box-shadow: var(--glow); }
.atencao .ic svg { width: 19px; height: 19px; }
.atencao.av .ic { background: linear-gradient(135deg, #C77D12, #F5B544); box-shadow: 0 8px 24px rgba(245,181,68,.35); }

.agenda .item .h { width: 46px; flex: none; font-weight: 600; color: var(--strong); font-family: var(--fd); font-size: 13px; }
.ponto { width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.ponto.warn { background: var(--warn); box-shadow: 0 0 10px var(--warn); } .ponto.risk { background: var(--risk); box-shadow: 0 0 10px var(--risk); } .ponto.off { background: var(--faint); box-shadow: none; opacity: .5; }

/* Aprovações */
.aprov { display: grid; gap: 12px; padding: 14px; }
.aprov-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.meta { display: grid; gap: 1px; font-size: 12.5px; color: var(--muted); }
.meta b { color: var(--strong); font-size: 15px; font-family: var(--fd); font-weight: 600; }
.alerta { display: flex; gap: 8px; align-items: flex-start; padding: 8px 10px; border-radius: var(--r); font-size: 12.5px; background: var(--warn-bg); border: 1px solid rgba(245,181,68,.25); color: var(--ink); }
.alerta.r { background: var(--risk-bg); border-color: rgba(245,115,110,.25); }
.alerta svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--warn); }
.alerta.r svg { color: var(--risk); }
.vazio { text-align: center; padding: 32px 16px; display: grid; gap: 8px; justify-items: center; }
.vazio .ic { width: 60px; height: 60px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); display: grid; place-items: center; box-shadow: 0 0 30px rgba(79,208,138,.25); }
.vazio .ic svg { width: 28px; height: 28px; }

/* Clientes */
.etapa { display: grid; gap: 6px; padding: 11px 14px; border-top: 1px solid var(--line); }
.etapa:first-child { border-top: 0; }
.etapa-top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.voltar { justify-self: start; margin-left: -10px; }
.ini { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; background: var(--glass-3); border: 1px solid var(--edge); color: var(--strong); flex: none; font-family: var(--fd); }
.ini.cli { border-radius: 14px; background: linear-gradient(135deg, #0A2050, #051534); color: #fff; border-color: rgba(159,182,232,.3); box-shadow: 0 6px 18px rgba(4,83,212,.3); }

/* Perfis */
.perfis { display: grid; gap: 8px; }
.perfil-op { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; padding: 10px 12px; border: 1px solid var(--edge-2); border-radius: var(--r); background: var(--chat); text-align: left; transition: border-color .2s, background .2s; }
.perfil-op input { grid-row: 1 / span 2; margin-top: 4px; accent-color: var(--accent); width: 18px; height: 18px; }
.perfil-op b { color: var(--strong); }
.perfil-op span { grid-column: 2; font-size: 12px; color: var(--muted); }
.perfil-op:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 3px var(--accent-soft); }
.pf { font-size: 11.5px; font-weight: 700; padding: 2px 9px; border-radius: 999px; letter-spacing: .02em; }
.pf-socio { background: linear-gradient(135deg, #0A2050, #051534); color: #fff; border: 1px solid rgba(159,182,232,.3); }
.pf-consultor { background: var(--accent-soft); color: var(--accent); }
.pf-interlocutor { background: var(--glass-3); color: var(--strong); }
.pf-cliente { background: var(--glass-2); color: var(--muted); }

/* Mensagens */
.vars { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.var { border: 1px dashed var(--accent); background: var(--accent-soft); color: var(--accent); border-radius: 999px; padding: 4px 11px; font-size: 13px; font-weight: 700; min-height: 34px; }
.editor { display: grid; gap: 16px; }
@media (min-width: 760px) { .editor { grid-template-columns: 1fr 1fr; align-items: start; } }

/* Regras */
.regra { display: grid; gap: 6px; padding: 11px 14px; border-top: 1px solid var(--line); }
.regra:first-child { border-top: 0; }
.regra-top { display: flex; gap: 10px; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.regra .in { max-width: 100%; }
.regra .in.curto { width: 120px; }
.salvo { font-size: 12px; font-weight: 600; color: var(--ok); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 4px 6px 4px 11px; border-radius: 999px; background: var(--glass-2); border: 1px solid var(--edge); font-size: 13px; font-weight: 600; color: var(--strong); }
.tag button { border: 0; background: none; width: 24px; height: 24px; border-radius: 50%; color: var(--muted); display: grid; place-items: center; padding: 0; }
.tag button:hover { background: var(--glass-3); color: var(--strong); }
.tag button svg { width: 14px; height: 14px; }
svg { max-width: 100%; }
.tag-add { display: flex; gap: 6px; }
.tag-add .in { min-height: 40px; max-width: 200px; }

/* Histórico */
.dia { font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); padding: 6px 4px 0; font-family: var(--fd); }
.hist .h { width: 46px; flex: none; font-weight: 600; color: var(--strong); font-size: 13.5px; font-family: var(--fd); }

/* Mudanças */
.mud { display: grid; gap: 4px; padding: 11px 14px; border-top: 1px solid var(--line); }
.mud:first-child { border-top: 0; }
.antes-depois { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 14px; }
.antes-depois s { color: var(--faint); }
.antes-depois b { color: var(--strong); }

/* Login */
.login { color: #DCE8F5; display: grid; place-items: center; position: fixed; inset: 0; z-index: 40; overflow-y: auto;
  padding-block: calc(32px + env(safe-area-inset-top, 0px)) calc(32px + env(safe-area-inset-bottom, 0px));
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
  background: radial-gradient(800px 500px at 80% -10%, rgba(59,123,242,.6), transparent 60%), radial-gradient(600px 400px at 0% 100%, rgba(4,83,212,.35), transparent 60%), linear-gradient(180deg, #071331, #050C1F); }
.login-box { width: 100%; max-width: 390px; display: grid; gap: 22px; }
.login-box .logo svg { width: 150px; height: auto; filter: drop-shadow(0 4px 20px rgba(4,83,212,.5)); }
.login-box h1 { color: #fff; }
.login-box p { color: #B9C8E8; }
.login .card { background: rgba(255,255,255,.07); border-color: rgba(159,182,232,.25); color: #E8EEFA; }
.login .card .campo > label { color: #fff; }
.login .in { background: rgba(2,8,23,.45); color: #fff; border-color: rgba(159,182,232,.3); }
.login .in::placeholder { color: #6F7FA3; }
.login .btn-p { background: linear-gradient(135deg, #0453D4, #3B7BF2); color: #fff; box-shadow: 0 8px 28px rgba(4,83,212,.5); }
.login .btn-txt { color: #9FB6E8; }
.login .muted { color: #9DAECF; }
.login .erro { color: #F5736E; }
.otp { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.otp input { text-align: center; font-size: 20px; font-weight: 700; padding: 0; min-height: 48px; font-family: var(--fd); }
.passos { display: flex; gap: 6px; }
.passos i { height: 4px; flex: 1; border-radius: 4px; background: rgba(159,182,232,.2); transition: background .3s; }
.passos i.on { background: linear-gradient(90deg, #0453D4, #9FB6E8); }

/* Folha (confirmações, detalhes) */
.veu { position: fixed; inset: 0; z-index: 50; background: rgba(2,8,23,.6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: flex; align-items: flex-end; justify-content: center; animation: veu .25s; }
@keyframes veu { from { opacity: 0; } }
.folha { width: 100%; max-width: 560px; max-height: 88vh; overflow-y: auto; background: color-mix(in srgb, var(--bg-2) 92%, white 0%); border: 1px solid var(--edge-2); border-bottom: 0; border-radius: 28px 28px 0 0; box-shadow: var(--shadow-lg);
  padding: 10px 20px calc(20px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 16px; animation: sobe .4s var(--ease);
  padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.folha .alca { width: 40px; height: 5px; border-radius: 5px; background: var(--edge-2); justify-self: center; }
@keyframes sobe { from { transform: translateY(50px); opacity: 0; } }
@media (min-width: 700px) { .veu { align-items: center; } .folha { border-radius: 28px; border-bottom: 1px solid var(--edge-2); padding-bottom: 24px; } .folha .alca { display: none; } }
.folha .icgr { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--risk-bg); color: var(--risk); border: 1px solid rgba(245,115,110,.3); }
.folha .icgr svg { width: 22px; height: 22px; }
.folha .icgr.az { background: var(--accent-soft); color: var(--accent); border-color: rgba(59,123,242,.3); }
.folha ul { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.folha .card { backdrop-filter: none; -webkit-backdrop-filter: none; }

/* Aviso */
.toast { position: fixed; z-index: 60; left: 50%; transform: translate(-50%, 20px); bottom: calc(80px + env(safe-area-inset-bottom, 0px)); background: var(--strong); color: var(--bg);
  border-radius: 999px; padding: 10px 14px 10px 16px; font-size: 13px; font-weight: 600; display: flex; gap: 12px; align-items: center; max-width: calc(100% - 32px); width: max-content; opacity: 0; pointer-events: none; transition: opacity .25s, transform .4s var(--ease); box-shadow: var(--shadow); }
.toast.on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast button { border: 0; background: none; color: var(--accent); font-weight: 800; padding: 4px 6px; }
@media (min-width: 960px) { .toast { bottom: 24px; } }

.nota { font-size: 12px; color: var(--muted); background: var(--chat); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 14px; }
.mais-grade { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mais-grade button { display: grid; gap: 6px; justify-items: start; padding: 13px; border-radius: var(--r-lg); border: 1px solid var(--edge); background: var(--glass); text-align: left; transition: background .2s; }
.mais-grade button:hover { background: var(--glass-2); }
.mais-grade button svg { width: 24px; height: 24px; color: var(--accent); filter: drop-shadow(0 0 8px var(--accent-glow)); }
.mais-grade button b { color: var(--strong); font-family: var(--fd); font-weight: 600; }
.mais-grade button span { font-size: 13px; color: var(--muted); }

.decis { display: grid; gap: 0; }
.decis .item { align-items: flex-start; }
.decis .n { width: 28px; height: 28px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 13px; display: grid; place-items: center; flex: none; font-family: var(--fd); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
/* ---------- Só no painel real ---------- */
.carregando { display: grid; place-items: center; padding: 48px 0; color: var(--muted); }
.qr { background: #fff; border-radius: var(--r); padding: 10px; justify-self: center; width: 200px; max-width: 100%; }
.qr svg { width: 100%; height: auto; display: block; }
.segredo { font-family: ui-monospace, Menlo, monospace; font-size: 13px; letter-spacing: .08em; word-break: break-all; color: #fff; background: rgba(2,8,23,.45); border-radius: var(--r); padding: 8px 10px; }
.link-csv { text-decoration: none; }

/* Regras por tema: uma seção aberta por vez */
details.secao { padding: 0; }
details.secao > summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 16px 18px; cursor: pointer; }
details.secao > summary::-webkit-details-marker { display: none; }
details.secao > summary .txt { flex: 1; display: grid; gap: 2px; }
details.secao > summary b { color: var(--strong); }
details.secao > summary em { font-style: normal; font-size: 12px; color: var(--muted); }
details.secao > summary .chev { width: 18px; height: 18px; transition: transform .2s; color: var(--muted); }
details.secao[open] > summary .chev { transform: rotate(90deg); }
details.secao[open] > summary { border-bottom: 1px solid var(--line); }
.freqs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.freq { display: grid; gap: 4px; }
.freq .in { padding-left: 10px; padding-right: 6px; }

/* Custos do Claude */
.tit-card { margin-bottom: -4px; }
.custo { padding-top: 10px; border-top: 1px solid var(--line); display: grid; gap: 5px; }
.tit-card + .custo { border-top: 0; padding-top: 0; }
.custo-total { font-size: 26px; font-weight: 600; color: var(--strong); letter-spacing: -.02em; margin: 2px 0; }
.barra { height: 5px; border-radius: 99px; background: var(--edge); overflow: hidden; }
.barra i { display: block; height: 100%; border-radius: 99px; background: var(--accent); }
