/* vutc-dashboard shared shell. Light tokens on :root, dark under both scopes. */
:root {
  color-scheme: light;
  --page: #f9f9f7; --surface: #fcfcfb;
  --ink: #0b0b0b; --ink-2: #52514e; --muted: #898781;
  --grid: #e1e0d9; --axis: #c3c2b7; --border: rgba(11,11,11,0.10);
  --s1: #2a78d6; --s2: #eb6834; --s3: #1baf7a; --s4: #eda100;
  --good: #0ca30c; --warn: #fab219; --serious: #ec835a; --crit: #d03b3b;
  --seq-1: #cde2fb; --seq-7: #0d366b;
  --nav-bg: #f0efec;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --page: #0d0d0d; --surface: #1a1a19;
    --ink: #ffffff; --ink-2: #c3c2b7; --muted: #898781;
    --grid: #2c2c2a; --axis: #383835; --border: rgba(255,255,255,0.10);
    --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500;
    --nav-bg: #141413;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #0d0d0d; --surface: #1a1a19;
  --ink: #ffffff; --ink-2: #c3c2b7; --muted: #898781;
  --grid: #2c2c2a; --axis: #383835; --border: rgba(255,255,255,0.10);
  --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500;
  --nav-bg: #141413;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--page); color: var(--ink);
  font: 14px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: inherit; }
.shell { display: flex; min-height: 100vh; }
nav.side { width: 230px; flex: none; background: var(--nav-bg); border-right: 1px solid var(--border);
  padding: 14px 10px; position: sticky; top: 0; height: 100vh; }
nav.side .brand { font-weight: 700; font-size: 15px; padding: 4px 8px 14px; letter-spacing: .3px; }
nav.side a.item { display: flex; gap: 8px; align-items: center; padding: 7px 10px; border-radius: 6px;
  text-decoration: none; color: var(--ink-2); margin-bottom: 2px; }
nav.side a.item:hover { background: var(--surface); }
nav.side a.item.active { background: var(--surface); color: var(--ink); font-weight: 600;
  box-shadow: inset 0 0 0 1px var(--border); }
nav.side .foot { position: absolute; bottom: 12px; left: 10px; right: 10px; font-size: 11px; color: var(--muted); }
main.content { flex: 1; min-width: 0; padding: 18px 22px 40px; }
h1 { font-size: 18px; margin: 0 0 4px; }
h2 { font-size: 15px; margin: 22px 0 10px; }
.sub { color: var(--ink-2); font-size: 12.5px; margin-bottom: 14px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; }
.pill { display: inline-flex; gap: 6px; align-items: center; font-size: 12px; padding: 2px 8px;
  border-radius: 999px; border: 1px solid var(--border); color: var(--ink-2); }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.pill.ok .dot { background: var(--good); } .pill.bad .dot { background: var(--crit); }
.seg { display: inline-flex; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.seg button { border: 0; background: transparent; color: var(--ink-2); padding: 5px 10px; cursor: pointer; font: inherit; }
.seg button.active { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: inset 0 0 0 1px var(--border); }
.muted { color: var(--muted); } .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.num { font-variant-numeric: tabular-nums; }
table.data { width: 100%; border-collapse: collapse; font-size: 12.5px; }
table.data th { text-align: left; color: var(--muted); font-weight: 500; padding: 6px 8px; border-bottom: 1px solid var(--axis); white-space: nowrap; }
table.data td { padding: 6px 8px; border-bottom: 1px solid var(--grid); vertical-align: top; }
table.data tr:last-child td { border-bottom: 0; }
.scroll-x { overflow-x: auto; }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--ink-2); align-items: center; }
.legend .sw { display: inline-block; width: 14px; height: 2px; vertical-align: middle; margin-right: 5px; border-radius: 1px; }
/* charts */
.chart { position: relative; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .tip { position: absolute; pointer-events: none; background: var(--surface); border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,.12); border-radius: 6px; padding: 6px 8px; font-size: 12px; white-space: nowrap;
  display: none; z-index: 5; }
.chart .tip b { font-weight: 600; }
