
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("fonts/space-grotesk.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("fonts/jetbrains-mono.woff2") format("woff2");
}
@font-face { font-family: "Space Grotesk Fallback"; src: local("Arial"); ascent-override: 89.71%; descent-override: 26.62%; line-gap-override: 0%; size-adjust: 109.69%; }
@font-face { font-family: "JetBrains Mono Fallback"; src: local("Arial"); ascent-override: 75.79%; descent-override: 22.29%; line-gap-override: 0%; size-adjust: 134.59%; }

:root {
  --font-display: "Space Grotesk", "Space Grotesk Fallback";
  --font-mono: "JetBrains Mono", "JetBrains Mono Fallback";
  --display: var(--font-display), ui-sans-serif, system-ui, sans-serif;
  --mono: var(--font-mono), ui-monospace, SFMono-Regular, monospace;
}
:root, [data-theme="dark"] {
  color-scheme: dark;
  --c-ink-950: 10 10 14; --c-ink-900: 20 20 29; --c-ink-800: 25 25 35; --c-ink-700: 32 32 44;
  --c-zinc-50: 250 250 250; --c-zinc-100: 244 244 245; --c-zinc-200: 228 228 231; --c-zinc-300: 212 212 216;
  --c-zinc-400: 161 161 170; --c-zinc-500: 113 113 122; --c-zinc-600: 82 82 91; --c-zinc-700: 63 63 70;
  --c-zinc-800: 39 39 42; --c-zinc-900: 24 24 27; --c-zinc-950: 9 9 11;
  --c-line: 255 255 255; --c-brand-bright: 154 111 192; --c-amber: 214 165 70; --c-success: 95 174 138;
  --c-danger: 205 96 118; --c-dim: 154 154 170; --c-faint: 93 93 110;
  --c-particle: 115 78 147; --c-particle-bright: 154 111 192; --c-glow: 255 255 255;
  --glass-bg: rgba(62,60,86,0.27); --glass-blur: 10px; --field-bg: rgba(40,39,56,0.66);
  --shadow-soft: 0 1px 2px rgba(5,4,10,0.5); --shadow-elevated: 0 18px 50px -16px rgba(8,4,16,0.85);
  --wordmark-stroke: rgba(232,232,239,0.9); --callout-text: #e7c98a;
  --txt: #e8e8ef; --txt-dim: #9a9aaa; --txt-faint: #5d5d6e; --brand: #734e93; --brand-bright: #9a6fc0;
  --border: rgba(232,232,239,0.08); --border-2: rgba(232,232,239,0.12); --border-brand: rgba(115,78,147,0.4);
}
[data-theme="light"] {
  color-scheme: light;
  --c-ink-950: 244 243 249; --c-ink-900: 255 255 255; --c-ink-800: 238 236 245; --c-ink-700: 228 225 238;
  --c-zinc-50: 9 9 11; --c-zinc-100: 24 24 27; --c-zinc-200: 39 39 42; --c-zinc-300: 63 63 70; --c-zinc-400: 82 82 91;
  --c-zinc-500: 104 104 114; --c-zinc-600: 161 161 170; --c-zinc-700: 212 212 216; --c-zinc-800: 228 228 231;
  --c-zinc-900: 244 244 245; --c-zinc-950: 250 250 250;
  --c-line: 30 24 48; --c-brand-bright: 99 64 130; --c-amber: 138 90 0; --c-success: 30 122 84; --c-danger: 176 48 74;
  --c-dim: 90 90 106; --c-faint: 108 108 122;
  --c-particle: 115 78 147; --c-particle-bright: 99 64 130; --c-glow: 115 78 147;
  --glass-bg: rgba(255,255,255,0.55); --glass-blur: 10px; --field-bg: rgba(255,255,255,0.82);
  --shadow-soft: 0 1px 2px rgba(40,30,70,0.08); --shadow-elevated: 0 18px 50px -20px rgba(40,24,70,0.28);
  --wordmark-stroke: rgba(29,27,38,0.85); --callout-text: #7a5000;
  --txt: #1d1b26; --txt-dim: #5a5a6a; --txt-faint: #8a8a9a; --brand-bright: #634082;
  --border: rgba(30,24,48,0.08); --border-2: rgba(30,24,48,0.14); --border-brand: rgba(115,78,147,0.35);
}
@media (prefers-color-scheme: light) {
  :root[data-theme="system"] {
    color-scheme: light;
    --c-ink-950: 244 243 249; --c-ink-900: 255 255 255; --c-ink-800: 238 236 245; --c-ink-700: 228 225 238;
    --c-zinc-50: 9 9 11; --c-zinc-100: 24 24 27; --c-zinc-200: 39 39 42; --c-zinc-300: 63 63 70; --c-zinc-400: 82 82 91;
    --c-zinc-500: 104 104 114; --c-zinc-600: 161 161 170; --c-zinc-700: 212 212 216; --c-zinc-800: 228 228 231;
    --c-zinc-900: 244 244 245; --c-zinc-950: 250 250 250;
    --c-line: 30 24 48; --c-brand-bright: 99 64 130; --c-amber: 138 90 0; --c-success: 30 122 84; --c-danger: 176 48 74;
    --c-dim: 90 90 106; --c-faint: 108 108 122;
    --c-particle: 115 78 147; --c-particle-bright: 99 64 130; --c-glow: 115 78 147;
    --glass-bg: rgba(255,255,255,0.55); --glass-blur: 10px; --field-bg: rgba(255,255,255,0.82);
    --shadow-soft: 0 1px 2px rgba(40,30,70,0.08); --shadow-elevated: 0 18px 50px -20px rgba(40,24,70,0.28);
    --wordmark-stroke: rgba(29,27,38,0.85); --callout-text: #7a5000;
    --txt: #1d1b26; --txt-dim: #5a5a6a; --txt-faint: #8a8a9a; --brand-bright: #634082;
    --border: rgba(30,24,48,0.08); --border-2: rgba(30,24,48,0.14); --border-brand: rgba(115,78,147,0.35);
  }
}

*, ::before, ::after { box-sizing: border-box; border: 0 solid; }
html { line-height: 1.5; -webkit-text-size-adjust: 100%; font-family: var(--display); -webkit-tap-highlight-color: transparent; }
body {
  margin: 0; min-height: 100vh;
  background: rgb(var(--c-ink-950)); color: rgb(var(--c-zinc-100));
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, p, dl, dd, ul, ol, figure, pre { margin: 0; }
h1, h2, h3, h4 { font-size: inherit; font-weight: inherit; }
h1, h2 { font-family: var(--display); letter-spacing: -0.02em; text-wrap: balance; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: inherit; }
button, input, select, textarea { font: inherit; letter-spacing: inherit; color: inherit; margin: 0; padding: 0; }
button { background: transparent; cursor: pointer; }
table { border-collapse: collapse; }
svg { display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--brand-bright); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border-width: 0; }
.mono { font-family: var(--mono); }
.muted { color: rgb(var(--c-zinc-500)); }
.dash { color: rgb(var(--c-zinc-600)); }

#bg-mesh, .ambient-glow, .ambient-grain { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
#bg-mesh { width: 100%; height: 100%; }
.ambient-glow { background:
  radial-gradient(620px 420px at 18% -8%, rgba(115,78,147,0.22), transparent 70%),
  radial-gradient(540px 380px at 100% 0%, rgba(115,78,147,0.1), transparent 65%); }
.ambient-grain { opacity: 0.045; mix-blend-mode: overlay; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

.wordmark-wrap { position: relative; display: inline-block; }
.wordmark { display: block; font-family: var(--mono); font-weight: 700; font-size: clamp(34px,6vw,64px); line-height: 0.92; letter-spacing: 0.04em; color: transparent; -webkit-text-stroke: 1.4px var(--wordmark-stroke); }
.wordmark-glyphs { position: absolute; inset: 0; font-family: var(--mono); font-size: 12px; line-height: 1.1; letter-spacing: 0.12em; color: var(--brand); opacity: 0.28; overflow: hidden; word-break: break-all; -webkit-mask-image: linear-gradient(180deg,#000 30%,transparent 92%); mask-image: linear-gradient(180deg,#000 30%,transparent 92%); pointer-events: none; user-select: none; z-index: -1; }
.logo-mark { flex-shrink: 0; animation: logo-pulse 3.6s ease-in-out infinite; }
@keyframes logo-pulse { 0%,100% { filter: drop-shadow(0 4px 10px rgba(115,78,147,0.45)); } 50% { filter: drop-shadow(0 4px 18px rgba(115,78,147,0.8)); } }

.glass-edge { position: relative; isolation: isolate; background-color: var(--glass-bg); }
.glass-edge::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; -webkit-backdrop-filter: blur(var(--glass-blur)); backdrop-filter: blur(var(--glass-blur)); }
.glass-edge::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 1px 0 rgba(255,255,255,0.04); }

.status-pill { display: inline-flex; align-items: center; gap: 9px; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--border-2); background: rgb(var(--c-ink-900)); font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--txt-dim); white-space: nowrap; transition: border-color .25s ease, color .25s ease, background .25s ease; }
.status-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--txt-faint); transition: background .25s ease, box-shadow .25s ease; }
.status-pill[data-state="online"], .status-pill[data-state="ok"] { color: rgb(var(--c-success)); border-color: rgb(var(--c-success) / 0.45); background: rgb(var(--c-success) / 0.08); }
.status-pill[data-state="online"] .dot, .status-pill[data-state="ok"] .dot { background: rgb(var(--c-success)); box-shadow: 0 0 0 4px rgb(var(--c-success) / 0.18); }
.status-pill[data-state="warning"] { color: rgb(var(--c-amber)); border-color: rgb(var(--c-amber) / 0.4); }
.status-pill[data-state="warning"] .dot { background: rgb(var(--c-amber)); animation: pulse-dot 1.1s ease-in-out infinite; }
.status-pill[data-state="error"], .status-pill[data-state="offline"] { color: rgb(var(--c-danger)); border-color: rgb(var(--c-danger) / 0.45); }
.status-pill[data-state="error"] .dot, .status-pill[data-state="offline"] .dot { background: rgb(var(--c-danger)); }
.status-pill.sm { gap: 7px; padding: 4px 10px; font-size: 10.5px; }
.status-pill.sm .dot { width: 6px; height: 6px; }

.badge { display: inline-flex; align-items: center; border-radius: 10px; border: 1px solid rgb(var(--c-line) / .1); background: rgb(var(--c-ink-800)); padding: 2px 8px; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .025em; color: rgb(var(--c-zinc-300)); white-space: nowrap; }
.badge--brand { border-color: rgba(115,78,147,.4); background: rgba(115,78,147,.16); color: rgb(var(--c-brand-bright)); }
.badge-row { display: inline-flex; flex-wrap: wrap; gap: 4px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 11px 18px; border-radius: 10px; border: 1px solid transparent; font-family: var(--mono); font-size: 12.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1; cursor: pointer; white-space: nowrap; transition: transform .18s ease, background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease, filter .2s ease; }
.btn:hover:not(:disabled):not(:active) { transform: translateY(-1px); }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn svg { width: 14px; height: 14px; }
.btn-primary { background: linear-gradient(180deg,#9a6fc0,#734e93); color: #fff; box-shadow: 0 14px 40px -14px rgba(115,78,147,0.55); }
.btn-primary:hover:not(:disabled) { filter: brightness(1.06); box-shadow: 0 16px 44px -12px rgba(115,78,147,0.7); }
.btn-ghost { background: rgb(var(--c-ink-800)); border-color: var(--border-2); color: var(--txt); }
.btn-ghost:hover:not(:disabled) { border-color: var(--border-brand); background: rgb(var(--c-ink-700)); }
.btn-danger { background: transparent; border-color: rgb(var(--c-danger) / 0.5); color: rgb(var(--c-danger)); }
.btn-danger:hover:not(:disabled) { background: rgb(var(--c-danger) / 0.1); border-color: rgb(var(--c-danger)); }
.btn-warn { background: transparent; border-color: rgb(var(--c-amber) / .4); color: rgb(var(--c-amber)); }
.btn-warn:hover:not(:disabled) { background: rgb(var(--c-amber) / .1); border-color: rgb(var(--c-amber)); }
.btn-sm { gap: 6px; padding: 7px 11px; border-radius: 8px; font-size: 11px; }

.field-label { display: block; font-size: 14px; }
.field-label > span { color: rgb(var(--c-zinc-400)); }
.input { display: block; margin-top: 4px; width: 100%; border-radius: 8px; border: 1px solid rgb(var(--c-line) / .1); background: var(--field-bg); padding: 8px 12px; color: rgb(var(--c-zinc-100)); font-size: 14px; transition: border-color .15s, box-shadow .15s; }
.input:hover { border-color: rgb(var(--c-line) / .2); }
.input:focus { outline: none; border-color: #734e93; box-shadow: 0 0 0 2px rgba(115,78,147,.3); }
select.input option { background-color: rgb(var(--c-ink-900)); }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: rgb(var(--c-zinc-400)); cursor: pointer; }
.check input { accent-color: #734e93; width: 14px; height: 14px; }
.callout { display: flex; gap: 12px; padding: 13px 15px; border-radius: 10px; background: rgb(var(--c-amber) / 0.12); border: 1px solid rgb(var(--c-amber) / 0.3); color: var(--callout-text); font-size: 13px; line-height: 1.5; }
.code-box { display: block; overflow-wrap: anywhere; border-radius: 10px; border: 1px solid rgb(var(--c-line) / .1); background: rgb(var(--c-ink-800)); padding: 8px 12px; font-family: var(--mono); font-size: 12px; color: rgb(var(--c-zinc-300)); }

.shell { display: flex; min-height: 100vh; }
.shell-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sidebar { position: sticky; top: 0; display: none; height: 100vh; width: 240px; flex-shrink: 0; flex-direction: column; overflow-y: auto; border-right: 1px solid rgb(var(--c-line) / .1); background: rgb(var(--c-ink-900) / .4); padding: 16px; }
@media (min-width: 768px) { .sidebar { display: flex; } }
.brand-lockup { display: flex; align-items: center; gap: 12px; margin-bottom: 32px; }
.brand-lockup .t { line-height: 1.25; }
.brand-lockup .name { font-family: var(--mono); font-size: 16px; line-height: 24px; font-weight: 600; letter-spacing: .2em; color: rgb(var(--c-zinc-100)); }
.brand-lockup .sub { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .3em; color: rgb(var(--c-faint)); }
.nav { display: flex; flex-direction: column; gap: 20px; }
.nav-section { display: flex; flex-direction: column; gap: 2px; }
.nav-section-label { padding: 0 12px 4px; font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .18em; color: rgb(var(--c-faint)); }
.nav-item { display: flex; align-items: center; gap: 12px; border-radius: 10px; border: 1px solid transparent; padding: 8px 12px; font-size: 14px; line-height: 20px; color: rgb(var(--c-zinc-400)); transition: all .2s cubic-bezier(.4,0,.2,1); }
.nav-item:not([aria-current="page"]):hover { transform: translateX(2px); background: rgb(var(--c-line) / .05); color: rgb(var(--c-zinc-100)); }
.nav-item[aria-current="page"] { border-color: rgba(115,78,147,.3); background: rgba(115,78,147,.16); color: rgb(var(--c-brand-bright)); }
.nav-item svg { width: 16px; height: 16px; flex-shrink: 0; }
.side-footer { margin-top: auto; border-top: 1px solid rgb(var(--c-line) / .05); padding-top: 24px; }
.side-footer p { white-space: nowrap; font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .15em; color: rgb(var(--c-faint)); }

.top { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid rgb(var(--c-line) / .1); background: rgb(var(--c-ink-950) / .6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.top .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; }
@media (min-width: 768px) { .top .row { padding: 10px 24px; } }
.mobile-cluster { display: flex; align-items: center; gap: 8px; }
@media (min-width: 768px) { .mobile-cluster { display: none; } }
.top-right { margin-left: auto; }
.icon-btn { border-radius: 10px; padding: 8px; color: rgb(var(--c-zinc-300)); transition: color .15s, background-color .15s; }
.icon-btn:hover { background: rgb(var(--c-line) / .05); color: rgb(var(--c-zinc-100)); }
.icon-btn svg { width: 20px; height: 20px; }
.user-trigger { display: flex; align-items: center; gap: 10px; border-radius: 10px; border: 1px solid transparent; padding: 4px 8px 4px 4px; font-size: 14px; transition: color .15s, background-color .15s, border-color .15s; }
.user-trigger:hover, .user-trigger[aria-expanded="true"] { border-color: rgb(var(--c-line) / .1); background: rgb(var(--c-line) / .05); }
.avatar { display: flex; height: 32px; width: 32px; align-items: center; justify-content: center; border-radius: 9999px; border: 1px solid rgba(115,78,147,.4); background: rgba(115,78,147,.16); font-family: var(--mono); font-size: 14px; text-transform: uppercase; color: rgb(var(--c-brand-bright)); }
.user-trigger .who { display: none; min-width: 0; text-align: left; line-height: 1.25; }
@media (min-width: 640px) { .user-trigger .who { display: block; } }
.user-trigger .email { display: block; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--mono); font-size: 12px; color: rgb(var(--c-zinc-200)); }
.user-trigger .role { display: block; font-size: 11px; color: rgb(var(--c-zinc-500)); }
.user-trigger .chev { width: 16px; height: 16px; color: rgb(var(--c-zinc-500)); }
.main { flex: 1; padding: 24px 16px; }
@media (min-width: 768px) { .main { padding: 24px; } }
.stack { display: flex; flex-direction: column; gap: 24px; }

.menu-panel { position: fixed; z-index: 50; min-width: 220px; border-radius: 14px; border: 1px solid rgb(var(--c-line) / .1); background: rgb(var(--c-ink-900)); padding: 4px; box-shadow: var(--shadow-elevated); }
.menu-pop { animation: fadeIn .12s ease-out both; }
.menu-head { padding: 6px 12px 8px; }
.menu-head .k { font-size: 11px; color: rgb(var(--c-zinc-500)); }
.menu-head .v { font-family: var(--mono); font-size: 12px; color: rgb(var(--c-zinc-200)); }
.menu-head .role-badge { margin-top: 4px; display: inline-block; border-radius: 10px; border: 1px solid rgb(var(--c-line) / .1); background: rgb(var(--c-line) / .05); padding: 2px 6px; font-size: 11px; color: rgb(var(--c-brand-bright)); }
.menu-block { padding: 8px 12px; }
.menu-item { display: flex; width: 100%; align-items: center; gap: 10px; border-radius: 10px; padding: 8px 12px; text-align: left; font-size: 14px; color: rgb(var(--c-zinc-200)); }
.menu-item svg { width: 16px; height: 16px; }
.menu-item:hover, .menu-item:focus { background: rgb(var(--c-line) / .05); outline: none; }
.menu-item--danger { color: rgb(var(--c-danger)); }
.menu-item--danger:hover, .menu-item--danger:focus { background: rgb(var(--c-danger) / .1); }
.menu-sep { margin: 4px 0; height: 1px; background: rgb(var(--c-line) / .05); }
.theme-label { display: block; margin-bottom: 6px; font-size: 11px; color: rgb(var(--c-zinc-500)); }
.theme-switch { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; border-radius: 10px; border: 1px solid rgb(var(--c-line) / .1); background: rgb(var(--c-ink-800)); padding: 2px; }
.theme-switch button { display: flex; align-items: center; justify-content: center; gap: 6px; border-radius: 7px; padding: 4px 8px; font-size: 12px; color: rgb(var(--c-zinc-400)); }
.theme-switch button:hover { color: rgb(var(--c-zinc-200)); }
.theme-switch button[aria-checked="true"] { background: rgba(115,78,147,0.16); color: rgb(var(--c-brand-bright)); }
.theme-switch svg { width: 14px; height: 14px; }

.drawer { position: fixed; inset: 0; z-index: 40; }
@media (min-width: 768px) { .drawer { display: none !important; } }
.drawer-backdrop { position: absolute; inset: 0; background: rgb(0 0 0 / .6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.drawer-panel { position: absolute; top: 0; bottom: 0; left: 0; display: flex; flex-direction: column; width: 288px; max-width: 85vw; overflow-y: auto; border-right: 1px solid rgb(var(--c-line) / .1); background: rgb(var(--c-ink-900)); padding: 16px; box-shadow: var(--shadow-elevated); animation: drawer-in .18s ease-out both; }
.drawer-head { margin-bottom: 32px; display: flex; justify-content: space-between; gap: 8px; }
.drawer-head .brand-lockup { margin-bottom: 0; }

.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.page-head .l { min-width: 0; }
.page-head h1 { overflow-wrap: break-word; font-size: 24px; line-height: 32px; font-weight: 600; letter-spacing: -.025em; }
.page-head .sub { margin-top: 4px; font-size: 14px; line-height: 20px; color: rgb(var(--c-zinc-500)); }
.page-head .actions { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; }

.card { border-radius: 26px; border: 1px solid rgb(var(--c-line) / .1); padding: 20px; box-shadow: var(--shadow-soft); }
.card--section { padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-title { font-family: var(--mono); font-size: 12px; line-height: 16px; text-transform: uppercase; letter-spacing: .1em; color: rgb(var(--c-zinc-500)); }

.kpi-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
@media (min-width: 768px) { .kpi-grid { grid-template-columns: repeat(4, minmax(0,1fr)); } }
.kpi { display: block; border-radius: 26px; border: 1px solid rgb(var(--c-line) / .1); padding: 20px; transition: border-color .2s, background-color .2s; }
a.kpi:hover { border-color: rgb(115 78 147 / .4); background-color: rgb(var(--c-ink-800)); }
.kpi--accent { border-color: rgb(115 78 147 / .4); box-shadow: 0 14px 40px -14px #734e93; }
a.kpi--accent:hover { border-color: rgb(115 78 147 / .6); }
.kpi .k { font-family: var(--mono); font-size: 12px; line-height: 16px; text-transform: uppercase; letter-spacing: .1em; color: rgb(var(--c-zinc-500)); }
.kpi .v { margin-top: 8px; font-family: var(--display); font-size: 30px; line-height: 36px; letter-spacing: -.025em; color: rgb(var(--c-zinc-100)); font-variant-numeric: tabular-nums; }
.kpi .s { margin-top: 8px; font-size: 12px; color: rgb(var(--c-zinc-400)); }

.two-col { display: grid; gap: 24px; }
@media (min-width: 1280px) { .two-col { grid-template-columns: minmax(0,3fr) minmax(0,2fr); align-items: start; } }

.stack-sm { display: flex; flex-direction: column; gap: 16px; }
.form-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); align-items: end; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

.feed { display: flex; flex-direction: column; }
.feed-row { display: grid; grid-template-columns: 92px minmax(0,1fr); gap: 4px 12px; padding: 10px 0; border-top: 1px solid rgb(var(--c-line) / .05); font-size: 13px; }
.feed-row:first-child { border-top: 0; padding-top: 0; }
.feed-time { font-family: var(--mono); font-size: 12px; font-variant-numeric: tabular-nums; color: rgb(var(--c-zinc-500)); }
.feed-what { min-width: 0; overflow-wrap: anywhere; color: rgb(var(--c-zinc-300)); }
.feed-what b { font-weight: 500; color: rgb(var(--c-zinc-100)); }
.feed-ip { grid-column: 2; font-family: var(--mono); font-size: 11px; color: rgb(var(--c-zinc-500)); }

.table-card { border-radius: 26px; border: 1px solid rgb(var(--c-line) / .1); overflow-x: auto; box-shadow: var(--shadow-soft); }
table.data { width: 100%; font-size: 14px; line-height: 20px; }
table.data thead { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: rgb(var(--c-zinc-500)); border-bottom: 1px solid rgb(var(--c-line) / .05); }
table.data th { padding: 12px 16px; text-align: left; font-weight: 500; white-space: nowrap; }
table.data th.r, table.data td.r { text-align: right; }
table.data tbody tr { border-bottom: 1px solid rgb(var(--c-line) / .05); transition: background-color .15s cubic-bezier(.4,0,.2,1); }
table.data tbody tr:last-child { border-bottom: 0; }
table.data tbody tr:hover { background: rgb(var(--c-ink-800) / .5); }
table.data td { padding: 12px 16px; vertical-align: middle; }
.cell-key { font-family: var(--mono); color: rgb(var(--c-zinc-200)); white-space: nowrap; }
.cell-sub { display: block; font-family: var(--mono); font-size: 11px; color: rgb(var(--c-zinc-500)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.cell-time { font-family: var(--mono); font-size: 12px; font-variant-numeric: tabular-nums; color: rgb(var(--c-zinc-400)); white-space: nowrap; }
.cell-clip { display: block; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cell-link { color: rgb(var(--c-brand-bright)); font-family: var(--mono); font-size: 12px; }
.cell-link:hover { text-decoration: underline; }
.row-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
@media (min-width: 1024px) { .row-actions { flex-wrap: nowrap; } }
.row-actions form { display: inline; }
.empty { padding: 48px 24px; text-align: center; }
.empty p { color: rgb(var(--c-zinc-400)); }
.empty p + p { margin-top: 8px; font-size: 14px; color: rgb(var(--c-zinc-500)); }

.toasts { position: fixed; bottom: 16px; right: 16px; z-index: 60; display: flex; flex-direction: column; gap: 8px; max-width: min(24rem, calc(100vw - 32px)); }
.toast { display: flex; align-items: flex-start; gap: 12px; border-radius: 14px; border: 1px solid; padding: 12px 16px; font-size: 14px; box-shadow: var(--shadow-elevated); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); animation: fadeIn 120ms ease-out; }
.toast p { flex: 1; }
.toast--success { border-color: rgb(var(--c-success) / .4); background: rgb(var(--c-success) / .1); color: rgb(var(--c-success)); }
.toast--error { border-color: rgb(var(--c-danger) / .4); background: rgb(var(--c-danger) / .1); color: rgb(var(--c-danger)); }
.toast--info { border-color: rgb(115 78 147 / .4); background: rgba(115,78,147,0.16); color: rgb(var(--c-zinc-100)); }
.toast-close { color: rgb(var(--c-zinc-400)); line-height: 1; font-size: 18px; }
.toast-close:hover { color: rgb(var(--c-zinc-100)); }

.solo-main { display: flex; min-height: 100vh; align-items: center; justify-content: center; padding: 48px 16px; }
.login-card { width: 100%; max-width: 28rem; border-radius: 16px; border: 1px solid rgb(var(--c-line) / .1); padding: 32px; box-shadow: var(--shadow-elevated); display: flex; flex-direction: column; gap: 24px; }
.login-card .center { text-align: center; }
.wm-holder { position: relative; display: inline-block; }
.wm-glow { position: absolute; inset: -12px; border-radius: 9999px; background-image: linear-gradient(to right, rgba(115,78,147,.4), rgb(var(--c-brand-bright) / .3), rgba(115,78,147,.4)); opacity: .75; filter: blur(24px); }
@media (prefers-reduced-motion: no-preference) { .wm-glow { animation: pulse 2s cubic-bezier(.4,0,.6,1) infinite; } }
@keyframes pulse { 50% { opacity: .5; } }
.wm-holder .wordmark { position: relative; font-size: clamp(34px,7vw,56px); }
.login-card h1 { margin-top: 16px; font-size: 20px; line-height: 28px; font-weight: 600; letter-spacing: -.025em; }
.login-card .lead { margin-top: 4px; font-size: 14px; line-height: 20px; color: rgb(var(--c-line) / .6); }
.field { position: relative; }
.field-icon { pointer-events: none; position: absolute; left: 12px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: rgb(var(--c-line) / .5); }
.field input { width: 100%; border-radius: 20px; border: 1px solid rgb(var(--c-line) / .1); background: rgb(var(--c-line) / .05); padding: 10px 40px 10px 40px; color: rgb(var(--c-zinc-100)); transition: color .15s, background-color .15s, border-color .15s; }
.field input::placeholder { color: rgb(var(--c-line) / .5); }
.field input:hover { border-color: rgb(var(--c-line) / .2); }
.field input:focus { border-color: rgb(var(--c-brand-bright) / .6); outline: none; box-shadow: 0 0 0 2px rgba(115,78,147,.3); }
.pw-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border-radius: 4px; padding: 4px; color: rgb(var(--c-line) / .5); }
.pw-toggle:hover { color: rgb(var(--c-zinc-100)); }
.pw-toggle svg { width: 18px; height: 18px; }
.login-submit { display: flex; width: 100%; align-items: center; justify-content: center; gap: 8px; border-radius: 20px; background: #734e93; padding: 12px 0; font-weight: 500; color: #fff; box-shadow: 0 10px 15px -3px rgba(115,78,147,.2), 0 4px 6px -4px rgba(115,78,147,.2); transition: all .2s cubic-bezier(.4,0,.2,1); }
.login-submit:hover { transform: translateY(-2px); background: #62407f; box-shadow: 0 10px 15px -3px rgba(115,78,147,.4), 0 4px 6px -4px rgba(115,78,147,.4); }
.login-submit:focus-visible { outline: none; box-shadow: 0 0 0 2px rgb(var(--c-brand-bright) / .6); }
.login-note { text-align: center; font-size: 12px; color: rgb(var(--c-line) / .5); }
.err-code { font-family: var(--mono); font-size: 56px; line-height: 1; font-weight: 700; letter-spacing: .04em; color: transparent; -webkit-text-stroke: 1.4px var(--wordmark-stroke); }

.status-card { width: 100%; max-width: 32rem; border-radius: 26px; border: 1px solid rgb(var(--c-line) / .1); padding: 28px; box-shadow: var(--shadow-elevated); display: flex; flex-direction: column; gap: 20px; }
.status-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.status-top .brand-lockup { margin-bottom: 0; }
.big-key { font-family: var(--mono); font-size: 18px; letter-spacing: .06em; color: rgb(var(--c-zinc-100)); overflow-wrap: anywhere; }
.kv { display: grid; grid-template-columns: 140px 1fr; row-gap: 10px; column-gap: 12px; font-size: 14px; }
.kv dt { color: rgb(var(--c-zinc-500)); }
.kv dd { color: rgb(var(--c-zinc-200)); overflow-wrap: anywhere; }
.kv dd.mono { font-size: 13px; }
.kv--wide dd { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.kv--wide dd .cmd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; flex: 1 1 100%; font: inherit; }
.kv--wide dd.mono { overflow-wrap: anywhere; word-break: break-all; }
.copy-btn[data-copied="true"] { border-color: var(--border-brand); }

@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse-dot { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }
@keyframes drawer-in { from { transform: translateX(-100%); } to { transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) {
  .btn:hover { transform: none !important; }
  .status-pill .dot { animation: none !important; }
  .nav-item:hover { transform: none !important; }
  .drawer-panel, .menu-pop, .toast { animation: none !important; }
  .logo-mark { animation: none !important; filter: drop-shadow(0 4px 10px rgba(115,78,147,0.45)); }
  .login-submit:hover { transform: none; }
}
.page-head-title { font-size: 20px; line-height: 28px; font-weight: 600; letter-spacing: -.025em; margin-bottom: 4px; }

.login-card .mark { display: flex; justify-content: center; margin-bottom: 12px; }
.field input.code { text-align: center; font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: .1em; }
.login-link { display: block; text-align: center; font-size: 12px; color: rgb(var(--c-line) / .5); }
.login-link:hover { color: rgb(var(--c-brand-bright)); }
.steps { list-style: decimal; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: rgb(var(--c-line) / .7); }
.qr-box { align-self: center; padding: 10px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px rgb(var(--c-line) / .1); }
.qr-box svg { display: block; width: 200px; height: 200px; }
.secret-box { display: block; border-radius: 20px; border: 1px solid rgb(var(--c-line) / .1); background: rgb(var(--c-line) / .05); padding: 10px 14px; font-family: var(--mono); font-size: 14px; letter-spacing: .08em; text-align: center; word-break: break-all; color: rgb(var(--c-zinc-100)); user-select: all; }
.codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.codes li { border-radius: 10px; background: rgb(var(--c-ink-800)); padding: 8px; text-align: center; font-family: var(--mono); font-size: 14px; letter-spacing: .1em; color: rgb(var(--c-zinc-100)); user-select: all; }
