/* ════════════════════════════════════════════════════════════════════
   System One — design tokens (extracted from the HTML prototype)
   Fonts: Syne (display), IBM Plex Mono (labels/code), Figtree (body)
════════════════════════════════════════════════════════════════════ */

:root {
  --sidebar-w: 228px;
  --topbar-h: 52px;

  --sidebar-bg:   #0a1018;
  --sidebar-fg:   rgba(240, 244, 248, 0.85);
  --sidebar-dim:  rgba(240, 244, 248, 0.35);
  --sidebar-sel:  rgba(193, 67, 78, 0.18);
  --sidebar-brd:  rgba(255, 255, 255, 0.07);

  --bg:   #f2f4f8;
  --bg2:  #fff;
  --bg3:  #eaecf2;

  --ink:  #0a1018;
  --ink2: #1c2a3a;
  --ink3: #4a5568;
  --ink4: #94a3b8;

  --border:  rgba(0, 0, 0, 0.07);
  --border2: rgba(0, 0, 0, 0.13);

  --rose:     #c1434e;
  --rose2:    #d94f5c;
  --rose-dim: rgba(193, 67, 78, 0.08);

  --green:     #22c55e;
  --green-dim: rgba(34, 197, 94, 0.07);
  --amber:     #f59e0b;
  --amber-dim: rgba(245, 158, 11, 0.08);
  --blue:      #3b82f6;
  --blue-dim:  rgba(59, 130, 246, 0.08);
  --purple:    #8b5cf6;
  --teal:      #06b6d4;
  --red:       #ef4444;
  --red-dim:   rgba(239, 68, 68, 0.08);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Figtree', sans-serif;
  font-weight: 300;
  height: 100%;
  display: flex;
  overflow: hidden;
}

/* ── SIDEBAR ──────────────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  min-height: 100vh;
  background: var(--sidebar-bg);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  border-right: 1px solid var(--sidebar-brd);
}
.sidebar-brand {
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  border-bottom: 1px solid var(--sidebar-brd);
}
.s1-logo {
  width: 28px; height: 28px;
  background: var(--rose);
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Syne', sans-serif; font-weight: 800; font-size: 0.75rem;
  color: #fff;
}
.brand-name {
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.88rem;
  color: rgba(240, 244, 248, 0.95);
}
.brand-v { margin-left: auto; font-size: 0.62rem; font-family: 'IBM Plex Mono', monospace; color: var(--sidebar-dim); }

/* Tenant switcher card */
.tenant-sw {
  margin: 12px 12px 4px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--sidebar-brd);
  border-radius: 8px;
  padding: 9px 12px;
  display: flex; align-items: center; gap: 8px;
  cursor: pointer; transition: background .15s;
}
.tenant-sw:hover { background: rgba(255, 255, 255, 0.09); }
.t-init {
  width: 24px; height: 24px;
  background: var(--blue);
  border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Syne', sans-serif; font-weight: 700;
  font-size: 0.7rem; color: #fff; flex-shrink: 0;
}
.t-name {
  font-size: 0.78rem; font-weight: 500;
  color: var(--sidebar-fg); flex: 1;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.t-chev { font-size: 0.65rem; color: var(--sidebar-dim); }

/* nav badges */
.nav-badge {
  margin-left: auto;
  background: var(--rose); color: #fff;
  font-size: 0.6rem; font-weight: 600;
  padding: 1px 6px; border-radius: 10px;
  min-width: 18px; text-align: center;
}
.nav-badge-muted { background: var(--amber); }

/* Topbar additions */
.topbar-search {
  height: 30px; min-width: 200px; max-width: 320px;
  padding: 0 12px;
  background: var(--bg);
  border: 1px solid var(--border2); border-radius: 7px;
  font-family: 'Figtree', sans-serif; font-size: 0.78rem;
  color: var(--ink2);
}
.topbar-search:focus { outline: none; border-color: var(--rose); box-shadow: 0 0 0 3px rgba(193,67,78,0.08); }
.crumb-tenant {
  font-family: 'Syne', sans-serif; font-weight: 600;
  color: var(--ink2);
}
.tb-icon {
  position: relative;
  width: 30px; height: 30px;
  background: none; border: none; cursor: pointer;
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem; color: var(--ink3);
  transition: background .15s;
}
.tb-icon:hover { background: var(--bg3); }
.notif-dot {
  position: absolute; top: 5px; right: 5px;
  width: 7px; height: 7px;
  background: var(--rose); border-radius: 50%;
  border: 1.5px solid var(--bg2);
}
.topbar-avatar {
  width: 30px; height: 30px;
  background: linear-gradient(135deg, var(--rose) 0%, #8b1a24 100%);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.7rem;
  color: #fff; cursor: pointer; flex-shrink: 0;
}

/* Hero greeting (Lobby) */
.hero-greet {
  background: linear-gradient(135deg, var(--sidebar-bg) 0%, #1c2a3a 100%);
  color: #fff;
  border-radius: 14px;
  padding: 24px 28px;
  margin-bottom: 22px;
  position: relative; overflow: hidden;
}
.hero-greet::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at top right, rgba(193,67,78,0.18) 0%, transparent 55%),
    radial-gradient(ellipse at bottom left, rgba(34,197,94,0.05) 0%, transparent 60%);
  pointer-events: none;
}
.hero-greet > * { position: relative; z-index: 1; }
.hero-eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.62rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 10px;
}
.hero-greet-title {
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: 1.7rem; line-height: 1.15; letter-spacing: -0.015em;
  color: #fff; margin-bottom: 6px;
}
.hero-greet-title em { font-style: normal; color: var(--rose2); }
.hero-greet-sub {
  font-size: 0.86rem; color: rgba(255,255,255,0.62);
  max-width: 560px; line-height: 1.55;
}

/* Infra status row */
.infra-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px; margin-top: 18px;
}
.infra-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 9px;
  padding: 10px 14px;
  display: flex; align-items: center; gap: 10px;
}
.infra-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green); flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(34,197,94,0.18);
}
.infra-dot.warn { background: var(--amber); box-shadow: 0 0 0 3px rgba(245,158,11,0.18); }
.infra-name {
  font-family: 'Syne', sans-serif; font-weight: 600;
  font-size: 0.78rem; color: #fff; line-height: 1.2;
}
.infra-sub {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.62rem; color: rgba(255,255,255,0.45);
  margin-top: 2px;
}

/* Flow card mini-stats */
.flow-stats {
  display: flex; gap: 12px;
  font-size: 0.7rem; color: var(--ink4);
  font-family: 'IBM Plex Mono', monospace;
  margin-top: 8px;
}
.flow-stat-label { color: var(--ink4); margin-right: 3px; }
.flow-stat-value { color: var(--ink2); font-weight: 500; }
.flow-stat-value.green { color: #16a34a; }
.flow-stat-value.amber { color: var(--amber); }

/* Live ticker */
.live-ticker {
  background: var(--bg2); border: 1px solid var(--border);
  border-left: 3px solid var(--green);
  border-radius: 10px;
  padding: 12px 16px;
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 18px;
}
.live-pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  animation: livePulse 2s infinite;
}
@keyframes livePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.4); }
  50%      { box-shadow: 0 0 0 6px rgba(34,197,94,0); }
}
.live-text {
  font-size: 0.82rem; color: var(--ink2); flex: 1;
}
.live-text strong { font-weight: 600; }
.live-time {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem; color: var(--ink4);
}

/* Configure drawer — Integrations */
.cfg-overlay {
  position: fixed; inset: 0;
  background: rgba(10,16,24,0.45);
  backdrop-filter: blur(4px);
  z-index: 9990;
  display: none;
  animation: cfgFade 0.18s ease;
}
.cfg-overlay.open { display: block; }
@keyframes cfgFade { from { opacity: 0; } to { opacity: 1; } }

.cfg-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 460px; max-width: 92vw;
  background: var(--bg2);
  box-shadow: -16px 0 48px rgba(0,0,0,0.25);
  z-index: 9991;
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1);
}
.cfg-drawer.open { transform: translateX(0); }
.cfg-head {
  padding: 18px 22px 14px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
}
.cfg-head-title { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1rem; color: var(--ink); }
.cfg-head-sub   { font-size: 0.78rem; color: var(--ink3); margin-top: 4px; }
.cfg-close {
  background: var(--bg3); border: none; cursor: pointer;
  width: 28px; height: 28px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink3); font-size: 0.95rem;
}
.cfg-tabs {
  display: flex; gap: 0;
  border-bottom: 1px solid var(--border);
  padding: 0 22px;
}
.cfg-tab {
  background: none; border: none;
  padding: 11px 14px;
  font-family: 'Syne', sans-serif; font-weight: 600; font-size: 0.78rem;
  color: var(--ink4); cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.cfg-tab.active { color: var(--rose); border-bottom-color: var(--rose); }
.cfg-body { padding: 18px 22px; overflow-y: auto; flex: 1; }
.cfg-pane { display: none; }
.cfg-pane.active { display: block; }
.cfg-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 0; border-bottom: 1px solid var(--border);
  font-size: 0.78rem;
}
.cfg-row:last-child { border-bottom: none; }
.cfg-key { color: var(--ink4); font-family: 'IBM Plex Mono', monospace; font-size: 0.72rem; }
.cfg-val { color: var(--ink2); font-weight: 500; }
.cfg-field-input {
  width: 100%; padding: 8px 11px;
  border: 1px solid var(--border2); border-radius: 6px;
  background: var(--bg); color: var(--ink);
  font-family: 'IBM Plex Mono', monospace; font-size: 0.78rem;
}
.cfg-help { font-size: 0.82rem; color: var(--ink3); line-height: 1.55; margin: 0 0 14px; }
.cfg-group-title {
  margin: 18px 0 4px; padding-top: 12px; border-top: 1px solid var(--line, rgba(255,255,255,0.08));
  font-family: 'Syne', sans-serif; font-weight: 600; font-size: 0.74rem; color: var(--ink2);
}
.cfg-required { color: var(--rose); }
.cfg-field-help { display: block; margin: -4px 0 10px; font-size: 0.7rem; color: var(--ink4); line-height: 1.45; }
.cfg-code { font-family: 'IBM Plex Mono', monospace; font-size: 0.7rem; background: var(--bg3); padding: 1px 5px; border-radius: 3px; }
.cfg-link-danger {
  background: none; border: none; padding: 0; cursor: pointer;
  font-family: 'Syne', sans-serif; font-weight: 600; font-size: 0.74rem; color: var(--rose);
}
.cfg-field-label {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.62rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--ink4); margin-bottom: 5px; margin-top: 12px;
}
.cfg-foot {
  padding: 14px 22px; border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}

/* Flow canvas (Detail page) */
.flow-canvas-shell {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 14px;
  min-height: 560px;
}
@media (max-width: 1100px) {
  .flow-canvas-shell { grid-template-columns: 1fr; }
}
.flow-canvas {
  background: #0f1923;
  border-radius: 12px;
  overflow: hidden;
  display: flex; flex-direction: column;
  position: relative;
}
.flow-canvas::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}
.flow-canvas-bar {
  background: rgba(15,25,35,0.95);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  height: 44px;
  display: flex; align-items: center;
  padding: 0 16px; gap: 12px;
  flex-shrink: 0; position: relative; z-index: 1;
}
.canvas-flow-name {
  font-family: 'Syne', sans-serif; font-weight: 700;
  font-size: 0.85rem; color: rgba(240,244,248,0.95);
}
.canvas-run-tag {
  font-family: 'IBM Plex Mono', monospace; font-size: 0.68rem;
  color: rgba(193,67,78,0.85); margin-left: auto;
}
.cbar-btn {
  height: 26px; padding: 0 12px; border-radius: 6px;
  font-size: 0.7rem; font-family: 'Figtree', sans-serif;
  cursor: pointer; border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  color: rgba(240,244,248,0.7);
  display: inline-flex; align-items: center; gap: 4px;
  text-decoration: none;
}
.cbar-btn:hover { background: rgba(255,255,255,0.1); color: #fff; }
.flow-canvas-viewport {
  flex: 1; overflow: auto;
  display: flex; align-items: flex-start; justify-content: center;
  padding: 28px 24px;
  position: relative; z-index: 1;
}
.flow-svg { overflow: visible; }
.flow-node { cursor: default; transition: filter .15s; }
.flow-node:hover { filter: brightness(1.15); }

/* Inspector — right rail on Flow Detail */
.flow-inspector {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.insp-head {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.insp-head-title {
  font-family: 'Syne', sans-serif; font-weight: 700;
  font-size: 0.85rem; color: var(--ink);
}
.insp-head-sub {
  font-size: 0.7rem; color: var(--ink4);
  margin-top: 2px;
}
.insp-runs { flex: 1; overflow-y: auto; max-height: 380px; }
.run-row {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  text-decoration: none; color: inherit;
  transition: background .15s;
}
.run-row:hover { background: var(--bg); }
.run-row.selected { background: var(--rose-dim); border-left: 3px solid var(--rose); padding-left: 13px; }
.run-dot {
  width: 8px; height: 8px; border-radius: 50%;
  flex-shrink: 0;
}
.run-dot-succeeded { background: var(--green); }
.run-dot-failed    { background: var(--red); }
.run-dot-running   { background: var(--blue); }
.run-dot-pending   { background: var(--amber); }
.run-dot-skipped   { background: var(--ink4); }
.run-dot-cancelled { background: var(--ink4); }
.run-row-main { flex: 1; min-width: 0; }
.run-row-id {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem; color: var(--ink2); font-weight: 500;
}
.run-row-meta {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.62rem; color: var(--ink4); margin-top: 2px;
}

.insp-detail {
  border-top: 1px solid var(--border);
  padding: 14px 16px;
  background: var(--bg);
}
.insp-detail-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.6rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--ink4); margin-bottom: 8px;
}
.insp-detail-kv {
  display: flex; align-items: center; justify-content: space-between;
  padding: 4px 0; font-size: 0.72rem;
}
.insp-detail-kv > span:first-child {
  font-family: 'IBM Plex Mono', monospace;
  color: var(--ink4);
}
.insp-detail-kv .mono {
  font-family: 'IBM Plex Mono', monospace;
  color: var(--ink2);
}

.sidebar-nav { flex: 1; padding: 8px 0; overflow-y: auto; }
.nav-lbl {
  font-size: 0.62rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--sidebar-dim); padding: 12px 18px 4px;
}
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 18px; font-size: 0.82rem; color: var(--sidebar-fg);
  cursor: pointer; transition: background .15s, color .15s;
  position: relative; text-decoration: none; border: none; background: transparent;
  width: 100%; text-align: left;
}
.nav-item:hover { background: rgba(255, 255, 255, 0.05); color: #fff; }
.nav-item.active { background: var(--sidebar-sel); color: #fff; }
.nav-item.active::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; background: var(--rose); border-radius: 0 2px 2px 0;
}
.nav-icon { width: 18px; text-align: center; font-size: 0.9rem; opacity: 0.7; }
.nav-item.active .nav-icon { opacity: 1; }

.sidebar-footer { padding: 12px; border-top: 1px solid var(--sidebar-brd); }
.user-row { display: flex; align-items: center; gap: 9px; padding: 8px 6px; border-radius: 8px; cursor: pointer; }
.user-row:hover { background: rgba(255, 255, 255, 0.07); }
.user-av {
  width: 30px; height: 30px;
  background: linear-gradient(135deg, var(--rose) 0%, #8b1a24 100%);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.72rem; color: #fff;
}
.user-name { font-size: 0.8rem; font-weight: 500; color: var(--sidebar-fg); }
.user-role { font-size: 0.68rem; color: var(--sidebar-dim); }

/* ── MAIN SHELL ───────────────────────────────────────────────────── */
.main-shell { flex: 1; display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.topbar {
  height: var(--topbar-h);
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; padding: 0 28px; gap: 16px; flex-shrink: 0;
}
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; color: var(--ink4); }
.crumb-a { color: var(--ink2); font-weight: 500; }
.sep { color: var(--border2); }
.spacer { flex: 1; }
.tb-btn {
  height: 32px; background: none; border: 1px solid var(--border2);
  border-radius: 7px; padding: 0 14px;
  font-size: 0.78rem; color: var(--ink3); font-family: 'Figtree', sans-serif;
  cursor: pointer; display: flex; align-items: center; gap: 6px;
  transition: border-color .2s, color .2s;
  text-decoration: none;
}
.tb-btn:hover { border-color: var(--rose); color: var(--rose); }
.tb-btn.primary {
  background: var(--rose); border-color: var(--rose); color: #fff;
  font-family: 'Syne', sans-serif; font-weight: 600;
}
.tb-btn.primary:hover { background: var(--rose2); border-color: var(--rose2); color: #fff; }

.content { flex: 1; overflow-y: auto; padding: 28px 32px 60px; }

.page-header { margin-bottom: 24px; }
.page-title { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1.4rem; color: var(--ink); margin-bottom: 4px; }
.page-sub   { font-size: 0.82rem; color: var(--ink3); }

/* Card grid */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
  transition: border-color .15s, transform .15s, box-shadow .15s;
  cursor: pointer;
}
.card:hover { border-color: var(--rose); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.card-title { font-family: 'Syne', sans-serif; font-weight: 600; font-size: 0.92rem; color: var(--ink); margin-bottom: 4px; }
.card-sub   { font-size: 0.74rem; color: var(--ink3); line-height: 1.5; }
.card-meta  { font-size: 0.66rem; color: var(--ink4); font-family: 'IBM Plex Mono', monospace; margin-top: 8px; letter-spacing: 0.05em; }

.status-pill {
  display: inline-block;
  font-size: 0.6rem; font-weight: 600;
  padding: 2px 7px; border-radius: 10px;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.status-pill.active  { background: var(--green-dim); color: #16a34a; }
.status-pill.paused  { background: var(--amber-dim); color: #b45309; }
.status-pill.error   { background: var(--red-dim);   color: var(--red); }
.status-pill.beta    { background: var(--blue-dim);  color: var(--blue); }
.status-pill.live    { background: var(--green-dim); color: #16a34a; }
.status-pill.draft   { background: var(--bg3);       color: var(--ink4); }
.status-pill.roadmap { background: var(--bg3);       color: var(--ink4); }

/* Filter pills (used on Connectors, Integrations, Modules) */
.filter-bar {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  margin-bottom: 18px;
}
.filter-pill {
  padding: 5px 12px; font-size: 0.72rem;
  font-family: 'Figtree', sans-serif; font-weight: 500;
  border: 1px solid var(--border2); border-radius: 16px;
  background: var(--bg2); color: var(--ink3);
  cursor: pointer; transition: all .15s;
}
.filter-pill:hover { border-color: var(--rose); color: var(--rose); }
.filter-pill.active {
  background: var(--rose); border-color: var(--rose); color: #fff;
  font-weight: 600;
}
.filter-search {
  flex: 1; min-width: 200px; max-width: 320px;
  padding: 6px 12px; font-size: 0.78rem; font-family: 'Figtree', sans-serif;
  border: 1px solid var(--border2); border-radius: 7px;
  background: var(--bg2); color: var(--ink2);
}
.filter-search:focus { outline: none; border-color: var(--rose); box-shadow: 0 0 0 3px rgba(193,67,78,0.08); }

/* Hero stat strip */
.hero-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px; margin-bottom: 22px;
}
.hero-stat {
  background: var(--bg2); border: 1px solid var(--border); border-radius: 10px;
  padding: 12px 16px;
}
.hero-stat-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.6rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--ink4);
}
.hero-stat-value {
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: 1.5rem; line-height: 1; margin-top: 6px;
  color: var(--ink2);
}
.hero-stat-value.green { color: #16a34a; }
.hero-stat-value.amber { color: var(--amber); }
.hero-stat-value.rose  { color: var(--rose); }

/* Empty state */
.empty-state {
  padding: 50px 30px; text-align: center;
  background: var(--bg2); border: 1px dashed var(--border2);
  border-radius: 14px;
}
.empty-state-icon { font-size: 2.6rem; opacity: 0.45; margin-bottom: 10px; }
.empty-state-title {
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1rem;
  color: var(--ink2); margin-bottom: 6px;
}
.empty-state-sub { font-size: 0.85rem; color: var(--ink3); margin-bottom: 18px; }

/* Login / auth surface */
.auth-shell {
  width: 100%; display: flex; align-items: center; justify-content: center;
  padding: 40px 20px;
  background:
    radial-gradient(ellipse at top, rgba(193,67,78,0.04) 0%, transparent 60%),
    var(--bg);
}
.auth-card {
  background: #fff; border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: 0 8px 40px rgba(0,0,0,0.06);
  padding: 36px 36px 28px;
  max-width: 420px; width: 100%;
}
.auth-title { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.4rem; color: var(--ink); margin-bottom: 6px; letter-spacing: -0.01em; }
.auth-sub { font-size: 0.86rem; color: var(--ink3); margin-bottom: 24px; }
.form-row { margin-bottom: 14px; }
.form-label { display: block; font-size: 0.72rem; font-weight: 600; color: var(--ink2); margin-bottom: 6px; font-family: 'IBM Plex Mono', monospace; text-transform: uppercase; letter-spacing: 0.06em; }
.form-input {
  width: 100%; padding: 10px 12px; border-radius: 7px;
  border: 1px solid var(--border2); background: var(--bg2);
  font-family: 'Figtree', sans-serif; font-size: 0.88rem; color: var(--ink);
}
.form-input:focus { outline: none; border-color: var(--rose); box-shadow: 0 0 0 3px rgba(193,67,78,0.1); }
.btn-primary {
  display: inline-block;
  background: var(--rose); color: #fff; padding: 11px 22px;
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.88rem;
  border-radius: 7px; border: none; cursor: pointer; transition: background .15s;
  text-decoration: none; width: 100%; text-align: center;
}
.btn-primary:hover { background: var(--rose2); }
.text-danger { color: var(--red); font-size: 0.78rem; margin-top: 6px; }
