/* AIS Edge Studio: flow designer and Properties window. Uses the Studio's design tokens (studio.css). */
.fe { position: relative; height: 100%; min-height: 0; display: grid; --fe-mini-node: #c4c4c4; }
.fe > .fe-canvas, .fe > .fe-outline, .fe > .fe-json { display: none; min-height: 0; }
.fe[data-mode="canvas"] > .fe-canvas { display: block; }
.fe[data-mode="outline"] > .fe-outline { display: block; }
.fe[data-mode="json"] > .fe-json { display: grid; }

/* ---------- canvas ---------- */
.fe-canvas { position: relative; overflow: hidden; outline: none; background-color: var(--canvas);
  background-image: radial-gradient(var(--grid-dot) 1px, transparent 1.2px); background-size: 20px 20px; cursor: default; }
.fe-canvas:focus-visible { box-shadow: inset 0 0 0 2px var(--brand); }
.fe-canvas.panning { cursor: grabbing; }
.fe-world { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
.fe-world.glide { transition: transform .24s cubic-bezier(.33, 0, .1, 1); }
.fe-wires { position: absolute; overflow: visible; pointer-events: none; }
.fe-w { fill: none; stroke: var(--wire); stroke-width: 1.6; transition: stroke .15s; }
.fe-w.p-no { stroke: var(--fe-no, #8764b8); }
.fe-w.open { stroke-dasharray: 4 4; }
.fe-w.back { stroke-dasharray: 6 3; }
.fe-w.act { stroke: var(--brand); stroke-width: 2.6; }
.fe-ah.n { fill: var(--wire); } .fe-ah.a { fill: var(--brand); }
.fe-endcap { fill: var(--canvas); stroke: var(--wire); stroke-width: 1.5; }
.fe-jumpline { fill: none; stroke: var(--brand); stroke-width: 1.5; stroke-dasharray: 3 4; opacity: .8; }
.fe-lane { position: absolute; border: 1px dashed var(--stroke-2); border-radius: 12px; background: color-mix(in srgb, var(--surface) 35%, transparent); }
.fe-lane > span { position: absolute; top: 8px; left: 14px; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--fg-3); }
.fe-lane.err { border-color: color-mix(in srgb, var(--err) 45%, transparent); background: color-mix(in srgb, var(--err-bg) 40%, transparent); }
.fe-lane.err > span { color: var(--err); }
.fe-lane.orphan > span { color: var(--warn); }

/* ---------- nodes ---------- */
.fe-node { position: absolute; left: 0; top: 0; transition: transform .26s cubic-bezier(.33, 0, .1, 1); user-select: none; cursor: pointer; --c: #616161; }
.fe-node.fe-new { animation: fe-in .32s cubic-bezier(.33, 0, .1, 1); }
@keyframes fe-in { from { opacity: 0; scale: .92; } to { opacity: 1; scale: 1; } }
.fe-node.flash .fe-shape > * { animation: fe-flash 1s ease-out; }
@keyframes fe-flash { 0% { stroke: var(--brand); stroke-width: 4; } 100% { } }
.fe-shape { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 1px 1px rgba(0,0,0,.10)) drop-shadow(0 0 1.5px rgba(0,0,0,.10)); transition: filter .15s; }
.fe-shape > * { fill: var(--surface); stroke: var(--stroke-2); stroke-width: 1; vector-effect: non-scaling-stroke; }
.fe-shape .rim { fill: none; }
.fe-node:hover .fe-shape { filter: drop-shadow(0 4px 6px rgba(0,0,0,.14)) drop-shadow(0 0 2px rgba(0,0,0,.12)); }
.fe-node.sel .fe-shape > * { stroke: var(--brand); stroke-width: 2; }
.fe-node.sel .fe-shape > .rim { stroke-width: 1.5; }
.fe-node.k-start .fe-shape > *:first-child { fill: color-mix(in srgb, var(--ok) 9%, var(--surface)); stroke: color-mix(in srgb, var(--ok) 55%, var(--stroke-2)); }
.fe-node.err-start .fe-shape > *:first-child, .fe-node.end-fail .fe-shape > *:first-child { fill: color-mix(in srgb, var(--err) 8%, var(--surface)); stroke: color-mix(in srgb, var(--err) 55%, var(--stroke-2)); }
.fe-node.k-end .fe-shape > *:first-child { fill: color-mix(in srgb, var(--ok) 6%, var(--surface)); }
.fe-node.s-dec .fe-shape > * { fill: color-mix(in srgb, #c19c00 7%, var(--surface)); stroke: color-mix(in srgb, #c19c00 60%, var(--stroke-2)); }
.fe-node.sel.s-dec .fe-shape > *, .fe-node.sel.k-start .fe-shape > *:first-child, .fe-node.sel.k-end .fe-shape > *:first-child { stroke: var(--brand); stroke-width: 2; }
.fe-node.s-loop .fe-shape > * { fill: color-mix(in srgb, #0f6cbd 7%, var(--surface)); stroke: color-mix(in srgb, #0f6cbd 55%, var(--stroke-2)); }
.fe-node.sel.s-loop .fe-shape > * { stroke: var(--brand); stroke-width: 2; }
.fe-node.s-loop .fe-b { padding: 0 24px; }
.fe-node.off { opacity: .55; }
.fe-node.off .fe-shape > * { stroke-dasharray: 5 4; }
.fe-node.moving { opacity: .35; }
.fe-node.visited:not(.sel) .fe-shape > * { stroke: color-mix(in srgb, var(--brand) 70%, var(--stroke-2)); }
.fe-node.pulse .fe-shape { animation: fe-pulse .5s ease-out; }
@keyframes fe-pulse { 0% { filter: drop-shadow(0 0 0 var(--brand)); } 40% { filter: drop-shadow(0 0 10px var(--brand)); } 100% { filter: drop-shadow(0 1px 1px rgba(0,0,0,.1)); } }

.fe-b { position: absolute; inset: 0; display: flex; align-items: center; gap: 10px; padding: 0 14px 0 14px; }
.fe-node.s-io .fe-b { padding: 0 24px 0 26px; }
.fe-node.s-pre .fe-b { padding: 0 20px 0 22px; }
.fe-node.s-db .fe-b { padding-top: 10px; }
.fe-node.s-term .fe-b { padding: 0 20px; }
.fe-ico { flex: none; width: 28px; height: 28px; border-radius: 6px; display: grid; place-items: center; color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.fe-ico svg.i { width: 16px; height: 16px; stroke-width: 1.6; }
.fe-ico.sm { width: 20px; height: 20px; border-radius: 4px; }
.fe-ico.sm svg.i { width: 13px; height: 13px; }
.fe-tx { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.fe-tx b { font-weight: 600; font-size: 13.5px; line-height: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--fg); }
.fe-tx span { font-size: 12px; line-height: 16px; color: var(--fg-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: var(--mono-ui, inherit); }
.fe-dt { position: absolute; left: 22%; right: 22%; top: 18%; bottom: 18%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 2px; }
.fe-dt b { font-weight: 600; font-size: 13px; line-height: 17px; color: var(--fg); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fe-dt span { font: 11.5px/15px var(--mono); color: var(--fg-3); max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fe-port { position: absolute; font-size: 11px; font-weight: 600; padding: 0 6px; border-radius: 8px; line-height: 16px; pointer-events: none; }
.fe-port.yes { left: calc(50% + 6px); bottom: -20px; color: var(--ok); background: var(--canvas); }
.fe-port.no { right: -30px; top: calc(50% - 19px); color: var(--fe-no, #8764b8); background: var(--canvas); }
.pp-tpl { display: grid; gap: 6px; } .pp-tplh { font-size: 11.5px; font-weight: 600; color: var(--fg-2); margin-top: 6px; }
.pp-tpli { display: flex; gap: 6px; align-items: center; } .pp-tpli .pp-in { min-width: 0; flex: 1; }
.fe-port.lbody { right: -46px; top: calc(50% - 19px); color: var(--accent, #0f6cbd); background: var(--canvas); }
.fe-port.ldone { left: calc(50% + 6px); bottom: -20px; color: var(--fg-2); background: var(--canvas); }
.fe-node.s-conn .fe-shape > * { fill: var(--surface); stroke: var(--fg-3); stroke-width: 1.5; }
.fe-cl { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 700; font-size: 16px; color: var(--fg-2); }
.fe-ccap { position: absolute; left: calc(100% + 10px); top: 50%; transform: translateY(-50%); white-space: nowrap; font-size: 12.5px; color: var(--fg-2); font-weight: 600; }
.fe-badges { position: absolute; right: 8px; top: -9px; display: flex; gap: 4px; pointer-events: none; }
.fe-node.s-dec .fe-badges { right: 30%; }
.fb { font-size: 10px; font-weight: 700; letter-spacing: .03em; line-height: 16px; padding: 0 6px; border-radius: 8px; background: var(--surface-3); color: var(--fg-2); box-shadow: 0 0 0 1px var(--surface); }
.fb.b-sf { background: var(--warn-bg); color: color-mix(in srgb, var(--amber) 70%, #6b4e00); }
.fb.w-now { background: #8a3707; color: #fff; } .fb.w-end { background: var(--surface-3); color: var(--fg-2); }
.fb.b-cont { background: var(--brand); color: #fff; } .fb.b-wait { background: #616161; color: #fff; }
.fb.b-lang { background: #5c2e91; color: #fff; } .fb.b-plan { background: transparent; color: var(--fg-3); box-shadow: inset 0 0 0 1px var(--stroke-2); }
.fb.b-cap { background: var(--err); color: #fff; } .fb.b-off { background: var(--fg-3); color: var(--surface); }
.fe-iss { position: absolute; left: -9px; top: -9px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); box-shadow: var(--shadow-2); }
.fe-iss svg.i { width: 14px; height: 14px; stroke-width: 1.8; }
.fe-iss.error { color: var(--err); } .fe-iss.warn { color: var(--warn); } .fe-iss.info { color: var(--fg-3); }
.fe-iss.inl { position: static; box-shadow: none; background: none; margin-left: 4px; }
.fe-res { position: absolute; left: 50%; bottom: -10px; transform: translateX(-50%); font: 600 10.5px/16px var(--font); padding: 0 7px; border-radius: 8px; white-space: nowrap; background: var(--ok); color: #fff; box-shadow: 0 0 0 2px var(--canvas); }
.fe-res.r-stored { background: var(--amber); color: #1f1f1f; } .fe-res.r-failed { background: var(--err); } .fe-res.r-no { background: #8764b8; } .fe-res.r-skipped { background: var(--fg-4); }
.fe-node.s-dec .fe-res { bottom: auto; top: -10px; }
.fe-live { position: absolute; left: calc(100% + 8px); top: 4px; font: 11px/18px var(--mono); padding: 0 8px; border-radius: 9px; background: var(--brand-bg); color: var(--brand); white-space: nowrap; box-shadow: 0 0 0 1px var(--brand-bg-2); }
.fe-node.s-dec .fe-live { left: calc(100% + 34px); }

/* insert points */
.fe-plus { position: absolute; left: 0; top: 0; }
.fe-add { position: absolute; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; border: 1px solid var(--stroke-2); background: var(--surface); color: var(--fg-3); display: grid; place-items: center; padding: 0; cursor: pointer; opacity: 0; transform: scale(.8); transition: opacity .12s, transform .12s, background .12s, color .12s; }
.fe-add svg.i { width: 12px; height: 12px; stroke-width: 2; }
.fe-canvas:hover .fe-add, .fe-canvas:focus-within .fe-add { opacity: .9; transform: scale(1); }
.fe-add.open { opacity: 1; transform: scale(1); border-style: dashed; }
.fe-add:hover, .fe-add:focus-visible { background: var(--brand); border-color: var(--brand); color: #fff; opacity: 1; transform: scale(1.15); outline: none; }
.fe-canvas.dropping .fe-add { opacity: 1; transform: scale(1); background: var(--brand-bg); border-color: var(--brand); color: var(--brand); }
.fe-add.hot, .fe-canvas.dropping .fe-add.hot { background: var(--brand); color: #fff; transform: scale(1.5); box-shadow: 0 0 0 6px color-mix(in srgb, var(--brand) 22%, transparent); }
.fe-add.join { border-radius: 6px; }
.fe-ghost { position: fixed; z-index: 1000; pointer-events: none; opacity: .9; scale: .8; transform-origin: 0 0; }

/* canvas chrome */
.fe-tools { position: absolute; right: 12px; top: 12px; display: flex; gap: 2px; padding: 3px; background: var(--surface); border-radius: 8px; box-shadow: var(--shadow-8); }
.fe-tools button { height: 28px; min-width: 30px; border: 0; background: none; border-radius: 4px; cursor: pointer; color: var(--fg-2); display: grid; place-items: center; font-size: 12px; padding: 0 6px; }
.fe-tools button:hover { background: var(--surface-3); }
.fe-tools .fe-pct { min-width: 50px; font-variant-numeric: tabular-nums; }
.fe-mini { position: absolute; right: 12px; bottom: 12px; width: 180px; height: 120px; background: var(--surface); border-radius: 8px; box-shadow: var(--shadow-8); cursor: pointer; }
.fe-hint { position: absolute; left: 12px; bottom: 12px; max-width: calc(100% - 220px); font-size: 12px; color: var(--fg-3); background: color-mix(in srgb, var(--surface) 88%, transparent); padding: 6px 10px; border-radius: 6px; pointer-events: none; }
.fe-hint b { color: var(--brand); }
.fe-hint { transition: opacity .6s; } .fe-hint.faded, .fe.narrow .fe-hint { opacity: 0; }
.fe.narrow .fe-mini { width: 132px; height: 88px; }
.fe.narrow .fe-tools .fe-pct { display: none; }

/* insert flyout menu */
.fe-menu { position: fixed; z-index: 900; width: 340px; max-height: 430px; display: flex; flex-direction: column; background: var(--surface); border-radius: 8px; box-shadow: var(--shadow-28); border: 1px solid var(--stroke); animation: fe-pop .14s cubic-bezier(.33, 0, .1, 1); }
@keyframes fe-pop { from { opacity: 0; transform: translateY(-4px); } }
.fe-menu-h { padding: 10px 12px 4px; font-size: 12px; color: var(--fg-3); }
.fe-menu-h b { color: var(--fg); font-weight: 600; }
.fe-menu-s { margin: 6px 10px 6px; display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border-radius: 4px; border: 1px solid var(--stroke-2); border-bottom: 2px solid var(--brand); background: var(--surface); color: var(--fg-3); }
.fe-menu-s input { flex: 1; border: 0; outline: 0; background: none; font-size: 13px; }
.fe-menu-l { overflow: auto; padding: 0 4px 6px; flex: 1; }
.fe-mg { font-size: 11px; font-weight: 600; color: var(--fg-3); padding: 8px 8px 2px; }
.fe-mi { display: flex; gap: 10px; align-items: center; padding: 6px 8px; border-radius: 4px; cursor: pointer; }
.fe-mi.on { background: var(--surface-3); }
.fe-mi b { font-weight: 600; font-size: 13px; } .fe-mi i { font-style: normal; font-size: 10.5px; color: var(--fg-3); margin-left: 6px; border: 1px solid var(--stroke-2); border-radius: 6px; padding: 0 5px; }
.fe-mi small { display: block; font-size: 11.5px; color: var(--fg-3); line-height: 15px; }
.fe-mempty { padding: 16px; color: var(--fg-3); text-align: center; }
.fe-menu-f { border-top: 1px solid var(--stroke); padding: 6px 12px; font-size: 11px; color: var(--fg-3); display: flex; gap: 4px; align-items: center; }
.fe-pp { font-size: 10.5px; font-weight: 700; padding: 0 6px; border-radius: 8px; line-height: 16px; }
.fe-pp.yes { background: var(--ok-bg); color: var(--ok); } .fe-pp.lbody { background: color-mix(in srgb, #0f6cbd 16%, var(--surface)); color: #0f6cbd; } .fe-pp.no { background: color-mix(in srgb, #8764b8 18%, var(--surface)); color: #8764b8; }

/* outline */
.fe-outline { overflow: auto; padding: 8px 16px 40px; outline: none; background: var(--surface); }
.fe-ol-note { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; color: var(--fg-2); background: var(--brand-bg); border-radius: 6px; padding: 8px 10px; margin: 4px 0 10px; }
.fe-ol-row { display: flex; align-items: center; gap: 8px; height: 34px; padding-left: calc(8px + var(--d) * 28px); border-radius: 4px; cursor: pointer; position: relative; }
.fe-ol-row:hover { background: var(--surface-2); }
.fe-ol-row.sel { background: var(--brand-bg); box-shadow: inset 3px 0 0 var(--brand); }
.fe-ol-row.off { opacity: .55; }
.fe-ol-row .num { width: 22px; text-align: right; color: var(--fg-4); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.fe-ol-row b { font-weight: 600; white-space: nowrap; }
.fe-ol-row .sum { color: var(--fg-3); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1; }
.fe-ol-row.cont { cursor: default; font-size: 12px; }
.fe-ol-add { border: 0; background: none; color: var(--fg-3); border-radius: 4px; width: 26px; height: 26px; display: grid; place-items: center; opacity: 0; cursor: pointer; }
.fe-ol-row:hover .fe-ol-add { opacity: 1; } .fe-ol-add:hover { background: var(--brand); color: #fff; }

/* JSON */
.fe-json { grid-template-rows: auto 1fr auto; min-height: 0; background: var(--surface); }
.fe-json-bar { display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-bottom: 1px solid var(--stroke); font-size: 12px; color: var(--fg-3); }
.fe-json textarea { border: 0; resize: none; outline: none; padding: 12px 16px; font: 12.5px/1.55 var(--mono); background: var(--surface); color: var(--fg); tab-size: 2; }
.fe-json-err { color: var(--err); font-size: 12px; padding: 0 12px 6px; }
.fbtn { height: 26px; border: 1px solid var(--stroke-2); background: var(--surface); border-radius: 4px; padding: 0 10px; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; }
.fbtn:hover { background: var(--surface-2); }

/* ---------- Properties window ---------- */
.pp-head { padding: 12px 14px 10px; border-bottom: 1px solid var(--stroke); }
.pp-head .k { font-size: 11.5px; color: var(--fg-3); }
.pp-head .v { font-size: 15px; font-weight: 600; margin-top: 2px; word-break: break-word; }
.pp-id { font-size: 11px; color: var(--fg-4); margin-top: 2px; }
.pp-cat { border-bottom: 1px solid var(--stroke); }
.pp-cat > summary { list-style: none; display: flex; align-items: center; gap: 6px; padding: 8px 12px; font-weight: 600; font-size: 12.5px; cursor: pointer; user-select: none; }
.pp-cat > summary::-webkit-details-marker { display: none; }
.pp-cat > summary svg { transition: transform .15s; color: var(--fg-3); }
.pp-cat:not([open]) > summary svg { transform: rotate(-90deg); }
.pp-body { padding: 0 12px 10px; display: flex; flex-direction: column; gap: 8px; }
.pp-row { display: grid; grid-template-columns: 104px 1fr; gap: 8px; align-items: start; }
.pp-row.wide { grid-template-columns: 1fr; gap: 4px; }
.pp-row > label { font-size: 12px; color: var(--fg-2); padding-top: 6px; }
.pp-ctl { min-width: 0; }
.pp-help { font-size: 11.5px; color: var(--fg-3); margin-top: 3px; line-height: 1.4; }
.pp-in { width: 100%; min-height: 28px; border: 1px solid var(--stroke-2); border-bottom-color: var(--stroke-strong); border-radius: 4px; background: var(--surface); padding: 3px 8px; font-size: 12.5px; outline: none; }
.pp-in:focus { border-bottom: 2px solid var(--brand); padding-bottom: 2px; }
textarea.pp-in { resize: vertical; padding: 6px 8px; line-height: 1.45; }
select.pp-in { padding-right: 4px; }
.pp-in.mono { font-family: var(--mono); font-size: 12px; }
.pp-num { display: flex; align-items: center; gap: 6px; } .pp-num span { color: var(--fg-3); font-size: 12px; }
.pp-sw { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 12.5px; padding-top: 4px; }
.pp-sw input { position: absolute; opacity: 0; width: 0; }
.pp-sw i { width: 36px; height: 18px; border-radius: 9px; border: 1px solid var(--stroke-strong); position: relative; transition: background .12s; }
.pp-sw i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 10px; height: 10px; border-radius: 50%; background: var(--fg-2); transition: left .12s; }
.pp-sw input:checked + i { background: var(--brand); border-color: var(--brand); }
.pp-sw input:checked + i::after { left: 21px; background: #fff; }
.pp-sw input:focus-visible + i { outline: 2px solid var(--brand); outline-offset: 2px; }
.pp-ac { position: relative; }
.pp-chk { font-size: 11.5px; margin-top: 3px; display: flex; align-items: center; gap: 4px; min-height: 0; }
.pp-chk.good { color: var(--ok); } .pp-chk.bad { color: var(--err); }
.pp-chk svg.i { width: 13px; height: 13px; }
.pp-preview pre { margin: 4px 0 0; padding: 6px 8px; font: 11px/1.45 var(--mono); background: var(--surface-2); border-radius: 4px; max-height: 160px; overflow: auto; white-space: pre-wrap; }
.pp-pvh { font-size: 11px; color: var(--fg-3); margin-top: 6px; }
.pp-sug { position: absolute; z-index: 60; left: 0; right: -40px; top: calc(100% + 2px); background: var(--surface); border: 1px solid var(--stroke); border-radius: 6px; box-shadow: var(--shadow-28); max-height: 280px; overflow: auto; padding: 4px; min-width: 280px; }
.pp-sug .s { display: grid; grid-template-columns: 38px auto 1fr auto; gap: 6px; align-items: center; padding: 4px 6px; border-radius: 4px; cursor: pointer; font-size: 12px; }
.pp-sug .s.on { background: var(--surface-3); }
.pp-sug .k { font-size: 9.5px; font-weight: 700; text-align: center; border-radius: 3px; padding: 1px 0; color: #fff; background: #0f6cbd; }
.pp-sug .k-VAR { background: #0e7a7a; } .pp-sug .k-SYS { background: #616161; } .pp-sug .k-STEP { background: #8a6d00; } .pp-sug .k-FN { background: #5c2e91; }
.pp-sug .d { color: var(--fg-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp-sug .v { color: var(--brand); font-size: 11px; }
.pp-chips { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; border: 1px solid var(--stroke-2); border-radius: 4px; padding: 3px; }
.pp-chips .grow { flex: 1; min-width: 120px; }
.pp-chips .pp-in { border: 0; min-height: 24px; }
.pp-chip { display: inline-flex; align-items: center; gap: 2px; background: var(--brand-bg); color: var(--brand); border-radius: 4px; padding: 1px 2px 1px 6px; font-size: 11.5px; }
.pp-chip button { border: 0; background: none; color: inherit; cursor: pointer; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 3px; padding: 0; }
.pp-chip button:hover { background: var(--brand-bg-2); } .pp-chip svg.i { width: 11px; height: 11px; }
.pp-kv { display: flex; flex-direction: column; gap: 4px; }
.pp-kvr { display: grid; grid-template-columns: minmax(70px, 38%) 14px 1fr 24px; gap: 4px; align-items: center; }
.pp-kvr > span { color: var(--fg-3); text-align: center; }
.pp-x { border: 0; background: none; color: var(--fg-3); border-radius: 4px; width: 24px; height: 24px; cursor: pointer; display: grid; place-items: center; }
.pp-x:hover { background: var(--err-bg); color: var(--err); }
.pp-link { border: 0; background: none; color: var(--brand); cursor: pointer; padding: 2px 0; font-size: 12px; display: inline-flex; gap: 4px; align-items: center; }
.pp-link:hover { text-decoration: underline; }
.pp-days { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; padding-top: 4px; } .pp-days label { display: inline-flex; gap: 3px; align-items: center; }
.pp-vars { display: flex; flex-direction: column; gap: 4px; }
.pp-varr { display: grid; grid-template-columns: 1fr 74px 56px 64px 50px auto 24px; gap: 4px; align-items: center; }
.pp-mini { font-size: 11px; color: var(--fg-3); display: inline-flex; gap: 2px; align-items: center; }
.pp-desc { font-size: 12px; color: var(--fg-3); padding: 8px 14px; line-height: 1.45; display: flex; gap: 6px; }
.pp-desc.warn { color: var(--warn); padding: 4px 0; } .pp-desc.info { color: var(--fg-2); }
.pp-issues { padding: 8px 12px 12px; display: flex; flex-direction: column; gap: 4px; }
.pp-issue { display: flex; gap: 6px; font-size: 12px; align-items: flex-start; padding: 6px 8px; border-radius: 4px; }
.pp-issue.error { background: var(--err-bg); color: var(--err); } .pp-issue.warn { background: var(--warn-bg); color: var(--warn); } .pp-issue.info { background: var(--surface-2); color: var(--fg-2); }
.pp-issue span { color: var(--fg); } .pp-issue svg.i { flex: none; margin-top: 1px; }
.pp-timing { padding: 4px 0; }
.pp-tchart { width: 100%; height: auto; } .pp-tchart text { font-size: 10px; fill: var(--fg-3); } .pp-tchart path { fill: none; stroke-width: 1.6; } .pp-tchart .a { stroke: var(--ok); } .pp-tchart .b { stroke: var(--brand); }
.q-good { color: var(--ok); } .q-bad { color: var(--err); }

@media (prefers-reduced-motion: reduce) { .fe-node, .fe-world.glide, .fe-add { transition: none; } .fe-node.fe-new, .fe-menu { animation: none; } }

/* trigger editors: conditions, sub-triggers */
.pp-cr { display: grid; grid-template-columns: minmax(0, 1fr) 76px 76px 26px; gap: 4px; margin-bottom: 4px; align-items: center; }
.pp-tr { border: 1px solid var(--stroke); border-radius: var(--r); padding: 6px; margin-bottom: 6px; background: var(--surface); }
.pp-trh { display: flex; gap: 6px; align-items: center; margin-bottom: 4px; } .pp-trh .pp-in { flex: 1; }
.pp-trf { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 4px; align-items: center; margin-top: 3px; font-size: 12px; } .pp-trf label { color: var(--fg-3); }
.pp-chip b { color: var(--brand); margin-right: 2px; }
