ソースを参照

可视化:恢复黑色卡片式智能任务界面

重构全局样式为深色 N8N 风格卡片、阶段泳道、状态色、回环连线和响应式证据面板,在保留信息密度的同时突出任务流转与返工。
SamLee 12 時間 前
コミット
2cbf39e038
1 ファイル変更1051 行追加222 行削除
  1. 1051 222
      visualization/frontend/app/globals.css

+ 1051 - 222
visualization/frontend/app/globals.css

@@ -1,229 +1,1058 @@
 :root {
-  --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;
-}
-
-* { box-sizing: border-box; }
-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; }
+  color-scheme: dark;
+  --bg: oklch(0.145 0.012 255);
+  --bg-dots: oklch(0.31 0.018 255 / 0.28);
+  --surface: oklch(0.19 0.014 255);
+  --surface-raised: oklch(0.235 0.018 255);
+  --surface-active: oklch(0.275 0.028 252);
+  --line: oklch(0.37 0.022 255);
+  --line-strong: oklch(0.53 0.035 255);
+  --ink: oklch(0.95 0.008 255);
+  --ink-soft: oklch(0.79 0.018 255);
+  --muted: oklch(0.66 0.022 255);
+  --plan: oklch(0.72 0.12 255);
+  --execute: oklch(0.76 0.12 205);
+  --validate: oklch(0.78 0.13 150);
+  --decide: oklch(0.78 0.14 74);
+  --loop: oklch(0.76 0.15 48);
+  --danger: oklch(0.7 0.17 27);
+  --focus: oklch(0.82 0.13 220);
+  --success-line: oklch(0.58 0.09 150);
+  --loop-line: oklch(0.48 0.1 48);
+  --loop-surface: oklch(0.25 0.045 48);
+  --error-line: oklch(0.48 0.1 28);
+  --error-surface: oklch(0.24 0.055 28);
+  --error-ink: oklch(0.86 0.09 28);
+  --shadow: 0 20px 60px oklch(0.05 0.01 255 / 0.4);
+  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", sans-serif;
+}
+
+* {
+  box-sizing: border-box;
+}
+
+html,
+body {
+  min-height: 100%;
+  margin: 0;
+}
+
+body {
+  background: var(--bg);
+  color: var(--ink);
+  font-size: 14px;
+  line-height: 1.5;
+}
+
+button,
+select {
+  font: inherit;
+}
+
+button {
+  color: inherit;
+}
+
+button:focus-visible,
+select:focus-visible {
+  outline: 2px solid var(--focus);
+  outline-offset: 3px;
+}
+
+h1,
+h2,
+h3,
+p {
+  margin: 0;
+}
+
+code,
+pre,
+.ribbon-label,
+.cycle-index,
+.step-type,
+.status-chip,
+.step-metrics,
+.evidence-summary dd {
+  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
+}
+
+.journey-app {
+  min-height: 100dvh;
+  background-color: var(--bg);
+  background-image: radial-gradient(circle, var(--bg-dots) 1px, transparent 1px);
+  background-size: 22px 22px;
+}
+
+.app-bar {
+  position: sticky;
+  z-index: 30;
+  top: 0;
+  min-height: 68px;
+  display: flex;
+  align-items: center;
+  gap: 18px;
+  padding: 10px 22px;
+  border-bottom: 1px solid var(--line);
+  background: oklch(0.16 0.014 255 / 0.96);
+}
+
+.brand-lockup {
+  min-width: 230px;
+  display: flex;
+  align-items: center;
+  gap: 11px;
+}
+
+.brand-mark {
+  width: 24px;
+  height: 24px;
+  border: 1px solid var(--line-strong);
+  border-radius: 7px;
+  background:
+    linear-gradient(90deg, transparent 45%, var(--ink) 45% 55%, transparent 55%),
+    linear-gradient(transparent 45%, var(--ink) 45% 55%, transparent 55%);
+  box-shadow: inset 0 0 0 5px var(--surface-raised);
+}
+
+.brand-lockup > div {
+  display: grid;
+}
+
+.brand-lockup strong {
+  font-size: 14px;
+}
+
+.brand-lockup span:last-child {
+  color: var(--muted);
+  font-size: 11px;
+}
+
+.run-picker {
+  min-width: 0;
+  flex: 1;
+  display: flex;
+  align-items: center;
+  gap: 10px;
+}
+
+.run-picker > span {
+  flex: none;
+  color: var(--muted);
+  font-size: 11px;
+}
+
+.run-picker select {
+  width: min(540px, 100%);
+  height: 44px;
+  padding: 0 32px 0 11px;
+  overflow: hidden;
+  border: 1px solid var(--line);
+  border-radius: 8px;
+  background: var(--surface);
+  color: var(--ink-soft);
+  text-overflow: ellipsis;
+}
+
+.zoom-switch {
+  display: flex;
+  padding: 3px;
+  border: 1px solid var(--line);
+  border-radius: 9px;
+  background: var(--surface);
+}
+
+.zoom-switch button {
+  min-width: 54px;
+  height: 44px;
+  padding: 0 10px;
+  border: 0;
+  border-radius: 6px;
+  background: transparent;
+  color: var(--muted);
+  cursor: pointer;
+}
+
+.zoom-switch button:hover {
+  color: var(--ink);
+}
+
+.zoom-switch button.active {
+  background: var(--surface-active);
+  color: var(--ink);
+  box-shadow: 0 1px 8px oklch(0.06 0.01 255 / 0.35);
+}
+
+.icon-button {
+  width: 44px;
+  height: 44px;
+  display: grid;
+  flex: none;
+  place-items: center;
+  border: 1px solid var(--line);
+  border-radius: 8px;
+  background: var(--surface);
+  cursor: pointer;
+}
+
+.icon-button:hover {
+  border-color: var(--line-strong);
+  background: var(--surface-raised);
+}
+
+.mission-strip {
+  display: flex;
+  align-items: stretch;
+  gap: 20px;
+  padding: 20px 24px;
+  border-bottom: 1px solid var(--line);
+  background: oklch(0.17 0.016 255 / 0.92);
+}
+
+.mission-copy {
+  min-width: 0;
+  flex: 1;
+  display: flex;
+  align-items: center;
+  gap: 14px;
+}
+
+.mission-copy h1 {
+  max-width: 75ch;
+  font-size: 18px;
+  font-weight: 650;
+  line-height: 1.4;
+  text-wrap: pretty;
+}
+
+.run-status {
+  flex: none;
+  padding: 4px 7px;
+  border: 1px solid var(--line-strong);
+  border-radius: 999px;
+  color: var(--ink-soft);
+  font-size: 10px;
+}
+
+.input-ribbon {
+  max-width: 48%;
+  display: flex;
+  align-items: center;
+  gap: 8px;
+  padding: 8px 10px;
+  overflow: hidden;
+  border: 1px solid var(--line);
+  border-radius: 8px;
+  background: var(--surface);
+  color: var(--muted);
+  white-space: nowrap;
+}
+
+.input-ribbon > * + * {
+  padding-left: 8px;
+  border-left: 1px solid var(--line);
+}
+
+.input-ribbon strong {
+  max-width: 320px;
+  overflow: hidden;
+  color: var(--ink-soft);
+  font-size: 12px;
+  text-overflow: ellipsis;
+}
+
+.input-ribbon span {
+  font-size: 10px;
+}
+
+.ribbon-label {
+  color: var(--execute);
+  font-size: 9px !important;
+  font-weight: 700;
+}
+
+.workspace {
+  min-height: calc(100dvh - 136px);
+  display: flex;
+}
+
+.overview-canvas,
+.flow-canvas {
+  width: min(1180px, calc(100% - 48px));
+  margin: 0 auto;
+  padding: 42px 0 100px;
+}
+
+.zoom-evidence .flow-canvas {
+  width: auto;
+  min-width: 0;
+  flex: 1;
+  padding-right: 32px;
+  padding-left: 32px;
+}
+
+.overview-heading,
+.flow-heading {
+  display: flex;
+  align-items: flex-end;
+  justify-content: space-between;
+  gap: 32px;
+  margin-bottom: 28px;
+}
+
+.overview-heading h2,
+.flow-heading h2 {
+  font-size: 21px;
+  letter-spacing: -0.015em;
+  text-wrap: balance;
+}
+
+.overview-heading p,
+.flow-heading p {
+  max-width: 55ch;
+  color: var(--muted);
+  font-size: 12px;
+  line-height: 1.65;
+  text-wrap: pretty;
+}
+
+.flow-heading > div > span {
+  display: block;
+  margin-bottom: 5px;
+  color: var(--plan);
+  font-size: 11px;
+}
+
+.cycle-line {
+  position: relative;
+  margin: 0;
+  padding: 0;
+  list-style: none;
+}
+
+.cycle-line::before {
+  content: "";
+  position: absolute;
+  top: 34px;
+  bottom: 34px;
+  left: 31px;
+  width: 1px;
+  background: var(--line-strong);
+}
+
+.cycle-line li {
+  position: relative;
+  padding-bottom: 14px;
+}
+
+.cycle-line button {
+  position: relative;
+  width: 100%;
+  min-height: 138px;
+  display: grid;
+  grid-template-columns: 62px minmax(0, 1fr) 24px;
+  align-items: center;
+  gap: 18px;
+  padding: 20px 22px 20px 0;
+  border: 1px solid var(--line);
+  border-radius: 12px;
+  background: var(--surface);
+  text-align: left;
+  cursor: pointer;
+  transition: 180ms cubic-bezier(0.22, 1, 0.36, 1);
+}
+
+.cycle-line button:hover {
+  border-color: var(--line-strong);
+  background: var(--surface-raised);
+  transform: translateY(-2px);
+  box-shadow: var(--shadow);
+}
+
+.cycle-index {
+  position: relative;
+  z-index: 1;
+  width: 30px;
+  height: 30px;
+  display: grid;
+  place-items: center;
+  margin-left: 16px;
+  border: 1px solid var(--line-strong);
+  border-radius: 50%;
+  background: var(--bg);
+  color: var(--ink-soft);
+  font-size: 10px;
+}
+
+.cycle-copy {
+  min-width: 0;
+}
+
+.cycle-title-row {
+  display: flex;
+  align-items: center;
+  gap: 12px;
+}
+
+.cycle-title-row h3 {
+  font-size: 16px;
+}
+
+.cycle-copy > p {
+  max-width: 78ch;
+  margin-top: 7px;
+  overflow: hidden;
+  color: var(--ink-soft);
+  font-size: 12px;
+  text-overflow: ellipsis;
+  white-space: nowrap;
+}
+
+.cycle-facts,
+.cycle-lifecycle {
+  display: flex;
+  align-items: center;
+  flex-wrap: wrap;
+  gap: 7px;
+}
+
+.cycle-facts {
+  margin-top: 12px;
+}
+
+.cycle-facts span,
+.cycle-lifecycle span {
+  display: inline-flex;
+  align-items: center;
+  gap: 4px;
+  color: var(--muted);
+  font-size: 10px;
+}
+
+.cycle-facts span {
+  padding: 3px 7px;
+  border: 1px solid var(--line);
+  border-radius: 999px;
+}
+
+.cycle-lifecycle {
+  margin-top: 12px;
+}
+
+.cycle-lifecycle span + span::before {
+  content: "→";
+  margin-right: 3px;
+  color: var(--line-strong);
+}
+
+.cycle-lifecycle span.present {
+  color: var(--ink-soft);
+}
+
+.cycle-open {
+  color: var(--muted);
+  transform: rotate(-90deg);
+}
+
+.status-chip {
+  display: inline-flex;
+  align-items: center;
+  padding: 3px 7px;
+  border: 1px solid var(--line-strong);
+  border-radius: 999px;
+  color: var(--ink-soft);
+  font-size: 9px;
+  font-weight: 700;
+  white-space: nowrap;
+}
+
+.status-passed,
+.status-completed,
+.status-accept,
+.status-accepted {
+  border-color: var(--success-line);
+  color: var(--validate);
+}
+
+.status-failed,
+.status-retry,
+.status-revise,
+.status-needs_replan {
+  border-color: var(--loop-line);
+  color: var(--loop);
+}
+
+.causal-spine {
+  position: relative;
+  width: min(900px, 100%);
+  margin: 0 auto;
+}
+
+.causal-spine::before {
+  content: "";
+  position: absolute;
+  top: 12px;
+  bottom: 12px;
+  left: 50%;
+  width: 1px;
+  background: var(--line-strong);
+}
+
+.flow-unit {
+  position: relative;
+  z-index: 1;
+  padding-bottom: 42px;
+}
+
+.flow-connector {
+  position: absolute;
+  bottom: 11px;
+  left: calc(50% - 13px);
+  width: 26px;
+  height: 26px;
+  display: grid;
+  place-items: center;
+  border: 1px solid var(--line-strong);
+  border-radius: 50%;
+  background: var(--bg);
+  color: var(--muted);
+}
+
+.step-node {
+  position: relative;
+  width: min(680px, 100%);
+  margin: 0 auto;
+  overflow: hidden;
+  border: 1px solid var(--line);
+  border-radius: 12px;
+  background: var(--surface);
+  box-shadow: 0 12px 34px oklch(0.05 0.01 255 / 0.2);
+  transition: 180ms cubic-bezier(0.22, 1, 0.36, 1);
+}
+
+.step-node::before {
+  content: "";
+  display: block;
+  height: 2px;
+  background: var(--plan);
+}
+
+.step-node.type-execute::before { background: var(--execute); }
+.step-node.type-validate::before { background: var(--validate); }
+.step-node.type-decide::before { background: var(--decide); }
+
+.step-node:hover,
+.step-node.selected {
+  border-color: var(--line-strong);
+  background: var(--surface-raised);
+  box-shadow: var(--shadow);
+  transform: translateY(-2px);
+}
+
+.step-node:has(.step-hit-area:focus-visible) {
+  outline: 2px solid var(--focus);
+  outline-offset: 3px;
+}
+
+.step-node.selected {
+  outline: 1px solid var(--focus);
+  outline-offset: 3px;
+}
+
+.step-hit-area {
+  position: absolute;
+  z-index: 2;
+  inset: 0;
+  width: 100%;
+  border: 0;
+  background: transparent;
+  cursor: pointer;
+}
+
+.step-header,
+.step-node > h3,
+.step-layer,
+.data-flow,
+.contract-summary,
+.step-metrics {
+  position: relative;
+  z-index: 1;
+}
+
+.step-header {
+  display: flex;
+  align-items: center;
+  justify-content: space-between;
+  padding: 15px 18px 0;
+}
+
+.step-type {
+  display: inline-flex;
+  align-items: center;
+  gap: 6px;
+  color: var(--plan);
+  font-size: 10px;
+  font-weight: 700;
+}
+
+.type-execute .step-type { color: var(--execute); }
+.type-validate .step-type { color: var(--validate); }
+.type-decide .step-type { color: var(--decide); }
+
+.step-node > h3 {
+  padding: 12px 18px 16px;
+  font-size: 17px;
+  line-height: 1.35;
+  text-wrap: balance;
+}
+
+.step-layer {
+  display: grid;
+  grid-template-columns: 84px minmax(0, 1fr);
+  gap: 4px 10px;
+  padding: 12px 18px;
+  border-top: 1px solid var(--line);
+}
+
+.step-layer > span {
+  display: inline-flex;
+  align-items: center;
+  gap: 6px;
+  color: var(--plan);
+  font-size: 11px;
+  font-weight: 700;
+}
+
+.process-layer > span {
+  color: var(--execute);
+}
+
+.step-layer p {
+  color: var(--ink-soft);
+  font-size: 12px;
+  line-height: 1.65;
+  text-wrap: pretty;
+}
+
+.step-layer small {
+  grid-column: 2;
+  color: var(--muted);
+  font-size: 9px;
+}
+
+.data-flow {
+  display: grid;
+  grid-template-columns: 1fr 20px 1fr;
+  align-items: stretch;
+  gap: 8px;
+  padding: 12px 18px;
+  border-top: 1px solid var(--line);
+  background: oklch(0.16 0.014 255 / 0.45);
+}
+
+.data-flow > div {
+  min-width: 0;
+  display: flex;
+  align-items: center;
+  flex-wrap: wrap;
+  gap: 6px;
+}
+
+.data-flow > svg {
+  align-self: center;
+  color: var(--line-strong);
+  transform: rotate(-90deg);
+}
+
+.data-flow span {
+  display: inline-flex;
+  align-items: center;
+  gap: 5px;
+  color: var(--execute);
+  font-size: 10px;
+}
+
+.data-flow b {
+  max-width: 210px;
+  overflow: hidden;
+  padding: 3px 6px;
+  border: 1px solid var(--line);
+  border-radius: 5px;
+  color: var(--ink-soft);
+  font-size: 9px;
+  font-weight: 500;
+  text-overflow: ellipsis;
+  white-space: nowrap;
+}
+
+.contract-summary {
+  display: flex;
+  align-items: center;
+  flex-wrap: wrap;
+  gap: 7px;
+  padding: 11px 18px;
+  border-top: 1px solid var(--line);
+  color: var(--muted);
+  font-size: 9px;
+}
+
+.contract-summary strong {
+  margin-right: 3px;
+  color: var(--ink-soft);
+  font-size: 10px;
+}
+
+.contract-summary span + span::before {
+  content: "·";
+  margin-right: 7px;
+  color: var(--line-strong);
+}
+
+.step-metrics {
+  min-height: 34px;
+  display: flex;
+  align-items: center;
+  gap: 10px;
+  padding: 7px 18px;
+  border-top: 1px solid var(--line);
+  color: var(--muted);
+  font-size: 9px;
+}
+
+.evidence-cue {
+  display: inline-flex;
+  align-items: center;
+  gap: 4px;
+  margin-left: auto;
+  color: var(--ink-soft);
+}
+
+.parallel-frame {
+  width: min(1040px, 100%);
+  margin: 0 auto;
+  padding: 14px;
+  border: 1px dashed var(--line-strong);
+  border-radius: 14px;
+  background: oklch(0.16 0.014 255 / 0.78);
+}
+
+.parallel-heading {
+  display: flex;
+  align-items: center;
+  gap: 7px;
+  padding: 2px 3px 12px;
+  color: var(--execute);
+  font-size: 11px;
+}
+
+.parallel-lanes {
+  display: grid;
+  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
+  gap: 12px;
+}
+
+.parallel-lanes .step-node {
+  width: 100%;
+  height: 100%;
+}
+
+.parallel-badge {
+  position: absolute;
+  z-index: 3;
+  top: 49px;
+  right: 18px;
+  color: var(--execute);
+  font-family: "SFMono-Regular", Consolas, monospace;
+  font-size: 9px;
+}
+
+.loop-ribbon {
+  position: relative;
+  z-index: 3;
+  display: flex;
+  align-items: center;
+  gap: 6px;
+  padding: 9px 18px;
+  border-top: 1px solid var(--loop-line);
+  background: var(--loop-surface);
+  color: var(--loop);
+  font-size: 10px;
+  font-weight: 700;
+}
+
+.projection-note {
+  width: min(680px, 100%);
+  margin: 12px auto 0;
+  color: var(--muted);
+  font-size: 10px;
+  text-align: center;
+}
+
+.evidence-panel {
+  position: sticky;
+  top: 68px;
+  width: min(520px, 42vw);
+  height: calc(100dvh - 68px);
+  flex: none;
+  display: grid;
+  grid-template-rows: auto minmax(0, 1fr);
+  border-left: 1px solid var(--line);
+  background: var(--surface);
+  box-shadow: -24px 0 70px oklch(0.05 0.01 255 / 0.32);
+}
+
+.evidence-header {
+  min-height: 92px;
+  display: flex;
+  align-items: flex-start;
+  gap: 16px;
+  padding: 17px 18px;
+  border-bottom: 1px solid var(--line);
+}
+
+.evidence-header > div {
+  min-width: 0;
+  flex: 1;
+}
+
+.evidence-header span {
+  color: var(--plan);
+  font-size: 10px;
+}
+
+.evidence-header h2 {
+  margin-top: 6px;
+  font-size: 15px;
+  line-height: 1.4;
+}
+
+.evidence-header button {
+  width: 44px;
+  height: 44px;
+  display: grid;
+  flex: none;
+  place-items: center;
+  border: 1px solid var(--line);
+  border-radius: 7px;
+  background: transparent;
+  cursor: pointer;
+}
+
+.evidence-scroll {
+  min-height: 0;
+  overflow: auto;
+  padding: 16px 18px 60px;
+}
+
+.evidence-summary {
+  padding: 14px;
+  border: 1px solid var(--line);
+  border-radius: 9px;
+  background: var(--surface-raised);
+}
+
+.evidence-summary > span {
+  color: var(--plan);
+  font-size: 10px;
+}
+
+.evidence-summary > p {
+  margin-top: 7px;
+  color: var(--ink-soft);
+  font-size: 12px;
+  line-height: 1.65;
+}
+
+.evidence-summary dl {
+  margin: 14px 0 0;
+}
+
+.evidence-summary dl > div {
+  display: grid;
+  grid-template-columns: 72px minmax(0, 1fr);
+  gap: 8px;
+  padding: 5px 0;
+  border-top: 1px solid var(--line);
+}
+
+.evidence-summary dt {
+  color: var(--muted);
+  font-size: 9px;
+}
+
+.evidence-summary dd {
+  min-width: 0;
+  margin: 0;
+  overflow: hidden;
+  color: var(--ink-soft);
+  font-size: 9px;
+  text-overflow: ellipsis;
+  white-space: nowrap;
+}
+
+.evidence-block,
+.artifact-reader {
+  margin-top: 13px;
+  border: 1px solid var(--line);
+  border-radius: 9px;
+  background: var(--bg);
+}
+
+.evidence-block summary,
+.artifact-reader header {
+  display: flex;
+  align-items: center;
+  gap: 7px;
+  padding: 11px 12px;
+  color: var(--ink-soft);
+  cursor: pointer;
+  font-size: 11px;
+}
+
+.evidence-block pre,
+.artifact-reader pre {
+  max-height: 420px;
+  margin: 0;
+  padding: 12px;
+  overflow: auto;
+  border-top: 1px solid var(--line);
+  color: var(--ink-soft);
+  font-size: 9px;
+  line-height: 1.6;
+  white-space: pre-wrap;
+  overflow-wrap: anywhere;
+}
+
+.artifact-reader button {
+  min-height: 44px;
+  margin: 0 12px 12px;
+  padding: 7px 10px;
+  border: 1px solid var(--line-strong);
+  border-radius: 6px;
+  background: var(--surface-raised);
+  cursor: pointer;
+}
+
+.artifact-reader > p {
+  padding: 0 12px 12px;
+  color: var(--danger);
+  font-size: 10px;
+}
+
+.evidence-empty,
+.empty-state {
+  color: var(--muted);
+}
+
+.evidence-empty {
+  padding: 24px 18px;
+}
+
+.empty-state {
+  min-height: 100dvh;
+  display: grid;
+  place-content: center;
+  gap: 10px;
+  padding: 24px;
+  text-align: center;
+}
+
+.empty-state h1 {
+  color: var(--ink);
+  font-size: 22px;
+}
+
+.empty-state p {
+  max-width: 65ch;
+}
+
+.error-banner {
+  display: flex;
+  align-items: center;
+  gap: 9px;
+  padding: 9px 22px;
+  border-bottom: 1px solid var(--error-line);
+  background: var(--error-surface);
+  color: var(--error-ink);
+  font-size: 11px;
+}
+
+.error-banner span {
+  flex: 1;
+}
+
+.error-banner button {
+  min-height: 44px;
+  border: 0;
+  background: transparent;
+  color: inherit;
+  text-decoration: underline;
+  cursor: pointer;
+}
+
+.journey-skeleton {
+  width: min(900px, calc(100% - 48px));
+  display: grid;
+  gap: 18px;
+  margin: 60px auto;
+}
+
+.journey-skeleton span {
+  height: 150px;
+  border: 1px solid var(--line);
+  border-radius: 12px;
+  background: var(--surface);
+  animation: skeleton-pulse 1.6s ease-in-out infinite;
+}
+
+.is-spinning {
+  animation: spin 900ms linear infinite;
+}
+
 @keyframes spin { to { transform: rotate(360deg); } }
+@keyframes skeleton-pulse { 50% { background: var(--surface-raised); } }
+
+@media (max-width: 1000px) {
+  .app-bar { flex-wrap: wrap; }
+  .brand-lockup { flex: 1; }
+  .run-picker { order: 3; flex-basis: 100%; }
+  .run-picker select { max-width: none; }
+  .mission-strip { display: grid; }
+  .input-ribbon { max-width: 100%; overflow-x: auto; }
+  .zoom-evidence .flow-canvas { display: none; }
+  .evidence-panel { width: 100%; border-left: 0; }
+}
 
-.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); }
-
-.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; }
-
-.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; }
-
-.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; }
-
-.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); }
-
-.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; }
-
-.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); }
-}
-
-@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; }
-}
-
-@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: 700px) {
+  .app-bar { padding: 10px 14px; }
+  .brand-lockup span:last-child { display: none; }
+  .zoom-switch button { min-width: 48px; }
+  .mission-strip { padding: 16px 14px; }
+  .mission-copy { align-items: flex-start; }
+  .mission-copy h1 { font-size: 15px; }
+  .input-ribbon span:nth-last-child(-n + 2) { display: none; }
+  .overview-canvas,
+  .flow-canvas { width: calc(100% - 28px); padding-top: 28px; }
+  .overview-heading,
+  .flow-heading { display: grid; gap: 10px; }
+  .cycle-line::before { left: 24px; }
+  .cycle-line button { grid-template-columns: 48px minmax(0, 1fr); padding-right: 14px; }
+  .cycle-index { margin-left: 9px; }
+  .cycle-open { display: none; }
+  .cycle-copy > p { white-space: normal; }
+  .step-layer { grid-template-columns: 1fr; }
+  .step-layer small { grid-column: 1; }
+  .data-flow { grid-template-columns: 1fr; }
+  .data-flow > svg { margin: 0 auto; transform: none; }
+  .parallel-lanes { grid-template-columns: 1fr; }
 }
 
 @media (prefers-reduced-motion: reduce) {
-  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
+  *,
+  *::before,
+  *::after {
+    scroll-behavior: auto !important;
+    animation-duration: 0.01ms !important;
+    transition-duration: 0.01ms !important;
+  }
 }