globals.css 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229
  1. :root {
  2. --paper: #f4f3ef;
  3. --paper-bright: #fbfaf7;
  4. --ink: #11110f;
  5. --ink-soft: #3d3d38;
  6. --muted: #72716a;
  7. --faint: #aaa89e;
  8. --line: #d3d1c7;
  9. --line-dark: #8a887f;
  10. --white: #fff;
  11. --font-serif: "Songti SC", "STSong", "Noto Serif CJK SC", Georgia, serif;
  12. --font-sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  13. --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  14. }
  15. * { box-sizing: border-box; }
  16. html, body { width: 100%; min-height: 100%; margin: 0; }
  17. body { background: var(--paper); color: var(--ink); font-family: var(--font-sans); font-size: 14px; line-height: 1.5; }
  18. button, input, select { font: inherit; }
  19. button { color: inherit; cursor: pointer; }
  20. button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
  21. code, pre { font-family: var(--font-mono); }
  22. .spin { animation: spin .8s linear infinite; }
  23. @keyframes spin { to { transform: rotate(360deg); } }
  24. .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; }
  25. .execution-observer.with-drawer { padding-right: min(560px, 42vw); }
  26. .mission-header { position: relative; z-index: 4; padding: 18px 28px 14px; border-bottom: 1px solid var(--ink); background: var(--paper-bright); }
  27. .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; }
  28. .mission-kicker span + span { padding-left: 18px; border-left: 1px solid var(--line); }
  29. .mission-title-row { display: flex; align-items: flex-end; gap: 32px; }
  30. .mission-title-row > div:first-child { min-width: 0; flex: 1; }
  31. .mission-title-row p { margin: 0 0 3px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .14em; }
  32. .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; }
  33. .run-actions { display: flex; align-items: flex-end; gap: 7px; flex: none; }
  34. .run-actions label { display: grid; gap: 4px; }
  35. .run-actions label > span { color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
  36. .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; }
  37. .run-actions button, .drawer-header > button { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--ink); background: transparent; }
  38. .run-actions button:hover, .drawer-header > button:hover { color: var(--white); background: var(--ink); }
  39. .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; }
  40. .mission-state span { min-width: 0; overflow: hidden; padding: 0 14px; border-left: 1px solid var(--line); text-overflow: ellipsis; white-space: nowrap; }
  41. .mission-state span:first-child { padding-left: 0; border: 0; }
  42. .mission-state span:nth-child(2) { flex: 1; }
  43. .mission-state b { color: var(--ink); font-weight: 750; }
  44. .observer-grid { min-height: 0; display: grid; grid-template-columns: minmax(300px, .76fr) minmax(560px, 1.55fr); }
  45. .planner-panel, .tree-panel { min-width: 0; min-height: 0; background: var(--paper-bright); }
  46. .planner-panel { display: grid; grid-template-rows: auto auto minmax(0, 1fr); border-right: 1px solid var(--ink); }
  47. .tree-panel { display: grid; grid-template-rows: auto auto auto minmax(0, 1fr); }
  48. .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); }
  49. .panel-heading > div { min-width: 0; }
  50. .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; }
  51. .panel-heading h2 { margin: 0; font-family: var(--font-serif); font-size: 20px; font-weight: 600; }
  52. .panel-heading > small { max-width: 165px; color: var(--muted); font-size: 10px; line-height: 1.45; text-align: right; }
  53. .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; }
  54. .planner-equation b { font-weight: 700; }
  55. .planner-equation i { color: var(--faint); font-style: normal; }
  56. .planner-turns { min-height: 0; margin: 0; padding: 12px 12px 30px 26px; overflow: auto; list-style: none; scrollbar-color: var(--line-dark) transparent; }
  57. .planner-turns li { position: relative; }
  58. .planner-turns li::before { content: ""; position: absolute; top: 0; bottom: 0; left: -13px; width: 1px; background: var(--line); }
  59. .planner-turns li:last-child::before { bottom: 50%; }
  60. .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); }
  61. .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; }
  62. .planner-turns button:hover { border-color: var(--line); background: var(--paper); }
  63. .planner-turns button.active { border-color: var(--ink); background: var(--ink); color: var(--white); }
  64. .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; }
  65. .turn-index { color: var(--muted); font-family: var(--font-mono); font-size: 11px; }
  66. .planner-turns button.active .turn-index, .planner-turns button.active .turn-copy small, .planner-turns button.active .turn-copy em { color: #c8c6bd; }
  67. .turn-copy { min-width: 0; display: grid; }
  68. .turn-copy small { overflow: hidden; color: var(--muted); font-family: var(--font-mono); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
  69. .turn-copy strong { overflow: hidden; margin-top: 2px; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
  70. .turn-copy em { overflow: hidden; color: var(--ink-soft); font-size: 10px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
  71. .tree-heading { min-height: 75px; }
  72. .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); }
  73. .tree-search input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 11px; }
  74. .tree-search button { width: 22px; height: 22px; display: grid; place-items: center; padding: 0; border: 0; background: transparent; }
  75. .turn-note { padding: 13px 20px 12px; border-bottom: 1px solid var(--line); background: var(--paper); }
  76. .turn-note > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  77. .turn-note > div:first-child > span { color: var(--muted); font-family: var(--font-mono); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
  78. .turn-note h3 { margin: 4px 0 2px; font-size: 13px; }
  79. .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; }
  80. .turn-note details { margin-top: 8px; }
  81. .turn-note summary { width: max-content; color: var(--muted); cursor: pointer; font-size: 9px; text-decoration: underline; text-underline-offset: 3px; }
  82. .turn-note details h4 { margin: 12px 0 4px; font-size: 10px; }
  83. .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; }
  84. .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; }
  85. .tree-key span { display: inline-flex; align-items: center; gap: 5px; }
  86. .tree-key i { width: 14px; height: 7px; border: 1px solid var(--line-dark); background: transparent; }
  87. .tree-key .key-focus { background: var(--ink); }
  88. .tree-key .key-change { border-width: 2px; border-color: var(--ink); }
  89. .tree-scroll { min-width: 0; min-height: 0; overflow: auto; padding: 18px 24px 80px; scrollbar-color: var(--line-dark) transparent; }
  90. .task-tree, .task-children { margin: 0; padding: 0; list-style: none; }
  91. .task-tree { min-width: 600px; }
  92. .task-branch { position: relative; }
  93. .task-children { position: relative; margin-left: 37px; padding: 7px 0 0 28px; border-left: 1px solid var(--line-dark); }
  94. .task-children > .task-branch { padding-bottom: 7px; }
  95. .task-children > .task-branch::before { content: ""; position: absolute; top: 25px; left: -28px; width: 27px; height: 1px; background: var(--line-dark); }
  96. .task-children > .task-branch:last-child::after { content: ""; position: absolute; top: 26px; bottom: 0; left: -29px; width: 3px; background: var(--paper-bright); }
  97. .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; }
  98. .task-record:hover { border-color: var(--ink); transform: translateX(2px); }
  99. .task-record.root-task { min-height: 64px; border-color: var(--ink); }
  100. .task-record.selected { outline: 2px solid var(--ink); outline-offset: 2px; }
  101. .task-record.focused { background: var(--ink); color: var(--white); }
  102. .task-record.changed:not(.focused) { border: 2px solid var(--ink); }
  103. .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; }
  104. .task-record.focused.changed::after { background: var(--ink); color: var(--white); }
  105. .task-path { font-family: var(--font-mono); font-size: 12px; font-weight: 700; }
  106. .task-body { min-width: 0; display: grid; }
  107. .task-body small { color: var(--muted); font-size: 8px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
  108. .focused .task-body small, .focused .task-body em { color: #bbb9b1; }
  109. .task-body strong { overflow: hidden; font-size: 11px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
  110. .task-body em { color: var(--muted); font-size: 9px; font-style: normal; }
  111. .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; }
  112. .focused .status-mark, .planner-turns .active .status-mark { color: var(--white); }
  113. .status-cancelled, .status-failed, .status-stopped { color: var(--muted); text-decoration: line-through; }
  114. .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; }
  115. .observer-foot span:first-child { flex: 1; }
  116. .observer-foot span + span { padding-left: 12px; border-left: 1px solid var(--line); }
  117. .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); }
  118. .drawer-loading { display: flex; align-items: center; gap: 10px; padding: 20px; }
  119. .drawer-loading button { margin-left: auto; border: 0; background: transparent; }
  120. .drawer-header { min-height: 112px; display: flex; align-items: flex-start; gap: 18px; padding: 19px 18px 15px; border-bottom: 1px solid var(--ink); }
  121. .drawer-header > div { min-width: 0; flex: 1; }
  122. .drawer-header span { color: var(--muted); font-family: var(--font-mono); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
  123. .drawer-header h2 { margin: 7px 0 0; font-family: var(--font-serif); font-size: 21px; font-weight: 600; line-height: 1.35; }
  124. .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; }
  125. .drawer-facts code { margin-left: auto; }
  126. .attempt-switch { min-height: 43px; display: flex; align-items: center; gap: 5px; padding: 6px 18px; overflow-x: auto; border-bottom: 1px solid var(--line); }
  127. .attempt-switch > span { margin-right: 3px; color: var(--muted); font-family: var(--font-mono); font-size: 8px; letter-spacing: .08em; }
  128. .attempt-switch button { flex: none; padding: 5px 7px; border: 1px solid var(--line); background: transparent; font-size: 8px; }
  129. .attempt-switch button.active { border-color: var(--ink); background: var(--ink); color: var(--white); }
  130. .drawer-tabs { min-height: 42px; display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--ink); }
  131. .drawer-tabs button { position: relative; border: 0; border-right: 1px solid var(--line); background: transparent; color: var(--muted); font-size: 9px; }
  132. .drawer-tabs button:last-child { border-right: 0; }
  133. .drawer-tabs button.active { color: var(--ink); font-weight: 750; }
  134. .drawer-tabs button.active::after { content: ""; position: absolute; right: 10px; bottom: -1px; left: 10px; height: 3px; background: var(--ink); }
  135. .drawer-scroll { min-height: 0; overflow: auto; padding: 17px 18px 60px; scrollbar-color: var(--line-dark) transparent; }
  136. .detail-section { min-width: 0; }
  137. .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; }
  138. .loop-line b { font-weight: 800; }
  139. .loop-line i { color: var(--muted); font-style: normal; }
  140. .lifecycle-list, .worker-loop { margin: 0; padding: 0; list-style: none; }
  141. .lifecycle-list li { position: relative; min-height: 70px; display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; gap: 10px; padding-bottom: 15px; }
  142. .lifecycle-list li:not(:last-child)::before { content: ""; position: absolute; top: 10px; bottom: 0; left: 5px; width: 1px; background: var(--line-dark); }
  143. .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); }
  144. .event-decision { border-radius: 0; background: var(--ink); }
  145. .lifecycle-list small, .worker-loop small { display: block; color: var(--muted); font-family: var(--font-mono); font-size: 8px; }
  146. .lifecycle-list strong, .worker-loop strong { display: block; margin-top: 2px; font-size: 11px; }
  147. .lifecycle-list p { margin: 3px 0 0; color: var(--ink-soft); font-size: 10px; }
  148. .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; }
  149. .attempt-meta .status-mark { margin-left: auto; }
  150. .worker-loop li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 9px; padding: 10px 0; border-bottom: 1px solid var(--line); }
  151. .worker-loop > li > span { padding-top: 2px; color: var(--muted); font-family: var(--font-mono); font-size: 9px; }
  152. .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; }
  153. .step-tool_call { border-left: 3px solid var(--ink); padding-left: 10px !important; }
  154. .step-tool_result { color: var(--ink-soft); }
  155. .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; }
  156. .data-groups { display: grid; gap: 18px; }
  157. .data-groups > section { border-top: 1px solid var(--ink); }
  158. .data-groups header { display: grid; grid-template-columns: 20px minmax(0, 1fr) 24px; gap: 8px; padding: 10px 0 5px; }
  159. .data-groups h3, .code-view h3 { margin: 0; font-size: 11px; }
  160. .data-groups p, .code-view section > p { margin: 2px 0 0; color: var(--muted); font-size: 9px; }
  161. .data-groups header > b { font-family: var(--font-mono); font-size: 10px; text-align: right; }
  162. .code-view { display: grid; gap: 24px; }
  163. .code-view section { min-width: 0; padding-top: 10px; border-top: 1px solid var(--ink); }
  164. .code-view h3 { display: flex; align-items: center; gap: 7px; }
  165. .empty-copy { margin: 10px 0; color: var(--muted); font-size: 10px; }
  166. .center-state { width: 100vw; height: 100dvh; display: grid; place-content: center; justify-items: center; gap: 8px; background: var(--paper-bright); text-align: center; }
  167. .center-state h1 { margin: 4px 0 0; font-family: var(--font-serif); font-size: 28px; font-weight: 600; }
  168. .center-state p { margin: 0; color: var(--muted); }
  169. .center-state button { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 8px 12px; border: 1px solid var(--ink); background: transparent; }
  170. @media (max-width: 1180px) {
  171. .execution-observer.with-drawer { padding-right: 0; }
  172. .task-inspector { width: min(600px, 72vw); }
  173. .mission-title-row h1 { font-size: 25px; }
  174. .observer-grid { grid-template-columns: minmax(280px, .7fr) minmax(500px, 1.3fr); }
  175. }
  176. @media (max-width: 820px) {
  177. .execution-observer { height: auto; min-height: 100dvh; display: block; overflow: visible; }
  178. .mission-header { padding: 14px 16px; }
  179. .mission-kicker span:nth-child(2), .mission-kicker span:nth-child(3) { display: none; }
  180. .mission-title-row { display: grid; gap: 14px; }
  181. .mission-title-row h1 { font-size: 23px; }
  182. .run-actions { justify-content: stretch; }
  183. .run-actions label { flex: 1; }
  184. .run-actions select { width: 100%; }
  185. .mission-state { display: grid; gap: 5px; }
  186. .mission-state span { padding: 0; border: 0; white-space: normal; }
  187. .observer-grid { display: block; }
  188. .planner-panel { height: 54vh; border-right: 0; border-bottom: 1px solid var(--ink); }
  189. .tree-panel { min-height: 70vh; display: block; }
  190. .tree-heading { position: sticky; z-index: 3; top: 0; background: var(--paper-bright); }
  191. .turn-note { max-height: 260px; overflow: auto; }
  192. .tree-scroll { min-height: 56vh; }
  193. .observer-foot { display: none; }
  194. .task-inspector { width: 100vw; }
  195. }
  196. @media (max-width: 520px) {
  197. .panel-heading { padding: 12px 14px; }
  198. .panel-heading h2 { font-size: 18px; }
  199. .panel-heading > small { display: none; }
  200. .tree-heading { display: grid; }
  201. .tree-search { width: 100%; }
  202. .tree-key { gap: 8px; padding: 0 12px; }
  203. .tree-scroll { padding: 14px 12px 60px; }
  204. .task-tree { min-width: 520px; }
  205. .task-children { margin-left: 20px; padding-left: 20px; }
  206. .task-children > .task-branch::before { left: -20px; width: 19px; }
  207. .task-children > .task-branch:last-child::after { left: -21px; }
  208. .drawer-header { min-height: 96px; padding: 14px; }
  209. .drawer-header h2 { font-size: 18px; }
  210. .drawer-facts, .attempt-switch { padding-right: 12px; padding-left: 12px; }
  211. .drawer-tabs button { font-size: 8px; }
  212. .drawer-scroll { padding: 14px 12px 50px; }
  213. }
  214. @media (prefers-reduced-motion: reduce) {
  215. *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
  216. }