:root {
  --bg:#091321;
  --side:#0b192b;
  --surface:#102237;
  --card:#102237;
  --hover:#172f4a;
  --line:#2b415b;
  --text:#f1f6ff;
  --muted:#b1c3d8;
  --faint:#95abc1;
  --primary:#286cc1;
  --violet:#88bfff;
  --red:#ff8995;
  --positive:#80d9b9;
  --amber:#eec582;
  --radius:12px;
}

.shell {
  background:
    radial-gradient(ellipse 74% 460px at 88% 0, #163454 0%, transparent 82%),
    radial-gradient(ellipse 36% 290px at 100% 0, #492a3b55, transparent 86%), var(--bg);
}
.sidebar {
  background:linear-gradient(158deg,#10253f 0%,#0b192b 38%,#091423 100%);
  border-right-color:#29405a;
  gap:24px;
  overflow-y:auto;
}
.sidebar .wordmark { padding-top:1px; }
.wordmark img { filter:hue-rotate(-31deg) saturate(1.12); }
.wordmark small { background:#183351;border-color:#345981;color:#b4d7ff; }
.nav-link { border-radius:7px; }
.nav-link.active { color:#edf6ff;background:linear-gradient(90deg,#1b4676,#18324c);border-color:#365a7e;box-shadow:inset 3px 0 #76baff; }
.nav-link:not(.active):hover { background:#18304b; }
.topbar { background:#0b1728e8;border-bottom-color:#2b415b; }
.page-heading h1,.details-intro h1 { color:var(--text);letter-spacing:-.045em; }
.primary {
  background:linear-gradient(135deg,#276dc0,#2054a8);
  border-color:#517eae;
  box-shadow:inset 0 1px #9bcfff36,0 3px 12px #020d1b56;
}
.primary:hover { background:linear-gradient(135deg,#327dcc,#2964bd); }
.secondary,.icon-button:not(.flat),.copy-button,.rule-control { background:#172c45;border-color:#324c65; }
.secondary:hover,.icon-button:not(.flat):hover,.copy-button:hover,.rule-control:hover { background:#1b3855;border-color:#5983a9; }
.text-button,.rule-control[aria-pressed=true],.softlink { color:#a3ccff; }
.panel,.table-wrap,.metric,.site-metric,.stat { border-color:var(--line); }
.panel,.table-wrap { background:linear-gradient(130deg,#14273d 0%,#102033 70%,#101f32); }
.site-metric,.metric,.stat { background:linear-gradient(130deg,#162d47,#102133); }
.overview-traffic {
  background:linear-gradient(112deg,#173451 0%,#10253e 55%,#232738 100%);
  box-shadow:inset 0 1px #6892ba2e;
}
.overview-metrics { column-gap:0; }
.overview-metrics>div { padding:0 20px; border-left:1px solid #3b577066; min-width:0; }
.overview-metrics>div:first-child { border:none;padding-left:0; }
.overview-metrics dd { line-height:1.25; }
.overview-metrics>div:nth-child(3) dd,.site-metric [data-site-stat=blocked] { color:#ff9aa4; }
.overview-traffic .section-head { flex-wrap:wrap;row-gap:10px; }
.overview-tools select { width:auto;flex:none;min-width:6.2rem; }
.ticket-inbox .ticket-priority { justify-self:start; }
.ticket-priority.high,.ticket-priority.urgent { width:max-content;max-width:100%;padding:2px 8px;border:1px solid #76434e;border-radius:5px; }
.chart-legend span::before { background:#69b2ff; }
.chart-legend .legend-1::before { background:#ff737f; }
.chart-rate .chart-legend .legend-1::before { background:#65cbd9; }
.chart .chart-area,.overview-traffic .chart-area,.site-plot .chart-area {
  display:grid; grid-template-columns:minmax(0,1fr); grid-template-rows:auto auto;
  height:auto; min-width:0; gap:6px;
}
.chart-area canvas { min-width:0; max-width:100%; }
.chart-readout {
  position:static; min-height:1.7em; padding:0 2px; width:100%;
  line-height:1.55; font-size:12px; color:#d5e5f6;
  white-space:normal; overflow-wrap:anywhere; font-variant-numeric:tabular-nums;
}
.toolbar,.ops-controls { align-items:end; }
.badge.bad,.ticket-priority.urgent,.ticket-priority.high { color:#ffbac1;background:#392334;border-color:#76434e; }
.site-tabs a[aria-current]::after { background:linear-gradient(90deg,#5b9ce6,#9acbff); }
.auth,.not-found {
  background:radial-gradient(ellipse at 17% 15%,#153953,transparent 57%),radial-gradient(ellipse at 90% 88%,#482a385c,transparent 48%),#091321;
}
.auth-visual { background:linear-gradient(145deg,#102643,#112e50 59%,#302839);border-color:#35516d; }
.not-found-card { background:linear-gradient(135deg,#17324e,#101f33 68%,#29263b);border-color:#35516d; }
.not-found-code { color:#95c9ff; }
@media(max-width:760px) {
  .overview-metrics>div,.overview-metrics>div:first-child { border:0; padding:0; }
  .overview-metrics { gap:14px; }
}

.side-search {
  flex:none;display:flex;align-items:center;gap:8px;min-height:38px;margin:0 3px -7px;
  padding:7px 9px;border:1px solid #364b63;border-radius:7px;background:#0b1929;color:#cedff2;
  text-align:left;font-size:.86rem;
}
.side-search:hover { background:#152c44;border-color:#5186b3; }
.side-search kbd { margin-left:auto;padding:1px 4px;border-radius:3px;border:1px solid #344d67;color:var(--faint);font-size:.68rem; }
.jump-input { width:100%;min-height:42px;margin:12px 0;padding:8px 12px;border:1px solid #416784;background:#0b192b;color:var(--text);border-radius:7px; }
.jump-results { list-style:none;margin:0;padding:0;max-height:min(53dvh,420px);overflow-y:auto; }
.jump-results a { display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 8px;min-height:40px;border-bottom:1px solid #29415b;overflow-wrap:anywhere; }
.jump-results a:hover,.jump-results a:focus-visible { background:#193a5a; }
.jump-results a small { font-size:.78rem;color:var(--muted); }
.jump-results a span small { display:block;margin-top:2px; }
.topbar>b { min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis; }
.side-search { gap:6px;padding-inline:8px;font-size:.8rem;white-space:nowrap; }
.side-search kbd { flex:none;font: .65rem/1.35 ui-monospace,monospace;white-space:nowrap; }
.dialog-body>p.subtext:has(+form) { margin-block:0 16px; }
.geo-dialog .field>span,.rule-dialog .field>span:not(.label) { display:block;margin-bottom:6px;font-size:.85rem;font-weight:550; }
.geo-options { background:#0e1d2d;border:1px solid var(--line);border-radius:8px; }
.geo-option { padding-inline:9px; }
.geo-option:hover,.geo-option:has(:checked) { background:#193552; }
.geo-filter input,.geo-option input,.tls-choice input,.tls-consent input,.exception-checks input,.rule-enable input { padding:0;margin:0;min-height:0; }
.tls-choice:has(:checked) { background:#1a3857;border-color:#4578a4; }
.chart-readout:not(:empty) { padding:4px 8px;border-radius:4px;background:#0c1a2b; }

.side-category { margin:0 0 12px; }
.side-category>summary {
  display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:34px;
  padding:4px 11px;color:#a4bbd2;list-style:none;cursor:pointer;user-select:none;
  font-weight:620;letter-spacing:.045em;font-size:.75rem;
}
.side-category>summary::-webkit-details-marker { display:none; }
.side-category>summary:hover { color:#e4f0ff; }
.side-chevron { font-size:1.4rem;line-height:1;transform:rotate(0deg);transition:transform .15s; }
.side-category[open]>summary .side-chevron { transform:rotate(90deg); }
.side-links { display:grid;gap:2px; }
@media(prefers-reduced-motion:reduce) { .side-chevron { transition:none; } }
