/* Leo SOC theme: LEO brand (teal, Manrope) · stoic, futuristic, quiet · sacred geometry (Flower of Life + Metatron's Cube).
   Loaded after each page's own styles, so it re-skins every portal page through the shared variables. */
@font-face { font-family: Manrope; font-style: normal; font-weight: 200 800; font-display: swap; src: url(/assets/manrope-latin.woff2) format("woff2"); }
:root {
  --bg: #f3f8f9; --card: rgba(255,255,255,.82); --ink: #0b2a36; --muted: #4f6a73; --line: #cfe2e6;
  --up: #1f8a5b; --down: #c2413a; --warn: #a36a00; --unk: #8aa3ab; --accent: #14708a; --code: #e6f2f4;
  --glow: rgba(20,112,138,.10); --sacred: url(/assets/sacred-light.svg);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #071a22; --card: rgba(11,42,54,.66); --ink: #e3f4f6; --muted: #8fb3bc; --line: rgba(127,220,234,.16);
    --up: #4fd39a; --down: #ff7b72; --warn: #e3b341; --unk: #5f7d86; --accent: #64e5f2; --code: rgba(4,18,24,.7);
    --glow: rgba(100,229,242,.10); --sacred: url(/assets/sacred-dark.svg);
  }
}
html { background: var(--bg); }
body {
  font-family: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif !important; letter-spacing: .005em;
  background:
    var(--sacred) no-repeat right -180px top -160px / 760px,
    var(--sacred) no-repeat left -260px bottom -300px / 900px,
    radial-gradient(1200px 600px at 85% -10%, var(--glow), transparent 60%),
    var(--bg) !important;
  background-attachment: fixed !important;
  color: var(--ink);
}
header { border-bottom: 1px solid var(--line); position: relative; }
header h1 { font-weight: 300 !important; letter-spacing: .18em !important; text-transform: uppercase; font-size: 20px !important; display: flex; align-items: center; gap: 12px; }
header h1::before { content: ""; width: 30px; height: 36px; background: url(/assets/leo-logo.png) center/contain no-repeat; flex: none; }
header .sub { letter-spacing: .06em; }
h2 { font-weight: 500 !important; letter-spacing: .22em !important; color: var(--accent) !important; display: flex; align-items: center; gap: 10px; }
h2::before { content: ""; width: 14px; height: 14px; flex: none; background: url(/assets/sacred-mark.svg) center/contain no-repeat; opacity: .8; }
h2::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent); }
.card, a.card, div.card, .kpi, .panel, .chart, .tbl, .alerts, .tpls button {
  background: var(--card) !important; border: 1px solid var(--line) !important; border-radius: 4px !important;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}
a.card:hover, .tpls button.on, .tpls button:hover { border-color: var(--accent) !important; box-shadow: 0 0 0 1px var(--accent) inset, 0 0 24px var(--glow); }
.kpi .val, .kpi b { font-weight: 300 !important; letter-spacing: .02em; }
.kpi .lbl, .kpi span.mut, th { text-transform: uppercase; letter-spacing: .14em; font-size: 11px !important; }
.name { font-weight: 600; letter-spacing: .03em; }
.dot { box-shadow: 0 0 0 3px var(--glow); }
.dot.up { box-shadow: 0 0 10px var(--up); } .dot.down { box-shadow: 0 0 10px var(--down); }
nav button.on { border-bottom-color: var(--accent) !important; }
.actions button { border-radius: 3px !important; letter-spacing: .08em; text-transform: uppercase; font-size: 12px !important; background: var(--accent) !important; border-color: var(--accent) !important; color: #04222b !important; }
.actions button.sec { background: transparent !important; color: var(--accent) !important; }
input, select, textarea { border-radius: 3px !important; border-color: var(--line) !important; background: var(--code) !important; color: var(--ink) !important; font-family: inherit !important; }
code, pre, .fix { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
footer { letter-spacing: .08em; }
::selection { background: var(--accent); color: var(--bg); }
