* {box-sizing:border-box}
:root {color-scheme:light; font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif; color:#202b26; --ink:#202b26; --muted:#68736d; --border:#e2e7e4; --sage:#f8faf9; --mint:#b2edce; --hover:#f2f3f3; --selected:#e7e9e8; --panel-time:180ms; --ease:cubic-bezier(.2,.7,.3,1)}
body {margin:0; font-size:15px; line-height:1.45; overflow-x:clip}
::selection,option:checked {background:var(--selected); color:var(--ink)}
button,input,select,textarea {font:inherit; color:inherit}
button {cursor:pointer}
button:disabled {cursor:wait; opacity:.55}
:focus {outline:none}
:where(button,[role=button],summary,.radio-row,.node-row) {transition:background-color 140ms ease,color 140ms ease,opacity 140ms ease}
input:focus,textarea:focus,select:focus {outline:none; box-shadow:none}
[hidden],.progress:empty,.error:empty,.toast:empty {display:none!important}
h1,h2,h3,p {margin:0}
h1 {font-size:28px; letter-spacing:-.9px; line-height:1.2; margin-bottom:24px}
h2 {font-size:22px; line-height:1.25; letter-spacing:-.35px}
h3 {font-size:18px}
button,textarea,input,select {border-radius:6px}
.button,.icon-button {display:inline-flex; align-items:center; justify-content:center; gap:8px; background:white; border:1px solid var(--border); border-radius:7px; min-height:40px; padding:0 13px; font-size:14px; line-height:1.25}
:is(.button,.icon-button,.platform,.radio-row,.node-row,summary):is(:hover,:focus-visible) {background:var(--hover)}
.button.primary {background:var(--mint); border-color:var(--mint); padding-inline:22px}
.button.primary:hover {background:#82e9b9}
.icon-button {width:32px; min-height:32px; padding:0; background:transparent; border-color:transparent; flex-shrink:0}
.button svg,.icon-button svg {flex:none}
.shell {display:grid; grid-template-columns:var(--nav-width,240px) minmax(0,1fr); min-height:100dvh}
.sidebar {display:flex; flex-direction:column; padding:18px 16px; background:var(--sage); border-right:1px solid var(--border); position:sticky; top:0; height:100dvh; min-height:0}
.sidebar nav {overflow:auto; min-height:0; scrollbar-width:thin; padding:0 3px}
.sidebar nav>div+div {margin-top:8px}
.flow-list,.node-list {display:grid; gap:5px}
.flow-list {margin-top:5px}
.menu-label {min-width:0; flex:1; line-height:1.35; max-height:2.7em; overflow:hidden; mask-image:linear-gradient(#000,#000),linear-gradient(90deg,#000 calc(100% - 24px),transparent); mask-size:100% 1.35em; mask-position:0 0,0 1.35em; mask-repeat:no-repeat}
.brand {display:inline-flex; align-items:center; gap:10px; color:#202b26; font-size:19px; font-weight:750; letter-spacing:-.4px; padding-left:8px}
.brand i {width:14px; height:14px; border-radius:5px; background:#32dba0}
.side-heading {display:flex; align-items:center; gap:9px; margin:31px 6px 11px; padding-bottom:10px; border-bottom:1px solid var(--border); font-weight:650}
.side-heading .icon-button {margin-left:auto; color:var(--muted)}
.sidebar .side-link,.sidebar .project-link {width:100%; justify-content:flex-start; border:0; background:transparent; text-align:left; color:var(--muted); min-height:36px; padding:9px 10px; overflow-wrap:anywhere}
.sidebar .project-link {font-weight:600; color:var(--ink)}
.sidebar .side-link {padding-left:16px}
.sidebar :where(.side-link,.project-link):is(:hover,:focus-visible) {background:var(--hover)}
:is(.sidebar .active,.sidebar [aria-current],.tabs [aria-current=page],.node-row.selected,.radio-row:has(input:checked)) {background:var(--selected); color:var(--ink)}
.sidebar .active {font-weight:600}
.account {margin-top:auto; padding-top:24px; display:flex; align-items:center; gap:5px; flex-shrink:0}
.account select {flex:1; min-width:0; background:none; border:none; font-size:13px; text-overflow:ellipsis}
.account>.icon-button:last-child {margin-left:auto}
.work {min-width:0}
.drawer-open:has(.drawer.is-open) .content {margin-right:var(--details-width,390px)}
.topbar {height:64px; display:flex; align-items:center; gap:18px; padding:0 32px; border-bottom:1px solid var(--border); position:sticky; top:0; background:white; z-index:2}
.topbar>.icon-button {display:none}
.crumb {display:flex; align-items:center; gap:10px; flex:0 1 40%; min-width:0; color:var(--muted)}
.crumb span,.crumb b {white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.crumb b {color:var(--ink)}
.crumb b:not(:empty)::before {content:"/"; margin-right:10px; color:#839188; font-weight:400}
.tabs {display:flex; gap:6px; height:100%; align-items:center; flex-shrink:0}
.tabs .button {border:0; padding:8px 10px; min-height:0; white-space:nowrap; background:transparent; font-size:14px; color:var(--muted)}
.tabs .button:is(:hover,:focus-visible) {background:var(--hover)}
.tabs .button[aria-current=page] {background:var(--selected); color:var(--ink); font-weight:600}
.content {position:relative; padding:28px 32px 40px; max-width:1900px; transition:margin-right var(--panel-time) var(--ease)}
.composer {border:1px solid var(--border); border-radius:9px; min-height:196px; display:flex; flex-direction:column; justify-content:space-between; gap:16px; padding:15px 21px 20px; }
.composer.compact {min-height:56px; flex-wrap:wrap; flex-direction:row; align-items:center; padding:7px 18px}
.composer.over,.column.dropping {background:var(--selected)}
.drop-label,.muted {color:var(--muted)}
.composer-actions,.actions,.split-actions,.end-actions {display:flex; flex-wrap:wrap; gap:10px; align-items:center}
.actions,.end-actions {justify-content:flex-end; margin-top:22px}
.split-actions {justify-content:space-between}
.progress {display:block; font-size:14px; color:#287654; margin-top:12px}
.error {color:#9c2f27; margin-top:10px; overflow-wrap:anywhere}
.flow-title {display:flex; flex-wrap:wrap; align-items:baseline; gap:10px; margin:25px 0 13px; overflow-wrap:anywhere}
.flow-title small {white-space:nowrap; flex:none}
small,.flow-title small,h3 small {font-size:13px; color:var(--muted); font-weight:400; letter-spacing:normal}
.graph {position:relative; width:100%; height:clamp(380px,48vh,560px); border:1px solid var(--border); border-radius:9px; background:#fafcfb; background-image:radial-gradient(#dfe5e1 .65px,transparent .65px); background-size:18px 18px; overflow:hidden}
.canvas {width:100%; height:100%; display:block; touch-action:none; cursor:grab}
.canvas:active {cursor:grabbing}
.graph-tools {position:absolute; display:flex; align-items:center; color:var(--muted); font-size:12px}
.graph-tools {bottom:8px; right:8px; background:#fffffff0; border:1px solid var(--border); border-radius:6px}
.graph-tools output {min-width:30px; text-align:center; font-variant-numeric:tabular-nums}
.graph-tools .icon-button {width:27px; min-height:27px}
.wire {fill:none; stroke:#b1bcb5; stroke-width:1.5}
.wire.ai {stroke-dasharray:4 4}
.graphic-node {cursor:pointer; color:#314c3e}
.node-shape {fill:white; stroke:#8fa297; stroke-width:1.3}
.graphic-node.test .node-shape {fill:#e3f8ec; stroke:#42c88e}
.graphic-node.automation .node-shape {rx:29px}
.graphic-node.control .node-shape {transform:rotate(45deg) scale(.8); rx:2px}
.node-shape {transition:fill 140ms ease}
.graphic-node:is(:hover,:focus-visible) .node-shape {fill:var(--hover)}
.graphic-node.chosen .node-shape {fill:var(--selected)}
.node-label {font-size:12px; font-weight:500; fill:#56635b; pointer-events:none}
.graphic-node.disabled {opacity:.45}
.board {display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); margin-top:32px}
.column {min-width:0; padding:0 16px; border-left:1px solid var(--border)}
.column:first-child {padding-left:0; border:0}
.column:last-child {padding-right:0}
.column h3 {display:flex; align-items:center; gap:7px; margin-bottom:14px; flex-wrap:wrap}
.shape {width:14px; height:14px; display:inline-block; border:1px solid #83988a; flex:none}
.shape.test {border-color:#48c391; background:#e4faed; border-radius:4px}
.shape.automation {border-radius:50%}
.shape.control {transform:rotate(45deg) scale(.8)}
.node-row {display:flex; align-items:center; min-height:36px; gap:7px; color:var(--muted); border-radius:5px; padding:0 3px; cursor:grab}
.node-row:focus-within {background:var(--hover)}
.node-row.selected {background:var(--selected)}
.node-mark {display:inline-flex}
.node-open {border:0; background:none; text-align:left; min-height:34px; padding:3px; flex:1; min-width:0; cursor:pointer; line-height:1.25; overflow-wrap:anywhere}
.move-control {position:relative; display:flex; justify-content:center; align-items:center; width:28px; height:32px; flex:none}
.move-control select {font-size:16px; position:absolute; inset:0; width:100%; opacity:0; cursor:pointer}
.modal-open {overflow:hidden}
.modal {color:var(--ink); width:min(510px,calc(100% - 32px)); max-height:calc(100dvh - 48px); border:1px solid var(--border); border-radius:12px; padding:24px; box-shadow:0 16px 60px #14241a20}
.modal:has(.platform-grid) {width:min(715px,calc(100% - 32px))}
.modal,.modal::backdrop {opacity:0; transition:opacity 140ms ease}
.modal.is-open,.modal.is-open::backdrop {opacity:1}
.modal::backdrop {background:rgba(28,36,31,.25)}
.modal-head {display:flex; align-items:center; justify-content:space-between; gap:15px; margin-bottom:12px}
.modal-body>.muted {margin-bottom:16px}
.platform-grid,.two-up {display:grid; grid-template-columns:1fr 1fr; gap:12px}
.platform {min-height:65px; border:1px solid var(--border); border-radius:7px; background:white; display:flex; align-items:center; justify-content:flex-start; gap:12px; padding:10px 14px}
.platform img {object-fit:contain; mix-blend-mode:multiply; background:transparent}
.platform small {color:#74817a; margin-left:auto; font-size:12px}
.other-icon {display:grid; place-items:center; width:32px; height:32px; font-size:20px}
.field {display:grid; gap:6px; margin:14px 0; font-size:14px}
.field input,.field select,textarea {width:100%; background:white; border:1px solid var(--border); padding:10px 12px; min-height:44px; font-size:16px}
.remote-options {border:0; padding:0; margin:12px 0; max-height:40vh; overflow:auto}
.radio-row {border:1px solid var(--border); border-radius:7px; display:flex; gap:10px; padding:12px; margin-bottom:7px}
.radio-row input {accent-color:#747976}
.type-name {font:13px ui-monospace,monospace; color:var(--muted); overflow-wrap:anywhere; margin-bottom:14px}
.panel-box {border:1px solid var(--border); border-radius:8px; padding:18px; margin-bottom:16px}
.panel-box h2 {margin-bottom:15px}
.panel-box>.button {margin:0 8px 6px 0}
.panel-box textarea {border:none; min-height:90px; resize:vertical}
.stats {display:flex; gap:35px}
.stats div {display:grid}
.stats span {text-transform:capitalize; color:var(--muted)}
.panel-box progress {display:block; width:100%; accent-color:#26bd7d; margin:10px 0}
.events {padding-inline-start:20px}
.auth-page {min-height:100dvh; display:grid; place-items:center; padding:16px; background:var(--sage)}
.auth-card {width:min(100%,390px); background:white; border:1px solid var(--border); border-radius:12px; padding:30px}
.auth-card h1 {margin:25px 0 22px; font-size:27px}
.auth-card .brand {padding:0}
.auth-card .quiet {border:0; margin-top:8px; padding:0}
.toast:not(:empty) {position:fixed; left:50%; bottom:24px; z-index:3; transform:translateX(-50%); background:var(--ink); color:white; border-radius:7px; padding:10px 16px; max-width:90vw}
.sr-only {position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap}
.drawer {position:fixed; inset:64px 0 0 auto; z-index:5; width:min(var(--details-width,390px),100%); background:white; border-left:1px solid var(--border); box-shadow:-8px 0 28px #15251b0b; display:flex; flex-direction:column; transform:translateX(100%); opacity:0; transition:transform var(--panel-time) var(--ease),opacity var(--panel-time) var(--ease)}
.drawer.is-open {transform:translateX(0); opacity:1}
.resize-handle {position:absolute; inset:0 -4px 0 auto; width:9px; cursor:col-resize; touch-action:none; z-index:6}
.drawer>.resize-handle {left:-4px; right:auto}
.resize-handle::after {content:""; position:absolute; inset:0 3px; background:transparent; transition:background-color 140ms ease}
.resize-handle:is(:hover,:focus-visible)::after {background:#c6ccca}
.panel-resizing {cursor:col-resize; user-select:none}
.panel-resizing .content,.panel-resizing .drawer {transition:none}
.drawer-head {display:flex; align-items:center; justify-content:space-between; gap:16px; padding:22px 24px; border-bottom:1px solid var(--border)}
.drawer-head h2 {font-size:18px; overflow-wrap:anywhere}
.drawer-body {padding:24px; overflow:auto; overscroll-behavior:contain; flex:1}
.drawer-body h3 {font-size:15px; margin-bottom:8px}
.drawer-body .muted {font-size:14px}
.drawer-body li {margin-block:10px}
.node-settings>section+section {margin-top:24px}
.node-summary:not(:empty) {margin-bottom:24px; font-size:13px}
.node-summary p+h3 {margin-top:18px}
.node-summary p+.muted {margin-top:6px}
.note-content {white-space:pre-wrap}
.value-list {margin:0; font-size:13px}
.value-list dd {margin:0; min-width:0}
.value-row {padding:9px 0; border-bottom:1px solid #f0f2f1}
.value-row dt {color:var(--muted); margin-bottom:4px}
.value-list pre {font:12px/1.5 ui-monospace,monospace; margin:0; white-space:pre-wrap; overflow-wrap:anywhere}
.value-list summary {padding:9px 6px; border-radius:5px; cursor:pointer; overflow-wrap:anywhere}
.value-group .value-list {margin-left:12px; padding-left:12px; border-left:1px solid var(--border)}
.value-list .value-reveal {border:0; min-height:26px; font-size:12px; padding:2px 6px; color:var(--muted); margin-top:4px}
.node-settings section>.muted {margin-top:10px; font-size:12px}
.workspace-loading {min-height:280px; display:grid; place-items:center; color:var(--muted); font-size:14px}
.navigation-progress {position:absolute; inset:0 0 auto; height:2px; overflow:hidden; pointer-events:none}
.navigation-progress::after {content:""; position:absolute; width:25%; height:100%; background:#9dcab0; animation:navigation-load 1.2s ease-in-out infinite}
@keyframes navigation-load {from {transform:translateX(-100%)} to {transform:translateX(400%)}}
@media(max-width:900px) {
  .content {position:relative; padding:25px 22px}
  .topbar {padding:0 22px; gap:16px}
  .crumb {flex-basis:auto; flex-grow:1}
  .tabs {gap:4px}
  .tabs .button {padding-inline:7px}
  .column {padding:0 9px}
}
@media(max-width:700px) {
  .drawer {top:92px}
  .drawer-open:has(.drawer.is-open) .content {margin-right:0}
  .graph {height:380px}
  .shell {display:block}
  .sidebar {display:none}
  .menu-open .sidebar {display:flex; position:fixed; inset:92px auto 0 0; width:min(var(--nav-width,240px),calc(100vw - 24px)); height:calc(100dvh - 92px); z-index:4; min-height:0; box-shadow:8px 12px 30px #23382c22}
  .topbar {height:92px; padding:8px 16px 0; display:grid; grid-template-columns:auto minmax(0,1fr); gap:0 9px}
  .topbar>.icon-button {display:inline-flex}
  .crumb {font-size:14px}
  .tabs {grid-column:1/-1; width:100%; justify-content:space-between; gap:4px}
  .tabs .button {margin-bottom:0; font-size:13px}
  .content {position:relative; padding:24px 16px}
  h1 {font-size:26px; margin-bottom:17px}
  .composer,.composer.compact {padding:14px; min-height:150px; align-items:flex-start; flex-direction:column}
  .composer.compact {min-height:100px}
  .composer-actions {gap:7px}
  .composer-actions .button {font-size:13px; padding:0 9px}
  .board,.two-up {grid-template-columns:minmax(0,1fr); gap:15px}
  .column,.column:first-child {border:0; border-bottom:1px solid var(--border); padding:0 0 12px}
  .column h3 {margin-bottom:5px}
  .node-row {min-height:40px}
  .move-control {width:40px; height:40px}
  .platform-grid {gap:7px}
  .platform {min-height:58px; gap:6px; padding:7px; flex-wrap:wrap; font-size:14px}
  .platform img,.other-icon {width:28px; height:28px}
  .platform small {font-size:11px}
  .modal {padding:16px}
  .graph-tools .icon-button {width:32px; min-height:32px}
}
@media(prefers-reduced-motion:reduce) {*,*::before,*::after {transition:none!important; animation:none!important}}
