/* ============================================================
   Design System GRUPO SAFT — futurismo dark em vidro e verde
   Paleta extraída da logo: degradê sálvia → esmeralda sobre preto.
   Assinatura: cartões de vidro fosco com fio de luz verde,
   display serifado elegante e labels em caixa alta espaçada.
   ============================================================ */
:root {
  --fundo:#050806;
  --painel:#0d1310;                       /* fallback sólido */
  --borda:rgba(146,205,167,.15);
  --texto:#e9f1ec; --texto-fraco:#8aa192;
  --destaque:#6dbd8f; --verde-claro:#a4dcb4; --verde-escuro:#2e6b4c;
  --ok:#5bd88c; --alerta:#e5b45a; --erro:#e4604e;
  --grad:linear-gradient(120deg,#a4dcb4,#6dbd8f 45%,#2e6b4c);
  --serif:'Sitka Display','Sitka Heading',Constantia,Georgia,serif;
  --sans:'Segoe UI Variable Text','Segoe UI',system-ui,sans-serif;
}
* { box-sizing:border-box; margin:0; }
body {
  background:var(--fundo); color:var(--texto);
  font:15px/1.55 var(--sans);
  min-height:100vh;
}
/* Constelação ambiente: nebulosas verdes + nós de luz, fixos ao fundo */
body::before {
  content:''; position:fixed; inset:0; z-index:-1; pointer-events:none;
  background:
    radial-gradient(1100px 520px at 88% -12%, rgba(109,189,143,.10), transparent 60%),
    radial-gradient(900px 600px at -12% 108%, rgba(46,107,76,.12), transparent 60%),
    radial-gradient(1.5px 1.5px at 18% 22%, rgba(196,235,208,.5), transparent 100%),
    radial-gradient(1px 1px at 72% 14%, rgba(196,235,208,.4), transparent 100%),
    radial-gradient(1.5px 1.5px at 84% 46%, rgba(196,235,208,.35), transparent 100%),
    radial-gradient(1px 1px at 38% 74%, rgba(196,235,208,.3), transparent 100%),
    radial-gradient(1.5px 1.5px at 60% 88%, rgba(196,235,208,.35), transparent 100%),
    radial-gradient(1px 1px at 8% 56%, rgba(196,235,208,.3), transparent 100%);
}
header {
  display:flex; align-items:center; gap:16px; padding:14px 26px;
  background:rgba(8,12,9,.72); backdrop-filter:blur(14px);
  border-bottom:1px solid var(--borda);
}
header h1 { font:600 21px/1.2 var(--serif); letter-spacing:.01em; }
h1 .destaque-verde, .destaque-verde {
  background:var(--grad); -webkit-background-clip:text; background-clip:text; color:transparent;
}
main { max-width:1200px; margin:0 auto; padding:26px; }

/* Cartão de vidro — o painel Saft */
.painel {
  position:relative;
  background:linear-gradient(155deg, rgba(28,40,32,.55), rgba(10,16,12,.74));
  backdrop-filter:blur(16px);
  border:1px solid var(--borda); border-top-color:rgba(255,255,255,.13);
  border-radius:16px; padding:20px; margin-bottom:18px;
  box-shadow:0 20px 45px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.05);
}
.painel h3 {
  font:600 12.5px/1.4 var(--sans); text-transform:uppercase; letter-spacing:.15em;
  color:#d7e8dc; padding-bottom:10px; margin-bottom:12px; position:relative;
}
.painel h3::after { content:''; position:absolute; left:0; bottom:0; width:36px; height:1px; background:var(--grad); }
.painel h4 {
  font:600 11.5px/1.4 var(--sans); text-transform:uppercase; letter-spacing:.12em; color:#c3d8ca;
}

/* Botões — pílula de contorno fino com preenchimento de vidro verde */
button, .botao {
  font-family:var(--sans);
  background:rgba(109,189,143,.10); color:#bfe6cc;
  border:1px solid rgba(146,205,167,.45); border-radius:999px;
  padding:9px 18px; cursor:pointer; font-size:13.5px; letter-spacing:.03em;
  transition:background .18s ease, box-shadow .18s ease, border-color .18s ease, color .18s ease;
  text-decoration:none; display:inline-block;
}
button:hover, .botao:hover {
  background:rgba(109,189,143,.22); border-color:#8fd3a6; color:#eafff1;
  box-shadow:0 0 22px rgba(109,189,143,.28);
}
button.secundario, .botao.secundario {
  background:transparent; border-color:rgba(146,205,167,.16); color:var(--texto-fraco);
}
button.secundario:hover, .botao.secundario:hover { color:var(--texto); border-color:rgba(146,205,167,.4); box-shadow:none; }
button.perigo { background:rgba(228,96,78,.08); border-color:rgba(228,96,78,.5); color:#f2a094; }
button.perigo:hover { background:rgba(228,96,78,.2); border-color:#e4604e; color:#ffd9d3; box-shadow:0 0 18px rgba(228,96,78,.22); }
button:disabled { opacity:.45; cursor:default; box-shadow:none; }

input, select, textarea {
  background:rgba(5,9,7,.65); color:var(--texto);
  border:1px solid rgba(146,205,167,.16); border-radius:10px;
  padding:8px 12px; font-size:14px; width:100%; font-family:var(--sans);
  transition:border-color .15s ease, box-shadow .15s ease;
}
input:focus, select:focus, textarea:focus {
  outline:none; border-color:var(--destaque); box-shadow:0 0 0 3px rgba(109,189,143,.15);
}
label { display:block; font-size:11px; text-transform:uppercase; letter-spacing:.08em; color:var(--texto-fraco); margin:10px 0 5px; }

.campo-arquivo {
  display:flex; align-items:center; gap:11px;
  background:rgba(5,9,7,.65);
  border:1px solid rgba(146,205,167,.16); border-radius:10px;
  padding:4px 12px 4px 4px; min-height:42px; overflow:hidden;
}
.campo-arquivo input[type=file] { position:absolute; width:1px; height:1px; opacity:0; pointer-events:none; }
.campo-arquivo-botao { flex-shrink:0; padding:7px 15px; font-size:13px; }
.campo-arquivo-nome { font-size:13px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; flex:1; }
.campo-arquivo-limpar {
  display:none; flex-shrink:0; margin-left:auto;
  background:none; border:0; box-shadow:none; border-radius:8px;
  color:var(--texto-fraco); font-size:17px; line-height:1; padding:3px 9px; cursor:pointer;
}
.campo-arquivo.com-arquivo .campo-arquivo-limpar { display:block; }
.campo-arquivo-limpar:hover { background:rgba(228,96,78,.14); color:#ffd9d3; box-shadow:none; }

.chip {
  display:inline-block; padding:3px 11px; border-radius:999px;
  font-size:10.5px; letter-spacing:.08em; text-transform:uppercase; font-weight:600;
  border:1px solid var(--borda); color:var(--texto-fraco); white-space:nowrap;
}
.chip.fatura { border-color:rgba(109,189,143,.45); color:#9fd8b4; background:rgba(109,189,143,.08); }
.chip.vistoria { border-color:rgba(229,180,90,.4); color:#ecc985; background:rgba(229,180,90,.07); }
.chip.maquete { border-color:rgba(147,197,253,.4); color:#a8cdf5; background:rgba(147,197,253,.07); }
.chip.analisador, .chip.memoria_massa { border-color:rgba(196,181,253,.4); color:#c9bdf2; background:rgba(196,181,253,.07); }

button.mini { padding:5px 13px; font-size:12.5px; }

.modal-fundo {
  position:fixed; inset:0; z-index:110;
  background:rgba(3,6,4,.6); backdrop-filter:blur(6px);
  display:flex; align-items:center; justify-content:center;
  animation:toast-entra .2s ease;
}
.modal-caixa {
  background:linear-gradient(155deg, rgba(28,40,32,.96), rgba(10,16,12,.98));
  border:1px solid var(--borda); border-top-color:rgba(255,255,255,.14);
  border-radius:16px; padding:22px 24px; max-width:440px; width:calc(100% - 48px);
  box-shadow:0 24px 60px rgba(0,0,0,.55);
}
.modal-texto { font-size:14.5px; line-height:1.55; white-space:pre-wrap; }
.modal-acoes { display:flex; justify-content:flex-end; gap:10px; margin-top:18px; }

#area-toasts { position:fixed; top:18px; right:18px; z-index:100; display:flex; flex-direction:column; gap:10px; max-width:400px; }
.toast {
  display:flex; gap:10px; align-items:flex-start;
  padding:13px 16px; border-radius:12px;
  background:linear-gradient(155deg, rgba(28,40,32,.94), rgba(10,16,12,.96));
  backdrop-filter:blur(14px);
  border:1px solid var(--borda); border-top-color:rgba(255,255,255,.12);
  box-shadow:0 16px 38px rgba(0,0,0,.5);
  font-size:13.5px; line-height:1.5; white-space:pre-wrap;
  animation:toast-entra .28s ease;
}
.toast.ok { border-left:3px solid var(--ok); }
.toast.aviso { border-left:3px solid var(--alerta); }
.toast.erro { border-left:3px solid var(--erro); }
.toast-fechar { background:none; border:0; border-radius:0; box-shadow:none; color:var(--texto-fraco); padding:0 2px; font-size:16px; line-height:1; cursor:pointer; margin-left:auto; }
.toast-fechar:hover { background:none; color:var(--texto); box-shadow:none; }
.toast.saindo { opacity:0; transition:opacity .35s ease; }
@keyframes toast-entra { from { opacity:0; transform:translateX(16px); } to { opacity:1; transform:none; } }

.barra-ia { margin:12px 0; }
.barra-ia-topo { display:flex; justify-content:space-between; align-items:center; font-size:13px; color:#d7e8dc; margin-bottom:7px; }
.barra-ia-tempo { color:var(--texto-fraco); font-variant-numeric:tabular-nums; }
.barra-ia-trilho { height:8px; border-radius:999px; background:rgba(146,205,167,.1); border:1px solid rgba(146,205,167,.18); overflow:hidden; }
.barra-ia-fill { height:100%; width:2%; border-radius:999px; background:var(--grad); box-shadow:0 0 14px rgba(109,189,143,.55); transition:width .4s ease; }
.barra-ia-nota { font-size:11.5px; margin-top:6px; }

table { width:100%; border-collapse:collapse; font-size:14px; }
th, td { text-align:left; padding:9px 10px; border-bottom:1px solid rgba(146,205,167,.09); }
th { color:var(--texto-fraco); font-weight:600; font-size:11px; text-transform:uppercase; letter-spacing:.11em; }
tbody tr:hover { background:rgba(109,189,143,.05); }

.abas { display:flex; gap:20px; border-bottom:1px solid var(--borda); margin-bottom:20px; flex-wrap:wrap; }
.abas button {
  background:transparent; border:0; border-radius:0; box-shadow:none;
  color:var(--texto-fraco); font-size:12px; text-transform:uppercase; letter-spacing:.13em;
  padding:10px 2px 12px; position:relative;
}
.abas button:hover { color:var(--texto); background:transparent; box-shadow:none; }
.abas button.ativa { color:#d9f3e2; }
.abas button.ativa::after { content:''; position:absolute; left:0; right:0; bottom:-1px; height:2px; background:var(--grad); }

.cartao-cliente {
  display:block; text-decoration:none; color:var(--texto);
  transition:border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.cartao-cliente:hover {
  border-color:rgba(146,205,167,.5);
  box-shadow:0 0 26px rgba(109,189,143,.14), 0 20px 45px rgba(0,0,0,.42);
  transform:translateY(-2px);
}
.cartao-cliente strong { font:600 16px/1.3 var(--serif); letter-spacing:.01em; }

/* Seletor de cliente com lista estilizada */
.seletor-cliente, .select-estilizado { position:relative; }
.select-estilizado .select-rotulo { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.seletor-campo {
  display:flex; align-items:center; gap:10px; width:100%; text-align:left;
  background:rgba(5,9,7,.65); color:var(--texto);
  border:1px solid rgba(146,205,167,.16); border-radius:10px;
  padding:9px 12px; font-size:14px; cursor:pointer; box-shadow:none;
}
.seletor-campo:hover { border-color:rgba(146,205,167,.4); background:rgba(5,9,7,.65); box-shadow:none; color:var(--texto); }
.seletor-campo strong { font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.seletor-seta { margin-left:auto; color:var(--texto-fraco); font-size:12px; }
.seletor-chips { display:inline-flex; gap:5px; flex-shrink:0; }
.painel-cabecalho { display:flex; justify-content:space-between; align-items:flex-start; gap:14px; }
.seletor-lista {
  position:absolute; top:calc(100% + 6px); left:0; z-index:90;
  min-width:100%; width:max-content; max-width:min(680px, 85vw);
  display:flex; flex-direction:column; gap:2px; padding:6px; max-height:320px; overflow-y:auto;
  background:linear-gradient(155deg, rgba(28,40,32,.97), rgba(10,16,12,.98));
  backdrop-filter:blur(14px);
  border:1px solid var(--borda); border-top-color:rgba(255,255,255,.13);
  border-radius:12px; box-shadow:0 18px 44px rgba(0,0,0,.55);
  animation:toast-entra .18s ease;
}
.seletor-item {
  display:flex; align-items:center; gap:10px; width:100%; text-align:left;
  background:none; border:0; box-shadow:none; border-radius:8px;
  padding:10px 12px; font-size:13.5px; color:var(--texto); cursor:pointer;
}
.seletor-lista[hidden] { display:none; } /* display:flex acima anularia o hidden sem isto */
/* o backdrop-filter dos painéis cria contexto de empilhamento: com uma lista
   aberta ou menu suspenso, o painel sobe de camada para não ficar por baixo */
.painel:has(.seletor-lista:not([hidden])), .painel:has(.menu-suspenso) { z-index:60; }
.seletor-item:hover { background:rgba(109,189,143,.1); box-shadow:none; color:#eafff1; }
.seletor-item.ativo { background:rgba(109,189,143,.16); }
.seletor-item strong { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.chip.mod-verde { border-color:rgba(109,189,143,.45); color:#9fd8b4; background:rgba(109,189,143,.08); }
.chip.mod-azul { border-color:rgba(147,197,253,.45); color:#a8cdf5; background:rgba(147,197,253,.08); }
.chip.mod-b { border-color:rgba(229,180,90,.45); color:#ecc985; background:rgba(229,180,90,.08); }
.chip.livre { border-color:rgba(196,181,253,.5); color:#c9bdf2; background:rgba(196,181,253,.08); }

/* Lista de clientes (tela Clientes) */
.lista-clientes { display:flex; flex-direction:column; gap:8px; }
.linha-cliente-wrap { position:relative; }
.linha-cliente {
  display:flex; align-items:center; gap:12px;
  padding:13px 46px 13px 16px;
  background:linear-gradient(155deg, rgba(28,40,32,.4), rgba(10,16,12,.55));
  border:1px solid var(--borda); border-radius:12px;
  color:var(--texto); text-decoration:none;
  transition:border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.linha-cliente:hover { border-color:rgba(146,205,167,.5); background:rgba(109,189,143,.07); box-shadow:0 0 20px rgba(109,189,143,.1); }
.linha-cliente strong { font:600 15px/1.3 var(--serif); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.linha-cliente .fraco { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.linha-cliente .seletor-chips { margin-left:auto; }
.linha-cliente-wrap .cartao-menu-botao { top:50%; transform:translateY(-50%); right:8px; }
.linha-cliente-wrap .menu-suspenso { top:calc(50% + 20px); }

.cartao-wrap { position:relative; }
.cartao-wrap .cartao-cliente { margin-bottom:0; height:100%; padding-right:40px; }
.cartao-menu-botao {
  position:absolute; top:10px; right:10px;
  background:none; border:0; box-shadow:none; border-radius:8px;
  color:var(--texto-fraco); font-size:17px; line-height:1; padding:5px 9px; cursor:pointer;
}
.cartao-menu-botao:hover { background:rgba(109,189,143,.12); color:var(--texto); box-shadow:none; }
.menu-suspenso {
  position:absolute; top:40px; right:10px; z-index:90;
  display:flex; flex-direction:column; gap:2px; min-width:210px; padding:6px;
  background:linear-gradient(155deg, rgba(28,40,32,.96), rgba(10,16,12,.98));
  backdrop-filter:blur(14px);
  border:1px solid var(--borda); border-top-color:rgba(255,255,255,.13);
  border-radius:12px; box-shadow:0 18px 40px rgba(0,0,0,.55);
  animation:toast-entra .18s ease;
}
.menu-suspenso button {
  background:none; border:0; box-shadow:none; border-radius:8px;
  text-align:left; padding:10px 12px; font-size:13.5px; color:var(--texto); cursor:pointer;
}
.menu-suspenso button:hover { background:rgba(109,189,143,.12); box-shadow:none; color:#eafff1; }
.menu-suspenso button.perigo-texto { color:#f2a094; }
.menu-suspenso button.perigo-texto:hover { background:rgba(228,96,78,.12); color:#ffd9d3; }

.grade { display:grid; gap:12px; }
.grade.c2 { grid-template-columns:1fr 1fr; } .grade.c3 { grid-template-columns:repeat(3,1fr); } .grade.c4 { grid-template-columns:repeat(4,1fr); }

.aviso {
  background:rgba(229,180,90,.07); border:1px solid rgba(229,180,90,.32);
  border-radius:10px; padding:10px 14px; margin:8px 0; font-size:13px;
}
.positivo { color:var(--ok); } .negativo { color:var(--erro); } .fraco { color:var(--texto-fraco); }

.chat-caixa { height:420px; overflow-y:auto; display:flex; flex-direction:column; gap:10px; padding:12px; }
.msg { max-width:78%; padding:11px 15px; border-radius:14px; white-space:pre-wrap; }
.msg.usuario {
  align-self:flex-end; color:#071510; font-weight:500;
  background:linear-gradient(135deg,#a4dcb4,#6dbd8f 55%,#4c9a70);
  box-shadow:0 6px 22px rgba(109,189,143,.22);
}
.msg.ia {
  align-self:flex-start;
  background:rgba(10,16,12,.8); border:1px solid var(--borda); border-top-color:rgba(255,255,255,.1);
}

/* Markdown básico das respostas da IA (gerado por mdParaHtml em api.js) */
.msg .md { white-space:normal; }
.msg .md > :first-child { margin-top:0; }
.msg .md > :last-child { margin-bottom:0; }
.msg .md .md-p { margin:4px 0; }
.msg .md .md-vazio { height:6px; }
.msg .md .md-titulo { font-weight:600; margin:10px 0 4px; color:#d9f3e2; }
.msg .md .md-lista { margin:4px 0 4px 20px; padding:0; }
.msg .md .md-lista li { margin:3px 0; }
.msg .md .md-code {
  background:rgba(146,205,167,.12); border:1px solid rgba(146,205,167,.18);
  border-radius:5px; padding:1px 5px; font-size:.92em;
}
.msg .md .md-pre {
  background:rgba(3,6,4,.65); border:1px solid var(--borda); border-radius:8px;
  padding:10px 12px; margin:6px 0; overflow-x:auto; font-size:13px; white-space:pre;
}
.msg .md .md-tabela { margin:8px 0; font-size:13px; }
.msg .md .md-tabela th, .msg .md .md-tabela td { padding:6px 9px; }

/* Menu lateral de vidro */
.menu-lateral {
  position:fixed; top:0; left:0; bottom:0; width:222px;
  background:rgba(8,12,9,.82); backdrop-filter:blur(16px);
  border-right:1px solid var(--borda);
  padding:20px 12px 16px; display:flex; flex-direction:column; gap:4px; z-index:50;
}
.menu-lateral .logo { display:flex; align-items:center; gap:12px; padding:4px 10px 20px; }
.menu-lateral .logo img { width:40px; height:auto; filter:drop-shadow(0 0 12px rgba(109,189,143,.45)); }
.menu-lateral .logo strong { font:600 14px/1.2 var(--sans); letter-spacing:.22em; }
.menu-lateral a {
  display:flex; align-items:center; gap:10px; position:relative;
  color:var(--texto-fraco); text-decoration:none; padding:11px 14px; border-radius:10px;
  font-size:12px; text-transform:uppercase; letter-spacing:.11em;
  transition:color .15s ease, background .15s ease;
}
.menu-lateral a:hover { background:rgba(109,189,143,.07); color:var(--texto); }
.menu-lateral a.ativa {
  color:#d9f3e2;
  background:linear-gradient(90deg, rgba(109,189,143,.15), transparent 75%);
}
.menu-lateral a.ativa::before {
  content:''; position:absolute; left:0; top:8px; bottom:8px; width:2px; border-radius:2px; background:var(--grad);
}
.menu-lateral .menu-rotulo { display:flex; flex-direction:column; gap:2px; min-width:0; }
.menu-lateral .menu-rotulo small {
  font-size:8.5px; line-height:1.35; font-weight:400;
  letter-spacing:.05em; text-transform:none; color:var(--texto-fraco);
  white-space:normal;
}
.menu-lateral a.ativa .menu-rotulo small { color:rgba(217,243,226,.75); }
.menu-lateral .rodape { margin-top:auto; }
body.com-menu { padding-left:222px; transition:padding-left .25s ease; }
body.com-menu header { position:sticky; top:0; z-index:40; }
.menu-lateral { transition:transform .25s ease; }
body.menu-fechado .menu-lateral { transform:translateX(-100%); }
body.com-menu.menu-fechado { padding-left:0; }
/* Botão ☰: ao lado do SAFT com o menu aberto; canto esquerdo quando fechado */
.menu-toggle {
  position:fixed; top:19px; left:178px; z-index:60;
  padding:5px 11px; font-size:15px; line-height:1;
  transition:left .25s ease;
}
body.menu-fechado .menu-toggle { left:10px; }
body.menu-fechado header { padding-left:56px; } /* abre espaço para o ☰ no canto */
.menu-lateral .logo { padding-right:46px; }

::-webkit-scrollbar { width:10px; height:10px; }
::-webkit-scrollbar-track { background:transparent; }
::-webkit-scrollbar-thumb { background:#1c2921; border-radius:6px; border:2px solid var(--fundo); }
::-webkit-scrollbar-thumb:hover { background:#2e4437; }

:focus-visible { outline:2px solid var(--destaque); outline-offset:2px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition:none !important; animation:none !important; }
}
@media (max-width: 900px) {
  .grade.c3, .grade.c4 { grid-template-columns:1fr 1fr; }
  .menu-lateral, .menu-toggle { display:none; }
  body.com-menu { padding-left:0; }
}
/* ---------- Utilitários (substituem os antigos style="..." inline — CSP estrita) ---------- */
.ml-auto { margin-left:auto; }
.self-center { align-self:center; }
.self-end { align-self:end; }
.text-right { text-align:right; }
.nowrap { white-space:nowrap; }
.w-100 { width:100%; }
.m-0 { margin:0; }
.m-3 { margin:3px; }
.mt-6 { margin-top:6px; }
.mt-8 { margin-top:8px; }
.mt-10 { margin-top:10px; }
.mt-12 { margin-top:12px; }
.mt-14 { margin-top:14px; }
.mt-26 { margin-top:26px; }
.mb-10 { margin-bottom:10px; }
.my-6 { margin:6px 0; }
.min-w-90 { min-width:90px; }
.overflow-x-auto { overflow-x:auto; }
.fs-11 { font-size:11px; }
.fs-12 { font-size:12px; }
.fs-19 { font-size:19px; }
.opacity-85 { opacity:.85; }
.col-span-2 { grid-column:span 2; }
.borda-destaque-top { border-top:2px solid var(--destaque); }
.link-destaque { color:var(--destaque); text-decoration:none; }
.texto-normal { font-weight:400; text-transform:none; letter-spacing:0; }
.aviso-compacta { padding:2px 8px; }
.lista-vazia-pad { padding:10px 12px; }
.botao-excluir-mini { float:right; padding:1px 6px; }
.grade-chat { grid-template-columns:1fr auto auto; margin-top:10px; }
.galeria-vistoria { display:grid; grid-template-columns:repeat(auto-fill,minmax(160px,1fr)); gap:10px; margin-top:14px; }
.cartao-foto { border:1px solid var(--borda,#333); border-radius:8px; overflow:hidden; }
.cartao-foto-img { width:100%; height:110px; object-fit:cover; display:block; }
.cartao-foto-placeholder { height:110px; display:flex; align-items:center; justify-content:center; font-size:34px; }
.cartao-foto-legenda { padding:6px; font-size:11px; }
.mq-canvas { max-width:100%; cursor:crosshair; border:1px solid #333; border-radius:8px; display:none; }
.dica-anexo { margin-top:8px; font-size:12.5px; }

/* Cartão centralizado — login e troca de senha */
.login-caixa {
  max-width:380px; width:calc(100% - 32px); margin:14vh auto 0;
  display:flex; flex-direction:column; gap:14px;
  background:linear-gradient(155deg, rgba(28,40,32,.55), rgba(10,16,12,.74));
  backdrop-filter:blur(16px);
  border:1px solid var(--borda); border-top-color:rgba(255,255,255,.13);
  border-radius:16px; padding:28px 26px;
  box-shadow:0 20px 45px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.05);
}
.login-caixa h1 { font:600 20px/1.3 var(--serif); text-align:center; margin-bottom:4px; }
.login-caixa form { display:flex; flex-direction:column; gap:12px; }
.login-caixa .erro { color:var(--erro); font-size:13px; }

@media print {
  header, .abas, button, .menu-lateral { display:none !important; }
  body { background:#fff; color:#000; }
  body::before { display:none; }
  body.com-menu { padding-left:0; }
  .painel { border:1px solid #ccc; background:#fff; box-shadow:none; backdrop-filter:none; }
}
