@import url('https://fonts.googleapis.com/css2?family=Hanken+Grotesk:ital,wght@0,400;0,500;0,600;0,700;0,800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  /* surfaces — warm-cool near-black, faint citrus tint */
  --bg:        oklch(0.155 0.008 150);
  --bg-grid:   oklch(0.185 0.008 150);
  --panel:     oklch(0.193 0.008 150);
  --panel-2:   oklch(0.223 0.009 150);
  --panel-3:   oklch(0.255 0.010 150);
  --line:      oklch(0.315 0.010 150);
  --line-soft: oklch(0.262 0.008 150);

  --text:      oklch(0.945 0.010 150);
  --text-dim:  oklch(0.735 0.012 150);
  --text-faint:oklch(0.560 0.010 150);

  /* brand — lemon chartreuse, used sparingly */
  --accent:    oklch(0.880 0.165 110);
  --accent-2:  oklch(0.800 0.150 118);
  --accent-tint: oklch(0.880 0.165 110 / 0.14);

  /* provenance system — shared chroma/lightness, hue varies */
  --pv-verifier:   oklch(0.760 0.140 152);
  --pv-trajectory: oklch(0.760 0.130 205);
  --pv-measured:   oklch(0.715 0.135 258);
  --pv-judged:     oklch(0.745 0.140 305);
  --pv-authored:   oklch(0.795 0.130 72);
  --pv-computed:   oklch(0.730 0.045 250);
  --pv-unscored:   oklch(0.600 0.012 150);

  --pass: oklch(0.770 0.150 152);
  --fail: oklch(0.680 0.180 25);
  --warn: oklch(0.800 0.140 80);

  --topbar: oklch(0.165 0.008 150 / 0.7);
  --hover:  oklch(0.210 0.009 150 / 0.5);
  --editor-bg: oklch(0.135 0.008 150);

  --r: 9px;
  --r-sm: 6px;
  --sans: 'Hanken Grotesk', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

/* ---------- light theme ---------- */
html[data-theme="light"] {
  --bg:        oklch(0.984 0.004 130);
  --bg-grid:   oklch(0.967 0.005 130);
  --panel:     oklch(1.000 0.000 0);
  --panel-2:   oklch(0.975 0.004 130);
  --panel-3:   oklch(0.950 0.006 130);
  --line:      oklch(0.875 0.008 130);
  --line-soft: oklch(0.918 0.006 130);

  --text:      oklch(0.255 0.012 150);
  --text-dim:  oklch(0.455 0.014 150);
  --text-faint:oklch(0.600 0.012 150);

  --accent:    oklch(0.720 0.155 118);
  --accent-2:  oklch(0.660 0.150 122);
  --accent-tint: oklch(0.720 0.155 118 / 0.18);

  --pv-verifier:   oklch(0.560 0.150 152);
  --pv-trajectory: oklch(0.550 0.140 232);
  --pv-measured:   oklch(0.555 0.165 262);
  --pv-judged:     oklch(0.560 0.185 308);
  --pv-authored:   oklch(0.620 0.150 64);
  --pv-computed:   oklch(0.540 0.045 250);
  --pv-unscored:   oklch(0.620 0.012 150);

  --pass: oklch(0.580 0.160 152);
  --fail: oklch(0.580 0.205 25);
  --warn: oklch(0.640 0.150 72);

  --topbar: oklch(0.990 0.004 130 / 0.78);
  --hover:  oklch(0.955 0.006 130 / 0.8);
  --editor-bg: oklch(0.972 0.005 130);
}
html[data-theme="light"] body { background: var(--bg); }
html[data-theme="light"] .brand-mark { color: oklch(0.28 0.06 130); }
html[data-theme="light"] button.btn.primary { color: oklch(0.20 0.05 130); }

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

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

#root { height: 100%; }

::selection { background: var(--accent-tint); color: var(--text); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 20px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--line-soft); }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- typographic helpers ---------- */
.mono { font-family: var(--mono); }
.eyebrow {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.tnum { font-variant-numeric: tabular-nums; }

/* ---------- app shell ---------- */
.app {
  display: grid;
  grid-template-columns: 252px 1fr;
  height: 100%;
  min-height: 0;
  transition: grid-template-columns .18s ease;
}
.app.sidebar-collapsed { grid-template-columns: 72px 1fr; }

.sidebar {
  background: linear-gradient(180deg, var(--bg-grid), var(--bg));
  border-right: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 20px 20px 18px;
  border-bottom: 1px solid var(--line-soft);
}
.brand-mark {
  width: 30px; height: 30px; border-radius: 8px;
  background: radial-gradient(120% 120% at 30% 25%, var(--accent), var(--accent-2));
  display: grid; place-items: center;
  color: oklch(0.22 0.06 140); font-family: var(--mono); font-weight: 700; font-size: 16px;
  box-shadow: 0 0 0 1px oklch(0.88 0.165 110 / 0.3), 0 6px 18px -8px var(--accent);
}
.brand-name { font-weight: 700; font-size: 15px; letter-spacing: -0.01em; line-height: 1.1; }
.brand-sub { font-family: var(--mono); font-size: 9.5px; color: var(--text-faint); letter-spacing: 0.08em; text-transform: uppercase; }
.side-collapse-btn {
  margin-left: auto;
  width: 28px;
  height: 28px;
  padding: 0;
  display: grid;
  place-items: center;
  color: var(--text-faint);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
}
.side-collapse-btn:hover {
  color: var(--text);
  background: var(--panel-2);
  border-color: var(--line-soft);
}

.nav { padding: 12px 10px; display: flex; flex-direction: column; gap: 2px; flex: 1; min-height: 0; overflow-y: auto; }
.nav-section { display: flex; flex-direction: column; gap: 2px; }
.nav-label { padding: 14px 12px 6px; }
.nav-section-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
}
.nav-section-toggle:hover { color: var(--text-dim); }
.nav-section-caret {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-faint);
}
.nav-item {
  display: flex; align-items: center; gap: 11px;
  padding: 8px 11px; border-radius: var(--r-sm);
  color: var(--text-dim); font-size: 13.5px; font-weight: 500;
  cursor: pointer; border: 1px solid transparent;
  transition: background .14s, color .14s, border-color .14s;
  user-select: none;
}
.nav-item span { white-space: nowrap; }
.nav-item:hover { background: var(--panel); color: var(--text); }
.nav-item.active { background: var(--panel-2); color: var(--text); border-color: var(--line-soft); }
.nav-item.active .nav-ico { color: var(--accent); }
.nav-ico { width: 16px; height: 16px; flex: none; color: var(--text-faint); }
.nav-item.active .nav-dot { opacity: 1; }
.nav-key { margin-left: auto; font-family: var(--mono); font-size: 10px; color: var(--text-faint); }

.sidebar-foot { padding: 14px 16px; border-top: 1px solid var(--line-soft); }

.sidebar.is-collapsed .brand {
  padding: 16px 12px;
  gap: 6px;
  justify-content: center;
}
.sidebar.is-collapsed .brand > div:not(.brand-mark) { display: none; }
.sidebar.is-collapsed .side-collapse-btn {
  margin-left: 0;
  width: 24px;
}
.sidebar.is-collapsed .nav-label { display: none; }
.sidebar.is-collapsed .nav-section { gap: 2px; }
.sidebar.is-collapsed .nav-item {
  padding: 9px 0;
  justify-content: center;
  gap: 0;
}
.sidebar.is-collapsed .nav-item span:not(.nav-key),
.sidebar.is-collapsed .nav-key { display: none; }
.sidebar.is-collapsed .nav-ico { width: 18px; height: 18px; }
.sidebar.is-collapsed .sidebar-foot { display: none; }

/* main */
.main { min-width: 0; min-height: 0; display: flex; flex-direction: column; }

.topbar {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 26px; border-bottom: 1px solid var(--line-soft);
  background: var(--topbar); backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 5;
}
.crumbs { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--text-dim); white-space: nowrap; }
.crumbs .sep { color: var(--text-faint); }
.crumbs .here { color: var(--text); font-weight: 600; }

.task-pill {
  display: flex; align-items: center; gap: 9px; white-space: nowrap;
  padding: 6px 12px; border: 1px solid var(--line); border-radius: 100px;
  background: var(--panel); font-family: var(--mono); font-size: 12px; cursor: pointer;
}
.task-pill:hover { border-color: var(--line); background: var(--panel-2); }
.task-pill .accept { width: 7px; height: 7px; border-radius: 50%; background: var(--pass); box-shadow: 0 0 0 3px oklch(0.77 0.15 152 / 0.18); }

.content { flex: 1; overflow-y: auto; min-height: 0; }
.page { padding: 30px 34px 80px; max-width: 1240px; margin: 0 auto; }

/* ---------- generic primitives ---------- */
.card {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
}
.card-pad { padding: 18px 20px; }
.card-head {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  padding: 14px 20px; border-bottom: 1px solid var(--line-soft);
}
.card-title { font-size: 14px; font-weight: 600; white-space: nowrap; }
.card-head .eyebrow { margin-bottom: 0; }

.grid { display: grid; gap: 16px; }

.picker,
.picker-button,
.picker-value { min-width: 0; }
.picker-button { max-width: 100%; }
.picker-value {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.h1 { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.h2 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.lead { color: var(--text-dim); font-size: 14.5px; max-width: 70ch; }

.divider { height: 1px; background: var(--line-soft); border: 0; }

/* provenance tag */
.pv {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 10px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
  padding: 2px 7px 2px 6px; border-radius: 5px;
  border: 1px solid var(--pv-c, var(--line)); color: var(--pv-c, var(--text-dim));
  background: color-mix(in oklab, var(--pv-c, var(--line)) 13%, transparent);
  white-space: nowrap; line-height: 1.4;
}
.pv .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--pv-c, var(--text-dim)); flex: none; }
.pv.dim { opacity: .85; }

/* chips / badges */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  padding: 3px 9px; border-radius: 100px;
  border: 1px solid var(--line); color: var(--text-dim); background: var(--panel-2);
}
.chip.solid { background: var(--accent-tint); border-color: transparent; color: var(--accent); }

.tag-pass { color: var(--pass); }
.tag-fail { color: var(--fail); }
.tag-warn { color: var(--warn); }

.dotrow { display: inline-flex; gap: 4px; align-items: center; }
.adot { width: 9px; height: 9px; border-radius: 2px; }
.adot.p { background: var(--pass); }
.adot.f { background: var(--fail); box-shadow: inset 0 0 0 1px oklch(0.68 0.18 25 / .5); }

/* metric stat */
.stat-num { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat-lab { font-size: 12px; color: var(--text-dim); }

button.btn {
  font-family: var(--sans); font-size: 13px; font-weight: 600;
  padding: 8px 14px; border-radius: var(--r-sm); cursor: pointer;
  border: 1px solid var(--line); background: var(--panel-2); color: var(--text);
  display: inline-flex; align-items: center; gap: 8px; transition: .14s;
  white-space: nowrap;
}
button.btn:hover { background: var(--panel-3); border-color: var(--line); }
button.btn.primary { background: var(--accent); color: oklch(0.22 0.06 140); border-color: transparent; }
button.btn.primary:hover { background: var(--accent-2); }
button.btn.ghost { background: transparent; }

table.t { width: 100%; border-collapse: collapse; font-size: 13px; }
table.t th {
  text-align: left; font-family: var(--mono); font-size: 10px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint);
  padding: 10px 14px; border-bottom: 1px solid var(--line-soft); white-space: nowrap;
}
table.t td { padding: 11px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
table.t tr:last-child td { border-bottom: 0; }
table.t tbody tr:hover { background: var(--hover); }

.bar { height: 6px; border-radius: 100px; background: var(--panel-3); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 100px; }

.fade-in { animation: fade .4s ease both; }
@keyframes fade { from { transform: translateY(7px); } to { transform: none; } }

@keyframes ltSpin { to { transform: rotate(360deg); } }

/* Pulsing dot on the Run-panel button while a sweep is in flight. */
@keyframes ltpulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in oklab, var(--accent) 55%, transparent); }
  70%  { box-shadow: 0 0 0 6px color-mix(in oklab, var(--accent) 0%, transparent); }
  100% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--accent) 0%, transparent); }
}

@media (prefers-reduced-motion: reduce) { .fade-in { animation: none; } }


/* ──────────────────────────────────────────────────────────────────────────
   Responsive layer — MacBook Pro 13" 2023 + extended 2nd screens
   Defaults target the MacBook 13" "Looks like 1440×900" (full screen).
   ────────────────────────────────────────────────────────────────────────── */

/* ── Compact (split view, browser ½ screen, side-by-side editors) ──
   At ≤ 1024px the 252px sidebar swallows most of the page. Collapse it to
   icon-only — labels hide, nav stays reachable, content gets the room back. */
@media (max-width: 1024px) {
  .app { grid-template-columns: 64px 1fr; }
  .sidebar { overflow: hidden; }
  .brand { padding: 16px 12px; gap: 0; justify-content: center; }
  .brand > div:not(.brand-mark) { display: none; }
  .nav-label { display: none; }
  .nav-item { padding: 9px 0; justify-content: center; gap: 0; }
  .nav-item span:not(.nav-key) { display: none; }
  .nav-key { display: none; }
  .nav-ico { width: 18px; height: 18px; }
  .sidebar-foot { display: none; }
  .topbar { padding: 12px 16px; gap: 10px; flex-wrap: wrap; }
  .crumbs { font-size: 12px; }
  .crumbs .sep { margin: 0 -2px; }
  .page { padding: 22px 18px 70px; }
}

/* Laptop-width operator mode. Workspace is pane-heavy, so collapse the
   sidebar before the editor starts squeezing against the Agent pane. */
@media (max-width: 1900px) and (min-width: 1025px) {
  .app:not(.sidebar-expanded) { grid-template-columns: 72px 1fr; }
  .app:not(.sidebar-expanded) .sidebar { overflow: hidden; }
  .app:not(.sidebar-expanded) .brand { padding: 16px 12px; gap: 0; justify-content: center; }
  .app:not(.sidebar-expanded) .brand > div:not(.brand-mark) { display: none; }
  .app:not(.sidebar-expanded) .nav-label { display: none; }
  .app:not(.sidebar-expanded) .nav-item { padding: 9px 0; justify-content: center; gap: 0; }
  .app:not(.sidebar-expanded) .nav-item span:not(.nav-key) { display: none; }
  .app:not(.sidebar-expanded) .nav-key { display: none; }
  .app:not(.sidebar-expanded) .nav-ico { width: 18px; height: 18px; }
  .app:not(.sidebar-expanded) .sidebar-foot { display: none; }
  .topbar { padding: 12px 16px; gap: 10px; }
}

/* ── Very narrow (DevTools open, vertical split, tablet portrait) ──
   At ≤ 640px even the icon rail is too much — hide the sidebar entirely.
   The TopBar still carries crumbs + task picker, so navigation isn't lost
   (we land on Leaderboard by default and use the in-card buttons to move). */
@media (max-width: 640px) {
  .app { grid-template-columns: 0 1fr; }
  .sidebar { display: none; }
  .topbar { padding: 10px 12px; }
  .page { padding: 16px 12px 60px; }
}

/* ── Standard 13"–15" laptop full screen — current defaults are tuned for this.
     No overrides needed between 1025px and 1599px. ── */

/* ── Large external (1080p, 1440p) ──
   At ≥ 1600px we have lots of horizontal real estate. Bump the page cap so
   tables, leaderboard cards, and the Training Validator's two-column layout
   stop feeling cramped against the centered 1240px column. */
@media (min-width: 1600px) {
  .page { max-width: 1480px; padding: 36px 40px 80px; }
}

/* ── 4K / 5K externals ──
   At ≥ 2200px expand further but keep a sane reading width — content beyond
   ~1800px starts feeling sparse and forces the eye too far horizontally.
   Slightly wider sidebar earns its keep at this size. */
@media (min-width: 2200px) {
  .app { grid-template-columns: 280px 1fr; }
  .page { max-width: 1800px; padding: 42px 48px 90px; }
}

/* ── Stack multi-column page sections on narrow viewports ──
   Almost every multi-pane page section (Leaderboard cards, Portfolio stats,
   Value Card splits, Pairwise A/B, Training Validator config + log) uses the
   shared `.grid` class with an inline `gridTemplateColumns`. The inline style
   wins on specificity, so we override with `!important` here ONLY in the
   collapse breakpoint. Below 900px everything stacks; tables get a horizontal
   scroller instead of squishing columns. */
@media (max-width: 900px) {
  .grid { grid-template-columns: 1fr !important; }
  .card-pad { padding: 14px 14px; }
  .h1, .stat-num { font-size: 22px; }
  .lead { font-size: 13.5px; }
  /* Tables stay wide — wrap in their own scroller rather than squish columns */
  .t { font-size: 12px; }
  table.t { display: block; overflow-x: auto; }
}

/* ---------- responsive workspace ---------- */
.workspace-shell { container-type: inline-size; }
.workspace-toolbar,
.workspace-controls,
.topbar-actions { min-width: 0; }
.workspace-toolbar .picker { flex: 0 1 auto; }
.workspace-toolbar .picker-button { max-width: 100%; }
.workspace-toolbar .picker-value { max-width: 18ch; }
.topbar-actions .picker { max-width: min(380px, 42vw); }
.topbar-actions .picker-button { max-width: 100%; }
.run-panel-anchor { flex: none; }
.run-panel-popover { max-width: calc(100vw - 28px); }
.workspace-body { position: relative; }
.ws-pane { min-width: 0; }
.ws-center { min-width: 360px !important; }
.ws-inspector-scroll,
.ws-inspector-scroll * { min-width: 0; }
.ws-inspector-title-row {
  flex-wrap: wrap;
  align-items: flex-start !important;
}
.ws-inspector-task-id {
  flex: 1 1 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ws-inspector-title-row > .chip {
  flex: 0 1 auto;
  max-width: 100%;
  flex-wrap: wrap;
  white-space: normal;
  line-height: 1.35;
}
.ws-inspector-axis {
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.train-view {
  box-sizing: border-box;
  width: 100%;
  max-width: 1760px;
  margin: 0 auto;
  padding: 24px 30px 72px;
}
.train-head > div {
  margin-bottom: 18px !important;
}
.train-head .lead {
  max-width: 62ch;
  line-height: 1.55;
}
.train-grid {
  grid-template-columns: minmax(430px, .92fr) minmax(520px, 1.08fr) !important;
  gap: 18px !important;
}
.train-side {
  display: grid !important;
  grid-template-rows: auto auto minmax(240px, 1fr);
  gap: 18px !important;
}
.train-side .card:last-child {
  min-height: 260px;
}
.train-model-chip {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.train-run-row { min-width: 0; }
.train-run-model {
  flex: 0 1 220px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: right;
}
.train-run-iter {
  flex: none;
  white-space: nowrap;
}

@media (max-width: 1600px) {
  .workspace-toolbar {
    flex-wrap: wrap;
    align-content: center;
    row-gap: 8px;
  }
  .workspace-toolbar .picker { flex: 1 1 154px; max-width: 210px; }
  .workspace-toolbar .picker-value { max-width: 14ch; }
  .workspace-controls {
    margin-left: 0 !important;
    flex: 1 1 100%;
    justify-content: flex-end;
    flex-wrap: wrap;
  }
  .ws-explorer { width: clamp(184px, 13vw, 210px) !important; }
  .ws-inspector { width: clamp(232px, 18vw, 280px) !important; }
  .ws-agent { width: clamp(268px, 20vw, 306px) !important; }
}

@media (max-width: 1500px) {
  .train-view { padding: 22px 24px 68px; }
  .train-grid { grid-template-columns: minmax(390px, .95fr) minmax(410px, 1.05fr) !important; }
  .train-run-model { flex-basis: 170px; }
}

@media (max-width: 1480px) {
  .workspace-toolbar .picker-label,
  .ws-active-path { display: none !important; }
  .workspace-toolbar .picker { flex-basis: 132px; max-width: 178px; }
  .workspace-controls {
    justify-content: flex-start;
  }
  .ws-explorer { width: 184px !important; }
  .ws-inspector { width: 244px !important; }
  .ws-agent { width: 282px !important; }
}

@media (max-width: 1280px) {
  .topbar {
    flex-wrap: wrap;
    align-items: flex-start;
  }
  .topbar-actions {
    margin-left: 0 !important;
    width: 100%;
    justify-content: flex-end;
    flex-wrap: wrap;
  }
  .topbar-actions .picker { max-width: min(340px, 55vw); }
  .workspace-body {
    overflow-x: auto;
    overflow-y: hidden;
  }
  .ws-explorer { width: 188px !important; }
  .ws-inspector { width: 248px !important; }
  .ws-agent { width: 280px !important; }
  .ws-center { min-width: 420px !important; }
}

@media (max-width: 1120px) {
  .workspace-toolbar {
    padding: 8px 10px !important;
    gap: 7px !important;
  }
  .workspace-toolbar .picker { flex-basis: 148px; }
  .workspace-toolbar .picker-label,
  .ws-active-path,
  .ws-toolbar-divider { display: none !important; }
  .workspace-controls {
    justify-content: flex-start;
    gap: 6px !important;
  }
  .workspace-controls .btn,
  .workspace-controls .chip { padding-inline: 9px !important; }
  .workspace-body { overflow-x: hidden; }
  .ws-explorer { width: 176px !important; }
  .ws-inspector {
    display: none !important;
  }
  .ws-agent {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(360px, 72vw) !important;
    z-index: 30;
    background: var(--bg);
    box-shadow: -24px 0 48px -28px rgba(0,0,0,.75);
  }
  .ws-center { min-width: 0 !important; }
}

@media (max-width: 760px) {
  .topbar-actions .chip { display: none; }
  .topbar-actions .picker { max-width: 100%; flex: 1 1 220px; }
  .workspace-toolbar .picker { flex: 1 1 42%; }
  .ws-task-id {
    flex: 1 1 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .ws-explorer,
  .workspace-body > .ws-split:first-of-type {
    display: none !important;
  }
  .ws-agent { width: min(340px, 86vw) !important; }
  .run-panel-popover {
    position: fixed !important;
    left: 10px !important;
    right: 10px !important;
    top: 74px !important;
    width: auto !important;
  }
}
