@layer app {
  body { background: #121212; color: #f3f0eb; }

  /* ================================================================ tokens */
  .flu {
    --bg: #121212;
    --bg-1: #161616;
    --bg-2: #1c1c1c;
    --bg-3: #242424;
    --bg-4: #2e2e2e;
    --line: rgba(255, 245, 235, .07);
    --line-2: rgba(255, 245, 235, .11);
    --line-3: rgba(255, 245, 235, .18);
    --ink: #f3f0eb;
    --ink-2: #bbb5ad;
    --ink-3: #8c867e;
    --acc: #ff7a59;
    --acc-2: #ff9b80;
    --acc-ink: #1f0d06;
    --acc-soft: rgba(255, 122, 89, .14);
    --c-trigger: #ff7a59;
    --c-action: #6cb6ff;
    --c-ai: #c39bff;
    --c-logic: #f6c35c;
    --c-integration: #5fd4a8;
    --ok: #5fd4a8;
    --bad: #ff6b7a;
    --edge: #4c4743;
    --display: "Red Hat Display", ui-sans-serif, system-ui, sans-serif;
    --text: "Red Hat Text", ui-sans-serif, system-ui, sans-serif;
    --mono: "Red Hat Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
    --lib-w: 240px;
    --bar-h: 56px;
    --ease: cubic-bezier(.2, .8, .2, 1);
    --spring: cubic-bezier(.34, 1.45, .64, 1);

    position: relative;
    height: calc(100svh - var(--fs-bar-h));
    min-height: 600px;
    display: grid;
    grid-template-columns: var(--lib-w) minmax(0, 1fr);
    grid-template-rows: var(--bar-h) minmax(0, 1fr);
    grid-template-areas: "bar bar" "lib stage";
    overflow: hidden;
    background: var(--bg);
    color: var(--ink);
    font: 400 14px/1.45 var(--text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  :where(.flu) *, :where(.flu) *::before, :where(.flu) *::after { box-sizing: border-box; }
  :where(.flu) button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  :where(.flu) button:disabled { cursor: default; }
  :where(.flu) :is(h2, h3, p, ul, dl, dd) { margin: 0; }
  :where(.flu) ul { padding: 0; list-style: none; }
  .flu [hidden] { display: none !important; }
  .flu :focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
  .flu ::selection { background: rgba(255, 122, 89, .35); color: #fff; }
  .flu-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
  .flu-sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
  .flu-i { width: 18px; height: 18px; flex: none; display: block; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

  .flu-ib {
    position: relative; display: inline-grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 10px; color: var(--ink-2);
    transition: background .15s, color .15s, transform .15s var(--ease);
  }
  .flu-ib:hover:not(:disabled) { background: rgba(255, 245, 235, .07); color: var(--ink); }
  .flu-ib:active:not(:disabled) { transform: scale(.92); }
  .flu-ib:disabled { opacity: .32; }
  .flu-ib[aria-expanded="true"] { background: rgba(255, 245, 235, .08); color: var(--ink); }

  @media (hover: hover) {
    .flu [data-tip]::after {
      content: attr(data-tip); position: absolute; top: calc(100% + 8px); left: 50%; z-index: 80;
      transform: translate(-50%, -4px); opacity: 0; pointer-events: none; white-space: nowrap;
      padding: 6px 9px; border-radius: 8px; background: #f3f0eb; color: #181513; font: 600 11.5px/1 var(--text);
      box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .7); transition: opacity .15s, transform .15s var(--ease);
    }
    .flu [data-tip]:hover::after { opacity: 1; transform: translate(-50%, 0); transition-delay: .4s; }
    .flu [data-tip][aria-expanded="true"]::after { display: none; }
  }

  .flu-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 11px;
    font: 600 13px/1 var(--text); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-3);
    transition: background .15s, box-shadow .15s, color .15s, transform .15s var(--ease);
  }
  .flu-btn .flu-i { width: 16px; height: 16px; }
  .flu-btn:hover { background: rgba(255, 245, 235, .06); }
  .flu-btn:active { transform: scale(.97); }
  .flu-btn--danger { color: #ffb3ba; box-shadow: inset 0 0 0 1px rgba(255, 107, 122, .3); }
  .flu-btn--danger:hover { background: rgba(255, 107, 122, .1); color: #ffd1d5; }

  /* ================================================================ toolbar */
  .flu-bar {
    grid-area: bar; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-width: 0;
    padding: 0 12px 0 16px; background: #151515; border-bottom: 1px solid var(--line);
  }
  .flu-bar__left, .flu-bar__right { display: flex; align-items: center; gap: 8px; min-width: 0; }
  .flu-bar__left { flex: 1; }
  .flu-logo { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 9px; background: var(--acc); box-shadow: 0 6px 16px -6px rgba(255, 122, 89, .8), inset 0 1px 0 rgba(255, 255, 255, .35); }
  .flu-logo svg { width: 22px; height: 22px; }
  .flu-logo circle { fill: var(--acc-ink); }
  .flu-logo path { stroke: var(--acc-ink); stroke-width: 2.4; stroke-linecap: round; }
  .flu-bar__brand { font: 700 17px/1 var(--display); letter-spacing: -.02em; margin-left: 2px; }
  .flu-bar__sep { color: rgba(255, 245, 235, .2); font-size: 16px; }
  .flu-bar__crumb { font-size: 13.5px; color: var(--ink-3); white-space: nowrap; }
  .flu-name { min-width: 0; flex: 0 1 auto; }
  .flu-name input {
    width: 100%; min-width: 80px; max-width: 300px; height: 34px; padding: 0 9px; margin-left: -3px; border-radius: 9px; border: 0; outline: 0;
    background: transparent; color: var(--ink); font: 650 15px/1 var(--display); letter-spacing: -.01em; text-overflow: ellipsis;
    transition: background .15s, box-shadow .15s;
  }
  .flu-name input:hover { background: rgba(255, 245, 235, .05); }
  .flu-name input:focus { background: #101010; box-shadow: inset 0 0 0 1.5px var(--acc), 0 0 0 4px rgba(255, 122, 89, .14); }
  .flu-save { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 10px 0 9px; border-radius: 999px; font-size: 12px; color: var(--ink-3); white-space: nowrap; box-shadow: inset 0 0 0 1px var(--line); transition: color .3s; }
  .flu-save i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); transition: background .3s; }
  .flu-save[data-state="dirty"] { color: var(--ink-2); }
  .flu-save[data-state="dirty"] i { background: var(--c-logic); }
  .flu-save[data-state="saving"] i { background: var(--c-logic); animation: flu-pulse 1s ease-in-out infinite; }
  .flu-bar__div { width: 1px; height: 22px; background: var(--line-2); margin: 0 2px; }
  .flu-group { display: flex; align-items: center; gap: 2px; }
  .flu-zoom { padding: 2px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); }
  .flu-zoom .flu-ib { width: 30px; height: 30px; border-radius: 9px; }
  .flu-zoom__val { position: relative; min-width: 50px; height: 30px; border-radius: 8px; font: 500 12px/1 var(--mono); color: var(--ink-2); font-variant-numeric: tabular-nums; }
  .flu-zoom__val:hover { background: rgba(255, 245, 235, .07); color: var(--ink); }

  .flu-switch { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; font-size: 13px; color: var(--ink-2); user-select: none; }
  .flu-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
  .flu-switch__track { position: relative; width: 32px; height: 18px; border-radius: 999px; background: #3a3633; transition: background .25s; }
  .flu-switch__track i { position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #f3f0eb; box-shadow: 0 1px 3px rgba(0, 0, 0, .4); transition: transform .3s var(--spring); }
  .flu-switch input:checked + .flu-switch__track { background: var(--ok); }
  .flu-switch input:checked + .flu-switch__track i { transform: translateX(14px); }
  .flu-switch input:focus-visible + .flu-switch__track { outline: 2px solid var(--acc); outline-offset: 2px; }
  .flu-switch input:checked ~ .flu-switch__label { color: var(--ink); }

  .flu-run {
    position: relative; display: inline-flex; align-items: center; gap: 9px; height: 38px; min-width: 132px; padding: 0 16px 0 12px; margin-left: 4px; border-radius: 12px;
    background: var(--acc); color: var(--acc-ink); font: 700 14px/1 var(--display); letter-spacing: -.005em;
    box-shadow: 0 10px 24px -12px rgba(255, 122, 89, .95), inset 0 1px 0 rgba(255, 255, 255, .35);
    transition: background .2s, transform .2s var(--ease), box-shadow .2s, color .2s;
  }
  .flu-run:hover { background: var(--acc-2); transform: translateY(-1px); }
  .flu-run:active { transform: scale(.97); }
  .flu-run__ic { position: relative; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; background: rgba(31, 13, 6, .14); }
  .flu-run__ic .flu-i { grid-area: 1 / 1; width: 15px; height: 15px; transition: transform .3s var(--spring), opacity .2s; }
  .flu-run__stop { opacity: 0; transform: scale(.4); }
  .flu[data-run="running"] .flu-run { background: #2a2623; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--acc), 0 0 0 4px rgba(255, 122, 89, .12); }
  .flu[data-run="running"] .flu-run__ic { background: var(--acc); color: var(--acc-ink); }
  .flu[data-run="running"] .flu-run__play { opacity: 0; transform: scale(.4); }
  .flu[data-run="running"] .flu-run__stop { opacity: 1; transform: none; }

  /* ================================================================ library */
  .flu-lib { grid-area: lib; z-index: 30; display: flex; flex-direction: column; min-height: 0; background: var(--bg-1); border-right: 1px solid var(--line); }
  .flu-lib__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 14px 10px 16px; }
  .flu-lib__title { font: 700 15px/1 var(--display); letter-spacing: -.01em; }
  .flu-lib__close { display: none; }
  .flu-search { position: relative; display: block; margin: 0 12px 6px; }
  .flu-search .flu-i { position: absolute; left: 11px; top: 50%; width: 16px; height: 16px; margin-top: -8px; color: var(--ink-3); pointer-events: none; }
  .flu-search input {
    width: 100%; height: 36px; padding: 0 12px 0 34px; border-radius: 10px; border: 0; outline: 0; background: #101010; color: var(--ink);
    font: 400 13.5px/1 var(--text); box-shadow: inset 0 0 0 1px var(--line-2); transition: box-shadow .15s;
  }
  .flu-search input::placeholder { color: var(--ink-3); }
  .flu-search input:focus { box-shadow: inset 0 0 0 1.5px var(--acc), 0 0 0 4px rgba(255, 122, 89, .12); }
  .flu-lib__scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 8px 12px; scrollbar-width: thin; scrollbar-color: rgba(255, 245, 235, .14) transparent; overscroll-behavior: contain; }
  .flu-lib__group { --c: var(--c-trigger); padding-top: 8px; }
  .flu-lib__group[data-cat="action"] { --c: var(--c-action); }
  .flu-lib__group[data-cat="ai"] { --c: var(--c-ai); }
  .flu-lib__group[data-cat="logic"] { --c: var(--c-logic); }
  .flu-lib__group[data-cat="integration"] { --c: var(--c-integration); }
  .flu-lib__cat { display: flex; align-items: center; gap: 8px; padding: 6px 8px 6px; font: 600 10.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
  .flu-lib__cat i { width: 6px; height: 6px; border-radius: 2px; background: var(--c); }
  .flu-lib__cat span { margin-left: auto; letter-spacing: 0; color: rgba(255, 245, 235, .28); }
  .flu-item {
    --c: var(--c-trigger);
    position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 11px; width: 100%;
    padding: 7px 8px; border-radius: 11px; text-align: left; cursor: grab; touch-action: pan-y; user-select: none;
    transition: background .15s, box-shadow .15s;
  }
  .flu-item[data-cat="action"] { --c: var(--c-action); }
  .flu-item[data-cat="ai"] { --c: var(--c-ai); }
  .flu-item[data-cat="logic"] { --c: var(--c-logic); }
  .flu-item[data-cat="integration"] { --c: var(--c-integration); }
  .flu-item:hover { background: rgba(255, 245, 235, .05); box-shadow: inset 0 0 0 1px var(--line); }
  .flu-item:active { cursor: grabbing; }
  .flu-item.is-lift { opacity: .45; }
  .flu-item__ic { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; color: var(--c); background: color-mix(in srgb, var(--c) 13%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 22%, transparent); }
  .flu-item__ic .flu-i { width: 17px; height: 17px; }
  .flu-item__txt { display: grid; gap: 2px; min-width: 0; }
  .flu-item__txt strong { font: 600 13px/1.2 var(--text); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .flu-item__txt span { font-size: 11.5px; line-height: 1.25; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .flu-item__add { width: 16px; height: 16px; color: var(--ink-3); opacity: 0; transition: opacity .15s, color .15s; }
  .flu-item:hover .flu-item__add, .flu-item:focus-visible .flu-item__add { opacity: 1; color: var(--acc); }
  .flu-lib__empty { padding: 20px 10px; text-align: center; font-size: 13px; color: var(--ink-3); }
  .flu-lib__hint { display: flex; gap: 10px; align-items: flex-start; margin: 0 12px 12px; padding: 11px 12px; border-radius: 12px; font-size: 12px; line-height: 1.4; color: var(--ink-3); background: rgba(255, 245, 235, .03); box-shadow: inset 0 0 0 1px var(--line); }
  .flu-lib__hint .flu-i { width: 16px; height: 16px; color: var(--acc); margin-top: 1px; }

  /* ================================================================ stage + canvas */
  .flu-stage { grid-area: stage; position: relative; min-width: 0; min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; grid-template-columns: minmax(0, 1fr); }
  .flu-canvas {
    grid-row: 1; grid-column: 1; position: relative; overflow: hidden; touch-action: none; outline: none;
    background-color: #121212;
    background-image: radial-gradient(circle at center, rgba(255, 245, 235, .1) 1px, transparent 1.6px);
    background-size: var(--gs, 24px) var(--gs, 24px);
    background-position: var(--gx, 0) var(--gy, 0);
  }
  .flu-canvas::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(0, 0, 0, .38)); }
  .flu-canvas.is-space, .flu-canvas.is-space .flu-node { cursor: grab; }
  .flu-canvas.is-pan, .flu-canvas.is-pan .flu-node { cursor: grabbing; }
  .flu-canvas.is-drop { box-shadow: inset 0 0 0 2px rgba(255, 122, 89, .55); }
  .flu-canvas.is-connect { cursor: crosshair; }
  .flu-world { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
  .js .flu:not(.is-ready) .flu-world { opacity: 0; }
  .flu.is-ready .flu-world { animation: flu-fade .45s var(--ease); }
  .flu.is-ready .flu-node.is-boot { animation: flu-node-in .6s calc(.08s + var(--i, 0) * .07s) var(--spring) backwards; }
  .flu.is-ready .flu-edge.is-boot .flu-edge__line { stroke-dasharray: 1000; animation: flu-draw .9s calc(.35s + var(--i, 0) * .08s) var(--ease) backwards; }
  .flu-world.is-anim { transition: transform .5s var(--ease); }

  /* edges */
  .flu-edges { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
  .flu-edge__line { fill: none; stroke: var(--edge); stroke-width: 2; stroke-linecap: round; transition: stroke .25s, stroke-width .2s, opacity .3s; }
  .flu-edge__hit { fill: none; stroke: transparent; stroke-width: 16; pointer-events: stroke; cursor: pointer; }
  .flu-edge[data-branch="yes"] .flu-edge__line { stroke: #4b6158; }
  .flu-edge[data-branch="no"] .flu-edge__line { stroke: #6a4b4f; }
  .flu-edge:hover .flu-edge__line { stroke: #8a827a; }
  .flu-edge.is-sel .flu-edge__line { stroke: var(--acc); stroke-width: 2.6; }
  .flu-edge.is-live .flu-edge__line { stroke: var(--acc); stroke-dasharray: 5 7; animation: flu-dash .5s linear infinite; }
  .flu-edge.is-done .flu-edge__line { stroke: #c96c53; }
  .flu-edge.is-skip .flu-edge__line { stroke-dasharray: 2 6; opacity: .45; }
  .flu-edge.is-new .flu-edge__line { animation: flu-draw .6s var(--ease) both; stroke-dasharray: 1000; }
  .flu-edge__temp { fill: none; stroke: var(--acc); stroke-width: 2; stroke-dasharray: 6 6; animation: flu-dash .5s linear infinite; pointer-events: none; }
  .flu-packet { fill: #ffd8cc; }
  .flu-packet--glow { fill: var(--acc); opacity: .55; }
  .flu-packet--trail { fill: var(--acc); }
  .flu-edge-del {
    position: absolute; left: 0; top: 0; z-index: 6; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
    background: var(--acc); color: var(--acc-ink); transform: translate(-50%, -50%) scale(var(--ik, 1));
    box-shadow: 0 6px 16px -6px rgba(255, 122, 89, .9), 0 0 0 3px #121212; animation: flu-pop .3s var(--spring);
  }
  .flu-edge-del .flu-i { width: 14px; height: 14px; stroke-width: 2.4; }
  .flu-edge-del:hover { background: var(--acc-2); }

  /* nodes */
  .flu-node {
    --c: var(--c-trigger);
    position: absolute; left: 0; top: 0; width: 230px; height: 92px; z-index: 2;
    display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: center; gap: 12px; padding: 0 16px 0 14px;
    border-radius: 15px; cursor: grab; user-select: none; -webkit-user-select: none; touch-action: none; outline: none;
    background: linear-gradient(180deg, #232120 0%, #1b1a19 100%);
    box-shadow: inset 0 0 0 1px var(--line-2), inset 0 1px 0 rgba(255, 255, 255, .045), 0 14px 30px -16px rgba(0, 0, 0, .9);
    transition: box-shadow .2s, opacity .35s, scale .2s var(--ease), filter .3s;
  }
  .flu-node[data-cat="action"] { --c: var(--c-action); }
  .flu-node[data-cat="ai"] { --c: var(--c-ai); }
  .flu-node[data-cat="logic"] { --c: var(--c-logic); }
  .flu-node[data-cat="integration"] { --c: var(--c-integration); }
  .flu-node[data-type="if"] { padding-right: 38px; }
  .flu-node:hover { box-shadow: inset 0 0 0 1px var(--line-3), inset 0 1px 0 rgba(255, 255, 255, .05), 0 16px 34px -16px rgba(0, 0, 0, .95); }
  .flu-node:focus-visible { box-shadow: inset 0 0 0 1.5px var(--acc), 0 0 0 4px rgba(255, 122, 89, .25); }
  .flu-node.is-sel { z-index: 3; box-shadow: inset 0 0 0 1.5px var(--acc), 0 0 0 4px rgba(255, 122, 89, .16), 0 18px 40px -16px rgba(0, 0, 0, .95); }
  .flu-node.is-drag { z-index: 4; cursor: grabbing; scale: 1.025; box-shadow: inset 0 0 0 1.5px var(--acc), 0 0 0 4px rgba(255, 122, 89, .14), 0 30px 50px -18px rgba(0, 0, 0, .95); }
  .flu-node.is-new { animation: flu-node-in .5s var(--spring); }
  .flu-node.is-out { animation: flu-node-out .22s var(--ease) both; }
  .flu-node.is-flash { animation: flu-flash .9s var(--ease); }
  .flu-node__ic {
    display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: var(--c);
    background: color-mix(in srgb, var(--c) 14%, #191817); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 26%, transparent);
  }
  .flu-node__ic .flu-i { width: 20px; height: 20px; }
  .flu-node__txt { display: grid; gap: 2px; min-width: 0; }
  .flu-node__cat { margin-bottom: 1px; font: 600 10px/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--c); }
  .flu-node__title { font: 650 15.5px/1.2 var(--display); letter-spacing: -.012em; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-wrap: balance; }
  .flu-node__sub { margin-top: 1px; font: 400 12px/1.3 var(--text); color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .flu-node__badge {
    position: absolute; top: -11px; right: 12px; display: none; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 8px;
    font: 600 11px/1 var(--mono); white-space: nowrap; font-variant-numeric: tabular-nums;
    background: #1d1c1b; box-shadow: inset 0 0 0 1px var(--line-3), 0 6px 14px -6px rgba(0, 0, 0, .8); animation: flu-pop .35s var(--spring);
  }
  .flu-node__badge .flu-i { width: 12px; height: 12px; stroke-width: 2.4; }
  .flu-node__bar { position: absolute; left: 14px; right: 14px; bottom: 7px; height: 2px; border-radius: 2px; overflow: hidden; opacity: 0; background: rgba(255, 245, 235, .08); transition: opacity .3s; }
  .flu-node__bar::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; border-radius: inherit; background: var(--c); animation: flu-bar 1s ease-in-out infinite; }
  .flu-node[data-status="running"] { box-shadow: inset 0 0 0 1.5px var(--c), 0 0 0 5px color-mix(in srgb, var(--c) 16%, transparent), 0 0 46px -6px color-mix(in srgb, var(--c) 55%, transparent); }
  .flu-node[data-status="running"] .flu-node__bar { opacity: 1; }
  .flu-node[data-status="running"] .flu-node__ic { animation: flu-breath 1s ease-in-out infinite; }
  .flu-node[data-status] .flu-node__badge { display: inline-flex; }
  .flu-node[data-status="running"] .flu-node__badge { color: var(--c); }
  .flu-node[data-status="ok"] .flu-node__badge { color: var(--ok); }
  .flu-node[data-status="error"] { box-shadow: inset 0 0 0 1.5px var(--bad), 0 0 0 5px rgba(255, 107, 122, .14); }
  .flu-node[data-status="error"] .flu-node__badge { color: var(--bad); }
  .flu-node[data-status="skipped"] { opacity: .42; filter: saturate(.3); }
  .flu-node[data-status="skipped"] .flu-node__badge { color: var(--ink-3); }
  .flu-node.is-invalid .flu-node__ic::after { content: "!"; position: absolute; transform: translate(15px, -15px); display: grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; background: var(--c-logic); color: #1b1305; font: 800 10px/1 var(--display); box-shadow: 0 0 0 2px #1d1c1b; }
  .flu-spin { width: 11px; height: 11px; border-radius: 50%; border: 2px solid color-mix(in srgb, currentColor 25%, transparent); border-top-color: currentColor; animation: flu-spin .7s linear infinite; }

  /* ports */
  .flu-port { position: absolute; top: calc(var(--py, 40px) - 7px); z-index: 3; width: 14px; height: 14px; border-radius: 50%; background: #121212; box-shadow: inset 0 0 0 2px #5d5752; transition: transform .15s var(--ease), box-shadow .15s, background .15s; }
  .flu-port::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; }
  .flu-port--in { left: -7px; }
  .flu-port--out { right: -7px; cursor: crosshair; }
  .flu-port.is-linked { background: #5d5752; }
  .flu-port--out:hover, .flu-port.is-hot { transform: scale(1.4); background: var(--acc); box-shadow: inset 0 0 0 2px var(--acc), 0 0 0 5px rgba(255, 122, 89, .2); }
  .flu-canvas.is-connect .flu-node:not(.is-src) .flu-port--in { box-shadow: inset 0 0 0 2px var(--acc); animation: flu-portpulse 1.1s ease-in-out infinite; }
  .flu-port b { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); font: 700 9.5px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ok); pointer-events: none; }
  .flu-port--no b { color: #ff98a3; }

  /* hint, minimap, fabs */
  .flu-hint {
    position: absolute; top: 14px; left: 50%; z-index: 8; display: inline-flex; align-items: center; gap: 9px; height: 34px; padding: 0 14px 0 8px;
    transform: translateX(-50%); border-radius: 999px; white-space: nowrap; font-size: 12.5px; color: var(--ink-2);
    background: rgba(28, 27, 26, .92); box-shadow: inset 0 0 0 1px var(--line-2), 0 12px 30px -14px rgba(0, 0, 0, .9);
    animation: flu-hint-in .6s .5s var(--ease) both; transition: opacity .4s, transform .4s var(--ease); pointer-events: none;
  }
  .flu-hint > span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--acc-soft); color: var(--acc); }
  .flu-hint .flu-i { width: 13px; height: 13px; }
  .flu-hint b { color: var(--ink); font-weight: 600; }
  .flu-hint.is-gone { animation: none; opacity: 0; transform: translate(-50%, -8px); }
  .flu-mini {
    position: absolute; left: 12px; bottom: 12px; z-index: 8; width: 196px; height: 118px; border-radius: 12px; overflow: hidden; cursor: pointer; touch-action: none;
    background: rgba(22, 21, 20, .94); box-shadow: inset 0 0 0 1px var(--line-2), 0 14px 30px -14px rgba(0, 0, 0, .9);
  }
  .flu-mini svg { display: block; width: 100%; height: 100%; }
  .flu-mini { transition: opacity .3s, transform .3s var(--ease), visibility 0s; }
  .flu.is-log .flu-mini { opacity: 0; transform: translateY(10px); visibility: hidden; transition: opacity .2s, transform .2s, visibility 0s .2s; }
  .flu-mini rect.m-node { rx: 2; }
  #flu-mini-view { fill: rgba(255, 245, 235, .03); stroke: rgba(255, 122, 89, .5); }
  .flu-mini .m-edge { fill: none; stroke: #4c4743; }
  .flu-mini .m-node { opacity: .9; }
  .flu-fabs { position: absolute; right: 12px; bottom: 12px; z-index: 8; display: none; flex-direction: column; gap: 8px; }
  .flu-fab { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 16px; background: var(--acc); color: var(--acc-ink); box-shadow: 0 14px 30px -12px rgba(255, 122, 89, .9), inset 0 1px 0 rgba(255, 255, 255, .35); }
  .flu-fab .flu-i { width: 22px; height: 22px; stroke-width: 2.2; }
  .flu-fab--sm { width: 50px; height: 42px; border-radius: 14px; background: #262422; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2), 0 10px 24px -12px rgba(0, 0, 0, .9); }
  .flu-fab--sm .flu-i { width: 19px; height: 19px; stroke-width: 1.8; }

  /* ================================================================ inspector */
  .flu-insp {
    grid-row: 1; grid-column: 1; justify-self: end; align-self: stretch; z-index: 20; position: relative;
    width: 336px; margin: 12px; display: flex; flex-direction: column; min-height: 0; overflow: hidden;
    border-radius: 18px; background: #191817;
    box-shadow: inset 0 0 0 1px var(--line-2), 0 34px 80px -24px rgba(0, 0, 0, .95);
    animation: flu-insp-in .38s var(--ease);
  }
  .flu-insp.is-out { animation: flu-insp-out .22s var(--ease) both; }
  .flu-insp__head { --c: var(--c-trigger); display: flex; align-items: center; gap: 11px; padding: 14px 10px 12px 14px; }
  .flu-insp__ic { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 11px; color: var(--c); background: color-mix(in srgb, var(--c) 14%, #191817); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 26%, transparent); }
  .flu-insp__ic .flu-i { width: 19px; height: 19px; }
  .flu-insp__id { flex: 1; min-width: 0; }
  .flu-insp__cat { font: 600 10px/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--c); }
  .flu-insp__type { margin-top: 3px; font: 700 15px/1.2 var(--display); letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .flu-tabs { display: flex; gap: 4px; padding: 0 12px; border-bottom: 1px solid var(--line); }
  .flu-tab { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 10px; font: 600 12.5px/1 var(--text); color: var(--ink-3); transition: color .15s; }
  .flu-tab:hover { color: var(--ink-2); }
  .flu-tab[aria-selected="true"] { color: var(--ink); }
  .flu-tab[aria-selected="true"]::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--acc); }
  .flu-tab i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
  .flu-insp__body { flex: 1; min-height: 0; overflow-y: auto; padding: 16px 14px 18px; scrollbar-width: thin; scrollbar-color: rgba(255, 245, 235, .14) transparent; overscroll-behavior: contain; }
  .flu-insp__foot { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--line); }
  .flu-insp__foot .flu-btn { flex: 1; }

  .flu-field { display: grid; gap: 7px; margin-bottom: 16px; }
  .flu-field__label { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font: 600 12px/1.2 var(--text); color: var(--ink-2); }
  .flu-field__label em { font-style: normal; font: 500 10.5px/1 var(--mono); color: var(--ink-3); }
  .flu-field__label .is-req { color: var(--acc-2); }
  .flu-input, .flu-select, .flu-textarea {
    width: 100%; min-width: 0; border: 0; outline: 0; border-radius: 10px; background: #111; color: var(--ink);
    box-shadow: inset 0 0 0 1px var(--line-2); font: 400 13.5px/1.4 var(--text); transition: box-shadow .15s;
  }
  .flu-input, .flu-select { height: 38px; padding: 0 11px; }
  .flu-textarea { min-height: 92px; padding: 10px 11px; resize: vertical; line-height: 1.5; }
  .flu-textarea.is-code { font: 400 12.5px/1.6 var(--mono); }
  .flu-select { appearance: none; -webkit-appearance: none; padding-right: 32px; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238c867e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 9px center; background-size: 16px; }
  .flu-select option { background: #1c1c1c; color: var(--ink); }
  .flu-input:hover, .flu-select:hover, .flu-textarea:hover { box-shadow: inset 0 0 0 1px var(--line-3); }
  .flu-input:focus, .flu-select:focus, .flu-textarea:focus { box-shadow: inset 0 0 0 1.5px var(--acc), 0 0 0 4px rgba(255, 122, 89, .12); }
  .flu-input.is-err, .flu-textarea.is-err { box-shadow: inset 0 0 0 1.5px var(--c-logic); }
  .flu-input--title { height: 40px; font: 650 14.5px/1 var(--display); }
  .flu-err { font-size: 11.5px; color: var(--c-logic); }
  .flu-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .flu-row3 { display: grid; grid-template-columns: 1.3fr .8fr 1fr; gap: 8px; }
  .flu-seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px; padding: 3px; border-radius: 11px; background: #111; box-shadow: inset 0 0 0 1px var(--line-2); }
  .flu-seg button { height: 32px; border-radius: 8px; font: 600 12.5px/1 var(--text); color: var(--ink-3); transition: background .2s, color .2s; }
  .flu-seg button[aria-pressed="true"] { background: var(--bg-4); color: var(--ink); box-shadow: 0 2px 6px -2px rgba(0, 0, 0, .6); }
  .flu-range { display: flex; align-items: center; gap: 12px; }
  .flu-range input { flex: 1; accent-color: var(--acc); }
  .flu-range output { min-width: 34px; text-align: right; font: 500 12px/1 var(--mono); color: var(--ink-2); }
  .flu-toggle { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--ink-2); }
  .flu-chips { display: flex; flex-wrap: wrap; gap: 6px; }
  .flu-chip { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: 7px; font: 500 11.5px/1 var(--mono); color: var(--ink-2); background: rgba(255, 245, 235, .05); box-shadow: inset 0 0 0 1px var(--line); }
  button.flu-chip { color: var(--acc-2); cursor: pointer; transition: background .15s; }
  button.flu-chip:hover { background: var(--acc-soft); }
  .flu-sec { margin: 22px 0 10px; font: 600 10.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
  .flu-conns { display: grid; gap: 6px; margin-bottom: 10px; }
  .flu-conn { display: flex; align-items: center; gap: 9px; height: 36px; padding: 0 4px 0 10px; border-radius: 10px; background: rgba(255, 245, 235, .03); box-shadow: inset 0 0 0 1px var(--line); font-size: 12.5px; }
  .flu-conn span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .flu-conn em { font-style: normal; font: 600 9.5px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: 3px 5px; border-radius: 5px; }
  .flu-conn em[data-b="yes"] { color: var(--ok); background: rgba(95, 212, 168, .1); }
  .flu-conn em[data-b="no"] { color: #ff98a3; background: rgba(255, 107, 122, .1); }
  .flu-conn .flu-ib { width: 28px; height: 28px; }
  .flu-conn .flu-ib .flu-i { width: 15px; height: 15px; }
  .flu-muted { font-size: 12.5px; color: var(--ink-3); }
  .flu-note { display: flex; gap: 9px; padding: 11px 12px; border-radius: 12px; font-size: 12.5px; line-height: 1.45; color: var(--ink-2); background: rgba(255, 245, 235, .03); box-shadow: inset 0 0 0 1px var(--line); }
  .flu-note .flu-i { width: 16px; height: 16px; color: var(--acc); margin-top: 1px; }
  .flu-outmeta { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font: 500 11.5px/1 var(--mono); color: var(--ink-3); }
  .flu-outmeta b { display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; border-radius: 6px; font-weight: 600; }
  .flu-outmeta b[data-s="ok"] { color: var(--ok); background: rgba(95, 212, 168, .1); }
  .flu-outmeta b[data-s="error"] { color: var(--bad); background: rgba(255, 107, 122, .1); }

  /* JSON */
  .flu-json { margin: 0; padding: 12px 14px; border-radius: 12px; overflow-x: auto; background: #0e0e0e; box-shadow: inset 0 0 0 1px var(--line); font: 400 12.5px/1.65 var(--mono); color: var(--ink-2); white-space: pre; scrollbar-width: thin; tab-size: 2; }
  .j-k { color: #f3f0eb; }
  .j-s { color: #8fe0bd; }
  .j-n { color: #f6c35c; }
  .j-b { color: #ff9b80; }
  .j-p { color: #6f6963; }

  /* ================================================================ log drawer */
  .flu-log { grid-row: 2; grid-column: 1; z-index: 25; display: grid; grid-template-rows: 42px 0px; background: var(--bg-1); border-top: 1px solid var(--line); transition: grid-template-rows .45s var(--ease); }
  .flu-log[data-open="true"] { grid-template-rows: 42px 236px; }
  .flu-log__bar { display: flex; align-items: center; gap: 10px; width: 100%; padding: 0 14px; text-align: left; color: var(--ink-2); }
  .flu-log__bar:hover { color: var(--ink); }
  .flu-log__bar > .flu-i:first-child { width: 17px; height: 17px; color: var(--ink-3); }
  .flu-log__title { font: 650 13px/1 var(--display); color: var(--ink); }
  .flu-log__status { display: inline-flex; align-items: center; gap: 8px; min-width: 0; font: 500 12px/1 var(--mono); color: var(--ink-3); }
  .flu-log__status span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .flu-log__status i { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--ok); }
  .flu-log__status[data-s="running"] { color: var(--acc-2); }
  .flu-log__status[data-s="running"] i { background: var(--acc); animation: flu-pulse .9s ease-in-out infinite; }
  .flu-log__status[data-s="error"] i { background: var(--bad); }
  .flu-log__status[data-s="stopped"] i { background: var(--c-logic); }
  .flu-log__chev { margin-left: auto; width: 16px; height: 16px; color: var(--ink-3); transition: transform .35s var(--ease); }
  .flu-log[data-open="true"] .flu-log__chev { transform: rotate(180deg); }
  .flu-log__body { min-height: 0; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); border-top: 1px solid var(--line); }
  .flu-log__list { overflow-y: auto; padding: 8px; scrollbar-width: thin; scrollbar-color: rgba(255, 245, 235, .14) transparent; }
  .flu-log__json { overflow: auto; padding: 10px 12px 12px; border-left: 1px solid var(--line); scrollbar-width: thin; }
  .flu-log__json .flu-json { background: transparent; box-shadow: none; padding: 4px 2px; }
  .flu-log__empty, .flu-log__ph { padding: 16px 10px; font-size: 13px; color: var(--ink-3); }
  .flu-log__empty b { color: var(--acc-2); font-weight: 600; }
  .flu-logrow {
    --c: var(--c-trigger);
    display: grid; grid-template-columns: 58px 16px 26px minmax(0, 1fr) auto; align-items: center; gap: 10px; width: 100%; height: 38px; padding: 0 10px;
    border-radius: 10px; text-align: left; font-size: 13px; color: var(--ink-2); transition: background .15s; animation: flu-row-in .35s var(--ease) both;
  }
  .flu-logrow[data-cat="action"] { --c: var(--c-action); }
  .flu-logrow[data-cat="ai"] { --c: var(--c-ai); }
  .flu-logrow[data-cat="logic"] { --c: var(--c-logic); }
  .flu-logrow[data-cat="integration"] { --c: var(--c-integration); }
  .flu-logrow:hover { background: rgba(255, 245, 235, .04); }
  .flu-logrow[aria-current="true"] { background: rgba(255, 245, 235, .07); color: var(--ink); }
  .flu-logrow__t { font: 500 11.5px/1 var(--mono); color: var(--ink-3); font-variant-numeric: tabular-nums; }
  .flu-logrow__s { display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; }
  .flu-logrow__s .flu-i { width: 11px; height: 11px; stroke-width: 2.6; }
  .flu-logrow[data-s="ok"] .flu-logrow__s { background: rgba(95, 212, 168, .14); color: var(--ok); }
  .flu-logrow[data-s="error"] .flu-logrow__s { background: rgba(255, 107, 122, .14); color: var(--bad); }
  .flu-logrow[data-s="skipped"] .flu-logrow__s { background: rgba(255, 245, 235, .06); color: var(--ink-3); }
  .flu-logrow[data-s="running"] .flu-logrow__s { color: var(--acc); }
  .flu-logrow__ic { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; color: var(--c); background: color-mix(in srgb, var(--c) 13%, transparent); }
  .flu-logrow__ic .flu-i { width: 14px; height: 14px; }
  .flu-logrow__n { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .flu-logrow__d { font: 500 11.5px/1 var(--mono); color: var(--ink-3); font-variant-numeric: tabular-nums; }
  .flu-logsum { display: flex; align-items: center; gap: 10px; margin: 6px 4px 2px; padding: 10px 12px; border-radius: 11px; font-size: 12.5px; color: var(--ink-2); background: rgba(95, 212, 168, .07); box-shadow: inset 0 0 0 1px rgba(95, 212, 168, .18); animation: flu-row-in .4s var(--ease) both; }
  .flu-logsum .flu-i { width: 16px; height: 16px; color: var(--ok); }
  .flu-logsum[data-s="error"] { background: rgba(255, 107, 122, .07); box-shadow: inset 0 0 0 1px rgba(255, 107, 122, .2); }
  .flu-logsum[data-s="error"] .flu-i { color: var(--bad); }
  .flu-logsum[data-s="stopped"] { background: rgba(246, 195, 92, .07); box-shadow: inset 0 0 0 1px rgba(246, 195, 92, .2); }
  .flu-logsum[data-s="stopped"] .flu-i { color: var(--c-logic); }
  .flu-logsum b { color: var(--ink); font-weight: 600; }

  /* ================================================================ overlays */
  .flu-keys {
    position: absolute; top: calc(var(--bar-h) + 8px); right: 12px; z-index: 70; width: 340px; padding: 16px 16px 12px; border-radius: 16px;
    background: #1d1c1b; box-shadow: inset 0 0 0 1px var(--line-3), 0 30px 70px -20px rgba(0, 0, 0, .95); animation: flu-menu-in .22s var(--ease);
  }
  .flu-keys h2 { font: 700 14px/1 var(--display); margin-bottom: 12px; }
  .flu-keys dl { display: grid; gap: 2px; }
  .flu-keys dl > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0; border-top: 1px solid var(--line); font-size: 12.5px; }
  .flu-keys dt { display: flex; align-items: center; gap: 3px; color: var(--ink-3); font-size: 11px; white-space: nowrap; }
  .flu-keys dd { color: var(--ink-2); text-align: right; }
  .flu-keys kbd { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 5px; font: 500 11px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--ink); background: rgba(255, 245, 235, .06); box-shadow: inset 0 0 0 1px var(--line-2), 0 1px 0 rgba(0, 0, 0, .5); }
  .flu-ghost { position: fixed; left: 0; top: 0; z-index: 999990; pointer-events: none; transform-origin: 0 0; opacity: .92; }
  .flu-ghost .flu-node { position: relative; box-shadow: inset 0 0 0 1.5px var(--acc), 0 30px 60px -16px rgba(0, 0, 0, .9); rotate: -2deg; }
  .flu-scrim { position: absolute; inset: 0; z-index: 44; background: rgba(5, 5, 5, .55); animation: flu-fade .25s both; }
  .flu-toasts { position: absolute; top: calc(var(--bar-h) + 14px); left: calc(var(--lib-w) + (100% - var(--lib-w)) / 2); z-index: 90; display: grid; justify-items: center; gap: 8px; transform: translateX(-50%); pointer-events: none; width: max-content; max-width: calc(100% - 32px); }
  .flu-toast { display: inline-flex; align-items: center; gap: 9px; padding: 9px 14px 9px 11px; border-radius: 12px; background: #f3f0eb; color: #181513; font: 600 13px/1.2 var(--text); box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .9); animation: flu-toast-in .4s var(--spring) both; }
  .flu-toast .flu-i { width: 16px; height: 16px; stroke-width: 2.2; color: #d4512f; }
  .flu-toast.is-out { animation: flu-toast-out .3s var(--ease) both; }

  /* ================================================================ keyframes */
  @keyframes flu-fade { from { opacity: 0; } }
  @keyframes flu-pop { from { opacity: 0; transform: scale(.5); } }
  @keyframes flu-dash { to { stroke-dashoffset: -24; } }
  @keyframes flu-draw { from { stroke-dashoffset: 1000; } to { stroke-dashoffset: 0; } }
  @keyframes flu-spin { to { transform: rotate(360deg); } }
  @keyframes flu-pulse { 50% { opacity: .35; } }
  @keyframes flu-bar { from { left: -40%; } to { left: 100%; } }
  @keyframes flu-breath { 50% { transform: scale(1.08); } }
  @keyframes flu-portpulse { 50% { box-shadow: inset 0 0 0 2px var(--acc), 0 0 0 6px rgba(255, 122, 89, .22); } }
  @keyframes flu-node-in { from { opacity: 0; scale: .7; } to { opacity: 1; scale: 1; } }
  @keyframes flu-node-out { to { opacity: 0; scale: .85; } }
  @keyframes flu-flash { 0%, 100% { box-shadow: inset 0 0 0 1px var(--line-2); } 30% { box-shadow: inset 0 0 0 2px var(--acc), 0 0 0 8px rgba(255, 122, 89, .25); } }
  @keyframes flu-hint-in { from { opacity: 0; transform: translate(-50%, -10px); } to { opacity: 1; transform: translate(-50%, 0); } }
  @keyframes flu-insp-in { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
  @keyframes flu-insp-out { to { opacity: 0; transform: translateX(24px); } }
  @keyframes flu-menu-in { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
  @keyframes flu-row-in { from { opacity: 0; transform: translateY(6px); } }
  @keyframes flu-toast-in { from { opacity: 0; transform: translateY(-10px) scale(.95); } }
  @keyframes flu-toast-out { to { opacity: 0; transform: translateY(-8px) scale(.97); } }
  @keyframes flu-sheet-in { from { transform: translateY(100%); } }

  /* ================================================================ responsive */
  @media (max-width: 1180px) {
    .flu { --lib-w: 232px; }
    .flu-bar__crumb, .flu-bar__crumb + .flu-bar__sep { display: none; }
    .flu-switch__label { display: none; }
  }
  @media (max-width: 980px) {
    .flu-keys-btn, .flu-bar__div { display: none; }
    .flu-save span { display: none; }
    .flu-save { width: 26px; justify-content: center; padding: 0; }
  }
  @media (max-width: 860px) {
    .flu { grid-template-columns: minmax(0, 1fr); grid-template-areas: "bar" "stage"; }
    .flu-lib {
      position: absolute; grid-column: 1 / -1; grid-row: 1 / -1; left: 0; right: 0; bottom: 0; top: auto; height: min(76%, 640px); z-index: 50;
      border-right: 0; border-radius: 22px 22px 0 0; box-shadow: 0 -30px 80px -20px rgba(0, 0, 0, .9), inset 0 1px 0 var(--line-2);
      transform: translateY(105%); visibility: hidden; transition: transform .45s var(--ease), visibility 0s .45s;
    }
    .flu.is-lib .flu-lib { transform: none; visibility: visible; transition: transform .45s var(--ease), visibility 0s; }
    .flu-lib__close { display: inline-grid; }
    .flu-lib__hint { display: none; }
    .flu-lib__scroll { padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
    .flu-item { touch-action: manipulation; cursor: pointer; }
    .flu-item__add { opacity: 1; color: var(--acc); }
    .flu-fabs { display: flex; }
    .flu-mini { display: none; }
    .flu-toasts { left: 50%; }
    .flu-insp {
      position: absolute; grid-row: 1 / -1; left: 0; right: 0; bottom: 0; top: auto; width: auto; max-height: 72%; margin: 0; z-index: 48;
      border-radius: 22px 22px 0 0; animation: flu-sheet-in .4s var(--ease); background: #1b1a19;
    }
    .flu-insp.is-out { animation: flu-insp-out-m .22s var(--ease) both; }
    @keyframes flu-insp-out-m { to { transform: translateY(100%); } }
    .flu-insp__foot { padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
  }
  @media (max-width: 640px) {
    .flu { --bar-h: 54px; min-height: 560px; }
    .flu-bar { padding: 0 10px 0 12px; gap: 8px; }
    .flu-bar__brand, .flu-bar__sep, .flu-switch, .flu-group, .flu-save { display: none; }
    .flu-name input { font-size: 14px; max-width: none; }
    .flu-run { height: 38px; padding: 0 13px 0 9px; margin-left: 0; }
    .flu-hint { top: 10px; font-size: 11.5px; max-width: calc(100% - 24px); }
    .flu-log[data-open="true"] { grid-template-rows: 42px min(52svh, 360px); }
    .flu-log__body { grid-template-columns: 1fr; grid-template-rows: minmax(0, .46fr) minmax(0, .54fr); }
    .flu-log__list { border-bottom: 1px solid var(--line); }
    .flu-log__title { display: none; }
    .flu-log__json { border-left: 0; }
    .flu-logrow { grid-template-columns: 52px 16px 24px minmax(0, 1fr) auto; gap: 8px; }
    .flu-log__status span { max-width: 46vw; }
    .flu-keys { left: 12px; right: 12px; width: auto; }
  }

  @media (prefers-reduced-motion: reduce) {
    .flu *, .flu *::before, .flu *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .flu-spin { animation: flu-spin 1.4s linear infinite !important; }
  }
}
