/* Workbench layout.
 *
 * A run is the unit of work and runs accumulate, so the list of them is
 * permanent furniture rather than a tab you navigate away to. The main pane
 * shows exactly one run — composing it, watching it, or reading it.
 */

/* ═══ Frame ════════════════════════════════════════════════════════════ */

.workbench {
  display: grid;
  grid-template-columns: 248px 1fr;
  height: 100vh;
  height: 100dvh;          /* mobile browsers shrink the viewport on scroll */
  overflow: hidden;         /* each pane scrolls independently */
  transition: grid-template-columns var(--duration-base) var(--ease);
}
/* Collapsing hides the rail's content but keeps a 48px strip, because the
   toggle lives inside it: a zero-width sidebar took its own reopen control
   with it, and the state is persisted, so a reload did not recover either. */
.workbench[data-collapsed="true"] { grid-template-columns: 48px 1fr; }
.workbench[data-collapsed="true"] .brand__name,
.workbench[data-collapsed="true"] .new-run span,
.workbench[data-collapsed="true"] .new-run .kbd,
.workbench[data-collapsed="true"] .runlist,
.workbench[data-collapsed="true"] .capacity__label,
.workbench[data-collapsed="true"] .bare-select { display: none; }
.workbench[data-collapsed="true"] .sidebar__head { padding: 0 var(--space-2); justify-content: center; }
.workbench[data-collapsed="true"] .brand { display: none; }
.workbench[data-collapsed="true"] .new-run { justify-content: center; margin-inline: var(--space-2); padding-inline: 0; }
.workbench[data-collapsed="true"] .sidebar__foot { justify-content: center; padding-inline: var(--space-2); }

/* ═══ Sidebar ══════════════════════════════════════════════════════════ */

.sidebar {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-right: 1px solid var(--border-subtle);
  background: var(--bg-base);
  overflow: hidden;
}

.sidebar__head {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  height: var(--header-height);
  padding: 0 var(--space-3) 0 var(--space-4);
  flex-shrink: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-width: 0;
  flex: 1;
  color: var(--text-primary);
}
.brand__mark {
  width: 22px; height: 22px;
  display: block;
  flex-shrink: 0;
}
.brand__name {
  font-size: var(--text-base);
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.icon-btn {
  width: 26px; height: 26px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  color: var(--text-disabled);
  flex-shrink: 0;
  transition: background var(--duration-fast) var(--ease),
              color var(--duration-fast) var(--ease);
}
.icon-btn svg { width: 15px; height: 15px; }
.icon-btn:hover { background: var(--bg-hover); color: var(--text-secondary); }

/* ── New run ── */
.new-run {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin: 0 var(--space-3) var(--space-3);
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  background: var(--bg-raised);
  color: var(--text-secondary);
  font-size: var(--text-base);
  font-weight: 500;
  white-space: nowrap;
  transition: background var(--duration-fast) var(--ease),
              border-color var(--duration-fast) var(--ease),
              color var(--duration-fast) var(--ease);
}
.new-run svg { width: 14px; height: 14px; flex-shrink: 0; }
.new-run:hover {
  background: var(--bg-hover);
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.kbd {
  margin-left: auto;
  padding: 1px 5px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  background: var(--bg-base);
  color: var(--text-disabled);
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.5;
}

/* ── Run list ── */
.runlist {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 var(--space-2) var(--space-3);
  min-height: 0;
}

.runlist__group {
  padding: var(--space-4) var(--space-2) var(--space-1);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-disabled);
}

.runitem {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  width: 100%;
  padding: var(--space-2) var(--space-2);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: var(--text-base);
  text-align: left;
  transition: background var(--duration-fast) var(--ease),
              color var(--duration-fast) var(--ease);
}
.runitem:hover { background: var(--bg-hover); color: var(--text-primary); }
.runitem[aria-current="true"] {
  background: var(--bg-overlay);
  color: var(--text-primary);
}

.runitem__state {
  width: 6px; height: 6px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
  background: var(--text-disabled);
}
.runitem__state[data-state="running"] {
  background: var(--accent);
  animation: pulse-dot 1.8s var(--ease) infinite;
}
.runitem__state[data-state="completed"] { background: var(--success); }
.runitem__state[data-state="failed"]    { background: var(--danger); }
.runitem__state[data-state="cancelled"] { background: var(--text-disabled); }
.runitem__state[data-state="timeout"]   { background: var(--warning); }

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 var(--accent-ring); }
  55%      { box-shadow: 0 0 0 4px transparent; }
}

.runitem__label {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Only ever rendered for an admin request (RunSummary.owner_label) — which
   code ran this, so a merged multi-code history stays legible instead of
   reading as one undifferentiated list. */
.runitem__owner {
  flex-shrink: 0;
  max-width: 96px;
  padding: 1px var(--space-2);
  border-radius: var(--radius-full);
  background: var(--bg-active);
  color: var(--text-tertiary);
  font-size: var(--text-xs);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Buttons cannot nest inside a <button>, so the select button and the
   delete icon sit side by side in this row instead of one inside the
   other (see sidebar.js render()). */
.runitem-row {
  display: flex;
  align-items: center;
  gap: 2px;
}
.runitem-row .runitem { flex: 1; min-width: 0; }

/* Always rendered, never hover-gated. It was hidden until hover at first, on
   the theory that a permanent trash icon on every row is visual noise — but
   the person who owns these runs could not find the feature at all, which is
   the worse failure of the two: an affordance nobody knows about is not a
   quieter interface, it is a missing one. It stays visually quiet instead,
   inheriting .icon-btn's muted colour at rest and turning red on hover, so it
   reads as available without competing with the topic it sits beside. */
.runitem__delete {
  flex-shrink: 0;
  transition: background var(--duration-fast) var(--ease),
              color var(--duration-fast) var(--ease);
}
.runitem__delete:hover,
.runitem__delete:focus-visible {
  background: var(--bg-hover);
  color: var(--danger);
}

.runlist__empty {
  padding: var(--space-8) var(--space-4);
  text-align: center;
  color: var(--text-disabled);
  font-size: var(--text-sm);
}

/* ── Sidebar footer ── */
.sidebar__foot {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  border-top: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.capacity {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex: 1;
  min-width: 0;
}
.capacity__dots { display: flex; gap: 3px; }
.capacity__dot {
  width: 5px; height: 5px;
  border-radius: var(--radius-full);
  background: var(--bg-active);
}
.capacity__dot[data-busy="true"] { background: var(--accent); }
.capacity__label {
  font-size: var(--text-xs);
  color: var(--text-disabled);
  white-space: nowrap;
}

.bare-select {
  padding: 2px var(--space-1);
  background: transparent;
  border: none;
  color: var(--text-disabled);
  font-size: var(--text-xs);
  cursor: pointer;
  border-radius: var(--radius-sm);
}
.bare-select:hover { color: var(--text-secondary); background: var(--bg-hover); }
.bare-select option { background: var(--bg-overlay); color: var(--text-primary); }

/* ═══ Main ═════════════════════════════════════════════════════════════ */

.main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg-base);
}

.pane {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.pane__head {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-8);
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
}
.pane__heading { flex: 1; min-width: 0; }
.pane__title {
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: -0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pane__meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-2);
  font-size: var(--text-sm);
  color: var(--text-tertiary);
}
.pane__actions { display: flex; gap: var(--space-2); flex-shrink: 0; }

.dot-sep {
  width: 3px; height: 3px;
  border-radius: var(--radius-full);
  background: var(--text-disabled);
}

.pane__body {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-8);
  min-height: 0;
}
/* A measure, not the window width — but 860px wasted most of a wide screen.
   Prose sets its own narrower limit further in; scorecards and source lists
   have short lines and benefit from the extra room. */
.pane__body > * { max-width: 1100px; margin-inline: auto; }
.pane__head { padding-inline: var(--space-8); }
.pane__head > * { max-width: none; }
.pane__body--centered {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
}

/* ═══ Composer ═════════════════════════════════════════════════════════ */

.compose { width: 100%; max-width: 660px; }

.compose__title {
  font-size: var(--text-2xl);
  font-weight: 600;
  letter-spacing: -0.022em;
  text-align: center;
  margin-bottom: var(--space-3);
}
.compose__sub {
  font-size: var(--text-md);
  color: var(--text-tertiary);
  text-align: center;
  max-width: 52ch;
  margin: 0 auto var(--space-8);
}

/* The whole block is the control; the textarea inside has no chrome of its
   own, so focus is expressed by the container rather than by two nested
   outlines fighting each other. */
.composer {
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  background: var(--bg-raised);
  transition: border-color var(--duration-base) var(--ease),
              box-shadow var(--duration-base) var(--ease);
}
.composer:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-subtle);
}

.composer__input {
  display: block;
  width: 100%;
  max-height: 40vh;
  padding: var(--space-4) var(--space-4) var(--space-2);
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: var(--text-lg);
  line-height: var(--leading-normal);
  resize: none;
  overflow-y: auto;
}
.composer__input::placeholder { color: var(--text-disabled); }

/* The container already turns blue on :focus-within, and base.css gives every
   focusable element a 2px outline with a 2px offset — so focusing the textarea
   drew a second blue rectangle inside the first, with a gap between them.
   Focus is expressed once, by the container. Keyboard users lose nothing: that
   border is the focus indicator.

   Same reasoning for the chips and send button on the bar below, which sit
   inside the same focused container. */
.composer__input:focus-visible,
.composer__bar .chip-btn:focus-visible,
.composer__bar .chip-select:focus-visible,
.composer__bar .send-btn:focus-visible {
  outline: none;
}
/* Except when the container itself is not the thing being focused — tabbing
   between chips still needs to show which one is active. */
.composer__bar .chip-btn:focus-visible,
.composer__bar .chip-select:focus-visible,
.composer__bar .send-btn:focus-visible {
  box-shadow: 0 0 0 2px var(--accent-ring);
}

.composer__bar {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-2) var(--space-2) var(--space-3);
  flex-wrap: wrap;
}
.composer__spacer { flex: 1; min-width: var(--space-2); }
.composer__count {
  font-size: var(--text-xs);
  color: var(--text-disabled);
}

.chip-btn,
.chip-select {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  height: 28px;
  padding: 0 var(--space-3);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-overlay);
  color: var(--text-tertiary);
  font-size: var(--text-sm);
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease),
              border-color var(--duration-fast) var(--ease),
              color var(--duration-fast) var(--ease);
}
.chip-btn svg { width: 13px; height: 13px; }
.chip-btn:hover,
.chip-select:hover {
  background: var(--bg-hover);
  border-color: var(--border-default);
  color: var(--text-secondary);
}
.chip-btn[data-active="true"] {
  background: var(--accent-subtle);
  border-color: rgba(59, 130, 246, 0.3);
  color: var(--accent);
}

.chip-select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: var(--space-6);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5' stroke='%2371717a' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-2) center;
}
.chip-select option { background: var(--bg-overlay); color: var(--text-primary); }

.send-btn {
  width: 30px; height: 30px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  background: var(--accent);
  color: #fff;
  flex-shrink: 0;
  transition: background var(--duration-fast) var(--ease),
              opacity var(--duration-fast) var(--ease),
              transform var(--duration-fast) var(--ease);
}
.send-btn svg { width: 15px; height: 15px; }
.send-btn:hover:not(:disabled) { background: var(--accent-hover); }
.send-btn:active:not(:disabled) { transform: scale(0.94); }
.send-btn:disabled {
  background: var(--bg-active);
  color: var(--text-disabled);
  cursor: not-allowed;
}

.composer__attachment {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin: 0 var(--space-3) var(--space-3);
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-overlay);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

/* Extraction makes an LLM call and takes several seconds. A static line of
   text is indistinguishable from a hang, so the row shimmers and carries the
   same pulsing dot the run stages use — one vocabulary for "working", not a
   third one invented here. */
.composer__attachment[data-loading="true"] {
  background: linear-gradient(90deg,
    var(--bg-overlay) 25%, var(--bg-hover) 50%, var(--bg-overlay) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite linear;
  color: var(--text-tertiary);
}
.attachment__dot {
  width: 6px; height: 6px;
  border-radius: var(--radius-full);
  background: var(--accent);
  flex-shrink: 0;
  animation: pulse-dot 1.8s var(--ease) infinite;
}
@keyframes shimmer {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}

/* Drag state applies to the whole composer, so a file may be dropped
   anywhere over it rather than onto a small target. */
.composer[data-dragging="true"] {
  border-color: var(--accent);
  background: var(--accent-subtle);
}

/* ── Starters ── */
.starters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: center;
  margin-top: var(--space-5);
}
.starter {
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--text-disabled);
  font-size: var(--text-sm);
  transition: background var(--duration-fast) var(--ease),
              color var(--duration-fast) var(--ease),
              border-color var(--duration-fast) var(--ease);
}
.starter:hover {
  background: var(--bg-raised);
  border-color: var(--border-default);
  color: var(--text-secondary);
}

/* ═══ Stages ═══════════════════════════════════════════════════════════ */

.stages {
  max-width: 620px;
  display: flex;
  flex-direction: column;
}

.stage {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  position: relative;
}
/* A connector line makes the sequence read as one pipeline rather than as
   five unrelated rows. */
.stage:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 28px;
  bottom: -4px;
  width: 1px;
  /* Brighter than border-subtle so the connector does not vanish between two
     now-visible dots, which read as a broken sequence. */
  background: var(--border-strong);
}

.stage__dot {
  width: 11px; height: 11px;
  border-radius: var(--radius-full);
  /* Pending reads as a hollow white ring. The previous #232329 border was
     three shades off the background, so only the active and completed states
     were distinguishable and the pipeline looked two stages long. */
  border: 2px solid var(--text-secondary);
  background: var(--bg-base);
  flex-shrink: 0;
  z-index: 1;
  transition: border-color var(--duration-base) var(--ease),
              background var(--duration-base) var(--ease);
}
.stage[data-state="active"] .stage__dot {
  border-color: var(--accent);
  background: var(--accent);
  animation: pulse-dot 1.8s var(--ease) infinite;
}
.stage[data-state="done"] .stage__dot {
  border-color: var(--success);
  background: var(--success);
}
.stage[data-state="failed"] .stage__dot {
  border-color: var(--danger);
  background: var(--danger);
}

.stage__label {
  flex: 1;
  font-size: var(--text-md);
  color: var(--text-disabled);
}
.stage[data-state="active"] .stage__label { color: var(--text-primary); font-weight: 500; }
.stage[data-state="done"]   .stage__label { color: var(--text-secondary); }
.stage[data-state="failed"] .stage__label { color: var(--danger); }

.stage__meta {
  font-size: var(--text-sm);
  color: var(--text-disabled);
  font-variant-numeric: tabular-nums;
}

/* ═══ Pills ════════════════════════════════════════════════════════════ */

.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 2px var(--space-2);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.pill--running   { background: var(--accent-subtle);  color: var(--accent); }
.pill--completed { background: var(--success-subtle); color: var(--success); }
.pill--failed    { background: var(--danger-subtle);  color: var(--danger); }
.pill--cancelled { background: var(--bg-active);      color: var(--text-tertiary); }
.pill--timeout   { background: var(--warning-subtle); color: var(--warning); }
.pill--unknown   { background: var(--bg-active);      color: var(--text-tertiary); }

/* ═══ Buttons ══════════════════════════════════════════════════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  font-weight: 500;
  white-space: nowrap;
  transition: background var(--duration-fast) var(--ease),
              border-color var(--duration-fast) var(--ease),
              color var(--duration-fast) var(--ease);
}
.btn svg { width: 14px; height: 14px; }
.btn--secondary {
  border: 1px solid var(--border-default);
  background: var(--bg-raised);
  color: var(--text-secondary);
}
.btn--secondary:hover {
  background: var(--bg-hover);
  border-color: var(--border-strong);
  color: var(--text-primary);
}
.btn--danger {
  border: 1px solid rgba(239, 68, 68, 0.25);
  background: var(--danger-subtle);
  color: #f87171;
}
.btn--danger:hover { background: rgba(239, 68, 68, 0.18); }
.btn--primary {
  justify-content: center;
  background: var(--accent);
  color: #fff;
}
.btn--primary:hover:not(:disabled) { background: var(--accent-hover); }
.btn--primary:disabled { opacity: 0.6; cursor: not-allowed; }

/* ═══ Access gate ══════════════════════════════════════════════════════ */

.gate {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 11, 0.72);
  backdrop-filter: blur(4px);
}
.gate__card {
  width: min(380px, calc(100vw - var(--space-8)));
  padding: var(--space-6);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  background: var(--bg-raised);
  box-shadow: var(--shadow-lg);
}
.gate__card form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.gate__title { font-size: var(--text-lg); }
.gate__sub {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: var(--leading-normal);
}
.gate__input {
  padding: var(--space-3);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  background: var(--bg-overlay);
  color: var(--text-primary);
}
.gate__input::placeholder { color: var(--text-disabled); }
.gate__input:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-ring);
}
.gate__error {
  font-size: var(--text-sm);
  color: #f87171;
}
.gate__hint {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  line-height: var(--leading-normal);
  word-break: break-word;
}
.gate__switch {
  align-self: center;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.gate__switch:hover { color: var(--text-primary); }

select.gate__input { cursor: pointer; }

/* ═══ BYOK badge ═══════════════════════════════════════════════════════ */

.byok-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  margin: 0 var(--space-3) var(--space-2);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  background: var(--accent-subtle);
  color: var(--accent);
  font-size: var(--text-xs);
}
.byok-badge #byok-exit {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  flex-shrink: 0;
}
.workbench[data-collapsed="true"] .byok-badge { display: none; }

/* ═══ Toasts ═══════════════════════════════════════════════════════════ */

.toasts {
  position: fixed;
  bottom: var(--space-5);
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  background: var(--bg-overlay);
  box-shadow: var(--shadow-lg);
  font-size: var(--text-base);
  color: var(--text-secondary);
  pointer-events: auto;
  animation: toast-in var(--duration-slow) var(--ease-out);
}
.toast--error   { border-color: rgba(239, 68, 68, 0.35); }
.toast--success { border-color: rgba(34, 197, 94, 0.35); }

@keyframes toast-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

/* ═══ Responsive ═══════════════════════════════════════════════════════
   Below 860px the sidebar overlays instead of taking a column: at that
   width a 248px rail leaves too little for the run itself. */
@media (max-width: 860px) {
  .workbench { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 248px;
    z-index: 60;
    box-shadow: var(--shadow-lg);
    transform: translateX(-100%);
    transition: transform var(--duration-base) var(--ease);
  }
  .workbench[data-sidebar-open="true"] .sidebar { transform: none; }
  .pane__head, .pane__body { padding-left: var(--space-5); padding-right: var(--space-5); }
}
