/*
 | SemantiqWall — tema "centro de operações".
 | Azul-marinho profundo, ciano = marca e fluxo normal, vermelho = só risco/bloqueio, âmbar = atenção.
 | Tudo local (CSP: só o próprio servidor). Fontes: Barlow / Barlow Condensed / JetBrains Mono (OFL, em /fonts).
 */
@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap; src: url("../fonts/barlow-400.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-display: swap; src: url("../fonts/barlow-500.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-display: swap; src: url("../fonts/barlow-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url("../fonts/barlow-condensed-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url("../fonts/barlow-condensed-700.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 400; font-display: swap; src: url("../fonts/jetbrains-mono-400.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 500; font-display: swap; src: url("../fonts/jetbrains-mono-500.woff2") format("woff2"); }

:root {
    --bg: #060a13;
    --panel: #0a1122;
    --panel-2: #0e1628;
    --panel-3: #0f1b33;
    --line: #16203a;
    --line-2: #1e2a45;
    --line-3: #2a3858;
    --text: #e6edf7;
    --text-2: #c3cde0;
    --muted: #8b98b3;
    --muted-2: #7d8ba8;
    --brand: #22d3ee;
    --brand-2: #67e8f9;
    --brand-ink: #03161b;
    --alert: #f0444c;
    --alert-strong: #c42b33;
    --alert-soft: #ff9ca1;
    --alert-bg: #1a0c12;
    --warn: #f5a524;
    --warn-soft: #f5c66a;
    --ok: #34d399;
    --radius: 12px;
    --font: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
    --cond: "Barlow Condensed", "Barlow", system-ui, sans-serif;
    --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 var(--font); }
/* Fundo de operações: imagem fixa atrás de tudo, escurecida para não brigar com os dados. */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background:
        radial-gradient(ellipse at 55% 45%, rgba(6,10,19,.66) 0%, rgba(6,10,19,.42) 55%, rgba(6,10,19,.22) 100%),
        url("../img/bg-ops.webp") center / cover no-repeat,
        var(--bg); }
body { background: transparent; }
html { background: var(--bg); }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-2); }
h1, h2, h3 { margin: 0 0 .4rem; font-weight: 600; }
h1 { font-family: var(--cond); font-size: 2rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; line-height: 1.05; }
h2 { font-family: var(--cond); font-size: 1.3rem; font-weight: 700; letter-spacing: .02em; margin-bottom: .7rem; }
h3 { font-size: 1.1rem; }
.h-cond { text-transform: uppercase; letter-spacing: .04em; margin: 0; }
code, .mono { font-family: var(--mono); font-size: .86em; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.strong { font-weight: 600; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.text-alert { color: var(--alert-soft); }
.text-warn { color: var(--warn-soft); }
.sr-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon, .menu-icon { flex-shrink: 0; vertical-align: -3px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* marca */
.brand { display: flex; align-items: center; gap: .7rem; color: var(--text); text-decoration: none; }
.brand:hover { color: var(--text); }
.brand-center { justify-content: center; margin-bottom: 1.5rem; }
.brand-icon { width: 40px; height: 40px; border-radius: 8px; }
.brand-name { font-size: 1.35rem; font-weight: 500; letter-spacing: .1px; }
.brand-name strong { color: var(--brand); font-weight: 700; }

/* telas de acesso */
.guest { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem; }
.guest-card { width: 100%; max-width: 420px; background: rgba(10,17,34,.86); backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: 16px; padding: 2rem; box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.guest-title { font-family: var(--cond); font-size: 1.5rem; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 1rem; }

/* formulários */
.form { display: grid; gap: .45rem; margin: 1rem 0; }
label { font-size: .85rem; color: var(--muted); margin-top: .4rem; }
input, select, textarea { width: 100%; background: var(--panel-2); color: var(--text); border: 1px solid var(--line-2); border-radius: 8px; padding: .65rem .75rem; font: inherit; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: transparent; }
textarea { resize: vertical; }
textarea.mono { font-family: var(--mono); font-size: .85rem; }
input[type=file] { padding: .5rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .35rem; border: 1px solid transparent; border-radius: 8px; padding: .6rem 1rem; font: inherit; font-weight: 600; cursor: pointer; text-align: center; color: var(--text); }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { background: var(--brand-2); color: var(--brand-ink); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-3); }
.btn-ghost:hover { border-color: var(--brand); color: var(--text); }
.btn-danger { background: var(--alert-strong); color: #fff; }
.btn-danger:hover { background: #d8343d; color: #fff; }
.btn-block { width: 100%; margin-top: .6rem; }
.btn-sm { padding: .35rem .65rem; font-size: .85rem; }
.btn-icon { padding: .3rem; width: 32px; height: 32px; }
.linklike { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 0; font-family: inherit; }
.linklike:hover { color: var(--text); text-decoration: underline; }
.inline-form { margin-bottom: 1rem; }
.check { display: flex; align-items: center; gap: .5rem; color: var(--text); margin: .1rem 0; }
.check input { width: auto; accent-color: var(--brand); }

/* avisos e etiquetas */
.notice { border-radius: 10px; padding: .75rem 1rem; margin-bottom: 1rem; border: 1px solid; }
.notice-ok { border-color: rgba(52,211,153,.4); background: rgba(52,211,153,.07); }
.notice-alert { border-color: rgba(240,68,76,.5); background: rgba(240,68,76,.09); }
.notice-warn { border-color: #5a4213; background: #1a1407; color: #f3e3c0; }
.tag { display: inline-block; font-size: .75rem; padding: .1rem .55rem; border-radius: 999px; border: 1px solid; line-height: 1.5; }
.tag-ok { color: var(--ok); border-color: rgba(52,211,153,.4); }
.tag-alert { color: var(--alert-soft); border-color: rgba(240,68,76,.55); }
.tag-warn { color: var(--warn-soft); border-color: rgba(245,165,36,.5); }
.tag-unknown { color: var(--muted); border-color: var(--line-3); border-style: dashed; }
.tag-state { color: var(--muted); border-color: var(--line-3); }
.tag-risk-1 { color: var(--ok); border-color: rgba(52,211,153,.4); }
.tag-risk-2 { color: #93c5fd; border-color: rgba(147,197,253,.4); }
.tag-risk-3 { color: var(--warn-soft); border-color: rgba(245,165,36,.5); }
.tag-risk-4 { color: #fdba74; border-color: rgba(251,146,60,.55); }
.tag-risk-5 { color: var(--alert-soft); border-color: rgba(240,68,76,.55); }
.sev { font-family: var(--cond); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.sev-solid, .sev-big { border: 0; border-radius: 4px; padding: .12rem .6rem; }
.sev-solid.sev-critical, .sev-big.sev-critical, .sev-solid.sev-high, .sev-big.sev-high { background: var(--alert-strong); color: #fff; }
.sev-solid.sev-medium, .sev-big.sev-medium { background: #3a4866; color: var(--text); }
.sev-solid.sev-low, .sev-big.sev-low { background: var(--line-2); color: var(--muted); }
.sev-big { font-size: .95rem; padding: .2rem .8rem; }
.badge { display: inline-block; min-width: 1.4rem; padding: 0 .4rem; margin-left: auto; border-radius: 999px; background: var(--alert); color: #fff; font-size: .75rem; font-weight: 600; text-align: center; }
.badge-warn { background: var(--warn); color: #1a1204; }
.count { display: inline-block; font-family: var(--font); font-size: .8rem; font-weight: 500; padding: 0 .5rem; margin-left: .3rem; border: 1px solid var(--line-3); border-radius: 5px; vertical-align: 3px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 99px; vertical-align: 1px; background: var(--muted); }
.dot-ok { background: var(--ok); box-shadow: 0 0 8px rgba(52,211,153,.6); }
.dot-warn { background: var(--warn); }
.dot-alert { background: var(--alert); box-shadow: 0 0 8px rgba(240,68,76,.6); }
.dot-cyan { background: var(--brand); }
.dot-idle { background: #5b6b8c; }

/* MFA */
.qr { background: #fff; border-radius: 8px; padding: 12px; width: max-content; margin: 1rem auto; }
.qr svg { display: block; }
.secret { display: block; text-align: center; background: var(--panel-2); border: 1px dashed var(--line-3); border-radius: 8px; padding: .6rem; letter-spacing: 1px; word-break: break-all; }
.codes { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin: 1rem 0; }
.codes code { display: block; background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 6px; padding: .45rem; text-align: center; }
.recovery { margin-top: .5rem; }
.recovery summary { cursor: pointer; color: var(--muted); }

/* estrutura */
.shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.sidebar { background: rgba(8,13,25,.86); backdrop-filter: blur(8px); border-right: 1px solid var(--line); padding: 1.4rem .9rem 1.1rem; display: flex; flex-direction: column; gap: 1.3rem; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.sidebar .brand { padding: 0 .5rem; }
.org-switch { display: grid; gap: .4rem; }
.nav { display: grid; gap: .2rem; }
.nav a { display: flex; align-items: center; gap: .75rem; color: var(--text-2); padding: .62rem .75rem; border-radius: 9px; border: 1px solid transparent; font-weight: 500; }
.nav a .menu-icon { opacity: .8; }
.nav a:hover { background: var(--panel); color: var(--text); }
.nav a:hover .menu-icon { opacity: 1; }
.nav a.active { background: var(--panel-3); border-color: #1d3257; color: var(--text); font-weight: 600; box-shadow: inset 3px 0 0 var(--brand); }
.nav a.active .menu-icon { opacity: 1; filter: drop-shadow(0 0 4px rgba(34,230,243,.45)); }
.sidebar-foot { margin-top: auto; border-top: 1px solid var(--line); padding-top: .9rem; display: grid; gap: .8rem; }
.foot-org { display: flex; align-items: center; gap: .7rem; color: var(--text); padding: .5rem .6rem; border-radius: 9px; }
.foot-org > span { display: grid; flex: 1; line-height: 1.25; }
.foot-org:hover, .foot-org.active { background: var(--panel); color: var(--text); }
.foot-user { padding: 0 .6rem; }
.foot-actions { display: flex; gap: 1rem; margin-top: .3rem; }
.content { padding: 1.8rem 2.2rem 2rem; max-width: 1240px; width: 100%; min-width: 0; }
.content-wide { max-width: 1680px; }
.page-head { margin-bottom: 1.4rem; }
.page-head p { margin: .3rem 0 0; }
.subnav { display: flex; gap: .3rem; border-bottom: 1px solid var(--line); margin: -0.4rem 0 1.4rem; }
.subnav a { color: var(--muted); padding: .55rem .9rem; border-bottom: 2px solid transparent; margin-bottom: -1px; font-weight: 500; }
.subnav a:hover { color: var(--text); }
.subnav a.on { color: var(--text); border-bottom-color: var(--brand); }

/* blocos */
.card, .panel { background: rgba(10,17,34,.84); backdrop-filter: blur(6px); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.15rem 1.25rem; margin-bottom: 1rem; }
.card-danger { border-color: rgba(240,68,76,.45); }
.card-label { color: var(--muted); font-size: .85rem; }
.card-value { font-family: var(--cond); font-size: 2.2rem; font-weight: 700; margin: .1rem 0; }
.small-value { font-size: 1.2rem; }
.card-head, .panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: .8rem; flex-wrap: wrap; }
.panel-head h2 { margin: 0; }
.panel-head p { margin: .15rem 0 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1rem; }
.grid-2 .card, .grid-3 .card, .grid-4 .card { margin: 0; }
.form-wide { max-width: 760px; }
.mt { margin-top: 1.4rem; }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: .4rem .8rem; margin: 0; }
.kv dt { color: var(--muted); font-size: .85rem; }
.kv dd { margin: 0; }
.actions { display: flex; gap: .6rem; margin-top: 1rem; flex-wrap: wrap; align-items: center; }
.line { padding: .5rem 0; border-bottom: 1px solid var(--line); }
.line:last-child { border-bottom: 0; }
.steps { margin: 0; padding-left: 1.2rem; display: grid; gap: .4rem; }
.steps li.done { color: var(--muted); text-decoration: line-through; }
.lead { font-size: 1.1rem; }
.help { margin: .5rem 0; }
.help summary { cursor: pointer; color: var(--muted); }
.empty { padding: 1rem 0; }

/* tabelas */
.table-wrap { overflow-x: auto; background: rgba(10,17,34,.84); backdrop-filter: blur(6px); border: 1px solid var(--line); border-radius: var(--radius); }
.table-flat { background: transparent; border: 0; border-radius: 0; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: .6rem .8rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { color: var(--muted-2); font-weight: 500; font-size: .8rem; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: rgba(34,211,238,.03); }

/* inventário */
.tool { border-top: 1px solid var(--line); padding: .8rem 0; }
.tool-head { display: flex; gap: .8rem; align-items: baseline; }
.ops { margin: .4rem 0 0; padding-left: 1.1rem; display: grid; gap: .25rem; }

/* políticas e decisões */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.chip { border: 1px solid var(--line-3); border-radius: 999px; padding: .3rem .8rem; color: var(--text-2); font-size: .85rem; }
.chip:hover { border-color: var(--brand); color: var(--text); }
.chip-on { border-color: var(--brand); color: var(--brand); }
.code { background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 8px; padding: .8rem; overflow: auto; font-family: var(--mono); font-size: .8rem; max-height: 360px; margin: 0; }

/* casos */
.timeline { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .6rem; }
.timeline li { border-left: 2px solid var(--line-3); padding-left: .8rem; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .2rem .8rem; max-height: 260px; overflow: auto; border: 1px solid var(--line-2); border-radius: 8px; padding: .6rem; }

/* raio-x */
.risk { border-top: 1px solid var(--line); padding: .8rem 0; }
.risk p { margin: .35rem 0; }

/* centro de comando */
.cc-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.1rem; flex-wrap: wrap; }
.cc-title { flex: 1; min-width: 280px; }
.cc-title h1 { font-size: 2.2rem; margin: 0; }
.cc-title p { margin: .3rem 0 0; }
.cc-pills { display: flex; gap: .7rem; flex-wrap: wrap; }
.pill { display: flex; align-items: center; gap: .6rem; padding: .55rem .9rem; border: 1px solid #1a2644; border-radius: 9px; background: rgba(10,17,34,.84); font-size: .82rem; }
.pill .sep { color: #3a4866; }
.pill-mode { border-color: #1d4f5e; color: var(--brand-2); font-weight: 600; letter-spacing: .03em; }
.pill-warn { border-color: #5a4213; background: #1a1407; color: var(--warn-soft); font-weight: 600; }

.kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .9rem; margin-bottom: 1rem; }
.kpi { display: flex; flex-direction: column; gap: .35rem; background: rgba(10,17,34,.84); backdrop-filter: blur(6px); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem .6rem; color: var(--text); overflow: hidden; transition: border-color .15s; }
.kpi:hover { border-color: #1d4f5e; color: var(--text); }
.kpi-alert { border-color: #3a1520; }
.kpi-warn { border-color: #4a3510; }
.kpi-top { display: flex; justify-content: space-between; align-items: flex-start; }
.kpi-n { font-family: var(--cond); font-size: 2.2rem; font-weight: 700; line-height: 1; }
.kpi-label { color: var(--text-2); font-size: .92rem; margin-top: .2rem; }
.kpi-go { color: var(--muted); }
.kpi-sub { font-size: .8rem; min-height: 1.3rem; }
.spark { width: 100%; height: 30px; display: block; overflow: visible; }
.spark polyline { fill: none; stroke-width: 1.8; vector-effect: non-scaling-stroke; }
.spark-cyan polyline { stroke: var(--brand); filter: drop-shadow(0 0 3px rgba(34,211,238,.5)); }
.spark-red polyline { stroke: var(--alert); filter: drop-shadow(0 0 3px rgba(240,68,76,.5)); }
.spark-amber polyline { stroke: var(--warn); filter: drop-shadow(0 0 3px rgba(245,165,36,.45)); }
.kpi-meter { display: flex; gap: 3px; height: 30px; align-items: flex-end; }
.kpi-meter span { flex: 1; height: 10px; border-radius: 2px; background: var(--line-2); }
.kpi-meter span.on { background: var(--brand); box-shadow: 0 0 6px rgba(34,211,238,.5); }

.cc-mid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 1rem; margin-bottom: 1rem; align-items: start; }
.cc-mid .panel, .cc-bottom .panel { margin: 0; }
.legend { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; font-size: .85rem; color: var(--text-2); }
.legend > span { display: inline-flex; align-items: center; gap: .4rem; }
.map-more { margin: .6rem 0 0; }

.dossier { display: flex; flex-direction: column; gap: .75rem; }
.dossier .panel-head { margin-bottom: 0; align-items: center; }
.pager { display: flex; align-items: center; gap: .5rem; }
.dossier-title { font-family: var(--cond); font-size: 1.65rem; font-weight: 700; line-height: 1.1; margin: .2rem 0 0; }
.dossier > p { margin: 0; }
.chain { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; padding: .6rem; background: #0d0911; border: 1px solid #3a1520; border-radius: 8px; font-size: .8rem; }
.chain-step { padding: .2rem .5rem; border: 1px solid #7a2530; border-radius: 5px; }
.chain-end { background: #3a1218; border-color: var(--alert); }
.chain-arrow { color: var(--alert); }
.facts { display: grid; grid-template-columns: 120px 1fr; margin: 0; border: 1px solid var(--line); border-radius: 8px; font-size: .88rem; }
.facts dt, .facts dd { margin: 0; padding: .45rem .7rem; border-bottom: 1px solid #121b31; }
.facts dt { color: var(--muted); }
.facts dt:last-of-type, .facts dd:last-of-type { border-bottom: 0; }
.dossier-actions { display: flex; gap: .6rem; }
.dossier-actions .btn-danger { flex: 1; }

.cc-bottom { display: grid; grid-template-columns: minmax(0, 1fr) 520px; gap: 1rem; margin-bottom: 1rem; }
.act { display: flex; gap: .8rem; align-items: baseline; padding: .45rem 0; border-bottom: 1px solid #121b31; font-size: .9rem; }
.act:last-child { border-bottom: 0; }
.act-what { flex: 1; }
.hash { color: #5b6b8c; font-size: .75rem; }
.gaps-panel .panel-head { align-items: baseline; }
.gap-chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.gap-chips li { border: 1px solid var(--line-2); border-radius: 8px; padding: .35rem .7rem; font-size: .88rem; color: var(--text-2); }
.gap-chips li.gap-bad { border-color: #5a4213; color: var(--warn-soft); background: #140f06; }
.gaps { margin: .5rem 0; padding-left: 1.1rem; display: grid; gap: .3rem; }
.gaps li.gap-bad { color: var(--warn-soft); }
.cc-foot { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; font-size: .8rem; color: var(--muted); padding: .2rem .2rem 0; }
.cc-foot .sep { color: var(--line-3); }
.cc-foot .spacer { flex: 1; }

/* mapa de exposição (SVG) */
.map-panel { overflow: hidden; }
.xmap-wrap { overflow-x: auto; }
.xmap { width: 100%; min-width: 820px; height: auto; display: block; font-family: var(--font); }
.xcol { font-family: var(--cond); font-weight: 600; font-size: 12px; letter-spacing: .1em; fill: var(--muted-2); }
.xedge { fill: none; stroke: #2a3858; stroke-width: 1.6; }
.xedge-dashed { stroke-dasharray: 5 5; }
.xedge-risk { stroke: var(--alert); stroke-width: 2.6; stroke-dasharray: none; }
.xflow, .xflow-risk { fill: none; stroke-linecap: round; pointer-events: none; }
.xflow { stroke: var(--brand); stroke-width: 2.2; stroke-dasharray: 6 60; opacity: .85; filter: drop-shadow(0 0 3px var(--brand)); animation: sw-dados 2.4s linear infinite; }
.xflow-risk { stroke: #ffb3b6; stroke-width: 3; stroke-dasharray: 10 44; filter: drop-shadow(0 0 5px var(--alert)); animation: sw-risco 1.3s linear infinite; }
.xd1 { animation-delay: -.3s; } .xd2 { animation-delay: -.6s; } .xd3 { animation-delay: -.9s; }
.xd4 { animation-delay: -1.2s; } .xd5 { animation-delay: -1.5s; } .xd6 { animation-delay: -1.8s; } .xd7 { animation-delay: -2.1s; }
@keyframes sw-dados { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -66; } }
@keyframes sw-risco { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -54; } }
.xend { fill: var(--alert); }
.xnode rect { fill: var(--panel-2); stroke: var(--line-2); stroke-width: 1; transition: stroke .15s; }
.xmap a:hover .xnode rect { stroke: var(--brand); }
.xnode-agents rect { rx: 10; }
.xnode-risk rect { fill: var(--alert-bg); stroke: var(--alert); stroke-width: 1.5; }
.xnode-agents.xnode-risk rect { filter: drop-shadow(0 0 10px rgba(240,68,76,.45)); }
.xnode-off rect { stroke-dasharray: 4 4; opacity: .6; }
.xtitle { fill: var(--text); font-size: 14px; font-weight: 600; }
.xsub { fill: var(--muted); font-size: 11px; }
.xnode-agents .xsub, .xnode-credentials .xsub { font-family: var(--mono); font-size: 10.5px; }
.xnode-risk .xsub { fill: var(--alert-soft); }
.xdot { fill: #5b6b8c; }
.xnode-risk .xdot { fill: var(--alert); }
.xnode-ok .xdot { fill: var(--ok); }
.xnode-gap .xdot { fill: var(--warn); }
.xbadge { fill: var(--warn-soft); font-size: 10px; }
.xlabel rect { fill: #2a0e14; stroke: var(--alert); stroke-width: 1; }
.xlabel text { fill: var(--alert-soft); font-family: var(--mono); font-size: 11px; }

/* mapa de alcance de um agente (lista) */
.map { display: grid; grid-template-columns: 220px 1fr 200px; gap: 1rem; align-items: start; }
.map-col { background: rgba(10,17,34,.84); border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem; display: grid; gap: .5rem; }
.map-head { color: var(--muted-2); font-family: var(--cond); font-size: .85rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.map-node { border: 1px solid var(--line-2); border-radius: 8px; padding: .5rem .6rem; background: var(--panel-2); }
.map-agent { border-color: var(--brand); }
.map-sensitive { border-color: rgba(240,68,76,.5); color: var(--alert-soft); }
.map-path { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; padding: .45rem 0; border-bottom: 1px dashed var(--line-2); }
.map-path:last-child { border-bottom: 0; }
.arrow { color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
    .xflow, .xflow-risk { animation: none; opacity: 0; }
}
@media (max-width: 1280px) {
    .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .cc-mid, .cc-bottom { grid-template-columns: 1fr; }
}
@media (max-width: 1000px) {
    .grid-4 { grid-template-columns: 1fr 1fr; }
    .map { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
    .shell { grid-template-columns: 1fr; }
    .sidebar { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
    .nav { grid-template-columns: 1fr 1fr; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .kpis { grid-template-columns: 1fr 1fr; }
    .content { padding: 1.1rem 1rem; }
    .cc-title h1 { font-size: 1.7rem; }
    .facts { grid-template-columns: 1fr; }
    .facts dt { border-bottom: 0; padding-bottom: 0; }
}

/* lista de caminhos de risco sob o mapa */
.risk-list { margin-top: .9rem; border-top: 1px solid var(--line); padding-top: .7rem; display: grid; gap: .1rem; }
.risk-list-head { font-family: var(--cond); font-size: .85rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); margin-bottom: .3rem; }
.risk-row { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; padding: .4rem .2rem; border-bottom: 1px solid #121b31; font-size: .88rem; }
.risk-row:last-child { border-bottom: 0; }
.risk-row .spacer { flex: 1; }
