.login-ok{background:var(--ok-bg);color:var(--ok);border-radius:8px;padding:10px 12px;
  font-size:0.7812rem;line-height:1.55;margin-bottom:13px;display:none}
.login-ok.on{display:block}

.login-card [hidden]{display:none}
.login-link{text-align:center;margin-top:14px}
.link-bt{background:none;border:0;padding:4px 6px;font:inherit;font-size:0.75rem;font-weight:650;
  color:var(--marca-txt);cursor:pointer;border-radius:6px}
.link-bt:hover{text-decoration:underline}
.link-bt:focus-visible{outline:2px solid var(--brand-navy);outline-offset:2px}
.login-card .hint{display:block;font-size:0.6875rem;color:var(--text-muted);margin-top:5px}
.login-foot{text-align:center;font-size:0.6875rem;color:var(--text-muted);margin-top:14px;line-height:1.6}
.login-foot a{color:var(--marca-txt);font-weight:650;text-decoration:none}
.login-foot a:hover{text-decoration:underline}

.login-selo{display:block;margin-bottom:7px;padding:5px 10px;border-radius:7px;
  background:var(--surface-2);border:1px solid var(--border);
  color:var(--marca-txt);font-size:0.625rem;font-weight:700;letter-spacing:.04em;line-height:1.45}
.pass-wrap{position:relative;display:block}
.pass-wrap .ctl{padding-right:44px}
.pass-eye{position:absolute;right:5px;top:50%;transform:translateY(-50%);background:none;border:0;cursor:pointer;
  color:var(--text-muted);padding:6px;border-radius:6px;display:flex;align-items:center;justify-content:center}
.pass-eye:hover{color:var(--marca-txt);background:var(--surface-2)}
.pass-eye:focus-visible{outline:2px solid var(--series-1);outline-offset:1px}
.pass-eye[aria-pressed="true"]{color:var(--marca-txt)}
.user-box{display:flex;align-items:center;gap:9px;padding:10px 14px;margin:0 10px 8px;border-radius:9px;background:rgba(255,255,255,.09)}
.user-av{width:31px;height:31px;border-radius:50%;background:var(--brand-red);color:#fff;display:flex;align-items:center;
  justify-content:center;font-weight:750;font-size:0.7812rem;flex:0 0 31px}

.user-av.com-foto{background-size:cover;background-position:center;color:transparent}

.user-eu{display:flex;align-items:center;gap:9px;flex:1 1 auto;min-width:0;
  background:none;border:1px solid transparent;border-radius:8px;padding:2px 4px;margin:-2px -4px;
  color:inherit;font:inherit;text-align:left}
.user-eu.clicavel{cursor:pointer}
.user-eu.clicavel:hover{background:rgba(255,255,255,.16)}
.user-eu.clicavel:focus-visible{outline:2px solid #fff;outline-offset:1px}

.user-seta{margin-left:auto;width:6px;height:6px;border-right:2px solid #A9BCE0;
  border-bottom:2px solid #A9BCE0;transform:rotate(-45deg);flex:0 0 6px;display:none}
.user-eu.clicavel .user-seta{display:block}

.mu-foto{width:120px;height:120px;border-radius:50%;object-fit:cover;border:1px solid var(--border);
  background:var(--surface-2)}
.mu-vazia{width:120px;height:120px;border-radius:50%;background:var(--brand-navy);color:#fff;
  display:grid;place-items:center;font-size:2.4rem;font-weight:750}
.mu-lado{display:flex;gap:18px;align-items:center;flex-wrap:wrap}
.user-nm{font-size:0.7812rem;font-weight:650;color:#fff;line-height:1.25}
.user-rl{font-size:0.6562rem;color:#A9BCE0}
.btn-out{background:none;border:1px solid rgba(255,255,255,.28);color:#DCE6F6;border-radius:7px;padding:4px 9px;
  font-size:0.6875rem;cursor:pointer;margin-left:auto;font-weight:600}
.btn-out:hover{background:rgba(255,255,255,.14);color:#fff}
.app{visibility:hidden}
.app.on{visibility:visible}

.voz{display:flex;gap:12px;align-items:flex-start;margin:0 0 14px;padding:12px;
  border:1px solid var(--border);border-radius:12px;background:var(--surface-2)}
.voz-bt{white-space:nowrap;min-height:44px}
.voz-lado{flex:1;min-width:0}
.voz-ico{display:inline-block;width:10px;height:10px;border-radius:50%;
  background:var(--brand-red);margin-right:7px;vertical-align:middle}

@media (prefers-reduced-motion: no-preference){
  body:not(.sem-anim) .voz.ouvindo .voz-ico{animation:voz-pulsa 1s ease-in-out infinite}
}
@keyframes voz-pulsa{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.35;transform:scale(1.35)}}
.voz.ouvindo{border-color:var(--brand-red)}
.voz-txt{font-size:.92rem;color:var(--text-secondary);line-height:1.45}
.voz-res{margin-top:8px}
.voz-res:empty{display:none}
.voz-ok{border-left:3px solid var(--series-3);padding:8px 10px;border-radius:8px;
  background:var(--surface-1);font-size:.92rem}
.voz-conf{margin-top:5px;color:var(--text-secondary);font-size:.86rem}
.voz-alerta{border-left:3px solid var(--brand-red);padding:8px 10px;border-radius:8px;
  background:var(--surface-1);font-size:.92rem;margin-top:6px}

.voz-cheio{outline:2px solid var(--series-3);outline-offset:1px}
@media (max-width:520px){ .voz{flex-direction:column} .voz-bt{width:100%} }

.td-foto{width:52px;padding-right:0}
.mini-foto{width:40px;height:40px;border-radius:8px;object-fit:cover;
  border:1px solid var(--border);display:block;background:var(--surface-2)}
.mini-foto.vazia{border-style:dashed}
.fotos-grade{display:grid;grid-template-columns:repeat(auto-fill,minmax(132px,1fr));gap:12px}
.foto-item{margin:0;border:1px solid var(--border);border-radius:12px;overflow:hidden;
  background:var(--surface-1)}
.foto-item.capa{border-color:var(--marca-txt);box-shadow:0 0 0 1px var(--marca-txt) inset}
.foto-ver{display:block;width:100%;border:0;padding:0;background:var(--surface-2);cursor:zoom-in}
.foto-ver img{width:100%;height:104px;object-fit:cover;display:block}
.foto-capa-tag{position:relative;top:-104px;left:6px;float:left;background:var(--marca-txt);
  color:#FFF;font-size:0.6875rem;font-weight:700;padding:2px 7px;border-radius:6px}

.foto-item figcaption{display:flex;flex-direction:column;align-items:flex-start;gap:4px;
  padding:6px 8px}
.foto-item figcaption>.small{overflow-wrap:break-word;word-break:break-word;width:100%;
  line-height:1.3}

.foto-acoes{display:flex;gap:4px;flex:0 0 auto;align-self:flex-end}
.foto-acoes .ia{min-width:36px;min-height:36px}
.foto-grande img{width:100%;max-height:66vh;object-fit:contain;display:block;border-radius:10px;
  background:var(--surface-2)}

:root{
  --ptv-fundo:#000000;  --ptv-cartao:#0B0B0B;
  --ptv-texto:#FFFFFF;  --ptv-texto2:#E6E6E6;  --ptv-grade:#8A8A8A;
  --ptv-ok:#5BE08E;     --ptv-atencao:#FFD34D; --ptv-ruim:#FF8A85;
  --ptv-serie1:#7CB8FF; --ptv-serie2:#FFA35C;  --ptv-serie3:#57E0AE;
}

#painelTV{position:fixed;inset:0;z-index:300;display:none;flex-direction:column;
  --surface-0:var(--ptv-fundo); --surface-1:var(--ptv-cartao); --surface-2:var(--ptv-cartao);
  --text-primary:var(--ptv-texto); --text-secondary:var(--ptv-texto2); --text-muted:var(--ptv-texto2);
  --border:var(--ptv-grade); --border-strong:var(--ptv-texto);

  --grade:var(--ptv-grade);
  --ok:var(--ptv-ok); --warn:var(--ptv-atencao); --bad:var(--ptv-ruim);
  --series-1:var(--ptv-serie1); --series-2:var(--ptv-serie2); --series-3:var(--ptv-serie3);
  --series-4:var(--ptv-ruim); --series-5:var(--ptv-serie3); --series-6:var(--ptv-atencao);

  --brinde:var(--ptv-serie2);
  --brand-red:var(--ptv-ruim);

  --ptv-z:1;
  background:var(--ptv-fundo);color:var(--ptv-texto)}
#painelTV.on{display:flex}

.ptv-topo{display:flex;align-items:center;gap:28px;padding:1.2vw 2.2vw;
  border-bottom:2px solid var(--border)}

.ptv-marca{display:flex;flex-direction:column;align-items:flex-start;
  gap:.35vw;line-height:1.15}
.ptv-marca-txt{display:flex;flex-direction:column}

.ptv-logo{height:calc(clamp(30px,2.9vw,78px) * var(--ptv-z));width:auto;max-width:26vw;
  object-fit:contain;display:block}
.ptv-marca-nome{font-size:calc(clamp(1.25rem,1.5vw,3rem) * var(--ptv-z));font-weight:800;letter-spacing:.01em}
.ptv-marca-sub{font-size:calc(clamp(.8rem,.85vw,1.6rem) * var(--ptv-z));color:var(--text-secondary);font-weight:600}
.ptv-bloco-titulo{flex:1;text-align:center;font-size:calc(clamp(1.5rem,2vw,4rem) * var(--ptv-z));font-weight:800}
.ptv-hora{display:flex;flex-direction:column;align-items:flex-end;line-height:1.1}
.ptv-relogio{font-size:calc(clamp(1.75rem,2.3vw,4.5rem) * var(--ptv-z));font-weight:800;font-variant-numeric:tabular-nums;
  min-width:5ch;text-align:right}

.ptv-data{font-size:calc(clamp(.85rem,1vw,1.9rem) * var(--ptv-z));font-weight:650;color:var(--text-secondary);
  text-align:right}

.ptv-timer{position:relative;height:.22vw;min-height:3px;background:var(--surface-1);
  display:flex;align-items:center}
.ptv-timer-barra{position:absolute;left:0;top:0;bottom:0;width:0;background:var(--series-1)}
@media (prefers-reduced-motion: no-preference){
  body:not(.sem-anim) .ptv-timer-barra.andando{animation:ptv-tempo linear forwards}
}
@keyframes ptv-tempo{from{width:0}to{width:100%}}
.ptv-pontos{position:absolute;right:2.2vw;top:50%;transform:translateY(-50%);display:flex;gap:.6vw}

.ptv-pontos i{width:.38vw;height:.38vw;min-width:5px;min-height:5px;border-radius:50%;
  background:var(--border);display:block}
.ptv-pontos i.on{background:var(--series-1)}
.ptv-palco{flex:1;position:relative;overflow:hidden;padding:2vw 2.6vw}
.ptv-bloco{position:absolute;inset:2vw 2.6vw;display:none;flex-direction:column;
  gap:1.2vw;opacity:0}
.ptv-bloco.on{display:flex;opacity:1}
