/* Gateway do Cérebro - visual dos apps Up (tokens, Inter, claro/escuro), versão painel moderno. */
:root {
  --bg: #f4f5fa; --surface: #ffffff; --surface-2: #f2f3f9; --surface-3: #e9ebf3; --border: #e2e5ee; --hover: #f0f1f8;
  --text: #141824; --muted: #636b7e; --faint: #9aa1b2;
  --accent: #5046e5; --accent-2: #8b3dff; --accent-soft: #eeedfd; --accent-text: #4338ca;
  --ok: #15803d; --ok-soft: #e4f5ea; --warn: #b45309; --warn-soft: #fdf0dc;
  --off: #6b7280; --off-soft: #eef0f3; --bad: #c0262d; --bad-soft: #fde8e8; --info: #0e7490; --info-soft: #e0f4f7;
  --shadow: 0 1px 2px rgba(16,24,40,.04), 0 4px 12px -4px rgba(16,24,40,.08);
  --shadow-hover: 0 14px 30px -12px rgba(80,70,229,.35);
  --shadow-lg: 0 24px 60px -20px rgba(16,24,40,.35);
  --radius: 16px; --radius-sm: 10px;
  --side: #ffffff; --side-text: #3b4253;
  /* degradê fixo nos dois temas: texto branco sempre legível */
  --grad: linear-gradient(135deg, #5046e5, #8b3dff);
  --glow: rgba(80,70,229,.08); --glow-2: rgba(139,61,255,.06);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c0f16; --surface: #141822; --surface-2: #1a1f2b; --surface-3: #222836; --border: #262d3c; --hover: #1d2330;
    --text: #e9edf6; --muted: #98a2b6; --faint: #6b7487;
    --accent: #8b93ff; --accent-2: #b98cff; --accent-soft: rgba(139,147,255,.14); --accent-text: #aab0ff;
    --ok: #4ade80; --ok-soft: rgba(74,222,128,.12); --warn: #fbbf24; --warn-soft: rgba(251,191,36,.12);
    --off: #9ca3af; --off-soft: rgba(156,163,175,.12); --bad: #f87171; --bad-soft: rgba(248,113,113,.13); --info: #5ad1e6; --info-soft: rgba(90,209,230,.12);
    --shadow: inset 0 1px 0 rgba(255,255,255,.03), 0 8px 24px -14px rgba(0,0,0,.8);
    --shadow-hover: 0 14px 34px -14px rgba(139,147,255,.45); --shadow-lg: 0 30px 70px -20px rgba(0,0,0,.85);
    --side: #10141d; --side-text: #c4cad8;
    --glow: rgba(139,147,255,.10); --glow-2: rgba(185,140,255,.07);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0c0f16; --surface: #141822; --surface-2: #1a1f2b; --surface-3: #222836; --border: #262d3c; --hover: #1d2330;
  --text: #e9edf6; --muted: #98a2b6; --faint: #6b7487;
  --accent: #8b93ff; --accent-2: #b98cff; --accent-soft: rgba(139,147,255,.14); --accent-text: #aab0ff;
  --ok: #4ade80; --ok-soft: rgba(74,222,128,.12); --warn: #fbbf24; --warn-soft: rgba(251,191,36,.12);
  --off: #9ca3af; --off-soft: rgba(156,163,175,.12); --bad: #f87171; --bad-soft: rgba(248,113,113,.13); --info: #5ad1e6; --info-soft: rgba(90,209,230,.12);
  --shadow: inset 0 1px 0 rgba(255,255,255,.03), 0 8px 24px -14px rgba(0,0,0,.8);
  --shadow-hover: 0 14px 34px -14px rgba(139,147,255,.45); --shadow-lg: 0 30px 70px -20px rgba(0,0,0,.85);
  --side: #10141d; --side-text: #c4cad8;
  --glow: rgba(139,147,255,.10); --glow-2: rgba(185,140,255,.07);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 14px; line-height: 1.5;
  color: var(--text); background: var(--bg); min-height: 100vh; -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; }
code, .mono { font-family: "Cascadia Code", Consolas, monospace; font-size: 12.5px; }
.oculto { display: none !important; }
svg { flex-shrink: 0; }
::selection { background: var(--accent-soft); }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); border-radius: var(--radius-sm); padding: 8px 14px;
  font: inherit; font-weight: 600; font-size: 13px; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, box-shadow .2s, transform .06s, color .15s;
}
.btn:hover { background: var(--hover); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn:focus-visible, .nav-item:focus-visible, .seg button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn.primario { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 6px 18px -8px rgba(80,70,229,.6); }
.btn.primario:hover { box-shadow: var(--shadow-hover); filter: brightness(1.05); }
.btn.ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 30%, var(--border)); background: var(--ok-soft); }
.btn.ok:hover { background: color-mix(in srgb, var(--ok) 18%, transparent); }
.btn.perigo { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 30%, var(--border)); }
.btn.perigo:hover { background: var(--bad-soft); }
.btn.fantasma { border-color: transparent; background: transparent; color: var(--muted); }
.btn.fantasma:hover { background: var(--hover); color: var(--text); }
.btn.pequeno { padding: 6px 11px; font-size: 12.5px; border-radius: 9px; }
.btn.icone { padding: 8px; }
.btn.girando svg { animation: girar .8s linear infinite; }
@keyframes girar { to { transform: rotate(360deg); } }

/* ---------- formulário ---------- */
label.campo { display: flex; flex-direction: column; gap: 7px; font-weight: 600; font-size: 13px; margin-bottom: 16px; }
input[type=password], input[type=text], input[type=search], select, textarea {
  font: inherit; color: var(--text); background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 10px 12px; outline: none; transition: border-color .15s, box-shadow .15s, background .15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); background: var(--surface); }
.erro { display: flex; gap: 8px; align-items: flex-start; color: var(--bad); background: var(--bad-soft); border-radius: var(--radius-sm); padding: 10px 12px; font-size: 13px; margin-bottom: 16px; }
.dica { color: var(--muted); font-size: 12.5px; }

/* ===================== LOGIN ===================== */
.login { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.login-arte {
  position: relative; overflow: hidden; color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between;
  background: radial-gradient(800px 500px at 0% 0%, #6d5cff 0%, transparent 60%), radial-gradient(700px 600px at 100% 100%, #a43dff 0%, transparent 55%), #1b1650;
}
.login-arte::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .18;
  background-image: linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(500px 400px at 30% 40%, #000, transparent);
}
.login-arte > * { position: relative; z-index: 1; }
.login-marca { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 16px; }
.login-marca .logo { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); backdrop-filter: blur(8px); }
.login-titulo { max-width: 460px; }
.login-titulo h1 { font-size: 40px; line-height: 1.1; letter-spacing: -.03em; margin: 0 0 14px; }
.login-titulo p { font-size: 16px; color: rgba(255,255,255,.78); margin: 0 0 28px; }
.login-lista { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.login-lista li { display: flex; gap: 12px; align-items: flex-start; color: rgba(255,255,255,.88); }
.login-lista .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); }
.login-lista b { display: block; color: #fff; }
.login-lista span { font-size: 13px; color: rgba(255,255,255,.7); }
.login-rodape { font-size: 12.5px; color: rgba(255,255,255,.6); }
.escudo { position: absolute; right: -60px; bottom: 40px; width: 360px; height: 360px; opacity: .14; animation: flutuar 8s ease-in-out infinite; z-index: 0 !important; }
@keyframes flutuar { 50% { transform: translateY(-14px) rotate(-2deg); } }
.login-form { display: grid; place-items: center; padding: 32px; position: relative; }
.login-form .tema-canto { position: absolute; top: 20px; right: 20px; }
.caixa { width: 100%; max-width: 380px; animation: subir .35s ease-out; }
.caixa h2 { font-size: 24px; letter-spacing: -.02em; margin: 0 0 6px; }
.caixa .sub { color: var(--muted); margin: 0 0 26px; }
.caixa input { width: 100%; }
.caixa .btn.primario { width: 100%; padding: 11px; font-size: 14px; }
.campo-senha { position: relative; }
.campo-senha input { padding-right: 42px; }
.campo-senha button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); }
@keyframes subir { from { opacity: 0; transform: translateY(8px); } }

/* ===================== SHELL ===================== */
.shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.lateral {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 6px; padding: 20px 14px;
  background: var(--side); border-right: 1px solid var(--border);
}
.marca { display: flex; align-items: center; gap: 11px; padding: 4px 8px 18px; font-weight: 700; font-size: 15px; color: var(--text); }
.marca .logo { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; color: #fff; background: var(--grad); box-shadow: var(--shadow-hover); }
.marca small { display: block; font-weight: 500; font-size: 12px; color: var(--muted); }
.nav-rotulo { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); padding: 10px 10px 4px; }
.nav-item {
  display: flex; align-items: center; gap: 11px; width: 100%; border: 0; background: none; font: inherit; font-weight: 600; font-size: 13.5px;
  color: var(--side-text); padding: 9px 10px; border-radius: 10px; cursor: pointer; text-align: left; transition: background .15s, color .15s;
}
.nav-item:hover { background: var(--hover); color: var(--text); }
.nav-item.ativo { background: var(--accent-soft); color: var(--accent-text); }
.nav-item .cont { margin-left: auto; min-width: 22px; height: 20px; padding: 0 7px; border-radius: 999px; display: grid; place-items: center; font-size: 11.5px; font-weight: 700; background: var(--warn); color: #fff; }
.lateral .espaco { flex: 1; }
.lateral-rodape { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid var(--border); padding: 12px 4px 0; }
.quem { display: flex; align-items: center; gap: 9px; min-width: 0; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.quem-ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); flex-shrink: 0; }
.rodape-botoes { display: flex; gap: 2px; }
.rodape-botoes .btn.icone { padding: 7px; }
.principal { min-width: 0; padding: 28px 36px 64px;
  background-image: radial-gradient(900px 420px at 15% -10%, var(--glow), transparent 60%), radial-gradient(700px 400px at 100% 0%, var(--glow-2), transparent 60%);
}
.cab { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.cab h1 { font-size: 26px; letter-spacing: -.025em; margin: 0; }
.cab p { color: var(--muted); margin: 4px 0 0; }
.cab .acoes { display: flex; gap: 8px; }
.vista { animation: subir .25s ease-out; }
.topo-movel { display: none; }

/* ---------- cartões ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 20px; }
.card-titulo { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.card-titulo h2 { font-size: 15px; margin: 0; display: flex; align-items: center; gap: 8px; }
.card-titulo .dica { font-weight: 500; }

/* saudação */
.ola { position: relative; overflow: hidden; padding: 24px 26px; margin-bottom: 18px; color: #fff; border: 0; box-shadow: 0 16px 36px -18px rgba(80,70,229,.6);
  background: radial-gradient(500px 220px at 100% 0%, rgba(255,255,255,.18), transparent 60%), var(--grad); }
.ola h2 { font-size: 21px; margin: 0 0 4px; letter-spacing: -.02em; }
.ola p { margin: 0; color: rgba(255,255,255,.85); }
.ola .ola-escudo { position: absolute; right: 22px; top: 50%; transform: translateY(-50%); width: 118px; height: 118px; opacity: .22; pointer-events: none; }
.ola > h2, .ola > p { position: relative; z-index: 1; }

/* indicadores */
.indicadores { display: grid; gap: 14px; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 18px; }
.ind { display: flex; gap: 14px; align-items: center; padding: 18px; transition: transform .15s, box-shadow .2s; }
.ind.clicavel { cursor: pointer; }
.ind.clicavel:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.ind .ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; }
.ind .rotulo { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.ind .valor { font-size: 26px; font-weight: 750; letter-spacing: -.03em; line-height: 1.15; }
.t-warn { background: var(--warn-soft); color: var(--warn); }
.t-ok { background: var(--ok-soft); color: var(--ok); }
.t-off { background: var(--off-soft); color: var(--off); }
.t-acc { background: var(--accent-soft); color: var(--accent-text); }
.t-bad { background: var(--bad-soft); color: var(--bad); }
.t-info { background: var(--info-soft); color: var(--info); }

.duas { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: start; }
.duas > * { min-width: 0; }

/* ---------- avatar ---------- */
.avatar { position: relative; width: 44px; height: 44px; border-radius: 13px; flex-shrink: 0; display: grid; place-items: center;
  font-weight: 700; color: #fff; background: var(--grad); overflow: hidden; font-size: 15px; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar.p { width: 34px; height: 34px; border-radius: 10px; font-size: 12.5px; }
.avatar.g { width: 52px; height: 52px; border-radius: 15px; font-size: 17px; }
.avatar .bolinha { position: absolute; right: -2px; bottom: -2px; width: 13px; height: 13px; border-radius: 50%; border: 2.5px solid var(--surface); }
.bolinha.ATIVO { background: var(--ok); } .bolinha.PENDENTE { background: var(--warn); } .bolinha.BLOQUEADO { background: var(--off); }

/* ---------- linhas (pendentes / atividade) ---------- */
.linhas { display: flex; flex-direction: column; }
.linha { display: flex; align-items: center; gap: 12px; padding: 13px 20px; border-bottom: 1px solid var(--border); }
.linha:last-child { border-bottom: 0; }
.linha .meio { min-width: 0; flex: 1; }
.linha .meio b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.linha .meio span { display: block; color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ic-linha { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; }
.linha .dir { display: flex; gap: 6px; align-items: center; }
.vazio { text-align: center; color: var(--muted); padding: 34px 20px; }
.vazio svg { color: var(--faint); margin-bottom: 8px; }
.vazio b { display: block; color: var(--text); margin-bottom: 2px; }

/* ---------- selo ---------- */
.selo { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.selo::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.selo.ATIVO { color: var(--ok); background: var(--ok-soft); }
.selo.PENDENTE { color: var(--warn); background: var(--warn-soft); }
.selo.BLOQUEADO { color: var(--off); background: var(--off-soft); }

/* ---------- barra de filtros ---------- */
.barra { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }
.busca { position: relative; flex: 1; min-width: 220px; max-width: 380px; }
.busca svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
.busca input { width: 100%; padding-left: 38px; }
.seg { display: inline-flex; gap: 3px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 3px; }
.seg button { border: 0; background: none; font: inherit; font-weight: 600; font-size: 12.5px; color: var(--muted); padding: 6px 12px; border-radius: 9px; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.seg button.ativo { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.seg .n { font-size: 11px; color: var(--faint); font-weight: 700; }
.seg button.ativo .n { color: var(--accent-text); }

/* ---------- pessoas ---------- */
.grade-pessoas { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.pessoa { display: flex; flex-direction: column; transition: box-shadow .2s, border-color .2s, transform .15s; }
.pessoa:hover { box-shadow: var(--shadow-hover); border-color: color-mix(in srgb, var(--accent) 25%, var(--border)); }
.pessoa.PENDENTE { border-color: color-mix(in srgb, var(--warn) 45%, var(--border)); }
.pessoa .topo { display: flex; gap: 14px; align-items: center; padding: 18px 18px 14px; }
.pessoa .ident { min-width: 0; flex: 1; }
.pessoa .ident b { display: flex; align-items: center; gap: 8px; font-size: 15px; flex-wrap: wrap; }
.pessoa .ident span { display: block; color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pessoa .faixa-pendente { margin: 0 18px 12px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--warn-soft); color: var(--warn); font-size: 12.5px; font-weight: 600; display: flex; gap: 8px; align-items: center; }
.perms { display: flex; flex-direction: column; gap: 2px; padding: 0 10px 10px; }
.perm { display: flex; align-items: center; gap: 12px; padding: 9px 8px; border-radius: 10px; cursor: pointer; user-select: none; }
.perm:hover { background: var(--hover); }
.perm .ic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; }
.perm .txt { flex: 1; min-width: 0; }
.perm .txt b { display: block; font-size: 13px; }
.perm .txt span { display: block; font-size: 12px; color: var(--muted); }
.perm input { display: none; }
.chave { width: 38px; height: 22px; border-radius: 999px; background: var(--surface-3); position: relative; transition: background .2s; flex-shrink: 0; }
.chave::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: left .2s; }
.perm input:checked ~ .chave { background: var(--accent); }
.perm.risco input:checked ~ .chave { background: var(--warn); }
.perm input:checked ~ .chave::after { left: 19px; }
.pessoa .rodape { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 12px 18px; border-top: 1px solid var(--border); margin-top: auto; }
.pessoa .rodape .meta { color: var(--faint); font-size: 12px; flex: 1 1 100%; }
.pessoa .rodape .acoes-p { display: flex; gap: 6px; align-items: center; margin-left: auto; }

/* ---------- registro (linha do tempo) ---------- */
.dia { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--faint); margin: 22px 4px 10px; }
.dia:first-child { margin-top: 0; }
.evento { display: flex; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.evento:last-child { border-bottom: 0; }
.evento .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; }
.evento .corpo { flex: 1; min-width: 0; }
.evento .resumo { font-weight: 600; font-size: 13.5px; word-break: break-word; }
.evento .meta { color: var(--muted); font-size: 12.5px; display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 2px; }
.evento .hora { color: var(--faint); font-size: 12px; white-space: nowrap; }
.tag { font-size: 10.5px; font-weight: 700; letter-spacing: .03em; padding: 2px 7px; border-radius: 6px; }

/* ---------- janela e aviso ---------- */
.fundo { position: fixed; inset: 0; background: rgba(8,10,18,.5); backdrop-filter: blur(4px); display: grid; place-items: center; z-index: 50; padding: 16px; animation: aparecer .15s ease-out; }
.janela { width: 100%; max-width: 440px; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow-lg); padding: 24px; animation: subir .2s ease-out; }
.janela .ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 14px; }
.janela h2 { margin: 0 0 6px; font-size: 18px; }
.janela p { color: var(--muted); margin: 0 0 16px; }
.janela textarea { width: 100%; min-height: 72px; resize: vertical; }
.janela .botoes { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
@keyframes aparecer { from { opacity: 0; } }
.toasts { position: fixed; bottom: 22px; right: 22px; z-index: 60; display: flex; flex-direction: column; gap: 8px; }
.toast { display: flex; align-items: center; gap: 10px; background: var(--text); color: var(--bg); padding: 11px 16px; border-radius: 12px; box-shadow: var(--shadow-lg); font-weight: 600; font-size: 13px; animation: subir .2s ease-out; }
.toast.erro-t { background: var(--bad); color: #fff; }

/* ---------- carregando ---------- */
.esqueleto { background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size: 200% 100%; animation: brilho 1.2s infinite; border-radius: 10px; }
@keyframes brilho { to { background-position: -200% 0; } }

/* ===================== PÁGINA PÚBLICA ===================== */
.publica { min-height: 100vh; display: flex; flex-direction: column; }
.pub-topo { display: flex; align-items: center; gap: 12px; width: 100%; max-width: 1180px; margin: 0 auto; padding: 18px 24px; }
.pub-topo .espaco { flex: 1; }
.pub-hero { position: relative; overflow: hidden; width: calc(100% - 48px); max-width: 1132px; margin: 8px auto 0; border-radius: 28px; color: #fff; padding: 60px 48px;
  background: radial-gradient(700px 400px at 0% 0%, #6d5cff, transparent 60%), radial-gradient(600px 500px at 100% 100%, #a43dff, transparent 55%), #1b1650; }
.pub-hero::after { content: ""; position: absolute; inset: 0; opacity: .15; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(600px 300px at 20% 30%, #000, transparent); }
.pub-hero > * { position: relative; z-index: 1; }
.pub-hero > .escudo { position: absolute; z-index: 0; }
.pub-hero h1 { font-size: 44px; line-height: 1.08; letter-spacing: -.03em; margin: 14px 0 12px; max-width: 640px; }
.pub-hero p { font-size: 17px; color: rgba(255,255,255,.8); max-width: 560px; margin: 0; }
.pub-hero .escudo { right: 40px; top: 50%; bottom: auto; transform: translateY(-50%); width: 300px; height: 300px; opacity: .16; animation: none; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); font-size: 13px; font-weight: 600; backdrop-filter: blur(6px); }
.ponto { width: 8px; height: 8px; border-radius: 50%; background: #cbd5e1; }
.ponto.ok { background: #4ade80; box-shadow: 0 0 0 4px rgba(74,222,128,.25); animation: pulsar 2s infinite; }
.ponto.bad { background: #f87171; box-shadow: 0 0 0 4px rgba(248,113,113,.25); }
@keyframes pulsar { 50% { box-shadow: 0 0 0 7px rgba(74,222,128,.08); } }
.pub-conteudo { max-width: 1180px; width: 100%; margin: 0 auto; padding: 40px 24px 60px; }
.pub-conteudo h2 { font-size: 20px; letter-spacing: -.02em; margin: 0 0 16px; }
.passos { display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.passo { padding: 22px; position: relative; }
.passo .num { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; font-weight: 750; color: #fff; background: var(--grad); margin-bottom: 14px; box-shadow: var(--shadow-hover); }
.passo b { display: block; margin-bottom: 6px; font-size: 14.5px; }
.passo p { margin: 0; color: var(--muted); font-size: 13px; }
pre.comando { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 9px 11px; margin: 10px 0 0; white-space: normal; font-size: 12px; line-height: 1.6; }
.garantias { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 28px; }
.garantia { padding: 20px; display: flex; gap: 14px; }
.garantia .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; }
.garantia b { display: block; margin-bottom: 4px; }
.garantia p { margin: 0; color: var(--muted); font-size: 13px; }
.pub-rodape { text-align: center; color: var(--faint); font-size: 12.5px; padding: 0 24px 28px; }

/* ===================== RESPONSIVO ===================== */
@media (max-width: 1100px) {
  .indicadores { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .duas { grid-template-columns: 1fr; }
  .passos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .login { grid-template-columns: 1fr; }
  .login-arte { padding: 28px 24px; min-height: auto; }
  .login-titulo h1 { font-size: 28px; }
  .login-lista, .escudo { display: none; }
  .shell { grid-template-columns: minmax(0, 1fr); }
  .lateral { position: fixed; z-index: 40; left: 0; top: 0; width: 260px; transform: translateX(-100%); transition: transform .2s; box-shadow: var(--shadow-lg); }
  .lateral.aberta { transform: none; }
  .topo-movel { display: flex; align-items: center; gap: 10px; margin: -12px 0 16px; }
  .principal { padding: 24px 16px 48px; }
  .garantias { grid-template-columns: 1fr; }
  .pub-hero { padding: 40px 24px; width: calc(100% - 32px); }
  .pub-hero h1 { font-size: 30px; }
  .pub-topo { padding: 14px 16px; }
  .pub-conteudo { padding: 32px 16px 48px; }
}
@media (max-width: 520px) {
  .indicadores, .passos { grid-template-columns: 1fr; }
  .grade-pessoas { grid-template-columns: 1fr; }
  .busca { max-width: none; }
}
