Просмотр исходного кода

style(执行观察器): 建立克制的三栏真实运行视觉系统

重写布局、任务树连线、Planner 节点、状态标记、详情标签、代码块和响应式样式。增强焦点态、窄屏、空状态与信息层级,使业务事实优先于底层技术噪声。
SamLee 15 часов назад
Родитель
Сommit
dce4af8789
1 измененных файлов с 212 добавлено и 232 удалено
  1. 212 232
      visualization/frontend/app/globals.css

+ 212 - 232
visualization/frontend/app/globals.css

@@ -1,249 +1,229 @@
 :root {
-  --font-ui: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
+  --paper: #f4f3ef;
+  --paper-bright: #fbfaf7;
+  --ink: #11110f;
+  --ink-soft: #3d3d38;
+  --muted: #72716a;
+  --faint: #aaa89e;
+  --line: #d3d1c7;
+  --line-dark: #8a887f;
+  --white: #fff;
+  --font-serif: "Songti SC", "STSong", "Noto Serif CJK SC", Georgia, serif;
+  --font-sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
   --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
-  --bg: #101114;
-  --canvas: #15171b;
-  --surface: #202228;
-  --surface-raised: #272a31;
-  --surface-control: #2d3038;
-  --text: #f5f5f6;
-  --text-2: #d5d7dc;
-  --muted: #9ca1ac;
-  --subtle: #747b87;
-  --border: #383c45;
-  --border-strong: #535966;
-  --coral: #ff6d5a;
-  --coral-soft: rgba(255, 109, 90, .13);
-  --blue: #58a7dc;
-  --blue-soft: rgba(88, 167, 220, .12);
-  --purple: #b68cff;
-  --purple-soft: rgba(182, 140, 255, .12);
-  --green: #62c78b;
-  --green-soft: rgba(98, 199, 139, .12);
-  --yellow: #e7b95b;
-  --shadow: 0 15px 35px rgba(0, 0, 0, .34), 0 2px 7px rgba(0, 0, 0, .3);
 }
 
 * { box-sizing: border-box; }
-html, body { width: 100%; height: 100%; margin: 0; }
-body {
-  overflow: hidden;
-  background: var(--bg);
-  color: var(--text);
-  font-family: var(--font-ui);
-  font-size: 14px;
-  line-height: 1.45;
-  text-rendering: optimizeLegibility;
-}
-button, input { font: inherit; }
-button { cursor: pointer; }
-button:focus-visible, input:focus-visible { outline: 2px solid var(--coral); outline-offset: 2px; }
-code { font-family: var(--font-mono); }
+html, body { width: 100%; min-height: 100%; margin: 0; }
+body { background: var(--paper); color: var(--ink); font-family: var(--font-sans); font-size: 14px; line-height: 1.5; }
+button, input, select { font: inherit; }
+button { color: inherit; cursor: pointer; }
+button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
+code, pre { font-family: var(--font-mono); }
+.spin { animation: spin .8s linear infinite; }
+@keyframes spin { to { transform: rotate(360deg); } }
 
-.appFrame { position: relative; width: 100vw; height: 100vh; background: var(--canvas); }
-.canvasShell { position: absolute; inset: 0; transition: right 180ms ease; }
-.canvasShell.withInspector { right: 430px; }
+.execution-observer { width: 100vw; height: 100dvh; display: grid; grid-template-rows: auto minmax(0, 1fr) 32px; overflow: hidden; background: var(--paper); transition: padding-right 180ms ease; }
+.execution-observer.with-drawer { padding-right: min(560px, 42vw); }
 
-/* n8n-style floating chrome */
-.topShell {
-  position: absolute;
-  z-index: 30;
-  top: 14px;
-  left: 14px;
-  right: 14px;
-  height: 64px;
-  display: flex;
-  align-items: center;
-  gap: 18px;
-  padding: 8px 12px;
-  border: 1px solid var(--border);
-  border-radius: 12px;
-  background: rgba(31, 33, 39, .94);
-  box-shadow: var(--shadow);
-  backdrop-filter: blur(16px);
-  transition: right 180ms ease;
-}
-.topShell.withInspector { right: 444px; }
-.brand { display: flex; align-items: center; gap: 10px; padding-right: 18px; border-right: 1px solid var(--border); }
-.brand > span { width: 40px; height: 40px; display: grid; place-items: center; color: var(--coral); border: 1px solid rgba(255,109,90,.4); border-radius: 9px; background: var(--coral-soft); }
-.brand div, .runTitle { display: flex; flex-direction: column; min-width: 0; }
-.brand strong { font-size: 14px; letter-spacing: .02em; }
-.brand small, .runTitle span { color: var(--muted); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
-.runTitle { min-width: 0; flex: 1; }
-.runTitle strong { max-width: 630px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
-.topStats { display: flex; align-items: center; gap: 7px; }
-.topStats > span { min-height: 34px; display: inline-flex; align-items: center; gap: 5px; padding: 0 10px; border: 1px solid var(--border); border-radius: 7px; color: var(--text-2); background: #262930; font-size: 11px; font-weight: 650; white-space: nowrap; }
-.topStats .fakeBadge { color: #ffc5bc; border-color: rgba(255,109,90,.38); background: var(--coral-soft); }
+.mission-header { position: relative; z-index: 4; padding: 18px 28px 14px; border-bottom: 1px solid var(--ink); background: var(--paper-bright); }
+.mission-kicker { display: flex; align-items: center; gap: 18px; margin-bottom: 13px; color: var(--muted); font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; }
+.mission-kicker span + span { padding-left: 18px; border-left: 1px solid var(--line); }
+.mission-title-row { display: flex; align-items: flex-end; gap: 32px; }
+.mission-title-row > div:first-child { min-width: 0; flex: 1; }
+.mission-title-row p { margin: 0 0 3px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .14em; }
+.mission-title-row h1 { max-width: 1120px; margin: 0; font-family: var(--font-serif); font-size: clamp(24px, 2.15vw, 36px); font-weight: 600; line-height: 1.25; letter-spacing: -.025em; }
+.run-actions { display: flex; align-items: flex-end; gap: 7px; flex: none; }
+.run-actions label { display: grid; gap: 4px; }
+.run-actions label > span { color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
+.run-actions select { height: 38px; min-width: 210px; padding: 0 34px 0 11px; border: 1px solid var(--ink); border-radius: 0; background: var(--paper-bright); color: var(--ink); font-family: var(--font-mono); font-size: 11px; }
+.run-actions button, .drawer-header > button { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--ink); background: transparent; }
+.run-actions button:hover, .drawer-header > button:hover { color: var(--white); background: var(--ink); }
+.mission-state { display: flex; align-items: center; gap: 0; margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 11px; }
+.mission-state span { min-width: 0; overflow: hidden; padding: 0 14px; border-left: 1px solid var(--line); text-overflow: ellipsis; white-space: nowrap; }
+.mission-state span:first-child { padding-left: 0; border: 0; }
+.mission-state span:nth-child(2) { flex: 1; }
+.mission-state b { color: var(--ink); font-weight: 750; }
 
-.phaseRail {
-  position: absolute;
-  z-index: 25;
-  top: 92px;
-  left: 14px;
-  width: 218px;
-  padding: 8px;
-  border: 1px solid var(--border);
-  border-radius: 11px;
-  background: rgba(31, 33, 39, .94);
-  box-shadow: var(--shadow);
-  backdrop-filter: blur(14px);
-}
-.railTitle { display: flex; align-items: center; gap: 7px; padding: 7px 9px 10px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
-.phaseRail button { width: 100%; height: 39px; display: flex; align-items: center; gap: 9px; padding: 0 9px; border: 0; border-radius: 7px; color: var(--muted); background: transparent; text-align: left; font-size: 12px; }
-.phaseRail button:hover { color: var(--text); background: var(--surface-control); }
-.phaseRail button.active { color: var(--text); background: #2a2d34; }
-.phaseRail button span:nth-child(2) { flex: 1; }
-.phaseRail button small { min-width: 24px; padding: 2px 5px; border-radius: 10px; color: var(--muted); background: #17191d; text-align: center; font-size: 10px; }
-.phaseDot { width: 9px; height: 9px; flex: none; border-radius: 50%; box-shadow: 0 0 0 3px rgba(255,255,255,.04); }
-.phase-phase-1 { background: var(--coral); }
-.phase-phase-2 { background: var(--blue); }
-.phase-phase-3 { background: var(--purple); }
-.phase-delivery { background: var(--green); }
-.railDivider { height: 1px; margin: 8px 4px; background: var(--border); }
-.checkpoint { margin: 10px 4px 3px; padding: 9px; border: 1px solid rgba(231,185,91,.24); border-radius: 7px; background: rgba(231,185,91,.07); }
-.checkpoint small { display: block; margin-bottom: 5px; color: var(--yellow); font-size: 9px; letter-spacing: .08em; }
-.checkpoint code { display: block; overflow-wrap: anywhere; color: var(--text-2); font-size: 9px; line-height: 1.45; }
+.observer-grid { min-height: 0; display: grid; grid-template-columns: minmax(300px, .76fr) minmax(560px, 1.55fr); }
+.planner-panel, .tree-panel { min-width: 0; min-height: 0; background: var(--paper-bright); }
+.planner-panel { display: grid; grid-template-rows: auto auto minmax(0, 1fr); border-right: 1px solid var(--ink); }
+.tree-panel { display: grid; grid-template-rows: auto auto auto minmax(0, 1fr); }
+.panel-heading { min-height: 75px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
+.panel-heading > div { min-width: 0; }
+.panel-heading span { display: block; margin-bottom: 3px; color: var(--muted); font-family: var(--font-mono); font-size: 9px; font-weight: 700; letter-spacing: .1em; }
+.panel-heading h2 { margin: 0; font-family: var(--font-serif); font-size: 20px; font-weight: 600; }
+.panel-heading > small { max-width: 165px; color: var(--muted); font-size: 10px; line-height: 1.45; text-align: right; }
+
+.planner-equation { height: 42px; display: flex; align-items: center; justify-content: center; gap: 6px; border-bottom: 1px solid var(--line); font-family: var(--font-mono); font-size: 9px; letter-spacing: .04em; }
+.planner-equation b { font-weight: 700; }
+.planner-equation i { color: var(--faint); font-style: normal; }
+.planner-turns { min-height: 0; margin: 0; padding: 12px 12px 30px 26px; overflow: auto; list-style: none; scrollbar-color: var(--line-dark) transparent; }
+.planner-turns li { position: relative; }
+.planner-turns li::before { content: ""; position: absolute; top: 0; bottom: 0; left: -13px; width: 1px; background: var(--line); }
+.planner-turns li:last-child::before { bottom: 50%; }
+.planner-turns li::after { content: ""; position: absolute; z-index: 1; top: 26px; left: -16px; width: 7px; height: 7px; border: 1px solid var(--ink); border-radius: 50%; background: var(--paper-bright); }
+.planner-turns button { width: 100%; min-height: 58px; display: grid; grid-template-columns: 32px minmax(0, 1fr) 16px; align-items: center; gap: 8px; padding: 7px 9px; border: 1px solid transparent; background: transparent; text-align: left; }
+.planner-turns button:hover { border-color: var(--line); background: var(--paper); }
+.planner-turns button.active { border-color: var(--ink); background: var(--ink); color: var(--white); }
+.planner-turns button.active::before { content: "FOCUS"; position: absolute; top: 4px; right: 28px; color: #c8c6bd; font-family: var(--font-mono); font-size: 7px; letter-spacing: .1em; }
+.turn-index { color: var(--muted); font-family: var(--font-mono); font-size: 11px; }
+.planner-turns button.active .turn-index, .planner-turns button.active .turn-copy small, .planner-turns button.active .turn-copy em { color: #c8c6bd; }
+.turn-copy { min-width: 0; display: grid; }
+.turn-copy small { overflow: hidden; color: var(--muted); font-family: var(--font-mono); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
+.turn-copy strong { overflow: hidden; margin-top: 2px; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
+.turn-copy em { overflow: hidden; color: var(--ink-soft); font-size: 10px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
 
-.canvasToolbar { display: flex !important; align-items: center; gap: 9px; margin: 84px 0 0 234px !important; padding: 6px !important; border: 1px solid var(--border); border-radius: 9px; background: rgba(31,33,39,.94) !important; box-shadow: 0 8px 20px rgba(0,0,0,.25); }
-.canvasToolbar label { width: 310px; height: 36px; display: flex; align-items: center; gap: 7px; padding: 0 9px; border-radius: 6px; color: var(--muted); background: #16181c; }
-.canvasToolbar input { min-width: 0; flex: 1; border: 0; outline: 0; color: var(--text); background: transparent; font-size: 12px; }
-.canvasToolbar input::placeholder { color: #737985; }
-.canvasToolbar button { width: 24px; height: 24px; display: grid; place-items: center; padding: 0; border: 0; color: var(--muted); background: transparent; }
-.canvasToolbar > span { padding-right: 7px; color: var(--muted); font-size: 10px; white-space: nowrap; }
+.tree-heading { min-height: 75px; }
+.tree-search { width: min(260px, 36%); height: 34px; display: flex; align-items: center; gap: 6px; padding: 0 7px 0 10px; border-bottom: 1px solid var(--ink); }
+.tree-search input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 11px; }
+.tree-search button { width: 22px; height: 22px; display: grid; place-items: center; padding: 0; border: 0; background: transparent; }
+.turn-note { padding: 13px 20px 12px; border-bottom: 1px solid var(--line); background: var(--paper); }
+.turn-note > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
+.turn-note > div:first-child > span { color: var(--muted); font-family: var(--font-mono); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
+.turn-note h3 { margin: 4px 0 2px; font-size: 13px; }
+.turn-note > p { display: -webkit-box; max-width: 920px; margin: 0; overflow: hidden; color: var(--ink-soft); font-size: 11px; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
+.turn-note details { margin-top: 8px; }
+.turn-note summary { width: max-content; color: var(--muted); cursor: pointer; font-size: 9px; text-decoration: underline; text-underline-offset: 3px; }
+.turn-note details h4 { margin: 12px 0 4px; font-size: 10px; }
+.turn-note details pre { max-height: 180px; margin: 0; padding: 10px; overflow: auto; border: 1px solid var(--line); background: var(--paper-bright); font-size: 9px; white-space: pre-wrap; }
+.tree-key { height: 34px; display: flex; align-items: center; gap: 16px; padding: 0 20px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 9px; }
+.tree-key span { display: inline-flex; align-items: center; gap: 5px; }
+.tree-key i { width: 14px; height: 7px; border: 1px solid var(--line-dark); background: transparent; }
+.tree-key .key-focus { background: var(--ink); }
+.tree-key .key-change { border-width: 2px; border-color: var(--ink); }
+.tree-scroll { min-width: 0; min-height: 0; overflow: auto; padding: 18px 24px 80px; scrollbar-color: var(--line-dark) transparent; }
+.task-tree, .task-children { margin: 0; padding: 0; list-style: none; }
+.task-tree { min-width: 600px; }
+.task-branch { position: relative; }
+.task-children { position: relative; margin-left: 37px; padding: 7px 0 0 28px; border-left: 1px solid var(--line-dark); }
+.task-children > .task-branch { padding-bottom: 7px; }
+.task-children > .task-branch::before { content: ""; position: absolute; top: 25px; left: -28px; width: 27px; height: 1px; background: var(--line-dark); }
+.task-children > .task-branch:last-child::after { content: ""; position: absolute; top: 26px; bottom: 0; left: -29px; width: 3px; background: var(--paper-bright); }
+.task-record { position: relative; z-index: 1; width: min(720px, calc(100% - 8px)); min-height: 52px; display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 7px 10px; border: 1px solid var(--line); background: var(--paper-bright); text-align: left; transition: transform 100ms ease, border-color 100ms ease, background 100ms ease; }
+.task-record:hover { border-color: var(--ink); transform: translateX(2px); }
+.task-record.root-task { min-height: 64px; border-color: var(--ink); }
+.task-record.selected { outline: 2px solid var(--ink); outline-offset: 2px; }
+.task-record.focused { background: var(--ink); color: var(--white); }
+.task-record.changed:not(.focused) { border: 2px solid var(--ink); }
+.task-record.changed::after { content: "THIS MOVE"; position: absolute; top: -6px; right: 9px; padding: 0 4px; background: var(--paper-bright); color: var(--ink); font-family: var(--font-mono); font-size: 7px; letter-spacing: .08em; }
+.task-record.focused.changed::after { background: var(--ink); color: var(--white); }
+.task-path { font-family: var(--font-mono); font-size: 12px; font-weight: 700; }
+.task-body { min-width: 0; display: grid; }
+.task-body small { color: var(--muted); font-size: 8px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
+.focused .task-body small, .focused .task-body em { color: #bbb9b1; }
+.task-body strong { overflow: hidden; font-size: 11px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
+.task-body em { color: var(--muted); font-size: 9px; font-style: normal; }
+.status-mark { display: inline-flex; align-items: center; gap: 4px; padding: 3px 6px; border: 1px solid currentColor; color: var(--ink-soft); font-family: var(--font-mono); font-size: 8px; font-weight: 700; white-space: nowrap; }
+.focused .status-mark, .planner-turns .active .status-mark { color: var(--white); }
+.status-cancelled, .status-failed, .status-stopped { color: var(--muted); text-decoration: line-through; }
 
-.legend { display: flex !important; gap: 12px; padding: 7px 10px !important; border: 1px solid var(--border); border-radius: 8px; background: rgba(31,33,39,.9) !important; box-shadow: 0 7px 18px rgba(0,0,0,.24); }
-.legend span { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 10px; }
-.legend i { width: 17px; height: 2px; border-radius: 2px; }
-.legend-control { background: #68707f; }.legend-artifact { background: var(--blue); }.legend-validation { background: var(--purple); }.legend-publication { background: var(--green); }
+.observer-foot { display: flex; align-items: center; gap: 12px; padding: 0 20px; border-top: 1px solid var(--ink); background: var(--paper-bright); color: var(--muted); font-family: var(--font-mono); font-size: 8px; letter-spacing: .04em; }
+.observer-foot span:first-child { flex: 1; }
+.observer-foot span + span { padding-left: 12px; border-left: 1px solid var(--line); }
 
-/* Phase frames */
-.phaseFrame { width: 100%; height: 100%; border: 1px dashed var(--border-strong); border-radius: 18px; background: rgba(25,27,32,.4); pointer-events: none; }
-.phaseFrame::before { content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: .33; }
-.phaseFrame.tone-coral { border-color: rgba(255,109,90,.36); }.phaseFrame.tone-coral::before { background: linear-gradient(135deg, var(--coral-soft), transparent 28%); }
-.phaseFrame.tone-blue { border-color: rgba(88,167,220,.34); }.phaseFrame.tone-blue::before { background: linear-gradient(135deg, var(--blue-soft), transparent 24%); }
-.phaseFrame.tone-purple { border-color: rgba(182,140,255,.34); }.phaseFrame.tone-purple::before { background: linear-gradient(135deg, var(--purple-soft), transparent 28%); }
-.phaseFrame.tone-green { border-color: rgba(98,199,139,.34); }.phaseFrame.tone-green::before { background: linear-gradient(135deg, var(--green-soft), transparent 28%); }
-.phaseLabel { position: absolute; top: 20px; left: 24px; display: flex; flex-direction: column; gap: 3px; }
-.phaseLabel span { color: var(--text-2); font-size: 18px; font-weight: 720; letter-spacing: -.01em; }
-.phaseLabel small { color: var(--muted); font-size: 11px; }
+.task-inspector { position: fixed; z-index: 20; top: 0; right: 0; bottom: 0; width: min(560px, 42vw); display: grid; grid-template-rows: auto auto auto auto minmax(0, 1fr); border-left: 1px solid var(--ink); background: var(--paper-bright); box-shadow: -18px 0 42px rgba(17, 17, 15, .12); }
+.drawer-loading { display: flex; align-items: center; gap: 10px; padding: 20px; }
+.drawer-loading button { margin-left: auto; border: 0; background: transparent; }
+.drawer-header { min-height: 112px; display: flex; align-items: flex-start; gap: 18px; padding: 19px 18px 15px; border-bottom: 1px solid var(--ink); }
+.drawer-header > div { min-width: 0; flex: 1; }
+.drawer-header span { color: var(--muted); font-family: var(--font-mono); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
+.drawer-header h2 { margin: 7px 0 0; font-family: var(--font-serif); font-size: 21px; font-weight: 600; line-height: 1.35; }
+.drawer-facts { min-height: 40px; display: flex; align-items: center; gap: 8px; padding: 6px 18px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 9px; }
+.drawer-facts code { margin-left: auto; }
+.attempt-switch { min-height: 43px; display: flex; align-items: center; gap: 5px; padding: 6px 18px; overflow-x: auto; border-bottom: 1px solid var(--line); }
+.attempt-switch > span { margin-right: 3px; color: var(--muted); font-family: var(--font-mono); font-size: 8px; letter-spacing: .08em; }
+.attempt-switch button { flex: none; padding: 5px 7px; border: 1px solid var(--line); background: transparent; font-size: 8px; }
+.attempt-switch button.active { border-color: var(--ink); background: var(--ink); color: var(--white); }
+.drawer-tabs { min-height: 42px; display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--ink); }
+.drawer-tabs button { position: relative; border: 0; border-right: 1px solid var(--line); background: transparent; color: var(--muted); font-size: 9px; }
+.drawer-tabs button:last-child { border-right: 0; }
+.drawer-tabs button.active { color: var(--ink); font-weight: 750; }
+.drawer-tabs button.active::after { content: ""; position: absolute; right: 10px; bottom: -1px; left: 10px; height: 3px; background: var(--ink); }
+.drawer-scroll { min-height: 0; overflow: auto; padding: 17px 18px 60px; scrollbar-color: var(--line-dark) transparent; }
+.detail-section { min-width: 0; }
+.loop-line { display: flex; align-items: center; gap: 5px; margin-bottom: 18px; padding: 10px; border: 1px solid var(--ink); font-family: var(--font-mono); font-size: 8px; }
+.loop-line b { font-weight: 800; }
+.loop-line i { color: var(--muted); font-style: normal; }
+.lifecycle-list, .worker-loop { margin: 0; padding: 0; list-style: none; }
+.lifecycle-list li { position: relative; min-height: 70px; display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; gap: 10px; padding-bottom: 15px; }
+.lifecycle-list li:not(:last-child)::before { content: ""; position: absolute; top: 10px; bottom: 0; left: 5px; width: 1px; background: var(--line-dark); }
+.event-glyph { position: relative; z-index: 1; width: 11px; height: 11px; margin-top: 4px; border: 1px solid var(--ink); border-radius: 50%; background: var(--paper-bright); }
+.event-decision { border-radius: 0; background: var(--ink); }
+.lifecycle-list small, .worker-loop small { display: block; color: var(--muted); font-family: var(--font-mono); font-size: 8px; }
+.lifecycle-list strong, .worker-loop strong { display: block; margin-top: 2px; font-size: 11px; }
+.lifecycle-list p { margin: 3px 0 0; color: var(--ink-soft); font-size: 10px; }
+.attempt-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; padding-bottom: 10px; overflow-x: auto; border-bottom: 1px solid var(--ink); color: var(--muted); font-family: var(--font-mono); font-size: 8px; }
+.attempt-meta .status-mark { margin-left: auto; }
+.worker-loop li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 9px; padding: 10px 0; border-bottom: 1px solid var(--line); }
+.worker-loop > li > span { padding-top: 2px; color: var(--muted); font-family: var(--font-mono); font-size: 9px; }
+.worker-loop pre, .code-view pre { max-height: 360px; margin: 7px 0 0; padding: 10px; overflow: auto; border: 1px solid var(--line); background: var(--paper); font-size: 9px; line-height: 1.55; white-space: pre-wrap; }
+.step-tool_call { border-left: 3px solid var(--ink); padding-left: 10px !important; }
+.step-tool_result { color: var(--ink-soft); }
+.json-block { max-width: 100%; max-height: 320px; margin: 7px 0 0; padding: 9px; overflow: auto; border: 1px solid var(--line); background: var(--paper); color: var(--ink-soft); font-size: 8px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
+.data-groups { display: grid; gap: 18px; }
+.data-groups > section { border-top: 1px solid var(--ink); }
+.data-groups header { display: grid; grid-template-columns: 20px minmax(0, 1fr) 24px; gap: 8px; padding: 10px 0 5px; }
+.data-groups h3, .code-view h3 { margin: 0; font-size: 11px; }
+.data-groups p, .code-view section > p { margin: 2px 0 0; color: var(--muted); font-size: 9px; }
+.data-groups header > b { font-family: var(--font-mono); font-size: 10px; text-align: right; }
+.code-view { display: grid; gap: 24px; }
+.code-view section { min-width: 0; padding-top: 10px; border-top: 1px solid var(--ink); }
+.code-view h3 { display: flex; align-items: center; gap: 7px; }
+.empty-copy { margin: 10px 0; color: var(--muted); font-size: 10px; }
 
-/* Flow cards */
-.flowCard {
-  --node-color: #8c94a2;
-  position: relative;
-  width: 100%;
-  overflow: hidden;
-  border: 1px solid #414650;
-  border-radius: 10px;
-  background: #23262c;
-  box-shadow: 0 8px 18px rgba(0,0,0,.25), 0 1px 3px rgba(0,0,0,.3);
-  transition: border-color 130ms ease, box-shadow 130ms ease, opacity 130ms ease, transform 130ms ease;
+.center-state { width: 100vw; height: 100dvh; display: grid; place-content: center; justify-items: center; gap: 8px; background: var(--paper-bright); text-align: center; }
+.center-state h1 { margin: 4px 0 0; font-family: var(--font-serif); font-size: 28px; font-weight: 600; }
+.center-state p { margin: 0; color: var(--muted); }
+.center-state button { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 8px 12px; border: 1px solid var(--ink); background: transparent; }
+
+@media (max-width: 1180px) {
+  .execution-observer.with-drawer { padding-right: 0; }
+  .task-inspector { width: min(600px, 72vw); }
+  .mission-title-row h1 { font-size: 25px; }
+  .observer-grid { grid-template-columns: minmax(280px, .7fr) minmax(500px, 1.3fr); }
 }
-.flowCard::before { content: ""; position: absolute; z-index: 1; top: 0; bottom: 0; left: 0; width: 3px; background: var(--node-color); }
-.flowCard:hover { border-color: #666d7a; box-shadow: 0 12px 24px rgba(0,0,0,.32); transform: translateY(-1px); }
-.flowCard.selected { border-color: var(--node-color); box-shadow: 0 0 0 2px color-mix(in srgb, var(--node-color) 28%, transparent), 0 14px 30px rgba(0,0,0,.4); }
-.flowCard.dimmed { opacity: .16; filter: saturate(.35); }
-.flowCard.type-input { --node-color: #e5b65b; }.flowCard.type-contract { --node-color: #e58a67; }.flowCard.type-operation { --node-color: #7da8e6; }
-.flowCard.type-worker, .flowCard.type-attempt { --node-color: #58a7dc; }.flowCard.type-artifact { --node-color: #48b7c5; }
-.flowCard.type-validator, .flowCard.type-validation { --node-color: #b68cff; }.flowCard.type-decision { --node-color: #ff7f68; }
-.flowCard.type-checkpoint { --node-color: #e7b95b; }.flowCard.type-publication { --node-color: #62c78b; }
-.flowCard.type-transaction { --node-color: #73d69d; }.flowCard.type-readback { --node-color: #78c6a0; }
-.cardHeader { height: 34px; display: flex; align-items: center; gap: 7px; padding: 0 10px 0 12px; border-bottom: 1px solid #373b44; background: #292c33; }
-.nodeIcon { width: 23px; height: 23px; display: grid; place-items: center; flex: none; border-radius: 5px; color: var(--node-color); background: color-mix(in srgb, var(--node-color) 13%, transparent); }
-.cardKind { flex: 1; color: var(--muted); font-size: 9px; font-weight: 720; letter-spacing: .09em; text-transform: uppercase; }
-.sequence { color: #707682; font-family: var(--font-mono); font-size: 9px; }
-.cardBody { min-height: 122px; padding: 12px 12px 10px 15px; }
-.cardBody h3 { margin: 0 0 4px; overflow: hidden; color: var(--text); font-size: 13px; font-weight: 690; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
-.cardBody > p { min-height: 31px; margin: 0 0 8px; display: -webkit-box; overflow: hidden; color: var(--muted); font-size: 10.5px; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
-.recordType { display: flex; align-items: center; gap: 5px; overflow: hidden; color: #aeb3bd; font-family: var(--font-mono); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
-.recordType svg { flex: none; color: var(--node-color); }
-.metricGrid { margin: 10px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 5px; }
-.metricGrid div { min-width: 0; padding: 5px 6px; border-radius: 5px; background: #1b1d22; }
-.metricGrid dt { overflow: hidden; color: #7f8590; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
-.metricGrid dd { margin: 1px 0 0; overflow: hidden; color: var(--text-2); font-size: 9.5px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
-.cardFooter { height: 29px; display: flex; align-items: center; gap: 6px; padding: 0 10px 0 15px; border-top: 1px solid #353941; color: #8c929d; font-size: 8.5px; }
-.cardFooter strong { color: var(--text-2); font-size: 9px; font-weight: 650; text-transform: uppercase; }
-.cardFooter > span:not(.statusDot) { padding-left: 6px; border-left: 1px solid #3b3f47; }
-.cardFooter .taskKind { min-width: 0; margin-left: auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
-.statusDot { width: 6px; height: 6px; flex: none; border-radius: 50%; background: #8d94a0; }
-.statusDot.status-completed, .statusDot.status-passed, .statusDot.status-accepted,
-.statusDot.status-published, .statusDot.status-committed, .statusDot.status-matched,
-.statusDot.status-success, .statusDot.status-200, .statusDot.status-bound,
-.statusDot.status-frozen, .statusDot.status-submitted, .statusDot.status-active,
-.statusDot.status-migrated { background: var(--green); }
-.statusDot.status-partial { background: var(--yellow); }
-.nodeHandle { width: 9px !important; height: 9px !important; border: 2px solid #17191d !important; background: var(--node-color) !important; }
-.react-flow__edge.animated path { stroke-dasharray: 7 5; animation-duration: .65s; }
-.react-flow__controls { overflow: hidden; margin: 0 0 12px 12px; border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 8px 20px rgba(0,0,0,.28); }
-.react-flow__controls-button { width: 30px; height: 30px; border-bottom-color: var(--border); color: var(--text-2); background: #25282e; fill: currentColor; }
-.react-flow__controls-button:hover { background: #30343c; }
 
-/* Inspector */
-.inspector { position: absolute; z-index: 40; top: 0; right: 0; bottom: 0; width: 430px; display: flex; flex-direction: column; border-left: 1px solid var(--border); background: #1d1f24; box-shadow: -18px 0 40px rgba(0,0,0,.3); }
-.inspectorHeader { min-height: 79px; display: flex; align-items: center; gap: 11px; padding: 13px 12px 10px 16px; border-bottom: 1px solid var(--border); }
-.inspectorIcon { width: 38px; height: 38px; display: grid; place-items: center; flex: none; border-radius: 8px; color: var(--coral); background: var(--coral-soft); }
-.inspectorHeader > div:nth-child(2) { min-width: 0; flex: 1; }
-.inspectorHeader span { color: var(--muted); font-size: 9px; letter-spacing: .06em; text-transform: uppercase; }
-.inspectorHeader h2 { margin: 2px 0 0; overflow: hidden; font-size: 16px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
-.iconButton { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 7px; color: var(--muted); background: var(--surface-control); }
-.iconButton:hover { color: var(--text); border-color: var(--border-strong); }
-.inspectorMeta { min-height: 41px; display: flex; align-items: center; gap: 8px; padding: 0 16px; border-bottom: 1px solid var(--border); }
-.inspectorMeta code { min-width: 0; overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
-.pill { padding: 3px 7px; border: 1px solid rgba(98,199,139,.28); border-radius: 12px; color: #a8e8c2; background: var(--green-soft); font-size: 9px; font-weight: 700; text-transform: uppercase; }
-.inspectorTabs { height: 44px; display: flex; gap: 4px; padding: 6px 12px 0; border-bottom: 1px solid var(--border); }
-.inspectorTabs button { position: relative; flex: 1; border: 0; color: var(--muted); background: transparent; font-size: 11px; }
-.inspectorTabs button:hover { color: var(--text-2); }
-.inspectorTabs button.active { color: var(--text); }
-.inspectorTabs button.active::after { content: ""; position: absolute; right: 9px; bottom: -1px; left: 9px; height: 2px; border-radius: 2px 2px 0 0; background: var(--coral); }
-.inspectorScroll { min-height: 0; flex: 1; overflow: auto; padding: 14px 14px 32px; scrollbar-color: #4a4f5a transparent; }
-.modelBanner { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; padding: 11px; border: 1px solid rgba(88,167,220,.25); border-radius: 8px; background: var(--blue-soft); }
-.modelBanner > div { min-width: 0; flex: 1; }
-.modelBanner small { display: block; color: var(--blue); font-size: 8px; font-weight: 720; letter-spacing: .1em; }
-.modelBanner strong { display: block; overflow: hidden; margin-top: 3px; color: var(--text); font-family: var(--font-mono); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
-.modelBanner button { display: flex; align-items: center; gap: 4px; padding: 6px 7px; border: 1px solid var(--border); border-radius: 6px; color: var(--muted); background: #272a30; font-size: 9px; }
-.fieldTree { margin: 0; display: grid; grid-template-columns: minmax(112px, 38%) minmax(0, 1fr); border: 1px solid var(--border); border-bottom: 0; border-radius: 7px 7px 0 0; background: #202329; }
-.fieldTree dt, .fieldTree dd { min-width: 0; margin: 0; padding: 7px 8px; border-bottom: 1px solid var(--border); font-size: 9.5px; }
-.fieldTree dt { overflow-wrap: anywhere; color: #9298a4; font-family: var(--font-mono); background: rgba(255,255,255,.012); }
-.fieldTree dd { overflow-wrap: anywhere; color: var(--text-2); border-left: 1px solid var(--border); }
-.fieldTree .fieldTree { grid-template-columns: minmax(82px, 40%) minmax(0,1fr); border-color: #343842; background: #1a1c21; }
-.fieldTree .fieldTree dt, .fieldTree .fieldTree dd { padding: 5px 6px; border-color: #343842; font-size: 8.5px; }
-.nestedValue { display: flex; flex-direction: column; gap: 5px; }
-.arrayItem { position: relative; display: grid; grid-template-columns: 18px minmax(0,1fr); gap: 4px; }
-.indexBadge { width: 17px; height: 17px; display: grid; place-items: center; border-radius: 4px; color: #8f96a2; background: #2d3139; font-family: var(--font-mono); font-size: 8px; }
-.scalar { font-family: var(--font-mono); }
-.scalar-string { color: #d9dbe0; }.scalar-number { color: #86c6ee; }.scalar-boolean { color: #c09cf4; }.scalar-null, .emptyValue { color: #757c88; font-family: var(--font-mono); font-style: italic; }
-.inspectorSection { margin-bottom: 18px; }
-.inspectorSection h3 { display: flex; align-items: center; gap: 6px; margin: 0 0 9px; color: var(--text-2); font-size: 11px; }
-.inspectorSection h3 span { min-width: 20px; padding: 1px 5px; border-radius: 9px; color: var(--muted); background: #2c3037; text-align: center; font-size: 9px; }
-.edgeList { display: flex; flex-direction: column; gap: 6px; }
-.edgeRow { --edge-color: #68707f; min-height: 48px; display: flex; align-items: center; gap: 8px; padding: 7px 8px; border: 1px solid var(--border); border-left: 3px solid var(--edge-color); border-radius: 7px; background: #24272d; }
-.edgeRow.edge-artifact { --edge-color: var(--blue); }.edgeRow.edge-validation { --edge-color: var(--purple); }.edgeRow.edge-publication { --edge-color: var(--green); }
-.edgeRow > svg { flex: none; color: var(--edge-color); }
-.edgeRow > svg:last-child { margin-left: auto; color: var(--subtle); }
-.edgeRow div { min-width: 0; display: flex; flex-direction: column; }
-.edgeRow strong { overflow: hidden; color: var(--text-2); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
-.edgeRow small { color: var(--muted); font-size: 8.5px; }
-.emptyState { display: flex; align-items: center; gap: 6px; color: var(--subtle); font-size: 10px; }
-.contractFields > p { color: var(--muted); font-size: 10px; }
-.contractFields ol { margin: 0; padding: 0; list-style: none; border: 1px solid var(--border); border-radius: 7px; }
-.contractFields li { min-height: 33px; display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-bottom: 1px solid var(--border); }
-.contractFields li:last-child { border: 0; }
-.contractFields code { min-width: 0; flex: 1; overflow-wrap: anywhere; color: var(--text-2); font-size: 9px; }
-.contractFields li span { color: var(--green); font-size: 8px; text-transform: uppercase; }
+@media (max-width: 820px) {
+  .execution-observer { height: auto; min-height: 100dvh; display: block; overflow: visible; }
+  .mission-header { padding: 14px 16px; }
+  .mission-kicker span:nth-child(2), .mission-kicker span:nth-child(3) { display: none; }
+  .mission-title-row { display: grid; gap: 14px; }
+  .mission-title-row h1 { font-size: 23px; }
+  .run-actions { justify-content: stretch; }
+  .run-actions label { flex: 1; }
+  .run-actions select { width: 100%; }
+  .mission-state { display: grid; gap: 5px; }
+  .mission-state span { padding: 0; border: 0; white-space: normal; }
+  .observer-grid { display: block; }
+  .planner-panel { height: 54vh; border-right: 0; border-bottom: 1px solid var(--ink); }
+  .tree-panel { min-height: 70vh; display: block; }
+  .tree-heading { position: sticky; z-index: 3; top: 0; background: var(--paper-bright); }
+  .turn-note { max-height: 260px; overflow: auto; }
+  .tree-scroll { min-height: 56vh; }
+  .observer-foot { display: none; }
+  .task-inspector { width: 100vw; }
+}
 
-/* Loading and small screens */
-.centerState { width: 100vw; height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; background: radial-gradient(circle at 50% 44%, #252832, var(--bg) 38%); color: var(--text); }
-.centerState > svg { width: 36px; height: 36px; color: var(--coral); }
-.centerState h1 { margin: 15px 0 4px; font-size: 18px; }
-.centerState p { margin: 0; color: var(--muted); }
-.centerState button { display: flex; align-items: center; gap: 6px; margin-top: 15px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 7px; color: var(--text); background: var(--surface-control); }
-.spin { animation: spin 1s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } }
+@media (max-width: 520px) {
+  .panel-heading { padding: 12px 14px; }
+  .panel-heading h2 { font-size: 18px; }
+  .panel-heading > small { display: none; }
+  .tree-heading { display: grid; }
+  .tree-search { width: 100%; }
+  .tree-key { gap: 8px; padding: 0 12px; }
+  .tree-scroll { padding: 14px 12px 60px; }
+  .task-tree { min-width: 520px; }
+  .task-children { margin-left: 20px; padding-left: 20px; }
+  .task-children > .task-branch::before { left: -20px; width: 19px; }
+  .task-children > .task-branch:last-child::after { left: -21px; }
+  .drawer-header { min-height: 96px; padding: 14px; }
+  .drawer-header h2 { font-size: 18px; }
+  .drawer-facts, .attempt-switch { padding-right: 12px; padding-left: 12px; }
+  .drawer-tabs button { font-size: 8px; }
+  .drawer-scroll { padding: 14px 12px 50px; }
+}
 
-@media (max-width: 980px) {
-  .brand small, .topStats > span:not(.fakeBadge), .phaseRail, .runTitle span { display: none; }
-  .topShell { gap: 10px; }
-  .canvasToolbar { margin-left: 4px !important; }
-  .canvasToolbar label { width: min(58vw, 310px); }
-  .inspector { width: min(92vw, 430px); }
-  .canvasShell.withInspector, .topShell.withInspector { right: 0; }
+@media (prefers-reduced-motion: reduce) {
+  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
 }