/* Akış — koyu orman yeşili zemin, neon lime vurgu. Düğüm grupları kendi tonunu taşır. */
:root {
  color-scheme: light;
  --bg: #f3f6f2;
  --canvas: #f3f6f2;
  --panel: #ffffff;
  --panel-2: #f6f9f5;
  --raise: #edf3ec;
  --line: #dfe7e1;
  --line-2: #cbd9cf;
  --text: #13231a;
  --muted: #5c7364;
  --faint: #8aa092;
  --lime: #c6ff3d;
  --lime-ink: #0c1a0f;
  --ink-accent: #3d7a08;
  --red: #d4463a;
  --amber: #b7791f;
  --side: #0f2118;
  /* düğüm grupları (açık zeminde okunur tonlar) */
  --t-trig: #5f8f00;
  --t-meta: #14955a;
  --t-msg: #c26d00;
  --t-ai: #7f52d1;
  --t-data: #9a7a1c;
  --t-flow: #d2522f;
  --t-ads: #c0397a;
  --grid: rgba(19, 60, 35, 0.13);
  --edge: #a3b9ab;
  --edge-run: #4f8f12;
  --node-shadow: 0 1px 2px rgba(16, 40, 26, .06), 0 6px 16px rgba(16, 40, 26, .07);
  --sans: 'Onest', 'Segoe UI', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', monospace;
  --r: 12px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font: 14px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--ink-accent); }
:focus-visible { outline: 2px solid var(--ink-accent); outline-offset: 2px; }

.ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico.sm { width: 15px; height: 15px; }

.btn { display: inline-flex; align-items: center; gap: 7px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px; cursor: pointer; white-space: nowrap; font-weight: 500; transition: border-color .12s, background .12s; }
.btn:hover { border-color: var(--line-2); background: var(--raise); }
.btn.primary { background: var(--lime); color: var(--lime-ink); border-color: var(--lime); font-weight: 600; }
.btn.primary:hover { background: #d4ff6b; }
.btn.primary .ico { fill: currentColor; stroke: none; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { color: var(--text); background: var(--panel-2); }
.btn.icon { padding: 7px; background: transparent; border-color: transparent; color: var(--muted); }
.btn.icon:hover { color: var(--text); background: var(--panel-2); }
.btn.danger { color: var(--red); }
.btn.sm { padding: 5px 11px; font-size: 13px; border-radius: 8px; }
input, select, textarea { background: var(--bg); border: 1px solid var(--line); border-radius: 9px; padding: 9px 11px; width: 100%; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink-accent); box-shadow: 0 0 0 3px rgba(61,122,8,.12); }
textarea { font: 12.5px/1.55 var(--mono); resize: vertical; }
textarea.invalid { border-color: var(--red); }
label { display: block; color: var(--muted); font-size: 11.5px; font-weight: 600; margin: 16px 0 6px; text-transform: uppercase; letter-spacing: .06em; }

/* giriş */
.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; background: radial-gradient(ellipse at 50% 0%, #e3f2d4 0%, var(--bg) 60%); }
.login form { width: min(380px, 100%); background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 32px; }
.login img { width: 52px; }
.login h1 { margin: 16px 0 4px; font-size: 28px; letter-spacing: -.02em; }
.login p { color: var(--muted); margin: 0 0 20px; }
.login .btn { width: 100%; justify-content: center; margin-top: 16px; padding: 11px; }
.err { color: var(--red); min-height: 20px; margin-top: 8px; font-size: 13px; }
.err.box { background: rgba(212,70,58,.06); border: 1px solid rgba(212,70,58,.3); border-radius: 10px; padding: 10px 12px; min-height: 0; }

/* iskelet */
.shell { display: grid; grid-template-columns: 232px 1fr; height: 100vh; }
.side { background: var(--panel); border-right: 1px solid var(--line); padding: 20px 14px; display: flex; flex-direction: column; gap: 2px; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 8px 22px; font-weight: 700; font-size: 20px; letter-spacing: -.02em; }
.brand img { width: 34px; }
.nav { display: block; padding: 9px 12px; border-radius: 10px; color: var(--muted); text-decoration: none; cursor: pointer; font-weight: 500; }
.nav:hover { color: var(--text); background: var(--panel-2); }
.nav.on { color: var(--text); background: rgba(198,255,61,.28); box-shadow: inset 3px 0 0 var(--ink-accent); font-weight: 600; }
.side .grow { flex: 1; }
.main { overflow: auto; min-width: 0; }
.page { padding: 32px; max-width: 1120px; }
.page h2 { margin: 0 0 4px; font-size: 26px; letter-spacing: -.02em; text-wrap: balance; }
.sub { color: var(--muted); margin: 0 0 22px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
.spacer { flex: 1; }

.table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; font-variant-numeric: tabular-nums; }
.table th, .table td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.table th { color: var(--faint); font-weight: 600; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; background: var(--panel-2); }
.table tr:last-child td { border-bottom: 0; }
.table tr.click { cursor: pointer; }
.table tr.click:hover td { background: var(--panel-2); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 99px; font-size: 12px; font-weight: 500; border: 1px solid var(--line); color: var(--muted); }
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.success, .pill.on { color: var(--ink-accent); border-color: rgba(61,122,8,.3); background: rgba(198,255,61,.18); }
.pill.error { color: var(--red); border-color: rgba(212,70,58,.3); background: rgba(212,70,58,.06); }
.pill.running { color: var(--amber); border-color: rgba(183,121,31,.3); }
.empty { padding: 44px; text-align: center; color: var(--muted); background: var(--panel); border: 1px dashed var(--line-2); border-radius: 14px; }

.switch { position: relative; width: 40px; height: 22px; border-radius: 99px; background: var(--line-2); border: 0; cursor: pointer; padding: 0; flex: none; transition: background .15s; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: .15s; }
.switch.on { background: var(--ink-accent); }
.switch.on::after { left: 21px; background: #fff; }

/* grup tonları */
.tone-trig { --tone: var(--t-trig); }
.tone-meta { --tone: var(--t-meta); }
.tone-msg { --tone: var(--t-msg); }
.tone-ai { --tone: var(--t-ai); }
.tone-data { --tone: var(--t-data); }
.tone-flow { --tone: var(--t-flow); }
.tone-ads { --tone: var(--t-ads); }
.tile { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; flex: none; color: var(--tone, var(--muted)); background: color-mix(in srgb, var(--tone, var(--muted)) 14%, transparent); border: 1px solid color-mix(in srgb, var(--tone, var(--muted)) 28%, transparent); }
.tile .ico { width: 21px; height: 21px; }

/* editör */

.editor { display: grid; grid-template-rows: auto 1fr; height: 100vh; }
.topbar { display: flex; gap: 8px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--panel); flex-wrap: wrap; }
.topbar input.name { width: auto; min-width: 180px; flex: 0 1 380px; font-size: 16px; font-weight: 600; background: transparent; border-color: transparent; }
.topbar input.name:hover, .topbar input.name:focus { border-color: var(--line); background: var(--bg); }
.dirty { display: none; font-size: 12px; color: var(--amber); }
.dirty.on { display: inline-flex; align-items: center; gap: 6px; }
.dirty.on::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }
.active-toggle { display: inline-flex; align-items: center; gap: 8px; margin: 0 6px; text-transform: none; letter-spacing: 0; font-size: 13.5px; color: var(--muted); font-weight: 500; }

.work { display: grid; grid-template-columns: 1fr 0; min-height: 0; position: relative; }
.work.open { grid-template-columns: 1fr 400px; }
.canvas { position: relative; overflow: hidden; cursor: grab; background-color: var(--canvas); background-image: radial-gradient(var(--grid) 1.3px, transparent 1.3px); background-size: 22px 22px; touch-action: none; }
.canvas.panning { cursor: grabbing; }
.world { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.edges { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
.edges .edge { fill: none; stroke: var(--edge); stroke-width: 2.25; }
.edges .edge.run { stroke: var(--edge-run); }
.edges .arrow { fill: var(--edge); }
.edges .arrow.run { fill: var(--edge-run); }
.edges .hit { fill: none; stroke: transparent; stroke-width: 14; pointer-events: stroke; cursor: pointer; }
.edges g:hover .edge { stroke: var(--red); }
.edges .ghost { fill: none; stroke: var(--edge-run); stroke-width: 2; stroke-dasharray: 6 5; }

.node { position: absolute; width: 92px; height: 92px; display: grid; place-items: center; background: var(--panel); border: 1.5px solid var(--line-2); border-radius: 18px; cursor: pointer; user-select: none; box-shadow: var(--node-shadow); color: var(--tone); transition: border-color .12s, box-shadow .12s, transform .12s; }
.node.trig { border-radius: 40px 18px 18px 40px; }
.node .ico.big { width: 40px; height: 40px; stroke-width: 1.6; }
.node .bolt { position: absolute; left: -26px; top: 50%; transform: translateY(-50%); color: var(--t-msg); }
.node .bolt .ico { fill: currentColor; stroke: none; width: 16px; height: 16px; }
.node:hover { border-color: color-mix(in srgb, var(--tone) 60%, var(--line-2)); transform: translateY(-1px); }
.node.sel { border-color: var(--tone); box-shadow: 0 0 0 4px color-mix(in srgb, var(--tone) 20%, transparent), var(--node-shadow); }
.node.ok { border-color: color-mix(in srgb, var(--edge-run) 70%, transparent); }
.node.bad { border-color: var(--red); }
.node.off { opacity: .45; }
.node .txt { position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); width: 184px; text-align: center; pointer-events: none; color: var(--text); }
.node .t { font-weight: 600; font-size: 13.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.node .k { color: var(--faint); font-size: 11.5px; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.node .cnt { position: absolute; right: -9px; top: -9px; min-width: 22px; height: 22px; display: grid; place-items: center; background: var(--edge-run); color: #fff; border-radius: 99px; font-size: 11px; padding: 0 6px; font-weight: 700; font-variant-numeric: tabular-nums; border: 2px solid var(--canvas); }
.node .cnt.bad { background: var(--red); }
.stub { position: absolute; width: 30px; height: 2px; background: var(--edge); }
.stub-add { position: absolute; width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--edge); background: var(--panel); color: var(--muted); display: grid; place-items: center; font-size: 15px; line-height: 1; padding: 0; cursor: pointer; }
.stub-add:hover { border-color: var(--edge-run); color: var(--edge-run); }
.port { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid var(--edge); }
.port.in { left: -7px; }
.port.out { right: -7px; cursor: crosshair; }
.port.out::after { content: ''; position: absolute; inset: -8px; }
.port.out:hover { border-color: var(--edge-run); background: var(--edge-run); transform: scale(1.25); }
.port .lbl { position: absolute; left: 14px; top: -16px; font-size: 10.5px; font-weight: 600; color: var(--faint); white-space: nowrap; }

.dock { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; align-items: center; gap: 4px; padding: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 1px 2px rgba(16,40,26,.08), 0 10px 28px rgba(16,40,26,.14); }
.dock .btn.add { background: var(--lime); color: var(--lime-ink); border-color: var(--lime); font-weight: 600; }
.dock .btn.add:hover { background: #d4ff6b; }
.dock .btn.run { background: var(--t-flow); border-color: var(--t-flow); color: #fff; font-weight: 600; }
.dock .btn.run:hover { filter: brightness(1.06); }
.dock .btn.run .ico { fill: currentColor; stroke: none; }
.dock .sep { width: 1px; height: 22px; background: var(--line); margin: 0 4px; }
.dock .zl { min-width: 46px; text-align: center; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }

.start { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); display: grid; gap: 10px; justify-items: center; text-align: center; background: var(--panel); border: 1px dashed var(--line-2); border-radius: 18px; padding: 26px; width: min(560px, calc(100% - 32px)); cursor: default; }
.start b { font-size: 18px; }
.start span { color: var(--muted); }
.start .row { justify-content: center; margin-top: 6px; }

.panel { border-left: 1px solid var(--line); background: var(--panel); overflow: auto; min-width: 0; }
.work:not(.open) .panel { display: none; }
.phead { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 16px 16px 12px; background: var(--panel); border-bottom: 1px solid var(--line); }
.ptitle { flex: 1; min-width: 0; }
.panel h3 { margin: 0; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.panel .typ { color: var(--muted); font-size: 12.5px; }
.pbody { padding: 4px 16px 24px; }
.panel pre { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px; font: 12px/1.55 var(--mono); max-height: 420px; overflow: auto; white-space: pre-wrap; word-break: break-word; margin: 0; }
.panel .search { margin: 14px 16px 4px; width: calc(100% - 32px); }
.plist { padding: 0 16px 24px; }
.plist .grp { color: var(--faint); font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin: 18px 0 8px; }
.plist .item { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: transparent; border: 1px solid transparent; border-radius: 12px; padding: 7px 8px; margin-bottom: 2px; cursor: pointer; font-weight: 500; }
.plist .item:hover, .plist .item:focus-visible { background: var(--panel-2); border-color: var(--line); }
.plist .item .tile { width: 34px; height: 34px; border-radius: 9px; }
.plist .item .tile .ico { width: 18px; height: 18px; }
.tabs { display: flex; gap: 4px; padding: 12px 16px 0; }
.tabs button { background: transparent; border: 1px solid transparent; border-radius: 9px; padding: 6px 12px; cursor: pointer; color: var(--muted); font-size: 13px; font-weight: 500; }
.tabs button:hover { color: var(--text); }
.tabs button.on { color: var(--text); background: var(--raise); border-color: var(--line); }
.note { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; color: var(--muted); font-size: 13px; margin-top: 14px; }
code.url { display: block; padding: 9px 11px; background: var(--bg); border: 1px solid var(--line); border-radius: 9px; word-break: break-all; }
details.more { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 12px; }
details.more summary { cursor: pointer; color: var(--muted); font-size: 13px; font-weight: 600; }
.pfoot { margin-top: 20px; }
.check { display: flex; gap: 9px; align-items: center; color: var(--text); text-transform: none; letter-spacing: 0; font-size: 13.5px; font-weight: 400; margin: 10px 0 0; }
.check input { width: auto; accent-color: var(--ink-accent); }

.toast { position: fixed; right: 16px; bottom: 16px; background: var(--panel); border: 1px solid var(--line-2); border-left: 4px solid var(--ink-accent); padding: 12px 16px; border-radius: 12px; max-width: 420px; z-index: 50; white-space: pre-wrap; box-shadow: 0 10px 30px rgba(16,40,26,.16); }
.toast.bad { border-left-color: var(--red); }
.modal { position: fixed; inset: 0; background: rgba(15,33,24,.45); display: grid; place-items: center; z-index: 40; padding: 16px; }
.modal .box { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 24px; width: min(540px, 100%); max-height: 90vh; overflow: auto; }
.modal h3 { margin: 0 0 6px; font-size: 18px; }
.hint { color: var(--muted); font-size: 12.5px; margin-top: 6px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin-bottom: 12px; }
.card summary { cursor: pointer; }
code { font-family: var(--mono); font-size: 12.5px; color: var(--ink-accent); }

/* formlar */
textarea.code { font: 12.5px/1.55 var(--mono); }
.rows { display: grid; gap: 6px; }
.rowline { display: flex; gap: 6px; align-items: center; }
.rowline > input, .rowline > select { flex: 1; min-width: 0; }
.rowline .btn.icon { padding: 5px; }
.addrow { justify-self: start; color: var(--ink-accent); }
.checks { display: grid; gap: 2px; }
.checks .check { margin-top: 6px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line-2); background: var(--panel); border-radius: 99px; padding: 4px 11px; cursor: pointer; font-size: 13px; color: var(--muted); }
.chip.on { background: rgba(198,255,61,.35); border-color: var(--ink-accent); color: var(--text); font-weight: 600; }
.hint.good { color: var(--ink-accent); }
.hint.bad { color: var(--red); }
.hint.inline { display: block; }
/* bağlantılar */
.credlist { display: grid; gap: 8px; }
.credrow { display: flex; align-items: center; gap: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; flex-wrap: wrap; }
.grow2 { flex: 1; min-width: 180px; }
.credform .grp { color: var(--faint); font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin: 16px 0 8px; }
.svcgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px; }
.svc { display: flex; align-items: center; gap: 10px; text-align: left; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; cursor: pointer; font-weight: 500; }
.svc:hover { border-color: var(--ink-accent); background: var(--panel-2); }
.svc .tile, .svchead .tile { width: 34px; height: 34px; border-radius: 9px; }
.svc .tile .ico, .svchead .tile .ico { width: 18px; height: 18px; }
.svchead { display: flex; align-items: center; gap: 12px; padding-bottom: 6px; }
.linkbtn { display: block; background: none; border: 0; padding: 0; margin-top: 2px; color: var(--ink-accent); cursor: pointer; font-size: 12.5px; }
.modal .box { width: min(640px, 100%); }
/* sabit veri, alan seçici */
.node .pinb { position: absolute; left: -9px; top: -9px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--t-ai); color: #fff; border: 2px solid var(--canvas); }
.node .pinb .ico { width: 12px; height: 12px; }
label.withpick { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pick { border: 1px solid var(--line-2); background: var(--panel); color: var(--ink-accent); border-radius: 6px; font: 600 11px/1 var(--mono); padding: 3px 6px; cursor: pointer; text-transform: none; letter-spacing: 0; }
.pick:hover { border-color: var(--ink-accent); }
.picker { position: fixed; z-index: 60; width: 360px; max-width: calc(100vw - 24px); max-height: 380px; display: flex; flex-direction: column; gap: 8px; background: var(--panel); border: 1px solid var(--line-2); border-radius: 14px; padding: 10px; box-shadow: 0 16px 40px rgba(16,40,26,.2); }
.plist2 { overflow: auto; min-height: 0; flex: 1; }
.pgrp { font-size: 11.5px; font-weight: 700; color: var(--faint); text-transform: uppercase; letter-spacing: .05em; margin: 8px 4px 4px; display: flex; gap: 6px; align-items: center; }
.pgrp .tag { text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--ink-accent); background: rgba(198,255,61,.3); border-radius: 99px; padding: 0 7px; }
.pitem { display: flex; justify-content: space-between; gap: 10px; width: 100%; text-align: left; background: none; border: 0; border-radius: 8px; padding: 5px 6px; cursor: pointer; }
.pitem:hover { background: var(--panel-2); }
.pitem code { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pval { color: var(--faint); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 45%; }
.page.narrow { max-width: 760px; }
section.card h3 { margin: 0 0 4px; font-size: 16px; }
section.card { padding: 20px; margin-bottom: 16px; }

/* canlı ilerleme */
.node.running { border-color: var(--t-ai); box-shadow: 0 0 0 4px color-mix(in srgb, var(--t-ai) 22%, transparent), var(--node-shadow); animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px color-mix(in srgb, var(--t-ai) 8%, transparent), var(--node-shadow); } }
.livebar { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; background: var(--panel); border: 1px solid var(--line-2); border-radius: 99px; padding: 8px 16px; box-shadow: 0 6px 20px rgba(16,40,26,.14); z-index: 4; max-width: calc(100% - 32px); }
.livebar .lt { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.livebar .lm { color: var(--muted); font-size: 12.5px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--t-ai); animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .node.running, .spin { animation: none; } }

/* toplu seçim */
.multilist { display: grid; gap: 6px; margin-top: 14px; }
.mrow { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.mrow .tile { width: 30px; height: 30px; border-radius: 8px; }
.mrow .tile .ico { width: 16px; height: 16px; }
.marquee { position: absolute; border: 1.5px solid var(--edge-run); background: rgba(79,143,18,.08); border-radius: 4px; pointer-events: none; z-index: 5; }
.node.multi { border-color: var(--edge-run); box-shadow: 0 0 0 4px rgba(79,143,18,.18), var(--node-shadow); }
.canvas.space { cursor: grab; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media (max-width: 900px) {
  .work.open { grid-template-columns: 1fr; grid-template-rows: 1fr 55%; }
  .work.open .panel { border-left: 0; border-top: 1px solid var(--line); }
  .dock { bottom: 10px; max-width: calc(100% - 24px); overflow-x: auto; }
  .topbar .btn.ghost { display: none; }
}
@media (max-width: 800px) {
  .shell { grid-template-columns: 1fr; grid-template-rows: auto 1fr; height: auto; min-height: 100vh; }
  .side { flex-direction: row; overflow-x: auto; padding: 8px; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand { padding: 0 8px; font-size: 16px; }
  .nav.on { box-shadow: inset 0 -3px 0 var(--ink-accent); }
  .side .grow { display: none; }
  .page { padding: 20px 16px; }
  .table { display: block; overflow-x: auto; }
}
