/* ============================================================================
   GPlanSiS|Fin-Pessoal — design tokens e componentes
   Tema claro: linguagem macOS (cinza-claro, branco, azul sistema, cantos 12px).
   Tema escuro: paleta GitHub (preto #0d1117, cinza #161b22, bordas #30363d).
   ========================================================================== */
:root {
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, Roboto, system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --raio: 12px; --raio-sm: 8px; --raio-xs: 6px;
  --sidebar: 236px; --topbar: 56px; --bottomnav: 60px;
  --transicao: 160ms cubic-bezier(.2,.8,.2,1);

  /* macOS light */
  --bg: #f5f5f7; --bg-2: #ececef; --superficie: #ffffff; --superficie-2: #f9f9fb;
  --borda: rgba(0,0,0,.09); --borda-forte: rgba(0,0,0,.16);
  --texto: #1d1d1f; --texto-2: #515154; --texto-3: #86868b;
  --acento: #0071e3; --acento-hover: #0077ed; --acento-suave: rgba(0,113,227,.10); --acento-texto: #ffffff;
  --verde: #1f8a3f; --verde-suave: rgba(52,199,89,.14);
  --vermelho: #d70015; --vermelho-suave: rgba(255,59,48,.12);
  --ambar: #b25000; --ambar-suave: rgba(255,159,10,.16);
  --roxo: #6e3fd1; --azul: #0071e3; --ciano: #0a7ea4;
  --sombra: 0 1px 2px rgba(0,0,0,.05), 0 6px 20px -8px rgba(0,0,0,.12);
  --sombra-modal: 0 24px 60px -12px rgba(0,0,0,.35);
  --vidro: rgba(245,245,247,.82);
  --grade: rgba(0,0,0,.06);
  --selecao: rgba(0,113,227,.12);
  color-scheme: light;
}
/* GitHub dark. O JS resolve a preferência "auto" e grava light|dark em data-theme. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d1117; --bg-2: #010409; --superficie: #161b22; --superficie-2: #1c2129;
  --borda: #30363d; --borda-forte: #484f58;
  --texto: #e6edf3; --texto-2: #b1bac4; --texto-3: #8b949e;
  --acento: #2f81f7; --acento-hover: #388bfd; --acento-suave: rgba(56,139,253,.15); --acento-texto: #ffffff;
  --verde: #3fb950; --verde-suave: rgba(63,185,80,.16);
  --vermelho: #f85149; --vermelho-suave: rgba(248,81,73,.16);
  --ambar: #d29922; --ambar-suave: rgba(210,153,34,.18);
  --roxo: #a371f7; --azul: #58a6ff; --ciano: #39c5cf;
  --sombra: 0 0 0 1px rgba(255,255,255,.02), 0 8px 24px rgba(1,4,9,.5);
  --sombra-modal: 0 24px 60px rgba(1,4,9,.8);
  --vidro: rgba(13,17,23,.85);
  --grade: rgba(255,255,255,.07);
  --selecao: rgba(56,139,253,.18);
}

/* --------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 14px; line-height: 1.45;
  background: var(--bg); color: var(--texto);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  min-height: 100dvh; overscroll-behavior-y: none;
}
a { color: var(--acento); text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: 22px; } h2 { font-size: 16px; } h3 { font-size: 14px; }
p { margin: 0; }
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.mono { font-family: var(--mono); font-size: 12px; }
.muted { color: var(--texto-3); } .muted-2 { color: var(--texto-2); }
.pos { color: var(--verde); } .neg { color: var(--vermelho); } .warn { color: var(--ambar); }
.xs { font-size: 11px; } .sm { font-size: 12.5px; } .lg { font-size: 17px; } .xl { font-size: 24px; font-weight: 600; letter-spacing: -.02em; }
.b { font-weight: 600; } .right { text-align: right; } .center { text-align: center; } .nowrap { white-space: nowrap; }
.row { display: flex; align-items: center; gap: 8px; } .wrap { flex-wrap: wrap; } .grow { flex: 1; min-width: 0; }
.col { display: flex; flex-direction: column; gap: 8px; }
.gap-2 { gap: 12px; } .gap-3 { gap: 16px; } .mt { margin-top: 12px; } .mb { margin-bottom: 12px; }
.trunc { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
[hidden] { display: none !important; }
::selection { background: var(--selecao); }

.carregando { display: grid; place-items: center; min-height: 100dvh; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--borda); border-top-color: var(--acento); animation: giro .8s linear infinite; }
@keyframes giro { to { transform: rotate(360deg); } }
@keyframes surgir { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes pulso { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

/* ------------------------------------------------------------- layout */
.app { min-height: 100dvh; }
.shell { display: grid; grid-template-columns: var(--sidebar) 1fr; min-height: 100dvh; }
.sidebar {
  position: sticky; top: 0; height: 100dvh; padding: 14px 12px; display: flex; flex-direction: column; gap: 4px;
  background: var(--superficie); border-right: 1px solid var(--borda);
}
:root[data-theme="dark"] .sidebar { background: var(--bg-2); }
.marca { display: flex; align-items: center; gap: 10px; padding: 6px 8px 14px; }
.marca img, .marca svg { width: 30px; height: 30px; border-radius: 8px; flex: none; }
.marca .nome { font-weight: 700; font-size: 14px; letter-spacing: -.02em; line-height: 1.1; }
.marca .nome span { color: var(--acento); }
.marca .sub { font-size: 11px; color: var(--texto-3); }
.nav-item {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--raio-sm);
  color: var(--texto-2); font-weight: 500; border: 0; background: none; width: 100%; text-align: left;
  transition: background var(--transicao), color var(--transicao);
}
.nav-item svg { width: 18px; height: 18px; flex: none; opacity: .85; }
.nav-item:hover { background: var(--acento-suave); color: var(--texto); }
.nav-item.ativo { background: var(--acento); color: var(--acento-texto); }
.nav-item.ativo svg { opacity: 1; }
.nav-item .contador { margin-left: auto; font-size: 11px; background: var(--vermelho); color: #fff; border-radius: 10px; padding: 0 6px; min-width: 18px; text-align: center; }
.nav-sep { height: 1px; background: var(--borda); margin: 8px 6px; }
.nav-rotulo { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--texto-3); padding: 10px 10px 4px; }
.sidebar-rodape { margin-top: auto; padding: 8px 4px 0; display: flex; align-items: center; gap: 8px; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--acento-suave); color: var(--acento); display: grid; place-items: center; font-weight: 600; font-size: 12px; flex: none; }

.principal { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 20; height: var(--topbar); display: flex; align-items: center; gap: 10px; padding: 0 20px;
  background: var(--vidro); backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--borda);
}
.topbar h1 { font-size: 17px; }
.conteudo { padding: 20px; padding-bottom: calc(20px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 16px; animation: surgir .22s ease-out; max-width: 1400px; width: 100%; }

.mes-nav { display: inline-flex; align-items: center; border: 1px solid var(--borda); border-radius: var(--raio-sm); background: var(--superficie); overflow: hidden; }
.mes-nav button { border: 0; background: none; height: 32px; width: 32px; display: grid; place-items: center; color: var(--texto-2); }
.mes-nav button:hover { background: var(--acento-suave); color: var(--texto); }
.mes-nav .mes-label { height: 32px; display: flex; align-items: center; padding: 0 8px; min-width: 128px; justify-content: center; font-weight: 600; border: 0; background: none; position: relative; }
.mes-nav input[type=month] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }

.bottomnav { display: none; }
.fab { display: none; }

/* -------------------------------------------------------------- cards */
.card { background: var(--superficie); border: 1px solid var(--borda); border-radius: var(--raio); box-shadow: var(--sombra); }
.card-cab { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--borda); flex-wrap: wrap; }
.card-cab h2 { font-size: 14px; }
.card-corpo { padding: 16px; }
.card-corpo.tight { padding: 0; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-kpi { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.span-2 { grid-column: span 2; }

.kpi { padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; position: relative; overflow: hidden; }
.kpi .rotulo { font-size: 12px; color: var(--texto-3); font-weight: 500; }
.kpi .valor { font-size: 22px; font-weight: 650; letter-spacing: -.02em; line-height: 1.15; }
.kpi .sub { font-size: 12px; color: var(--texto-3); }
.kpi.alerta { border-color: color-mix(in srgb, var(--vermelho) 40%, var(--borda)); background: linear-gradient(0deg, var(--vermelho-suave), var(--superficie) 70%); }
.kpi.alerta .valor { color: var(--vermelho); }
.kpi .icone { position: absolute; right: 12px; top: 12px; color: var(--texto-3); opacity: .5; width: 18px; height: 18px; }

.chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; line-height: 1.5; white-space: nowrap; }
.chip.cinza { background: var(--bg-2); color: var(--texto-2); }
.chip.verde { background: var(--verde-suave); color: var(--verde); }
.chip.vermelho { background: var(--vermelho-suave); color: var(--vermelho); }
.chip.vermelho.solido { background: var(--vermelho); color: #fff; }
.chip.ambar { background: var(--ambar-suave); color: var(--ambar); }
.chip.azul { background: var(--acento-suave); color: var(--acento); }
.ponto { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }

.barra { height: 7px; border-radius: 4px; background: var(--bg-2); overflow: hidden; }
.barra > i { display: block; height: 100%; border-radius: 4px; background: var(--acento); transition: width .4s ease; }
.barra.grande { height: 10px; }

/* ------------------------------------------------------------- botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 0 12px;
  border-radius: var(--raio-sm); border: 1px solid var(--borda); background: var(--superficie); color: var(--texto);
  font-weight: 500; font-size: 13px; white-space: nowrap; transition: background var(--transicao), border-color var(--transicao), transform 60ms;
}
.btn svg { width: 16px; height: 16px; }
.btn:hover { background: var(--superficie-2); border-color: var(--borda-forte); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.primario { background: var(--acento); border-color: var(--acento); color: var(--acento-texto); }
.btn.primario:hover { background: var(--acento-hover); }
.btn.perigo { color: var(--vermelho); }
.btn.perigo.solido { background: var(--vermelho); border-color: var(--vermelho); color: #fff; }
.btn.fantasma { border-color: transparent; background: transparent; color: var(--texto-2); }
.btn.fantasma:hover { background: var(--acento-suave); color: var(--texto); }
.btn.sm { height: 26px; padding: 0 8px; font-size: 12px; }
.btn.icone { width: 32px; padding: 0; }
.btn.icone.sm { width: 26px; }
.btn.verde { color: var(--verde); }
.segment { display: inline-flex; border: 1px solid var(--borda); border-radius: var(--raio-sm); overflow: hidden; background: var(--superficie); }
.segment button { border: 0; background: none; height: 30px; padding: 0 12px; font-size: 12.5px; font-weight: 500; color: var(--texto-2); }
.segment button + button { border-left: 1px solid var(--borda); }
.segment button.ativo { background: var(--acento-suave); color: var(--acento); }

/* --------------------------------------------------------- formulários */
.campo { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.campo > span { font-size: 12px; color: var(--texto-2); font-weight: 500; }
.campo .ajuda { font-size: 11.5px; color: var(--texto-3); }
.input, .campo input:not([type=checkbox]):not([type=color]), .campo select, .campo textarea {
  height: 36px; width: 100%; padding: 0 10px; border-radius: var(--raio-sm); border: 1px solid var(--borda-forte);
  background: var(--superficie); color: var(--texto); outline: none; transition: border-color var(--transicao), box-shadow var(--transicao);
}
.campo textarea { height: auto; min-height: 70px; padding: 8px 10px; resize: vertical; }
.campo input:focus, .campo select:focus, .campo textarea:focus, .input:focus { border-color: var(--acento); box-shadow: 0 0 0 3px var(--acento-suave); }
.campo input[type=color] { width: 44px; height: 36px; padding: 2px; border: 1px solid var(--borda-forte); border-radius: var(--raio-sm); background: var(--superficie); }
.campo.check { flex-direction: row; align-items: center; gap: 8px; }
.campo.check input { width: 16px; height: 16px; accent-color: var(--acento); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.form-grid .full { grid-column: 1 / -1; }
.erro-box { background: var(--vermelho-suave); color: var(--vermelho); padding: 8px 10px; border-radius: var(--raio-sm); font-size: 12.5px; }
.info-box { background: var(--acento-suave); color: var(--texto-2); padding: 8px 10px; border-radius: var(--raio-sm); font-size: 12.5px; }
.busca { position: relative; }
.busca svg { position: absolute; left: 9px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--texto-3); }
.busca input { padding-left: 30px; height: 32px; }
select.input { height: 32px; padding-right: 26px; appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--texto-3) 50%), linear-gradient(135deg, var(--texto-3) 50%, transparent 50%);
  background-position: calc(100% - 14px) 50%, calc(100% - 9px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.filtros { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.filtros .input { width: auto; min-width: 120px; }

/* ------------------------------------------------------------- tabelas */
.tabela-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.tabela { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tabela th { text-align: left; font-size: 11.5px; font-weight: 600; color: var(--texto-3); text-transform: uppercase; letter-spacing: .04em; padding: 10px 14px; border-bottom: 1px solid var(--borda); white-space: nowrap; position: sticky; top: 0; background: var(--superficie); }
.tabela td { padding: 9px 14px; border-bottom: 1px solid var(--borda); vertical-align: middle; }
.tabela tr:last-child td { border-bottom: 0; }
.tabela tbody tr { transition: background var(--transicao); }
.tabela tbody tr:hover { background: var(--superficie-2); }
.tabela tr.vencido { background: var(--vermelho-suave); }
.tabela tr.apagado { color: var(--texto-3); }
.tabela tr.apagado .desc { text-decoration: line-through; }
.tabela tr.clicavel { cursor: pointer; }
.tabela .acoes { text-align: right; white-space: nowrap; }
.tabela .acoes .btn { opacity: .75; }
.tabela tr:hover .acoes .btn { opacity: 1; }
.vazio { padding: 36px 20px; text-align: center; color: var(--texto-3); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.vazio svg { width: 34px; height: 34px; opacity: .4; }
.vazio .btn { margin-top: 4px; }
.lista { display: flex; flex-direction: column; }
.lista-item { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--borda); }
.lista-item:last-child { border-bottom: 0; }
.lista-item .desc { font-weight: 500; }
.lista-item .sub { font-size: 12px; color: var(--texto-3); }
.paginacao { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--borda); font-size: 12.5px; color: var(--texto-3); }

.skeleton { background: linear-gradient(90deg, var(--bg-2), var(--superficie-2), var(--bg-2)); background-size: 200% 100%; animation: pulso 1.2s ease-in-out infinite; border-radius: var(--raio-xs); height: 14px; }

/* --------------------------------------------------------- modais/toast */
.overlay { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.45); display: grid; place-items: center; padding: 16px; animation: surgir .15s ease-out; backdrop-filter: blur(3px); }
.modal { width: 100%; max-width: 480px; max-height: calc(100dvh - 32px); display: flex; flex-direction: column; background: var(--superficie); border: 1px solid var(--borda); border-radius: 14px; box-shadow: var(--sombra-modal); animation: surgir .18s ease-out; }
.modal.larga { max-width: 720px; } .modal.estreita { max-width: 380px; }
.modal-cab { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--borda); }
.modal-cab h2 { font-size: 15px; flex: 1; }
.modal-corpo { padding: 18px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
.modal-rodape { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--borda); background: var(--superficie-2); border-radius: 0 0 14px 14px; }
.modal-rodape .esq { margin-right: auto; }
.toasts { position: fixed; z-index: 200; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast { pointer-events: auto; background: var(--superficie); color: var(--texto); border: 1px solid var(--borda); border-left: 3px solid var(--acento); padding: 10px 14px; border-radius: var(--raio-sm); box-shadow: var(--sombra-modal); font-size: 13px; max-width: 360px; animation: surgir .2s ease-out; display: flex; gap: 10px; align-items: center; }
.toast.sucesso { border-left-color: var(--verde); } .toast.erro { border-left-color: var(--vermelho); } .toast.aviso { border-left-color: var(--ambar); }
.toast button { border: 0; background: none; color: var(--texto-3); padding: 0 2px; }

.menu { position: absolute; z-index: 90; min-width: 200px; background: var(--superficie); border: 1px solid var(--borda); border-radius: var(--raio-sm); box-shadow: var(--sombra-modal); padding: 6px; animation: surgir .12s ease-out; }
.menu button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 10px; border: 0; background: none; border-radius: var(--raio-xs); text-align: left; font-size: 13px; }
.menu button:hover { background: var(--acento-suave); }
.menu .sep { height: 1px; background: var(--borda); margin: 4px 0; }
.kbd { font-family: var(--mono); font-size: 11px; border: 1px solid var(--borda-forte); border-bottom-width: 2px; border-radius: 4px; padding: 0 5px; color: var(--texto-3); margin-left: auto; }

/* --------------------------------------------------------------- login */
.login { min-height: 100dvh; display: grid; place-items: center; padding: 20px; background:
  radial-gradient(1000px 500px at 10% -10%, var(--acento-suave), transparent 60%),
  radial-gradient(800px 400px at 110% 110%, var(--verde-suave), transparent 60%), var(--bg); }
.login .card { width: 100%; max-width: 380px; padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.login .marca { padding: 0 0 6px; }
.login .marca svg { width: 40px; height: 40px; }
.login .marca .nome { font-size: 17px; }

/* -------------------------------------------------------------- alertas */
.alertas { display: flex; flex-direction: column; gap: 6px; }
.alerta { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--raio-sm); font-size: 13px; border: 1px solid var(--borda); background: var(--superficie); cursor: pointer; }
.alerta:hover { border-color: var(--borda-forte); }
.alerta .ponto { width: 8px; height: 8px; }
.alerta.erro .ponto { background: var(--vermelho); } .alerta.aviso .ponto { background: var(--ambar); } .alerta.info .ponto { background: var(--acento); }

.grafico { position: relative; width: 100%; }
.grafico canvas { width: 100% !important; }
.legenda { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; }
.legenda .item { display: flex; align-items: center; gap: 8px; }
.legenda .item .val { margin-left: auto; font-weight: 600; }

/* ---------------------------------------------------------------- mobile */
@media (max-width: 1100px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .conteudo { padding: 14px; padding-bottom: calc(var(--bottomnav) + 80px + env(safe-area-inset-bottom)); gap: 12px; }
  .topbar { padding: 0 14px; height: 52px; }
  .topbar h1 { font-size: 16px; }
  .topbar .so-desktop { display: none; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .grid-kpi { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi .valor { font-size: 19px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .meio { grid-column: auto; }
  .modal { max-height: calc(100dvh - 16px); border-radius: 14px; }
  .overlay { padding: 8px; align-items: end; }
  .toasts { left: 12px; right: 12px; bottom: calc(var(--bottomnav) + 12px + env(safe-area-inset-bottom)); }
  .toast { max-width: none; }
  .tabela th, .tabela td { padding: 9px 10px; }
  .tabela .oculta-mobile, .oculta-mobile { display: none !important; }

  .bottomnav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    height: calc(var(--bottomnav) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
    background: var(--vidro); backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px); border-top: 1px solid var(--borda); }
  .bottomnav button { border: 0; background: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 10.5px; color: var(--texto-3); font-weight: 500; }
  .bottomnav button svg { width: 22px; height: 22px; }
  .bottomnav button.ativo { color: var(--acento); }
  .fab { display: grid; place-items: center; position: fixed; right: 16px; bottom: calc(var(--bottomnav) + 16px + env(safe-area-inset-bottom)); z-index: 31;
    width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--acento); color: #fff; box-shadow: 0 8px 24px -6px rgba(0,113,227,.6); }
  .fab svg { width: 24px; height: 24px; }
  .sheet { position: fixed; inset: auto 0 0 0; z-index: 120; background: var(--superficie); border-radius: 16px 16px 0 0; padding: 8px 12px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--borda); box-shadow: var(--sombra-modal); animation: subir .2s ease-out; }
  .sheet .alca { width: 36px; height: 4px; border-radius: 2px; background: var(--borda-forte); margin: 4px auto 10px; }
  .sheet button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 10px; border: 0; background: none; border-radius: var(--raio-sm); font-size: 15px; text-align: left; }
  .sheet button svg { width: 20px; height: 20px; color: var(--acento); }
  .sheet button:active { background: var(--acento-suave); }
  @keyframes subir { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
}
@media (min-width: 861px) { .so-mobile { display: none !important; } }
@media print { .sidebar, .topbar, .bottomnav, .fab, .toasts { display: none !important; } .shell { grid-template-columns: 1fr; } .card { box-shadow: none; } }
