:root { --blue:#004dff; --blue-d:#003ad1; --navy:#0a1330; --navy2:#121d45; --ink:#1b2235; --muted:#5b6478; --line:#e3e7ef; --bg:#f4f6fb;
  --red:#d92d20; --red-bg:#fdecea; --amber:#b54708; --amber-bg:#fef4e6; --green:#067647; --green-bg:#e7f6ee; }
* { box-sizing:border-box; }
body { margin:0; font:14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color:var(--ink); background:var(--bg); }
a { color:var(--blue); text-decoration:none; } a:hover { text-decoration:underline; }
.layout { display:flex; min-height:100vh; }
nav.side { width:220px; background:var(--navy); color:#c9d1e6; padding:18px 12px; flex-shrink:0; position:sticky; top:0; height:100vh; display:flex; flex-direction:column; }
nav.side .brand { padding:4px 10px 18px; } nav.side .brand img { height:24px; display:block; }
nav.side .product { font-size:11px; letter-spacing:.08em; text-transform:uppercase; color:#8ea3e0; margin-top:8px; }
nav.side a { display:flex; justify-content:space-between; align-items:center; color:#c9d1e6; padding:8px 10px; border-radius:7px; margin:1px 0; }
nav.side a:hover { background:var(--navy2); text-decoration:none; color:#fff; }
nav.side a.on { background:var(--blue); color:#fff; }
nav.side .badge { background:#fff; color:var(--navy); border-radius:999px; font-size:11px; font-weight:700; padding:0 7px; }
nav.side .bottom { margin-top:auto; font-size:12px; padding:10px; color:#8a92a6; }
nav.side .bottom button { background:none; border:0; color:#c9d1e6; cursor:pointer; padding:0; font:inherit; }
main { flex:1; padding:26px 32px 60px; max-width:1240px; }
h1 { font-size:22px; margin:0 0 4px; color:var(--navy); } h2 { font-size:16px; margin:0 0 12px; color:var(--navy); }
.sub { color:var(--muted); margin:0 0 20px; }
.crumb { font-size:12px; color:var(--muted); margin-bottom:6px; }
.card { background:#fff; border:1px solid var(--line); border-radius:12px; padding:18px 20px; margin-bottom:18px; }
.grid { display:grid; gap:14px; } .g2 { grid-template-columns:1fr 1fr; } .g3 { grid-template-columns:repeat(3,1fr); }
.kpis { display:grid; grid-template-columns:repeat(auto-fit, minmax(150px,1fr)); gap:12px; margin-bottom:18px; }
.kpi { background:#fff; border:1px solid var(--line); border-radius:12px; padding:14px 16px; }
.kpi .v { font-size:24px; font-weight:700; color:var(--navy); } .kpi .l { font-size:12px; color:var(--muted); }
.kpi.sec .v { color:var(--red); }
table { width:100%; border-collapse:collapse; } th, td { text-align:left; padding:8px 10px; border-bottom:1px solid var(--line); vertical-align:top; }
th { font-size:11px; text-transform:uppercase; letter-spacing:.05em; color:var(--muted); font-weight:600; }
tr:last-child td { border-bottom:0; }
.mono { font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:12.5px; word-break:break-all; }
.pill { display:inline-block; border-radius:999px; padding:1px 9px; font-size:12px; font-weight:600; }
.pill.threats, .pill.phishing, .pill.red { background:var(--red-bg); color:var(--red); }
.pill.ads, .pill.telemetry, .pill.custom, .pill.grey { background:#eef1f7; color:var(--muted); }
.pill.ok, .pill.approved { background:var(--green-bg); color:var(--green); }
.pill.pending, .pill.warn { background:var(--amber-bg); color:var(--amber); }
.pill.rejected, .pill.expired { background:#eef1f7; color:var(--muted); }
form.inline { display:inline; }
label { display:block; font-size:12px; font-weight:600; color:var(--muted); margin:10px 0 4px; }
input[type=text], input[type=email], input[type=password], select, textarea { width:100%; padding:8px 10px; border:1px solid #cdd3df; border-radius:8px; font:inherit; background:#fff; }
textarea { min-height:140px; font-family:ui-monospace, Menlo, Consolas, monospace; font-size:12.5px; }
.row { display:flex; gap:10px; align-items:end; flex-wrap:wrap; } .row > * { flex:1; min-width:140px; } .row > .shrink { flex:0; }
button, .btn { display:inline-block; border:0; border-radius:8px; padding:8px 14px; font:inherit; font-weight:600; cursor:pointer; background:var(--blue); color:#fff; white-space:nowrap; }
button:hover, .btn:hover { background:var(--blue-d); text-decoration:none; }
button.ghost, .btn.ghost { background:#fff; color:var(--ink); border:1px solid #cdd3df; } button.ghost:hover { background:var(--bg); }
button.danger { background:#fff; color:var(--red); border:1px solid #f1b8b2; } button.danger:hover { background:var(--red-bg); }
button.small { padding:4px 10px; font-size:12px; }
.flash { background:#eaf0ff; border:1px solid #c7d6ff; color:var(--navy); border-radius:10px; padding:10px 14px; margin-bottom:16px; }
.cats { display:grid; grid-template-columns:repeat(auto-fit, minmax(220px,1fr)); gap:10px; }
.cat { border:1px solid var(--line); border-radius:10px; padding:12px 14px; display:flex; gap:10px; align-items:flex-start; }
.cat input { margin-top:3px; width:16px; height:16px; } .cat b { display:block; } .cat span { color:var(--muted); font-size:12px; }
.copy { display:flex; gap:6px; align-items:center; } .copy code { flex:1; background:var(--bg); border:1px solid var(--line); border-radius:7px; padding:6px 9px; }
.copy button { padding:5px 9px; font-size:12px; }
.muted { color:var(--muted); } .small { font-size:12px; } .right { text-align:right; }
.dot { display:inline-block; width:8px; height:8px; border-radius:50%; margin-right:6px; } .dot.up { background:#12b76a; } .dot.down { background:var(--red); }
details summary { cursor:pointer; color:var(--blue); font-weight:600; margin:6px 0; }
.empty { color:var(--muted); padding:16px 0; text-align:center; }
.login { min-height:100vh; display:flex; align-items:center; justify-content:center; background:linear-gradient(160deg, var(--navy), #0d1f5c); }
.login .box { background:#fff; width:360px; border-radius:14px; padding:30px; box-shadow:0 20px 50px rgba(0,0,0,.25); }
.login .logo { background:var(--navy); margin:-30px -30px 22px; padding:20px 30px; border-radius:14px 14px 0 0; }
.login .logo img { height:26px; display:block; }
.err { color:var(--red); margin:8px 0; }
@media (max-width:900px) { .g2, .g3 { grid-template-columns:1fr; } nav.side { display:none; } main { padding:18px; } }
