/* Central de E-mails · Rede Confiança */
:root {
  --laranja: #ff7a00; --laranja-esc: #e66e00; --rosa: #d62185; --roxo: #571381; --azul: #1a1a2e;
  --grad: linear-gradient(135deg, #d62185 0%, #ff7a00 100%);
  --grad-suave: linear-gradient(135deg, rgba(214,33,133,.10), rgba(255,122,0,.12));
  --fundo: #f4f2f9; --cartao: #ffffff; --texto: #1a1a2e; --texto-2: #5d5d7a; --texto-3: #8f8fab;
  --borda: rgba(26,26,46,.09); --hover: rgba(26,26,46,.045);
  --ok: #17a673; --ok-fundo: rgba(23,166,115,.12); --alerta: #e8a300; --alerta-fundo: rgba(232,163,0,.14);
  --erro: #e5484d; --erro-fundo: rgba(229,72,77,.12);
  --raio: 20px; --raio-p: 12px;
  --sombra: 0 12px 32px -14px rgba(26,26,46,.22), 0 2px 6px -2px rgba(26,26,46,.06);
  --sombra-forte: 0 30px 80px -24px rgba(26,26,46,.45);
  --ease: cubic-bezier(.22,.9,.3,1);
  color-scheme: light;
}
[data-tema="escuro"] {
  --fundo: #11111d; --cartao: #1b1b2d; --texto: #f1f0f7; --texto-2: #b3b2cc; --texto-3: #7d7c9a;
  --borda: rgba(255,255,255,.08); --hover: rgba(255,255,255,.05);
  --sombra: 0 12px 32px -14px rgba(0,0,0,.6); color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: Montserrat, system-ui, sans-serif; background: var(--fundo); color: var(--texto); font-size: 14px; -webkit-font-smoothing: antialiased; transition: background .3s var(--ease), color .3s var(--ease); }
[hidden] { display: none !important; }
a { color: var(--laranja-esc); text-decoration: none; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -.02em; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: rgba(255,122,0,.25); }
* { scrollbar-width: thin; scrollbar-color: rgba(26,26,46,.2) transparent; }
::-webkit-scrollbar { width: 8px; height: 8px; } ::-webkit-scrollbar-thumb { background: rgba(127,127,160,.3); border-radius: 8px; }

@keyframes sobe { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes surge { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: scale(.95) translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes desliza { from { transform: translateX(100%); } to { transform: none; } }
@keyframes flutua { 0%,100% { transform: translate(0,0) scale(1); } 33% { transform: translate(4%,-6%) scale(1.1); } 66% { transform: translate(-5%,4%) scale(.95); } }
@keyframes brilho { from { left: -60%; } to { left: 130%; } }
@keyframes gira { to { transform: rotate(360deg); } }
@keyframes shimmer { from { background-position: -400px 0; } to { background-position: 400px 0; } }
@keyframes pulso { 0% { box-shadow: 0 0 0 0 currentColor; } 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@keyframes onda { to { transform: scale(4); opacity: 0; } }
@keyframes cresce { from { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

i[data-i] { display: inline-flex; width: 20px; height: 20px; flex: none; }
i[data-i] svg { width: 100%; height: 100%; }

/* ---------- Botões ---------- */
.btn { --c: var(--texto); position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: var(--raio-p); padding: 10px 18px; font-weight: 600; cursor: pointer; background: var(--hover); color: var(--c);
  transition: transform .18s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), opacity .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); background: rgba(127,127,160,.14); }
.btn:active { transform: translateY(0) scale(.97); }
.btn:disabled { opacity: .5; pointer-events: none; }
.btn i[data-i] { width: 18px; height: 18px; }
.btn-grad { background: var(--grad); color: #fff; box-shadow: 0 10px 22px -10px rgba(214,33,133,.75); }
.btn-grad:hover { background: var(--grad); box-shadow: 0 14px 28px -10px rgba(255,122,0,.8); }
.btn-grad::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.4), transparent); transform: skewX(-20deg); opacity: 0; }
.btn-grad:hover::after { opacity: 1; animation: brilho .8s var(--ease); }
.btn-perigo { background: var(--erro-fundo); color: var(--erro); }
.btn-perigo:hover { background: var(--erro); color: #fff; }
.btn-contorno { background: transparent; box-shadow: inset 0 0 0 1.5px var(--borda); }
.btn-bloco { width: 100%; padding: 13px; font-size: 15px; }
.btn-p { padding: 7px 12px; font-size: 13px; border-radius: 10px; }
.btn.carregando > * { opacity: 0; } .btn.carregando::before { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: gira .7s linear infinite; }
.icone-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 0; background: transparent; color: var(--texto-2); cursor: pointer; transition: background .2s, color .2s, transform .2s var(--ease); }
.icone-btn:hover { background: var(--hover); color: var(--laranja); transform: translateY(-1px); }
.icone-btn.pequeno { width: 32px; height: 32px; } .icone-btn.girando i { animation: gira .8s var(--ease); }
.onda { position: absolute; border-radius: 50%; transform: scale(0); background: rgba(255,255,255,.45); pointer-events: none; animation: onda .6s var(--ease) forwards; }

/* ---------- Campos ---------- */
.campo { display: grid; gap: 6px; margin-bottom: 14px; }
.campo > span { font-size: 12px; font-weight: 600; color: var(--texto-2); text-transform: uppercase; letter-spacing: .06em; }
.campo small { color: var(--texto-3); font-size: 12px; }
.entrada, .campo input, .campo select, .campo textarea {
  width: 100%; padding: 11px 14px; border-radius: var(--raio-p); border: 1.5px solid var(--borda); background: var(--cartao); outline: none;
  transition: border-color .2s, box-shadow .2s, transform .2s var(--ease); }
.entrada:hover, .campo input:hover, .campo select:hover, .campo textarea:hover { border-color: rgba(127,127,160,.4); }
.entrada:focus, .campo input:focus, .campo select:focus, .campo textarea:focus { border-color: var(--laranja); box-shadow: 0 0 0 4px rgba(255,122,0,.15); }
.campo textarea { min-height: 120px; resize: vertical; }
.campo-senha { position: relative; } .campo-senha input { padding-right: 46px; }
.olho { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border: 0; background: transparent; border-radius: 10px; cursor: pointer; color: var(--texto-3); display: grid; place-items: center; }
.olho:hover { color: var(--laranja); background: var(--hover); }
.sufixo { display: flex; align-items: stretch; } .sufixo input { border-radius: var(--raio-p) 0 0 var(--raio-p); }
.sufixo em { font-style: normal; display: flex; align-items: center; padding: 0 12px; border: 1.5px solid var(--borda); border-left: 0; border-radius: 0 var(--raio-p) var(--raio-p) 0; background: var(--hover); color: var(--texto-2); font-weight: 500; }
.linha-campos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.busca { position: relative; flex: 1 1 240px; min-width: 220px; max-width: 360px; } .busca i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--texto-3); width: 18px; height: 18px; }
.busca input { padding-left: 40px; border-radius: 999px; }
.forca { height: 6px; border-radius: 6px; background: var(--hover); overflow: hidden; margin-top: 2px; } .forca b { display: block; height: 100%; width: 0; border-radius: 6px; transition: width .35s var(--ease), background .35s; }

/* Chave liga/desliga */
.chave { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; font-weight: 500; }
.chave input { appearance: none; width: 44px; height: 26px; border-radius: 999px; background: rgba(127,127,160,.3); position: relative; cursor: pointer; transition: background .25s; margin: 0; flex: none; }
.chave input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.25); transition: transform .3s var(--ease); }
.chave input:checked { background: var(--grad); } .chave input:checked::after { transform: translateX(18px); }

/* Pílulas de filtro */
.pilulas { display: flex; gap: 6px; flex-wrap: wrap; }
.pilula { border: 0; padding: 8px 14px; border-radius: 999px; background: var(--hover); color: var(--texto-2); font-weight: 600; font-size: 13px; cursor: pointer; transition: all .25s var(--ease); }
.pilula:hover { color: var(--texto); transform: translateY(-1px); }
.pilula.ativa { background: var(--azul); color: #fff; box-shadow: 0 8px 18px -10px rgba(26,26,46,.8); }
[data-tema="escuro"] .pilula.ativa { background: var(--grad); }
.pilula b { margin-left: 6px; opacity: .7; font-weight: 700; }

/* ---------- Login ---------- */
.login { position: fixed; inset: 0; display: grid; place-items: center; overflow: hidden; padding: 24px;
  background: radial-gradient(circle at 15% 0%, #3a1d5c 0, transparent 50%), linear-gradient(160deg, #1a1a2e 0%, #1f1735 55%, #2c1446 100%); }
.login-blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; animation: flutua 18s ease-in-out infinite; pointer-events: none; }
.login-blob.b1 { width: 48vmax; height: 48vmax; left: -14vmax; top: -18vmax; background: #d62185; }
.login-blob.b2 { width: 42vmax; height: 42vmax; right: -14vmax; bottom: -16vmax; background: #ff7a00; animation-delay: -6s; }
.login-blob.b3 { width: 26vmax; height: 26vmax; right: 18%; top: 10%; background: #571381; animation-delay: -12s; opacity: .45; }
.login-card { position: relative; z-index: 1; width: min(420px, 100%); display: grid; gap: 26px; justify-items: center; }
.login-logo { width: 240px; animation: sobe .8s var(--ease) both; filter: drop-shadow(0 10px 30px rgba(0,0,0,.35)); }
.login-caixa { width: 100%; padding: 34px 32px 28px; border-radius: 26px; background: rgba(255,255,255,.95); color: #1a1a2e; backdrop-filter: blur(16px);
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.6); border: 1px solid rgba(255,255,255,.6); animation: pop .8s var(--ease) .1s both; }
.login-caixa h1 { font-size: 24px; font-weight: 800; }
.login-caixa .sub { margin: 6px 0 24px; color: #5d5d7a; }
.login-caixa .campo input { background: #fff; color: #1a1a2e; }
.login-erro { min-height: 20px; color: var(--erro); font-weight: 600; font-size: 13px; margin: 0 0 10px; }
.login-erro.treme { animation: treme .4s; } @keyframes treme { 20%,60% { transform: translateX(-6px); } 40%,80% { transform: translateX(6px); } }
.login-rodape { color: rgba(255,255,255,.55); font-size: 12px; letter-spacing: .06em; margin: 0; animation: surge 1s ease .6s both; }
.login .btn-grad::after { opacity: 1; animation: brilho 2.8s var(--ease) 1.2s infinite; }

/* ---------- Estrutura ---------- */
.app { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.lateral { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 22px 14px; color: #fff; z-index: 20;
  background: linear-gradient(180deg, #1a1a2e 0%, #1c1a33 60%, #2a1740 100%); }
.lateral::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 3px; background: var(--grad); }
.marca { display: block; padding: 6px 10px 26px; } .marca img { width: 170px; display: block; }
.nav { display: grid; gap: 4px; }
.nav-titulo { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: rgba(255,255,255,.35); padding: 16px 14px 6px; font-weight: 700; }
.nav-item { position: relative; display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 14px; color: rgba(255,255,255,.7); font-weight: 600; transition: background .25s var(--ease), color .25s, transform .25s var(--ease); }
.nav-item:hover { background: rgba(255,255,255,.07); color: #fff; transform: translateX(3px); }
.nav-item.ativo { color: #fff; background: linear-gradient(90deg, rgba(214,33,133,.28), rgba(255,122,0,.18)); box-shadow: inset 3px 0 0 var(--laranja); }
.nav-item.ativo i { color: var(--laranja); }
.nav-item .conta { margin-left: auto; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--grad); color: #fff; }
.lateral-rodape { margin-top: auto; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.08); }
.principal { min-width: 0; display: flex; flex-direction: column; }
.topo { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 16px; padding: 18px 32px; background: color-mix(in srgb, var(--fundo) 82%, transparent); backdrop-filter: blur(14px); }
.topo-titulo { flex: 1; min-width: 0; } .topo-titulo h2 { font-size: 24px; font-weight: 800; } .topo-titulo p { margin: 2px 0 0; color: var(--texto-3); font-size: 13px; }
.topo-acoes { display: flex; align-items: center; gap: 6px; }
.usuario-chip { display: flex; align-items: center; gap: 10px; padding: 4px 4px 4px 4px; margin-left: 6px; border-radius: 999px; background: var(--cartao); box-shadow: var(--sombra); font-weight: 600; }
.usuario-chip #usuario-nome { padding-right: 2px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 13px; background: var(--grad); flex: none; text-transform: uppercase; }
.vista { padding: 8px 32px 48px; }
.vista > * { animation: sobe .5s var(--ease) both; }
.vista > *:nth-child(2) { animation-delay: .05s; } .vista > *:nth-child(3) { animation-delay: .1s; } .vista > *:nth-child(4) { animation-delay: .15s; } .vista > *:nth-child(5) { animation-delay: .2s; }
.so-celular { display: none; }

/* ---------- Cartões e grades ---------- */
.cartao { background: var(--cartao); border-radius: var(--raio); box-shadow: var(--sombra); padding: 22px; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.cartao-titulo { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.cartao-titulo h3 { font-size: 16px; font-weight: 700; }
.cartao-titulo p { margin: 2px 0 0; color: var(--texto-3); font-size: 13px; }
.grade { display: grid; gap: 18px; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-bottom: 18px; }
.kpi { position: relative; overflow: hidden; }
.kpi:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -18px rgba(26,26,46,.35); }
.kpi .rot { display: flex; align-items: center; gap: 8px; color: var(--texto-2); font-weight: 600; font-size: 13px; }
.kpi .rot i { width: 34px; height: 34px; padding: 8px; border-radius: 11px; background: var(--grad-suave); color: var(--laranja); }
.kpi .val { font-size: 30px; font-weight: 800; margin-top: 14px; letter-spacing: -.03em; }
.kpi .det { color: var(--texto-3); font-size: 12.5px; margin-top: 2px; }
.kpi::after { content: ""; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%; background: var(--grad); opacity: .07; transition: transform .5s var(--ease); }
.kpi:hover::after { transform: scale(1.4); }
.kpi.destaque { background: var(--grad); color: #fff; } .kpi.destaque .rot, .kpi.destaque .det { color: rgba(255,255,255,.85); } .kpi.destaque .rot i { background: rgba(255,255,255,.2); color: #fff; } .kpi.destaque::after { background: #fff; opacity: .12; }
.duas { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; margin-bottom: 18px; }
.barra-ferramentas { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.barra-ferramentas .espaco { flex: 1; }

/* Barras de uso */
.uso { height: 8px; border-radius: 8px; background: var(--hover); overflow: hidden; }
.uso b { display: block; height: 100%; border-radius: 8px; background: var(--grad); transform-origin: left; animation: cresce .9s var(--ease) both; }
.uso.cheio b { background: linear-gradient(90deg, #e5484d, #d62185); }
.uso.alerta b { background: linear-gradient(90deg, #ff7a00, #e8a300); }
.maiores { display: grid; gap: 14px; }
.maior { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; }
.maior .nome { font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .maior .nome small { color: var(--texto-3); font-weight: 500; }
.maior .num { font-weight: 700; font-size: 13px; color: var(--texto-2); }

/* Rosca */
.rosca { display: grid; place-items: center; position: relative; }
.rosca svg { width: 180px; height: 180px; transform: rotate(-90deg); }
.rosca circle { fill: none; stroke-width: 16; }
.rosca .trilho { stroke: var(--hover); }
.rosca .valor { stroke: url(#gradRosca); stroke-linecap: round; transition: stroke-dashoffset 1.2s var(--ease); }
.rosca .centro { position: absolute; text-align: center; } .rosca .centro b { display: block; font-size: 28px; font-weight: 800; } .rosca .centro span { color: var(--texto-3); font-size: 12px; }
.legenda { display: grid; gap: 8px; margin-top: 16px; } .legenda div { display: flex; justify-content: space-between; color: var(--texto-2); font-size: 13px; } .legenda b { color: var(--texto); }

/* Status */
.servicos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.servico { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--hover); font-weight: 600; font-size: 13px; }
.ponto { width: 9px; height: 9px; border-radius: 50%; flex: none; color: var(--ok); background: currentColor; animation: pulso 2s infinite; }
.ponto.off { color: var(--erro); } .ponto.parado { animation: none; color: var(--texto-3); }
.selo { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.selo.ok { background: var(--ok-fundo); color: var(--ok); } .selo.erro { background: var(--erro-fundo); color: var(--erro); }
.selo.alerta { background: var(--alerta-fundo); color: #b07a00; } .selo.neutro { background: var(--hover); color: var(--texto-2); }
.selo.marca { background: var(--grad-suave); color: var(--laranja-esc); }
[data-tema="escuro"] .selo.alerta { color: #ffc940; }

/* ---------- Lista de contas ---------- */
.lista { display: grid; gap: 10px; }
.linha { display: grid; grid-template-columns: 44px minmax(180px, 1.6fr) minmax(150px, 1.2fr) minmax(110px, .8fr) auto; align-items: center; gap: 16px;
  padding: 14px 18px; border-radius: 18px; background: var(--cartao); box-shadow: var(--sombra); cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease); animation: sobe .45s var(--ease) both; }
.linha:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -18px rgba(26,26,46,.4); }
.linha .avatar { width: 44px; height: 44px; font-size: 15px; border-radius: 14px; }
.linha .quem { min-width: 0; } .linha .quem b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .linha .quem span { color: var(--texto-3); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.linha .usado-txt { display: flex; justify-content: space-between; font-size: 12px; color: var(--texto-3); margin-bottom: 6px; } .linha .usado-txt b { color: var(--texto); }
.linha .ult { font-size: 12px; color: var(--texto-3); }
.linha.bloqueada { opacity: .7; } .linha.bloqueada .avatar { background: #8f8fab; }
.vazio { text-align: center; padding: 56px 20px; color: var(--texto-3); }
.vazio i { width: 64px; height: 64px; padding: 16px; border-radius: 22px; background: var(--grad-suave); color: var(--laranja); margin-bottom: 14px; }
.vazio h4 { color: var(--texto); font-size: 17px; margin-bottom: 4px; }

/* Esqueleto de carregamento */
.esqueleto { border-radius: 18px; height: 72px; background: linear-gradient(90deg, var(--hover) 0, rgba(127,127,160,.16) 50%, var(--hover) 100%); background-size: 800px 100%; animation: shimmer 1.3s linear infinite; }

/* Tabelas */
.tabela { width: 100%; border-collapse: separate; border-spacing: 0 6px; }
.tabela th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--texto-3); font-weight: 700; padding: 4px 14px; }
.tabela td { padding: 12px 14px; background: var(--hover); } .tabela td:first-child { border-radius: 14px 0 0 14px; } .tabela td:last-child { border-radius: 0 14px 14px 0; }
.tabela tr { animation: sobe .4s var(--ease) both; } .tabela tbody tr:hover td { background: rgba(255,122,0,.07); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; }

/* Migração */
.progresso-grande { height: 14px; border-radius: 14px; background: var(--hover); overflow: hidden; margin: 14px 0 8px; display: flex; }
.progresso-grande b { height: 100%; transition: width 1s var(--ease); } .progresso-grande .p-ok { background: var(--grad); } .progresso-grande .p-run { background: repeating-linear-gradient(45deg, #ff7a00 0 10px, #ffa149 10px 20px); background-size: 28px 28px; animation: shimmer 1s linear infinite; } .progresso-grande .p-erro { background: var(--erro); }

/* DNS */
.dns-item { display: grid; grid-template-columns: 40px 90px 1fr 1fr; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 16px; background: var(--hover); margin-bottom: 8px; animation: sobe .4s var(--ease) both; }
.dns-item .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; }
.dns-item .ic.ok { background: var(--ok-fundo); color: var(--ok); } .dns-item .ic.pend { background: var(--alerta-fundo); color: #b07a00; }
.dns-item small { display: block; color: var(--texto-3); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; margin-bottom: 2px; }
.dns-item code { font-size: 12.5px; word-break: break-all; }

/* Registros */
.log { background: #12121f; color: #d6d5e8; border-radius: 18px; padding: 16px 18px; max-height: 64vh; overflow: auto; font-family: ui-monospace, Menlo, monospace; font-size: 12px; line-height: 1.65; }
.log div { white-space: pre-wrap; word-break: break-all; padding: 1px 0; border-radius: 4px; }
.log .l-ok { color: #4ade9b; } .log .l-erro { color: #ff7b7f; } .log .l-adiado { color: #ffc940; } .log .l-auth { color: #ffa149; }
.log mark { background: rgba(255,122,0,.35); color: #fff; border-radius: 3px; }
.linha-tempo { display: grid; gap: 4px; }
.evento { display: grid; grid-template-columns: 14px 1fr auto; gap: 14px; padding: 12px 6px; align-items: start; animation: sobe .35s var(--ease) both; }
.evento .bola { width: 12px; height: 12px; border-radius: 50%; margin-top: 4px; background: var(--grad); box-shadow: 0 0 0 4px rgba(255,122,0,.12); }
.evento .bola.perigo { background: var(--erro); box-shadow: 0 0 0 4px var(--erro-fundo); }
.evento b { font-weight: 700; } .evento p { margin: 2px 0 0; color: var(--texto-3); font-size: 13px; } .evento time { color: var(--texto-3); font-size: 12px; white-space: nowrap; }

/* ---------- Gaveta e janela ---------- */
.camada { position: fixed; inset: 0; z-index: 50; background: rgba(17,17,29,.5); backdrop-filter: blur(4px); animation: surge .25s both; }
.gaveta { position: fixed; top: 0; right: 0; bottom: 0; z-index: 60; width: min(560px, 100%); background: var(--cartao); box-shadow: var(--sombra-forte);
  display: flex; flex-direction: column; animation: desliza .45s var(--ease) both; border-radius: 26px 0 0 26px; overflow: hidden; }
.gaveta.saindo { animation: desliza .3s var(--ease) reverse both; }
.gaveta-topo { padding: 26px 26px 0; background: var(--grad-suave); }
.gaveta-topo .ident { display: flex; gap: 16px; align-items: center; }
.gaveta-topo .avatar { width: 60px; height: 60px; border-radius: 20px; font-size: 22px; }
.gaveta-topo h3 { font-size: 20px; } .gaveta-topo p { margin: 2px 0 0; color: var(--texto-2); }
.gaveta-topo .fechar { margin-left: auto; align-self: flex-start; }
.abas { display: flex; gap: 4px; margin-top: 20px; overflow-x: auto; scrollbar-width: none; } .abas::-webkit-scrollbar { display: none; }
.aba { border: 0; background: transparent; padding: 12px 14px; font-weight: 600; color: var(--texto-2); cursor: pointer; position: relative; white-space: nowrap; }
.aba::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--grad); transform: scaleX(0); transition: transform .3s var(--ease); }
.aba.ativa { color: var(--texto); } .aba.ativa::after { transform: none; }
.gaveta-corpo { flex: 1; overflow: auto; padding: 24px 26px 30px; }
.gaveta-corpo > * { animation: sobe .35s var(--ease) both; }
.secao { margin-bottom: 22px; } .secao h4 { font-size: 14px; margin-bottom: 4px; } .secao > p { margin: 0 0 12px; color: var(--texto-3); font-size: 13px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 8px 7px 12px; border-radius: 999px; background: var(--hover); font-size: 13px; font-weight: 500; animation: pop .3s var(--ease) both; }
.chip button { width: 22px; height: 22px; border-radius: 50%; border: 0; background: transparent; cursor: pointer; color: var(--texto-3); display: grid; place-items: center; }
.chip button:hover { background: var(--erro-fundo); color: var(--erro); }
.chip button i { width: 14px; height: 14px; }
.cotas-rapidas { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.zona-perigo { border: 1.5px dashed rgba(229,72,77,.4); border-radius: 18px; padding: 18px; }
.janela { position: fixed; z-index: 60; left: 50%; top: 50%; width: min(520px, calc(100% - 32px)); max-height: calc(100% - 40px); overflow: auto; transform: translate(-50%, -50%);
  background: var(--cartao); border-radius: 26px; box-shadow: var(--sombra-forte); padding: 28px; animation: popc .4s var(--ease) both; }
@keyframes popc { from { opacity: 0; transform: translate(-50%, -46%) scale(.95); } to { opacity: 1; transform: translate(-50%, -50%); } }
.janela h3 { font-size: 20px; margin-bottom: 4px; } .janela > p { color: var(--texto-3); margin: 0 0 20px; }
.janela .acoes { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }

/* Avisos */
.toasts { position: fixed; right: 22px; bottom: 22px; z-index: 80; display: grid; gap: 10px; }
.toast { display: flex; align-items: center; gap: 12px; min-width: 280px; max-width: 420px; padding: 14px 16px; border-radius: 16px; background: var(--azul); color: #fff; font-weight: 500;
  box-shadow: var(--sombra-forte); animation: toastEntra .45s var(--ease) both; position: relative; overflow: hidden; }
.toast i { width: 22px; height: 22px; color: var(--laranja); } .toast.erro i { color: #ff7b7f; }
.toast::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--grad); transform-origin: left; animation: encolhe 4.2s linear both; }
.toast.erro::after { background: #e5484d; }
.toast.sai { animation: toastSai .35s var(--ease) both; }
@keyframes toastEntra { from { opacity: 0; transform: translateY(20px) scale(.96); } } @keyframes toastSai { to { opacity: 0; transform: translateX(30px); } } @keyframes encolhe { to { transform: scaleX(0); } }

/* ---------- Responsivo ---------- */
@media (max-width: 1200px) { .kpis { grid-template-columns: repeat(2, 1fr); } .duas { grid-template-columns: 1fr; } .linha { grid-template-columns: 44px 1fr 1fr auto; } .linha .ult { display: none; } }
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .lateral { position: fixed; left: 0; width: 270px; transform: translateX(-105%); transition: transform .4s var(--ease); }
  .lateral.aberta { transform: none; box-shadow: var(--sombra-forte); }
  .so-celular { display: inline-grid; }
  .topo { padding: 14px 16px; } .vista { padding: 4px 16px 40px; } .topo-titulo h2 { font-size: 20px; }
  .usuario-chip #usuario-nome { display: none; }
  .servicos { grid-template-columns: repeat(2, 1fr); } .dns-item { grid-template-columns: 40px 1fr; } .dns-item > :nth-child(n+3) { grid-column: 2; }
  .linha { grid-template-columns: 44px 1fr auto; } .linha .uso-col { grid-column: 2 / -1; }
  .gaveta { border-radius: 0; } .linha-campos { grid-template-columns: 1fr; }
  .tabela-wrap { overflow-x: auto; }
}
@media (max-width: 560px) { .kpis { grid-template-columns: 1fr; } .kpi .val { font-size: 26px; } }
