/* Layout: barra lateral fixa em navy hospitalar + área de trabalho clara; no celular a barra vira topo. */
:root {
  --bg: #EDF1F4; --surface: #FFFFFF; --surface-2: #F5F8FA; --ink: #102231; --muted: #5A6B79; --line: #D8E0E6;
  --brand: #0A3A5A; --brand-ink: #FFFFFF; --nav-bg: #0A3A5A; --nav-ink: #C9DCEA; --accent: #00897B; --accent-soft: #D9F0EC;
  --ok: #1E9A61; --late: #D2463F; --warn: #D18A00; --susp: #7A68B3; --none: #8796A3; --nego: #2C6BD6;
  --shadow: 0 1px 2px rgba(16,34,49,.06), 0 6px 18px rgba(16,34,49,.06);
  --f-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --f-body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --r: 10px;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0B1620; --surface: #122230; --surface-2: #172A39; --ink: #E5EDF3; --muted: #94A7B6; --line: #253A4B;
  --brand: #7CB6DE; --brand-ink: #08202F; --nav-bg: #08131C; --nav-ink: #A9C0D1; --accent: #3CC1AF; --accent-soft: #123A37;
  --ok: #3CC184; --late: #F06A62; --warn: #F0AE2A; --susp: #A595E0; --none: #7F909E; --nego: #6A9BF0;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 22px rgba(0,0,0,.25); color-scheme: dark; } }
:root[data-theme="dark"] {
  --bg: #0B1620; --surface: #122230; --surface-2: #172A39; --ink: #E5EDF3; --muted: #94A7B6; --line: #253A4B;
  --brand: #7CB6DE; --brand-ink: #08202F; --nav-bg: #08131C; --nav-ink: #A9C0D1; --accent: #3CC1AF; --accent-soft: #123A37;
  --ok: #3CC184; --late: #F06A62; --warn: #F0AE2A; --susp: #A595E0; --none: #7F909E; --nego: #6A9BF0;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 22px rgba(0,0,0,.25); color-scheme: dark; }

* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--f-body); -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--f-display); margin: 0; text-wrap: balance; letter-spacing: -.01em; }
h1 { font-size: 1.6rem; font-weight: 700; }
h2 { font-size: 1.05rem; font-weight: 600; }
h3 { font-size: .95rem; font-weight: 600; }
a { color: var(--brand); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--f-mono); font-size: .85em; }
.rotulo { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.mudo { color: var(--muted); }

/* ---------- Estrutura ---------- */
.app { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100%; }
.nav { background: var(--nav-bg); color: var(--nav-ink); display: flex; flex-direction: column; gap: 22px; padding: 22px 14px; position: sticky; top: 0; height: 100vh; }
.marca { display: flex; flex-direction: column; gap: 10px; padding: 4px 8px 0; color: #fff; }
.marca-logo { width: 100%; max-width: 200px; height: auto; filter: brightness(0) invert(1); }
.marca b { font-family: var(--f-display); font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #3CC1AF; }
.logo-inst { height: 46px; width: auto; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo-inst { filter: brightness(0) invert(1); opacity: .9; } }
:root[data-theme="dark"] .logo-inst { filter: brightness(0) invert(1); opacity: .9; }
.nav nav { display: flex; flex-direction: column; gap: 2px; }
.nav nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px; color: var(--nav-ink); text-decoration: none; font-weight: 500; }
.nav nav a svg { width: 19px; height: 19px; fill: currentColor; opacity: .8; flex: none; }
.nav nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav nav a.ativo { background: rgba(60,193,175,.16); color: #fff; box-shadow: inset 3px 0 0 #3CC1AF; }
.nav-rodape { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.usuario { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.06); border: 0; border-radius: 8px; padding: 8px 10px; color: #fff; cursor: pointer; text-align: left; }
.avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #3CC1AF; color: #08202F; font-weight: 700; font-size: .8rem; flex: none; }
.conexao { display: flex; align-items: center; gap: 8px; font-size: .75rem; padding: 0 10px; }
.conexao i { width: 8px; height: 8px; border-radius: 50%; background: var(--none); }
.conexao.on i { background: #3CC184; box-shadow: 0 0 0 4px rgba(60,193,132,.18); }
.conexao.off i { background: #F06A62; }
.conteudo { padding: 28px clamp(16px, 3vw, 40px) 60px; min-width: 0; }
.topo { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.topo p { margin: 4px 0 0; color: var(--muted); }
.acoes { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

@media (max-width: 860px) {
  .app { grid-template-columns: minmax(0,1fr); }
  .nav { position: sticky; top: 0; z-index: 20; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 10px; gap: 10px; }
  .nav-rodape .conexao span, #usuario-nome { display: none; }
  .marca { flex-direction: row; align-items: center; padding: 0; }
  .marca-logo { width: 120px; }
  .marca b { display: none; }
  .logo-inst { display: none; }
  .nav nav { flex-direction: row; overflow-x: auto; order: 3; width: 100%; }
  .nav nav a { white-space: nowrap; padding: 8px 10px; font-size: .88rem; }
  .nav nav a svg { display: none; }
  .nav-rodape { margin: 0 0 0 auto; flex-direction: row; align-items: center; }
}

/* ---------- Componentes ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--surface); padding: 8px 14px; border-radius: 8px; cursor: pointer; font-weight: 600; font-size: .9rem; text-decoration: none; color: var(--ink); transition: background .15s, border-color .15s, transform .1s; }
.btn:hover { border-color: var(--brand); }
.btn:active { transform: translateY(1px); }
.btn.prim { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn.acento { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.perigo { color: var(--late); }
.btn.peq { padding: 5px 10px; font-size: .82rem; }
.btn svg { width: 16px; height: 16px; fill: currentColor; }
.campo { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.campo label { font-size: .78rem; font-weight: 600; color: var(--muted); }
input[type=text], input[type=search], input[type=number], select, textarea { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 8px 11px; width: 100%; min-width: 0; }
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.painel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); min-width: 0; }
.painel-cab { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.pilula { display: inline-flex; align-items: center; gap: 6px; font-size: .76rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap; background: color-mix(in srgb, var(--c, var(--none)) 14%, transparent); color: var(--c, var(--none)); }
.pilula::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.s-finalizado { --c: var(--ok); } .s-atrasado { --c: var(--late); } .s-avencer { --c: var(--warn); }
.s-suspenso { --c: var(--susp); } .s-semdata { --c: var(--none); }
.chip { display: inline-block; background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 2px 8px; font-size: .8rem; }

/* Logos */
.logo { --tam: 44px; width: var(--tam); height: var(--tam); border-radius: 10px; flex: none; display: grid; place-items: center; overflow: hidden; background: var(--lc, var(--brand)); color: #fff; font-family: var(--f-display); font-weight: 700; font-size: calc(var(--tam) * .3); letter-spacing: -.02em; position: relative; }
.logo.img { background: #fff; border: 1px solid var(--line); }
.logo img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.logo.texto-escuro { color: #1a1a1a; }

/* ---------- Painel ---------- */
.kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; cursor: pointer; text-align: left; position: relative; overflow: hidden; transition: transform .15s, box-shadow .15s; }
.kpi:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.kpi::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--c, var(--brand)); }
.kpi b { display: block; font-family: var(--f-display); font-size: 2rem; line-height: 1.1; margin-top: 6px; font-variant-numeric: tabular-nums; color: var(--c, var(--ink)); }
.kpi small { color: var(--muted); font-size: .76rem; }
.grade { display: grid; gap: 16px; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.g4 { grid-column: span 4; } .g5 { grid-column: span 5; } .g6 { grid-column: span 6; } .g7 { grid-column: span 7; } .g8 { grid-column: span 8; } .g12 { grid-column: span 12; }
.grafico { position: relative; height: 270px; }
.grafico.alto { height: 340px; }
@media (max-width: 1200px) { .kpis { grid-template-columns: repeat(3, minmax(0,1fr)); } .g4, .g5, .g6, .g7, .g8 { grid-column: span 12; } }
@media (max-width: 520px) { .kpis { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.lista-alerta { display: flex; flex-direction: column; }
.lista-alerta a { display: flex; align-items: center; gap: 12px; padding: 9px 4px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.lista-alerta a:last-child { border-bottom: 0; }
.lista-alerta a:hover { background: var(--surface-2); }
.lista-alerta .nome { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.lista-alerta .dias { font-size: .8rem; font-weight: 600; white-space: nowrap; }

/* ---------- Lista de convênios ---------- */
.filtros { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)) auto; gap: 10px; margin-bottom: 18px; align-items: end; }
@media (max-width: 900px) { .filtros { grid-template-columns: minmax(0,1fr) minmax(0,1fr); } .filtros .campo:first-child { grid-column: 1 / -1; } }
.cartoes { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.cartao { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; display: flex; flex-direction: column; gap: 14px; text-decoration: none; color: var(--ink); transition: transform .18s, box-shadow .18s, border-color .18s; animation: subir .45s both; animation-delay: calc(var(--i, 0) * 25ms); }
.cartao:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }
.cartao-topo { display: flex; gap: 12px; align-items: center; min-width: 0; }
.cartao-topo div { min-width: 0; }
.cartao-topo h3 { font-size: .95rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cartao-topo small { color: var(--muted); font-size: .78rem; }
.cartao-dados { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; font-size: .85rem; }
.cartao-dados span { display: block; color: var(--muted); font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.cartao-rodape { display: flex; justify-content: space-between; align-items: center; gap: 8px; border-top: 1px solid var(--line); padding-top: 12px; }
.tabela-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
table.tab { width: 100%; border-collapse: collapse; font-size: .87rem; }
.tab th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 10px 12px; background: var(--surface-2); border-bottom: 1px solid var(--line); white-space: nowrap; cursor: pointer; user-select: none; }
.tab td { padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tab tr:last-child td { border-bottom: 0; }
.tab tbody tr { cursor: pointer; }
.tab tbody tr:hover td { background: var(--surface-2); }
.tab .dir { text-align: right; }
.alternar { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.alternar button { border: 0; background: var(--surface); padding: 7px 12px; cursor: pointer; font-weight: 600; font-size: .85rem; color: var(--muted); }
.alternar button.ativo { background: var(--brand); color: var(--brand-ink); }
.vazio { padding: 50px 20px; text-align: center; color: var(--muted); }

/* ---------- Detalhe ---------- */
.cab-conv { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin-bottom: 20px; }
.cab-conv .logo { --tam: 72px; cursor: pointer; }
.cab-conv .logo:hover::after { content: "Trocar logo"; position: absolute; inset: 0; display: grid; place-items: center; background: rgba(8,19,28,.65); color: #fff; font: 600 .68rem var(--f-body); text-align: center; }
.cab-conv-info { flex: 1; min-width: 220px; }
.cab-conv-info p { margin: 6px 0 0; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; color: var(--muted); }
.voltar { display: inline-flex; gap: 6px; align-items: center; color: var(--muted); text-decoration: none; font-weight: 600; font-size: .86rem; margin-bottom: 14px; }
.abas { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.abas button { border: 0; background: none; padding: 10px 16px; font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; font-family: var(--f-display); }
.abas button.ativo { color: var(--brand); border-bottom-color: var(--accent); }
.ficha { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px 20px; }
.ficha div { min-width: 0; }
.ficha dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.ficha dd { margin: 3px 0 0; font-weight: 500; overflow-wrap: anywhere; }
.reajustes { width: 100%; border-collapse: collapse; font-size: .9rem; }
.reajustes th, .reajustes td { padding: 10px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.reajustes th { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.reajustes td:first-child { font-weight: 600; white-space: nowrap; }
.pct { font-family: var(--f-display); font-weight: 600; color: var(--accent); white-space: nowrap; font-variant-numeric: tabular-nums; }
.obs { white-space: pre-wrap; background: var(--surface-2); border-left: 3px solid var(--accent); padding: 12px 14px; border-radius: 0 8px 8px 0; margin: 0; overflow-wrap: anywhere; }
.anexos { display: flex; flex-direction: column; gap: 8px; }
.anexo { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); min-width: 0; }
.anexo .ext { width: 38px; height: 38px; border-radius: 7px; display: grid; place-items: center; font: 700 .66rem var(--f-mono); color: #fff; background: var(--brand); flex: none; text-transform: uppercase; }
.anexo .info { flex: 1; min-width: 0; }
.anexo .info b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.anexo .info small { color: var(--muted); }
.soltar { border: 2px dashed var(--line); border-radius: 10px; padding: 18px; text-align: center; color: var(--muted); cursor: pointer; transition: border-color .15s, background .15s; }
.soltar.sobre, .soltar:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); }
.linha-tempo { display: flex; flex-direction: column; gap: 0; }
.evento { display: grid; grid-template-columns: 14px minmax(0,1fr); gap: 12px; padding-bottom: 14px; position: relative; }
.evento::before { content: ""; position: absolute; left: 6px; top: 16px; bottom: 0; width: 2px; background: var(--line); }
.evento:last-child::before { display: none; }
.evento i { width: 14px; height: 14px; border-radius: 50%; border: 3px solid var(--accent); background: var(--surface); margin-top: 3px; }
.evento small { color: var(--muted); }
.evento .de-para { font-size: .85rem; overflow-wrap: anywhere; }
.evento .de-para s { color: var(--late); }
.evento .de-para ins { color: var(--ok); text-decoration: none; }

/* Formulário */
.form-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px 16px; }
.form-grade .largo { grid-column: 1 / -1; }
fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px 16px; margin: 0 0 14px; min-width: 0; }
legend { font-family: var(--f-display); font-weight: 600; padding: 0 6px; font-size: .9rem; }
.dica { font-size: .75rem; color: var(--muted); }

/* Agenda */
.agenda { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1100px) { .agenda { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 560px) { .agenda { grid-template-columns: minmax(0,1fr); } }
.mes { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; min-height: 120px; display: flex; flex-direction: column; gap: 8px; }
.mes.atual { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.mes-cab { display: flex; justify-content: space-between; align-items: baseline; }
.mes-cab h3 { font-size: 1rem; }
.mes a { display: flex; gap: 8px; align-items: center; text-decoration: none; color: var(--ink); font-size: .84rem; padding: 5px 8px; border-radius: 6px; background: var(--surface-2); border-left: 3px solid var(--c, var(--none)); min-width: 0; }
.mes a span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mes a small { color: var(--muted); font-variant-numeric: tabular-nums; }
.legenda { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 16px; }

/* Modal e toasts */
.modal-fundo { position: fixed; inset: 0; background: rgba(6,16,24,.55); display: grid; place-items: center; z-index: 50; padding: 16px; animation: aparecer .2s; }
.modal { background: var(--surface); border-radius: 14px; width: min(760px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; padding: 22px; box-shadow: 0 20px 60px rgba(0,0,0,.35); animation: subir .25s; }
.modal-cab { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; gap: 10px; }
.modal-rodape { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.fechar { border: 0; background: none; font-size: 1.5rem; cursor: pointer; color: var(--muted); line-height: 1; }
.toasts { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 8px; z-index: 60; }
.toast { background: var(--ink); color: var(--bg); padding: 11px 16px; border-radius: 9px; box-shadow: var(--shadow); font-weight: 500; animation: subir .25s; max-width: min(380px, calc(100vw - 32px)); }
.toast.erro { background: var(--late); color: #fff; }
.aviso-demo { background: var(--accent-soft); border: 1px solid var(--accent); border-radius: 10px; padding: 10px 14px; margin-bottom: 18px; font-size: .88rem; }

@keyframes subir { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes aparecer { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

.status { display: inline-block; font-size: .74rem; font-weight: 600; padding: 2px 8px; border-radius: 5px; border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); color: var(--c); white-space: nowrap; }
.st-ok { --c: var(--ok); } .st-susp { --c: var(--susp); } .st-nego { --c: var(--nego); } .st-warn { --c: var(--warn); } .st-none { --c: var(--muted); }
.por-sit { display: flex; flex-direction: column; }
.por-sit-linha { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); align-items: start; }
.por-sit-linha:last-child { border-bottom: 0; }
.por-sit-linha > div:first-child { display: flex; gap: 10px; align-items: center; }
.por-sit-linha b { font-family: var(--f-display); font-size: 1.1rem; }
.por-sit-linha .chip { text-decoration: none; color: var(--ink); font-size: .78rem; }
.por-sit-linha .chip:hover { border-color: var(--accent); }
@media (max-width: 640px) { .por-sit-linha { grid-template-columns: minmax(0, 1fr); } }

/* Acesso: login e cadastro */
.acesso { min-height: 100%; display: grid; place-items: center; padding: 32px 16px; background: linear-gradient(160deg, var(--nav-bg) 0%, var(--nav-bg) 38%, var(--bg) 38%); }
.acesso-caixa { background: var(--surface); border-radius: 16px; box-shadow: 0 20px 60px rgba(6,16,24,.25); padding: 30px; width: min(420px, 100%); display: flex; flex-direction: column; gap: 14px; animation: subir .35s; }
.acesso-caixa.larga { width: min(520px, 100%); }
.acesso-logo { width: 100%; max-width: 300px; height: auto; align-self: center; margin-bottom: 6px; }
.acesso-caixa .rotulo { text-align: center; color: var(--accent); }
.acesso-form { display: flex; flex-direction: column; gap: 12px; }
.acesso-form .btn.prim { justify-content: center; padding: 11px; margin-top: 4px; }
.acesso-aviso { background: var(--surface-2); border-left: 3px solid var(--warn); padding: 10px 12px; border-radius: 0 8px 8px 0; margin: 0; font-size: .9rem; }
.acesso-links { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.link { background: none; border: 0; padding: 0; color: var(--brand); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.avatar.foto { background: var(--surface-2); overflow: hidden; padding: 0; }
.avatar.foto img { width: 100%; height: 100%; object-fit: cover; }
.foto-campo { display: flex; gap: 16px; align-items: center; margin-bottom: 4px; }
.foto-campo .dica { margin: 6px 0 0; }
.evento > .avatar { margin-top: 1px; position: relative; z-index: 1; }
.evento { grid-template-columns: 22px minmax(0,1fr); }
.evento::before { left: 10px; top: 24px; }
.abas button .avatar { vertical-align: middle; margin-right: 4px; }
.senha-temp { font-size: 1.6rem; letter-spacing: .12em; text-align: center; background: var(--surface-2); padding: 14px; border-radius: 10px; user-select: all; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .acesso-logo { filter: brightness(0) invert(1); } }
:root[data-theme="dark"] .acesso-logo { filter: brightness(0) invert(1); }
#nav-usuarios[data-pendentes]:not([data-pendentes=""])::after { content: attr(data-pendentes); margin-left: auto; background: #F0AE2A; color: #08202F; font-size: .72rem; font-weight: 700; border-radius: 999px; padding: 1px 8px; }
