/* The original workbench keeps its layout and behavior; these scoped rules
   share the introduction's typography, colors, and two-level navigation. */
body.workbench-page {
  --canvas: #fff;
  --surface: #fff;
  --surface-raised: #f5f9f9;
  --surface-hover: #eef5f5;
  --input-surface: #fff;
  --stroke: #d7e4e6;
  --stroke-strong: #a6bfc5;
  --text: #15333a;
  --text-muted: #607d85;
  --text-soft: #78959d;
  --brand: #25828b;
  --brand-hover: #1b6a74;
  --accent-soft: #edf6f6;
  --on-brand: #fff;
  --mint: #25828b;
  --blue: #537fba;
  --amber: #a9884d;
  --success: #2b7375;
  --success-soft: #eef7f6;
  --success-stroke: #aecfcd;
  --scroll-thumb: #b2c8cd;
  --shadow-color: #1c616708;
  padding-top: var(--site-header-height, 104px);
  color: var(--text);
  background: #fff;
  font-family: "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}
body.workbench-page .app { display: block; min-height: calc(100svh - var(--site-header-height)); }
body.workbench-page .sidebar {
  position: sticky;
  top: var(--site-header-height, 104px);
  inset-inline: auto;
  z-index: 65;
  width: 100%;
  height: 56px;
  min-height: 56px;
  padding: 0 5vw;
  background: #ffffffef;
  border: 0;
  border-block: 1px solid var(--stroke);
  display: flex;
  flex-direction: row;
  gap: 0;
  align-items: center;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
body.workbench-page .sidebar .brand,
body.workbench-page .sidebar .nav-label,
body.workbench-page .sidebar-divider,
body.workbench-page .sidebar-bottom,
body.workbench-page .sidebar-footer { display: none; }
body.workbench-page .sidebar nav {
  display: flex;
  flex-direction: row;
  width: 100%;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0;
}
body.workbench-page .sidebar .nav-item {
  width: auto;
  height: 55px;
  min-height: 55px;
  padding: 0 8px;
  margin: 0;
  border: 0;
  border-radius: 0;
  gap: 10px;
  font-size: 12px;
  font-weight: 400;
  background: transparent;
  color: var(--text-muted);
}
body.workbench-page .sidebar .nav-item.active { color: var(--brand); box-shadow: inset 0 -2px var(--brand); }
body.workbench-page .sidebar .nav-item:hover { color: var(--brand); background: #f8fbfb; }
body.workbench-page .sidebar .nav-item svg { width: 15px; height: 15px; }
body.workbench-page .sidebar .nav-dot { display: none; }
body.workbench-page .main-shell { width: 100%; margin-left: 0; }
body.workbench-page main#workspace { padding: 42px 5vw 0; max-width: 1800px; }
body.workbench-page #workspace,
body.workbench-page #results,
body.workbench-page #prior-knowledge { scroll-margin-top: calc(var(--site-header-height) + 72px); }
body.workbench-page .context-entrance {
  min-height: calc(100svh - var(--site-header-height) - 160px);
  align-content: start;
  padding: 20px 0 44px;
}
body.workbench-page .context-entrance > header { max-width: 780px; margin-bottom: 40px; }
body.workbench-page .context-entrance h1 {
  color: var(--text);
  font-family: inherit;
  font-size: clamp(36px, 4.1vw, 65px);
  font-weight: 450;
  letter-spacing: -.055em;
  line-height: 1.15;
  margin-bottom: 22px;
}
body.workbench-page .context-entrance h1 strong { font-weight: 600; }
body.workbench-page .context-entrance > header > span { font-family: inherit; color: var(--text-soft); font-size: 10px; letter-spacing: 2.5px; margin-bottom: 20px; }
body.workbench-page .context-entrance > header p { font-size: 14px; line-height: 1.9; }
body.workbench-page .context-entrance-grid { gap: 18px; }
body.workbench-page .context-entrance-grid button { min-height: 250px; padding: 25px; border-radius: 4px; background: linear-gradient(145deg, #f8fbfb, #fff); }
body.workbench-page .context-entrance-grid button:hover { background: #f4f9f9; border-color: #82b1b6; box-shadow: 0 15px 30px #255b6509; }
body.workbench-page .context-entrance aside { background: transparent; border-color: var(--stroke); }
body.workbench-page .archive-contexts button { background: #fff; border-radius: 4px; }
body.workbench-page .archive-contexts button[aria-pressed=true] { background: var(--accent-soft); border-color: #8fbcc1; }
body.workbench-page .archive-contexts strong { font-family: inherit; font-weight: 500; }
body.workbench-page .generation-panel,
body.workbench-page .archive-generation-rail { background: #fbfdfd; border-color: var(--stroke); }
body.workbench-page .generation-heading h2 { font-size: 21px; font-weight: 500; letter-spacing: -.035em; }
body.workbench-page .generation-form label,
body.workbench-page .generation-form input,
body.workbench-page .generation-form select { font-size: 14px; }
body.workbench-page .generation-submit { background: var(--brand); color: #fff; border-color: var(--brand); }
body.workbench-page .generation-submit:hover:not(:disabled) { background: var(--brand-hover); }
body.workbench-page .page-footer { margin-top: 55px; border-top: 1px solid var(--stroke); padding: 28px 0; color: var(--text-soft); font-size: 11px; }
body.workbench-page .archive-guide { color: var(--text); background: var(--surface); border-color: var(--stroke); }
@media (max-width:900px) {
  body.workbench-page .sidebar { padding-inline: 5vw; }
  body.workbench-page .sidebar nav { gap: 10px; }
  body.workbench-page .sidebar .nav-item { font-size: 11px; gap: 7px; padding-inline: 4px; }
  body.workbench-page main#workspace { padding-top: 30px; }
  body.workbench-page .context-entrance { padding-top: 12px; }
  body.workbench-page .context-entrance-grid button { min-height: 225px; padding: 22px; }
}
@media (max-width:600px) {
  body.workbench-page .sidebar { padding-inline: 4vw; }
  body.workbench-page .sidebar nav { gap: 5px; }
  body.workbench-page .sidebar .nav-item { font-size: 9px; gap: 4px; }
  body.workbench-page .sidebar .nav-item svg { display: none; }
  body.workbench-page .context-entrance-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion:reduce) {
  body.workbench-page .context-entrance-grid button { transition: none; }
  body.workbench-page .context-entrance-grid button:hover { transform: none; }
}

/* Cell Studio renderer, integrated with native expression and generation views. */
body.workbench-page .cell-atlas .atlas-panes { position: relative; }
body.workbench-page .cell-atlas .atlas-stage {
  background: radial-gradient(ellipse at 28% 18%, #234a53 0%, transparent 48%),
    radial-gradient(ellipse at 85% 85%, #183c49 0%, transparent 58%), #0b202c;
}
body.workbench-page .cell-atlas .atlas-stage-caption {
  max-width: calc(100% - 32px);
  padding: 12px 15px;
  border: 1px solid #9ed0d522;
  border-radius: 8px;
  background: #102a35bf;
  backdrop-filter: blur(12px);
  box-shadow: 0 6px 22px #04121c18;
  color: #c6dde1;
}
body.workbench-page .cell-atlas .atlas-stage-caption strong { color: #91d7c9; }
body.workbench-page .cell-atlas .atlas-prediction .atlas-stage-caption strong { color: #e1c18c; }
body.workbench-page .cell-atlas .atlas-panes.is-paired {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: #95bdc330;
}
body.workbench-page .cell-atlas .atlas-panes.is-paired .atlas-stage {
  height: clamp(390px, 52vh, 620px);
  border: 0;
}
body.workbench-page .cell-atlas .cell-transfer-status {
  position: absolute;
  left: 50%; bottom: 16px;
  z-index: 9;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  max-width: calc(100% - 32px);
  padding: 10px 14px;
  border: 1px solid #b7ddda28;
  border-radius: 8px;
  background: #0d2733e0;
  color: #b8d3d9;
  box-shadow: 0 8px 30px #04141b25;
  backdrop-filter: blur(14px);
  font: 11px/1.6 "Helvetica Neue", "PingFang SC", sans-serif;
  white-space: nowrap;
}
body.workbench-page .cell-atlas .cell-transfer-status.is-transferring { color: #ebce9e; border-color: #d8b67b40; }
body.workbench-page .cell-atlas .cell-transfer-status[hidden] { display: none; }
body.workbench-page .cell-atlas .atlas-panes { scroll-margin-top: calc(var(--site-header-height, 104px) + 76px); }
body.workbench-page .cell-atlas .atlas-return-population {
  position: absolute;
  top: 16px; right: 16px;
  z-index: 5;
  padding: 10px 15px;
  border: 1px solid #b7ddda45;
  border-radius: 7px;
  background: #102a35e6;
  color: #d4eeeb;
  font-family: inherit;
  font-size: 12px;
  line-height: 1.5;
  cursor: pointer;
  backdrop-filter: blur(12px);
}
body.workbench-page .cell-atlas .atlas-return-population:hover { background: #214451; border-color: #b7ddda88; }
body.workbench-page .cell-atlas .atlas-return-population:focus-visible { outline: 2px solid #d9bb80; outline-offset: 3px; }
