:root {
  --bg: #111;
  --panel: #171717;
  --raised: #1d1d1d;
  --line: #3a3a3a;
  --line-soft: #292929;
  --text: #f1f1f1;
  --muted: #aaa;
  --dim: #737373;
  --accent: #f1f1f1;
  --good: #9bc8aa;
  --warn: #d5b17b;
  --danger: #d98f96;
  --sidebar-width: 260px;
  --inspector-width: 290px;
}

* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; color: var(--text); background: var(--bg); font: 13px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input, textarea { color: inherit; font: inherit; }
button { border: 0; }
[hidden] { display: none !important; }

/* Composition: persistent application regions */
.workbench { width: 100vw; height: 100vh; display: grid; grid-template-columns: 48px var(--sidebar-width) minmax(480px, 1fr) var(--inspector-width); grid-template-rows: 44px minmax(320px, 1fr) 150px 24px; grid-template-areas: "title title title title" "activity sidebar editor inspector" "activity sidebar bottom inspector" "status status status status"; }
.workbench.frame-canvas-mode { grid-template-rows: 44px minmax(480px, 1fr) 32px 24px; }
.workbench.frame-canvas-mode .bottom-content { display: none; }
.workbench.frame-canvas-mode.runtime-log-open { grid-template-rows: 44px minmax(360px, 1fr) 220px 24px; }
.workbench.frame-canvas-mode.runtime-log-open .bottom-content { display: block; }
.workbench.frame-canvas-mode:not(.frame-inspector-open) { grid-template-columns: 48px var(--sidebar-width) minmax(480px, 1fr) 0; }
.workbench.frame-canvas-mode:not(.frame-inspector-open) .inspector { display: none; }
.titlebar { grid-area: title; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 12px; border-bottom: 1px solid var(--line); background: var(--panel); }
.brand, .title-actions, .project-switcher, .connection { display: flex; align-items: center; gap: 9px; }
.brand-mark, .gateway-logo { width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid var(--line); font: 700 9px ui-monospace, monospace; }
.brand-separator { color: var(--dim); }
.projects-home-link, .project-switcher, .auth-button, .gateway-close, .icon-button { background: transparent; cursor: pointer; }
.projects-home-link { padding: 5px; font-weight: 650; }
.project-switcher { justify-self: center; min-width: 250px; height: 30px; justify-content: center; border: 1px solid var(--line); }
.project-switcher kbd { margin-left: auto; color: var(--dim); }
.title-actions { justify-self: end; color: var(--muted); }
.auth-button, .gateway-close { min-height: 30px; padding: 0 11px; border: 1px solid var(--line); }
.auth-button.compact { min-height: 26px; }
.icon-button { width: 30px; height: 30px; color: var(--muted); }
.status-dot, .connection-state { width: 7px; height: 7px; display: inline-block; border-radius: 50%; background: var(--dim); }
.status-dot.safe, .connection-state.good { background: var(--good); }
.connection-state.warn { background: var(--warn); }

.activitybar { grid-area: activity; display: flex; flex-direction: column; border-right: 1px solid var(--line); background: var(--panel); }
.activity { position: relative; width: 48px; height: 48px; background: transparent; color: var(--muted); cursor: pointer; font-size: 18px; }
.activity.active { color: var(--text); border-left: 3px solid var(--text); }
.activity-spacer { flex: 1; }
.badge { position: absolute; top: 5px; right: 4px; min-width: 16px; height: 16px; border: 1px solid var(--line); border-radius: 9px; background: var(--raised); font: 9px/14px ui-monospace, monospace; }

.sidebar, .inspector { min-width: 0; overflow: hidden; background: var(--panel); }
.sidebar { grid-area: sidebar; position: relative; border-right: 1px solid var(--line); }
.inspector { grid-area: inspector; border-left: 1px solid var(--line); }
.panel-title { height: 38px; display: flex; align-items: center; justify-content: space-between; padding: 0 11px; border-bottom: 1px solid var(--line); font-size: 11px; font-weight: 700; }
.panel-title button { background: transparent; color: var(--muted); cursor: pointer; }
.sidebar-toolbar { padding: 9px; border-bottom: 1px solid var(--line); }
.sidebar-toolbar input { width: 100%; height: 32px; padding: 0 9px; border: 1px solid var(--line); background: var(--bg); outline: none; }
.project-explorer-root { width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 7px 8px; border: 1px solid var(--line); background: var(--bg); color: var(--text); text-align: left; cursor: pointer; }
.project-explorer-root:hover { background: var(--raised); }
.project-explorer-root span { font-weight: 700; }
.project-explorer-root small { color: var(--muted); }
.scope-tabs { display: flex; margin-top: 8px; }
.scope-tab { flex: 1; min-width: 0; height: 28px; border: 1px solid var(--line); border-right: 0; color: var(--muted); background: transparent; cursor: pointer; font-size: 10px; }
.scope-tab:last-child { border-right: 1px solid var(--line); }
.scope-tab.active { color: var(--text); background: var(--raised); }
.tree { height: calc(100% - 108px); overflow: auto; padding: 8px 0; }
.tree-heading, .tree-item { width: 100%; min-height: 30px; display: flex; align-items: center; gap: 8px; padding: 0 10px; background: transparent; text-align: left; cursor: pointer; }
.tree-heading { color: var(--muted); font-size: 11px; font-weight: 700; }
.tree-heading.static { cursor: default; }
.tree-heading .count, .repo-meta { margin-left: auto; }
.tree-item { padding-left: 24px; color: var(--muted); }
.tree-item.active, .tree-item:hover { color: var(--text); background: var(--raised); }
.tree-item.document-item.active { border-left: 2px solid var(--text); padding-left: 22px; }
.tree-item.selected-context:not(.active) { color: var(--text); }
.canvas-file-icon { color: var(--accent); }
.document-contents { margin: 2px 0 8px 23px; border-left: 1px solid var(--line); }
.tree-item.canvas-node-item { min-height: 28px; padding-left: 14px; font-size: 11px; }
.tree-item.canvas-node-item > span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tree-item.canvas-node-item.active { border-left: 2px solid var(--accent); padding-left: 12px; }
.system-tree-container { border-bottom: 1px solid var(--line-soft); }
.tree-item.canvas-container-item { min-height: 30px; padding-left: 12px; color: var(--text); font-size: 11px; font-weight: 650; }
.tree-item.canvas-container-item.active { background: var(--raised); }
.tree-item.canvas-node-item.nested { padding-left: 29px; }
.tree-item.canvas-node-item.nested.active { padding-left: 27px; }
.tree-item.static { cursor: default; }
.test-tree-branch + .test-tree-branch { border-top: 1px solid var(--line-soft); }
.tree-empty-row { padding: 5px 12px 8px 29px; color: var(--dim); font-size: 10px; }
.node-status-dot { display: block; width: 7px; height: 7px; border: 1px solid var(--muted); border-radius: 50%; }
.node-status-dot.product { background: var(--accent); }
.node-status-dot.finding { border-color: var(--warn); background: var(--warn); }
.mini-tag, .context-count { padding: 1px 4px; border: 1px solid var(--line); color: var(--muted); font: 9px ui-monospace, monospace; }
.sidebar-footer { height: 32px; display: flex; align-items: center; gap: 6px; padding: 0 9px; border-top: 1px solid var(--line); color: var(--muted); }
.sidebar-resizer { position: absolute; top: 0; right: -3px; bottom: 0; width: 6px; cursor: col-resize; }
.context-section { padding: 8px 0; border-bottom: 1px solid var(--line); }
.context-heading { padding: 6px 10px; color: var(--muted); font-size: 11px; font-weight: 700; }
.context-item { width: 100%; min-height: 48px; display: grid; grid-template-columns: 18px 1fr auto; gap: 8px; padding: 8px 10px; background: transparent; color: var(--muted); text-align: left; }
.context-copy b, .context-copy small { display: block; }
.context-copy b { color: var(--text); }
.config-relation { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 2px 7px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.config-relation > span { grid-row: 1 / 3; color: var(--accent); }
.config-relation > b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.config-relation > i { color: var(--muted); font-style: normal; font-size: 10px; }
.system-config-form label { display: grid; gap: 5px; margin: 0 0 9px; color: var(--muted); font-size: 10px; }
.system-config-form input, .system-config-form textarea, .system-config-form select { width: 100%; padding: 7px 8px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit; }
.system-config-form textarea { resize: vertical; }
.inspect-action.primary { color: var(--text); border-color: var(--accent); }
.config-save-state { min-height: 15px; }
.policy-card { margin: 8px; padding: 10px; border: 1px solid var(--line); }
.policy-card-head { display: flex; justify-content: space-between; font-weight: 650; }
.policy-card p { margin: 7px 0 0; color: var(--muted); }
.policy-state { color: var(--muted); font-style: normal; }

/* Composition: editor center */
.editor { grid-area: editor; min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.tabs { height: 40px; flex: 0 0 auto; display: flex; border-bottom: 1px solid var(--line); background: var(--panel); }
.tab { min-width: 170px; display: flex; align-items: center; gap: 8px; padding: 0 13px; border-right: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; }
.tab.active { color: var(--text); background: var(--bg); border-top: 2px solid var(--text); }
.dirty-dot { width: 6px; height: 6px; margin-left: auto; border-radius: 50%; background: var(--warn); }
.breadcrumbs { height: 34px; flex: 0 0 auto; display: flex; align-items: center; gap: 8px; padding: 0 13px; border-bottom: 1px solid var(--line); color: var(--muted); }
.breadcrumbs strong { color: var(--text); }
.project-pulse { flex: 0 0 auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--line); background: var(--panel); }
.project-pulse[hidden] { display: none; }
.pulse-item { min-width: 0; height: 54px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 7px 10px; border: 0; border-right: 1px solid var(--line); background: transparent; color: var(--text); text-align: left; }
.pulse-item:last-child { border-right: 0; }
.pulse-item > i { width: 7px; height: 7px; border-radius: 50%; background: var(--dim); }
.pulse-item.warning > i, .pulse-item.blocked > i { background: var(--warn); }
.pulse-item.critical > i { background: var(--danger); }
.pulse-item.enforced > i { background: var(--good); }
.pulse-copy { min-width: 0; display: grid; gap: 2px; }
.pulse-copy b, .pulse-copy small { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pulse-copy b { font-size: 10px; }
.pulse-copy small { color: var(--muted); font-size: 9px; }
.pulse-value { color: var(--text); font: 10px ui-monospace, monospace; white-space: nowrap; }
.surface { display: none; min-height: 0; flex: 1; position: relative; }
.surface.active { display: flex; }
.canvas-toolbar { position: absolute; z-index: 5; top: 12px; left: 12px; right: 12px; height: 34px; display: flex; gap: 12px; pointer-events: none; }
.segmented { min-width: 0; display: flex; overflow-x: auto; border: 1px solid var(--line); background: var(--panel); pointer-events: auto; scrollbar-width: none; }
.segmented::-webkit-scrollbar { display: none; }
.segmented button { flex: 0 0 auto; height: 32px; padding: 0 12px; border-right: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; }
.segmented button:last-child { border-right: 0; }
.segmented button.active { color: var(--text); background: var(--raised); }
.canvas-summary { flex: 0 1 auto; max-width: 42%; margin-left: auto; overflow: hidden; padding: 7px 9px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); font: 10px ui-monospace, monospace; text-overflow: ellipsis; white-space: nowrap; }
.data-graph-navigator { pointer-events: auto; position: absolute; left: 0; top: 42px; display: flex; border: 1px solid var(--line); background: var(--panel); overflow: hidden; }
.data-graph-navigator[hidden] { display: none; }
.data-graph-navigator button { height: 30px; padding: 0 11px; border-right: 1px solid var(--line); background: transparent; color: var(--muted); font-size: 10px; white-space: nowrap; cursor: pointer; }
.data-graph-navigator button:last-child { border-right: 0; }
.data-graph-navigator button:hover { color: var(--text); background: var(--raised); }
.data-graph-navigator button.active { color: var(--bg); background: var(--text); }
.canvas-viewport { flex: 1; position: relative; overflow: hidden; cursor: grab; background: #101010; }
.canvas-viewport.panning { cursor: grabbing; }
.operations-dashboard { position: absolute; z-index: 7; top: 56px; left: 12px; right: 12px; min-height: 98px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid #444; background: #111e; pointer-events: auto; }
.operations-dashboard[hidden] { display: none; }
.operations-card { min-width: 0; padding: 11px 12px; border-right: 1px solid var(--line); }
.operations-card:last-child { border-right: 0; }
.operations-card > span { display: block; color: var(--dim); font: 8px ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; }
.operations-card > strong { display: block; margin: 6px 0 4px; overflow: hidden; color: var(--text); font-size: 18px; line-height: 1.05; text-overflow: ellipsis; }
.operations-card > small { display: block; overflow: hidden; color: var(--muted); font: 9px/1.35 ui-monospace, monospace; }
.operations-card.critical { border-left: 3px solid var(--danger); }
.operations-card.warning, .operations-card.blocked { border-left: 3px solid var(--warn); }
.operations-card.good { border-left: 3px solid var(--good); }
.canvas-world { position: absolute; width: 1800px; height: 1000px; transform-origin: 0 0; }
.edges { position: absolute; z-index: 1; inset: 0; width: 1800px; height: 1000px; pointer-events: none; }
.edge { fill: none; stroke: #666; stroke-width: 1.5; }
.edge.risk { stroke: var(--warn); stroke-dasharray: 5 4; }
.edge-label { fill: #888; font: 10px ui-monospace, monospace; }
.node { position: absolute; width: 230px; min-height: 118px; border: 1px solid var(--line); background: var(--panel); }
.node.selected { border: 2px solid var(--text); }
.node[data-kind="boundary"] { border-style: dashed; }
.node[data-kind="finding"] { border-color: var(--danger); }
.node-head, .preview-head { min-height: 34px; display: flex; align-items: center; gap: 8px; padding: 0 10px; border-bottom: 1px solid var(--line); cursor: move; }
.node-kind, .legend-dot { width: 8px; height: 8px; background: var(--text); }
.node[data-kind="service"] .node-kind, .legend-dot.service { background: var(--good); }
.node[data-kind="boundary"] .node-kind, .legend-dot.boundary { background: var(--warn); }
.node[data-kind="finding"] .node-kind, .legend-dot.finding { background: var(--danger); border-radius: 50%; }
.node-title { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.node-state, .preview-environment { color: var(--dim); font: 9px ui-monospace, monospace; text-transform: uppercase; }
.node-body { padding: 10px; }
.node-subtitle { color: var(--muted); font-size: 11px; }
.node-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 10px; }
.node-fact { padding: 6px; border: 1px solid var(--line-soft); }
.node-fact b, .node-fact span { display: block; }
.node-fact span { color: var(--dim); font-size: 9px; }
.data-graph-group { position: absolute; z-index: 0; border: 1px solid #454545; background: #151515; pointer-events: none; }
.data-graph-group header { height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border-bottom: 1px solid #454545; background: #1b1b1b; color: #c0c0c0; font: 600 10px ui-monospace, monospace; letter-spacing: .13em; text-transform: uppercase; }
.data-graph-group header i { width: 7px; height: 7px; border-radius: 50%; background: var(--graph-tone); }
.node.data-graph-node { z-index: 2; min-height: 0; border: 1px solid #555; border-radius: 4px; background: #121212; }
.node.data-graph-node.selected { border: 2px solid var(--text); }
.node.data-graph-node .node-head { min-height: 46px; padding: 6px 10px; gap: 9px; background: #181818; }
.data-graph-icon { width: 24px; height: 24px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 3px; color: var(--graph-tone); background: #ffffff0b; font: 600 11px ui-monospace, monospace; }
.data-graph-heading { min-width: 0; flex: 1; }
.data-graph-heading .node-title { display: block; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 11px; }
.data-graph-heading small { display: none; }
.data-graph-ports { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 9px 10px; }
.data-graph-port-column { min-width: 0; }
.data-graph-port { position: relative; min-height: 18px; overflow: hidden; color: #aaa; font: 9px/18px ui-monospace, monospace; text-overflow: ellipsis; white-space: nowrap; }
.data-graph-port.output { text-align: right; }
.data-graph-port i { position: absolute; top: 6px; width: 7px; height: 7px; border: 1px solid #121212; border-radius: 50%; background: var(--graph-tone); }
.data-graph-port.input { padding-left: 3px; }.data-graph-port.input i { left: -13px; }
.data-graph-port.output { padding-right: 3px; }.data-graph-port.output i { right: -13px; }
.edge.data-graph-control { stroke-dasharray: 3 3; animation: graph-dash 10s linear infinite; }
.edge.data-graph-reference { stroke-dasharray: 5 5; stroke-width: 1; }
@keyframes graph-dash { to { stroke-dashoffset: -60; } }
.system-definition-node { min-height: 0; }
.system-container-node { background: #1a1a1a; border-width: 1px; }
.system-container-node .node-head { min-height: 38px; }
.system-container-node .system-node-purpose { min-height: 54px; }
.system-interface-node { opacity: .82; border-style: dashed; }
.system-definition-node .node-head { cursor: move; }
.system-definition-node .node-head > button { width: 20px; height: 20px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; }
.system-definition-node .node-head > button.system-node-open { width: auto; padding: 0 6px; font-size: 9px; }
.system-definition-node .node-state { max-width: 68px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.system-node-purpose { margin: 0; padding: 9px 10px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 10px; line-height: 1.35; }
.system-node-io { display: grid; grid-template-columns: 1fr 1fr; }
.system-node-io > section:first-child { border-right: 1px solid var(--line); }
.system-node-io section > header { display: flex; justify-content: space-between; padding: 5px 8px; border-bottom: 1px solid var(--line); color: var(--dim); font-size: 9px; text-transform: uppercase; }
.system-node-io section > header b { font-weight: 500; }
.system-port { position: relative; min-height: 24px; display: flex; align-items: center; padding: 4px 8px; color: var(--muted); font-size: 9px; }
.system-port span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.system-port i { position: absolute; width: 7px; height: 7px; border: 1px solid var(--accent); border-radius: 50%; background: var(--panel); }
.system-port.input { padding-left: 12px; }
.system-port.input i { left: -4px; }
.system-port.output { justify-content: flex-end; padding-right: 12px; text-align: right; }
.system-port.output i { right: -4px; }
.empty-port { display: block; padding: 7px 8px; color: var(--dim); font-size: 9px; }
.system-node-meta { display: flex; justify-content: space-between; padding: 6px 9px; border-top: 1px solid var(--line); color: var(--dim); font-size: 9px; }
.system-config-details { padding: 0; }
.system-config-details summary { padding: 10px 0; color: var(--text); cursor: pointer; font-weight: 650; }
.system-config-details .system-config-form { padding-bottom: 10px; }
.canvas-controls, .canvas-legend { position: absolute; z-index: 6; bottom: 12px; display: flex; border: 1px solid var(--line); background: var(--panel); }
.canvas-controls { right: 12px; }
.canvas-controls button, .canvas-controls span { min-width: 34px; height: 32px; display: grid; place-items: center; border-right: 1px solid var(--line); background: transparent; color: var(--muted); }
.canvas-legend { left: 12px; gap: 12px; padding: 8px; color: var(--muted); }
.canvas-legend span { display: flex; align-items: center; gap: 5px; }
.preview-node, .flow-node { position: absolute; overflow: hidden; border: 1px solid var(--line); background: var(--panel); }
.runtime-session-node { position: absolute; display: grid; grid-template-rows: 44px 38px 32px minmax(0, 1fr) 34px; overflow: hidden; border: 1px solid var(--line); background: var(--panel); }
.runtime-session-node.runtime-comparison-node { grid-template-rows: 44px 32px minmax(0, 1fr) 34px; }
.runtime-session-head { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto auto; gap: 9px; align-items: center; padding: 0 10px; border-bottom: 1px solid var(--line); }
.runtime-machine-mark { width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid var(--line); }
.runtime-session-head > span:nth-child(2) { display: grid; }
.runtime-session-head small { color: var(--dim); font: 9px ui-monospace, monospace; }
.runtime-session-head button, .runtime-session-foot button { height: 24px; padding: 0 8px; border: 1px solid var(--line); background: transparent; color: var(--muted); }
.runtime-live { display: flex; align-items: center; gap: 6px; color: var(--muted); font: 9px ui-monospace, monospace; font-style: normal; text-transform: uppercase; }
.runtime-tabs { display: flex; overflow-x: auto; border-bottom: 1px solid var(--line); background: var(--surface); }
.runtime-tabs button { min-width: 150px; display: grid; align-content: center; gap: 1px; padding: 0 10px; border-right: 1px solid var(--line); background: transparent; color: var(--muted); text-align: left; }
.runtime-tabs button.active { background: var(--panel); color: var(--text); border-top: 2px solid var(--text); }
.runtime-tabs small { color: var(--dim); font: 8px ui-monospace, monospace; }
.runtime-tabs .runtime-tab-add { min-width: 36px; width: 36px; text-align: center; }
.runtime-browser-bar { display: flex; align-items: center; gap: 8px; padding: 0 9px; border-bottom: 1px solid var(--line); color: var(--muted); font: 9px ui-monospace, monospace; }
.runtime-browser-bar button { border: 0; background: transparent; color: inherit; }
.runtime-url { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.runtime-work-area { min-height: 0; display: grid; grid-template-columns: 210px minmax(0, 1fr); }
.runtime-flow-rail { min-height: 0; overflow: auto; border-right: 1px solid var(--line); background: var(--surface); }
.runtime-flow-rail header { height: 32px; display: flex; align-items: center; justify-content: space-between; padding: 0 9px; border-bottom: 1px solid var(--line); text-transform: uppercase; }
.runtime-flow-rail button { width: 100%; min-height: 50px; display: grid; gap: 4px; padding: 8px 9px; border-bottom: 1px solid var(--line-soft); background: transparent; color: var(--muted); text-align: left; }
.runtime-flow-rail button.active { border-left: 2px solid var(--text); background: var(--raised); color: var(--text); }
.runtime-flow-rail small, .runtime-flow-rail p { color: var(--dim); }
.runtime-stage { min-width: 0; min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); background: #111; }
.runtime-stage > .runtime-session-output:first-child { grid-row: 1 / -1; }
.runtime-stepbar { min-height: 34px; display: flex; align-items: center; gap: 6px; padding: 4px 7px; border-bottom: 1px solid var(--line); background: var(--panel); }
.runtime-stepbar > span { color: var(--dim); font-size: 9px; text-transform: uppercase; }
.runtime-stepbar button { height: 24px; display: flex; align-items: center; gap: 5px; border: 1px solid var(--line); background: transparent; color: var(--muted); }
.runtime-stepbar button.active { color: var(--text); border-color: var(--text); }
.runtime-stepbar i { font: 8px ui-monospace, monospace; font-style: normal; }
.runtime-session-output { min-height: 0; width: 100%; height: 100%; }
.runtime-session-foot { display: flex; align-items: center; gap: 12px; padding: 0 9px; border-top: 1px solid var(--line); color: var(--muted); font: 9px ui-monospace, monospace; }
.runtime-session-foot > span:first-child { display: flex; align-items: center; gap: 5px; }
.runtime-disabled-target { margin-left: auto; color: var(--dim); }
.preview-browser-bar, .preview-status { display: flex; align-items: center; gap: 7px; padding: 0 8px; border-bottom: 1px solid var(--line); color: var(--muted); }
.preview-browser-bar { height: 28px; }
.preview-browser-bar button { width: 20px; height: 20px; padding: 0; border: 0; color: var(--muted); background: transparent; cursor: pointer; }
.preview-browser-bar span:nth-child(2) { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.web-preview iframe, .web-frame-output img, .flow-frame img, .device-screen img { width: 100%; height: 100%; border: 0; object-fit: cover; }
.web-frame-output img, .flow-frame img { object-fit: contain; background: #0d0d0d; }
.web-frame-output { height: calc(100% - 62px); }
.browser-session-output { position: relative; overflow: hidden; background: #111; }
.browser-session-view { display: block; width: 100%; height: 100%; border: 0; background: #111; cursor: default; outline: none; }
.browser-session-view:focus { outline: 2px solid var(--focus); outline-offset: -2px; }
.browser-session-loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); background: var(--surface); pointer-events: none; }
.browser-session-output.ready .browser-session-loading { display: none; }
.browser-session-output.failed .browser-session-loading { color: var(--danger); }
.browser-session-empty { display: grid; place-items: center; }
.web-frame-empty, .connector-empty, .service-preview-body, .device-empty { height: 100%; display: grid; place-content: center; justify-items: center; gap: 8px; padding: 20px; text-align: center; }
.web-frame-empty p, .connector-empty p, .service-preview-body p, .device-empty p { max-width: 270px; margin: 0; color: var(--muted); }
.preview-fallback { min-height: 28px; display: flex; align-items: center; gap: 8px; padding: 0 9px; border-top: 1px solid var(--line); color: var(--dim); font: 9px ui-monospace, monospace; }
.preview-fallback span { flex: 1; }
.preview-fallback button, .flow-step button { border: 0; background: transparent; color: var(--muted); cursor: pointer; font: inherit; }
.frame-spinner { width: 18px; height: 18px; border: 2px solid var(--line); border-top-color: var(--text); border-radius: 50%; animation: frame-spin .8s linear infinite; }
@keyframes frame-spin { to { transform: rotate(360deg); } }
.device-shell { position: absolute; inset: 46px 24px 42px; padding: 8px; border: 1px solid var(--line); border-radius: 34px; background: #080808; }
.device-screen { width: 100%; height: 100%; overflow: hidden; border: 1px solid var(--line); border-radius: 27px; }
.flow-node { min-height: 300px; padding: 0 16px 18px; }
.flow-head { height: 52px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); }
.flow-head > span { flex: 1; display: grid; }
.flow-screens { display: flex; gap: 24px; padding-top: 16px; }
.flow-screen { position: relative; width: 220px; }
.flow-screen > .flow-frame.browser-session-output { height: 160px; padding: 0; }
.flow-step small { margin-left: auto; color: var(--dim); font: 8px ui-monospace, monospace; }
.flow-step { height: 25px; display: flex; gap: 7px; }
.flow-frame { height: 190px; overflow: hidden; border: 1px solid var(--line); }
.flow-arrow { position: absolute; right: -19px; top: 118px; }
.code-surface, .diff-surface { overflow: auto; background: #101010; font: 12px/1.65 ui-monospace, monospace; }
.code-surface pre { margin: 0; padding: 14px 20px; white-space: pre; }
.editor-gutter { flex: 0 0 44px; padding: 14px 8px; border-right: 1px solid var(--line); color: var(--dim); text-align: right; white-space: pre; }
.diff-surface { flex-direction: column; }
.diff-header { height: 36px; display: flex; align-items: center; gap: 12px; padding: 0 12px; border-bottom: 1px solid var(--line); }
.diff-line { display: grid; grid-template-columns: 44px 44px 1fr; min-height: 22px; }
.diff-line span, .diff-line code { padding: 2px 8px; }
.diff-line.add { border-left: 3px solid var(--good); }
.diff-line.remove { border-left: 3px solid var(--danger); }

.inspector-body { height: calc(100% - 38px); overflow: auto; }
.inspect-head, .inspect-section { padding: 14px; border-bottom: 1px solid var(--line); }
.inspect-eyebrow, .inspect-section h3 { color: var(--muted); font-size: 10px; text-transform: uppercase; }
.inspect-head h2 { margin: 6px 0; font-size: 18px; }
.inspect-head p { margin: 0; color: var(--muted); }
.inspect-tabs { position: sticky; top: 0; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); background: var(--panel); }
.inspect-tabs button { height: 34px; padding: 0 4px; background: transparent; color: var(--dim); font: 9px ui-monospace, monospace; text-transform: uppercase; }
.inspect-tabs button.active { color: var(--text); border-bottom: 2px solid var(--text); }
.inspect-record { margin-top: 9px; border: 1px solid var(--line); }
.inspect-record summary { padding: 8px; color: var(--muted); cursor: pointer; font: 10px ui-monospace, monospace; }
.inspect-record pre { max-height: 280px; margin: 0; padding: 9px; overflow: auto; border-top: 1px solid var(--line); background: var(--bg); color: var(--muted); font: 9px/1.5 ui-monospace, monospace; white-space: pre-wrap; }
.inspect-event { display: grid; gap: 3px; padding: 8px 0 8px 9px; border-bottom: 1px solid var(--line-soft); border-left: 2px solid var(--line); }
.inspect-event.warning { border-left-color: var(--amber); }
.inspect-event time { color: var(--dim); font: 8px ui-monospace, monospace; }
.inspect-event b { color: var(--muted); font: 9px ui-monospace, monospace; }
.inspect-event span { font-size: 11px; }
.optimization-contract { margin-top: 10px; padding: 9px; border: 1px solid var(--line); background: var(--bg); }
.optimization-contract span { color: var(--dim); font: 9px ui-monospace, monospace; text-transform: uppercase; }
.optimization-contract p { margin: 5px 0 0; }
.claim-row { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 4px 8px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
.claim-row span { color: var(--muted); font: 9px ui-monospace, monospace; text-transform: uppercase; }
.claim-row.verified span { color: var(--good); }
.claim-row.failed span { color: var(--danger); }
.claim-row i { grid-column: 2; color: var(--dim); font: 9px ui-monospace, monospace; font-style: normal; }
.claim-evidence { display: grid; gap: 4px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
.claim-evidence span, .claim-evidence code { color: var(--dim); font: 9px ui-monospace, monospace; }
.claim-evidence code { overflow-wrap: anywhere; }
.property { display: grid; grid-template-columns: 100px 1fr; gap: 10px; padding: 6px 0; }
.frame-network { max-height: 390px; overflow: auto; }
.network-row { display: grid; grid-template-columns: 46px minmax(0, 1fr) 45px; gap: 7px; padding: 6px 0; border-bottom: 1px solid var(--line-soft); font: 9px ui-monospace, monospace; }
.network-row span, .network-row i { color: var(--dim); font-style: normal; }
.network-row b { overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.runtime-edit-section p { color: var(--muted); }
.runtime-edit-section label { display: grid; grid-template-columns: 1fr auto; gap: 5px; margin-top: 9px; }
.runtime-edit-section label > span { grid-column: 1 / -1; color: var(--muted); font-size: 10px; }
.runtime-edit-section input { min-width: 0; height: 30px; padding: 0 7px; border: 1px solid var(--line); background: var(--bg); color: var(--text); }
.runtime-edit-section button { height: 30px; padding: 0 8px; border: 1px solid var(--line); background: transparent; color: var(--muted); }
.cookie-row { display: grid; gap: 2px; padding: 6px 0; border-bottom: 1px solid var(--line-soft); }
.cookie-row span { overflow: hidden; color: var(--dim); font: 8px ui-monospace, monospace; text-overflow: ellipsis; white-space: nowrap; }
.property span { color: var(--muted); }
.property b { overflow-wrap: anywhere; }
.inspect-action { width: 100%; height: 32px; margin-top: 8px; border: 1px solid var(--line); background: transparent; }
.bottom-panel { grid-area: bottom; min-height: 0; border-top: 1px solid var(--line); background: var(--panel); }
.bottom-tabs { height: 32px; display: flex; border-bottom: 1px solid var(--line); }
.bottom-tabs button { padding: 0 10px; background: transparent; color: var(--muted); }
.bottom-tabs button.active { color: var(--text); border-bottom: 2px solid var(--text); }
.bottom-spacer { flex: 1; }
.bottom-content { height: calc(100% - 32px); overflow: auto; }
.problem-row { min-height: 30px; display: grid; grid-template-columns: 20px 1fr 150px 80px; gap: 8px; align-items: center; padding: 0 10px; border-bottom: 1px solid var(--line-soft); }
.empty-panel { padding: 18px; color: var(--muted); }
.live-jobs-head { height: 30px; display: flex; align-items: center; gap: 12px; padding: 0 10px; border-bottom: 1px solid var(--line); }
.live-jobs-head span { color: var(--dim); font: 9px ui-monospace, monospace; }
.telemetry-query { min-height: 34px; display: flex; align-items: center; gap: 10px; padding: 5px 10px; border-bottom: 1px solid var(--line); }
.telemetry-query input { width: min(460px, 60%); height: 24px; padding: 0 8px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: 9px ui-monospace, monospace; outline: 0; }
.telemetry-query input:focus { border-color: var(--accent); }
.telemetry-query span { color: var(--dim); font: 9px ui-monospace, monospace; }
.telemetry-columns { min-height: 22px; display: grid; grid-template-columns: 76px 160px minmax(0, 1fr) 100px; gap: 9px; align-items: center; padding: 0 10px; border-bottom: 1px solid var(--line); color: var(--dim); font: 8px ui-monospace, monospace; letter-spacing: .06em; }
.live-job-row { min-height: 27px; display: grid; grid-template-columns: 76px 160px minmax(0, 1fr) 55px; gap: 9px; align-items: center; padding: 0 10px; border-bottom: 1px solid var(--line-soft); font: 10px ui-monospace, monospace; }
.live-job-row time, .live-job-row i { color: var(--dim); font-style: normal; }
.live-job-row b { color: var(--muted); font-weight: 500; }
.live-job-row.warning { border-left: 2px solid var(--amber); }
.live-job-row.error { border-left: 2px solid var(--danger); }
.statusbar { grid-area: status; display: flex; align-items: center; gap: 12px; padding: 0 9px; border-top: 1px solid var(--line); background: var(--panel); color: var(--muted); font: 10px ui-monospace, monospace; }
.status-spacer { flex: 1; }

/* Composition: project overview */
.workbench.project-overview-mode { grid-template-columns: 48px minmax(0, 1fr); grid-template-rows: 44px minmax(0, 1fr) 24px; grid-template-areas: "title title" "activity editor" "status status"; }
.workbench.project-overview-mode .sidebar, .workbench.project-overview-mode .inspector, .workbench.project-overview-mode .bottom-panel, .workbench.project-overview-mode .tabs, .workbench.project-overview-mode .breadcrumbs, .workbench.project-overview-mode .project-pulse, .workbench.project-overview-mode .surface { display: none !important; }
.workbench.project-overview-mode .activitybar, .workbench.project-overview-mode .statusbar { display: flex; }
.project-overview { flex: 1; overflow: auto; }
.project-overview-shell { width: min(1480px, calc(100% - 32px)); margin: 0 auto; padding: 14px 0 48px; }
.overview-breadcrumb { height: 34px; display: flex; align-items: center; gap: 8px; color: var(--muted); }
.overview-breadcrumb button { background: transparent; color: inherit; }
.overview-hero { min-height: 104px; display: grid; grid-template-columns: 48px 1fr auto; gap: 14px; align-items: center; border-bottom: 1px solid var(--line); }
.overview-project-mark { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid var(--line); font: 700 11px ui-monospace, monospace; }
.overview-title-copy h1 { margin: 3px 0; font-size: 25px; }
.overview-title-copy p { max-width: 700px; margin: 0; color: var(--muted); }
.overview-eyebrow { color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.overview-tags { display: flex; gap: 6px; margin-top: 7px; }
.overview-tags span, .setup-progress, .section-count { padding: 3px 6px; border: 1px solid var(--line); color: var(--muted); font: 9px ui-monospace, monospace; }
.overview-primary { height: 38px; padding: 0 14px; border: 1px solid var(--text); background: var(--text); color: var(--bg); font-weight: 700; }
.overview-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; padding-top: 16px; }
.overview-main, .overview-aside { display: grid; align-content: start; gap: 14px; }
.overview-section, .overview-status-card { border: 1px solid var(--line); }
.overview-section > header { min-height: 52px; display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.overview-section h2, .overview-status-card h2 { margin: 4px 0 0; font-size: 15px; }
.setup-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.setup-step { position: relative; min-height: 72px; display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 5px 9px; align-content: center; padding: 10px 12px; border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.setup-step::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: var(--warn); opacity: .7; }
.setup-step.done::before { background: var(--good); }
.setup-step > i { position: absolute; top: 9px; right: 10px; color: var(--muted); font: 8px ui-monospace, monospace; font-style: normal; }
.setup-step > span:nth-child(2) { min-width: 0; padding-right: 48px; }
.setup-step small { overflow: hidden; margin-top: 3px; text-overflow: ellipsis; white-space: nowrap; }
.overview-repository-list article { min-height: 58px; display: grid; grid-template-columns: 32px 1fr auto; gap: 12px; align-items: center; padding: 9px 14px; border-bottom: 1px solid var(--line-soft); }
.setup-step-icon, .repository-glyph, .empty-glyph, .integration-mark { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--line); font: 9px ui-monospace, monospace; }
.setup-step > span:nth-child(2), .overview-repository-list article > span:nth-child(2) { display: grid; }
.setup-step small, .overview-repository-list small { color: var(--muted); }
.cloud-terminal-form { min-height: 42px; display: grid; grid-template-columns: 18px minmax(0, 1fr) auto auto auto; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--line); font: 11px ui-monospace, monospace; }
.cloud-workspace-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--line); background: var(--panel); }
.cloud-workspace-strip > div { min-height: 54px; display: flex; align-items: center; gap: 9px; padding: 9px 12px; border-right: 1px solid var(--line); }
.cloud-workspace-strip > div:last-child { border-right: 0; }
.cloud-workspace-strip span { display: grid; color: var(--dim); font: 9px ui-monospace, monospace; text-transform: uppercase; }
.cloud-workspace-strip b { margin-top: 2px; color: var(--text); font: 11px -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; text-transform: none; }
.cloud-terminal-form input { height: 28px; border: 1px solid var(--line); background: var(--bg); color: var(--text); padding: 0 9px; font: inherit; }
.cloud-terminal-form button { height: 28px; padding: 0 14px; border: 1px solid var(--line); background: var(--raised); color: var(--text); }
.cloud-terminal-form button:disabled { color: var(--dim); }
.connection-state.working { background: var(--accent); animation: workspace-pulse 1.1s steps(2, end) infinite; }
@keyframes workspace-pulse { 50% { opacity: .25; } }
.cloud-terminal-output { min-height: 122px; max-height: 300px; overflow: auto; margin: 0; padding: 14px; background: #0b0b0b; color: #c7d7cb; white-space: pre-wrap; font: 11px/1.6 ui-monospace, monospace; }
.overview-empty { min-height: 180px; display: grid; place-content: center; justify-items: center; gap: 8px; padding: 24px; text-align: center; }
.overview-empty p { max-width: 420px; margin: 0; color: var(--muted); }
.overview-status-card { padding: 16px; }
.overview-status-card p { color: var(--muted); }
.connection-row, .boundary-rule { min-height: 36px; display: flex; justify-content: space-between; align-items: center; gap: 10px; border-top: 1px solid var(--line-soft); color: var(--muted); }
.connection-row > span { display: flex; align-items: center; gap: 7px; }
.overview-integration-grid { display: grid; grid-template-columns: 1fr 1fr; }
.overview-integration-card { min-height: 152px; display: grid; grid-template-rows: auto 1fr auto; gap: 10px; padding: 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.overview-integration-card:nth-child(2n) { border-right: 0; }
.overview-integration-card:last-child:nth-child(odd) { grid-column: 1 / -1; border-right: 0; }
.overview-integration-card header { display: grid; grid-template-columns: 30px 1fr auto; gap: 9px; align-items: center; }
.overview-integration-card header > span:nth-child(2) { display: grid; }
.overview-integration-card small, .overview-integration-card p, .overview-integration-card i { color: var(--muted); }
.overview-integration-card p { margin: 0; }
.overview-integration-card i { font: 9px ui-monospace, monospace; font-style: normal; text-transform: uppercase; }
.overview-integration-card button { justify-self: start; height: 30px; padding: 0 10px; border: 1px solid var(--line); background: transparent; color: var(--muted); }

/* Composition: projects gateway */
.project-gateway { position: fixed; z-index: 50; inset: 44px 0 24px 48px; overflow: auto; border-left: 1px solid var(--line); background: var(--bg); }
.project-gateway-shell { width: 100%; margin: 0; padding: 0 20px 40px; }
.gateway-nav { display: none; }
.gateway-nav > div { display: flex; align-items: center; gap: 8px; }
.gateway-nav button { height: 32px; padding: 0 10px; background: transparent; color: var(--muted); }
.gateway-nav button.active { color: var(--text); border-bottom: 1px solid var(--text); }
.project-gateway-header { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line-soft); }
.project-gateway-header h1 { margin: 2px 0; font-size: 22px; }
.project-gateway-header p { margin: 0; color: var(--muted); font-size: 11px; }
.project-gateway-eyebrow { color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.gateway-header-actions { display: flex; align-items: center; justify-items: end; gap: 8px; }
.gateway-identity { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); }
.gateway-identity > span:last-child { display: grid; }
.gateway-identity small { color: var(--muted); }
.identity-avatar { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--line); overflow: hidden; }
.identity-avatar img { width: 100%; height: 100%; object-fit: cover; }
.project-gateway-tools { min-height: 46px; display: flex; align-items: center; gap: 18px; margin-top: 12px; padding: 6px 8px; border: 1px solid var(--line); }
.project-gateway-tools input { flex: 1; height: 34px; padding: 0 8px; border: 0; background: transparent; outline: 0; }
.project-gateway-tools > span { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.create-project-button { height: 34px; padding: 0 13px; border: 1px solid var(--text); background: var(--text); color: var(--bg); font-weight: 700; }
.project-groups { display: grid; gap: 20px; padding-top: 16px; }
.project-group > header { height: 34px; display: flex; align-items: center; gap: 8px; }
.project-group h2 { margin: 0; font-size: 12px; text-transform: uppercase; }
.project-group header span { color: var(--muted); }
.project-card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.project-card { min-height: 144px; display: grid; grid-template-columns: 36px 1fr; grid-template-rows: 1fr auto; gap: 10px; padding: 13px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: transparent; text-align: left; cursor: pointer; }
.project-card:hover, .project-card.selected { background: var(--raised); }
.project-card-icon { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); font: 700 9px ui-monospace, monospace; }
.project-card-copy { min-width: 0; display: grid; gap: 8px; }
.project-card-title { display: flex; gap: 8px; align-items: baseline; }
.project-card-title b { font-size: 14px; }
.project-card-title small, .project-card-purpose { color: var(--muted); }
.project-card-meta { display: flex; flex-wrap: wrap; gap: 5px; }
.project-card-meta i { padding: 2px 5px; border: 1px solid var(--line); color: var(--muted); font: 9px ui-monospace, monospace; font-style: normal; }
.project-card-arrow { grid-column: 1 / -1; padding-top: 9px; border-top: 1px solid var(--line-soft); text-align: right; color: var(--muted); }
.project-state-notice, .project-gateway-empty { margin-bottom: 14px; padding: 12px; border: 1px solid var(--line); color: var(--muted); }
.project-gateway-empty { min-height: 250px; display: grid; place-content: center; justify-items: center; }
.auth-locked .workbench { visibility: hidden; }
.auth-locked .project-gateway { inset: 0; display: grid; place-items: center; border-left: 0; }
.auth-locked .project-gateway-shell { width: min(420px, calc(100% - 32px)); }
.auth-locked .gateway-nav, .auth-locked .project-gateway-header > div:first-child, .auth-locked .gateway-header-actions { display: none; }
.auth-gate { padding: 28px; border: 1px solid var(--line); }
.auth-gate h2 { margin: 8px 0; font-size: 24px; }
.auth-gate p, .auth-gate-note { color: var(--muted); }
.auth-provider-list { display: grid; gap: 8px; margin-top: 20px; }
.auth-gate-button { width: 100%; height: 40px; display: grid; grid-template-columns: 28px 1fr 28px; align-items: center; border: 1px solid var(--line); background: transparent; color: var(--text); text-align: left; }
.auth-gate-button:hover { background: var(--raised); }
.auth-provider-mark { width: 20px; height: 20px; display: grid; place-items: center; border: 1px solid var(--line); font-size: 11px; font-weight: 700; }
.auth-gate-note { display: block; margin-top: 16px; line-height: 1.45; }
.create-project-dialog, .command-palette { width: min(480px, calc(100% - 32px)); padding: 0; border: 1px solid var(--line); background: var(--panel); color: var(--text); }
.create-project-dialog form { display: grid; gap: 16px; padding: 22px; }
.create-project-dialog label { display: grid; gap: 6px; }
.create-project-dialog input, .create-project-dialog textarea, .command-palette input { width: 100%; padding: 9px; border: 1px solid var(--line); background: var(--bg); }
.create-project-dialog footer { display: flex; justify-content: flex-end; gap: 8px; }
.create-project-dialog footer button { height: 32px; padding: 0 12px; border: 1px solid var(--line); background: transparent; }
.command-result { width: 100%; min-height: 36px; padding: 0 12px; background: transparent; text-align: left; }

.workbench.inspector-hidden { grid-template-columns: 48px var(--sidebar-width) minmax(480px, 1fr) 0; }
.workbench.inspector-hidden .inspector { display: none; }
.workbench.sidebar-hidden { grid-template-columns: 48px 0 minmax(480px, 1fr) var(--inspector-width); }
.workbench.sidebar-hidden .sidebar { display: none; }
.workbench.sidebar-hidden.inspector-hidden { grid-template-columns: 48px 0 minmax(480px, 1fr) 0; }
.workbench.project-overview-mode,
.workbench.project-overview-mode.sidebar-hidden,
.workbench.project-overview-mode.inspector-hidden,
.workbench.project-overview-mode.sidebar-hidden.inspector-hidden { grid-template-columns: 48px minmax(0, 1fr); }
.workbench.bottom-hidden { grid-template-rows: 44px minmax(320px, 1fr) 32px 24px; }
.workbench.bottom-hidden .bottom-content { display: none; }

@media (max-width: 980px) {
  .overview-layout { grid-template-columns: 1fr; }
  .project-card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .project-gateway-shell { width: calc(100% - 24px); }
  .project-gateway-header { align-items: flex-start; flex-direction: column; justify-content: center; }
  .gateway-header-actions { justify-items: start; }
  .project-gateway-tools { align-items: stretch; flex-direction: column; }
  .project-card-grid, .overview-integration-grid { grid-template-columns: 1fr; }
  .overview-hero { grid-template-columns: 54px 1fr; }
  .overview-primary { grid-column: 1 / -1; }
}
