@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap");

/* Painel AutoPay Cloud — Dark Premium (tokens do web-design-system) */
:root {
  --bg: #050505;
  --surface-1: #0c0c0d;
  --surface-2: #111113;
  --surface-3: #17171a;
  --surface-sel: #1e1e22;
  --border-subtle: rgba(255, 255, 255, .06);
  --border: rgba(255, 255, 255, .09);
  --border-strong: rgba(255, 255, 255, .16);
  --text: #fafafa;
  --text-2: #a1a1aa;
  --text-3: #71717a;
  --ok: #4ade80;   --ok-bg: rgba(74, 222, 128, .1);   --ok-borda: rgba(74, 222, 128, .25);
  --bad: #f87171;  --bad-bg: rgba(248, 113, 113, .1); --bad-borda: rgba(248, 113, 113, .25);
  --warn: #fbbf24; --warn-bg: rgba(251, 191, 36, .1);
  --info: #60a5fa; --info-bg: rgba(96, 165, 250, .1);
  --acento: #3b82f6; --acento-hover: #2563eb;
  --js: #f7df1e;
  --r-sm: 6px; --r: 8px; --r-md: 12px; --r-lg: 16px; --r-pill: 999px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 140ms; --t: 220ms; --t-slow: 360ms;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
  --lateral: 248px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
body { min-height: 100vh; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
svg.ico { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
svg.ico.g { width: 18px; height: 18px; }
.mono { font-family: var(--mono); }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.hidden { display: none !important; }
.espaco { flex: 1; }
.trunc { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: var(--r-pill); border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--surface-sel); }
::-webkit-scrollbar-track { background: transparent; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; border-radius: var(--r-sm); }

/* Fundo quadriculado sutil (como nas referências) */
.grade-fundo { background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px); background-size: 40px 40px; background-position: -1px -1px; }

/* ── Botões ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: var(--r); border: 1px solid var(--border); background: var(--surface-2); color: var(--text); cursor: pointer; font-weight: 500; white-space: nowrap; transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), color var(--t-fast) var(--ease), opacity var(--t-fast); }
.btn:hover { background: var(--surface-3); transform: translateY(-1px); }
.btn:active { transform: none; background: var(--surface-sel); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .4; cursor: not-allowed; transform: none; background: var(--surface-2); }
.btn.primario { background: var(--acento); border-color: transparent; color: #fff; }
.btn.primario:hover { background: var(--acento-hover); }
.btn.claro { background: var(--text); color: #0a0a0a; border-color: transparent; }
.btn.claro:hover { background: #e4e4e7; }
.btn.perigo { color: var(--bad); }
.btn.perigo:hover { background: var(--bad-bg); }
.btn.sucesso { color: var(--ok); }
.btn.sucesso:hover { background: var(--ok-bg); }
.btn.pequeno { height: 30px; padding: 0 10px; font-size: 13px; }
.btn.icone { width: 32px; padding: 0; }
.btn.fantasma { background: transparent; border-color: transparent; }
.btn.fantasma:hover { background: var(--surface-2); }
.btn.carregando { pointer-events: none; opacity: .7; }
.btn.carregando .ico { animation: gira 1s linear infinite; }
.btn .ico.desliza { transition: transform var(--t-fast) var(--ease); }
.btn:hover .ico.desliza { transform: translateX(3px); }

/* ── Selos de status ── */
.selo { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: var(--r-pill); font-size: 11px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; background: var(--surface-3); color: var(--text-2); border: 1px solid var(--border-subtle); white-space: nowrap; }
.selo::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.selo.ok { background: var(--ok-bg); color: var(--ok); border-color: var(--ok-borda); }
.selo.ok::before { box-shadow: 0 0 0 0 rgba(74,222,128,.6); animation: pulso 2s infinite; }
.selo.bad { background: var(--bad-bg); color: var(--bad); border-color: var(--bad-borda); }
.selo.warn { background: var(--warn-bg); color: var(--warn); border-color: rgba(251,191,36,.25); }
.selo.info { background: var(--info-bg); color: var(--info); border-color: rgba(96,165,250,.25); }
.selo.sem-ponto::before { display: none; }
@keyframes pulso { 0% { box-shadow: 0 0 0 0 rgba(74,222,128,.5); } 70% { box-shadow: 0 0 0 6px rgba(74,222,128,0); } 100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); } }

/* ── Login ── */
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px; position: relative; overflow: hidden; }
.login::before { content: ""; position: absolute; inset: -20%; background: radial-gradient(600px 400px at 50% 35%, rgba(255,255,255,.06), transparent 70%); pointer-events: none; }
.login-card { position: relative; width: 100%; max-width: 400px; background: rgba(12,12,13,.85); backdrop-filter: blur(16px); border: 1px solid var(--border); border-radius: 20px; padding: 36px 32px 28px; box-shadow: 0 30px 80px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.05); animation: sobe var(--t-slow) var(--ease); }
.login-logo { width: 64px; height: 64px; border-radius: 18px; border: 1px solid var(--border-strong); box-shadow: 0 10px 30px rgba(0,0,0,.5); display: block; }
.login-card h1 { font-size: 22px; margin: 20px 0 4px; font-weight: 700; letter-spacing: -.02em; }
.login-card .sub { margin: 0 0 28px; color: var(--text-2); }
.btn-discord { width: 100%; height: 46px; border-radius: var(--r-md); background: #5865f2; color: #fff; border: 0; font-weight: 600; font-size: 15px; }
.btn-discord:hover { background: #4752c4; }
.btn-discord svg { width: 20px; height: 20px; fill: currentColor; stroke: none; }
.login-rodape { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 22px; font-size: 12px; color: var(--text-3); }
.aviso { margin: 0 0 16px; padding: 10px 12px; border-radius: var(--r); font-size: 13px; }
.aviso.erro { background: var(--bad-bg); color: var(--bad); border: 1px solid var(--bad-borda); }
@keyframes sobe { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ── Estrutura com menu lateral ── */
.casca { display: grid; grid-template-columns: var(--lateral) 1fr; min-height: 100vh; }
.lateral { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 18px 12px; background: var(--surface-1); border-right: 1px solid var(--border-subtle); }
.marca { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; }
.marca img { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--border); }
.marca b { display: block; font-size: 15px; letter-spacing: -.01em; }
.marca small { color: var(--text-3); font-size: 12px; }
.menu { display: flex; flex-direction: column; gap: 2px; }
.menu-titulo { padding: 14px 10px 6px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.menu a { position: relative; display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 10px; border-radius: var(--r); color: var(--text-2); transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease); }
.menu a:hover { background: var(--surface-2); color: var(--text); }
.menu a.ativo { background: var(--surface-3); color: var(--text); }
.menu a.ativo::before { content: ""; position: absolute; left: -12px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--text); }
.menu .contador { margin-left: auto; font-size: 11.5px; color: var(--text-3); font-family: var(--mono); }
.perfil { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--border-subtle); }
.perfil img { width: 32px; height: 32px; border-radius: 50%; }
.perfil .nome { font-weight: 600; font-size: 13px; }
.perfil small { color: var(--text-3); font-size: 11.5px; }
.perfil form { margin: 0 0 0 auto; }

.conteudo { min-width: 0; }
.barra-movel { display: none; }
.pagina { max-width: 1320px; margin: 0 auto; padding: 28px 32px 48px; animation: aparece var(--t-slow) var(--ease); }
@keyframes aparece { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.cabecalho { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.cabecalho h1 { margin: 0; font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.cabecalho p { margin: 4px 0 0; color: var(--text-2); }

/* Cartões de resumo */
.resumo { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-bottom: 28px; }
.cartao { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 16px 18px; position: relative; overflow: hidden; }
.cartao .topo-c { display: flex; align-items: center; gap: 10px; color: var(--text-2); font-size: 13px; margin-bottom: 12px; }
.cartao .topo-c .ico-caixa { width: 30px; height: 30px; border-radius: var(--r); display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border-subtle); color: var(--text); }
.cartao .valor { font-size: 24px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.cartao .valor small { font-size: 14px; font-weight: 500; color: var(--text-3); }
.barra { height: 6px; border-radius: var(--r-pill); background: var(--surface-3); margin-top: 12px; overflow: hidden; }
.barra > i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--text); transition: width var(--t-slow) var(--ease); }
.barra.alerta > i { background: var(--warn); }
.barra.critico > i { background: var(--bad); }

/* Barra de ferramentas (busca + filtros) */
.ferramentas { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.secao-titulo { font-size: 17px; font-weight: 600; margin: 0; letter-spacing: -.01em; }
.ferramentas.topo-espaco { margin-top: 32px; }
.busca { display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 14px; background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--r-md); flex: 1; min-width: 220px; transition: background var(--t-fast); }
.busca:focus-within { background: var(--surface-2); border-color: var(--border-strong); }
.busca input { flex: 1; background: transparent; border: 0; outline: 0; min-width: 0; }
.busca input::placeholder { color: var(--text-3); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { height: 32px; padding: 0 12px; border-radius: var(--r-pill); border: 1px solid var(--border); background: var(--surface-1); color: var(--text-2); cursor: pointer; font-size: 13px; transition: background var(--t-fast), color var(--t-fast); }
.chip:hover { background: var(--surface-2); color: var(--text); }
.chip[aria-pressed="true"] { background: var(--text); color: #0a0a0a; border-color: transparent; }

/* Grade de apps (estilo Square Cloud) */
.grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.app { display: flex; flex-direction: column; background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; cursor: pointer; position: relative; transition: background var(--t) var(--ease), transform var(--t) var(--ease), box-shadow var(--t) var(--ease); }
.app::after { content: ""; position: absolute; inset: 0; background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 0%), rgba(255,255,255,.05), transparent 60%); opacity: 0; transition: opacity var(--t); pointer-events: none; }
.app:hover { background: var(--surface-2); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0,0,0,.4); }
.app:hover::after { opacity: 1; }
.app.sem-clique { cursor: default; }
.app-corpo { display: flex; gap: 12px; padding: 16px; }
.app-icone { width: 40px; height: 40px; border-radius: var(--r); display: grid; place-items: center; flex: none; font-weight: 800; font-size: 14px; background: var(--js); color: #111; }
.app-icone.nuvem { background: var(--surface-3); color: var(--text-2); border: 1px solid var(--border); }
.app-icone.bot { background: var(--surface-3); overflow: hidden; border: 1px solid var(--border); }
.app-icone.bot img { width: 100%; height: 100%; object-fit: cover; }
.app-nome { font-weight: 600; font-size: 15px; }
.app-sub { color: var(--text-3); font-size: 12px; font-family: var(--mono); }
.app-rodape { display: flex; align-items: center; gap: 14px; padding: 10px 16px; border-top: 1px solid var(--border-subtle); font-family: var(--mono); font-size: 12px; color: var(--text-2); margin-top: auto; }
.app-rodape span { display: inline-flex; align-items: center; gap: 6px; }
.app-rodape .ico { width: 14px; height: 14px; }
.app-acoes { display: flex; gap: 4px; }

/* Paginação */
.paginacao { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.paginas { display: flex; gap: 6px; flex-wrap: wrap; }
.pag { min-width: 38px; height: 38px; padding: 0 10px; border-radius: var(--r); border: 1px solid transparent; background: transparent; color: var(--text-2); cursor: pointer; font-variant-numeric: tabular-nums; transition: background var(--t-fast), color var(--t-fast); }
.pag:hover { background: var(--surface-2); color: var(--text); }
.pag[aria-current="page"] { background: var(--surface-3); color: var(--text); border-color: var(--border); }
.pag.reticencias { pointer-events: none; }

/* Detalhe do app */
.voltar { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); margin-bottom: 16px; font-size: 13px; }
.voltar:hover { color: var(--text); }
.voltar:hover .ico { transform: translateX(-2px); }
.voltar .ico { transition: transform var(--t-fast) var(--ease); }
.det-topo { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 20px; margin-bottom: 16px; }
.det-cab { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.det-cab .app-icone { width: 48px; height: 48px; font-size: 16px; }
.det-cab h1 { margin: 0; font-size: 22px; letter-spacing: -.02em; }
.det-metricas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.det-metricas .cartao { background: var(--surface-2); border-color: var(--border-subtle); }
.det-metricas .rotulo { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--text-3); margin-bottom: 8px; }
.rede { display: grid; gap: 4px; font-family: var(--mono); font-size: 15px; }
.rede span { display: flex; align-items: center; gap: 8px; }
.barra-acoes { display: flex; align-items: center; gap: 8px; padding: 10px; background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--r-lg); margin-bottom: 16px; flex-wrap: wrap; }
.abas { display: flex; gap: 2px; border-bottom: 1px solid var(--border-subtle); margin-bottom: 16px; }
.aba { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border: 0; background: transparent; color: var(--text-2); cursor: pointer; transition: color var(--t-fast); }
.aba:hover { color: var(--text); }
.aba[aria-selected="true"] { color: var(--text); }
.aba[aria-selected="true"]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--text); }

/* Console */
.terminal { background: #070708; border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.terminal-topo { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--border-subtle); background: var(--surface-1); }
.bolinhas { display: flex; gap: 6px; }
.bolinhas i { width: 10px; height: 10px; border-radius: 50%; background: var(--surface-sel); }
.terminal pre { margin: 0; height: 520px; overflow: auto; padding: 14px 16px; font-family: var(--mono); font-size: 12.5px; line-height: 1.6; color: #d4d4d8; white-space: pre-wrap; word-break: break-word; }
.terminal pre .l-erro { color: var(--bad); }
.terminal pre .l-aviso { color: var(--warn); }
.terminal pre .l-ok { color: var(--ok); }
.terminal pre .l-data { color: var(--text-3); }

/* Arquivos */
.painel { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.painel-topo { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--border-subtle); flex-wrap: wrap; }
.trilha { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; font-family: var(--mono); font-size: 13px; min-width: 0; }
.trilha button { border: 0; background: transparent; color: var(--text-2); cursor: pointer; padding: 3px 6px; border-radius: var(--r-sm); }
.trilha button:hover { background: var(--surface-2); color: var(--text); }
.trilha .sep { color: var(--text-3); }
.trilha .atual { color: var(--text); padding: 3px 6px; }
.lista-arq { list-style: none; margin: 0; padding: 0; max-height: 620px; overflow: auto; }
.lista-arq li { display: grid; grid-template-columns: 24px 1fr 100px 150px; align-items: center; gap: 10px; padding: 9px 16px; border-bottom: 1px solid var(--border-subtle); cursor: pointer; transition: background var(--t-fast); }
.lista-arq li:hover { background: var(--surface-2); }
.lista-arq li:last-child { border-bottom: 0; }
.lista-arq .ico.pasta { color: var(--info); }
.lista-arq .tam, .lista-arq .data { font-family: var(--mono); font-size: 12px; color: var(--text-3); text-align: right; }
.vazio { padding: 48px 20px; text-align: center; color: var(--text-3); }
.vazio .ico { width: 28px; height: 28px; margin-bottom: 8px; color: var(--text-3); }

/* Editor */
.editor { display: grid; grid-template-columns: auto 1fr; height: 600px; background: #070708; font-family: var(--mono); font-size: 13px; line-height: 20px; }
.editor .numeros { padding: 12px 10px 12px 14px; text-align: right; color: var(--text-3); user-select: none; overflow: hidden; border-right: 1px solid var(--border-subtle); white-space: pre; min-width: 52px; }
.editor textarea { margin: 0; padding: 12px 16px; border: 0; outline: 0; resize: none; background: transparent; color: #e4e4e7; font: inherit; line-height: inherit; white-space: pre; overflow: auto; tab-size: 4; }
.editor-aviso { padding: 40px 20px; text-align: center; color: var(--text-2); }
.sujo { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--warn); }

/* Gráficos */
.graficos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grafico { position: relative; padding: 16px; }
.grafico h3 { margin: 0 0 4px; font-size: 14px; font-weight: 600; }
.grafico .agora { font-family: var(--mono); color: var(--text-2); font-size: 12px; margin-bottom: 10px; }
.grafico svg { width: 100%; height: 200px; display: block; overflow: visible; }
.grafico .eixo { stroke: rgba(255,255,255,.06); }
.grafico .rotulo-eixo { fill: var(--text-3); font-size: 10px; font-family: var(--mono); }
.dica { position: absolute; pointer-events: none; padding: 6px 9px; border-radius: var(--r); background: var(--surface-3); border: 1px solid var(--border-strong); font-family: var(--mono); font-size: 12px; white-space: nowrap; transform: translate(-50%, -110%); opacity: 0; transition: opacity var(--t-fast); }
.dica.visivel { opacity: 1; }

/* Registro */
.registro { margin: 0; padding: 0; list-style: none; }
.registro li { display: grid; grid-template-columns: 170px 1fr; gap: 14px; padding: 11px 16px; border-bottom: 1px solid var(--border-subtle); font-size: 13px; }
.registro li:last-child { border-bottom: 0; }
.registro .quando { font-family: var(--mono); font-size: 12px; color: var(--text-3); }
.registro li.negado .acao { color: var(--bad); font-weight: 600; }

/* Skeleton screen */
.esq { position: relative; overflow: hidden; background: var(--surface-2); border-radius: var(--r); }
.esq::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.05), transparent); animation: varre 1.4s infinite; }
@keyframes varre { to { transform: translateX(100%); } }
.esq.linha { height: 12px; margin: 6px 0; }
.esq.titulo { height: 18px; width: 50%; }
.esq.curto { width: 35%; }
.esq.medio { width: 60%; }
.esq.bloco { height: 40px; width: 40px; border-radius: var(--r); flex: none; }
.esq.grande { height: 28px; width: 45%; margin-top: 4px; }
.esq.area { height: 200px; }
.app.esqueleto { pointer-events: none; }

/* Modais e toasts */
.fundo-modal { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.65); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 24px; opacity: 0; transition: opacity var(--t) var(--ease); }
.fundo-modal.aberto { opacity: 1; }
.modal { width: 100%; max-width: 420px; background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--r-lg); transform: translateY(10px) scale(.98); transition: transform var(--t) var(--ease); box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.fundo-modal.aberto .modal { transform: none; }
.modal-corpo { padding: 22px 22px 6px; }
.modal-corpo h2 { margin: 0 0 6px; font-size: 16px; }
.modal-corpo p { margin: 0; color: var(--text-2); }
.modal-rodape { display: flex; justify-content: flex-end; gap: 8px; padding: 18px 22px; }
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: flex; flex-direction: column; gap: 8px; }
.toast { display: flex; align-items: center; gap: 10px; min-width: 280px; max-width: 400px; padding: 12px 14px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--border); box-shadow: 0 10px 30px rgba(0,0,0,.5); animation: sobe var(--t-slow) var(--ease); }
.toast.ok { border-color: var(--ok-borda); } .toast.ok .ico { color: var(--ok); }
.toast.bad { border-color: var(--bad-borda); } .toast.bad .ico { color: var(--bad); }
@keyframes gira { to { transform: rotate(360deg); } }

/* Responsivo */
@media (max-width: 1100px) { .graficos { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
  .casca { grid-template-columns: 1fr; }
  .lateral { position: fixed; left: 0; top: 0; z-index: 40; width: var(--lateral); transform: translateX(-100%); transition: transform var(--t) var(--ease); }
  .lateral.aberta { transform: none; box-shadow: 20px 0 60px rgba(0,0,0,.6); }
  .barra-movel { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--border-subtle); position: sticky; top: 0; z-index: 30; background: rgba(5,5,5,.85); backdrop-filter: blur(12px); }
  .barra-movel img { width: 28px; height: 28px; border-radius: 8px; }
  .pagina { padding: 20px 16px 40px; }
  .det-metricas { grid-template-columns: 1fr; }
  .lista-arq li { grid-template-columns: 24px 1fr 80px; }
  .lista-arq .data { display: none; }
  .registro li { grid-template-columns: 1fr; gap: 2px; }
  .editor { height: 460px; }
  .terminal pre { height: 420px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
}
