/* =======================================================
   FBI INVESTIGATIONS — Dark Intelligence Interface
   لون أساسي واحد (أزرق هوية الموقع) + أحمر/كهرماني للخطر فقط
   ======================================================= */
:root {
    --bg: #04070d; --bg2: #070b14; --bg3: #0b111c;
    --panel: rgba(12, 17, 27, .78); --panel2: rgba(15, 21, 33, .94); --glass: rgba(255, 255, 255, .025);
    --line: rgba(148, 163, 184, .10); --line2: rgba(148, 163, 184, .18); --line3: rgba(148, 163, 184, .28);
    --text: #e7ecf3; --muted: #97a3b6; --dim: #5e697b;
    --acc: #4f9dff; --acc2: #7cb6ff; --acc-soft: rgba(79, 157, 255, .13); --acc-glow: 0 0 0 1px rgba(79, 157, 255, .45), 0 0 22px rgba(79, 157, 255, .22);
    --crit: #ef4444; --high: #f59e0b; --ok: #7dd3a8;
    --r: 10px; --r2: 14px;
    --f-ui: 'Inter', 'Noto Kufi Arabic', system-ui, sans-serif;
    --f-head: 'Rajdhani', 'Inter', 'Noto Kufi Arabic', sans-serif;
    --f-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', monospace;
    --nav-w: 236px; --top-h: 58px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body.inv { height: 100%; }
body.inv {
    background: var(--bg); color: var(--text); font: 13.5px/1.5 var(--f-ui); overflow: hidden;
    background-image: radial-gradient(ellipse at 10% -10%, rgba(40, 80, 150, .18), transparent 55%), radial-gradient(ellipse at 110% 110%, rgba(79, 157, 255, .06), transparent 50%);
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
[hidden] { display: none !important; }
::selection { background: rgba(79, 157, 255, .35); }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: rgba(148, 163, 184, .16); border-radius: 9px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: rgba(148, 163, 184, .28); }
[dir="auto"] { unicode-bidi: plaintext; }

/* ── utilities ── */
.mono { font-family: var(--f-mono); letter-spacing: -.01em; }
.dim { color: var(--dim); } .muted { color: var(--muted); } .acc { color: var(--acc2); }
.sm { font-size: 11.5px; } .nowrap { white-space: nowrap; } .ra { text-align: right; } .c { text-align: center; }
.row { display: flex; align-items: center; gap: 8px; } .between { justify-content: space-between; } .gap { gap: 10px; } .wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; } .mb { margin-bottom: 12px; } .mt { margin-top: 12px; } .stack { display: grid; gap: 10px; }
.pre { white-space: pre-wrap; word-break: break-word; }
.crit-t { color: var(--crit); }
.ar { font-family: 'Noto Kufi Arabic', var(--f-ui); color: var(--dim); font-size: 12px; direction: rtl; }
.eyebrow { font: 600 10.5px/1 var(--f-mono); letter-spacing: .16em; color: var(--dim); text-transform: uppercase; margin-bottom: 6px; }
.empty { color: var(--dim); padding: 18px; text-align: center; font-size: 12.5px; }
.empty.big { padding: 70px 20px; font-size: 14px; }
.redacted { font-family: var(--f-mono); color: #1c2433; background: #1c2433; border-radius: 3px; user-select: none; letter-spacing: -2px; }
.back { display: inline-block; color: var(--muted); font-size: 12px; margin-bottom: 14px; }
.back:hover { color: var(--acc2); }
.ref { color: var(--acc2); } .ref:hover { text-decoration: underline; text-underline-offset: 3px; }
button.ref { padding: 0; }
.plate { display: inline-block; background: #e8edf5; color: #0b1220; font-weight: 700; padding: 1px 7px; border-radius: 4px; font-size: 11.5px; letter-spacing: .06em; }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(125, 211, 168, .15); animation: blink 2s infinite; }
@keyframes blink { 50% { opacity: .45; } }
kbd { font: 600 10px var(--f-mono); padding: 2px 5px; border-radius: 4px; border: 1px solid var(--line3); background: rgba(255, 255, 255, .04); color: var(--muted); }

/* ── tags / chips ── */
.tag { display: inline-flex; align-items: center; gap: 4px; font: 600 10px/1 var(--f-mono); letter-spacing: .06em; padding: 4px 7px; border-radius: 5px; border: 1px solid var(--line2); color: var(--muted); background: rgba(255, 255, 255, .03); white-space: nowrap; text-transform: uppercase; }
.tag.t-acc  { color: var(--acc2); border-color: rgba(79, 157, 255, .35); background: var(--acc-soft); }
.tag.t-crit { color: #fca5a5; border-color: rgba(239, 68, 68, .45); background: rgba(239, 68, 68, .12); }
.tag.t-high { color: #fcd34d; border-color: rgba(245, 158, 11, .4); background: rgba(245, 158, 11, .1); }
.tag.t-ok   { color: var(--ok); border-color: rgba(125, 211, 168, .3); background: rgba(125, 211, 168, .07); }
.tag.t-dim  { color: var(--dim); border-color: var(--line); }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--dim); }
.dot.t-crit { background: var(--crit); } .dot.t-high { background: var(--high); } .dot.t-acc { background: var(--acc); } .dot.t-ok { background: var(--ok); }
.badges { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 999px; border: 1px solid var(--line2); background: rgba(255, 255, 255, .03); font-size: 12px; color: var(--text); margin: 2px; max-width: 100%; }
.chip.sm { padding: 2px 8px; font-size: 11px; }
.chip b { cursor: pointer; color: var(--dim); font-weight: 400; } .chip b:hover { color: var(--crit); }
a.chip:hover, .chip.on { border-color: rgba(79, 157, 255, .5); background: var(--acc-soft); color: var(--acc2); }
.chip small { color: var(--dim); font: 600 9px var(--f-mono); }
.chiplist { display: flex; flex-wrap: wrap; gap: 4px; }
.rel-type { font: 700 9.5px var(--f-mono); letter-spacing: .08em; color: var(--acc2); border: 1px solid rgba(79, 157, 255, .3); padding: 2px 6px; border-radius: 4px; white-space: nowrap; }
.rel-type.big { font-size: 11px; padding: 4px 9px; }

/* ── avatars / images ── */
.av { --s: 36px; flex: none; width: var(--s); height: var(--s); border-radius: 50%; display: inline-grid; place-items: center; background: #0e1726 center/cover no-repeat; border: 1px solid var(--line2); overflow: hidden; }
.av.sq { border-radius: 8px; }
.av i { font-style: normal; font-size: calc(var(--s) * .42); filter: grayscale(.3); opacity: .8; }
.av.has-img i { display: none; }
.th { display: inline-block; width: 64px; height: 64px; border-radius: 8px; background: #0e1726 center/cover no-repeat; border: 1px solid var(--line2); position: relative; cursor: zoom-in; }
.th.lg { width: 96px; height: 96px; } .th.xl { display: block; width: 100%; height: 280px; margin-bottom: 14px; }
.th b { position: absolute; top: -6px; right: -6px; width: 18px; height: 18px; border-radius: 50%; background: var(--crit); color: #fff; font-size: 12px; display: grid; place-items: center; cursor: pointer; }
.gallery { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
img.zoomed { display: block; max-width: 100%; max-height: 75vh; margin: auto; border-radius: 8px; }

/* ── buttons & inputs ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 8px; font-weight: 600; font-size: 12.5px; letter-spacing: .02em; border: 1px solid var(--line2); background: rgba(255, 255, 255, .03); color: var(--text); transition: .15s; white-space: nowrap; }
.btn:hover { border-color: var(--line3); background: rgba(255, 255, 255, .06); }
.btn:disabled { opacity: .5; pointer-events: none; }
.btn.sm { height: 28px; padding: 0 10px; font-size: 11.5px; }
.btn-primary { background: linear-gradient(180deg, #4f9dff, #2f7fe6); border-color: rgba(124, 182, 255, .5); color: #fff; box-shadow: 0 6px 18px rgba(47, 127, 230, .25); }
.btn-primary:hover { background: linear-gradient(180deg, #62a8ff, #3a88ee); border-color: #7cb6ff; }
.btn-ghost { background: transparent; }
.btn-danger, .btn.danger { color: #fca5a5; border-color: rgba(239, 68, 68, .35); }
.btn-danger { background: rgba(239, 68, 68, .14); }
.btn-danger:hover, .btn.danger:hover { background: rgba(239, 68, 68, .2); border-color: rgba(239, 68, 68, .6); }
.pulse-btn { animation: pulseBtn 1.4s infinite; }
@keyframes pulseBtn { 50% { box-shadow: 0 0 0 4px rgba(79, 157, 255, .25); } }
.ib { width: 28px; height: 28px; border-radius: 7px; display: inline-grid; place-items: center; color: var(--muted); border: 1px solid transparent; font-size: 13px; }
.ib:hover { background: rgba(255, 255, 255, .06); border-color: var(--line2); color: var(--text); }
.ib.danger:hover { color: #fca5a5; border-color: rgba(239, 68, 68, .4); }
.input { width: 100%; height: 36px; padding: 0 11px; border-radius: 8px; border: 1px solid var(--line2); background: rgba(3, 6, 12, .6); color: var(--text); font: inherit; outline: none; transition: border-color .15s, box-shadow .15s; }
textarea.input { height: auto; padding: 9px 11px; resize: vertical; line-height: 1.55; }
.input:focus { border-color: rgba(79, 157, 255, .6); box-shadow: 0 0 0 3px rgba(79, 157, 255, .14); }
.input.sm { height: 32px; width: auto; min-width: 130px; font-size: 12px; }
.input.xs { height: 26px; width: auto; font-size: 11px; padding: 0 6px; border-radius: 6px; }
.input.w90 { width: 90px; flex: none; }
select.input { cursor: pointer; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--dim) 50%), linear-gradient(135deg, var(--dim) 50%, transparent 50%); background-position: calc(100% - 15px) 55%, calc(100% - 10px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 26px; }
select.input option { background: #0b111c; }
.check { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; color: var(--muted); user-select: none; }
.check input { accent-color: var(--acc); width: 15px; height: 15px; }
.search { position: relative; flex: 1; min-width: 220px; max-width: 420px; }
.search > span { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--dim); font-size: 15px; pointer-events: none; }
.search .input { padding-left: 32px; }

/* ── boot / gate ── */
.boot { position: fixed; inset: 0; z-index: 1000; display: grid; place-content: center; justify-items: center; gap: 10px; background: radial-gradient(circle at 50% 42%, #0c1830, #03060c 62%); transition: opacity .5s; }
.boot.out { opacity: 0; pointer-events: none; }
.boot-seal { width: 118px; height: 118px; border-radius: 50%; padding: 4px; background: conic-gradient(from 0deg, var(--acc), transparent 40%, var(--acc) 80%, transparent); animation: spin 3s linear infinite; }
.boot-seal img { width: 100%; height: 100%; border-radius: 50%; display: block; animation: spin 3s linear infinite reverse; background: #04070d; }
@keyframes spin { to { transform: rotate(360deg); } }
.boot-t { font: 700 30px var(--f-head); letter-spacing: .32em; margin-top: 14px; }
.boot-sub { font: 600 10.5px var(--f-mono); letter-spacing: .3em; color: var(--dim); }
.boot-s { color: var(--acc2); font-size: 11px; letter-spacing: .14em; margin-top: 18px; min-height: 16px; }
.boot-bar { width: 280px; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.boot-bar i { display: block; height: 100%; width: 0; background: var(--acc); box-shadow: 0 0 12px var(--acc); transition: width .3s; }
.gate { position: fixed; inset: 0; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, #0b162b, #03060c 65%); z-index: 900; }
.gate-card { width: min(460px, 92vw); text-align: center; padding: 38px 34px; border: 1px solid var(--line2); border-radius: 18px; background: var(--panel2); box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.gate-card img { width: 74px; opacity: .9; }
.gate-icon { font-size: 30px; margin: 10px 0 4px; }
.gate-card h1 { font: 700 26px var(--f-head); letter-spacing: .2em; margin-bottom: 10px; }
.gate-card p { color: var(--muted); margin-bottom: 22px; line-height: 1.8; }

/* ── shell ── */
#app { display: grid; grid-template: var(--top-h) 1fr / var(--nav-w) 1fr; height: 100vh; }
.topbar { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; padding: 0 18px; border-bottom: 1px solid var(--line); background: rgba(5, 8, 14, .86); backdrop-filter: blur(14px); position: relative; z-index: 20; }
.topbar::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, rgba(79, 157, 255, .45), transparent); }
.brand { display: flex; align-items: center; gap: 11px; width: calc(var(--nav-w) - 18px); }
.brand img { width: 34px; height: 34px; border-radius: 50%; box-shadow: 0 0 0 1px var(--line3); }
.brand span { min-width: 0; }
.brand b { display: block; font: 700 16px/1 var(--f-head); letter-spacing: .13em; white-space: nowrap; }
.brand small { display: block; font: 600 8.5px var(--f-mono); letter-spacing: .08em; color: var(--dim); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gsearch { flex: 1; max-width: 560px; height: 36px; display: flex; align-items: center; gap: 9px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--line2); background: rgba(255, 255, 255, .025); color: var(--dim); transition: .15s; }
.gsearch:hover { border-color: rgba(79, 157, 255, .45); color: var(--muted); }
.gsearch .gs-t { flex: 1; text-align: left; font-size: 12.5px; }
.tb-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.bell { position: relative; width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--line2); display: grid; place-items: center; font-size: 15px; }
.bell:hover { border-color: var(--line3); }
.bell .cnt { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--crit); color: #fff; font: 700 10px/18px var(--f-mono); box-shadow: 0 0 0 2px var(--bg); }
.user-chip { display: flex; align-items: center; gap: 9px; padding: 4px 10px 4px 4px; border-radius: 10px; border: 1px solid var(--line2); text-align: left; }
.user-chip:hover { border-color: var(--line3); }
.uc-av { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--acc-soft); color: var(--acc2); font: 700 12px var(--f-mono); }
.uc-t b { display: block; font-size: 12.5px; line-height: 1.2; }
.uc-t small { display: block; color: var(--dim); font-size: 10.5px; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.sidenav { overflow-y: auto; padding: 14px 10px 10px; border-right: 1px solid var(--line); background: rgba(5, 8, 14, .6); display: flex; flex-direction: column; gap: 14px; }
.nav-h { font: 700 9.5px var(--f-mono); letter-spacing: .18em; color: var(--dim); padding: 0 10px 6px; }
.nav-i { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; color: var(--muted); position: relative; transition: .12s; }
.nav-i:hover { background: rgba(255, 255, 255, .035); color: var(--text); }
.nav-i.on { background: var(--acc-soft); color: #fff; }
.nav-i.on::before { content: ''; position: absolute; left: -10px; top: 7px; bottom: 7px; width: 3px; border-radius: 3px; background: var(--acc); box-shadow: 0 0 10px var(--acc); }
.ni { width: 20px; text-align: center; font-size: 14px; flex: none; }
.nl { display: flex; flex-direction: column; font-size: 12.8px; font-weight: 500; line-height: 1.25; min-width: 0; }
.nl small { font-family: 'Noto Kufi Arabic'; font-size: 10px; color: var(--dim); }
.nav-foot { margin-top: auto; padding: 12px 10px 4px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; font-size: 11.5px; color: var(--muted); }
.nav-foot a:hover { color: var(--acc2); }
#main { overflow: auto; position: relative; }
#main.full { overflow: hidden; }

/* ── views ── */
.view { padding: 24px 28px 60px; max-width: 1640px; margin: 0 auto; animation: viewIn .28s ease; }
.view.narrow { max-width: 1000px; }
@keyframes viewIn { from { opacity: 0; transform: translateY(6px); } }
.vhead { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 20px; flex-wrap: wrap; }
.vhead h1, .case-head h1 { font: 700 27px/1.1 var(--f-head); letter-spacing: .06em; }
.vactions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.count { margin-left: auto; color: var(--dim); font-size: 11px; letter-spacing: .1em; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, .02); margin-bottom: 14px; }
.toolbar .seg { margin: 0; }
.seg button { padding: 6px 11px; border-radius: 7px; font: 600 11px var(--f-mono); letter-spacing: .06em; color: var(--muted); }
.seg button b { color: var(--dim); margin-left: 4px; }
.seg button:hover { color: var(--text); }
.seg button.on { background: var(--acc-soft); color: var(--acc2); }
.seg button.on b { color: var(--acc2); }
.rp-note { border: 1px dashed var(--line3); border-radius: var(--r); padding: 10px 14px; color: var(--muted); font-size: 12.5px; margin-bottom: 16px; background: rgba(255, 255, 255, .015); }
.clearance { font: 600 11px var(--f-mono); letter-spacing: .1em; color: var(--muted); padding: 6px 10px; border-radius: 7px; border: 1px solid rgba(79, 157, 255, .3); background: var(--acc-soft); }
.clearance b { color: #fff; }
.restricted { max-width: 520px; margin: 90px auto; text-align: center; padding: 40px; border: 1px solid rgba(239, 68, 68, .3); border-radius: 18px; background: rgba(239, 68, 68, .04); }
.rs-icon { font-size: 40px; } .restricted h2 { font: 700 26px var(--f-head); letter-spacing: .2em; margin: 8px 0; color: #fca5a5; } .restricted p { color: var(--muted); margin-bottom: 18px; }

/* ── cards / grids ── */
.card { border: 1px solid var(--line); border-radius: var(--r2); background: var(--panel); backdrop-filter: blur(10px); padding: 16px; min-width: 0; box-shadow: 0 1px 0 rgba(255, 255, 255, .02) inset; }
.card > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.card h3 { font: 700 13px var(--f-head); letter-spacing: .14em; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.dash-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.dash-grid .span2 { grid-column: span 2; }
.stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.stats.compact { grid-template-columns: repeat(6, minmax(0, 1fr)); margin: 16px 0; }
.stat { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 3px; padding: 15px 16px; border-radius: var(--r2); border: 1px solid var(--line); background: var(--panel); transition: .18s; }
a.stat:hover { border-color: rgba(79, 157, 255, .4); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0, 0, 0, .35); }
.stat::after { content: ''; position: absolute; inset: auto 0 0 0; height: 2px; background: linear-gradient(90deg, var(--acc), transparent); opacity: .55; }
.stat.crit::after { background: linear-gradient(90deg, var(--crit), transparent); } .stat.high::after { background: linear-gradient(90deg, var(--high), transparent); }
.stat b { font-size: 28px; line-height: 1.1; font-weight: 600; }
.stat span:last-child { color: var(--muted); font-size: 11.5px; font-weight: 500; }
.stat .si { position: absolute; right: 12px; top: 10px; font-size: 18px; opacity: .35; }
.stats.compact .stat b { font-size: 18px; }
.live-clock { color: var(--muted); font-size: 12px; }
.sys-online { display: inline-flex; align-items: center; gap: 7px; font: 700 10.5px var(--f-mono); letter-spacing: .14em; color: var(--ok); border: 1px solid rgba(125, 211, 168, .3); padding: 5px 9px; border-radius: 6px; }
.sys-online i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); animation: blink 1.6s infinite; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--crit); box-shadow: 0 0 0 0 rgba(239, 68, 68, .6); animation: ring 1.8s infinite; display: inline-block; }
@keyframes ring { 70% { box-shadow: 0 0 0 9px rgba(239, 68, 68, 0); } 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); } }

/* charts */
.donut { display: flex; align-items: center; gap: 18px; }
.donut svg { width: 128px; height: 128px; flex: none; }
.donut path { transition: opacity .2s; } .donut path:hover { opacity: .75 !important; }
.donut path.crit, .donut i.crit { fill: var(--crit); background: var(--crit); }
.donut .empty-ring { fill: none; stroke: var(--line2); stroke-width: 14; }
.donut .dn { fill: var(--text); font: 600 22px var(--f-mono); text-anchor: middle; }
.donut .dl { fill: var(--dim); font: 600 8px var(--f-mono); letter-spacing: .2em; text-anchor: middle; }
.donut ul { list-style: none; display: grid; gap: 5px; font-size: 11.5px; color: var(--muted); flex: 1; }
.donut li { display: flex; align-items: center; gap: 7px; } .donut li b { margin-left: auto; color: var(--text); font-family: var(--f-mono); }
.donut li i { width: 9px; height: 9px; border-radius: 2px; }
.hbars { display: grid; gap: 9px; }
.hb { display: grid; grid-template-columns: 110px 1fr 34px; align-items: center; gap: 10px; font-size: 11.5px; color: var(--muted); }
.hb span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb div { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .04); overflow: hidden; }
.hb i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, rgba(79, 157, 255, .55), var(--acc)); transition: width .6s ease; }
.hb i.crit { background: linear-gradient(90deg, rgba(239, 68, 68, .5), var(--crit)); } .hb i.high { background: linear-gradient(90deg, rgba(245, 158, 11, .45), var(--high)); }
.hb b { text-align: right; color: var(--text); font-family: var(--f-mono); }
svg.area { width: 100%; height: 150px; display: block; }
svg.area .gl { stroke: var(--line); } svg.area .ln { fill: none; stroke: var(--acc); stroke-width: 2; filter: drop-shadow(0 0 6px rgba(79, 157, 255, .5)); }
svg.area .pt { fill: var(--bg); stroke: var(--acc); stroke-width: 1.5; } svg.area .ax { fill: var(--dim); font: 9px var(--f-mono); text-anchor: middle; }

/* lists / feed */
.feed { max-height: 360px; overflow: auto; display: grid; gap: 2px; }
.fi { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: baseline; padding: 7px 8px; border-radius: 7px; font-size: 12.5px; }
.fi:hover { background: rgba(255, 255, 255, .025); }
.fi .ft { color: var(--acc2); font-size: 11px; }
.fi.fresh { animation: fresh 2.4s ease; }
@keyframes fresh { from { background: rgba(79, 157, 255, .18); } }
.li-row { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 7px; font-size: 12.5px; min-width: 0; }
a.li-row:hover { background: rgba(255, 255, 255, .03); }
.li-row .grow { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.online-list { display: grid; gap: 8px; }
.online-list .on { display: flex; align-items: center; gap: 9px; font-size: 12.5px; }
.online-list small { margin-left: auto; }

/* tables */
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: var(--r2); background: var(--panel); }
table.grid { width: 100%; border-collapse: collapse; font-size: 12.8px; }
table.grid th { position: sticky; top: 0; z-index: 1; background: #0a0f19; text-align: left; font: 700 10px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); padding: 11px 12px; border-bottom: 1px solid var(--line2); white-space: nowrap; }
table.grid th.sortable { cursor: pointer; } table.grid th.sortable:hover { color: var(--muted); }
table.grid th.asc::after { content: ' ▲'; color: var(--acc); } table.grid th.desc::after { content: ' ▼'; color: var(--acc); }
table.grid td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.grid tbody tr { transition: background .12s; }
table.grid tbody tr[data-id] { cursor: pointer; }
table.grid tbody tr:hover { background: rgba(79, 157, 255, .045); }
table.grid tbody tr:last-child td { border-bottom: 0; }
.cases-table .ct { font-weight: 600; }
.team { display: flex; gap: 3px; align-items: center; }
.ini { width: 24px; height: 24px; border-radius: 6px; display: grid; place-items: center; font: 700 9.5px var(--f-mono); background: rgba(255, 255, 255, .05); border: 1px solid var(--line2); color: var(--muted); }
table.matrix td.c input { accent-color: var(--acc); width: 16px; height: 16px; }

/* ── modal / panel / ctx / toast ── */
.inv-modal-back { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; padding: 20px; background: rgba(2, 4, 8, .72); backdrop-filter: blur(6px); animation: fadeIn .16s; }
.inv-modal-back.out { opacity: 0; transition: opacity .15s; }
@keyframes fadeIn { from { opacity: 0; } }
.inv-modal { width: min(var(--w), 100%); max-height: calc(100vh - 40px); display: flex; flex-direction: column; border: 1px solid var(--line2); border-radius: 16px; background: var(--panel2); box-shadow: 0 30px 90px rgba(0, 0, 0, .7), 0 0 0 1px rgba(79, 157, 255, .06); animation: pop .2s cubic-bezier(.2, .9, .3, 1.2); }
@keyframes pop { from { transform: translateY(10px) scale(.98); opacity: 0; } }
.inv-modal > header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 18px 20px 12px; border-bottom: 1px solid var(--line); }
.inv-modal h3 { font: 700 18px var(--f-head); letter-spacing: .12em; }
.inv-modal header p { color: var(--dim); font-size: 12px; margin-top: 2px; }
.x { width: 30px; height: 30px; border-radius: 8px; color: var(--dim); flex: none; }
.x:hover { background: rgba(255, 255, 255, .06); color: var(--text); }
.inv-modal .body { padding: 18px 20px; overflow: auto; }
.inv-modal footer { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 20px 16px; border-top: 1px solid var(--line); }
.confirm-text { color: var(--muted); line-height: 1.7; }
.inv-panel { position: fixed; top: var(--top-h); right: 0; bottom: 0; width: min(var(--w), 100vw); z-index: 400; background: rgba(8, 12, 20, .97); backdrop-filter: blur(16px); border-left: 1px solid var(--line2); box-shadow: -30px 0 70px rgba(0, 0, 0, .55); display: flex; flex-direction: column; transform: translateX(104%); transition: transform .24s cubic-bezier(.2, .8, .2, 1); }
.inv-panel.in { transform: none; }
.inv-panel > header { display: flex; justify-content: space-between; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.inv-panel h3 { font: 700 15px var(--f-head); letter-spacing: .1em; }
.psub { font-size: 11px; }
.pbody { padding: 16px; overflow: auto; flex: 1; }
.inv-ctx { position: fixed; z-index: 700; min-width: 210px; padding: 5px; border-radius: 11px; border: 1px solid var(--line2); background: rgba(10, 14, 23, .98); box-shadow: 0 18px 50px rgba(0, 0, 0, .6); animation: pop .12s; }
.inv-ctx button { display: flex; align-items: center; gap: 9px; width: 100%; padding: 7px 9px; border-radius: 7px; font-size: 12.5px; text-align: left; }
.inv-ctx button:hover:not(:disabled) { background: var(--acc-soft); color: #fff; }
.inv-ctx button:disabled { opacity: .4; cursor: default; }
.inv-ctx button.danger { color: #fca5a5; } .inv-ctx button.danger:hover { background: rgba(239, 68, 68, .15); }
.inv-ctx .ci { width: 18px; text-align: center; opacity: .85; }
.inv-ctx kbd { margin-left: auto; }
.inv-ctx hr { border: 0; border-top: 1px solid var(--line); margin: 4px 2px; }
.inv-toasts { position: fixed; right: 18px; bottom: 18px; z-index: 900; display: grid; gap: 8px; }
.inv-toast { min-width: 240px; max-width: 420px; padding: 11px 14px; border-radius: 10px; border: 1px solid var(--line2); background: rgba(10, 14, 23, .97); box-shadow: 0 14px 40px rgba(0, 0, 0, .5); font-size: 12.8px; border-left: 3px solid var(--ok); animation: toastIn .22s ease; }
.inv-toast.k-err { border-left-color: var(--crit); } .inv-toast.k-info { border-left-color: var(--acc); }
.inv-toast.out { opacity: 0; transform: translateX(20px); transition: .3s; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } }

/* ── forms ── */
.inv-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.span2 { grid-column: span 2; }
.field > label { font: 600 10.5px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.field > label b { color: var(--crit); }
.field small { color: var(--dim); font-size: 11px; }
.field.err .input, .field.err .picker { border-color: rgba(239, 68, 68, .7); box-shadow: 0 0 0 3px rgba(239, 68, 68, .12); }
.picker { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 2px; min-height: 36px; padding: 3px; border-radius: 8px; border: 1px solid var(--line2); background: rgba(3, 6, 12, .6); }
.picker .chips { display: contents; }
.picker .input { flex: 1; min-width: 140px; border: 0; height: 28px; background: transparent; box-shadow: none; }
.picker .pop { display: none; position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 60; max-height: 240px; overflow: auto; padding: 4px; border-radius: 10px; border: 1px solid var(--line2); background: #0a0f19; box-shadow: 0 16px 40px rgba(0, 0, 0, .55); }
.picker .pop.open { display: block; }
.picker .pop button { display: flex; justify-content: space-between; gap: 10px; width: 100%; padding: 7px 9px; border-radius: 6px; font-size: 12.5px; text-align: left; }
.picker .pop button:hover { background: var(--acc-soft); }
.picker .pop small { color: var(--dim); font-family: var(--f-mono); }
.links-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.links-grid .lg span { display: block; font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.avatar-input { display: flex; align-items: center; gap: 16px; }
.avatar-input small { display: block; margin-top: 6px; }
.images-input .thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }

/* ── profile ── */
.profile .ph { display: flex; gap: 16px; align-items: center; margin-bottom: 14px; }
.profile.page .ph { padding: 22px; border: 1px solid var(--line); border-radius: var(--r2); background: linear-gradient(135deg, rgba(79, 157, 255, .06), transparent 60%), var(--panel); }
.ph .av { box-shadow: 0 0 0 3px rgba(79, 157, 255, .15), 0 10px 30px rgba(0, 0, 0, .5); }
.ph-icon { width: 64px; height: 64px; border-radius: 14px; display: grid; place-items: center; font-size: 28px; background: var(--acc-soft); border: 1px solid rgba(79, 157, 255, .3); flex: none; }
.ph-icon.sm { width: 44px; height: 44px; font-size: 19px; border-radius: 11px; }
.ph-t h2 { font: 700 22px/1.15 var(--f-head); letter-spacing: .04em; }
.ptools, .pactions { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.pactions { padding: 10px; border-radius: var(--r); border: 1px solid rgba(79, 157, 255, .25); background: var(--acc-soft); }
.decision { padding: 10px 12px; border-radius: var(--r); border: 1px solid var(--line2); margin-bottom: 14px; font-size: 12.5px; color: var(--muted); display: grid; gap: 6px; }
.conf-banner { padding: 9px 12px; border-radius: var(--r); border: 1px solid rgba(245, 158, 11, .35); background: rgba(245, 158, 11, .07); color: #fcd34d; font: 700 10.5px var(--f-mono); letter-spacing: .1em; margin-bottom: 14px; }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--line); margin-bottom: 14px; }
.kvi { background: #090d16; padding: 10px 12px; min-width: 0; }
.kvi.span2 { grid-column: span 2; }
.kvi label { display: block; font: 600 9.5px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin-bottom: 4px; }
.psec { margin-bottom: 16px; }
.psec h4, h4.sub { font: 700 11px var(--f-mono); letter-spacing: .14em; color: var(--dim); margin: 0 0 8px; }
h4.sub { margin-top: 16px; }
.relgroup { display: grid; grid-template-columns: 110px 1fr; gap: 8px; align-items: start; margin-bottom: 8px; font-size: 12px; }
.relgroup > span { color: var(--dim); padding-top: 5px; }
.rel-list { display: grid; gap: 4px; }
.rel-row { display: flex; align-items: center; gap: 9px; padding: 7px 9px; border-radius: 8px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); font-size: 12.5px; text-align: left; width: 100%; }
.rel-row:hover { border-color: rgba(79, 157, 255, .4); }
.rel-row > span[dir] { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.note-mini { padding: 8px 10px; border-radius: 8px; border-left: 2px solid var(--acc); background: rgba(255, 255, 255, .02); margin-bottom: 6px; font-size: 12.5px; display: grid; gap: 3px; }
.note-mini small { color: var(--dim); font-size: 10.5px; }
.mini-tl { display: grid; gap: 6px; }
.mini-tl .mt { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; font-size: 12px; align-items: baseline; }
.mini-tl .mt b[data-del] { cursor: pointer; color: var(--dim); } .mini-tl .mt b[data-del]:hover { color: var(--crit); }
.meta { font-size: 11px; margin-top: 10px; }

/* ── case ── */
.class-banner { text-align: center; font: 700 10.5px var(--f-mono); letter-spacing: .4em; padding: 5px; border-radius: 6px; margin-bottom: 16px; color: var(--muted); border: 1px solid var(--line2); background: rgba(255, 255, 255, .02); }
.class-banner.c-confidential { color: #fcd34d; border-color: rgba(245, 158, 11, .35); background: rgba(245, 158, 11, .06); }
.class-banner.c-restricted { color: #fdba74; border-color: rgba(249, 115, 22, .4); background: rgba(249, 115, 22, .07); }
.class-banner.c-top-secret { color: #fecaca; border-color: rgba(239, 68, 68, .55); background: repeating-linear-gradient(135deg, rgba(239, 68, 68, .14) 0 12px, rgba(239, 68, 68, .06) 12px 24px); }
.case-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.tabs { display: flex; gap: 2px; overflow-x: auto; border-bottom: 1px solid var(--line2); margin-bottom: 18px; }
.tabs button { padding: 10px 13px; font-size: 12.5px; font-weight: 500; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; margin-bottom: -1px; }
.tabs button:hover { color: var(--text); }
.tabs button.on { color: #fff; border-bottom-color: var(--acc); }
.tabs button b { font: 600 9.5px var(--f-mono); margin-left: 6px; padding: 1px 5px; border-radius: 4px; background: rgba(255, 255, 255, .06); color: var(--muted); }
.tab-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.ov { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 14px; }
.ov-main, .ov-side { display: grid; gap: 14px; align-content: start; }
.card.internal { border-color: rgba(245, 158, 11, .25); }
.facts dl { display: grid; grid-template-columns: 96px 1fr; gap: 8px 12px; font-size: 12.5px; }
.facts dt { color: var(--dim); font: 600 10px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; padding-top: 3px; }
.mini-stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.mini-stat { padding: 12px; border-radius: var(--r); border: 1px solid var(--line); background: var(--panel); text-align: left; display: grid; gap: 2px; transition: .15s; }
.mini-stat:hover { border-color: rgba(79, 157, 255, .4); }
.mini-stat b { font-size: 20px; } .mini-stat span { font-size: 11px; color: var(--muted); }
.ecards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.ecard { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: var(--r); border: 1px solid var(--line); background: var(--panel); cursor: pointer; transition: .15s; min-width: 0; }
.ecard:hover { border-color: rgba(79, 157, 255, .45); transform: translateY(-1px); }
.ec-t { flex: 1; min-width: 0; } .ec-t b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl { position: relative; display: grid; gap: 2px; padding-left: 4px; }
.tl-day { font: 700 10.5px var(--f-mono); letter-spacing: .16em; color: var(--dim); margin: 14px 0 6px 76px; }
.tl-item { display: grid; grid-template-columns: 60px 20px 1fr; gap: 0 4px; position: relative; cursor: default; }
.tl-item[data-tl] { cursor: pointer; }
.tl-time { text-align: right; color: var(--acc2); font-size: 12px; padding-top: 10px; }
.tl-dot { position: relative; }
.tl-dot::before { content: ''; position: absolute; left: 9px; top: 0; bottom: 0; width: 1px; background: var(--line2); }
.tl-dot::after { content: ''; position: absolute; left: 5px; top: 14px; width: 9px; height: 9px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 0 3px rgba(79, 157, 255, .18); }
.tl-item.sys .tl-dot::after { background: var(--bg); border: 1px solid var(--line3); box-shadow: none; }
.tl-body { padding: 8px 12px; margin: 2px 0; border-radius: 9px; transition: background .15s; }
.tl-item[data-tl]:hover .tl-body { background: rgba(255, 255, 255, .03); }
.tl-item.sys .tl-text { color: var(--muted); font-size: 12.2px; }
.tl-meta { display: flex; gap: 8px; align-items: center; font-size: 11px; color: var(--dim); margin-top: 3px; }
.kanban { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.kanban.wide { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.kcol { border: 1px solid var(--line); border-radius: var(--r2); background: rgba(255, 255, 255, .015); padding: 10px; display: grid; gap: 8px; align-content: start; min-height: 160px; }
.kcol > header { display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 2px 2px 6px; border-bottom: 1px solid var(--line); }
.kcard { display: grid; gap: 7px; padding: 11px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); cursor: pointer; transition: .15s; font-size: 12.5px; }
.kcard:hover { border-color: rgba(79, 157, 255, .4); }
.notes-wall { columns: 3 280px; column-gap: 12px; }
.note-card { break-inside: avoid; margin-bottom: 12px; padding: 13px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); display: grid; gap: 8px; position: relative; font-size: 12.8px; }
.note-card.pinned { border-color: rgba(79, 157, 255, .35); box-shadow: inset 3px 0 0 var(--acc); }
.nc-actions { display: flex; justify-content: flex-end; gap: 2px; opacity: 0; transition: .15s; }
.note-card:hover .nc-actions { opacity: 1; }
.tag-row { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 12px; }
.board-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.board-card { display: grid; gap: 5px; padding: 16px; border-radius: var(--r2); border: 1px solid var(--line); background: linear-gradient(160deg, rgba(79, 157, 255, .05), transparent 55%), var(--panel); transition: .18s; position: relative; overflow: hidden; }
.board-card::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(79, 157, 255, .18) 1px, transparent 1px); background-size: 16px 16px; opacity: .25; pointer-events: none; }
.board-card:hover { border-color: rgba(79, 157, 255, .45); transform: translateY(-2px); }
.bc-glyph { font-size: 26px; }

/* ── gangs ── */
.gang-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; }
.gang-card { display: grid; gap: 12px; padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); transition: .18s; position: relative; overflow: hidden; }
.gang-card::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--line3); }
.gang-card.th-CRITICAL::after { background: var(--crit); box-shadow: 0 0 12px var(--crit); } .gang-card.th-HIGH::after { background: var(--high); }
.gang-card:hover { border-color: var(--line3); transform: translateY(-2px); box-shadow: 0 14px 34px rgba(0, 0, 0, .4); }
.gc-top { display: flex; gap: 14px; align-items: center; }
.gc-top h3 { font: 700 19px var(--f-head); letter-spacing: .08em; text-transform: uppercase; }
.gc-leader { display: flex; justify-content: space-between; font-size: 12.5px; padding: 8px 10px; border-radius: 8px; background: rgba(255, 255, 255, .025); }
.gc-leader span { color: var(--dim); }
.gc-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; text-align: center; }
.gc-stats b { display: block; font-size: 16px; } .gc-stats span { font-size: 9.5px; color: var(--dim); text-transform: uppercase; letter-spacing: .06em; }
.gang-hero { display: flex; align-items: center; gap: 22px; padding: 24px; border-radius: 18px; border: 1px solid var(--line); background: radial-gradient(ellipse at 0% 0%, rgba(79, 157, 255, .09), transparent 60%), var(--panel); flex-wrap: wrap; }
.gang-hero.th-CRITICAL { border-color: rgba(239, 68, 68, .35); background: radial-gradient(ellipse at 0% 0%, rgba(239, 68, 68, .1), transparent 60%), var(--panel); }
.gh-t { flex: 1; min-width: 240px; } .gh-t h1 { font: 700 34px/1 var(--f-head); letter-spacing: .1em; text-transform: uppercase; }
.hier { display: grid; justify-items: center; gap: 0; padding: 6px 0; }
.hier-level { display: grid; justify-items: center; gap: 8px; width: 100%; }
.hl-label { font: 700 10px var(--f-mono); letter-spacing: .2em; color: var(--dim); text-transform: uppercase; }
.hl-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.hier-link { width: 1px; height: 26px; background: linear-gradient(var(--line3), transparent); margin: 6px 0; }
.hier-node { width: 140px; display: grid; justify-items: center; gap: 4px; padding: 12px 8px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); cursor: pointer; text-align: center; transition: .15s; font-size: 12.5px; }
.hier-node:hover { border-color: rgba(79, 157, 255, .45); }
.hier-node small { font: 600 9px var(--f-mono); letter-spacing: .12em; color: var(--dim); }
.hier-level:first-child .hier-node { border-color: rgba(239, 68, 68, .35); box-shadow: 0 0 24px rgba(239, 68, 68, .08); }

/* ── BOLO ── */
.bolo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.bolo { border-radius: 14px; border: 1px solid var(--line2); background: var(--panel); overflow: hidden; cursor: pointer; transition: .18s; display: flex; flex-direction: column; }
.bolo:hover { transform: translateY(-2px); border-color: var(--line3); }
.bolo-strip { display: flex; align-items: center; gap: 10px; padding: 8px 12px; font: 700 11px var(--f-mono); letter-spacing: .24em; background: repeating-linear-gradient(135deg, rgba(245, 158, 11, .16) 0 10px, rgba(245, 158, 11, .06) 10px 20px); color: #fcd34d; }
.bolo-strip .tag { margin-left: auto; }
.bolo.p-LOW .bolo-strip, .bolo.p-MEDIUM .bolo-strip { background: rgba(79, 157, 255, .1); color: var(--acc2); }
.bolo.p-CRITICAL .bolo-strip { background: repeating-linear-gradient(135deg, rgba(239, 68, 68, .25) 0 10px, rgba(239, 68, 68, .1) 10px 20px); color: #fecaca; }
.bolo.hot { box-shadow: 0 0 0 1px rgba(239, 68, 68, .45), 0 0 30px rgba(239, 68, 68, .12); animation: hot 2.4s infinite; }
@keyframes hot { 50% { box-shadow: 0 0 0 1px rgba(239, 68, 68, .7), 0 0 40px rgba(239, 68, 68, .2); } }
.bolo-body { display: flex; gap: 14px; padding: 14px; flex: 1; }
.bolo-icon { width: 64px; height: 64px; border-radius: 12px; display: grid; place-items: center; font-size: 28px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); flex: none; }
.bolo-body h3 { font: 700 17px var(--f-head); letter-spacing: .05em; margin: 2px 0 6px; }
.bolo-foot { display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-top: 1px solid var(--line); }

/* ── workspace / insights / settings ── */
.assigned-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.assigned-grid > div > span { display: block; font: 600 10px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 6px; }
.ws-list { max-height: 300px; overflow: auto; }
.key-findings { margin-bottom: 4px; }
.finding { display: flex; gap: 10px; padding: 9px 4px; border-bottom: 1px solid var(--line); font-size: 13px; line-height: 1.6; }
.finding:last-child { border-bottom: 0; }
.finding > :first-child { color: var(--acc); }
.rank-map { columns: 3 260px; column-gap: 16px; }
.rm-sec { break-inside: avoid; margin-bottom: 14px; }
.rm-sec h4 { font: 700 11px 'Noto Kufi Arabic', var(--f-ui); color: var(--acc2); margin-bottom: 6px; }
.rm-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 3px 0; font-size: 12px; }
.alert-list { display: grid; gap: 6px; }
.alert-item { display: grid; gap: 4px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); transition: .15s; }
.alert-item:hover { border-color: rgba(79, 157, 255, .4); }
.alert-item.unread { border-left: 3px solid var(--acc); background: var(--acc-soft); }
.alert-item .at { font-size: 12.8px; }
.kbd-list { display: grid; gap: 8px; }
.kbd-list div { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; color: var(--muted); }

/* ── command palette ── */
.inv-palette-back { position: fixed; inset: 0; z-index: 800; background: rgba(2, 4, 8, .6); backdrop-filter: blur(5px); display: flex; justify-content: center; padding-top: 12vh; animation: fadeIn .12s; }
.inv-palette { width: min(680px, 94vw); max-height: 70vh; display: flex; flex-direction: column; border-radius: 16px; border: 1px solid var(--line2); background: rgba(9, 13, 22, .98); box-shadow: 0 40px 100px rgba(0, 0, 0, .7), var(--acc-glow); overflow: hidden; animation: pop .16s; }
.pl-in { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.pl-in > span { color: var(--acc); font-size: 18px; }
.pl-in input { flex: 1; background: none; border: 0; outline: none; color: var(--text); font: 15px var(--f-ui); }
.pl-results { overflow: auto; padding: 6px; }
.pl-group { font: 700 9.5px var(--f-mono); letter-spacing: .16em; color: var(--dim); padding: 10px 10px 4px; text-transform: uppercase; }
.pl-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border-radius: 9px; text-align: left; font-size: 13px; }
.pl-item.on { background: var(--acc-soft); box-shadow: inset 2px 0 0 var(--acc); }
.pl-ic { width: 26px; text-align: center; }
.pl-l { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-s { color: var(--dim); font-size: 11.5px; margin-left: auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 40%; }
.pl-foot { display: flex; gap: 16px; padding: 9px 14px; border-top: 1px solid var(--line); font-size: 11px; color: var(--dim); }

/* ── documents ── */
.doc-view { max-width: 1180px; }
.doc-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.doc-top .back { margin: 0 6px 0 0; }
.doc-title { flex: 1; min-width: 220px; height: 38px; font: 700 17px var(--f-head); letter-spacing: .04em; }
.doc-tools { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; gap: 3px; padding: 6px; border-radius: 10px; border: 1px solid var(--line2); background: rgba(9, 13, 22, .96); margin-bottom: 14px; }
.doc-tools button { min-width: 30px; height: 30px; padding: 0 8px; border-radius: 7px; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.doc-tools button:hover { background: rgba(255, 255, 255, .06); color: var(--text); }
.doc-tools .sep { width: 1px; background: var(--line2); margin: 4px 4px; }
.doc-paper { max-width: 880px; margin: 0 auto; border-radius: 6px; background: #0c111b; border: 1px solid var(--line2); box-shadow: 0 30px 80px rgba(0, 0, 0, .5); padding: 30px 56px 60px; position: relative; }
.doc-class { text-align: center; font: 700 10.5px var(--f-mono); letter-spacing: .5em; padding: 4px; border: 1px solid var(--line3); color: var(--muted); margin-bottom: 20px; }
.doc-class.c-confidential { color: #fcd34d; border-color: rgba(245, 158, 11, .4); } .doc-class.c-restricted { color: #fdba74; border-color: rgba(249, 115, 22, .45); } .doc-class.c-top-secret { color: #fecaca; border-color: rgba(239, 68, 68, .6); background: rgba(239, 68, 68, .08); }
.doc-head { text-align: center; border-bottom: 1px solid var(--line2); padding-bottom: 14px; margin-bottom: 22px; }
.doc-head div { font: 700 14px var(--f-head); letter-spacing: .4em; }
.doc-head small { color: var(--dim); font-size: 11.5px; }
.doc-page { min-height: 520px; outline: none; font: 15px/1.8 Georgia, 'Noto Kufi Arabic', serif; color: #dfe5ee; }
.doc-page h1 { font: 700 26px var(--f-head); letter-spacing: .05em; margin: 18px 0 8px; }
.doc-page h2 { font: 700 18px var(--f-head); letter-spacing: .08em; color: var(--acc2); margin: 22px 0 6px; padding-bottom: 4px; border-bottom: 1px solid var(--line); text-transform: uppercase; }
.doc-page h3 { font: 700 15px var(--f-head); margin: 16px 0 4px; }
.doc-page p { margin: 6px 0; } .doc-page ul, .doc-page ol { padding-inline-start: 24px; }
.doc-page blockquote { border-inline-start: 3px solid var(--acc); padding: 4px 14px; color: var(--muted); margin: 10px 0; background: rgba(255, 255, 255, .02); }
.doc-page table { width: 100%; border-collapse: collapse; margin: 10px 0; font: 13px var(--f-ui); }
.doc-page td, .doc-page th { border: 1px solid var(--line2); padding: 6px 9px; text-align: start; }
.doc-page th { background: rgba(255, 255, 255, .03); }
.doc-page mark { background: var(--acc-soft); color: var(--acc2); font: 600 12px var(--f-mono); padding: 1px 5px; border-radius: 4px; }
.doc-page hr { border: 0; border-top: 1px solid var(--line2); margin: 16px 0; }
.doc-page a { color: var(--acc2); }
.doc-foot { max-width: 880px; margin: 8px auto 0; text-align: right; }
.doc-row .grow { font-weight: 500; }

/* =======================================================
   NETWORK BUILDER
   ======================================================= */
.net { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--bg); }
.net-top { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-bottom: 1px solid var(--line); background: rgba(6, 9, 16, .92); flex-wrap: wrap; z-index: 5; }
.nb-board { display: flex; align-items: center; gap: 8px; min-width: 0; }
.nb-name { display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line2); max-width: 320px; }
.nb-name b { font: 700 14px var(--f-head); letter-spacing: .06em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nb-name:hover { border-color: var(--line3); }
.nb-tools { display: flex; align-items: center; gap: 3px; margin-left: auto; flex-wrap: wrap; }
.nb-tools button { height: 30px; padding: 0 10px; border-radius: 7px; font-size: 12px; font-weight: 500; color: var(--muted); border: 1px solid transparent; }
.nb-tools button:hover { background: rgba(255, 255, 255, .05); color: var(--text); border-color: var(--line2); }
.nb-tools button.on { color: var(--acc2); background: var(--acc-soft); border-color: rgba(79, 157, 255, .35); }
.nb-tools button.accent { color: #fff; background: var(--acc-soft); border-color: rgba(79, 157, 255, .4); }
.nb-tools .sep { width: 1px; height: 20px; background: var(--line2); margin: 0 6px; }
.nb-tools .zl { min-width: 46px; text-align: center; font-size: 11.5px; color: var(--muted); }
.net-stage {
    position: relative; flex: 1; overflow: hidden; cursor: default; outline: none; touch-action: none;
    background-color: #04070e;
    background-image:
        linear-gradient(rgba(79, 157, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(79, 157, 255, .045) 1px, transparent 1px),
        linear-gradient(rgba(79, 157, 255, .09) 1px, transparent 1px), linear-gradient(90deg, rgba(79, 157, 255, .09) 1px, transparent 1px);
}
.net-stage.nogrid { background-image: none; }
.net-stage::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, .55)); }
.net-stage.panning, .net-stage.panning * { cursor: grabbing !important; }
.net-world { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
.net-edges { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
.net-edges .ed { pointer-events: none; }
.net-edges .hit { fill: none; stroke: transparent; stroke-width: 14; pointer-events: stroke; cursor: pointer; }
.net-edges .ln { fill: none; stroke: rgba(148, 163, 184, .5); stroke-width: 1.6; transition: stroke .15s; }
.net-edges .cf-confirmed .ln { stroke: rgba(226, 232, 240, .82); stroke-width: 2.1; }
.net-edges .cf-high .ln { stroke: rgba(203, 213, 225, .7); stroke-width: 1.9; }
.net-edges .cf-medium .ln { stroke: rgba(148, 163, 184, .6); }
.net-edges .cf-low .ln { stroke: rgba(148, 163, 184, .45); }
.net-edges .ed:hover .ln { stroke: var(--acc2); }
.net-edges .ed.sel .ln { stroke: var(--acc); stroke-width: 2.8; filter: drop-shadow(0 0 5px rgba(79, 157, 255, .8)); }
.net-edges .ed.dim { opacity: .08; }
.net-edges .lb { pointer-events: auto; cursor: pointer; }
.net-edges .lb rect { fill: #080d17; stroke: rgba(148, 163, 184, .28); }
.net-edges .ed.sel .lb rect, .net-edges .ed:hover .lb rect { stroke: var(--acc); }
.net-edges .lb text { fill: #aab5c6; font: 600 9.5px var(--f-mono); letter-spacing: .06em; text-anchor: middle; }
.net-edges marker path { fill: rgba(226, 232, 240, .85); }
.net-edges .temp { fill: none; stroke: var(--acc); stroke-width: 2; stroke-dasharray: 6 5; }
.net-edges .attach { fill: none; stroke: rgba(148, 163, 184, .4); stroke-width: 1.2; stroke-dasharray: 2 5; }
.net-nodes { position: absolute; left: 0; top: 0; }

/* circle nodes */
.nn { position: absolute; left: 0; top: 0; width: 84px; height: 84px; user-select: none; cursor: grab; }
.nn-ring { width: 84px; height: 84px; border-radius: 50%; padding: 3px; background: #0a111f; border: 2px solid rgba(148, 163, 184, .35); box-shadow: 0 0 0 5px rgba(4, 7, 14, .75), 0 10px 28px rgba(0, 0, 0, .6); transition: border-color .15s, box-shadow .15s, transform .15s; }
.nn-ring .av { width: 100% !important; height: 100% !important; border: 0; }
.nn:hover .nn-ring { transform: scale(1.05); border-color: rgba(203, 213, 225, .6); }
.nn.t-SUSPECT .nn-ring { border-color: rgba(226, 232, 240, .55); }
.nn.t-INVESTIGATOR .nn-ring { border-color: var(--acc); box-shadow: 0 0 0 5px rgba(4, 7, 14, .75), 0 0 26px rgba(79, 157, 255, .35); }
.nn.t-GANG .nn-ring { border-width: 3px; border-style: double; border-color: rgba(226, 232, 240, .7); }
.nn.t-CASE .nn-ring { border-color: var(--acc2); border-style: dashed; }
.nn.t-VICTIM .nn-ring, .nn.t-WITNESS .nn-ring { border-color: rgba(148, 163, 184, .45); }
.nn.th-HIGH .nn-ring { border-color: var(--high); box-shadow: 0 0 0 5px rgba(4, 7, 14, .75), 0 0 20px rgba(245, 158, 11, .25); }
.nn.th-CRITICAL .nn-ring { border-color: var(--crit); box-shadow: 0 0 0 5px rgba(4, 7, 14, .75), 0 0 26px rgba(239, 68, 68, .4); }
.nn.sel .nn-ring { border-color: var(--acc); box-shadow: 0 0 0 5px rgba(4, 7, 14, .75), 0 0 0 7px rgba(79, 157, 255, .55), 0 0 30px rgba(79, 157, 255, .45); }
/* خلفية الاسم تغطي الخطوط اللي تمر تحته */
.nn-cap { position: absolute; top: 92px; left: 50%; transform: translateX(-50%); width: max-content; max-width: 184px; padding: 3px 8px 4px; border-radius: 7px; background: rgba(4, 7, 14, .86); text-align: center; display: grid; gap: 1px; pointer-events: none; }
.nn-cap b { font-size: 12.5px; font-weight: 600; color: #f1f5f9; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nn-cap span { font: 600 9px var(--f-mono); letter-spacing: .12em; color: var(--muted); text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nn-cap em { font: 700 8.5px var(--f-mono); letter-spacing: .08em; font-style: normal; color: var(--dim); white-space: nowrap; }
.nn-cap em.t-crit { color: #fca5a5; } .nn-cap em.t-high { color: #fcd34d; } .nn-cap em.t-acc { color: var(--acc2); } .nn-cap em.t-ok { color: var(--ok); }
.nn-handle { position: absolute; right: -2px; top: -2px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--acc); color: #fff; font-weight: 700; font-size: 15px; line-height: 1; cursor: crosshair; opacity: 0; transform: scale(.6); transition: .15s; box-shadow: 0 0 0 3px #04070e, 0 0 14px rgba(79, 157, 255, .7); }
.nn:hover .nn-handle, .nn.sel .nn-handle { opacity: 1; transform: none; }
.nn-lock { position: absolute; left: -2px; top: -2px; font-size: 12px; }
.nn.locked { cursor: default; }
.nn.ghost { opacity: .35; }
.nn.off, .nc.off, .nlabel.off { display: none; }
.nn.dim, .nc.dim, .nlabel.dim { opacity: .12; }
.nn.d1 .nn-ring { border-color: var(--acc); box-shadow: 0 0 0 5px rgba(4, 7, 14, .75), 0 0 22px rgba(79, 157, 255, .4); }
.nn.d2 { opacity: .8; } .nn.d3 { opacity: .55; }
.nn.d0 .nn-ring, .nn.d0.sel .nn-ring { box-shadow: 0 0 0 5px rgba(4, 7, 14, .75), 0 0 0 8px var(--acc), 0 0 40px rgba(79, 157, 255, .6); }
.nn.connectable:hover .nn-ring { border-color: var(--acc); box-shadow: 0 0 0 5px rgba(4, 7, 14, .75), 0 0 0 8px rgba(79, 157, 255, .4); }
.nn.pulse .nn-ring { animation: nodePulse 1.4s ease 2; }
@keyframes nodePulse { 50% { box-shadow: 0 0 0 5px rgba(4, 7, 14, .75), 0 0 0 16px rgba(79, 157, 255, .25), 0 0 50px rgba(79, 157, 255, .6); } }

/* cards on the board */
.nc { position: absolute; left: 0; top: 0; display: flex; flex-direction: column; border-radius: 10px; overflow: hidden; background: rgba(10, 15, 25, .95); border: 1px solid var(--line3); box-shadow: 0 14px 40px rgba(0, 0, 0, .55); cursor: grab; user-select: none; }
.nc > header { display: flex; justify-content: space-between; padding: 6px 10px; font: 700 9px var(--f-mono); letter-spacing: .24em; color: var(--muted); border-bottom: 1px solid var(--line2); background: rgba(255, 255, 255, .02); }
.nc > header i { font-style: normal; }
.nc-img { flex: 1; min-height: 60px; background: #060a12 center/cover no-repeat; }
.nc-cap { padding: 7px 10px 2px; font-weight: 600; font-size: 12.5px; }
.nc-desc { padding: 0 10px 9px; font-size: 11.5px; color: var(--muted); max-height: 54px; overflow: hidden; }
.nc.note { background: rgba(14, 20, 32, .95); box-shadow: inset 3px 0 0 var(--acc), 0 14px 40px rgba(0, 0, 0, .55); }
.nc-text { padding: 10px 12px; font-size: 12.5px; white-space: pre-wrap; overflow: auto; flex: 1; color: #d6dde8; }
.nc.sel { border-color: var(--acc); box-shadow: var(--acc-glow), 0 14px 40px rgba(0, 0, 0, .55); }
.nc.locked { cursor: default; }
.nc-resize { position: absolute; right: 0; bottom: 0; width: 16px; height: 16px; cursor: nwse-resize; background: linear-gradient(135deg, transparent 50%, rgba(148, 163, 184, .5) 50%); }
.nlabel { position: absolute; left: 0; top: 0; cursor: grab; user-select: none; padding: 4px 10px; border-radius: 6px; }
.nlabel.sel { box-shadow: var(--acc-glow); }
.nl-text { font: 700 22px var(--f-head); letter-spacing: .18em; text-transform: uppercase; color: rgba(226, 232, 240, .85); white-space: nowrap; text-shadow: 0 2px 10px #000; }

/* overlays on the stage */
.net-search { position: absolute; top: 12px; left: 12px; width: 340px; z-index: 6; }
.net-search .search { max-width: none; }
.net-search .input { background: rgba(6, 10, 18, .92); backdrop-filter: blur(8px); }
.ns-results { margin-top: 6px; max-height: 60vh; overflow: auto; padding: 5px; border-radius: 11px; border: 1px solid var(--line2); background: rgba(8, 12, 20, .97); box-shadow: 0 16px 40px rgba(0, 0, 0, .55); }
.ns-results:empty { display: none; }
.nsg { font: 700 9.5px var(--f-mono); letter-spacing: .16em; color: var(--dim); padding: 8px 8px 4px; text-transform: uppercase; }
.ns-results button { display: flex; align-items: center; gap: 9px; width: 100%; padding: 6px 8px; border-radius: 7px; text-align: left; font-size: 12.5px; }
.ns-results button:hover { background: var(--acc-soft); }
.ns-results small { margin-left: auto; color: var(--dim); font: 600 9px var(--f-mono); }
.ns-results .plus { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--acc-soft); color: var(--acc2); }
.net-hud { position: absolute; left: 12px; bottom: 12px; z-index: 6; display: flex; gap: 14px; font-size: 11px; color: var(--muted); padding: 6px 10px; border-radius: 8px; background: rgba(6, 10, 18, .85); border: 1px solid var(--line); }
.net-hud [data-hint]:not(:empty) { color: var(--acc2); }
.net-degrees { position: absolute; right: 12px; top: 12px; z-index: 6; width: 260px; padding: 10px; border-radius: 12px; border: 1px solid rgba(79, 157, 255, .35); background: rgba(8, 12, 20, .96); box-shadow: 0 16px 40px rgba(0, 0, 0, .5); display: grid; gap: 6px; }
.dg-h { display: flex; align-items: center; gap: 9px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.dg-h b { flex: 1; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dg-row { display: flex; justify-content: space-between; padding: 7px 9px; border-radius: 7px; font-size: 12px; color: var(--muted); border: 1px solid transparent; }
.dg-row b { color: var(--text); font-size: 14px; }
.dg-row.on { background: var(--acc-soft); color: var(--text); border-color: rgba(79, 157, 255, .25); }
.net-filters { position: absolute; right: 12px; top: 12px; z-index: 7; width: 280px; max-height: calc(100% - 24px); overflow: auto; padding: 12px; border-radius: 12px; border: 1px solid var(--line2); background: rgba(8, 12, 20, .97); box-shadow: 0 16px 40px rgba(0, 0, 0, .5); display: grid; gap: 12px; }
.net-filters .fh { display: flex; justify-content: space-between; align-items: center; font: 700 11px var(--f-mono); letter-spacing: .14em; }
.net-filters .fg { display: grid; grid-template-columns: 1fr 1fr; gap: 5px 8px; }
.net-filters .fg > span { grid-column: 1 / -1; font: 700 9.5px var(--f-mono); letter-spacing: .14em; color: var(--dim); text-transform: uppercase; }
.net-tip { position: absolute; z-index: 8; width: 236px; padding: 11px; border-radius: 12px; border: 1px solid var(--line3); background: rgba(8, 12, 20, .97); box-shadow: 0 18px 44px rgba(0, 0, 0, .6); pointer-events: none; display: grid; gap: 6px; animation: pop .14s; }
.tp-h { display: flex; gap: 10px; align-items: center; padding-bottom: 7px; border-bottom: 1px solid var(--line); }
.tp-h b { display: block; font-size: 13px; } .tp-h span { font: 600 9px var(--f-mono); letter-spacing: .14em; color: var(--dim); }
.tp-r { display: flex; justify-content: space-between; align-items: center; font-size: 11.5px; color: var(--muted); }
.net-marquee { position: absolute; z-index: 6; border: 1px dashed var(--acc); background: rgba(79, 157, 255, .08); pointer-events: none; }
.net-empty { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; gap: 8px; pointer-events: none; color: var(--muted); }
.ne-glyph { font-size: 56px; opacity: .35; }
.net-empty h3 { font: 700 18px var(--f-head); letter-spacing: .22em; color: var(--text); }
.net-empty p { max-width: 420px; line-height: 1.7; }
.net.ro .nn { cursor: pointer; }

/* add node dialog */
.add-node .type-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 14px; }
.type-grid button { display: grid; justify-items: center; gap: 3px; padding: 9px 4px; border-radius: 9px; border: 1px solid var(--line); font: 600 9px var(--f-mono); letter-spacing: .06em; color: var(--muted); }
.type-grid button span { font-size: 18px; }
.type-grid button:hover { border-color: var(--line3); color: var(--text); }
.type-grid button.on { border-color: rgba(79, 157, 255, .6); background: var(--acc-soft); color: #fff; }
.mode-tabs { display: flex; gap: 4px; margin-bottom: 12px; }
.mode-tabs:empty { display: none; }
.mode-tabs button { padding: 6px 12px; border-radius: 7px; font-size: 12px; color: var(--muted); border: 1px solid var(--line); }
.mode-tabs button.on { color: var(--acc2); border-color: rgba(79, 157, 255, .45); background: var(--acc-soft); }
.an-body { display: grid; gap: 8px; }
.rel-hero { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 6px 18px; }
.rel-node { display: grid; justify-items: center; gap: 4px; width: 120px; text-align: center; font-size: 12px; }
.rel-node small { font: 600 9px var(--f-mono); color: var(--dim); letter-spacing: .1em; }
.rel-mid { display: grid; justify-items: center; gap: 6px; }
.rel-line { stroke: rgba(226, 232, 240, .7); stroke-width: 2; }
.deg-strip { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.deg-strip > div { flex: 1; text-align: center; padding: 8px 4px; border-radius: 8px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); }
.deg-strip b { display: block; font-size: 17px; } .deg-strip span { font-size: 10px; color: var(--dim); }

/* ── responsive ── */
@media (max-width: 1280px) { .dash-grid { grid-template-columns: 1fr 1fr; } .stats { grid-template-columns: repeat(4, 1fr); } .kanban.wide { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 1100px) {
    :root { --nav-w: 64px; }
    .nl, .nav-h, .nav-foot, .brand span { display: none; }
    .nav-i { justify-content: center; }
    .brand { width: auto; }
    .ov { grid-template-columns: 1fr; } .mini-stats { grid-template-columns: repeat(3, 1fr); }
    .stats.compact { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 820px) {
    .dash-grid, .assigned-grid, .inv-form, .kv, .links-grid { grid-template-columns: 1fr; }
    .dash-grid .span2, .field.span2, .kvi.span2 { grid-column: auto; }
    .stats { grid-template-columns: repeat(2, 1fr); } .kanban, .kanban.wide { grid-template-columns: 1fr 1fr; }
    .view { padding: 18px 16px 50px; } .gsearch .gs-t, .gsearch kbd { display: none; } .gsearch { flex: 0 0 40px; }
    .net-search { width: calc(100% - 24px); } .doc-paper { padding: 22px; }
}

/* ── print (network + reports) ── */
@media print {
    body.inv { overflow: visible; background: #04070e; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    body.print-net .topbar, body.print-net .sidenav, body.print-net .net-top, body.print-net .net-search, body.print-net .net-hud,
    body.print-net .net-filters, body.print-net .net-degrees, body.print-net .inv-panel, body.print-net .inv-toasts { display: none !important; }
    body.print-net #app { display: block; height: 100vh; }
    body.print-net #main { position: fixed; inset: 0; }
}
