:root {
  color-scheme: dark;
  --bg: var(--app-bg, #09090b);
  --panel: var(--panel-bg, #101014);
  --panel-2: var(--panel-section, #141418);
  --surface: var(--panel-section, #141418);
  --field: var(--panel-field, #09090b);
  --surface-2: var(--control-hover, #18181b);
  --ink: var(--panel-text, #fafafa);
  --muted: var(--panel-muted, #a1a1aa);
  --line: var(--panel-border, #27272a);
  --soft-line: rgba(161, 161, 170, 0.14);
  --blue: #4ea1ff;
  --green: #23b26d;
  --red: #ef5f5f;
  --amber: #f4b942;
  --purple: #a78bfa;
  --shadow: none;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 1180px;
  height: 100vh;
  overflow: hidden;
  background: var(--bg);
  color: var(--ink);
}

button,
input,
select,
textarea {
  font: inherit;
}

.builder-shell {
  height: 100vh;
  min-height: 0;
  display: grid;
  grid-template-rows: 60px 1fr;
  background: var(--bg);
}

/* builder page follows page-layer rows: page-header / workspace */
.builder-page {
  grid-template-rows: auto minmax(0, 1fr);
}

.brand {
  display: grid;
  gap: 3px;
}

.brand-title {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.brand-title img {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  object-fit: cover;
}

.brand h1,
.panel-title,
.section-title {
  margin: 0;
}

.brand h1 {
  font-size: 17px;
  font-weight: 760;
}

.panel-title {
  color: #f7fafc;
  font-size: 13px;
  font-weight: 760;
}

.section-title {
  color: var(--amber);
  font-size: 11px;
  font-weight: 760;
  text-transform: uppercase;
}

.inline-section-title {
  margin-top: 4px;
}

.subtle {
  color: var(--muted);
  font-size: 12px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.button,
.nav-link,
.segmented button {
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--field);
  color: var(--ink);
  cursor: pointer;
  font-size: 12px;
  font-weight: 760;
}

.button {
  padding: 0 11px;
}

.bt-action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.bt-action-button.compact {
  padding: 0 9px;
}

.bt-action-icon {
  min-width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(244, 185, 66, 0.45);
  border-radius: 5px;
  background: rgba(244, 185, 66, 0.12);
  color: #ffd36f;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
}

.bt-action-button.compact .bt-action-icon {
  min-width: 18px;
  height: 18px;
  font-size: 9px;
}

.button.primary {
  border-color: #b88719;
  background: #f4b942;
  color: #12100a;
}

.button.danger {
  border-color: rgba(239, 95, 95, 0.45);
  color: #ff8a8a;
}

.button:hover,
.nav-link:hover,
.palette button:hover,
.segmented button:hover {
  border-color: var(--control-ring, #3f3f46);
  background: var(--control-hover, #18181b);
}

.palette button:hover {
  border-left-color: var(--palette-accent, var(--control-ring, #3f3f46));
}

.button.primary:hover {
  background: #ffd36f;
}

.button:disabled {
  cursor: default;
  opacity: 0.45;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  text-decoration: none;
}

.segmented {
  display: inline-flex;
}

.segmented button {
  min-width: 78px;
  border-radius: 0;
  border-right: 0;
}

.segmented button:first-child {
  border-radius: 4px 0 0 4px;
}

.segmented button:last-child {
  border-radius: 0 4px 4px 0;
  border-right: 1px solid var(--line);
}

.segmented button.active {
  border-color: #b88719;
  background: rgba(244, 185, 66, 0.15);
  color: #ffd36f;
}

.status {
  min-width: 82px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.status.valid {
  color: #61e59b;
  border-color: rgba(35, 178, 109, 0.36);
  background: rgba(35, 178, 109, 0.08);
}

.status.invalid {
  color: #ff8a8a;
  border-color: rgba(239, 95, 95, 0.36);
  background: rgba(239, 95, 95, 0.08);
}

.builder-workspace {
  position: relative;
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  padding: 12px;
  overflow: hidden;
}

.builder-main-workspace {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(560px, 1fr) 390px;
  gap: 12px;
  padding-left: 76px;
}

.builder-picker-overlay {
  grid-column: 1;
  grid-row: 1;
  align-self: stretch;
  position: relative;
  z-index: 20;
  min-height: 0;
  width: 312px;
  pointer-events: none;
}

.builder-picker-overlay .portfolio-list-overlay {
  height: 100%;
  min-height: 0;
}

.builder-picker-overlay .portfolio-list-panel {
  height: 100%;
}

.builder-picker-overlay .strategy-picker {
  pointer-events: auto;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.32);
  transition:
    width 160ms ease,
    min-width 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.sidebar,
.diagram-panel,
.detail-panel {
  min-height: 0;
  min-width: 0;
  height: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(11, 16, 23, 0.98);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.sidebar,
.detail-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.sidebar {
  grid-template-rows: auto auto minmax(0, 1fr);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 50px;
  padding: 11px 12px;
  border-bottom: 1px solid var(--soft-line);
  background: var(--surface);
}

.panel-actions {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.strategy-list {
  min-height: 0;
  overflow: auto;
  padding: 8px;
}

.strategy-row {
  width: 100%;
  display: grid;
  align-items: center;
  gap: 5px;
  padding: 6px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  text-align: left;
}

.strategy-row:hover {
  border-color: var(--control-ring, #3f3f46);
  background: var(--control-hover, #18181b);
}

.strategy-row.active {
  border-color: rgba(244, 185, 66, 0.72);
  background: rgba(244, 185, 66, 0.1);
  box-shadow: inset 3px 0 0 var(--amber);
}

.strategy-select-button {
  min-width: 0;
  display: grid;
  gap: 5px;
  border: 0;
  padding: 4px;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.strategy-name {
  overflow: hidden;
  font-size: 13px;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.strategy-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
}

.strategy-filter {
  padding: 8px;
  border-bottom: 1px solid var(--soft-line);
  overflow-x: auto;
}

.strategy-filter button {
  min-width: 58px;
}

.badge {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  flex: 0 1 auto;
  max-width: 100%;
  overflow: hidden;
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--field);
  color: #cbd6e2;
  font-size: 10px;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.remark-preview {
  color: #cbd6e2;
}

.valid-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  display: inline-block;
  background: var(--green);
}

.valid-dot.invalid {
  background: var(--red);
}

.diagram-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.diagram-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--soft-line);
  background: var(--surface);
}

.palette {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.diagram-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.palette button {
  height: 30px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--palette-accent, var(--line));
  border-radius: 4px;
  background: var(--field);
  color: var(--ink);
  cursor: pointer;
  font-size: 12px;
  font-weight: 760;
}

/* ── Editor aux: history / undo-redo / duplicate ───────────────── */
.diagram-toolbar-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  min-width: 0;
}

.diagram-edit-group {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding-left: 10px;
  border-left: 1px solid var(--soft-line);
}

.button.icon-button {
  min-width: 32px;
  padding: 0 8px;
  font-size: 14px;
  line-height: 1;
}

.history-menu {
  position: relative;
  display: inline-flex;
}

.history-toggle.is-open {
  border-color: #b88719;
  background: rgba(244, 185, 66, 0.15);
  color: #ffd36f;
}

.history-popover {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 40;
  width: 248px;
  max-height: 320px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface, #16161a);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.42);
}

.history-popover-head {
  padding: 8px 12px;
  border-bottom: 1px solid var(--soft-line);
  color: var(--muted, #9aa0aa);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.02em;
}

.history-list {
  margin: 0;
  padding: 4px;
  list-style: none;
  overflow-y: auto;
}

.history-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 12px;
  color: var(--ink);
}

.history-item:hover,
.history-item:focus-visible {
  background: var(--control-hover, #1d1d22);
  outline: none;
}

.history-item.is-future {
  opacity: 0.5;
}

.history-item.is-current {
  background: rgba(244, 185, 66, 0.14);
  color: #ffd36f;
}

.history-item-index {
  min-width: 20px;
  color: var(--muted, #8b909a);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

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

.history-item-current {
  font-size: 10px;
  font-weight: 760;
  color: #f4b942;
  letter-spacing: 0.04em;
}

.flow-wrap,
.schema-wrap,
.yaml-wrap {
  min-height: 0;
  height: 100%;
}

.flow-wrap {
  position: relative;
  background: #070b11;
}

.react-flow {
  background: #070b11;
}

.react-flow__pane {
  cursor: crosshair;
}

.react-flow__background {
  opacity: 0.72;
}

.react-flow__edge-path {
  stroke: #5f7188;
  stroke-width: 1.7;
}

.react-flow__edge.selected .react-flow__edge-path,
.react-flow__edge.edge-selected .react-flow__edge-path,
.react-flow__edge:hover .react-flow__edge-path {
  stroke: var(--amber);
  stroke-width: 2.4;
}

.react-flow__edge.edge-selected .react-flow__edge-textbg,
.react-flow__edge.selected .react-flow__edge-textbg {
  stroke: rgba(244, 185, 66, 0.78);
}

.react-flow__edge-text {
  fill: #d9e3ef;
  font-size: 11px;
  font-weight: 760;
}

.react-flow__edge-textbg {
  fill: #0b1017;
  stroke: #263448;
  stroke-width: 1px;
}

.react-flow__controls,
.react-flow__minimap {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(9, 13, 19, 0.94);
  box-shadow: var(--shadow);
}

.react-flow__controls-button {
  border-bottom-color: var(--line);
  background: var(--field);
  color: var(--ink);
  fill: var(--ink);
}

.react-flow__controls-button:hover {
  background: #172232;
}

.react-flow__minimap-mask {
  fill: rgba(78, 161, 255, 0.12);
}

.react-flow__minimap-node {
  fill: #334155;
  stroke: #64748b;
}

.react-flow__node-strategyNode {
  background: transparent;
  border: 0;
  padding: 0;
  overflow: visible;
}

.strategy-node {
  width: 218px;
  border: 1px solid var(--node-border);
  border-top: 3px solid var(--node-accent);
  border-radius: 6px;
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--node-fill) 92%, #ffffff 8%),
      var(--node-fill)
    ),
    var(--node-fill);
  color: var(--node-text);
  overflow: visible;
}

.strategy-node--rect {
  border-radius: 4px;
}

.strategy-node--rounded {
  border-radius: 8px;
}

.strategy-node--capsule {
  border-radius: 18px;
}

.strategy-node.is-selected {
  outline: 2px solid rgba(244, 185, 66, 0.42);
  outline-offset: 2px;
}

.node-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px 6px;
}

.node-type-chip,
.node-ordinal {
  color: var(--node-accent);
  font-size: 10px;
  font-weight: 820;
}

.node-type-chip {
  min-width: 38px;
}

.node-ordinal {
  color: color-mix(in srgb, var(--node-text) 58%, transparent);
}

.node-body {
  display: grid;
  gap: 3px;
  padding: 0 10px 8px;
}

.node-id {
  overflow: hidden;
  font-size: 13px;
  font-weight: 820;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.node-caption {
  overflow: hidden;
  color: color-mix(in srgb, var(--node-text) 68%, transparent);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.node-literals {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 3px;
}

.node-literal {
  max-width: 100%;
  overflow: hidden;
  padding: 2px 5px;
  border: 1px solid color-mix(in srgb, var(--node-accent) 42%, transparent);
  border-radius: 4px;
  background: color-mix(in srgb, var(--node-accent) 14%, transparent);
  color: var(--node-text);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 9px;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.node-params {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 3px;
}

.node-param {
  overflow: hidden;
  padding: 1px 5px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.055);
  color: color-mix(in srgb, var(--node-text) 72%, transparent);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 9px;
  white-space: nowrap;
}

.node-ports {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  padding: 8px 10px 10px;
  border-top: 1px solid color-mix(in srgb, var(--node-border) 70%, transparent);
}

.node-port-stack {
  display: grid;
  align-content: start;
  gap: 5px;
}

.node-port {
  position: relative;
  min-width: 0;
  height: 18px;
  display: flex;
  align-items: center;
  color: color-mix(in srgb, var(--node-text) 72%, transparent);
  font-size: 10px;
  line-height: 1;
}

.node-port--input {
  justify-content: flex-start;
  padding-left: 4px;
}

.node-port--output {
  justify-content: flex-end;
  padding-right: 4px;
  text-align: right;
}

.node-port.is-connected {
  color: var(--node-text);
}

.node-port-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.node-port-literal {
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 0.78em;
  font-family: var(--mono-font, ui-monospace, Menlo, monospace);
  background: rgba(255, 200, 90, 0.18);
  color: #f1c878;
  border: 1px solid rgba(241, 200, 120, 0.35);
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.block-description {
  margin: 0 0 10px 0;
  padding: 6px 8px;
  font-size: 0.85em;
  line-height: 1.4;
  color: var(--muted-fg, #aab1ba);
  background: rgba(255, 255, 255, 0.03);
  border-left: 2px solid var(--accent, #4f9ce8);
  border-radius: 2px;
}

.input-field .input-field-label {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.input-type-badge {
  font-size: 0.72em;
  padding: 1px 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted-fg, #889098);
  font-family: var(--mono-font, ui-monospace, Menlo, monospace);
}

.input-mode-select {
  margin-left: auto;
  font-size: 0.78em;
  padding: 1px 4px;
}

.field-hint {
  opacity: 0.55;
  font-style: normal;
  cursor: help;
}

.node-subsection-title {
  color: var(--amber, #f4b942);
  font-size: 11px;
  font-weight: 760;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 6px 0 2px;
}

.node-handle {
  width: 9px;
  height: 9px;
  border: 1px solid #071018;
  background: var(--node-accent);
}

.node-port--input .node-handle {
  left: -15px;
}

.node-port--output .node-handle {
  right: -15px;
}

.node-handle:hover {
  width: 11px;
  height: 11px;
}

.schema-wrap {
  overflow: auto;
  padding: 12px;
}

.schema-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.schema-box {
  min-height: 120px;
  padding: 12px;
  border: 1px solid var(--soft-line);
  border-radius: 4px;
  background: var(--surface);
}

.schema-box pre,
.yaml-editor,
.json-editor {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.5;
}

.schema-box pre {
  overflow: auto;
  margin: 10px 0 0;
  color: #c8d2df;
}

.yaml-wrap {
  display: grid;
  grid-template-rows: 1fr auto;
}

.yaml-editor,
.json-editor {
  width: 100%;
  min-height: 0;
  resize: none;
  border: 0;
  outline: none;
  padding: 14px;
  color: #dbe7f4;
  background: #080d14;
}

.yaml-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--soft-line);
  background: var(--surface);
}

.llm-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.62);
}

.llm-modal {
  width: min(680px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #0b1017;
  box-shadow: 0 22px 64px rgba(0, 0, 0, 0.46);
  overflow: hidden;
}

.llm-modal-head,
.llm-modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  background: var(--surface);
}

.llm-modal-head {
  border-bottom: 1px solid var(--soft-line);
}

.llm-modal-head h2 {
  margin: 0;
  color: #f7fafc;
  font-size: 14px;
  font-weight: 820;
}

.llm-modal-body {
  min-height: 0;
  display: grid;
  gap: 10px;
  padding: 12px;
  overflow: auto;
}

.llm-prompt-input {
  width: 100%;
  min-height: 190px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 4px;
  outline: none;
  padding: 10px;
  background: #080d14;
  color: #dbe7f4;
  line-height: 1.5;
}

.llm-prompt-input:focus {
  border-color: var(--amber);
}

.llm-result {
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid rgba(138, 152, 170, 0.18);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.035);
  color: #dbe7f4;
  font-size: 12px;
}

.llm-result--ask {
  border-color: rgba(244, 185, 66, 0.36);
  background: rgba(244, 185, 66, 0.08);
}

.llm-result--reject {
  border-color: rgba(239, 95, 95, 0.36);
  background: rgba(239, 95, 95, 0.08);
}

.llm-result ul {
  margin: 0;
  padding-left: 18px;
}

.llm-modal-actions {
  justify-content: flex-end;
  border-top: 1px solid var(--soft-line);
}

/* Backtest console (docs/run_browsing_ux.md §B) — the right panel's run
   surface, above the Inspector. Reuses the collapse-section frame. */
.bt-console {
  border: 1px solid rgba(78, 161, 255, 0.28);
  border-radius: 6px;
  background: rgba(78, 161, 255, 0.05);
}

.bt-console > .collapse-trigger {
  padding: 8px 10px;
}

.bt-console-body {
  display: grid;
  gap: 8px;
  padding: 0 10px 10px;
}

.bt-console-field {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.bt-console-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.bt-console-summary {
  color: var(--muted);
  font-size: 11px;
}

.bt-console-send {
  width: 100%;
}

.bt-console-error {
  font-size: 11px;
}

/* The submission receipt: what was created, what it cost, where to watch it.
   Deliberately three lines and no table (docs/run_activity_ux.md §A). */
.bt-console-receipt {
  display: grid;
  gap: 3px;
  border-top: 1px solid var(--soft-line);
  padding-top: 6px;
  font-size: 11px;
}

.bt-console-watch {
  color: var(--blue, #4ea1ff);
  font-weight: 700;
  text-decoration: none;
}

.bt-console-watch:hover {
  text-decoration: underline;
}

.detail-scroll {
  min-height: 0;
  overflow: auto;
  padding: 12px;
}

.detail-cascade {
  display: grid;
  align-content: start;
  gap: 10px;
}

.cascade-section {
  border-bottom-color: var(--soft-line);
  background: transparent;
}

.cascade-section .collapse-body {
  gap: 10px;
}

.field-grid {
  display: grid;
  gap: 10px;
}

.edge-inspector {
  display: grid;
  gap: 7px;
}

.edge-inspector div {
  min-width: 0;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border: 1px solid rgba(138, 152, 170, 0.12);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.025);
}

.edge-inspector span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.edge-inspector strong {
  overflow: hidden;
  color: #f7fafc;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.audit-box,
.version-row {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 8px;
  border: 1px solid rgba(138, 152, 170, 0.14);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  font-size: 11px;
}

.provenance-box {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 10px;
}

.provenance-label {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.provenance-source {
  color: #f7fafc;
  font-size: 12px;
}

.provenance-date {
  margin-left: auto;
  color: var(--muted);
  font-size: 11px;
}

.audit-box strong,
.version-row strong {
  overflow: hidden;
  color: #f7fafc;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.param-list,
.version-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.version-list {
  display: grid;
}

.version-actions {
  display: flex;
  gap: 6px;
}

.version-actions .button {
  height: 26px;
  padding: 0 8px;
}

.style-grid {
  display: grid;
  gap: 10px;
}

.field {
  display: grid;
  gap: 5px;
}

.field label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
  text-transform: uppercase;
}

.detail-panel .field label,
.detail-panel .node-subsection-title {
  letter-spacing: 0;
  text-transform: none;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 7px 9px;
  outline: none;
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--amber);
}

.field textarea {
  min-height: 92px;
  resize: vertical;
}

.color-control {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 6px;
}

.color-control input[type="color"] {
  min-height: 34px;
  padding: 2px;
}

.divider {
  margin: 14px 0;
  border: 0;
  border-top: 1px solid var(--soft-line);
}

.error-list {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.error-item {
  padding: 8px;
  border: 1px solid rgba(239, 95, 95, 0.24);
  border-radius: 4px;
  background: rgba(239, 95, 95, 0.08);
  color: #ff8a8a;
  font-size: 12px;
}

/* A compiler warning does not block a run, so it must not read as an error. */
.error-item.severity-warning {
  border-color: rgba(244, 185, 66, 0.3);
  background: rgba(244, 185, 66, 0.08);
  color: #f4c76a;
}

/* The diagnostic's static per-code advice, under its message. */
.error-hint {
  margin-top: 4px;
  opacity: 0.75;
  font-size: 11px;
  line-height: 1.45;
}

/* Field-level caution (e.g. intents left in the other mode's vocabulary). */
.field-warning {
  display: block;
  margin-top: 3px;
  color: #f4c76a;
  font-size: 11px;
  line-height: 1.4;
}

.empty-state {
  padding: 18px;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 1220px) {
  body {
    min-width: 0;
  }

  .builder-main-workspace {
    grid-template-columns: minmax(0, 1fr);
  }

  .detail-panel {
    grid-column: 1 / -1;
    min-height: 0;
  }
}

@media (max-width: 760px) {
  body {
    height: auto;
    overflow: auto;
  }

  .builder-shell {
    height: auto;
    min-height: 100vh;
    grid-template-rows: auto 1fr;
  }

  .brand h1 {
    font-size: 16px;
  }

  .top-actions {
    width: 100%;
    flex-wrap: wrap;
    overflow-x: visible;
    padding-bottom: 2px;
  }

  .top-actions > * {
    flex: 0 0 auto;
  }

  .builder-workspace {
    grid-template-columns: 1fr;
    height: auto;
    padding: 10px;
  }

  .builder-picker-overlay {
    grid-column: 1;
    grid-row: auto;
    width: auto;
    pointer-events: auto;
  }

  .builder-main-workspace {
    grid-column: 1;
    grid-row: auto;
    grid-template-columns: 1fr;
    padding-left: 0;
  }

  .builder-picker-overlay .strategy-picker,
  .builder-picker-overlay .strategy-picker.is-collapsed {
    width: auto;
    min-width: 0;
    height: auto;
  }

  .sidebar,
  .diagram-panel,
  .detail-panel {
    height: auto;
    min-height: auto;
  }

  .diagram-panel {
    min-height: 620px;
  }

  .diagram-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .flow-wrap {
    min-height: 560px;
  }

  .detail-panel {
    grid-column: auto;
  }

  .strategy-node {
    width: 200px;
  }
}

/* ── Read-only banner ──────────────────────────────────────────── */
.readonly-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  border: 1px solid rgba(247, 163, 50, 0.28);
  border-radius: 6px;
  background: rgba(247, 163, 50, 0.08);
  color: rgba(247, 220, 140, 0.9);
  font-size: 12px;
  flex-shrink: 0;
}

.readonly-banner-icon {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 7px;
  border: 1px solid rgba(247, 163, 50, 0.34);
  border-radius: 5px;
  background: rgba(247, 163, 50, 0.1);
  color: #ffe08a;
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0;
  flex-shrink: 0;
}

.readonly-banner-text {
  flex: 1;
  min-width: 0;
}

.button--accent {
  border-color: rgba(247, 163, 50, 0.55);
  background: rgba(247, 163, 50, 0.12);
  color: #f7dc8c;
  margin-left: auto;
  flex-shrink: 0;
}

.button--accent:hover {
  background: rgba(247, 163, 50, 0.22);
}

/* ── Local draft restore banner ────────────────────────────────── */
.draft-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border: 1px solid rgba(96, 165, 250, 0.32);
  border-radius: 6px;
  background: rgba(96, 165, 250, 0.1);
  color: rgba(191, 219, 254, 0.92);
  font-size: 12px;
  flex-shrink: 0;
}

.draft-banner-icon {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 7px;
  border: 1px solid rgba(96, 165, 250, 0.4);
  border-radius: 5px;
  background: rgba(96, 165, 250, 0.14);
  color: #bfdbfe;
  font-size: 10px;
  font-weight: 760;
  flex-shrink: 0;
}

.draft-banner-text {
  flex: 1;
  min-width: 0;
}

.draft-banner-actions {
  display: inline-flex;
  gap: 6px;
  flex-shrink: 0;
}

/* ── Strategy picker ownership badges ─────────────────────────── */
.badge--mine {
  background: rgba(100, 220, 130, 0.12);
  border: 1px solid rgba(100, 220, 130, 0.3);
  color: #7de8a0;
}

.badge--readonly {
  background: rgba(255, 200, 80, 0.08);
  border: 1px solid rgba(255, 200, 80, 0.22);
  color: rgba(255, 200, 80, 0.75);
}

/* ── Add Block button (replaces old palette strip) ─────────────── */
.add-block-btn {
  height: 30px;
  padding: 0 14px;
  border: 1px solid rgba(109, 195, 255, 0.35);
  border-radius: 6px;
  background: rgba(109, 195, 255, 0.07);
  color: #8dc3ff;
  font-size: 12px;
  font-weight: 760;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background 0.12s,
    border-color 0.12s;
}

.add-block-btn:hover {
  background: rgba(109, 195, 255, 0.14);
  border-color: rgba(109, 195, 255, 0.55);
}

/* ── Block Picker Modal ─────────────────────────────────────────── */
.block-picker-wrap {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 72px;
  background: rgba(0, 0, 0, 0.52);
}

.block-picker {
  width: 420px;
  max-height: 72vh;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 10px;
  background: var(--surface);
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

/* Search row */
.bp-search-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: #0f1924;
}

.bp-search-icon {
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.3);
  font-size: 15px;
}

.bp-search {
  flex: 1;
  padding: 13px 0;
  background: none;
  border: none;
  color: #f7fafc;
  font-size: 13.5px;
  outline: none;
}

.bp-search::placeholder {
  color: rgba(248, 250, 252, 0.28);
}

.bp-match-count {
  flex-shrink: 0;
  padding: 2px 7px;
  border-radius: 10px;
  background: rgba(109, 195, 255, 0.12);
  color: #8dc3ff;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.bp-close {
  flex-shrink: 0;
  padding: 4px 6px;
  background: none;
  border: none;
  color: rgba(248, 250, 252, 0.35);
  font-size: 14px;
  cursor: pointer;
  border-radius: 4px;
}

.bp-close:hover {
  color: rgba(248, 250, 252, 0.7);
  background: rgba(255, 255, 255, 0.07);
}

/* Scrollable body */
.bp-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 4px 0 8px;
}

.bp-body::-webkit-scrollbar {
  width: 4px;
}

.bp-body::-webkit-scrollbar-track {
  background: transparent;
}

.bp-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}

/* Groups */
.bp-group {
}

.bp-group-head {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.bp-group-head:hover {
  background: rgba(255, 255, 255, 0.035);
}

.bp-group-arrow {
  color: rgba(255, 255, 255, 0.25);
  font-size: 9px;
  transition: transform 0.12s;
  flex-shrink: 0;
}

.bp-group--open .bp-group-arrow {
  transform: rotate(90deg);
}

.bp-group-label {
  flex: 1;
  color: rgba(255, 255, 255, 0.38);
  font-size: 10px;
  font-weight: 820;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.bp-group-count {
  color: rgba(255, 255, 255, 0.22);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.bp-group-list {
  /* list wrapper inside group */
}

/* Items */
.bp-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px 6px 26px;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  color: inherit;
}

.bp-item:hover,
.bp-item.is-focused {
  background: rgba(255, 255, 255, 0.07);
}

.bp-item-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  opacity: 0.85;
}

.bp-item-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.bp-item-name {
  color: rgba(240, 244, 248, 0.92);
  font-size: 12.5px;
  font-weight: 520;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bp-item-ref {
  color: rgba(255, 255, 255, 0.3);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bp-item-desc {
  color: rgba(255, 255, 255, 0.38);
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Port count badges */
.bp-item-ports {
  flex-shrink: 0;
  display: flex;
  gap: 4px;
  align-items: center;
}

.bp-port-badge {
  padding: 1px 5px;
  border-radius: 4px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 9px;
  white-space: nowrap;
}

.bp-port-in {
  background: rgba(109, 195, 255, 0.1);
  color: rgba(109, 195, 255, 0.7);
}

.bp-port-out {
  background: rgba(89, 209, 140, 0.1);
  color: rgba(89, 209, 140, 0.7);
}

/* Empty state */
.bp-empty {
  padding: 28px 14px;
  color: rgba(255, 255, 255, 0.3);
  font-size: 13px;
  text-align: center;
}

/* Footer hint */
.bp-footer {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.25);
  font-size: 10px;
}

/* ── Read-only field states ────────────────────────────────────── */
.field input[readonly],
.field input:disabled,
.field select:disabled {
  opacity: 0.55;
  cursor: default;
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}

/* ── Send to backtest: a shortcut, not a console ────────────────────────── */

.bt-handoff {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 8px 12px;
}

.bt-handoff-button {
  font-size: 12px;
  padding: 3px 10px;
}

.bt-handoff-error {
  color: var(--bad, #ef4444);
  font-size: 12px;
}

/* Compact Strategy editor; legacy typed controls above remain shared by v1/v2. */
body:has(.st-shell) {
  min-width: 0;
  height: 100dvh;
  overflow: hidden;
}
body.has-app-rail .st-shell.page-shell {
  height: 100dvh;
  min-height: 0;
  grid-template-rows: 50px minmax(0, 1fr);
  padding: 0;
}
body.has-app-rail .st-shell.embedded-page-shell {
  grid-template-rows: minmax(0, 1fr);
}
body.has-app-rail .st-shell .st-page.page-layer {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  padding: 0;
  gap: 0;
  height: auto;
  overflow: hidden;
}
.st-editor-bar {
  position: relative;
  flex: 0 0 auto;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 10px;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  background: #0c0c0f;
}
.st-editor-identity,
.st-editor-controls,
.st-editor-status,
.st-editor-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.st-editor-identity {
  flex: 1;
}
.st-editor-actions,
.st-editor-controls,
.st-editor-status {
  flex-shrink: 0;
  gap: 2px;
}
.st-editor-controls { gap: 4px; }
.st-editor-status { border-left: 1px solid #303036; padding-left: 4px; }
.st-editor-title {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}
.st-editor-title strong {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.st-editor-title > span {
  color: #71717a;
  font:
    10px/1.5 ui-monospace,
    SFMono-Regular,
    monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.st-strategy-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  padding: 0;
  border: 0;
  border-radius: 4px;
  color: #e4e4e7;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.st-strategy-trigger > svg { flex-shrink: 0; color: #858591; }
.st-strategy-trigger:hover strong { color: #f5c769; }
.st-strategy-trigger:focus-visible,
.st-save-status:focus-visible,
.st-readonly-status:focus-visible {
  outline: 2px solid #f4b942;
  outline-offset: 2px;
}
.st-save-status,
.st-readonly-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  color: #858591;
}
.st-save-status[data-state="unsaved"] { color: #f4b942; }
.st-save-status[data-state="saved"] { color: #70c6a2; }
.st-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.st-editor-actions .bt-handoff {
  padding: 0;
  flex-wrap: nowrap;
  position: static;
}
.st-editor-actions .bt-handoff-error {
  position: absolute;
  top: 100%;
  left: 8px;
  right: 8px;
  padding: 8px;
  background: #272024;
  z-index: 20;
  border: 1px solid #753039;
  border-radius: 6px;
}
.st-editor-status .st-validation {
  color: #f59e0b;
}
.st-editor-status .st-validation.is-valid {
  color: #70c6a2;
}
.st-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  min-height: 0;
  min-width: 0;
  flex: 1;
  overflow: hidden;
}
.st-workspace.is-inspector-collapsed { grid-template-columns: minmax(0, 1fr); }
.st-inspector-slot {
  border-left: 1px solid var(--line);
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}
.st-inspector.detail-panel {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 0;
  min-width: 0;
  border: 0;
  border-radius: 0;
  background: #101013;
  box-shadow: none;
}
.st-inspector-tabs {
  display: flex;
  flex: 0 0 34px;
  align-items: stretch;
  border-bottom: 1px solid var(--line);
  gap: 0;
  padding: 0 8px;
}
.st-inspector-tabs button {
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  color: #71717a;
  padding: 0 10px;
  flex: 1;
  cursor: pointer;
  font-size: 11px;
}
.st-inspector-tabs button[aria-selected="true"] {
  color: #fbbf24;
  border-bottom-color: #f59e0b;
}
.st-inspector-tabs button:focus-visible {
  outline: 2px solid #f59e0b;
  outline-offset: -4px;
}
.st-inspector .detail-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 10px;
  display: block;
  scrollbar-width: thin;
  scrollbar-color: #3f3f46 transparent;
}
.st-inspector .detail-scroll > * + * {
  margin-top: 8px;
}
.st-inspector .field-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}
.st-inspector .field label {
  color: #a1a1aa;
  text-transform: none;
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 0;
}
.st-inspector .field input,
.st-inspector .field select,
.st-inspector .field textarea {
  min-width: 0;
  width: 100%;
  min-height: 30px;
  padding: 6px 8px;
  font-size: 11px;
  border: 1px solid #29292e;
  border-radius: 5px;
  color: #e4e4e7;
  background: #0b0b0e;
}
.st-inspector .field textarea {
  min-height: 64px;
  resize: vertical;
}
.st-inspector .section-toggle,
.st-inspector .section-header {
  font-size: 11px;
}
.st-inspector .cascade-section {
  margin-bottom: 12px;
  border: 1px solid #25252a;
  border-radius: 6px;
  background: none;
}
.st-inspector .node-subsection-title {
  color: #d4d4d8;
  font-size: 11px;
}
.st-node-fields {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.st-node-fields:disabled {
  opacity: 0.7;
}
.st-selection-heading {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-bottom: 8px;
  border-bottom: 1px solid #27272a;
  margin-bottom: 10px;
}
.st-selection-heading strong {
  font:
    600 13px ui-monospace,
    SFMono-Regular,
    monospace;
  overflow-wrap: anywhere;
}
.st-selection-heading span {
  color: #71717a;
  font:
    10px ui-monospace,
    SFMono-Regular,
    monospace;
  overflow-wrap: anywhere;
}
.st-selection-empty {
  text-align: center;
  padding: 40px 12px;
  color: #71717a;
  font-size: 12px;
  line-height: 1.8;
}
.st-note {
  color: #71717a;
  font-size: 11px;
  line-height: 1.6;
}
.st-validation-summary {
  color: #d4d4d8;
  font-size: 12px;
}
.st-inspector .error-item {
  display: block;
  width: 100%;
  border: 1px solid #593131;
  border-radius: 5px;
  background: #26191d;
  color: #f1a4a4;
  text-align: left;
  padding: 9px;
  font-size: 11px;
  cursor: pointer;
  overflow-wrap: anywhere;
}
.st-history-heading {
  color: #a1a1aa;
  font-size: 11px;
  padding-top: 8px;
}
.st-history-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.st-history-list button {
  background: #151518;
  color: #a1a1aa;
  border: 1px solid #27272a;
  border-radius: 4px;
  text-align: left;
  padding: 8px;
  font-size: 11px;
  cursor: pointer;
}
.st-history-list button span {
  color: #71717a;
  margin-right: 10px;
}
.st-history-list button[aria-current] {
  border-color: #795923;
  color: #fbbf24;
}
.st-notice {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  font-size: 11px;
  color: #e5ba6c;
  background: #211b12;
  border-bottom: 1px solid #49351b;
  overflow-wrap: anywhere;
}
.st-draft > span {
  margin-right: auto;
}
.st-spin,
.st-validating svg {
  animation: st-spin 1s linear infinite;
}
@keyframes st-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (max-width: 1099px) {
  .st-workspace { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
  .st-editor-bar { flex-wrap: wrap; gap: 2px; padding: 4px 8px; }
  .st-editor-identity { flex-basis: 100%; min-height: 34px; }
  .st-editor-controls { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .st-spin,
  .st-validating svg {
    animation: none;
  }
}
body:has(.st-shell) #root {
  height: calc(100dvh - var(--status-footer-height, 0px));
  overflow: hidden;
}
body:has(.st-shell),
html:has(.st-shell) {
  overflow: hidden;
}
.st-workspace > .st-stage {
  border: 0;
  border-radius: 0;
}

body.has-app-rail .st-shell.page-shell {
  grid-template-columns: minmax(0, 1fr);
}
.st-shell .st-page,
.st-editor-bar {
  min-width: 0;
  max-width: 100%;
}
