@import url("/static/tokens.css");

/* Componentes base do design system (docs/design-system.md). Tokens em tokens.css, telas em telas.css, tema Papel em /static/papel/. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/static/fonts/inter-latin-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/static/fonts/inter-latin-ext-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--fundo); color: var(--texto);
  font: 400 var(--fs-14)/1.5 var(--fonte); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv11", "ss01"; text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, p { margin: 0; }
h1 { font-size: 1.375rem; font-weight: 600; letter-spacing: -0.022em; line-height: 1.25; }
h2 { font-size: 0.9375rem; font-weight: 600; letter-spacing: -0.011em; line-height: 1.35; }
h3 { font-size: var(--fs-14); font-weight: 600; letter-spacing: -0.006em; }
a { color: var(--brand-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
code, .mono { font-family: var(--mono); font-size: 0.88em; }
code { background: var(--sup-2); border: 1px solid var(--borda); padding: 0 var(--e1); border-radius: var(--r-1); }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus { outline: none; }
:focus-visible { box-shadow: var(--foco); border-radius: var(--r-2); }
::selection { background: color-mix(in srgb, var(--brand) 20%, transparent); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.texto-2 { color: var(--texto-2); }
.texto-3 { color: var(--texto-3); }
.p12 { font-size: var(--fs-12); }
.p13 { font-size: var(--fs-13); }
.num { font-variant-numeric: tabular-nums; }
.linha { display: flex; align-items: center; gap: var(--e2); flex-wrap: wrap; }
.linha-nw { display: flex; align-items: center; gap: var(--e2); min-width: 0; }
.cresce { flex: 1; min-width: 0; }
.corta { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pilha { display: flex; flex-direction: column; gap: var(--e3); }
.pilha-4 { display: flex; flex-direction: column; gap: var(--e4); }
.ic { flex: none; display: block; }
.girar { animation: girar 1.1s linear infinite; }
@keyframes girar { to { transform: rotate(360deg); } }
.escrevendo { color: var(--texto-2); font-size: var(--fs-13); animation: respira 1.6s ease-in-out infinite; }
@keyframes respira { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; } }

/* ------------------------------------------------------------ botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: var(--h-btn); padding: 0 12px; border-radius: var(--r-2);
  border: 1px solid var(--borda-forte); background: var(--papel); color: var(--texto);
  font-size: var(--fs-13); font-weight: 500; white-space: nowrap; cursor: pointer; letter-spacing: -0.003em;
  box-shadow: var(--sombra-btn);
  transition: background var(--dur-1) var(--curva), border-color var(--dur-1), color var(--dur-1), box-shadow var(--dur-1), transform var(--dur-1) var(--curva);
}
.btn:hover:not(:disabled) { background: var(--sup-2); border-color: color-mix(in srgb, var(--texto-2) 30%, var(--borda-forte)); text-decoration: none; }
.btn:active:not(:disabled) { background: var(--sup-3); transform: translateY(0.5px) scale(0.985); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn .ic { color: var(--texto-2); }
.btn-pri { background: var(--brand-forte); border-color: var(--brand-forte); color: var(--brand-fg); }
.btn-pri .ic { color: currentColor; }
.btn-pri:hover:not(:disabled) { background: color-mix(in srgb, var(--brand-forte) 90%, #000); border-color: transparent; }
.btn-pri:active:not(:disabled) { background: color-mix(in srgb, var(--brand-forte) 82%, #000); }
.btn-perigo { color: var(--perigo); }
.btn-perigo .ic { color: currentColor; }
.btn-perigo:hover:not(:disabled) { background: var(--perigo-suave); border-color: color-mix(in srgb, var(--perigo) 35%, var(--borda)); }
.btn-fantasma { border-color: transparent; background: transparent; color: var(--texto-2); box-shadow: none; }
.btn-fantasma:hover:not(:disabled) { background: var(--hover); border-color: transparent; color: var(--texto); }
.btn:focus-visible, .btn-fantasma:focus-visible { box-shadow: var(--foco); }
.btn-p { height: var(--h-btn-p); padding: 0 10px; font-size: var(--fs-12); }
.btn-g { height: 42px; padding: 0 var(--e5); font-size: var(--fs-14); border-radius: var(--r-3); }
.btn-ic { width: var(--h-btn); padding: 0; }
.btn-acento { background: var(--acento-forte); border-color: var(--acento-forte); color: var(--acento-fg); }
.btn-acento .ic { color: currentColor; }
.btn-acento:hover:not(:disabled) { background: color-mix(in srgb, var(--acento-forte) 90%, #000); }
.btn-p.btn-ic { width: var(--h-btn-p); }
.btn-g.btn-ic { width: 42px; }
.btn-bloco { width: 100%; }

/* ------------------------------------------------------------ campos */
.campo { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.campo-rot { font-size: var(--fs-13); font-weight: 500; color: var(--texto); }
.campo-ajuda { font-size: var(--fs-12); color: var(--texto-3); }
.campo-erro { font-size: var(--fs-12); color: var(--perigo); }
input:not([type="checkbox"]):not([type="radio"]):not([type="color"]), select, textarea {
  width: 100%; height: var(--h-campo); padding: 0 10px; border: 1px solid var(--borda-campo); border-radius: var(--r-2);
  background: var(--papel); color: var(--texto); font-size: var(--fs-14);
  transition: border-color var(--dur-1), box-shadow var(--dur-1), background var(--dur-1);
}
textarea { height: auto; padding: var(--e2) 10px; resize: vertical; line-height: 1.5; }
select {
  appearance: none; padding-right: 32px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235d6879' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 9px center;
}
input::placeholder, textarea::placeholder { color: var(--texto-3); }
input:hover:not(:disabled), select:hover:not(:disabled), textarea:hover:not(:disabled) { border-color: color-mix(in srgb, var(--texto-2) 45%, var(--borda-campo)); }
input:focus-visible, select:focus-visible, textarea:focus-visible, input:focus, select:focus, textarea:focus {
  border-color: var(--brand-ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); border-radius: var(--r-2);
}
input:disabled, select:disabled, textarea:disabled { background: var(--sup-2); color: var(--texto-3); cursor: not-allowed; }
input[type="checkbox"], input[type="radio"] { width: 16px; height: 16px; accent-color: var(--brand-forte); margin: 0; flex: none; cursor: pointer; }
input[type="color"] { width: 40px; height: var(--h-btn); padding: 2px; border: 1px solid var(--borda-forte); border-radius: var(--r-2); background: var(--papel); cursor: pointer; }
.campo-ic { position: relative; }
.campo-ic > .ic { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--texto-3); pointer-events: none; }
.campo-ic > input { padding-left: 32px !important; }
.check { display: flex; align-items: center; gap: var(--e2); font-size: var(--fs-14); cursor: pointer; }
.grade-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--e4); }
.grade-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--e4); }
@media (max-width: 720px) { .grade-2, .grade-3 { grid-template-columns: 1fr; } }
.copiavel { display: flex; gap: var(--e2); }
.copiavel input { font-family: var(--mono); font-size: var(--fs-13) !important; }

/* ------------------------------------------------------------ selos, pontos, avatar */
.selo {
  display: inline-flex; align-items: center; gap: var(--e1); height: 20px; padding: 0 7px; border-radius: var(--r-1);
  font-size: var(--fs-12); font-weight: 500; white-space: nowrap; line-height: 1;
  background: var(--sup-2); color: var(--texto-2); border: 1px solid var(--borda);
}
.selo-ok { background: var(--ok-suave); color: var(--ok); border-color: color-mix(in srgb, var(--ok) 18%, transparent); }
.selo-aviso { background: var(--aviso-suave); color: var(--aviso); border-color: color-mix(in srgb, var(--aviso) 18%, transparent); }
.selo-perigo { background: var(--perigo-suave); color: var(--perigo); border-color: color-mix(in srgb, var(--perigo) 18%, transparent); }
.selo-info { background: var(--info-suave); color: var(--info); border-color: color-mix(in srgb, var(--info) 18%, transparent); }
.selo-marca { background: var(--brand-suave); color: var(--brand-ink); border-color: var(--brand-borda); }
.selo-acento { background: var(--brand-suave); color: var(--texto); border-color: var(--brand-borda); }
.ponto { width: 7px; height: 7px; border-radius: 50%; background: var(--texto-3); flex: none; display: inline-block; }
.ponto-ok { background: var(--ok); }
.ponto-aviso { background: var(--aviso); }
.ponto-perigo { background: var(--perigo); }
.ponto-marca { background: var(--brand); }
.avatar {
  display: inline-flex; align-items: center; justify-content: center; flex: none; border-radius: 50%; object-fit: cover;
  font-weight: 600; letter-spacing: 0;
  background: hsl(var(--av-h, 230) 40% 94%); color: hsl(var(--av-h, 230) 32% 30%);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .avatar { background: hsl(var(--av-h, 230) 18% 22%); color: hsl(var(--av-h, 230) 40% 84%); } }
:root[data-theme="dark"] .avatar { background: hsl(var(--av-h, 230) 18% 22%); color: hsl(var(--av-h, 230) 40% 84%); }
.badge {
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--r-full); background: var(--brand-forte); color: var(--brand-fg);
  font-size: 11px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums;
}
/* logos oficiais dos canais, pequenos e com a cor de cada marca */
.logo-marca { display: block; flex: none; object-fit: contain; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) img.logo-marca[src$="tiktok.svg"] { filter: invert(1); } }
:root[data-theme="dark"] img.logo-marca[src$="tiktok.svg"] { filter: invert(1); }
.logo-asaas { display: inline-block; flex: none; background: currentColor; -webkit-mask: url(/static/marcas/asaas.svg) center/contain no-repeat; mask: url(/static/marcas/asaas.svg) center/contain no-repeat; }
.passo-a-passo { margin: 0; padding: 0; list-style: none; counter-reset: pp; display: flex; flex-direction: column; gap: var(--e3); }
.passo-a-passo > li { counter-increment: pp; position: relative; padding-left: 34px; font-size: var(--fs-13); color: var(--texto-2); line-height: 1.55; }
.passo-a-passo > li::before { content: counter(pp); position: absolute; left: 0; top: -1px; width: 22px; height: 22px; border-radius: 50%; background: var(--sup-3); color: var(--texto); font: 600 12px/22px var(--fonte); text-align: center; font-variant-numeric: tabular-nums; }
.passo-a-passo > li b { color: var(--texto); font-weight: 600; }
.checagens { display: flex; flex-direction: column; }
.checagem { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: var(--e2) var(--e3); padding: var(--e3) 0; border-top: 1px solid var(--borda); animation: surge 200ms var(--curva) both; }
.checagem:first-child { border-top: 0; }
.checagem-ic { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.checagem-ok .checagem-ic { background: var(--ok-suave); color: var(--ok); }
.checagem-falha .checagem-ic { background: var(--perigo-suave); color: var(--perigo); }
.checagem-aviso .checagem-ic { background: var(--aviso-suave); color: var(--aviso); }
.checagem-t { font-weight: 600; font-size: var(--fs-14); }
.checagem-d { font-size: var(--fs-13); color: var(--texto-2); margin-top: 2px; overflow-wrap: anywhere; }
.checagem-a { font-size: var(--fs-13); color: var(--texto); margin-top: 6px; display: flex; gap: 6px; align-items: flex-start; }
.checagem-a .ic { color: var(--brand-ink); margin-top: 2px; }
.semaforo { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-13); font-weight: 500; }
.semaforo::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.semaforo-ok { color: var(--ok); }
.semaforo-aviso { color: var(--aviso); }
.semaforo-falha { color: var(--perigo); }

kbd {
  font-family: var(--fonte); font-size: 11px; font-weight: 500; min-width: 20px; height: 20px; padding: 0 5px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--borda); border-radius: var(--r-1); background: var(--sup-2); color: var(--texto-2);
}

/* ------------------------------------------------------------ superfícies */
.painel { background: var(--papel); border: 1px solid var(--borda); border-radius: var(--r-4); box-shadow: var(--sombra-1); }
.painel-cab { display: flex; align-items: center; gap: var(--e3); padding: var(--e4) var(--pad-painel); border-bottom: 1px solid var(--borda); min-height: 56px; }
.painel-cab h2, .painel-cab h3 { flex: 1; }
.painel-cab h3 { font-size: var(--fs-14); font-weight: 600; }
.painel-cab p { color: var(--texto-3); font-size: var(--fs-13); margin-top: 2px; }
.painel-corpo { padding: var(--pad-painel); }
.secao + .secao { margin-top: var(--e8); }
.secao-tit { font-size: var(--fs-12); font-weight: 500; color: var(--texto-2); margin-bottom: var(--e2); letter-spacing: 0; }
.divisor { height: 1px; background: var(--borda); margin: var(--e5) 0; border: 0; }

/* tabela */
.tabela-wrap { overflow-x: auto; }
table.tabela { width: 100%; border-collapse: collapse; font-size: var(--fs-13); }
.tabela th { text-align: left; font-size: var(--fs-12); font-weight: 500; color: var(--texto-2); padding: 9px var(--pad-painel); border-bottom: 1px solid var(--borda); white-space: nowrap; background: var(--sup); position: sticky; top: 0; }
.tabela td { padding: var(--pad-celula) var(--pad-painel); border-bottom: 1px solid var(--borda); vertical-align: middle; }
.tabela tbody tr { transition: background var(--dur); }
.tabela tbody tr:hover { background: var(--sup-2); }
.tabela tbody tr:last-child td { border-bottom: 0; }
.tabela .dir { text-align: right; font-variant-numeric: tabular-nums; }
.tabela .acoes { text-align: right; white-space: nowrap; }
.tabela .acoes > * + * { margin-left: var(--e1); }
.t-princ { font-weight: 500; color: var(--texto); font-size: var(--fs-14); }
.t-sec { color: var(--texto-3); font-size: var(--fs-12); margin-top: 2px; }

/* segmentos */
.segmentos { display: inline-flex; padding: 2px; gap: 2px; background: var(--sup-3); border: 0; border-radius: var(--r-3); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.segmentos button { height: 28px; padding: 0 12px; border: 0; background: transparent; border-radius: var(--r-2); font-size: var(--fs-13); font-weight: 500; color: var(--texto-2); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; transition: background var(--dur), color var(--dur); }
.segmentos button:hover { color: var(--texto); }
.segmentos button.ativo { background: var(--papel); color: var(--texto); box-shadow: 0 0 0 1px var(--borda); }
.seg-n { font-size: 11px; color: var(--texto-3); font-variant-numeric: tabular-nums; }

/* vazio, erro, esqueleto */
.vazio { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: var(--e12) var(--e6); gap: 6px; color: var(--texto-2); }
.vazio-ic { width: 40px; height: 40px; border-radius: var(--r-3); display: flex; align-items: center; justify-content: center; background: var(--sup-2); border: 1px solid var(--borda); color: var(--texto-2); margin-bottom: var(--e2); }
.vazio-ilus { width: 112px; height: 82px; margin-bottom: var(--e2); color: var(--texto-2); animation: surge 200ms var(--curva); }
.vazio-ilus .i-fundo { fill: none; }
.vazio-ilus .i-papel { fill: var(--papel); stroke: var(--borda-forte); }
.vazio-ilus .i-linha { fill: var(--borda-forte); stroke: none; }
.vazio-ilus .i-marca { fill: var(--sup-2); stroke: var(--texto-2); stroke-width: 1.2; }
.vazio-ilus .i-acento { fill: var(--brand); opacity: 0.85; }
.vazio-ilus .i-traco { stroke: var(--texto-2); }
.vazio-t { font-weight: 600; color: var(--texto); font-size: var(--fs-16); letter-spacing: -0.011em; }
.vazio-p { font-size: var(--fs-13); max-width: 380px; color: var(--texto-3); line-height: 1.55; }
.vazio-acoes { margin-top: var(--e3); display: flex; gap: var(--e2); flex-wrap: wrap; justify-content: center; }
.vazio-erro .vazio-ic { color: var(--perigo); background: var(--perigo-suave); border-color: transparent; }
.esq { display: flex; flex-direction: column; gap: var(--e2); padding: var(--e4); }
.esq-l { border-radius: var(--r-2); background: linear-gradient(90deg, var(--sup-2) 0%, var(--sup-3) 40%, var(--sup-2) 80%) 0 0 / 300% 100%; animation: brilho 1.6s linear infinite; }
@keyframes brilho { from { background-position: 100% 0; } to { background-position: -50% 0; } }
.entra { animation: sobe 180ms var(--curva) both; }

/* aviso inline */
.alerta { display: flex; gap: var(--e3); align-items: flex-start; padding: var(--e3) var(--e4); border-radius: var(--r-3); border: 1px solid var(--borda); background: var(--sup); font-size: var(--fs-13); color: var(--texto-2); line-height: 1.55; }
.alerta .ic { margin-top: 2px; }
.alerta b { color: var(--texto); font-weight: 600; }
.alerta-aviso { background: var(--aviso-suave); border-color: color-mix(in srgb, var(--aviso) 20%, transparent); }
.alerta-aviso > .ic { color: var(--aviso); }
.alerta-perigo { background: var(--perigo-suave); border-color: color-mix(in srgb, var(--perigo) 20%, transparent); }
.alerta-perigo > .ic { color: var(--perigo); }
.alerta-info { background: var(--info-suave); border-color: color-mix(in srgb, var(--info) 18%, transparent); }
.alerta-info > .ic { color: var(--info); }
.alerta-ok { background: var(--ok-suave); border-color: color-mix(in srgb, var(--ok) 18%, transparent); }
.alerta-ok > .ic { color: var(--ok); }

/* modal */
.modal-fundo { position: fixed; inset: 0; background: var(--overlay); display: flex; align-items: center; justify-content: center; padding: var(--e4); z-index: var(--z-modal); animation: surge var(--dur-2) ease-out; }
.modal { width: 100%; max-height: calc(100vh - 32px); display: flex; flex-direction: column; background: var(--papel); border: 1px solid var(--borda); border-radius: var(--r-4); box-shadow: var(--sombra-3); animation: abre var(--dur-3) var(--curva-entra); }
.modal-cab { display: flex; align-items: center; gap: var(--e2); padding: var(--e5) var(--e6) var(--e3); }
.modal-cab h2 { flex: 1; font-size: var(--fs-16); font-weight: 600; }
.modal-corpo { padding: 0 var(--e6) var(--e6); overflow-y: auto; display: flex; flex-direction: column; gap: var(--e4); }
.modal-acoes, .modal-rodape { display: flex; justify-content: flex-end; gap: var(--e2); }
.modal-rodape { padding: var(--e3) var(--e6); border-top: 1px solid var(--borda); background: var(--sup); border-radius: 0 0 var(--r-4) var(--r-4); }
@keyframes surge { from { opacity: 0; } }
@keyframes sobe { from { opacity: 0; transform: translateY(4px); } }
@keyframes abre { from { opacity: 0; transform: translateY(6px) scale(0.985); } }
@keyframes sai { to { opacity: 0; transform: translateY(4px) scale(0.98); } }
@media (max-width: 640px) {
  .modal-fundo { align-items: flex-end; padding: 0; }
  .modal { max-width: none !important; border-radius: var(--r-4) var(--r-4) 0 0; max-height: 92vh; }
  .modal-cab { padding: var(--e5) var(--e4) var(--e3); }
  .modal-corpo { padding: 0 var(--e4) var(--e5); }
  .modal-rodape { padding: var(--e3) var(--e4); border-radius: 0; }
}

/* toasts: claros, com a cor do estado só no ícone e na borda esquerda */
.toasts { position: fixed; right: var(--e5); bottom: var(--e5); display: flex; flex-direction: column; gap: var(--e2); z-index: var(--z-toast); pointer-events: none; }
.toast {
  display: flex; align-items: flex-start; gap: var(--e3); padding: 12px 14px 12px 12px; width: max-content; max-width: 400px; border-radius: var(--r-3);
  background: var(--papel); color: var(--texto); border: 1px solid var(--borda); box-shadow: var(--sombra-3); font-size: var(--fs-13); line-height: 1.45;
  animation: abre var(--dur-3) var(--curva-entra); pointer-events: auto; position: relative; overflow: hidden;
}
.toast::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--texto-3); }
.toast > span { flex: 1; min-width: 0; padding-top: 1px; }
.toast .ic { color: var(--texto-3); margin-top: 1px; }
.toast.saindo { animation: sai var(--dur-2) var(--curva) forwards; }
.toast-x { flex: none; border: 0; background: transparent; color: var(--texto-3); width: 22px; height: 22px; margin: -2px -4px 0 0; border-radius: var(--r-1); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.toast-x:hover { background: var(--hover); color: var(--texto); }
.t-ok::before { background: var(--ok); } .t-ok .ic { color: var(--ok); }
.t-erro::before { background: var(--perigo); } .t-erro .ic { color: var(--perigo); }
.t-aviso::before { background: var(--aviso); } .t-aviso .ic { color: var(--aviso); }
.t-info::before { background: var(--brand); } .t-info .ic { color: var(--brand-ink); }
@media (max-width: 767px) { .toasts { left: var(--e3); right: var(--e3); bottom: calc(72px + env(safe-area-inset-bottom)); } .toast { max-width: none; width: auto; } }

/* menu suspenso */
.menu { position: absolute; z-index: var(--z-menu); min-width: 200px; padding: var(--e1); background: var(--papel); border: 1px solid var(--borda); border-radius: var(--r-3); box-shadow: var(--sombra-3); animation: abre var(--dur-2) var(--curva-entra); transform-origin: top; }
.menu button, .menu a { width: 100%; display: flex; align-items: center; gap: var(--e2); height: 32px; padding: 0 var(--e2); border: 0; border-radius: var(--r-2); background: transparent; text-align: left; font-size: var(--fs-13); cursor: pointer; color: var(--texto); text-decoration: none; }
.menu button:hover, .menu button.ativo, .menu a:hover { background: var(--sup-2); text-decoration: none; }
.menu .ic { color: var(--texto-3); }
.menu-tit { font-size: var(--fs-12); color: var(--texto-2); padding: 6px var(--e2) var(--e1); font-weight: 500; }
.menu-sep { height: 1px; background: var(--borda); margin: var(--e1) calc(var(--e1) * -1); }
