:root {
  --bg: #0e1116;
  --bg2: #151a21;
  --card: #1b212a;
  --card2: #222a35;
  --linha: #2c3542;
  --txt: #e8ecf1;
  --txt2: #9aa5b4;
  --ouro: #d4a84b;
  --ouro2: #f0cc7a;
  --azul: #3b82f6;
  --verde: #22c55e;
  --verm: #ef4444;
  --raio: 14px;
  --fonte: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --maquina: 'Special Elite', 'Courier New', monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--txt); font-family: var(--fonte); -webkit-tap-highlight-color: transparent; }
body { min-height: 100dvh; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--ouro2); }
h1, h2, h3 { margin: 0; }
.maq { font-family: var(--maquina); letter-spacing: .02em; }

/* ---------- genéricos ---------- */
.pagina { max-width: 560px; margin: 0 auto; padding: 18px 16px 40px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 12px; padding: 14px 18px; font-weight: 600; background: var(--card2); color: var(--txt); text-decoration: none; transition: transform .08s, background .2s; }
.btn:active { transform: scale(.98); }
.btn.pri { background: linear-gradient(180deg, var(--ouro2), var(--ouro)); color: #1a1406; }
.btn.perigo { background: #4a1d1d; color: #ffd4d4; }
.btn.verde { background: #14532d; color: #d1fadf; }
.btn.bloco { width: 100%; }
.btn.peq { padding: 8px 12px; font-size: 14px; border-radius: 10px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.card { background: var(--card); border: 1px solid var(--linha); border-radius: var(--raio); padding: 16px; }
.mt { margin-top: 14px; } .mt2 { margin-top: 24px; }
.sub { color: var(--txt2); font-size: 14px; }
.campo { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.campo label { font-size: 13px; color: var(--txt2); font-weight: 500; }
.campo input, .campo select, .entrada { background: var(--bg2); border: 1px solid var(--linha); border-radius: 10px; padding: 12px; outline: none; width: 100%; }
.campo input:focus, .entrada:focus { border-color: var(--ouro); }
.seg { display: flex; gap: 6px; background: var(--bg2); padding: 4px; border-radius: 12px; border: 1px solid var(--linha); }
.seg button { flex: 1; border: 0; background: transparent; padding: 10px; border-radius: 9px; color: var(--txt2); font-weight: 600; }
.seg button.on { background: var(--card2); color: var(--txt); box-shadow: 0 0 0 1px var(--linha); }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: 12px; background: var(--card2); color: var(--txt2); border: 1px solid var(--linha); }
.chip.ok { color: #bbf7d0; background: #10331f; border-color: #1d5c37; }
.chip.alerta { color: #fecaca; background: #3a1414; border-color: #6b2121; }
.badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--verm); color: #fff; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.vazio { text-align: center; color: var(--txt2); padding: 24px 8px; font-size: 14px; }

/* ---------- início ---------- */
.capa { text-align: center; padding: 34px 0 20px; }
.capa .distintivo { width: 96px; height: 96px; margin: 0 auto 14px; }
.capa h1 { font-family: var(--maquina); font-size: 34px; letter-spacing: .06em; }
.capa p { color: var(--txt2); margin: 8px 0 0; }
.caso-card { position: relative; overflow: hidden; background: linear-gradient(135deg, #2a2216, #1b212a 60%); border-color: #4a3d22; }
.caso-card .num { font-family: var(--maquina); color: var(--ouro2); font-size: 13px; }
.caso-card h2 { font-family: var(--maquina); font-size: 24px; margin: 6px 0 4px; }
.pilha { display: grid; gap: 10px; }

/* ---------- escala ---------- */
.inv-form { border-left: 3px solid var(--ouro); }
.inv-form h3 { font-size: 15px; }
.linha2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ---------- lobby ---------- */
.codigo-sala { font-family: var(--maquina); font-size: 46px; letter-spacing: .18em; text-align: center; color: var(--ouro2); margin: 6px 0; }
.qr { display: block; width: 180px; height: 180px; margin: 10px auto; background: #fff; border-radius: 12px; padding: 8px; }
.funcional { display: grid; grid-template-columns: 54px 1fr; gap: 12px; align-items: center; background: linear-gradient(135deg, #1f2733, #1a1f27); border: 1px solid var(--linha); border-radius: 12px; padding: 12px; }
.funcional .foto { width: 54px; height: 64px; border-radius: 8px; background: #2c3542; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px; color: var(--ouro2); font-family: var(--maquina); }
.funcional b { display: block; }
.funcional small { color: var(--txt2); display: block; line-height: 1.4; }

/* ---------- jogo: topo ---------- */
.topo { position: sticky; top: 0; z-index: 20; background: rgba(14,17,22,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--linha); padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top)); }
.topo-l { display: flex; align-items: center; justify-content: space-between; gap: 8px; max-width: 1280px; margin: 0 auto; }
.topo h1 { font-family: var(--maquina); font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.relogio { font-family: var(--maquina); color: var(--ouro2); font-size: 18px; }
.abas { display: flex; gap: 6px; margin: 10px auto 0; max-width: 1280px; }
.abas button { flex: 1; border: 0; border-radius: 10px; padding: 10px; background: var(--card); color: var(--txt2); font-weight: 600; position: relative; }
.abas button.on { background: var(--card2); color: var(--txt); box-shadow: inset 0 -2px 0 var(--ouro); }
.abas .badge { position: absolute; top: -4px; right: -2px; }
.jogo { max-width: 1280px; margin: 0 auto; padding: 14px 16px 60px; display: grid; gap: 16px; }
.col-fones, .col-mesa { min-width: 0; }
@media (min-width: 980px) {
  .abas { display: none; }
  .jogo { grid-template-columns: minmax(360px, 440px) 1fr; align-items: start; }
  .jogo .col-fones, .jogo .col-mesa { display: block !important; }
  .col-fones { position: sticky; top: 70px; }
}

/* ---------- celulares (faixas) ---------- */
.fones { display: grid; gap: 10px; }
.fone { border: 1px solid var(--linha); border-radius: 22px; background: #0a0c10; overflow: hidden; }
.fone-barra { width: 100%; display: flex; align-items: center; gap: 10px; border: 0; background: var(--card); padding: 12px 14px; text-align: left; }
.fone.aberto .fone-barra { background: var(--card2); }
.av { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; color: #fff; flex: none; background: #3a4656; }
.fone-barra .nome { flex: 1; min-width: 0; }
.fone-barra .nome b { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fone-barra .nome small { color: var(--txt2); font-size: 12px; }
.fone-barra .seta { color: var(--txt2); transition: transform .2s; }
.fone.aberto .seta { transform: rotate(180deg); }
.fone.tocando .fone-barra { animation: pulsa 0.9s infinite; background: #14532d; }
.fone .ring { display: none; font-size: 18px; animation: treme .3s infinite; }
.fone.tocando .ring { display: inline; }
@keyframes pulsa { 50% { background: #166534; box-shadow: inset 0 0 0 2px #4ade80; } }
@keyframes treme { 0%,100% { transform: rotate(-12deg); } 50% { transform: rotate(12deg); } }

.tela { height: min(66dvh, 600px); display: flex; flex-direction: column; background: #0d1117; }
.status { display: flex; justify-content: space-between; padding: 6px 16px; font-size: 12px; color: var(--txt2); font-weight: 600; }
.conteudo { flex: 1; overflow-y: auto; overscroll-behavior: contain; }
.nav-fone { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--linha); background: #11161d; }
.nav-fone button { border: 0; background: none; padding: 9px 4px 11px; color: var(--txt2); font-size: 11px; display: flex; flex-direction: column; align-items: center; gap: 2px; position: relative; }
.nav-fone button span { font-size: 19px; }
.nav-fone button.on { color: var(--ouro2); }
.nav-fone .badge { position: absolute; top: 4px; right: calc(50% - 22px); transform: scale(.85); }

.contato { width: 100%; display: flex; gap: 12px; align-items: center; padding: 12px 14px; border: 0; background: none; border-bottom: 1px solid #1a2029; text-align: left; }
.contato .meio { flex: 1; min-width: 0; }
.contato b { display: block; font-size: 15px; }
.contato small { display: block; color: var(--txt2); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.contato .dir { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 11px; color: var(--txt2); }

.chat { display: flex; flex-direction: column; height: 100%; }
.chat-topo { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-bottom: 1px solid var(--linha); background: #11161d; }
.chat-topo button.voltar { border: 0; background: none; font-size: 22px; color: var(--ouro2); padding: 4px 8px; }
.chat-topo b { display: block; font-size: 15px; }
.chat-topo small { color: var(--txt2); font-size: 12px; }
.msgs { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 6px; background: #0b0f14; }
.bolha { max-width: 82%; padding: 9px 12px; border-radius: 16px; font-size: 14.5px; line-height: 1.4; white-space: pre-wrap; word-wrap: break-word; }
.bolha.eles { background: #1f2732; align-self: flex-start; border-bottom-left-radius: 4px; }
.bolha.eu { background: #1d4ed8; align-self: flex-end; border-bottom-right-radius: 4px; }
.bolha.sistema { align-self: center; background: none; color: var(--txt2); font-size: 12px; font-style: italic; }
.bolha.dica { background: #3b2f12; border: 1px solid #6b5420; }
.bolha .hora { display: block; font-size: 10px; color: rgba(255,255,255,.45); margin-top: 3px; text-align: right; }
.audio-msg { display: flex; align-items: center; gap: 10px; min-width: 200px; }
.audio-msg button { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--verde); color: #04140a; font-size: 16px; flex: none; }
.onda { flex: 1; height: 26px; background: repeating-linear-gradient(90deg, #6b7a8c 0 3px, transparent 3px 6px); mask: linear-gradient(90deg, #000 0 100%); opacity: .7; border-radius: 4px; clip-path: polygon(0 40%, 5% 20%, 10% 60%, 15% 30%, 20% 70%, 25% 10%, 30% 50%, 35% 25%, 40% 65%, 45% 35%, 50% 15%, 55% 55%, 60% 30%, 65% 70%, 70% 20%, 75% 45%, 80% 25%, 85% 60%, 90% 35%, 95% 50%, 100% 40%, 100% 60%, 0 60%); }
.transc { font-size: 12px; color: var(--txt2); margin-top: 6px; font-style: italic; }
.link { background: none; border: 0; color: var(--ouro2); font-size: 12px; padding: 0; text-decoration: underline; }
.digitando { align-self: flex-start; color: var(--txt2); font-size: 13px; padding: 4px 10px; }
.digitando i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--txt2); margin: 0 1px; animation: pul 1s infinite; }
.digitando i:nth-child(2) { animation-delay: .15s; } .digitando i:nth-child(3) { animation-delay: .3s; }
@keyframes pul { 50% { opacity: .2; transform: translateY(-3px); } }
.chat-form { display: flex; gap: 8px; padding: 8px; border-top: 1px solid var(--linha); background: #11161d; }
.chat-form input { flex: 1; background: var(--bg2); border: 1px solid var(--linha); border-radius: 20px; padding: 10px 14px; outline: none; min-width: 0; }
.chat-form button { border: 0; border-radius: 50%; width: 42px; height: 42px; background: var(--azul); color: #fff; font-size: 18px; flex: none; }
.dica-bar { padding: 8px; border-top: 1px solid var(--linha); background: #17130a; }

.chamada { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 30px 20px 26px; background: radial-gradient(circle at 50% 30%, #1f2937, #05070a 70%); text-align: center; }
.chamada .grande { width: 96px; height: 96px; border-radius: 50%; background: #111; display: flex; align-items: center; justify-content: center; font-size: 42px; margin: 18px auto; box-shadow: 0 0 0 10px rgba(255,255,255,.04), 0 0 0 22px rgba(255,255,255,.02); }
.chamada h2 { font-size: 22px; }
.chamada .botoes { display: flex; gap: 46px; }
.chamada .botoes button { width: 66px; height: 66px; border-radius: 50%; border: 0; font-size: 26px; color: #fff; }
.b-atender { background: #16a34a; animation: pulsa2 1.2s infinite; }
.b-recusar { background: #dc2626; }
@keyframes pulsa2 { 50% { box-shadow: 0 0 0 12px rgba(22,163,74,.25); } }
.fala { min-height: 90px; font-size: 15px; color: #cbd5e1; font-style: italic; line-height: 1.5; padding: 0 6px; }

.pad { padding: 14px; }
.lig { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid #1a2029; }
.lig .meio { flex: 1; }
.lig b { display: block; }
.lig small { color: var(--txt2); }
.perdida b { color: #f87171; }
.cod-in { font-family: var(--maquina); font-size: 26px; text-align: center; letter-spacing: .12em; text-transform: uppercase; }
.retorno { margin-top: 10px; padding: 10px 12px; border-radius: 10px; font-size: 14px; }
.retorno.ok { background: #10331f; color: #bbf7d0; }
.retorno.nao { background: #3a1414; color: #fecaca; }

/* ---------- mesa ---------- */
.mesa-abas { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
.mesa-abas button { border: 1px solid var(--linha); background: var(--card); color: var(--txt2); padding: 8px 14px; border-radius: 999px; font-weight: 600; white-space: nowrap; font-size: 14px; }
.mesa-abas button.on { background: var(--ouro); color: #1a1406; border-color: var(--ouro); }
.folhas { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.folha { background: #efe7d2; color: #2b2418; border-radius: 6px; padding: 12px; min-height: 110px; position: relative; box-shadow: 0 6px 14px rgba(0,0,0,.35); font-family: var(--maquina); }
.folha .n { font-size: 26px; font-weight: 700; }
.folha .t { font-size: 13px; line-height: 1.3; margin-top: 4px; }
.folha .st { position: absolute; right: 8px; bottom: 8px; font-family: var(--fonte); font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 6px; }
.folha.pend { opacity: .55; }
.folha.pend .st { background: #c9bfa6; }
.folha.ok .st { background: #166534; color: #fff; }
.folha.furtada { background: #3a1414; color: #fecaca; }
.folha.furtada .st { background: #dc2626; color: #fff; }
.arquivo { margin-top: 10px; }
.arquivo summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; gap: 8px; align-items: center; }
.arquivo summary::-webkit-details-marker { display: none; }
.arquivo p { white-space: pre-wrap; margin: 10px 0 0; color: #cfd6df; line-height: 1.55; font-size: 14px; }
.clips { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.clip { border: 1px solid var(--linha); background: #06080b; border-radius: 12px; overflow: hidden; text-align: left; padding: 0; }
.clip canvas { width: 100%; display: block; aspect-ratio: 16/9; }
.clip div { padding: 10px; }
.clip b { display: block; font-size: 14px; font-family: var(--maquina); }
.clip small { color: var(--txt2); font-size: 12px; }
.feed li { padding: 8px 0; border-bottom: 1px solid var(--linha); font-size: 14px; list-style: none; display: flex; gap: 10px; }
.feed { padding: 0; margin: 0; }
.feed time { color: var(--txt2); font-family: var(--maquina); font-size: 12px; flex: none; padding-top: 2px; }
.opcao { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--linha); border-radius: 10px; margin-top: 6px; background: var(--bg2); cursor: pointer; font-size: 14px; }
.opcao input { margin-top: 2px; accent-color: var(--ouro); width: 18px; height: 18px; flex: none; }
.grupo-tit { font-weight: 700; margin-top: 18px; font-size: 15px; }

/* ---------- modal / câmera ---------- */
#modal { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.86); display: flex; align-items: center; justify-content: center; padding: 16px; }
#modal[hidden] { display: none; }
.modal-caixa { width: min(980px, 100%); background: var(--bg2); border: 1px solid var(--linha); border-radius: 16px; padding: 14px; max-height: 96dvh; overflow: auto; }
.modal-topo { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.modal-topo b { font-family: var(--maquina); }
.fechar { border: 0; background: var(--card2); width: 36px; height: 36px; border-radius: 50%; font-size: 18px; flex: none; }
.cctv-tela { position: relative; background: #000; border-radius: 8px; overflow: hidden; }
.cctv canvas { width: 100%; display: block; aspect-ratio: 16/9; cursor: zoom-in; touch-action: manipulation; }
.cctv-zoom { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); font-family: var(--maquina); color: #ff0; text-shadow: 0 0 4px #000; font-size: 14px; }
.cctv-ctrl { display: flex; gap: 6px; align-items: center; margin-top: 10px; }
.cctv-ctrl button { border: 0; background: var(--card2); width: 42px; height: 40px; border-radius: 10px; flex: none; }
.cctv-ctrl input { flex: 1; accent-color: var(--ouro); min-width: 0; }
.cctv-vel { width: 50px !important; font-weight: 700; font-size: 13px; }
.cctv-dica { font-size: 12px; color: var(--txt2); margin: 8px 0 0; }

/* ---------- toasts ---------- */
#toasts { position: fixed; top: 10px; left: 50%; transform: translateX(-50%); z-index: 60; display: grid; gap: 8px; width: min(420px, calc(100% - 32px)); pointer-events: none; }
.toast { background: #1f2937; border: 1px solid #374151; border-radius: 12px; padding: 12px 14px; font-size: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.5); animation: entra .25s ease-out; pointer-events: auto; }
@keyframes entra { from { transform: translateY(-12px); opacity: 0; } }

/* ---------- resultado / perfil ---------- */
.veredito { text-align: center; padding: 26px 16px; border-radius: 16px; background: linear-gradient(160deg, #14301f, #0f1a14); border: 1px solid #1f5135; }
.veredito.errou { background: linear-gradient(160deg, #3a1414, #1a0d0d); border-color: #6b2121; }
.veredito .nota { font-family: var(--maquina); font-size: 84px; line-height: 1; color: var(--ouro2); }
.pontos { width: 100%; border-collapse: collapse; font-size: 14px; }
.pontos td { padding: 7px 0; border-bottom: 1px solid var(--linha); }
.pontos td:last-child { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.medalhas { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.medalha { text-align: center; background: var(--card2); border: 1px solid var(--linha); border-radius: 12px; padding: 12px 8px; }
.medalha .ic { font-size: 32px; }
.medalha b { display: block; font-size: 13px; margin-top: 4px; }
.medalha small { color: var(--txt2); font-size: 11px; display: block; margin-top: 2px; }
.medalha.bloq { opacity: .35; filter: grayscale(1); }
.estrelas { display: flex; gap: 4px; }
.estrelas button { border: 0; background: none; font-size: 30px; color: #475569; padding: 0 2px; }
.estrelas button.on { color: var(--ouro2); }
.historia { line-height: 1.65; color: #d6dde6; font-size: 15px; }
.patente { font-family: var(--maquina); color: var(--ouro2); }

/* =================================================================== v2: celular emulado */
.tela { height: min(74dvh, 680px); position: relative; }
.conteudo { position: relative; }
.home-bg { background: radial-gradient(circle at 30% 20%, #1e3a5f 0, #0b1220 55%, #05080d 100%); }
.home-relogio { text-align: center; padding: 26px 0 10px; color: #fff; }
.home-relogio b { font-size: 54px; font-weight: 300; letter-spacing: -1px; display: block; line-height: 1; }
.home-relogio small { color: #cbd5e1; font-size: 13px; }
.home-relogio.escuro b { color: #0f172a; } .home-relogio.escuro small { color: #475569; }
.grade-apps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 8px; padding: 20px 18px; }
.app-ic { border: 0; background: none; display: flex; flex-direction: column; align-items: center; gap: 6px; color: #fff; padding: 0; }
.app-ic .ic { width: 62px; height: 62px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 30px; position: relative; box-shadow: 0 6px 16px rgba(0,0,0,.35); }
.app-ic .ic .badge { position: absolute; top: -6px; right: -6px; font-style: normal; }
.app-ic small { font-size: 12px; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.home-dica { text-align: center; color: #94a3b8; font-size: 12px; padding: 0 16px 16px; }
.banner-not { position: absolute; top: 30px; left: 8px; right: 8px; z-index: 5; background: rgba(30,41,59,.96); border: 1px solid #334155; border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; box-shadow: 0 10px 24px rgba(0,0,0,.5); animation: entra .25s ease-out; font-size: 13px; }
.banner-not b { font-size: 13px; }
.banner-not span { color: #cbd5e1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.barra-home { border: 0; background: #0d1117; padding: 8px 0 10px; display: flex; justify-content: center; }
.barra-home i { width: 120px; height: 5px; border-radius: 3px; background: #e5e7eb; opacity: .8; }
.barra-home.claro { background: #f1f5f9; } .barra-home.claro i { background: #111; opacity: .6; }
.app-topo { display: flex; align-items: center; gap: 6px; padding: 8px 10px; position: sticky; top: 0; z-index: 2; }
.app-topo b { font-size: 17px; }
.app-topo .voltar, .chat-topo .voltar { border: 0; background: none; font-size: 26px; color: #fff; padding: 0 8px; line-height: 1; }
.app-topo.claro { background: #f8fafc; color: #0f172a; border-bottom: 1px solid #e2e8f0; }
.app-topo.claro .voltar { color: #2563eb; }

/* Zap */
.zap-lista .contato, .conteudo > .contato { border-bottom-color: #1f2c34; }
.badge.verde { background: #25d366; color: #052e16; }
.chat-topo { background: #1f2c34; }
.chat-topo .ligar-topo { margin-left: auto; border: 0; background: none; font-size: 20px; }
.zap-fundo { background-color: #0b141a; background-image: radial-gradient(rgba(255,255,255,.035) 1px, transparent 1px); background-size: 18px 18px; }
.bolha.eu { background: #005c4b; }
.bolha.eles { background: #202c33; }
.bolha .autor { display: block; font-size: 12px; font-weight: 700; color: #53bdeb; margin-bottom: 2px; }
.bolha .enc { display: block; font-size: 11px; color: #8696a0; font-style: italic; margin-bottom: 3px; }
.bolha .cv { font-size: 11px; color: #8696a0; margin-bottom: 5px; }
.tick { color: #53bdeb; font-style: normal; }
.anexo { display: flex; align-items: center; gap: 6px; margin-top: 8px; width: 100%; border: 0; border-radius: 10px; padding: 10px; background: rgba(0,0,0,.3); color: #e9edef; font-size: 13px; text-align: left; }
.chat-form { background: #1f2c34; }
.chat-form button { background: #00a884; }
.dica-bar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

/* Telefone */
.tel-corpo { min-height: calc(100% - 110px); }
.discador { padding: 10px 26px; }
.visor { text-align: center; font-size: 28px; min-height: 44px; padding: 8px 0 14px; letter-spacing: 1px; }
.teclas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 18px; justify-items: center; }
.teclas button { width: 66px; height: 66px; border-radius: 50%; border: 0; background: #1f2937; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.teclas button b { font-size: 26px; font-weight: 400; line-height: 1; }
.teclas button small { font-size: 9px; letter-spacing: 2px; color: #94a3b8; }
.teclas-acao { display: grid; grid-template-columns: repeat(3, 1fr); justify-items: center; align-items: center; margin-top: 14px; }
.b-ligar { width: 66px; height: 66px; border-radius: 50%; border: 0; background: #22c55e; font-size: 26px; }
.b-apagar { border: 0; background: none; color: #cbd5e1; font-size: 24px; }
.abas-tel { position: sticky; bottom: 0; display: grid; grid-template-columns: repeat(3, 1fr); background: #11161d; border-top: 1px solid var(--linha); }
.abas-tel button { border: 0; background: none; color: var(--txt2); font-size: 11px; padding: 8px 0; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.abas-tel button span { font-size: 18px; }
.abas-tel button.on { color: #22c55e; }

/* CFTV / arquivos / funcional */
.aviso-cond { margin: 10px; padding: 10px 12px; border-radius: 10px; background: #3b2f12; border: 1px solid #6b5420; font-size: 13px; }
.lista-cams { display: grid; gap: 8px; padding: 10px; }
.cam-item { display: grid; grid-template-columns: 120px 1fr; gap: 10px; align-items: center; border: 1px solid var(--linha); background: #06080b; border-radius: 12px; padding: 6px; text-align: left; }
.cam-item canvas { width: 120px; height: 68px; border-radius: 6px; display: block; }
.cam-item b { font-family: var(--maquina); font-size: 13px; display: block; }
.cam-item small { color: var(--txt2); font-size: 11px; line-height: 1.35; }
.tremor { font-size: 64px; text-align: center; animation: tremer .12s infinite; margin: 20px 0; }
@keyframes tremer { 0% { transform: translate(0,0) rotate(0); } 25% { transform: translate(2px,-1px) rotate(2deg); } 50% { transform: translate(-2px,1px) rotate(-2deg); } 75% { transform: translate(1px,2px) rotate(1deg); } }
.cracha { border-radius: 14px; overflow: hidden; background: linear-gradient(160deg, #f8fafc, #e2e8f0); color: #0f172a; box-shadow: 0 8px 20px rgba(0,0,0,.4); }
.cracha-topo { background: #1e3a8a; color: #fff; font-weight: 700; letter-spacing: .12em; font-size: 12px; padding: 8px 12px; }
.cracha-meio { display: grid; grid-template-columns: 70px 1fr; gap: 12px; padding: 12px; align-items: center; }
.cracha-meio .foto { width: 70px; height: 84px; border-radius: 8px; background: #94a3b8; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700; color: #fff; }
.cracha-meio b { display: block; font-size: 16px; }
.cracha-meio small { display: block; color: #334155; font-size: 12px; line-height: 1.5; }
.transferir { background: rgba(0,0,0,.4); border-radius: 12px; padding: 10px; }
.transferir p { margin: 0 0 8px; font-size: 13px; }
.papel-arquivo { white-space: pre-wrap; background: #f4efe2; color: #2b2418; font-family: var(--maquina); padding: 16px; border-radius: 8px; line-height: 1.6; font-size: 14px; }
.arquivo-btn { width: 100%; text-align: left; margin-top: 8px; font-weight: 600; color: var(--txt); }

/* celular da vítima (tema claro) */
.fone.vit { border-color: #9d174d; }
.fone.vit .fone-barra { background: #3b0a1f; }
.tela-vit { background: #f1f5f9; color: #0f172a; }
.status.claro { color: #0f172a; background: #f1f5f9; }
.vit-bg { background: linear-gradient(180deg, #e0f2fe, #f8fafc 40%); }
.vit-bg .contato { border-bottom-color: #e2e8f0; color: #0f172a; }
.vit-bg .contato small, .vit-bg .contato .dir { color: #64748b; }
.vit-bg .app-ic { color: #0f172a; } .vit-bg .app-ic small { text-shadow: none; }
.vit-bg .chat-topo { background: #075e54; color: #fff; }
.vit-bg .chat-form { background: #e2e8f0; }
.bloqueio { flex: 1; display: flex; flex-direction: column; background: linear-gradient(180deg, #312e81 0, #7c2d12 70%, #1c1917 100%); color: #fff; padding: 14px; overflow-y: auto; height: calc(100% - 30px); }
.bloq-hora { text-align: center; padding: 18px 0; }
.bloq-hora b { font-size: 64px; font-weight: 200; display: block; line-height: 1; }
.notifs { display: grid; gap: 8px; flex: 1; }
.notif { background: rgba(255,255,255,.16); backdrop-filter: blur(6px); border-radius: 14px; padding: 10px 12px; display: grid; gap: 2px; font-size: 13px; }
.notif.nova { background: rgba(255,255,255,.3); box-shadow: 0 0 0 2px #fbbf24; }
.notif .n-app { font-size: 10px; letter-spacing: .1em; opacity: .8; }
.notif small { opacity: .7; font-size: 11px; }
.bloq-btn { margin-top: 12px; background: rgba(255,255,255,.2); color: #fff; }
.pin { height: calc(100% - 30px); background: linear-gradient(180deg, #1e1b4b, #0f172a); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 16px; }
.pontos { display: flex; gap: 14px; margin: 6px 0 10px; }
.pontos i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #fff; }
.pontos i.on { background: #fff; }
.pin-erro { color: #fca5a5; font-size: 13px; text-align: center; margin: 0; max-width: 260px; }
.pin-teclas button { background: rgba(255,255,255,.14); font-size: 26px; }
.galeria { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; }
.foto-mini { border: 0; padding: 0; background: #000; position: relative; aspect-ratio: 3/4; overflow: hidden; }
.foto-mini svg { width: 100%; height: 100%; display: block; }
.foto-mini small { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(0,0,0,.55); color: #fff; font-size: 9px; padding: 2px; }
.foto-grande svg { width: 100%; max-height: 70dvh; display: block; border-radius: 8px; }
.card.claro { background: #fff; border-color: #e2e8f0; color: #0f172a; }
.grafico { width: 100%; margin-top: 8px; }
.tab-saude { width: 100%; font-size: 12px; border-collapse: collapse; margin-top: 6px; }
.tab-saude td { padding: 3px 0; border-bottom: 1px solid #f1f5f9; }
.email-ler h3 { margin: 6px 0; }
.nota-amarela { background: #fef9c3; min-height: 100%; white-space: pre-wrap; }
.nota-amarela h3 { margin: 4px 0 10px; }
.log-seg { font-family: var(--maquina); font-size: 12px; padding: 6px 0; border-bottom: 1px solid #f1f5f9; }
.log-seg.erro { color: #b91c1c; }
.bolha.sms { background: #22c55e; color: #fff; }
.bolha.eles.claro { background: #e5e7eb; color: #0f172a; }
.bolha.eles.claro .hora { color: #64748b; }
.vit-bg .msgs:not(.zap-fundo) .bolha.sistema { color: #64748b; }
.tela-vit .chamada { color: #fff; }
.tela-vit .zap-fundo { background-color: #efeae2; background-image: radial-gradient(rgba(0,0,0,.05) 1px, transparent 1px); }
.tela-vit .bolha.eles { background: #fff; color: #111b21; }
.tela-vit .bolha.eu { background: #d9fdd3; color: #111b21; }
.tela-vit .bolha .hora { color: #667781; }
.tela-vit .chat-form input { background: #fff; color: #111; border-color: #cbd5e1; }

/* =================================================================== v4: relógio, avisos, mural, viatura, fórum */
.relogio.noite { color: #a5b4fc; }
.col-avisos { min-width: 0; }
@media (min-width: 980px) { .col-avisos { display: none; } }
.legenda { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.legenda span { font-size: 12px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--cor); color: var(--txt); background: color-mix(in srgb, var(--cor) 18%, transparent); }
.avisos { display: grid; gap: 10px; }
.aviso { border-left: 5px solid var(--cor); background: color-mix(in srgb, var(--cor) 12%, var(--card)); border-radius: 12px; padding: 12px 14px; display: grid; gap: 4px; }
.aviso-topo { display: flex; justify-content: space-between; font-size: 12px; color: var(--cor); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.aviso-topo time { color: var(--txt2); font-family: var(--maquina); text-transform: none; letter-spacing: 0; }
.aviso b { font-size: 15px; }
.aviso p { margin: 0; color: #d6dde6; font-size: 14px; line-height: 1.5; white-space: pre-wrap; }
.aviso .post-img img { max-height: 220px; object-fit: cover; }
.overlay-aviso { position: fixed; inset: 0; z-index: 45; background: rgba(4,6,10,.88); display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 20px max(16px, env(safe-area-inset-left)); max-width: 560px; margin: 0 auto; }
.overlay-aviso .aviso { box-shadow: 0 20px 50px rgba(0,0,0,.6); animation: entra .3s ease-out; }
.card.noite { background: linear-gradient(160deg, #1e1b4b, #111827); border-color: #3730a3; margin-bottom: 12px; }
.afastado { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 8px; padding: 24px; background: radial-gradient(circle at 50% 30%, #4c0519, #0b0b0f 70%); }
.afastado .grande { font-size: 56px; }
.afastado p { margin: 0; color: #fecdd3; }
.pad-peq { padding: 10px; }
.sub-abas { display: flex; gap: 6px; padding: 8px 10px 0; }
.sub-abas button { flex: 1; border: 1px solid var(--linha); background: var(--card); color: var(--txt2); border-radius: 999px; padding: 6px 8px; font-size: 12px; font-weight: 600; }
.sub-abas button.on { background: #1d4ed8; color: #fff; border-color: #1d4ed8; }
.grupo-dil { margin: 14px 0 6px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--txt2); }
.dil { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px; border: 1px solid var(--linha); border-radius: 10px; margin-bottom: 6px; background: var(--card); }
.dil > div { min-width: 0; }
.dil b { display: block; font-size: 14px; }
.dil small { color: var(--txt2); font-size: 12px; }
.dil .btn, .dil .chip { flex: none; }
.chip.azul { color: #bfdbfe; background: #172554; border-color: #1e40af; }
.aviso-cond.azul { background: #172554; border-color: #1e40af; }
.aviso-cond.roxo { background: #1e1b4b; border-color: #4338ca; }
.relatorio { border: 1px solid var(--linha); border-radius: 10px; padding: 10px; margin-bottom: 8px; background: var(--card); display: grid; gap: 4px; }
.relatorio small { color: var(--txt2); font-size: 12px; }
.relatorio p { margin: 0; font-size: 14px; line-height: 1.5; }
.relatorio.deferido { border-color: #166534; } .relatorio.indeferido { border-color: #7f1d1d; }
.post-img { display: block; width: 100%; padding: 0; border: 0; background: #000; border-radius: 10px; overflow: hidden; cursor: zoom-in; }
.post-img img { display: block; width: 100%; height: auto; }
.busca-mural { display: flex; gap: 6px; padding: 8px 10px; background: #1e1b2e; }
.busca-mural input { flex: 1; min-width: 0; background: var(--bg2); border: 1px solid #4c1d95; border-radius: 20px; padding: 9px 14px; outline: none; }
.busca-mural button { border: 0; background: #6d28d9; border-radius: 50%; width: 40px; height: 40px; }
.feed-mural { display: grid; gap: 10px; padding: 10px; }
.post { background: var(--card); border: 1px solid var(--linha); border-radius: 14px; padding: 10px; display: grid; gap: 8px; }
.post header { display: flex; gap: 10px; align-items: center; cursor: pointer; }
.post header b { display: block; font-size: 14px; }
.post header small { color: var(--txt2); font-size: 12px; }
.post p { margin: 0; font-size: 14px; line-height: 1.45; }
.post footer { font-size: 12px; color: var(--txt2); }
.coment { font-size: 13px; color: #cbd5e1; }
.avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex: none; background: #334155; }
.avatar.grande { width: 72px; height: 72px; }
.mural-perfil { display: flex; gap: 14px; align-items: center; padding: 14px; border-bottom: 1px solid var(--linha); }
.mural-perfil b { display: block; font-size: 16px; }
.mural-perfil small { display: block; color: var(--txt2); font-size: 13px; line-height: 1.5; }
.perfis-mural .contato { border-bottom-color: #2e1065; }
.fotos-arquivo { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin-bottom: 10px; }
.fotos-arquivo img { width: 100%; border-radius: 8px; display: block; }
.foto-cheia { display: block; width: 100%; max-height: 78dvh; object-fit: contain; border-radius: 8px; }
.foto-mini img { width: 100%; height: 100%; object-fit: cover; display: block; }
.grade-apps { gap: 14px 8px; padding: 14px 18px; }
.app-ic .ic { width: 58px; height: 58px; font-size: 28px; }
.av-foto { object-fit: cover; padding: 0; border: 1px solid rgba(255,255,255,.15); }
.funcional img.foto, .cracha-meio img.foto { object-fit: cover; display: block; }
.relogio { white-space: nowrap; font-size: 15px; }
.manchete { margin: 0; font-family: Georgia, serif; font-size: 17px; line-height: 1.3; }
.mapa-equipe { background: #0b1220; border: 1px solid var(--linha); border-radius: 12px; padding: 8px; margin-bottom: 10px; }
.mapa-equipe svg { width: 100%; height: auto; display: block; }
.legenda-mapa { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px; color: var(--txt2); margin-top: 6px; }
.legenda-mapa i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 4px; vertical-align: -1px; }
.aviso-cond .btn { margin-left: 6px; }

/* =================================================================== Radar (mapa da operação) */
:root { --mapa-fundo: #0e1a14; --mapa-serra: #163322; --mapa-rio: #1e4f73; --mapa-rodovia: #475569; --mapa-rua: #2f3b48; --mapa-centro: #1a2430; --mapa-pino: #111827; --mapa-txt: #e2e8f0; }
.radar-svg { width: 100%; height: auto; display: block; border-radius: 12px; border: 1px solid var(--linha); }
.radar .lugar:hover circle:nth-of-type(1) { filter: brightness(1.3); }
.pulsa { animation: pulsar 1.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes pulsar { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .pulsa { animation: none; } }
.radar-legenda { display: flex; flex-wrap: wrap; gap: 10px; font-size: 11px; color: var(--txt2); margin: 6px 0 8px; }
.painel-lugar { background: var(--card); border: 1px solid #0f766e; border-radius: 12px; padding: 10px; display: grid; gap: 6px; }
.equipe-lista { display: grid; gap: 6px; }
.equipe-item { display: flex; gap: 10px; align-items: center; background: var(--card); border: 1px solid var(--linha); border-radius: 10px; padding: 8px 10px; }
.equipe-item i { width: 14px; height: 14px; border-radius: 50%; flex: none; }
.equipe-item b { display: block; font-size: 14px; }
.equipe-item small { color: var(--txt2); font-size: 12px; }
@media (min-width: 980px) {
  .radar.grande { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 12px; align-items: start; }
  .radar.grande .radar-mapa { grid-row: span 6; }
}

/* ---- tempo: jogo em destaque, real pequeno ---- */
.tj, .dil b.tj, .rota-op .meio b.tj { display: inline; color: var(--txt); font-weight: 700; font-size: inherit; }
small.tr, .tr, .dil small.tr, .rota-op .meio small.tr { display: inline; font-size: 10px; color: var(--txt2); opacity: .75; font-weight: 400; white-space: nowrap; }
.aviso p small.tr { font-size: 10px; }
.dil > div > small { display: block; }
.nota-dil { display: block; margin-top: 4px; color: #fcd34d !important; }
.relatorio.falhou { border-left: 3px solid #f59e0b; }

/* ---- escolha do caminho ---- */
.escolha-rota { border: 1px solid #1d4ed8; margin-bottom: 10px; }
.escolha-rota .er-topo { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.escolha-rota .radar-svg { width: 100%; height: auto; border-radius: 10px; margin: 6px 0 8px; display: block; }
.rota-op { display: flex; align-items: center; gap: 10px; padding: 8px; border: 1px solid var(--linha); border-radius: 10px; margin-bottom: 6px; background: var(--card2); }
.rota-op .num { flex: none; width: 24px; height: 24px; border-radius: 50%; color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 13px; }
.rota-op .meio { flex: 1; min-width: 0; }
.rota-op .meio b { display: block; font-size: 14px; }
.rota-op .meio small { display: block; color: var(--txt2); font-size: 12px; }
.rota-op .lento { color: #fca5a5 !important; }
.rota-op .btn { flex: none; }

/* ---- câmeras ---- */
.cam-status { margin-top: 6px; padding: 6px 10px; border-radius: 8px; font-size: 13px; border-left: 4px solid var(--cor); background: var(--card2); }
.cams-lugar { display: flex; flex-direction: column; gap: 4px; margin: 8px 0; }
.cam-linha { all: unset; cursor: pointer; display: flex; align-items: center; gap: 6px; font-size: 13px; padding: 6px 8px; border-radius: 8px; background: var(--card2); }
.cam-linha small { color: var(--txt2); margin-left: auto; font-size: 11px; }
.cam-linha i, .pt-cam { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: middle; }
@media (min-width: 900px) {
  .radar.grande .radar-mapa { grid-column: 1; grid-row: 1 / span 8; }
  .radar.grande > :not(.radar-mapa) { grid-column: 2; }
}

/* ---- viaturas: quem vai e qual carro ---- */
.er-linha { margin: 8px 0; }
.er-linha > b { display: block; font-size: 13px; margin-bottom: 6px; }
.er-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.er-chips button.chip { cursor: pointer; font: inherit; font-size: 12px; }
.er-vtrs { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 6px; }
.er-vtr { all: unset; cursor: pointer; display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--linha); background: var(--card2); }
.er-vtr b { font-size: 13px; }
.er-vtr small { font-size: 11px; color: var(--txt2); }
.er-vtr small.lento { color: #fca5a5; }
.er-vtr.on { border-color: #3b82f6; box-shadow: 0 0 0 2px #1d4ed8 inset; }
.er-vtr[disabled] { opacity: .45; cursor: not-allowed; }
.frota { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; margin: 8px 0 10px; }
.frota-item { padding: 8px 10px; border-radius: 10px; border: 1px solid var(--linha); background: var(--card); display: flex; flex-direction: column; gap: 2px; }
.frota-item small { font-size: 11px; color: var(--txt2); }
.frota-item.uso { border-color: #1e40af; }

/* ---- áudio no Papo e ligação com IA ---- */
.chat-form .b-mic { background: #2a3942; }
.chat-form .b-mic.off { opacity: .55; }
.chat-form.gravando { align-items: center; }
.chat-form.gravando .rec-txt { flex: 1; font-size: 14px; color: #fca5a5; }
.chat-form.gravando .rec-cancelar { background: #3f3f46; }
.rec-ponto { width: 12px; height: 12px; border-radius: 50%; background: #ef4444; animation: pisca 1s infinite; flex: none; margin-left: 6px; }
@keyframes pisca { 50% { opacity: .2; } }
.chamada.conversa { justify-content: flex-start; gap: 10px; padding: 18px 14px 20px; }
.chamada.conversa .lc-topo h2 { font-size: 19px; margin: 2px 0 0; }
.lc-lista { flex: 1; width: 100%; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding: 4px 2px; }
.lc { max-width: 86%; padding: 8px 11px; border-radius: 14px; font-size: 14px; line-height: 1.35; text-align: left; }
.lc.eles { align-self: flex-start; background: #1f2937; }
.lc.eu { align-self: flex-end; background: #1d4ed8; }
.lc-estado { font-size: 13px; color: var(--txt2); min-height: 18px; }
.lc-form { display: flex; gap: 8px; width: 100%; }
.lc-form input { flex: 1; min-width: 0; background: #0b0f14; border: 1px solid var(--linha); border-radius: 20px; padding: 10px 14px; color: var(--txt); font-size: 16px; }
.lc-form button { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--azul); color: #fff; font-size: 18px; }
.chamada .botoes .b-mic-lig { background: #2563eb; }
.chamada .botoes .b-mic-lig.rec { background: #dc2626; animation: pisca 1s infinite; }
.chamada .botoes .b-mic-lig.off { opacity: .55; }
.chamada .botoes button[disabled] { opacity: .4; }

/* ---- celular primeiro: abas da Mesa em grade, frota compacta, cartões que quebram linha ---- */
.mesa-abas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; overflow: visible; }
.mesa-abas button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 4px; border-radius: 12px; font-size: 12px; white-space: nowrap; }
.mesa-abas button span { font-size: 17px; line-height: 1; }
@media (min-width: 900px) { .mesa-abas { grid-template-columns: repeat(7, 1fr); } }
.frota { display: flex; gap: 6px; align-items: stretch; margin: 8px 0 10px; grid-template-columns: none; }
.frota-tit { font-size: 11px; color: var(--txt2); writing-mode: vertical-rl; transform: rotate(180deg); text-transform: uppercase; letter-spacing: .05em; }
.frota-item { flex: 1; min-width: 0; padding: 6px 8px; }
.frota-item b { font-size: 13px; }
.frota-item small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dil { flex-wrap: wrap; }
.dil > div { flex: 1 1 170px; }
.dil > .btn, .dil > .chip, .dil > span.confirma { margin-left: auto; }

/* ---- celular: sinal, Wi-Fi e bateria ---- */
.st-rede { display: inline-flex; gap: 4px; align-items: center; white-space: nowrap; }
.st-rede .barras { letter-spacing: -1px; font-size: 11px; }
.st-rede .sem-sinal { color: #fca5a5; font-weight: 700; }
.bat.media { color: #fcd34d; }
.bat.baixa { color: #f87171; font-weight: 700; }
.sem-net { margin: 6px 8px; padding: 7px 10px; border-radius: 10px; background: #3a1d1d; color: #fecaca; font-size: 12px; line-height: 1.35; }
.sem-net.fraco { background: #3a2f12; color: #fde68a; }
.tick.pend { color: #fcd34d; font-style: normal; }
.bat-linha { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 6px 0; padding: 6px 10px; border-radius: 10px; background: var(--card2); font-size: 13px; }
.bat-linha > span { flex: 1 1 120px; }
.bat-linha.baixa { background: #3a1d1d; color: #fecaca; }
.sem-bateria { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px 18px; text-align: center; background: #000; }
.sem-bateria .grande { font-size: 64px; }
.sem-bateria h2 { font-size: 20px; margin: 0; }
.sem-bateria .btn { width: 100%; }
.sem-bateria .bat-vazia { filter: grayscale(1) brightness(.6); position: relative; }
.sem-bateria .bat-vazia::after { content: "0%"; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: 14px; font-weight: 800; color: #f87171; filter: none; }
.bat-dica { flex-basis: 100%; font-size: 11px; color: var(--txt2); }
.bat-lento { color: #fcd34d; }
.bat-chip { flex: none; font-size: 12px; font-weight: 700; padding: 3px 7px; border-radius: 999px; background: #10331f; color: #bbf7d0; border: 1px solid #1d5c37; white-space: nowrap; }
.bat-chip.media { background: #3a2f12; color: #fde68a; border-color: #6b5513; }
.bat-chip.baixa, .bat-chip.morto { background: #3a1414; color: #fecaca; border-color: #6b2121; }
.bat-chip.morto { animation: pisca 1.2s infinite; }
.btn.instalar { background: #12324d; border-color: #1d4ed8; color: #dbeafe; }

/* ---- resumo do caso, relatório e fotos ---- */
.caso-resumo p { margin: 8px 0; line-height: 1.5; font-size: 14px; }
.objetivos { margin: 6px 0 0; padding-left: 20px; font-size: 14px; line-height: 1.45; }
.objetivos li { margin: 5px 0; }
.resumo-inicial { overflow-y: auto; }
.resumo-inicial .card { max-height: 72vh; overflow-y: auto; }
textarea.rel { width: 100%; box-sizing: border-box; background: var(--bg2); color: var(--txt); border: 1px solid var(--linha); border-radius: 10px; padding: 10px; font: inherit; font-size: 15px; resize: vertical; }
.parecer p { line-height: 1.5; }
.notas-rel { display: grid; gap: 6px; margin-top: 8px; }
.notas-rel > div { display: grid; grid-template-columns: 90px 1fr 34px; gap: 8px; align-items: center; font-size: 13px; }
.barra-nota { height: 8px; border-radius: 4px; background: var(--card2); overflow: hidden; }
.barra-nota i { display: block; height: 100%; background: linear-gradient(90deg, #f59e0b, #22c55e); }
.chat-form .b-foto { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #2a3942; font-size: 18px; flex: none; cursor: pointer; }
.bolha-foto { display: block; margin-bottom: 4px; }
.bolha-foto img { max-width: 220px; max-height: 260px; border-radius: 10px; display: block; }
.foto-btn { text-align: center; cursor: pointer; }

/* ---- rostos dos NPCs ---- */
.aviso-rosto { float: left; width: 44px; height: 44px; border-radius: 50%; object-fit: cover; margin: 2px 10px 4px 0; border: 2px solid rgba(255,255,255,.15); }
.relatorio p .aviso-rosto { width: 36px; height: 36px; }
img.av.av-foto.disp { outline: 2px solid #22c55e; }
.chamada img.foto-lig { width: 104px; height: 104px; border-radius: 50%; object-fit: cover; display: block; margin: 16px auto; box-shadow: 0 0 0 10px rgba(255,255,255,.04), 0 0 0 22px rgba(255,255,255,.02); }
.chamada img.foto-lig.peq { width: 56px; height: 56px; margin: 0 auto 4px; }

/* ---- câmera dentro do app ---- */
.camera-tela { position: fixed; inset: 0; z-index: 9999; background: #000; display: flex; flex-direction: column; color: #fff; }
.cam-topo { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; padding-top: max(12px, env(safe-area-inset-top)); }
.cam-topo b { font-size: 16px; }
.cam-fechar { border: 0; background: rgba(255,255,255,.15); color: #fff; width: 40px; height: 40px; border-radius: 50%; font-size: 18px; }
.cam-video { position: relative; flex: 1; overflow: hidden; display: grid; place-items: center; }
.cam-video video { width: 100%; height: 100%; object-fit: cover; }
.cam-video video.espelho { transform: scaleX(-1); }
.cam-mira { position: absolute; width: 62vw; max-width: 300px; aspect-ratio: 1; border: 3px solid rgba(255,255,255,.85); border-radius: 18px; box-shadow: 0 0 0 100vmax rgba(0,0,0,.35); }
.cam-dica { text-align: center; font-size: 13px; color: #d1d5db; margin: 10px 16px; }
.cam-botoes { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 10px 24px 22px; padding-bottom: max(22px, env(safe-area-inset-bottom)); }
.cam-virar { justify-self: start; border: 0; background: rgba(255,255,255,.15); color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 20px; }
.cam-foto { width: 72px; height: 72px; border-radius: 50%; border: 5px solid #fff; background: rgba(255,255,255,.25); }
.cam-foto:active { background: #fff; }
.link.foto-btn { display: block; text-align: center; margin-top: 8px; font-size: 13px; color: var(--txt2); text-decoration: underline; cursor: pointer; }
.progresso small { color: var(--txt2); font-size: 12px; }
.folhas-lidas { list-style: none; padding: 0; margin: 8px 0 0; font-size: 13px; }
.folhas-lidas li { padding: 3px 0; color: var(--txt2); }
.folhas-lidas li.ok { color: var(--txt); }
