globals.css 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249
  1. :root {
  2. --font-ui: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  3. --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  4. --bg: #101114;
  5. --canvas: #15171b;
  6. --surface: #202228;
  7. --surface-raised: #272a31;
  8. --surface-control: #2d3038;
  9. --text: #f5f5f6;
  10. --text-2: #d5d7dc;
  11. --muted: #9ca1ac;
  12. --subtle: #747b87;
  13. --border: #383c45;
  14. --border-strong: #535966;
  15. --coral: #ff6d5a;
  16. --coral-soft: rgba(255, 109, 90, .13);
  17. --blue: #58a7dc;
  18. --blue-soft: rgba(88, 167, 220, .12);
  19. --purple: #b68cff;
  20. --purple-soft: rgba(182, 140, 255, .12);
  21. --green: #62c78b;
  22. --green-soft: rgba(98, 199, 139, .12);
  23. --yellow: #e7b95b;
  24. --shadow: 0 15px 35px rgba(0, 0, 0, .34), 0 2px 7px rgba(0, 0, 0, .3);
  25. }
  26. * { box-sizing: border-box; }
  27. html, body { width: 100%; height: 100%; margin: 0; }
  28. body {
  29. overflow: hidden;
  30. background: var(--bg);
  31. color: var(--text);
  32. font-family: var(--font-ui);
  33. font-size: 14px;
  34. line-height: 1.45;
  35. text-rendering: optimizeLegibility;
  36. }
  37. button, input { font: inherit; }
  38. button { cursor: pointer; }
  39. button:focus-visible, input:focus-visible { outline: 2px solid var(--coral); outline-offset: 2px; }
  40. code { font-family: var(--font-mono); }
  41. .appFrame { position: relative; width: 100vw; height: 100vh; background: var(--canvas); }
  42. .canvasShell { position: absolute; inset: 0; transition: right 180ms ease; }
  43. .canvasShell.withInspector { right: 430px; }
  44. /* n8n-style floating chrome */
  45. .topShell {
  46. position: absolute;
  47. z-index: 30;
  48. top: 14px;
  49. left: 14px;
  50. right: 14px;
  51. height: 64px;
  52. display: flex;
  53. align-items: center;
  54. gap: 18px;
  55. padding: 8px 12px;
  56. border: 1px solid var(--border);
  57. border-radius: 12px;
  58. background: rgba(31, 33, 39, .94);
  59. box-shadow: var(--shadow);
  60. backdrop-filter: blur(16px);
  61. transition: right 180ms ease;
  62. }
  63. .topShell.withInspector { right: 444px; }
  64. .brand { display: flex; align-items: center; gap: 10px; padding-right: 18px; border-right: 1px solid var(--border); }
  65. .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); }
  66. .brand div, .runTitle { display: flex; flex-direction: column; min-width: 0; }
  67. .brand strong { font-size: 14px; letter-spacing: .02em; }
  68. .brand small, .runTitle span { color: var(--muted); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
  69. .runTitle { min-width: 0; flex: 1; }
  70. .runTitle strong { max-width: 630px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
  71. .topStats { display: flex; align-items: center; gap: 7px; }
  72. .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; }
  73. .topStats .fakeBadge { color: #ffc5bc; border-color: rgba(255,109,90,.38); background: var(--coral-soft); }
  74. .phaseRail {
  75. position: absolute;
  76. z-index: 25;
  77. top: 92px;
  78. left: 14px;
  79. width: 218px;
  80. padding: 8px;
  81. border: 1px solid var(--border);
  82. border-radius: 11px;
  83. background: rgba(31, 33, 39, .94);
  84. box-shadow: var(--shadow);
  85. backdrop-filter: blur(14px);
  86. }
  87. .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; }
  88. .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; }
  89. .phaseRail button:hover { color: var(--text); background: var(--surface-control); }
  90. .phaseRail button.active { color: var(--text); background: #2a2d34; }
  91. .phaseRail button span:nth-child(2) { flex: 1; }
  92. .phaseRail button small { min-width: 24px; padding: 2px 5px; border-radius: 10px; color: var(--muted); background: #17191d; text-align: center; font-size: 10px; }
  93. .phaseDot { width: 9px; height: 9px; flex: none; border-radius: 50%; box-shadow: 0 0 0 3px rgba(255,255,255,.04); }
  94. .phase-phase-1 { background: var(--coral); }
  95. .phase-phase-2 { background: var(--blue); }
  96. .phase-phase-3 { background: var(--purple); }
  97. .phase-delivery { background: var(--green); }
  98. .railDivider { height: 1px; margin: 8px 4px; background: var(--border); }
  99. .checkpoint { margin: 10px 4px 3px; padding: 9px; border: 1px solid rgba(231,185,91,.24); border-radius: 7px; background: rgba(231,185,91,.07); }
  100. .checkpoint small { display: block; margin-bottom: 5px; color: var(--yellow); font-size: 9px; letter-spacing: .08em; }
  101. .checkpoint code { display: block; overflow-wrap: anywhere; color: var(--text-2); font-size: 9px; line-height: 1.45; }
  102. .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); }
  103. .canvasToolbar label { width: 310px; height: 36px; display: flex; align-items: center; gap: 7px; padding: 0 9px; border-radius: 6px; color: var(--muted); background: #16181c; }
  104. .canvasToolbar input { min-width: 0; flex: 1; border: 0; outline: 0; color: var(--text); background: transparent; font-size: 12px; }
  105. .canvasToolbar input::placeholder { color: #737985; }
  106. .canvasToolbar button { width: 24px; height: 24px; display: grid; place-items: center; padding: 0; border: 0; color: var(--muted); background: transparent; }
  107. .canvasToolbar > span { padding-right: 7px; color: var(--muted); font-size: 10px; white-space: nowrap; }
  108. .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); }
  109. .legend span { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 10px; }
  110. .legend i { width: 17px; height: 2px; border-radius: 2px; }
  111. .legend-control { background: #68707f; }.legend-artifact { background: var(--blue); }.legend-validation { background: var(--purple); }.legend-publication { background: var(--green); }
  112. /* Phase frames */
  113. .phaseFrame { width: 100%; height: 100%; border: 1px dashed var(--border-strong); border-radius: 18px; background: rgba(25,27,32,.4); pointer-events: none; }
  114. .phaseFrame::before { content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: .33; }
  115. .phaseFrame.tone-coral { border-color: rgba(255,109,90,.36); }.phaseFrame.tone-coral::before { background: linear-gradient(135deg, var(--coral-soft), transparent 28%); }
  116. .phaseFrame.tone-blue { border-color: rgba(88,167,220,.34); }.phaseFrame.tone-blue::before { background: linear-gradient(135deg, var(--blue-soft), transparent 24%); }
  117. .phaseFrame.tone-purple { border-color: rgba(182,140,255,.34); }.phaseFrame.tone-purple::before { background: linear-gradient(135deg, var(--purple-soft), transparent 28%); }
  118. .phaseFrame.tone-green { border-color: rgba(98,199,139,.34); }.phaseFrame.tone-green::before { background: linear-gradient(135deg, var(--green-soft), transparent 28%); }
  119. .phaseLabel { position: absolute; top: 20px; left: 24px; display: flex; flex-direction: column; gap: 3px; }
  120. .phaseLabel span { color: var(--text-2); font-size: 18px; font-weight: 720; letter-spacing: -.01em; }
  121. .phaseLabel small { color: var(--muted); font-size: 11px; }
  122. /* Flow cards */
  123. .flowCard {
  124. --node-color: #8c94a2;
  125. position: relative;
  126. width: 100%;
  127. overflow: hidden;
  128. border: 1px solid #414650;
  129. border-radius: 10px;
  130. background: #23262c;
  131. box-shadow: 0 8px 18px rgba(0,0,0,.25), 0 1px 3px rgba(0,0,0,.3);
  132. transition: border-color 130ms ease, box-shadow 130ms ease, opacity 130ms ease, transform 130ms ease;
  133. }
  134. .flowCard::before { content: ""; position: absolute; z-index: 1; top: 0; bottom: 0; left: 0; width: 3px; background: var(--node-color); }
  135. .flowCard:hover { border-color: #666d7a; box-shadow: 0 12px 24px rgba(0,0,0,.32); transform: translateY(-1px); }
  136. .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); }
  137. .flowCard.dimmed { opacity: .16; filter: saturate(.35); }
  138. .flowCard.type-input { --node-color: #e5b65b; }.flowCard.type-contract { --node-color: #e58a67; }.flowCard.type-operation { --node-color: #7da8e6; }
  139. .flowCard.type-worker, .flowCard.type-attempt { --node-color: #58a7dc; }.flowCard.type-artifact { --node-color: #48b7c5; }
  140. .flowCard.type-validator, .flowCard.type-validation { --node-color: #b68cff; }.flowCard.type-decision { --node-color: #ff7f68; }
  141. .flowCard.type-checkpoint { --node-color: #e7b95b; }.flowCard.type-publication { --node-color: #62c78b; }
  142. .flowCard.type-transaction { --node-color: #73d69d; }.flowCard.type-readback { --node-color: #78c6a0; }
  143. .cardHeader { height: 34px; display: flex; align-items: center; gap: 7px; padding: 0 10px 0 12px; border-bottom: 1px solid #373b44; background: #292c33; }
  144. .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); }
  145. .cardKind { flex: 1; color: var(--muted); font-size: 9px; font-weight: 720; letter-spacing: .09em; text-transform: uppercase; }
  146. .sequence { color: #707682; font-family: var(--font-mono); font-size: 9px; }
  147. .cardBody { min-height: 122px; padding: 12px 12px 10px 15px; }
  148. .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; }
  149. .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; }
  150. .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; }
  151. .recordType svg { flex: none; color: var(--node-color); }
  152. .metricGrid { margin: 10px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 5px; }
  153. .metricGrid div { min-width: 0; padding: 5px 6px; border-radius: 5px; background: #1b1d22; }
  154. .metricGrid dt { overflow: hidden; color: #7f8590; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
  155. .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; }
  156. .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; }
  157. .cardFooter strong { color: var(--text-2); font-size: 9px; font-weight: 650; text-transform: uppercase; }
  158. .cardFooter > span:not(.statusDot) { padding-left: 6px; border-left: 1px solid #3b3f47; }
  159. .cardFooter .taskKind { min-width: 0; margin-left: auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  160. .statusDot { width: 6px; height: 6px; flex: none; border-radius: 50%; background: #8d94a0; }
  161. .statusDot.status-completed, .statusDot.status-passed, .statusDot.status-accepted,
  162. .statusDot.status-published, .statusDot.status-committed, .statusDot.status-matched,
  163. .statusDot.status-success, .statusDot.status-200, .statusDot.status-bound,
  164. .statusDot.status-frozen, .statusDot.status-submitted, .statusDot.status-active,
  165. .statusDot.status-migrated { background: var(--green); }
  166. .statusDot.status-partial { background: var(--yellow); }
  167. .nodeHandle { width: 9px !important; height: 9px !important; border: 2px solid #17191d !important; background: var(--node-color) !important; }
  168. .react-flow__edge.animated path { stroke-dasharray: 7 5; animation-duration: .65s; }
  169. .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); }
  170. .react-flow__controls-button { width: 30px; height: 30px; border-bottom-color: var(--border); color: var(--text-2); background: #25282e; fill: currentColor; }
  171. .react-flow__controls-button:hover { background: #30343c; }
  172. /* Inspector */
  173. .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); }
  174. .inspectorHeader { min-height: 79px; display: flex; align-items: center; gap: 11px; padding: 13px 12px 10px 16px; border-bottom: 1px solid var(--border); }
  175. .inspectorIcon { width: 38px; height: 38px; display: grid; place-items: center; flex: none; border-radius: 8px; color: var(--coral); background: var(--coral-soft); }
  176. .inspectorHeader > div:nth-child(2) { min-width: 0; flex: 1; }
  177. .inspectorHeader span { color: var(--muted); font-size: 9px; letter-spacing: .06em; text-transform: uppercase; }
  178. .inspectorHeader h2 { margin: 2px 0 0; overflow: hidden; font-size: 16px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
  179. .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); }
  180. .iconButton:hover { color: var(--text); border-color: var(--border-strong); }
  181. .inspectorMeta { min-height: 41px; display: flex; align-items: center; gap: 8px; padding: 0 16px; border-bottom: 1px solid var(--border); }
  182. .inspectorMeta code { min-width: 0; overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
  183. .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; }
  184. .inspectorTabs { height: 44px; display: flex; gap: 4px; padding: 6px 12px 0; border-bottom: 1px solid var(--border); }
  185. .inspectorTabs button { position: relative; flex: 1; border: 0; color: var(--muted); background: transparent; font-size: 11px; }
  186. .inspectorTabs button:hover { color: var(--text-2); }
  187. .inspectorTabs button.active { color: var(--text); }
  188. .inspectorTabs button.active::after { content: ""; position: absolute; right: 9px; bottom: -1px; left: 9px; height: 2px; border-radius: 2px 2px 0 0; background: var(--coral); }
  189. .inspectorScroll { min-height: 0; flex: 1; overflow: auto; padding: 14px 14px 32px; scrollbar-color: #4a4f5a transparent; }
  190. .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); }
  191. .modelBanner > div { min-width: 0; flex: 1; }
  192. .modelBanner small { display: block; color: var(--blue); font-size: 8px; font-weight: 720; letter-spacing: .1em; }
  193. .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; }
  194. .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; }
  195. .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; }
  196. .fieldTree dt, .fieldTree dd { min-width: 0; margin: 0; padding: 7px 8px; border-bottom: 1px solid var(--border); font-size: 9.5px; }
  197. .fieldTree dt { overflow-wrap: anywhere; color: #9298a4; font-family: var(--font-mono); background: rgba(255,255,255,.012); }
  198. .fieldTree dd { overflow-wrap: anywhere; color: var(--text-2); border-left: 1px solid var(--border); }
  199. .fieldTree .fieldTree { grid-template-columns: minmax(82px, 40%) minmax(0,1fr); border-color: #343842; background: #1a1c21; }
  200. .fieldTree .fieldTree dt, .fieldTree .fieldTree dd { padding: 5px 6px; border-color: #343842; font-size: 8.5px; }
  201. .nestedValue { display: flex; flex-direction: column; gap: 5px; }
  202. .arrayItem { position: relative; display: grid; grid-template-columns: 18px minmax(0,1fr); gap: 4px; }
  203. .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; }
  204. .scalar { font-family: var(--font-mono); }
  205. .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; }
  206. .inspectorSection { margin-bottom: 18px; }
  207. .inspectorSection h3 { display: flex; align-items: center; gap: 6px; margin: 0 0 9px; color: var(--text-2); font-size: 11px; }
  208. .inspectorSection h3 span { min-width: 20px; padding: 1px 5px; border-radius: 9px; color: var(--muted); background: #2c3037; text-align: center; font-size: 9px; }
  209. .edgeList { display: flex; flex-direction: column; gap: 6px; }
  210. .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; }
  211. .edgeRow.edge-artifact { --edge-color: var(--blue); }.edgeRow.edge-validation { --edge-color: var(--purple); }.edgeRow.edge-publication { --edge-color: var(--green); }
  212. .edgeRow > svg { flex: none; color: var(--edge-color); }
  213. .edgeRow > svg:last-child { margin-left: auto; color: var(--subtle); }
  214. .edgeRow div { min-width: 0; display: flex; flex-direction: column; }
  215. .edgeRow strong { overflow: hidden; color: var(--text-2); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
  216. .edgeRow small { color: var(--muted); font-size: 8.5px; }
  217. .emptyState { display: flex; align-items: center; gap: 6px; color: var(--subtle); font-size: 10px; }
  218. .contractFields > p { color: var(--muted); font-size: 10px; }
  219. .contractFields ol { margin: 0; padding: 0; list-style: none; border: 1px solid var(--border); border-radius: 7px; }
  220. .contractFields li { min-height: 33px; display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-bottom: 1px solid var(--border); }
  221. .contractFields li:last-child { border: 0; }
  222. .contractFields code { min-width: 0; flex: 1; overflow-wrap: anywhere; color: var(--text-2); font-size: 9px; }
  223. .contractFields li span { color: var(--green); font-size: 8px; text-transform: uppercase; }
  224. /* Loading and small screens */
  225. .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); }
  226. .centerState > svg { width: 36px; height: 36px; color: var(--coral); }
  227. .centerState h1 { margin: 15px 0 4px; font-size: 18px; }
  228. .centerState p { margin: 0; color: var(--muted); }
  229. .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); }
  230. .spin { animation: spin 1s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } }
  231. @media (max-width: 980px) {
  232. .brand small, .topStats > span:not(.fakeBadge), .phaseRail, .runTitle span { display: none; }
  233. .topShell { gap: 10px; }
  234. .canvasToolbar { margin-left: 4px !important; }
  235. .canvasToolbar label { width: min(58vw, 310px); }
  236. .inspector { width: min(92vw, 430px); }
  237. .canvasShell.withInspector, .topShell.withInspector { right: 0; }
  238. }