/* Command Center design system — one file, six components, no per-page CSS.
   Tokens → base → shell → components → utilities → responsive. */

:root {
  --bg: #07090e;
  --bg-2: #0b0f17;
  --panel: #10151f;
  --panel-2: #151c28;
  --line: #1e2735;
  --line-2: #2a3545;
  --text: #e8edf5;
  --muted: #8a97ad;
  --dim: #5f6b80;
  --accent: #3b82f6;
  --accent-2: #2563eb;
  --ok: #22c55e;
  --warn: #f59e0b;
  --down: #ef4444;
  --ok-bg: rgba(34, 197, 94, .12);
  --warn-bg: rgba(245, 158, 11, .14);
  --down-bg: rgba(239, 68, 68, .14);
  --info-bg: rgba(59, 130, 246, .14);
  --radius: 10px;
  --radius-sm: 6px;
  --rail: 224px;
  --topbar: 52px;
  --fs-xs: 11px;
  --fs-sm: 12.5px;
  --fs-md: 14px;
  --fs-lg: 18px;
  --fs-xl: 26px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 var(--fs-md)/1.45 var(--font);
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: var(--fs-xl); }
h2 { font-size: var(--fs-lg); }
h3 { font-size: var(--fs-md); }
p { margin: 0; }
code, .mono { font-family: var(--mono); font-size: var(--fs-sm); }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- shell: left rail + top bar + main ---------- */
.ax-rail {
  position: fixed; inset: 0 auto 0 0; width: var(--rail);
  background: var(--bg-2); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; padding: 14px 12px; gap: 6px; z-index: 30;
}
.ax-brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 14px; }
.ax-brand-mark { width: 26px; height: 26px; border-radius: 7px; background: linear-gradient(135deg, var(--accent), #7c3aed); }
.ax-brand-name { font-weight: 800; font-size: var(--fs-md); letter-spacing: .02em; }
.ax-brand-sub { font-size: var(--fs-xs); color: var(--dim); text-transform: uppercase; letter-spacing: .12em; }
.ax-nav-group { display: flex; flex-direction: column; gap: 2px; }
.ax-nav-label { font-size: var(--fs-xs); color: var(--dim); text-transform: uppercase; letter-spacing: .12em; padding: 14px 10px 6px; }
.ax-nav a {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 8px 10px; border-radius: var(--radius-sm); color: var(--muted); font-weight: 600; font-size: var(--fs-sm);
}
.ax-nav a:hover { background: var(--panel); color: var(--text); text-decoration: none; }
.ax-nav a.active { background: var(--info-bg); color: var(--text); }
.ax-nav a .pill { font-size: 10px; }
.ax-rail-foot { margin-top: auto; padding: 8px 6px 0; border-top: 1px solid var(--line); font-size: var(--fs-xs); color: var(--dim); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ax-rail-foot form { margin: 0; }

.ax-topbar {
  position: sticky; top: 0; z-index: 20; height: var(--topbar);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 24px; background: rgba(7, 9, 14, .85); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.ax-topbar h1 { font-size: var(--fs-lg); display: flex; align-items: center; gap: 10px; }
.ax-topbar .ax-menu-btn, .ax-rail .ax-rail-close { display: none; }
.ax-scrim { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 29; opacity: 0; pointer-events: none; transition: opacity .3s ease-in-out; }
body.nav-open .ax-scrim { opacity: 1; pointer-events: auto; }
body.nav-open { overflow: hidden; }
.ax-crumb { color: var(--dim); font-weight: 500; }
.ax-topbar-right { display: flex; align-items: center; gap: 10px; font-size: var(--fs-sm); color: var(--muted); }

/* Legacy pages still render inside .shell/.app-shell; give them the rail offset. */
.shell, .app-shell, .ax-main { padding-left: var(--rail); min-height: 100vh; }
.ax-page { padding: 20px 24px 60px; max-width: 1440px; }
.ax-page > * + * { margin-top: 16px; }
.ax-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.ax-page-head .lede { color: var(--muted); max-width: 70ch; margin-top: 4px; }

/* ---------- components ---------- */

/* 1. panel */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.panel > * + * { margin-top: 12px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.panel-head h2 { font-size: var(--fs-md); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
details.panel > summary { cursor: pointer; list-style: none; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; font-size: var(--fs-md); }
details.panel > summary::-webkit-details-marker { display: none; }
details.panel[open] > summary { margin-bottom: 12px; }

/* 2. stat tile */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.tile { background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; }
.tile .v { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1; }
.tile .k { font-size: var(--fs-xs); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-top: 4px; }
.tile.ok { border-color: rgba(34,197,94,.35); }
.tile.warn { border-color: rgba(245,158,11,.45); background: var(--warn-bg); }
.tile.down { border-color: rgba(239,68,68,.45); background: var(--down-bg); }

/* 3. status pill */
.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 999px;
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  background: var(--panel-2); border: 1px solid var(--line-2); color: var(--muted); white-space: nowrap;
}
.pill.ok, .pill.live, .pill.sent { background: var(--ok-bg); border-color: rgba(34,197,94,.4); color: #86efac; }
.pill.warn, .pill.degraded, .pill.approved, .pill.parked, .pill.pending { background: var(--warn-bg); border-color: rgba(245,158,11,.45); color: #fcd34d; }
.pill.down, .pill.failed, .pill.killed, .pill.bad { background: var(--down-bg); border-color: rgba(239,68,68,.45); color: #fca5a5; }
.pill.info, .pill.draft, .pill.dry { background: var(--info-bg); border-color: rgba(59,130,246,.4); color: #93c5fd; }

/* 4. table */
.table-wrap { overflow-x: auto; }
table.ax { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
table.ax th { text-align: left; font-size: var(--fs-xs); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; padding: 8px 10px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
table.ax td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.ax tr:last-child td { border-bottom: 0; }
table.ax td.num, table.ax th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.ax tr.hidden { display: none; }

/* 5. buttons */
.btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-2); background: var(--panel-2); color: var(--text); font-weight: 600; font-size: var(--fs-sm);
  cursor: pointer; line-height: 1.2; text-decoration: none;
}
.btn:hover { border-color: var(--accent); text-decoration: none; }
.btn.primary { background: var(--accent-2); border-color: var(--accent-2); color: #fff; }
.btn.primary:hover { background: var(--accent); }
.btn.danger { color: #fca5a5; border-color: rgba(239,68,68,.4); }
.btn.danger:hover { background: var(--down-bg); }
.btn.small { padding: 4px 9px; font-size: var(--fs-xs); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }

/* 6. form */
.field { display: flex; flex-direction: column; gap: 4px; }
.field > label, .field > .label { font-size: var(--fs-xs); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.input, input[type=text], input[type=url], input[type=email], input[type=number], input[type=password], input[type=search], input[type=datetime-local], select, textarea {
  width: 100%; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  padding: 8px 10px; color: var(--text); font-size: var(--fs-sm);
}
textarea { min-height: 84px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: none; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.form-grid .full { grid-column: 1 / -1; }
.check { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); color: var(--muted); }
.check input { width: auto; }

/* right panel (detail slides from the right; site doctrine) */
.ax-panel { position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 92vw); background: var(--bg-2); border-left: 1px solid var(--line); box-shadow: -20px 0 40px rgba(0,0,0,.5); transform: translateX(100%); transition: transform .18s ease; z-index: 40; overflow: auto; padding: 20px; }
.ax-panel.open { transform: none; }
.ax-panel-close { position: absolute; top: 12px; right: 12px; }

/* ---------- utilities ---------- */
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.small { font-size: var(--fs-sm); }
.xs { font-size: var(--fs-xs); }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px 6px 9px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--text); font-size: var(--fs-sm); font-weight: 600; text-decoration: none; }
.chip:hover { border-color: var(--accent); text-decoration: none; }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dim); flex: none; }
.chip b { font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.chip.ok .dot { background: var(--ok); }
.chip.warn .dot, .chip.warming .dot { background: var(--warn); }
.chip.warn { border-color: rgba(245,158,11,.45); background: var(--warn-bg); }
.chip.down .dot { background: var(--down); }
.chip.down { border-color: rgba(239,68,68,.45); background: var(--down-bg); }
.chip.warming { opacity: .7; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.kpi { background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; }
.kpi .v { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.kpi .k { font-size: var(--fs-xs); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-top: 4px; }
.delta { font-size: var(--fs-xs); font-weight: 700; padding: 1px 6px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); }
.delta.ok { color: #86efac; border-color: rgba(34,197,94,.4); background: var(--ok-bg); }
.delta.down { color: #fca5a5; border-color: rgba(239,68,68,.4); background: var(--down-bg); }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 64px; margin-top: 12px; }
.bars .b { flex: 1; min-width: 3px; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; gap: 1px; position: relative; }
.bars .b i { display: block; background: var(--accent); border-radius: 2px 2px 0 0; min-height: 1px; opacity: .9; }
.bars .b i.alt { background: var(--muted); opacity: .6; }
.bars .b:hover i { opacity: 1; }
.bars .b span { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); display: none; background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 4px; padding: 2px 6px; font-size: var(--fs-xs); white-space: nowrap; z-index: 2; }
.bars .b:hover span { display: block; }
.bars-axis { display: flex; justify-content: space-between; font-size: var(--fs-xs); color: var(--dim); margin-top: 4px; }
.legend { display: flex; gap: 12px; font-size: var(--fs-xs); color: var(--muted); margin-top: 6px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; background: var(--accent); vertical-align: -1px; margin-right: 4px; }
.legend i.alt { background: var(--muted); opacity: .6; }
.namecounts { list-style: none; margin-top: 10px; }
.namecounts li { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-top: 1px solid var(--line); font-size: var(--fs-sm); }
.namecounts li:first-child { border-top: 0; }
.namecounts li span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.namecounts li b { font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 600; }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 999px; overflow: hidden; }
.seg a { padding: 5px 12px; font-size: var(--fs-sm); font-weight: 600; color: var(--muted); text-decoration: none; }
.seg a.on { background: var(--accent); color: #fff; }
.growth-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; }
.growth-grid .wide { grid-column: 1 / -1; }
.today-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; }
.today-grid .tiles { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
.today-grid .tile { padding: 10px 12px; }
.today-grid .tile .v { font-size: 20px; }
.post-line { display: flex; gap: 10px; align-items: baseline; padding: 8px 0; border-top: 1px solid var(--line); font-size: var(--fs-sm); }
.post-line:first-child { border-top: 0; }
.post-line .copy { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-line .when { color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.section-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 4px 0 -4px; }
.section-h h2 { font-size: var(--fs-md); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 12px; }
.stack > * + * { margin-top: 8px; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.notice { padding: 10px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: var(--panel-2); font-size: var(--fs-sm); }
.notice.ok { background: var(--ok-bg); border-color: rgba(34,197,94,.4); }
.notice.bad, .notice.down { background: var(--down-bg); border-color: rgba(239,68,68,.45); }
.count { font-variant-numeric: tabular-nums; }
.count.over { color: #fca5a5; font-weight: 700; }
.thumb { width: 96px; height: 64px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--bg-2); }
.spark { display: flex; align-items: flex-end; gap: 3px; height: 40px; }
.spark i { display: block; width: 8px; background: var(--accent); border-radius: 2px 2px 0 0; min-height: 2px; }
.filter { max-width: 320px; }

/* avatars + hero banner (Fan Zone) */
.avatar { width: 34px; height: 34px; border-radius: 999px; object-fit: cover; background: var(--bg-2); border: 1px solid var(--line); display: inline-block; flex: 0 0 auto; }
.avatar.lg { width: 88px; height: 88px; margin-top: -44px; border: 3px solid var(--panel); position: relative; }
.hero-banner { height: 140px; background: linear-gradient(120deg, #12275a, #0b1220); background-size: cover; background-position: center; }

/* login */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card { width: min(380px, 100%); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  :root { --rail: 0px; }
  /* Same drawer as the site's MobileSidebar: 260px, slides in from the
     left, dim scrim behind, X in the header, tap outside or Escape closes. */
  .ax-rail { width: 260px; transform: translateX(-100%); box-shadow: 20px 0 40px rgba(0,0,0,.5); padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
  body.nav-ready .ax-rail { transition: transform .3s ease-in-out; } /* no slide on page load */
  body.nav-open .ax-rail { transform: none; }
  .ax-brand { padding-right: 40px; }
  .ax-rail .ax-rail-close { display: inline-flex; position: absolute; top: 12px; right: 10px; }
  .ax-topbar .ax-menu-btn { display: inline-flex; padding: 4px 8px; font-size: 18px; line-height: 1; }
  .ax-topbar { padding: 0 12px 0 10px; }
  .ax-page { padding: 16px 16px 48px; }
  .tile .v { font-size: 20px; }
}
}

/* Member journey (Growth) — one bar per first, cohort table */
.journey { list-style: none; margin-top: 8px; }
.journey li { display: grid; grid-template-columns: minmax(120px, 1fr) 3fr auto auto; align-items: center; gap: 10px; padding: 5px 0; border-top: 1px solid var(--line); font-size: var(--fs-sm); }
.journey li:first-child { border-top: 0; }
.journey .bar { display: block; height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.journey .bar i { display: block; height: 100%; background: var(--accent, #22c55e); border-radius: 4px; }
.journey .pct { min-width: 36px; text-align: right; }
table.cohorts td.num { font-variant-numeric: tabular-nums; }

/* Users page — member journey drawer */
.journey-drawer h3 { font-size: var(--fs-md); margin: 0 0 4px; }
.journey-drawer .facts { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: var(--fs-sm); margin: 10px 0; }
.journey-drawer .facts dt { color: var(--muted, #888); }
.journey-drawer .events { list-style: none; margin-top: 8px; max-height: 50vh; overflow: auto; }
.journey-drawer .events li { display: grid; grid-template-columns: 120px 1fr; gap: 10px; padding: 4px 0; border-top: 1px solid var(--line); font-size: var(--fs-xs, 12px); }
.journey-drawer .events li .t { color: var(--muted, #888); white-space: nowrap; }
.journey-drawer .events li .p { color: var(--muted, #888); }

/* Growth window picker: presets + a custom from/to like Analytics */
.rangebar { flex-wrap: wrap; gap: 8px; }
.rangeform { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-2); border-radius: 999px; padding: 2px 4px 2px 10px; }
.rangeform.on { border-color: var(--accent); }
.rangeform input[type=date] { background: transparent; border: 0; color: var(--text, #e5e7eb); font: inherit; font-size: var(--fs-sm); padding: 3px 2px; color-scheme: dark; }
.rangeform input[type=date]:focus { outline: none; }
.lifetime { margin: -4px 0 10px; }

/* Growth funnel */
.funnel { list-style: none; margin-top: 8px; counter-reset: step; }
.funnel li { display: grid; grid-template-columns: 3fr minmax(150px, 1.4fr) auto 44px 48px; align-items: center; gap: 10px; padding: 6px 0; border-top: 1px solid var(--line); font-size: var(--fs-sm); }
.funnel li:first-child { border-top: 0; }
.funnel .bar { display: block; height: 10px; border-radius: 5px; background: var(--line); overflow: hidden; }
.funnel .bar i { display: block; height: 100%; background: var(--accent); border-radius: 5px; }
.funnel .pct, .funnel .drop { text-align: right; font-variant-numeric: tabular-nums; }
.funnel .drop { color: #fca5a5; }

/* Journeys — one card per member */
.journeys { display: grid; gap: 12px; }
.jcard .panel-head h2 { text-transform: none; letter-spacing: 0; font-size: var(--fs-lg, 16px); }
.jfacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px 16px; font-size: var(--fs-sm); margin-top: 4px; }
.jfacts .k { display: block; color: var(--muted); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 2px; }
.jfacts .wide { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.jfacts .wide .k { display: inline-block; margin: 0 6px 0 0; }
.sessions { list-style: none; margin-top: 12px; border-left: 2px solid var(--line); padding-left: 14px; display: grid; gap: 10px; }
.sessions li { position: relative; }
.sessions li::before { content: ""; position: absolute; left: -20px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.sessions li.anon::before { background: var(--muted); }
.sessions .shead { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; font-size: var(--fs-sm); }
.sessions .pages { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.sessions .pages span { font-size: var(--fs-xs); padding: 2px 7px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line); color: var(--muted); font-variant-numeric: tabular-nums; }
.sessions .acts { list-style: none; margin-top: 4px; display: grid; gap: 2px; }
.sessions .acts li { font-size: var(--fs-sm); display: flex; gap: 8px; align-items: baseline; }
.sessions .acts .t { color: var(--muted); font-variant-numeric: tabular-nums; font-size: var(--fs-xs); min-width: 38px; }

/* Journeys — questions on the left, members on the right */
.jlayout { display: grid; grid-template-columns: 260px 1fr; gap: 12px; align-items: start; }
@media (max-width: 900px) { .jlayout { grid-template-columns: 1fr; } }
.jsegs { list-style: none; margin-top: 6px; }
.jsegs li a { display: block; padding: 8px 10px; border-radius: var(--radius-sm); text-decoration: none; color: var(--text); }
.jsegs li a b { display: block; font-size: var(--fs-sm); }
.jsegs li.on a { background: var(--panel-2); border: 1px solid var(--accent); }
.jsegs li a:hover { background: var(--panel-2); }
.jsearch { margin-top: 12px; }
.jsearch .filter { max-width: none; width: 100%; }
.jrows tbody tr.jrow { cursor: pointer; }
.jrows tbody tr.jrow:hover td { background: var(--panel-2); }
.jlist .panel-head a.on { color: var(--text); font-weight: 700; }
.journey-drawer .facts dd b { font-weight: 700; }

/* Journey grid: a row per member, a column per step */
.jgrid-wrap { overflow-x: auto; }
.jgrid th, .jgrid td { white-space: nowrap; }
.jgrid th.who, .jgrid td.who { position: sticky; left: 0; background: var(--panel); z-index: 1; min-width: 180px; }
.jgrid tbody tr.jrow:hover td.who { background: var(--panel-2); }
.jgrid td.step { text-align: center; font-size: var(--fs-xs); font-variant-numeric: tabular-nums; min-width: 64px; }
.jgrid td.step.done { color: var(--text); background: rgba(34,197,94,.10); border-bottom: 2px solid rgba(34,197,94,.55); }
.jgrid td.step.part { background: rgba(245,158,11,.10); border-bottom-color: rgba(245,158,11,.6); }
.jgrid td.step.gap { color: var(--muted); background: rgba(239,68,68,.08); }
.jgrid td.step.off { color: var(--line-2); }
.jsearch { display: inline-flex; }
.jsearch .filter { max-width: 220px; }
