*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --mono: 'JetBrains Mono', 'Fira Code', monospace;
  --sans: 'Inter', system-ui, sans-serif;

  --bg-page:    #0b0e14;
  --bg-panel:   #12161f;
  --bg-surface: #191f2b;
  --bg-hover:   #212938;
  --bg-input:   #0e121a;

  --border:     rgba(255,255,255,0.09);
  --border-md:  rgba(255,255,255,0.16);
  --border-act: rgba(56,189,248,0.45);

  --text:       #f3f5f9;
  --text-muted: #a7b0c2;
  --text-dim:   #717c93;

  --accent:     #38bdf8;
  --accent-dim: #0ea5e9;
  --accent-bg:  rgba(56,189,248,0.14);
  --accent-glow:rgba(56,189,248,0.25);

  --warn:       #fbbf24;
  --warn-bg:    rgba(251,191,36,0.14);

  --danger:     #fb7171;
  --danger-bg:  rgba(251,113,113,0.14);

  --purple:     #b18cf5;
  --purple-bg:  rgba(177,140,245,0.14);

  --radius:     8px;
  --radius-lg:  12px;
}

html, body {
  height: 100%;
  background: var(--bg-page);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── APP SHELL — TOP BAR + OUTER NAV SIDEBAR ─────────────────────────────── */
/* Present on every page. The Pipeline page additionally nests its own
   internal stage-list sidebar inside .shell-content — see pipeline.html. */
.shell {
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.shell-topbar {
  height: 56px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border);
}

.shell-topbar-brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.shell-topbar-logo {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
}

.shell-topbar-sub {
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

.shell-body {
  flex: 1;
  display: flex;
  overflow: hidden;
}

.shell-sidebar {
  width: 200px;
  min-width: 200px;
  background: var(--bg-panel);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 10px 0;
  overflow-y: auto;
  transition: width 0.15s, min-width 0.15s;
}

.shell-sidebar.icon-collapsed { width: 56px; min-width: 56px; }

.shell-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  color: var(--text-muted);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  border-left: 2px solid transparent;
  transition: all 0.12s;
}

.shell-nav-item:hover { background: var(--bg-hover); color: var(--text); }
.shell-nav-item.active { background: var(--accent-bg); border-left-color: var(--accent); color: var(--accent); font-weight: 600; }

.shell-nav-icon { font-size: 15px; flex-shrink: 0; width: 18px; text-align: center; }

.shell-sidebar.icon-collapsed .shell-nav-item { padding: 10px 0; justify-content: center; }
.shell-sidebar.icon-collapsed .shell-nav-label { display: none; }

.shell-content {
  flex: 1;
  overflow: hidden;
  display: flex;
}

/* ── LAYOUT (Pipeline page's internal stage sidebar + main) ──────────────── */
.app {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* ── SIDEBAR ─────────────────────────────────────────────────────────────── */
.sidebar {
  width: 220px;
  min-width: 220px;
  background: var(--bg-panel);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sidebar-header {
  padding: 20px 18px 16px;
  border-bottom: 1px solid var(--border);
}

.logo {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.logo-sub {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 3px;
  letter-spacing: 0.04em;
}

.stage-list {
  flex: 1;
  overflow-y: auto;
  padding: 10px 0;
}

.stage-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  cursor: pointer;
  border-left: 2px solid transparent;
  transition: all 0.12s;
  position: relative;
}

.stage-item:hover { background: var(--bg-hover); }
.stage-item.active { background: var(--accent-bg); border-left-color: var(--accent); }
.stage-item.active .stage-label { color: var(--accent); font-weight: 600; }
.stage-item.done .stage-dot { background: var(--accent); border-color: var(--accent); }
.stage-item.locked .stage-dot { background: transparent; border-color: var(--text-dim); }
.stage-item.locked .stage-label { color: var(--text-dim); }

.stage-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1.5px solid var(--text-muted);
  flex-shrink: 0;
  transition: all 0.15s;
}

.stage-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  flex: 1;
}

.stage-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  padding: 2px 6px;
  border-radius: 3px;
}

.badge-done   { background: var(--accent-bg);  color: var(--accent-dim); }
.badge-active { background: var(--purple-bg);  color: var(--purple); }
.badge-gate   { background: var(--warn-bg);    color: var(--warn); }

.sidebar-footer {
  padding: 14px 18px;
  border-top: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

/* ── MAIN ─────────────────────────────────────────────────────────────────── */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.main-header {
  padding: 18px 28px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  background: var(--bg-panel);
}

.stage-title {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
}

.stage-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 3px;
}

.main-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px 28px;
}

/* ── FORM ELEMENTS ─────────────────────────────────────────────────────────── */
.section-label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-dim);
  margin: 20px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-act);
}

.section-label:first-child { margin-top: 0; }

.template-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field-group { display: flex; flex-direction: column; gap: 5px; }
.field-group.full { grid-column: 1 / -1; }

.field-label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.field-label .req { color: var(--accent); }

.field-input,
.field-textarea,
.field-select {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text);
  background: var(--bg-input);
  border: 1px solid var(--border-md);
  border-radius: var(--radius);
  padding: 10px 13px;
  width: 100%;
  resize: vertical;
  transition: border-color 0.12s;
  appearance: none;
}

.field-input::placeholder,
.field-textarea::placeholder { color: var(--text-dim); }

.field-input:focus,
.field-textarea:focus,
.field-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.field-textarea { min-height: 76px; }

.field-hint {
  font-size: 12px;
  color: var(--text-dim);
}

/* ── BUTTONS ─────────────────────────────────────────────────────────────── */
.btn-primary {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.07em;
  padding: 11px 22px;
  border-radius: var(--radius);
  cursor: pointer;
  border: 1px solid var(--accent-dim);
  background: var(--accent-bg);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.12s;
  text-decoration: none;
}

.btn-primary:hover { background: var(--accent); color: #041824; }
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; }

.btn-ghost {
  font-family: var(--mono);
  font-size: 12px;
  padding: 9px 16px;
  border-radius: var(--radius);
  cursor: pointer;
  border: 1px solid var(--border-md);
  background: transparent;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.12s;
  text-decoration: none;
}

.btn-ghost:hover { border-color: var(--text-muted); color: var(--text); }
.btn-ghost:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-ghost:disabled:hover { border-color: var(--border-md); color: var(--text-muted); }

.btn-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 24px;
}

/* ── TAG BLOCK ─────────────────────────────────────────────────────────────── */
.tag-block {
  background: var(--bg-surface);
  border: 1px solid var(--border-act);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-muted);
  line-height: 2;
  margin-bottom: 16px;
}

.tag-key { color: var(--accent-dim); font-weight: 700; }
.tag-pass { color: var(--accent); }
.tag-warn { color: var(--warn); }
.tag-pend { color: var(--text-dim); }

/* ── STATUS PILLS ─────────────────────────────────────────────────────────── */
.status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.pill {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 5px 12px;
  border-radius: 20px;
}

.pill-pass   { background: var(--accent-bg);  color: var(--accent); border: 1px solid var(--accent-dim); }
.pill-warn   { background: var(--warn-bg);    color: var(--warn);   border: 1px solid var(--warn); }
.pill-gate   { background: var(--danger-bg);  color: var(--danger); border: 1px solid var(--danger); }
.pill-pend   { background: transparent;       color: var(--text-dim); border: 1px solid var(--border-md); }
.pill-active { background: var(--purple-bg);  color: var(--purple); border: 1px solid var(--purple); }

/* ── TOGGLE SWITCH ───────────────────────────────────────────────────────── */
.toggle-switch { position: relative; display: inline-block; width: 42px; height: 24px; flex-shrink: 0; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; inset: 0; cursor: pointer; background: var(--bg-surface); border: 1px solid var(--border-md); border-radius: 24px; transition: background 0.15s, border-color 0.15s; }
.toggle-slider::before { content: ''; position: absolute; height: 16px; width: 16px; left: 2px; top: 2px; background: var(--text-dim); border-radius: 50%; transition: transform 0.15s, background 0.15s; }
.toggle-switch input:checked + .toggle-slider { background: var(--accent-bg); border-color: var(--accent-dim); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(18px); background: var(--accent); }

/* ── FLOW NODES ─────────────────────────────────────────────────────────────── */
.flow-nodes {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 18px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.flow-node { flex-shrink: 0; text-align: center; }

.flow-box {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 6px 11px;
  border-radius: 6px;
  border: 1px solid var(--border-md);
  background: var(--bg-surface);
  color: var(--text-dim);
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.12s;
}

.flow-box:hover { border-color: var(--accent-dim); color: var(--accent); }
.flow-box.done-node { border-color: var(--accent-dim); color: var(--accent-dim); background: var(--accent-bg); }
.flow-box.current   { border-color: var(--accent); color: var(--accent); background: var(--accent-bg); box-shadow: 0 0 12px var(--accent-glow); }

.flow-arrow { font-size: 12px; color: var(--text-dim); padding: 0 5px; flex-shrink: 0; }

/* ── OUTPUT BOX ─────────────────────────────────────────────────────────────── */
.output-label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.output-box {
  background: var(--bg-input);
  border: 1px solid var(--border-md);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.75;
  white-space: pre-wrap;
  min-height: 120px;
  color: var(--text);
  overflow-y: auto;
  position: relative;
}

.output-box.streaming::after {
  content: '▋';
  animation: blink 0.9s step-end infinite;
  color: var(--accent);
}

@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* ── ISSUES TABLE ─────────────────────────────────────────────────────────── */
.issues-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  font-family: var(--mono);
}

.issues-table th {
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 9px 12px;
  border-bottom: 1px solid var(--border-md);
}

.issues-table td {
  padding: 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.6;
  color: var(--text-muted);
}

.issues-table tr:last-child td { border-bottom: none; }

.sev {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 3px;
  letter-spacing: 0.06em;
}

.sev-p0 { background: var(--danger-bg); color: var(--danger); }
.sev-p1 { background: var(--warn-bg);   color: var(--warn); }
.sev-p2 { background: var(--purple-bg); color: var(--purple); }

.fix-ok {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

/* ── EVAL AXES ─────────────────────────────────────────────────────────────── */
.axes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

.axis-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-md);
  border-radius: var(--radius);
  padding: 12px 14px;
}

.axis-card.gate { border-color: rgba(251,191,36,0.4); }

.axis-id {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.1em;
}

.axis-name {
  font-size: 14px;
  font-weight: 600;
  margin: 3px 0 8px;
  color: var(--text);
}

.axis-bar {
  height: 3px;
  background: var(--border-md);
  border-radius: 2px;
}

.axis-fill { height: 3px; border-radius: 2px; background: var(--accent); }
.axis-fill.gate-fill { background: var(--warn); }

.axis-score {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
}

/* ── VERDICT BOX ─────────────────────────────────────────────────────────── */
.verdict-box {
  border: 1px solid var(--border-act);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 14px;
}

.verdict-header {
  background: var(--accent-bg);
  padding: 9px 14px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--border-act);
}

.verdict-body {
  padding: 12px 14px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
  white-space: pre;
  color: var(--text-muted);
  background: var(--bg-input);
}

/* ── PATCH BOX ─────────────────────────────────────────────────────────────── */
.patch-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.patch-item:last-child { border-bottom: none; }
.patch-check { color: var(--accent); font-family: var(--mono); font-size: 14px; flex-shrink: 0; padding-top: 1px; }
.patch-text { font-size: 14px; color: var(--text-muted); line-height: 1.6; }
.patch-id { font-family: var(--mono); font-size: 11px; font-weight: 700; color: var(--accent-dim); letter-spacing: 0.08em; }

/* ── PROD PANEL ─────────────────────────────────────────────────────────────── */
.prod-header {
  text-align: center;
  padding: 28px 0 20px;
}

.prod-icon { font-size: 36px; margin-bottom: 10px; }
.prod-title { font-family: var(--mono); font-size: 16px; font-weight: 700; color: var(--accent); letter-spacing: 0.06em; }
.prod-sub { font-size: 14px; color: var(--text-muted); margin-top: 4px; }

.prod-record {
  background: var(--bg-surface);
  border: 1px solid var(--border-act);
  border-radius: var(--radius-lg);
  padding: 18px;
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 2;
}

.prod-row { display: flex; justify-content: space-between; border-bottom: 1px solid var(--border); padding: 3px 0; }
.prod-row:last-child { border-bottom: none; }
.prod-key { color: var(--text-dim); }
.prod-val { color: var(--text); }
.prod-val.ok { color: var(--accent); }

.next-steps {
  margin-top: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-md);
  border-radius: var(--radius);
  padding: 14px 18px;
}

.next-steps-title {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 10px;
}

.next-step-item {
  font-size: 14px;
  color: var(--text-muted);
  padding: 5px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}

.next-step-item:last-child { border-bottom: none; }
.step-bullet { color: var(--accent-dim); font-family: var(--mono); font-size: 12px; }

/* ── ERROR ─────────────────────────────────────────────────────────────────── */
.error-msg {
  display: none;
  margin-top: 10px;
  font-size: 13px;
  color: var(--danger);
  font-family: var(--mono);
}

/* ── MODAL ─────────────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6,8,13,0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 24px;
}

.modal-box {
  width: 100%;
  max-width: 620px;
  max-height: 86vh;
  overflow-y: auto;
  background: var(--bg-panel);
  border: 1px solid var(--border-md);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent-dim);
}

.modal-body { padding: 20px; }

.tag-imported {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent-dim);
  background: var(--accent-bg);
  border: 1px solid var(--border-act);
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: middle;
}

.btn-ghost.active-toggle {
  border-color: var(--accent-dim);
  color: var(--accent);
  background: var(--accent-bg);
}

/* ── NEXT STEP CARDS ─────────────────────────────────────────────────────── */
.ns-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-md);
  border-radius: var(--radius);
  margin-bottom: 8px;
  overflow: hidden;
  transition: border-color 0.15s;
}

.ns-card.done-card { border-color: var(--accent-dim); }

.ns-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.12s;
}

.ns-header:hover { background: var(--bg-hover); }

.ns-left {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex: 1;
}

.ns-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid var(--text-dim);
  flex-shrink: 0;
  margin-top: 4px;
  transition: all 0.15s;
}

.ns-dot.done { background: var(--accent); border-color: var(--accent); }

.ns-title {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.03em;
}

.ns-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

.ns-chevron {
  font-family: var(--mono);
  font-size: 16px;
  color: var(--text-dim);
  transition: transform 0.15s;
  flex-shrink: 0;
  margin-left: 12px;
}

.ns-chevron.open { transform: rotate(90deg); }

.ns-body {
  padding: 0 16px 16px;
  border-top: 1px solid var(--border);
}

.ns-config-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.ns-output {
  background: var(--bg-input);
  border: 1px solid var(--border-md);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.8;
  white-space: pre-wrap;
  color: var(--text-muted);
  margin-top: 12px;
  max-height: 200px;
  overflow-y: auto;
}

.ns-output.streaming::after {
  content: '▋';
  animation: blink 0.9s step-end infinite;
  color: var(--accent);
}

/* ── LANDING / DOCS PROSE ─────────────────────────────────────────────────── */
.prose h1, .prose h2, .prose h3 {
  font-family: var(--mono);
  letter-spacing: 0.04em;
  color: var(--text);
  margin: 24px 0 10px;
}
.prose h1:first-child, .prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose p { color: var(--text-muted); margin-bottom: 12px; }
.prose a { color: var(--accent); }
.prose pre {
  background: var(--bg-input);
  border: 1px solid var(--border-md);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text);
  overflow-x: auto;
  margin-bottom: 14px;
}
.prose ul { margin: 0 0 14px 20px; color: var(--text-muted); }
.prose li { margin-bottom: 6px; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.nav-card {
  display: block;
  background: var(--bg-surface);
  border: 1px solid var(--border-md);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  text-decoration: none;
  transition: all 0.12s;
}

.nav-card:hover { border-color: var(--accent-dim); box-shadow: 0 0 0 1px var(--accent-dim); }
.nav-card-icon { font-size: 22px; margin-bottom: 8px; }
.nav-card-title { font-family: var(--mono); font-size: 14px; font-weight: 700; color: var(--text); letter-spacing: 0.03em; }
.nav-card-desc { font-size: 13px; color: var(--text-muted); margin-top: 6px; line-height: 1.5; }

/* ── SCROLLBAR ─────────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-md); border-radius: 2px; }
