/* EB kit 2026-10-29: tokens + components from eb-hub. Do not edit here; edit eb-hub/system. */
/* EB design tokens v5 (2026-10-28). Three tiers:
   1. Primitives  (--eb-p-*)  raw palette + scales. Pages never use them.
   2. Semantic    (--eb-*)    roles. The ONLY tier a page may use. Dark is default; light remaps here only.
   3. Component   live inside components.css next to the component that owns them.
   Rules: literals only in tier 1; tier 2 points at tier 1; pages write var(--eb-...) and never a raw
   colour, px radius or ms (the token gate fails the build). */

:root {
  /* ---- tier 1: primitives ------------------------------------------------------------ */
  --eb-p-navy-950: #020509;  --eb-p-navy-900: #050c16;  --eb-p-navy-850: #081222;  --eb-p-navy-800: #0b1a2e;
  --eb-p-gray-50: #f7f9fc;   --eb-p-gray-100: #eef1f5;  --eb-p-gray-200: #e2e8f0;  --eb-p-gray-300: #cbd5e1;
  --eb-p-gray-400: #94a3b8;  --eb-p-gray-500: #64748b;  --eb-p-gray-600: #475569;  --eb-p-gray-700: #334155;
  --eb-p-gray-800: #1e293b;  --eb-p-gray-900: #0f172a;
  --eb-p-cyan-400: #00d4ff;  --eb-p-cyan-500: #06b6d4;  --eb-p-blue-500: #2563eb;  --eb-p-blue-600: #1d4ed8;
  --eb-p-green-400: #4ade80; --eb-p-green-500: #22c55e; --eb-p-green-700: #15803d;
  --eb-p-amber-400: #fbbf24; --eb-p-amber-500: #f59e0b; --eb-p-amber-700: #b45309;
  --eb-p-red-400: #f87171;   --eb-p-red-500: #ef4444;   --eb-p-red-700: #b91c1c;
  --eb-p-white: #ffffff;     --eb-p-black: #000000;
  --eb-p-text-dark-1: #f0f6ff; --eb-p-text-dark-2: #c9d4e3; --eb-p-text-dark-3: #8a9bb3;
  --eb-p-text-light-1: #0f2440; --eb-p-text-light-2: #334155; --eb-p-text-light-3: #64748b;

  /* ---- scales (shared by both themes) ------------------------------------------------- */
  --eb-s-1: 4px; --eb-s-2: 8px; --eb-s-3: 12px; --eb-s-4: 16px; --eb-s-5: 20px; --eb-s-6: 24px; --eb-s-8: 32px; --eb-s-12: 48px;
  --eb-pad-card: 16px; --eb-gap-grid: 12px; --eb-gap-inner: 8px; --eb-gap-section: 32px;
  --eb-r-card: 8px; --eb-r-ctl: 6px; --eb-r-chip: 4px; --eb-r-pill: 999px;
  --eb-fs-page: 24px; --eb-fs-section: 18px; --eb-fs-card: 16px; --eb-fs-body: 14px; --eb-fs-label: 12px; --eb-fs-kpi: 28px; --eb-fs-hero: 36px;
  --eb-lh-tight: 1.2; --eb-lh-body: 1.5;
  --eb-font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --eb-font-brand: 'Orbitron', var(--eb-font);
  --eb-font-mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --eb-dur-fast: 100ms; --eb-dur-base: 150ms; --eb-dur-slow: 240ms; --eb-dur-spin: 1s; --eb-dur-shimmer: 1.4s;
  --eb-overlay: rgba(0, 0, 0, 0.5);
  --eb-ease: cubic-bezier(0.2, 0, 0.38, 0.9); --eb-ease-in: cubic-bezier(0, 0, 0.38, 0.9); --eb-ease-out: cubic-bezier(0.2, 0, 1, 0.9);
  --eb-z-sticky: 10; --eb-z-drawer: 20; --eb-z-popover: 30; --eb-z-modal: 40; --eb-z-toast: 50;
  --eb-sidebar-w: 240px; --eb-rail-w: 64px; --eb-header-h: 56px; --eb-target: 24px; --eb-row-h: 40px;

  /* ---- tier 2: semantic, DARK (default) ---------------------------------------------- */
  color-scheme: dark;
  --eb-bg: var(--eb-p-navy-950);
  --eb-surface: var(--eb-p-navy-900);
  --eb-surface-2: var(--eb-p-navy-850);
  --eb-surface-sunken: var(--eb-p-black);
  --eb-border: rgba(0, 212, 255, 0.16);
  --eb-border-strong: rgba(0, 212, 255, 0.34);
  --eb-text: var(--eb-p-text-dark-1);
  --eb-text-2: var(--eb-p-text-dark-2);
  --eb-text-3: var(--eb-p-text-dark-3);
  --eb-text-inverse: var(--eb-p-navy-950);
  --eb-accent: var(--eb-p-cyan-400);
  --eb-accent-fg: var(--eb-p-navy-950);
  --eb-accent-soft: rgba(0, 212, 255, 0.10);
  --eb-ok: var(--eb-p-green-500);    --eb-ok-soft: rgba(34, 197, 94, 0.10);
  --eb-warn: var(--eb-p-amber-500);  --eb-warn-soft: rgba(245, 158, 11, 0.10);
  --eb-bad: var(--eb-p-red-500);     --eb-bad-soft: rgba(239, 68, 68, 0.10);
  --eb-info: var(--eb-p-cyan-500);   --eb-info-soft: rgba(6, 182, 212, 0.10);
  --eb-neutral: var(--eb-p-gray-400); --eb-neutral-soft: rgba(148, 163, 184, 0.10);
  --eb-ring: 0 0 0 2px var(--eb-bg), 0 0 0 4px var(--eb-accent);
  --eb-shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4);
  --eb-shadow-2: 0 8px 24px rgba(0, 0, 0, 0.5);
  --eb-shadow-3: 0 24px 64px rgba(0, 0, 0, 0.6);
  --eb-skeleton: linear-gradient(90deg, var(--eb-surface-2) 25%, var(--eb-p-navy-800) 37%, var(--eb-surface-2) 63%);
  --eb-chart-1: var(--eb-p-cyan-400); --eb-chart-2: var(--eb-p-green-400); --eb-chart-3: var(--eb-p-amber-400); --eb-chart-4: var(--eb-p-red-400); --eb-chart-5: var(--eb-p-gray-400);
}

/* ---- tier 2: semantic, LIGHT (remap only; nothing else changes) ------------------------- */
:root[data-theme="light"] {
  color-scheme: light;
  --eb-bg: var(--eb-p-gray-100);
  --eb-surface: var(--eb-p-white);
  --eb-surface-2: var(--eb-p-gray-50);
  --eb-surface-sunken: var(--eb-p-gray-200);
  --eb-border: rgba(37, 99, 235, 0.14);
  --eb-border-strong: rgba(37, 99, 235, 0.32);
  --eb-text: var(--eb-p-text-light-1);
  --eb-text-2: var(--eb-p-text-light-2);
  --eb-text-3: var(--eb-p-text-light-3);
  --eb-text-inverse: var(--eb-p-white);
  --eb-accent: var(--eb-p-blue-600);
  --eb-accent-fg: var(--eb-p-white);
  --eb-accent-soft: rgba(37, 99, 235, 0.08);
  --eb-ok: var(--eb-p-green-700);    --eb-ok-soft: rgba(21, 128, 61, 0.08);
  --eb-warn: var(--eb-p-amber-700);  --eb-warn-soft: rgba(180, 83, 9, 0.08);
  --eb-bad: var(--eb-p-red-700);     --eb-bad-soft: rgba(185, 28, 28, 0.08);
  --eb-info: var(--eb-p-blue-500);   --eb-info-soft: rgba(37, 99, 235, 0.08);
  --eb-neutral: var(--eb-p-gray-500); --eb-neutral-soft: rgba(100, 116, 139, 0.08);
  --eb-shadow-1: 0 1px 3px rgba(30, 58, 95, 0.08), 0 1px 2px rgba(30, 58, 95, 0.04);
  --eb-shadow-2: 0 8px 24px rgba(30, 58, 95, 0.14);
  --eb-shadow-3: 0 24px 64px rgba(30, 58, 95, 0.18);
  --eb-skeleton: linear-gradient(90deg, var(--eb-p-gray-200) 25%, var(--eb-p-gray-100) 37%, var(--eb-p-gray-200) 63%);
  --eb-chart-1: var(--eb-p-blue-600); --eb-chart-2: var(--eb-p-green-700); --eb-chart-3: var(--eb-p-amber-700); --eb-chart-4: var(--eb-p-red-700); --eb-chart-5: var(--eb-p-gray-500);
}

/* ---- density (phones for reps later): remap spacing only ------------------------------- */
:root[data-density="compact"] {
  --eb-pad-card: 12px; --eb-gap-grid: 8px; --eb-gap-inner: 6px; --eb-gap-section: 24px; --eb-row-h: 32px; --eb-fs-kpi: 24px;
}

/* ---- page header (inside main, optional) ------------------------------------------- */
.eb-page-h { display: flex; align-items: flex-end; flex-wrap: wrap; gap: var(--eb-s-3) var(--eb-s-4); }
.eb-page-h h1 { font-size: var(--eb-fs-page); }
.eb-page-h p { color: var(--eb-text-2); max-width: 70ch; }
.eb-page-h .eb-end { align-self: center; }

/* ---- icons ---------------------------------------------------------------------------- */
.eb-i { width: 16px; height: 16px; flex: none; display: inline-block; vertical-align: -3px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.eb-i.lg { width: 20px; height: 20px; vertical-align: -4px; }
.eb-i.xl { width: 24px; height: 24px; vertical-align: -6px; }
.eb-spin { animation: eb-spin var(--eb-dur-spin) linear infinite; }
@keyframes eb-spin { to { transform: rotate(360deg); } }

/* ---- tiles (KPI) ------------------------------------------------------------------- */
.eb-tiles { display: grid; grid-template-columns: repeat(var(--eb-cols, 4), minmax(0, 1fr)); gap: var(--eb-gap-grid); }
@media (max-width: 1199px) { .eb-tiles { --eb-cols: 2; } }
@media (max-width: 480px) { .eb-tiles { --eb-cols: 2; } }
.eb-tile { position: relative; display: flex; flex-direction: column; gap: var(--eb-s-1); min-height: 112px; padding: var(--eb-pad-card); background: var(--eb-surface); border: 1px solid var(--eb-border); border-radius: var(--eb-r-card); box-shadow: var(--eb-shadow-1); }
.eb-tile .eb-tile-l { display: flex; align-items: center; gap: var(--eb-s-2); font-size: var(--eb-fs-label); font-weight: 500; color: var(--eb-text-3); min-height: var(--eb-target); }
.eb-tile .eb-tile-l .eb-end { gap: var(--eb-s-1); }
.eb-tile .eb-tile-v { display: flex; align-items: baseline; gap: var(--eb-s-2); font-size: var(--eb-fs-kpi); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; font-variant-numeric: tabular-nums lining-nums; color: var(--eb-text); }
.eb-tile .eb-tile-v small { font-size: var(--eb-fs-body); font-weight: 500; color: var(--eb-text-3); letter-spacing: 0; }
.eb-tile .eb-tile-c { font-size: var(--eb-fs-label); color: var(--eb-text-2); line-height: 1.4; }
.eb-tile .eb-tile-f { margin-top: auto; padding-top: var(--eb-s-2); display: flex; align-items: center; gap: var(--eb-s-2); font-size: 11px; color: var(--eb-text-3); }
.eb-tile.warn { border-color: var(--eb-warn); box-shadow: inset 0 0 0 1px var(--eb-warn); }
.eb-tile.bad { border-color: var(--eb-bad); box-shadow: inset 0 0 0 1px var(--eb-bad); }
.eb-tile.hero .eb-tile-v { font-size: var(--eb-fs-hero); }
.eb-delta { display: inline-flex; align-items: center; gap: 2px; padding: 0 var(--eb-s-2); border: 1px solid currentColor; border-radius: var(--eb-r-chip); font-size: var(--eb-fs-label); font-weight: 600; letter-spacing: 0; line-height: 18px; color: var(--eb-text-3); white-space: nowrap; }
.eb-delta.up { color: var(--eb-ok); } .eb-delta.down { color: var(--eb-bad); } .eb-delta.flat { color: var(--eb-neutral); }
.eb-meter { height: 6px; border-radius: var(--eb-r-pill); background: var(--eb-surface-sunken); overflow: hidden; }
.eb-meter i { display: block; height: 100%; width: 0; background: var(--eb-accent); transition: width var(--eb-dur-slow) var(--eb-ease); }
.eb-meter i.warn { background: var(--eb-warn); } .eb-meter i.bad { background: var(--eb-bad); }
.eb-spark { width: 100%; height: 28px; color: var(--eb-chart-1); }

/* ---- card + section ------------------------------------------------------------------- */
.eb-card { background: var(--eb-surface); border: 1px solid var(--eb-border); border-radius: var(--eb-r-card); padding: var(--eb-pad-card); box-shadow: var(--eb-shadow-1); }
.eb-card.warn { border-color: var(--eb-warn); box-shadow: inset 0 0 0 1px var(--eb-warn); }
.eb-card.bad { border-color: var(--eb-bad); box-shadow: inset 0 0 0 1px var(--eb-bad); }
.eb-card > .eb-sec-h { margin: calc(var(--eb-pad-card) * -1) calc(var(--eb-pad-card) * -1) var(--eb-s-3); padding: var(--eb-s-3) var(--eb-pad-card); border-bottom: 1px solid var(--eb-border); }
.eb-card > .eb-sec-h + * { margin-top: 0; }
.eb-card-f { margin-top: var(--eb-s-3); padding-top: var(--eb-s-3); border-top: 1px solid var(--eb-border); display: flex; align-items: center; gap: var(--eb-s-2); flex-wrap: wrap; }
.eb-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--eb-gap-grid); }
.eb-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--eb-gap-grid); }
@media (max-width: 900px) { .eb-grid2, .eb-grid3 { grid-template-columns: minmax(0, 1fr); } }
.eb-sec-h { display: flex; align-items: center; gap: var(--eb-s-3); min-width: 0; min-height: var(--eb-target); }
.eb-sec-h h2, .eb-sec-h h3 { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eb-sec-h .eb-sec-t { font-size: var(--eb-fs-card); font-weight: 600; }
.eb-sec-h.eb-toggle { cursor: pointer; user-select: none; }
.eb-sec-h .eb-chev { color: var(--eb-text-3); transition: transform var(--eb-dur-base) var(--eb-ease); }
.eb-section[data-closed] .eb-chev { transform: rotate(-90deg); }
.eb-section[data-closed] > .eb-sec-b { display: none; }
.eb-sec-b { margin-top: var(--eb-s-3); }
.eb-count { display: inline-flex; align-items: center; flex: none; padding: 0 var(--eb-s-2); border: 1px solid var(--eb-border-strong); border-radius: var(--eb-r-pill); font-size: 11px; font-weight: 600; line-height: 18px; color: var(--eb-text-3); }

/* ---- status + freshness --------------------------------------------------------------- */
.eb-status { display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 0 var(--eb-s-2); border: 1px solid currentColor; border-radius: var(--eb-r-chip); background: transparent; font-size: var(--eb-fs-label); font-weight: 600; line-height: 20px; white-space: nowrap; color: var(--eb-neutral); }
.eb-status.ok { color: var(--eb-ok); } .eb-status.warn { color: var(--eb-warn); } .eb-status.bad { color: var(--eb-bad); } .eb-status.info { color: var(--eb-info); }
.eb-status.none { color: var(--eb-neutral); border-style: dashed; } .eb-status.busy { color: var(--eb-info); }
.eb-dot { display: inline-block; width: 6px; height: 6px; border-radius: var(--eb-r-pill); background: currentColor; flex: none; }
.eb-fresh { display: inline-flex; align-items: center; gap: 6px; flex: none; white-space: nowrap; font-size: var(--eb-fs-label); color: var(--eb-text-3); }
.eb-fresh::before { content: ""; width: 6px; height: 6px; border-radius: var(--eb-r-pill); background: var(--eb-ok); }
.eb-fresh.stale { color: var(--eb-warn); } .eb-fresh.stale::before { background: var(--eb-warn); }
.eb-fresh.none { color: var(--eb-text-3); } .eb-fresh.none::before { background: var(--eb-neutral); }
.eb-ai-label { display: inline-flex; align-items: center; gap: 4px; padding: 0 6px; border: 1px solid var(--eb-border-strong); border-radius: var(--eb-r-chip); font-size: 10px; font-weight: 700; letter-spacing: 0.06em; line-height: 16px; color: var(--eb-text-3); }

/* ---- rows, buttons, chips ------------------------------------------------------------- */
.eb-row { display: flex; align-items: center; gap: var(--eb-gap-inner); min-width: 0; min-height: var(--eb-row-h); }
.eb-row + .eb-row { border-top: 1px solid var(--eb-border); }
.eb-row > .eb-end, .eb-end { margin-left: auto; display: flex; align-items: center; gap: var(--eb-gap-inner); flex: none; }
.eb-row .eb-grow { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eb-ib { display: inline-grid; place-items: center; position: relative; flex: none; width: 28px; height: 28px; min-width: var(--eb-target); border: 1px solid var(--eb-border); border-radius: var(--eb-r-ctl); background: transparent; color: var(--eb-text-2); line-height: 1; }
.eb-ib:hover { color: var(--eb-accent); border-color: var(--eb-accent); }
.eb-ib.on { color: var(--eb-accent); border-color: var(--eb-accent); background: var(--eb-accent-soft); }
.eb-ib.quiet { border-color: transparent; }
@media (hover: none) { .eb-ib { width: 36px; height: 36px; } }
.eb-ib[data-tip]:hover::after, .eb-ib[data-tip]:focus-visible::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); white-space: nowrap; pointer-events: none; z-index: var(--eb-z-popover); padding: var(--eb-s-1) var(--eb-s-2); border-radius: var(--eb-r-chip); background: var(--eb-text); color: var(--eb-bg); font-size: var(--eb-fs-label); font-weight: 500; }
.eb-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--eb-s-2); min-height: 32px; padding: 0 var(--eb-s-3); border: 1px solid var(--eb-border-strong); border-radius: var(--eb-r-ctl); background: var(--eb-surface); color: var(--eb-text); font-size: var(--eb-fs-body); font-weight: 500; white-space: nowrap; text-decoration: none; }
.eb-btn:hover { border-color: var(--eb-accent); color: var(--eb-accent); text-decoration: none; }
.eb-btn.primary { background: var(--eb-accent); border-color: var(--eb-accent); color: var(--eb-accent-fg); }
.eb-btn.primary:hover { filter: brightness(1.08); color: var(--eb-accent-fg); }
.eb-btn.sm { min-height: 28px; padding: 0 var(--eb-s-2); font-size: var(--eb-fs-label); }
.eb-chip { display: inline-flex; align-items: center; gap: 4px; padding: 0 var(--eb-s-2); border: 1px solid var(--eb-border-strong); border-radius: var(--eb-r-chip); font-size: 11px; font-weight: 500; line-height: 18px; color: var(--eb-text-2); white-space: nowrap; }
.eb-ref { font-family: var(--eb-font-mono); font-size: 10px; letter-spacing: 0.04em; color: var(--eb-text-3); border: 1px solid var(--eb-border); border-radius: var(--eb-r-chip); padding: 0 4px; line-height: 16px; }
.eb-seg { display: inline-flex; border: 1px solid var(--eb-border-strong); border-radius: var(--eb-r-ctl); overflow: hidden; }
.eb-seg button { min-height: 30px; padding: 0 var(--eb-s-3); font-size: var(--eb-fs-label); font-weight: 600; color: var(--eb-text-2); }
.eb-seg button + button { border-left: 1px solid var(--eb-border); }
.eb-seg button[aria-pressed="true"] { background: var(--eb-accent); color: var(--eb-accent-fg); }
.eb-input { min-height: 32px; padding: 0 var(--eb-s-3); border: 1px solid var(--eb-border-strong); border-radius: var(--eb-r-ctl); background: var(--eb-surface); color: var(--eb-text); width: 100%; }
.eb-input::placeholder { color: var(--eb-text-3); }

/* ---- flow ------------------------------------------------------------------------------ */
.eb-flow { display: flex; align-items: stretch; list-style: none; gap: 0; }
.eb-flow > .eb-step { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 4px; padding: var(--eb-s-3); border: 1px solid var(--eb-border); border-radius: var(--eb-r-card); background: var(--eb-surface); }
.eb-flow > .eb-step.on { border-color: var(--eb-accent); box-shadow: inset 0 0 0 1px var(--eb-accent); }
.eb-flow > .eb-step.done .eb-step-n { background: var(--eb-accent); color: var(--eb-accent-fg); border-color: var(--eb-accent); }
.eb-flow > .eb-step.todo { border-style: dashed; }
.eb-flow > .eb-arrow { flex: none; align-self: center; display: grid; place-items: center; width: 28px; color: var(--eb-text-3); }
.eb-step-n { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: var(--eb-r-pill); border: 1.5px solid var(--eb-accent); color: var(--eb-accent); font-size: 11px; font-weight: 700; }
.eb-step-t { font-size: 13px; font-weight: 600; }
.eb-step-d { font-size: var(--eb-fs-label); color: var(--eb-text-3); }
@media (max-width: 767px) { .eb-flow { flex-direction: column; } .eb-flow > .eb-arrow { width: auto; height: 24px; } .eb-flow > .eb-arrow .eb-i { transform: rotate(90deg); } }
/* phones: headers and rows wrap instead of squeezing the title or overflowing the far-right group */
@media (max-width: 600px) {
  .eb-sec-h, .eb-row, .eb-tile-f { flex-wrap: wrap; row-gap: var(--eb-s-1); }
  .eb-sec-h h2, .eb-sec-h h3 { flex: 1 0 auto; white-space: normal; }
  .eb-end { flex-wrap: wrap; justify-content: flex-end; max-width: 100%; }
}

/* ---- table ----------------------------------------------------------------------------- */
.eb-tscroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.eb-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.eb-table th { position: sticky; top: 0; z-index: 1; text-align: left; padding: 0 var(--eb-s-3); height: var(--eb-row-h); font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--eb-text-3); background: var(--eb-surface); border-bottom: 1px solid var(--eb-border-strong); white-space: nowrap; }
.eb-table td { padding: 0 var(--eb-s-3); height: var(--eb-row-h); border-bottom: 1px solid var(--eb-border); vertical-align: middle; }
.eb-table td.n, .eb-table th.n { text-align: right; font-variant-numeric: tabular-nums lining-nums; }
.eb-table td.s, .eb-table th.s { text-align: right; }
.eb-table tr:hover td { background: var(--eb-surface-2); }
.eb-table tr.eb-clickable { cursor: pointer; }
.eb-table td.muted { color: var(--eb-text-3); }
.eb-table th[aria-sort] { cursor: pointer; }
.eb-table th[aria-sort="ascending"]::after { content: " \2191"; } .eb-table th[aria-sort="descending"]::after { content: " \2193"; }

/* ---- skeleton + empty ----------------------------------------------------------------- */
.eb-skel { display: block; height: 1em; border-radius: var(--eb-r-chip); background: var(--eb-skeleton); background-size: 400% 100%; animation: eb-shimmer var(--eb-dur-shimmer) ease infinite; color: transparent !important; }
.eb-skel.v { height: 1.1em; width: 60%; } .eb-skel.l { height: 0.9em; width: 40%; } .eb-skel.row { height: var(--eb-row-h); border-radius: 0; }
@keyframes eb-shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
[aria-busy="true"] .eb-live { visibility: hidden; }
.eb-empty { display: grid; gap: var(--eb-s-2); justify-items: center; text-align: center; padding: var(--eb-s-8) var(--eb-s-4); color: var(--eb-text-2); }
.eb-empty .eb-i { color: var(--eb-text-3); }
.eb-empty h3 { font-size: var(--eb-fs-body); }
.eb-empty p { font-size: var(--eb-fs-label); color: var(--eb-text-3); max-width: 40ch; }
.eb-empty.bad .eb-i, .eb-empty.bad h3 { color: var(--eb-bad); }

/* ---- side panel (AI, details) --------------------------------------------------------- */
.eb-panel { position: fixed; top: 0; right: 0; height: 100vh; width: min(420px, 100vw); background: var(--eb-surface); border-left: 1px solid var(--eb-border); box-shadow: var(--eb-shadow-3); z-index: var(--eb-z-modal); display: flex; flex-direction: column; transform: translateX(100%); transition: transform var(--eb-dur-slow) var(--eb-ease); }
.eb-panel.open { transform: none; }
.eb-panel-h { display: flex; align-items: center; gap: var(--eb-s-2); height: var(--eb-header-h); padding: 0 var(--eb-s-4); border-bottom: 1px solid var(--eb-border); flex: none; }
.eb-panel-h h2 { font-size: var(--eb-fs-card); }
.eb-panel-b { flex: 1 1 auto; overflow-y: auto; padding: var(--eb-s-4); display: grid; gap: var(--eb-s-3); align-content: start; }
.eb-panel-f { flex: none; padding: var(--eb-s-3) var(--eb-s-4); border-top: 1px solid var(--eb-border); display: flex; gap: var(--eb-s-2); }
.eb-msg { padding: var(--eb-s-3); border: 1px solid var(--eb-border); border-radius: var(--eb-r-card); font-size: 13px; line-height: 1.5; white-space: pre-wrap; }
.eb-msg.me { background: var(--eb-accent-soft); border-color: transparent; }
.eb-msg ul { padding-left: var(--eb-s-4); margin-top: var(--eb-s-1); }
.eb-msg .eb-msg-meta { display: flex; gap: var(--eb-s-2); margin-top: var(--eb-s-2); font-size: 11px; color: var(--eb-text-3); }

/* ---- command palette ------------------------------------------------------------------ */
.eb-cmdk { position: fixed; inset: 0; z-index: var(--eb-z-modal); display: none; align-items: flex-start; justify-content: center; padding: 10vh var(--eb-s-4) 0; background: var(--eb-overlay); }
.eb-cmdk.open { display: flex; }
.eb-cmdk-box { width: min(640px, 100%); background: var(--eb-surface); border: 1px solid var(--eb-border-strong); border-radius: var(--eb-r-card); box-shadow: var(--eb-shadow-3); overflow: hidden; }
.eb-cmdk-in { display: flex; align-items: center; gap: var(--eb-s-2); padding: 0 var(--eb-s-4); border-bottom: 1px solid var(--eb-border); }
.eb-cmdk-in input { flex: 1; min-height: 48px; background: transparent; border: 0; font-size: var(--eb-fs-card); }
.eb-cmdk-in input:focus-visible { box-shadow: none; }
.eb-cmdk-list { max-height: 50vh; overflow-y: auto; padding: var(--eb-s-2); }
.eb-cmdk-g { padding: var(--eb-s-2) var(--eb-s-2) var(--eb-s-1); font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--eb-text-3); }
.eb-cmdk-it { display: flex; align-items: center; gap: var(--eb-s-3); min-height: 36px; padding: 0 var(--eb-s-2); border-radius: var(--eb-r-ctl); color: var(--eb-text); cursor: pointer; }
.eb-cmdk-it .eb-i { color: var(--eb-text-3); }
.eb-cmdk-it.on, .eb-cmdk-it:hover { background: var(--eb-accent-soft); color: var(--eb-accent); }
.eb-cmdk-it kbd { margin-left: auto; }
.eb-cmdk-f { display: flex; gap: var(--eb-s-4); padding: var(--eb-s-2) var(--eb-s-4); border-top: 1px solid var(--eb-border); font-size: 11px; color: var(--eb-text-3); }

/* ---- toast ----------------------------------------------------------------------------- */
.eb-toast { position: fixed; left: 50%; bottom: var(--eb-s-6); transform: translate(-50%, 20px); opacity: 0; z-index: var(--eb-z-toast); padding: var(--eb-s-2) var(--eb-s-4); background: var(--eb-text); color: var(--eb-bg); border-radius: var(--eb-r-ctl); font-size: 13px; box-shadow: var(--eb-shadow-2); transition: transform var(--eb-dur-base) var(--eb-ease), opacity var(--eb-dur-base) var(--eb-ease); pointer-events: none; }
.eb-toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ---- prose (docs) ---------------------------------------------------------------------- */
.eb-prose { max-width: 72ch; color: var(--eb-text-2); }
.eb-prose h2 { margin-top: var(--eb-s-6); color: var(--eb-text); }
.eb-prose h3 { margin-top: var(--eb-s-4); color: var(--eb-text); }
.eb-prose p, .eb-prose ul, .eb-prose ol, .eb-prose pre { margin-top: var(--eb-s-2); }
.eb-prose ul, .eb-prose ol { padding-left: var(--eb-s-5); }
.eb-prose pre { padding: var(--eb-s-3); background: var(--eb-surface-sunken); border-radius: var(--eb-r-ctl); overflow-x: auto; font-size: 12px; line-height: 1.5; }
.eb-prose code { background: var(--eb-surface-2); padding: 0 4px; border-radius: var(--eb-r-chip); }
.eb-prose pre code { background: none; padding: 0; }

/* eb-command look (Ash 10-29: "why does the hub look different"): centred Orbitron brand band,
   uppercase tracked tile labels, accent-coloured KPI numbers. Matches eb-command's polish layer. */
.eb-header { height: auto; min-height: var(--eb-header-h); padding-block: var(--eb-s-2); }
.eb-brandband { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; text-align: center; line-height: 1.2; }
.eb-brandband .eb-bb-1 { font-family: var(--eb-font-brand); font-weight: 700; font-size: var(--eb-fs-body); letter-spacing: 0.18em; text-transform: uppercase; color: var(--eb-text); }
.eb-header h1.eb-bb-2 { font-family: var(--eb-font-brand); font-weight: 600; font-size: var(--eb-fs-label); letter-spacing: 0.22em; text-transform: uppercase; color: var(--eb-accent); }
.eb-brandband .eb-sub { font-size: 11px; }
.eb-header-actions { margin-left: 0; }
.eb-tile .eb-tile-l { text-transform: uppercase; letter-spacing: 0.08em; font-size: 11px; font-weight: 600; }
.eb-tile .eb-tile-v { color: var(--eb-accent); }
.eb-tile.good .eb-tile-v { color: var(--eb-ok); }
.eb-tile.warn .eb-tile-v { color: var(--eb-warn); }
.eb-tile.bad .eb-tile-v { color: var(--eb-bad); }
@media (max-width: 600px) { .eb-brandband .eb-sub { display: none; } }
