| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249 |
- :root {
- --font-ui: 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); }
- .appFrame { position: relative; width: 100vw; height: 100vh; background: var(--canvas); }
- .canvasShell { position: absolute; inset: 0; transition: right 180ms ease; }
- .canvasShell.withInspector { right: 430px; }
- /* 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); }
- .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; }
- .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; }
- .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); }
- /* 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; }
- /* 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;
- }
- .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; }
- /* 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: 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; }
- }
|