/* Nodal Load Harness — styled after nodaltechnologies.com.
   Fonts are the site's own latin subsets, served locally so the CSP can stay at 'self'. */

@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("/fonts/ibm-plex-sans.woff2") format("woff2"); }
@font-face { font-family: "Raleway"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/fonts/raleway.woff2") format("woff2"); }
@font-face { font-family: "Reddit Mono"; font-style: normal; font-weight: 200 900; font-display: swap; src: url("/fonts/reddit-mono.woff2") format("woff2"); }

@property --glow-angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }

:root {
  /* palette, from the site's design tokens */
  --bg: #08090a;
  --surface: #0d0e10;
  --surface-2: #131416;
  --elevated: #191a1d;
  --line: #ffffff12;
  --line-strong: #ffffff21;
  --ink-bright: #fff;
  --ink: #d9d9d9;
  --ink-muted: #b3b3b3;
  --ink-dim: #7e8288;
  --amber: #f59e0b;
  --iris: #7c86ff;
  --iris-light: #c4c0ff;
  --violet: #5b21b6;
  --violet-lift: #6d2bd9;
  --violet-deep: #2e1065;
  --signal: #2fd98d;
  --accent: #ff5181;
  --danger: #ff6b6b;

  --ok: var(--signal);
  --warn: var(--amber);
  --fail: var(--danger);
  --info: var(--iris);

  --font-sans: "IBM Plex Sans", "Helvetica Neue", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Raleway", "Avenir Next", var(--font-sans);
  --mono: "Reddit Mono", ui-monospace, SFMono-Regular, Consolas, monospace;

  --radius: 18px;
  --radius-sm: 12px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 400 14.5px/1.55 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body::before {
  /* the site's violet / iris wash, kept faint so data stays the focus */
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 520px at 78% -12%, rgba(109, 43, 217, .16), transparent 62%),
    radial-gradient(700px 420px at 105% 40%, rgba(124, 134, 255, .07), transparent 60%),
    radial-gradient(800px 500px at -10% 110%, rgba(245, 158, 11, .045), transparent 60%);
}
::selection { background: rgba(124, 134, 255, .35); color: #fff; }
a { color: inherit; text-decoration: none; }
code, .mono { font-family: var(--mono); font-size: .9em; letter-spacing: -.01em; }
code { background: rgba(255, 255, 255, .04); border: 1px solid var(--line-strong); padding: 1px 7px; border-radius: 7px; color: var(--ink-bright); }
h1, h2, h3 { margin: 0; color: var(--ink-bright); }
h1 { font: 600 clamp(1.6rem, 2.4vw, 2.1rem)/1.1 var(--font-display); letter-spacing: -.02em; }
h2 { font: 600 15.5px/1.3 var(--font-display); letter-spacing: -.005em; }
h3, .eyebrow {
  font: 500 10.5px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--ink-dim);
}
.eyebrow-amber { color: var(--amber); }
.hidden { display: none !important; }
.muted { color: var(--ink-muted); }
.dim { color: var(--ink-dim); }
.error-text { color: var(--danger); min-height: 1.2em; margin: 4px 0 8px; font-size: 13px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- layout */

.shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; gap: 6px;
  padding: 22px 16px 18px;
  border-right: 1px solid var(--line);
  background: rgba(13, 14, 16, .78);
  backdrop-filter: blur(14px) saturate(140%);
}
.brand { display: flex; align-items: center; gap: 12px; padding: 4px 8px 22px; }
.brand img { height: 40px; width: auto; display: block; }
.brand-tag {
  font: 500 10px/1.25 var(--mono); text-transform: uppercase; letter-spacing: .16em; color: var(--ink-dim);
  padding-left: 12px; border-left: 1px solid var(--line-strong);
}
.nav-label { padding: 0 12px 6px; }

nav { display: flex; flex-direction: column; gap: 2px; }
nav a {
  position: relative; display: flex; align-items: center; gap: 12px;
  height: 40px; padding: 0 14px; border-radius: 999px;
  color: var(--ink-muted); font-size: 14.5px;
  transition: color .2s var(--ease), background .2s var(--ease);
}
nav a:hover { color: var(--ink-bright); background: rgba(255, 255, 255, .035); }
nav a.on { color: var(--ink-bright); background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--line-strong); }
nav a.on::after { content: ""; position: absolute; right: 14px; width: 6px; height: 6px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 10px rgba(245, 158, 11, .7); }

.ico { width: 17px; height: 17px; background: currentColor; -webkit-mask: var(--m) center/contain no-repeat; mask: var(--m) center/contain no-repeat; flex: none; opacity: .9; }
.ico-grid { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Crect x='3.5' y='3.5' width='7' height='7' rx='2'/%3E%3Crect x='13.5' y='3.5' width='7' height='7' rx='2'/%3E%3Crect x='3.5' y='13.5' width='7' height='7' rx='2'/%3E%3Crect x='13.5' y='13.5' width='7' height='7' rx='2'/%3E%3C/svg%3E"); }
.ico-play { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M10 8.5l5.5 3.5-5.5 3.5z'/%3E%3C/svg%3E"); }
.ico-list { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M9 6h11M9 12h11M9 18h11'/%3E%3Ccircle cx='4.5' cy='6' r='1'/%3E%3Ccircle cx='4.5' cy='12' r='1'/%3E%3Ccircle cx='4.5' cy='18' r='1'/%3E%3C/svg%3E"); }
.ico-spark { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Ccircle cx='5' cy='5' r='1.8'/%3E%3Ccircle cx='19' cy='6' r='1.8'/%3E%3Ccircle cx='5' cy='19' r='1.8'/%3E%3Ccircle cx='18' cy='19' r='1.8'/%3E%3Cpath d='M6.3 6.3l3.6 3.6M17.7 7.3l-3.5 2.9M6.4 17.6l3.5-3.5M16.6 17.6l-2.6-3.4'/%3E%3C/svg%3E"); }
.ico-gear { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M4 7h10M18 7h2M4 17h4M12 17h8'/%3E%3Ccircle cx='16' cy='7' r='2'/%3E%3Ccircle cx='10' cy='17' r='2'/%3E%3C/svg%3E"); }

.active-run {
  display: flex; align-items: center; gap: 11px; margin-top: 14px;
  padding: 12px 14px; border-radius: 16px;
  background: linear-gradient(135deg, rgba(109, 43, 217, .22), rgba(124, 134, 255, .08));
  border: 1px solid rgba(124, 134, 255, .32);
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.active-run:hover { border-color: rgba(196, 192, 255, .6); transform: translateY(-1px); }
.active-run-text { display: flex; flex-direction: column; min-width: 0; }
.active-run b { font-weight: 600; font-size: 13px; color: var(--ink-bright); }
.active-run small { color: var(--ink-dim); font: 11px var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--signal); flex: none; animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(47, 217, 141, .6); } 70% { box-shadow: 0 0 0 9px rgba(47, 217, 141, 0); } 100% { box-shadow: 0 0 0 0 rgba(47, 217, 141, 0); } }
.sidebar-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding: 0 8px; }
.sidebar-foot .btn { align-self: flex-start; margin-left: -10px; }
.whoami { font-size: 12.5px; color: var(--ink-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.whoami b { color: var(--ink-bright); font-weight: 600; }

.view { padding: 40px 48px 80px; max-width: 1400px; width: 100%; outline: none; animation: rise .35s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 28px; flex-wrap: wrap; }
.page-head p { margin: 8px 0 0; color: var(--ink-muted); max-width: 760px; }
.page-head .eyebrow { margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.page-head .eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--amber); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.grid { display: grid; gap: 18px; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-auto { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.kpis { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.stack { display: flex; flex-direction: column; gap: 18px; }
.mt { margin-top: 18px; }
.mt-lg { margin-top: 40px; }
@media (max-width: 1080px) {
  .g-2, .g-3 { grid-template-columns: 1fr; }
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .brand { padding-bottom: 4px; }
  nav { flex-direction: row; flex-wrap: wrap; }
  .nav-label, .sidebar-foot .eyebrow { display: none; }
  .sidebar-foot { margin: 0 0 0 auto; }
  .view { padding: 28px 20px 60px; }
}

/* ---------- surfaces */

.card {
  position: relative;
  background: linear-gradient(180deg, rgba(25, 26, 29, .72), rgba(13, 14, 16, .88));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 24px 48px -32px rgba(0, 0, 0, .9);
  transition: border-color .25s var(--ease);
}
.card:hover { border-color: var(--line-strong); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.card-head > .muted { font-size: 12.5px; }
.card.pad-0 { padding: 0; overflow: hidden; }

.kpi { padding: 18px 20px; }
.kpi .label { font: 500 10.5px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--ink-dim); }
.kpi .value { font: 600 28px/1.1 var(--font-display); letter-spacing: -.02em; margin-top: 10px; color: var(--ink-bright); font-variant-numeric: tabular-nums; }
.kpi .value small { font: 500 12px var(--mono); color: var(--ink-dim); margin-left: 6px; letter-spacing: .04em; }
.kpi .sub { color: var(--ink-dim); font-size: 12.5px; margin-top: 6px; }

/* animated conic border, as on the site's highlighted panels */
.hero { padding: 30px 32px; overflow: hidden; isolation: isolate; border-color: transparent; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; padding: 1px; border-radius: inherit;
  background: conic-gradient(from var(--glow-angle), rgba(255, 255, 255, .06), rgba(124, 134, 255, .55), rgba(245, 158, 11, .5), rgba(255, 255, 255, .06) 40%, rgba(255, 255, 255, .06));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: glow 9s linear infinite;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: radial-gradient(600px 240px at 90% 0%, rgba(109, 43, 217, .22), transparent 70%), linear-gradient(180deg, var(--elevated), var(--surface));
}
@keyframes glow { to { --glow-angle: 360deg; } }
.hero h1 { font-size: clamp(1.45rem, 2.2vw, 1.9rem); }
.hero p { margin: 10px 0 0; color: var(--ink-muted); max-width: 820px; }
.meter { display: flex; gap: 5px; margin-top: 22px; }
.meter span { height: 4px; flex: 1; border-radius: 999px; background: var(--line-strong); }
.meter span.ok { background: var(--signal); }
.meter span.warn { background: var(--amber); }
.meter span.fail { background: var(--danger); }
.meter span.info { background: var(--iris); opacity: .6; }

/* ---------- controls */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .03); color: var(--ink);
  font: 500 14px var(--font-sans); cursor: pointer; white-space: nowrap;
  transition: background .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease), color .2s var(--ease);
}
.btn:hover { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .25); color: var(--ink-bright); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.btn-primary { background: #fff; color: var(--bg); border-color: #fff; font-weight: 600; }
.btn-primary:hover { background: #fff; color: var(--bg); border-color: #fff; box-shadow: 0 6px 28px -6px rgba(255, 81, 129, .5); }
.btn-primary:disabled:hover { box-shadow: none; }
.btn-danger { border-color: rgba(255, 107, 107, .35); color: #ffc9c9; background: rgba(255, 107, 107, .06); }
.btn-danger:hover { border-color: var(--danger); background: rgba(255, 107, 107, .14); color: #fff; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--ink-dim); }
.btn-ghost:hover { color: var(--ink-bright); background: rgba(255, 255, 255, .05); border-color: var(--line); }
.btn-sm { height: 32px; padding: 0 14px; font-size: 13px; }
.btn-lg { height: 48px; font-size: 15px; }
.btn-block { width: 100%; }

.field { display: flex; flex-direction: column; gap: 7px; }
.field > span { font: 500 10.5px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--ink-dim); }
.field small { color: var(--ink-dim); font-size: 12.5px; }
input, select, textarea {
  height: 44px; padding: 0 16px; border-radius: 12px;
  border: 1px solid var(--line-strong); background: rgba(8, 9, 10, .7); color: var(--ink-bright);
  font: 400 14.5px var(--font-sans); outline: none;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
input::placeholder { color: var(--ink-dim); }
input:hover { border-color: rgba(255, 255, 255, .22); }
input:focus { border-color: var(--iris); box-shadow: 0 0 0 4px rgba(124, 134, 255, .16); background: var(--bg); }
input.invalid { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(255, 107, 107, .12); }

.seg { display: inline-flex; padding: 4px; gap: 4px; border-radius: 999px; background: rgba(8, 9, 10, .7); border: 1px solid var(--line-strong); flex-wrap: wrap; }
.seg button { height: 34px; padding: 0 15px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-muted); font: 500 13px var(--font-sans); cursor: pointer; transition: all .2s var(--ease); }
.seg button:hover:not(:disabled) { color: var(--ink-bright); }
.seg button.on { background: #fff; color: var(--bg); font-weight: 600; }
.seg button:disabled { opacity: .35; cursor: not-allowed; }

/* ---------- badges, lists */

.badge {
  display: inline-flex; align-items: center; gap: 7px; height: 24px; padding: 0 11px; border-radius: 999px;
  font: 500 10.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .12em; white-space: nowrap;
  background: rgba(255, 255, 255, .04); color: var(--ink-muted); border: 1px solid var(--line-strong);
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.plain::before { display: none; }
.b-ok { color: var(--signal); border-color: rgba(47, 217, 141, .28); background: rgba(47, 217, 141, .08); }
.b-warn { color: var(--amber); border-color: rgba(245, 158, 11, .3); background: rgba(245, 158, 11, .08); }
.b-fail { color: #ff8a8a; border-color: rgba(255, 107, 107, .3); background: rgba(255, 107, 107, .08); }
.b-info { color: var(--iris-light); border-color: rgba(124, 134, 255, .3); background: rgba(124, 134, 255, .1); }
.b-run { color: var(--signal); border-color: rgba(47, 217, 141, .35); background: rgba(47, 217, 141, .08); }
.b-run::before { animation: pulse 1.8s infinite; }

.checks { display: flex; flex-direction: column; }
.check { display: grid; grid-template-columns: 20px 1fr; gap: 12px; padding: 13px 0; border-top: 1px solid var(--line); }
.check:first-child { border-top: 0; padding-top: 2px; }
.check .dot { width: 8px; height: 8px; border-radius: 50%; margin: 7px 0 0 5px; }
.check .dot.ok { background: var(--signal); box-shadow: 0 0 12px rgba(47, 217, 141, .55); }
.check .dot.warn { background: var(--amber); box-shadow: 0 0 12px rgba(245, 158, 11, .45); }
.check .dot.fail { background: var(--danger); box-shadow: 0 0 12px rgba(255, 107, 107, .55); }
.check .dot.info { background: var(--iris); opacity: .75; }
.check b { font-weight: 600; color: var(--ink-bright); }
.check .detail { color: var(--ink-muted); font-size: 13.5px; }
.check .fix { margin-top: 7px; font: 12px/1.5 var(--mono); color: var(--ink); background: rgba(8, 9, 10, .7); border: 1px dashed var(--line-strong); border-radius: 10px; padding: 8px 11px; word-break: break-word; }

.recs { display: flex; flex-direction: column; gap: 10px; }
.rec {
  position: relative; display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: start;
  padding: 15px 18px 15px 20px; border-radius: 14px;
  background: rgba(8, 9, 10, .55); border: 1px solid var(--line); overflow: hidden;
  transition: border-color .2s var(--ease);
}
.rec:hover { border-color: var(--line-strong); }
.rec::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 2px; border-radius: 2px; background: var(--iris); }
.rec.blocker::before { background: var(--danger); }
.rec.next::before { background: var(--amber); box-shadow: 0 0 12px rgba(245, 158, 11, .6); }
.rec.gap::before { background: var(--violet-lift); }
.rec.finding::before { background: var(--iris); }
.rec .t { font-weight: 600; color: var(--ink-bright); }
.rec .d { color: var(--ink-muted); font-size: 13.5px; margin-top: 4px; }
.rec .kind { font: 500 10px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-dim); margin-bottom: 4px; }
.rec.next .kind { color: var(--amber); }
.rec.blocker .kind { color: #ff8a8a; }

/* ---------- scenarios */

.scenario { display: flex; flex-direction: column; gap: 14px; transition: border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease); }
.scenario:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 30px 60px -36px rgba(109, 43, 217, .55); }
.scenario.unavailable { opacity: .55; }
.scenario.unavailable:hover { transform: none; box-shadow: none; }
.scenario .name { font: 600 17px var(--font-display); color: var(--ink-bright); letter-spacing: -.01em; }
.scenario .desc { color: var(--ink-muted); font-size: 13.5px; white-space: pre-line; max-height: 7.6em; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 68%, transparent); mask-image: linear-gradient(180deg, #000 68%, transparent); }
.facts { display: flex; gap: 22px; flex-wrap: wrap; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fact .k { font: 500 10px/1.4 var(--mono); color: var(--ink-dim); text-transform: uppercase; letter-spacing: .14em; }
.fact .v { font-weight: 600; color: var(--ink-bright); font-variant-numeric: tabular-nums; margin-top: 3px; }
.scenario .foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.note { font-size: 12.5px; color: var(--amber); }

/* ---------- drawer */

.scrim { position: fixed; inset: 0; background: rgba(4, 5, 6, .66); backdrop-filter: blur(6px); z-index: 30; animation: fade .2s; }
.drawer {
  position: fixed; top: 12px; right: 12px; bottom: 12px; width: min(500px, calc(100vw - 24px)); z-index: 31;
  background: linear-gradient(180deg, var(--elevated), var(--surface)); border: 1px solid var(--line-strong); border-radius: 22px;
  padding: 30px; display: flex; flex-direction: column; gap: 20px; overflow-y: auto;
  animation: slide .28s var(--ease); box-shadow: -40px 0 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(124, 134, 255, .06);
}
@keyframes slide { from { transform: translateX(28px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
.drawer .foot { margin-top: auto; display: flex; gap: 10px; justify-content: flex-end; padding-top: 6px; }
.callout { padding: 13px 16px; border-radius: 14px; font-size: 13.5px; border: 1px solid; line-height: 1.5; }
.callout b { color: inherit; }
.callout.warn { color: #fcd9a0; border-color: rgba(245, 158, 11, .28); background: rgba(245, 158, 11, .06); }
.callout.info { color: var(--iris-light); border-color: rgba(124, 134, 255, .28); background: rgba(124, 134, 255, .07); }
.callout.fail { color: #ffc9c9; border-color: rgba(255, 107, 107, .3); background: rgba(255, 107, 107, .06); }

/* ---------- tables */

table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th { text-align: left; font: 500 10px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--ink-dim); padding: 13px 16px; border-bottom: 1px solid var(--line); background: rgba(8, 9, 10, .45); white-space: nowrap; }
td { padding: 13px 16px; border-bottom: 1px solid var(--line); color: var(--ink); }
tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .15s var(--ease); }
tbody tr.link:hover { background: rgba(255, 255, 255, .03); cursor: pointer; }
td.num, th.num { text-align: right; }
td .mono { color: var(--ink-bright); }
input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--iris); padding: 0; box-shadow: none; }

/* ---------- charts, logs */

.chart { position: relative; height: 240px; }
.chart canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.chart.tall { height: 300px; }
.chart .tip { position: absolute; pointer-events: none; z-index: 2; background: rgba(8, 9, 10, .94); border: 1px solid var(--line-strong); border-radius: 12px; padding: 9px 12px; font-size: 12px; min-width: 150px; box-shadow: 0 16px 40px -16px rgba(0, 0, 0, .9); backdrop-filter: blur(8px); }
.chart .tip .dim { font-family: var(--mono); font-size: 11px; margin-bottom: 3px; }
.chart .tip .r { display: flex; justify-content: space-between; gap: 16px; }
.chart .tip b { color: var(--ink-bright); font-weight: 600; }
.chart .tip .sw { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 7px; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--ink-dim); }
.legend i { display: inline-block; width: 12px; height: 3px; border-radius: 2px; margin-right: 7px; vertical-align: middle; }
.empty { display: grid; place-items: center; min-height: 100px; height: 100%; color: var(--ink-dim); font-size: 13.5px; text-align: center; padding: 22px; }

.log { background: #050607; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; font: 12px/1.6 var(--mono); color: #aeb4bd; height: 340px; overflow: auto; white-space: pre-wrap; word-break: break-word; margin: 0; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.tabs button { height: 28px; padding: 0 12px; border-radius: 999px; border: 1px solid transparent; background: transparent; color: var(--ink-dim); font: 500 11px var(--mono); letter-spacing: .06em; cursor: pointer; transition: all .2s var(--ease); }
.tabs button:hover { color: var(--ink-bright); }
.tabs button.on { background: rgba(255, 255, 255, .06); border-color: var(--line-strong); color: var(--ink-bright); }

.progress { height: 4px; border-radius: 999px; background: var(--line-strong); overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--violet-lift), var(--iris), var(--amber)); transition: width .8s var(--ease); }

.files { display: flex; flex-wrap: wrap; gap: 8px; }
.files a { font: 12px var(--mono); padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--ink-muted); background: rgba(255, 255, 255, .02); transition: all .2s var(--ease); }
.files a:hover { color: var(--ink-bright); border-color: rgba(124, 134, 255, .55); background: rgba(124, 134, 255, .08); }

.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 50; padding: 12px 20px; border-radius: 999px; background: rgba(25, 26, 29, .96); border: 1px solid var(--line-strong); box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .9); font-weight: 500; color: var(--ink-bright); animation: fade .2s; max-width: 90vw; backdrop-filter: blur(10px); }
.toast.err { border-color: rgba(255, 107, 107, .5); color: #ffc9c9; }

/* ---------- login */

.login { position: relative; min-height: 100vh; display: grid; place-items: center; padding: 24px; overflow: hidden; }
.login-glow { position: absolute; width: 900px; height: 900px; border-radius: 50%; top: 50%; left: 50%; transform: translate(-50%, -58%); background: radial-gradient(closest-side, rgba(109, 43, 217, .28), rgba(124, 134, 255, .08) 55%, transparent); pointer-events: none; }
.login-card {
  position: relative; width: min(440px, 100%);
  background: linear-gradient(180deg, rgba(25, 26, 29, .85), rgba(13, 14, 16, .92));
  border: 1px solid var(--line-strong); border-radius: 24px; padding: 36px 34px 32px;
  box-shadow: 0 40px 100px -40px rgba(0, 0, 0, .95), 0 0 0 1px rgba(124, 134, 255, .05);
  display: flex; flex-direction: column; gap: 12px; backdrop-filter: blur(12px);
}
.login-logo { width: 108px; height: auto; margin-bottom: 14px; }
.login-card h1 { font-size: 28px; margin-top: -2px; }
.login-card p { margin: 0 0 6px; font-size: 13.5px; }
.login-card .eyebrow { color: var(--amber); }

.skeleton { height: 140px; border-radius: var(--radius); background: linear-gradient(90deg, var(--surface) 0%, var(--elevated) 50%, var(--surface) 100%); background-size: 200% 100%; animation: sk 1.3s infinite; border: 1px solid var(--line); }
@keyframes sk { to { background-position: -200% 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition: none !important; }
}
