/* Signal Console — dark-native, cyan only for interaction. */
:root,
html[data-theme="dark"] {
  --bg: #080b10;
  --panel: #10161f;
  --ink: #eaf0f7;
  --muted: #98a8bb;
  --line: #263343;
  --accent: #66d9ef;
  --wash: #112b35;
  --nav: #0b1017;
  --danger: #ff9199;
  --warn: #eec479;
  --radius: 10px;
  --shadow: 0 8px 30px #00000018;
  --grid: #728fb008;
  --nav-ink: #9fadc0;
  --button-ink: #081217;
  --status-ok: #8de1b5;
  --nav-active: #142833;
  color-scheme: dark;
}
html[data-theme="light"] {
  --bg: #eef2f6;
  --panel: #ffffff;
  --ink: #172433;
  --muted: #536579;
  --line: #cbd6e2;
  --accent: #006881;
  --wash: #deeff4;
  --nav: #e5ecf3;
  --danger: #aa3547;
  --warn: #825609;
  --grid: #34496908;
  --nav-ink: #536579;
  --button-ink: #ffffff;
  --status-ok: #176747;
  --nav-active: #d5e8ee;
  color-scheme: light;
}
body {
  font-family: "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif;
  background-color: var(--bg);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--accent); color: var(--button-ink); }
.sidebar {
  width: 240px;
  padding: 34px 20px 24px;
  background: var(--nav);
  border-right: 1px solid var(--line);
  color: var(--ink);
}
.brand { gap: 13px; margin-bottom: 51px; }
.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  border: 1px solid var(--accent);
  border-radius: 9px;
  color: var(--accent);
  font-size: 24px;
  box-shadow: 0 0 18px #66d9ef14, inset 0 0 12px #66d9ef0a;
}
.brand strong { color: var(--ink); font-size: 20px; font-weight: 600; letter-spacing: 1px; }
.brand small { color: var(--muted); font-size: 8px; letter-spacing: 1.1px; }
.nav-caption { color: var(--muted); font-size: 10px; letter-spacing: 1.5px; }
nav { gap: 8px; }
nav a { color: var(--nav-ink); min-height: 47px; font-size: 13px; border: 1px solid transparent; }
nav a span { font-family: ui-monospace, monospace; color: var(--muted); }
nav a:hover { background: var(--panel); border-color: var(--line); color: var(--ink); }
nav a.active { background: var(--nav-active); color: var(--accent); border-color: color-mix(in srgb, var(--accent) 25%, transparent); box-shadow: none; }
nav a.active span { color: var(--accent); }
.sidebar-note { color: var(--muted); padding: 24px 10px 15px; }
.sidebar-note p { color: var(--muted); }
.tiny-dot { background: var(--accent); box-shadow: 0 0 8px #66d9ef33; }
.theme-button { border-color: var(--line); color: var(--muted); }
.workspace { margin-left: 240px; }
.topbar { height: 70px; background: var(--nav); border-color: var(--line); padding: 0 42px; }
.topbar > span { color: var(--muted); font-size: 10px; letter-spacing: 2px; }
.topbar > span::before { content: "/ "; color: var(--accent); }
.timezone { color: var(--muted); }
.icon-button { min-height: 44px; width: 44px; border-radius: 8px; color: var(--accent); background: var(--panel); }
main { padding-top: 38px; }
.page-heading { position: relative; padding: 0 0 28px; margin-bottom: 25px; border-bottom: 1px solid var(--line); }
.page-heading::after { content: ""; position: absolute; bottom: -1px; left: 0; width: 52px; height: 2px; background: var(--accent); box-shadow: 0 0 12px #66d9ef50; }
.eyebrow, .label { color: var(--accent); font-size: 10px; letter-spacing: 2.4px; }
.page-heading h1 { font-size: 34px; font-weight: 600; letter-spacing: -1px; margin: 8px 0 10px; }
.page-heading p { font-size: 13px; color: var(--muted); }
.primary-link { background: var(--accent); color: var(--button-ink); border: 1px solid var(--accent); border-radius: 7px; font-size: 12px; font-weight: 600; box-shadow: 0 0 20px #66d9ef12; }
.primary-link:hover { filter: none; box-shadow: 0 0 25px #66d9ef2b; transform: translateY(-1px); }
.status-strip { gap: 16px; margin-bottom: 27px; }
.status-mini { position: relative; border: 1px solid var(--line); background: var(--panel); padding: 18px 21px; box-shadow: var(--shadow); overflow: hidden; }
.status-mini::after { content: ""; position: absolute; right: 14px; bottom: 0; width: 44px; height: 2px; background: var(--line); }
.status-mini:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.status-mini strong { font-size: 13px; letter-spacing: .2px; }
.status-mini small { font: 10px ui-monospace, SFMono-Regular, monospace; margin-top: 4px; color: var(--muted); }
.pill { background: var(--wash); color: var(--accent); border: 1px solid color-mix(in srgb, currentColor 20%, transparent); border-radius: 5px; padding: 4px 9px; font-size: 11px; }
.pill.operational, .pill.healthy, .pill.resolved { color: var(--status-ok); background: color-mix(in srgb, var(--status-ok) 8%, var(--panel)); }
.pill.unknown, .pill.stale, .pill.unconfigured { color: var(--muted); background: var(--bg); }
.pill.error, .pill.degraded, .pill.major_outage, .pill.partial_outage { color: var(--danger); background: color-mix(in srgb, var(--danger) 8%, var(--panel)); }
.pill.draft, .pill.investigating, .pill.monitoring, .pill.identified { color: var(--warn); background: color-mix(in srgb, var(--warn) 8%, var(--panel)); }
.feed-toolbar { border: 1px solid var(--line); padding: 10px 12px; background: var(--nav); border-radius: 9px; }
.tabs button { min-height: 44px; font-size: 12px; color: var(--muted); border: 1px solid transparent; }
.tabs button.active { color: var(--accent); background: var(--wash); border-color: color-mix(in srgb, var(--accent) 20%, transparent); }
.search input { min-height: 44px; border-color: var(--line); background: var(--bg); font-size: 12px; }
.search > span { color: var(--muted); }
.feed-caption { margin: 24px 0 15px; font-size: 11px; }
.feed-caption span:first-child { letter-spacing: 1px; color: var(--muted); font-weight: 500; }
#result-count { font-family: ui-monospace, SFMono-Regular, monospace; color: var(--accent); }
.record { padding: 23px 25px; border: 1px solid var(--line); background: var(--panel); margin-bottom: 14px; border-radius: 10px; box-shadow: var(--shadow); }
.record:hover { border-color: color-mix(in srgb, var(--accent) 28%, var(--line)); }
.record-head { margin-bottom: 13px; }
.record-labels { gap: 10px; }
.product-label { color: var(--accent); font-size: 10px; letter-spacing: 1.2px; }
.type-label { background: var(--bg); color: var(--muted); border: 1px solid var(--line); border-radius: 4px; font-size: 10px; padding: 1px 7px; }
.record time { color: var(--muted); font-size: 11px; }
.record h2, .record h3 { font-size: 17px; font-weight: 600; color: var(--ink); line-height: 1.6; }
.record p { color: var(--muted); font-size: 13px; line-height: 1.85; }
.record summary { color: var(--accent); font-size: 12px; min-height: 44px; padding-top: 9px; }
.record-foot { border-top: 1px solid var(--line); margin-top: 17px; padding-top: 9px; font-size: 11px; align-items: center; }
.record-foot a { min-height: 36px; display: inline-flex; align-items: center; color: var(--accent); }
.secondary-button { min-height: 44px; background: var(--panel); border: 1px solid var(--line); color: var(--ink); }
.secondary-button:hover { border-color: var(--accent); color: var(--accent); }
.empty { background: var(--panel); border: 1px dashed var(--line); }
.empty strong { font-weight: 500; }
.notice { background: var(--wash); border-color: var(--line); }
.provider, .subscription, .source-row, .admin-card, .admin-login { background: var(--panel); border-color: var(--line); box-shadow: var(--shadow); }
.provider-heading h2 { font-weight: 600; }
.component { font-size: 12px; padding: 12px 0; }
.component > span:last-child { color: var(--status-ok); font-size: 11px; }
.component > span.bad { color: var(--danger); }
.source-row { padding: 23px 25px; }
.source-row h3 { font-size: 14px; }
.source-row p { font-size: 12px; }
.subscription { position: relative; overflow: hidden; }
.subscription::after { content: "+"; position: absolute; right: 22px; top: 16px; color: var(--muted); font: 20px ui-monospace, monospace; }
.subscription h2 { font-weight: 500; }
input, textarea, select { background: var(--bg); border-color: var(--line); }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
footer { font-size: 11px; }
footer a { color: var(--accent); }
.admin-body { background-color: var(--bg); }
.admin-card input[type="checkbox"] { accent-color: var(--accent); }
@media (min-width: 1500px) { .page-heading h1 { font-size: 38px; } }
@media (max-width: 1100px) {
  .sidebar { width: 212px; padding: 28px 15px 20px; }
  .workspace { margin-left: 212px; }
  .topbar { padding: 0 28px; }
  .brand strong { font-size: 18px; }
  .brand-mark { width: 34px; height: 34px; flex-shrink: 0; }
}
@media (max-width: 760px) {
  body { background-size: 32px 32px; }
  .sidebar { width: auto; height: auto; position: static; padding: 18px 18px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand { margin-bottom: 16px; gap: 12px; }
  .brand-mark { width: 34px; height: 34px; font-size: 22px; }
  .brand strong { font-size: 18px; }
  .brand small { font-size: 7px; letter-spacing: 1px; }
  nav { gap: 4px; padding-bottom: 12px; }
  nav a { font-size: 12px; min-height: 44px; padding: 9px 12px; }
  .theme-button { right: 21px; top: 21px; min-height: 44px; }
  .workspace { margin-left: 0; }
  .topbar { padding: 0 18px; height: 57px; }
  .topbar > span { font-size: 9px; letter-spacing: 1.2px; }
  .icon-button { min-height: 40px; width: 40px; }
  main { padding: 26px 16px 38px; }
  .page-heading { padding-bottom: 23px; margin-bottom: 21px; }
  .page-heading h1 { font-size: 28px; letter-spacing: -.5px; }
  .page-heading p { font-size: 12px; line-height: 1.8; max-width: 240px; }
  .page-heading > .primary-link { margin-top: 21px; font-size: 11px; padding: 8px 11px; gap: 8px; }
  .eyebrow { font-size: 9px; letter-spacing: 1.8px; }
  .status-strip { gap: 10px; margin-bottom: 21px; }
  .status-mini { padding: 15px 13px; }
  .status-mini strong { font-size: 12px; }
  .status-mini small { font-size: 9px; line-height: 1.8; }
  .status-mini .pill { font-size: 10px; }
  .feed-toolbar { padding: 8px; gap: 9px; }
  .tabs { gap: 4px; }
  .tabs button { font-size: 12px; padding: 8px 11px; }
  .search input { font-size: 12px; }
  .record { padding: 18px 17px; }
  .record h2, .record h3 { font-size: 15px; }
  .record p { font-size: 12px; }
  .record time { font-size: 10px; }
  .product-label, .type-label { font-size: 9px; }
  .record-labels { gap: 6px; }
  .record-foot { font-size: 10px; gap: 10px; }
  .record-foot > span { max-width: 116px; }
  .source-row { padding: 18px; }
  .source-row p { font-size: 11px; }
  .source-row .pill { font-size: 10px; }
  footer { font-size: 10px; }
}
@media (prefers-reduced-motion: no-preference) {
  .record, .status-mini, .primary-link, nav a { transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
