body[data-manager-section="funnels"] .manager-page { width: 100%; max-width: none; }
.funnels-root { --f-line: #34393e; --f-soft: #aeb7c1; font-size: 14px; letter-spacing: 0; }
.funnels-root *, .funnels-root *::before, .funnels-root *::after { letter-spacing: 0; }
.funnels-root [hidden] { display: none !important; }
.funnels-root button, .funnels-root select, .funnels-root input, .funnels-root textarea { font: inherit; }
.funnels-root button { cursor: pointer; }
.funnels-root button:disabled { opacity: .45; cursor: not-allowed; }
.funnels-root button:focus-visible, .funnels-root a:focus-visible { outline: 2px solid #a7d66d; outline-offset: 3px; }
.funnels-root input, .funnels-root textarea, .funnels-root select { width: 100%; min-width: 0; border: 1px solid var(--f-line); border-radius: 6px; background: #121517; color: #f4f6f8; padding: 10px 12px; }
.funnels-root textarea { resize: vertical; line-height: 1.6; min-height: 145px; }
.funnels-root label { color: var(--f-soft); font-size: 12px; gap: 7px; margin: 0 0 18px; }
.funnels-root h1 { margin: 0; font-size: 27px; font-weight: 650; }
.funnels-root h2 { margin: 0; font-size: 17px; }
.funnels-root h3 { margin: 0; font-size: 14px; }
.funnels-root p { line-height: 1.55; }
.funnels-root .lucide { width: 17px; height: 17px; flex-shrink: 0; stroke-width: 1.7; }
.f-header, .f-toolbar, .f-row, .f-actions, .f-channel-label, .f-inspector-heading { display: flex; align-items: center; gap: 10px; }
.f-header { justify-content: space-between; flex-wrap: wrap; margin: 28px 0 24px; }
.f-header-title { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; }
.f-header .f-channel-select { width: 160px; }
.f-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 8px 13px; border: 1px solid var(--f-line); border-radius: 6px; background: #212529; color: #f4f6f8; white-space: nowrap; }
.f-button:hover:not(:disabled) { background: #2c3236; }
.f-button--primary { background: #b5df79; border-color: #b5df79; color: #192310; font-weight: 650; }
.f-button--primary:hover:not(:disabled) { background: #c5ee8c; }
.f-icon-button { width: 36px; height: 36px; padding: 0; flex-shrink: 0; }
.f-toolbar { border-block: 1px solid var(--f-line); padding: 12px 0; justify-content: space-between; flex-wrap: wrap; }
.f-search { position: relative; width: 240px; max-width: 100%; }
.f-search .lucide { position: absolute; top: 11px; left: 12px; color: var(--f-soft); }
.f-search input { padding-left: 38px; }
.f-filter { display: flex; flex-wrap: wrap; gap: 4px; }
.f-filter button { background: transparent; color: var(--f-soft); border: 0; border-radius: 4px; min-height: 36px; padding: 8px 12px; }
.f-filter button[aria-pressed="true"] { color: #c7eca2; background: #263324; }
.f-notice { min-height: 23px; color: var(--f-soft); margin: 10px 0; overflow-wrap: anywhere; }
.f-notice[data-kind="error"] { color: #ffb2ad; }
.f-notice[data-kind="success"] { color: #b5df79; }
.f-empty { padding: 48px 0; }
.f-empty h2 { font-size: 22px; margin-bottom: 24px; }
.f-templates { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.f-template { padding: 24px; min-height: 175px; border: 1px solid var(--f-line); border-radius: 8px; color: #f4f6f8; background: #191d20; text-align: left; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.f-template:hover { border-color: #92b763; background: #202629; }
.f-template > .lucide { width: 25px; height: 25px; color: #b5df79; }
.f-template strong { font-size: 17px; font-weight: 600; }
.f-template span { color: var(--f-soft); font-size: 13px; }
.f-list { width: 100%; border-collapse: collapse; margin: 16px 0; table-layout: fixed; }
.f-list th { color: var(--f-soft); font-size: 12px; font-weight: 500; text-align: left; padding: 12px; border-bottom: 1px solid var(--f-line); }
.f-list td { padding: 18px 12px; border-bottom: 1px solid #292d31; overflow-wrap: anywhere; }
.f-list th:first-child { width: 39%; }
.f-list th:last-child { width: 108px; }
.f-list-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.f-list-actions .f-actions { gap: 6px; }
.f-funnel-switch { display: inline-flex; align-items: center; gap: 6px; min-width: 70px; min-height: 38px; padding: 4px 0; border: 0; background: transparent; color: var(--f-soft); }
.f-switch-track { position: relative; display: inline-block; width: 38px; height: 22px; flex-shrink: 0; border: 1px solid #65717b; border-radius: 12px; background: #323a40; }
.f-switch-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #edf0f3; transition: transform .15s ease; }
.f-funnel-switch[aria-checked="true"] { color: #b5df79; }
.f-funnel-switch[aria-checked="true"] .f-switch-track { background: #b5df79; border-color: #b5df79; }
.f-funnel-switch[aria-checked="true"] .f-switch-track::after { background: #192310; transform: translateX(16px); }
.f-funnel-switch:hover:not(:disabled) .f-switch-track { outline: 1px solid #edf0f3; outline-offset: 2px; }
.f-toggle-unknown { display: inline-flex; align-items: center; gap: 4px; min-height: 38px; color: #f1cf7c; font-size: 11px; }
@media (prefers-reduced-motion: reduce) { .f-switch-track::after { transition: none; } }
.f-list-open { text-align: left; background: none; color: #f4f6f8; border: 0; padding: 0; font-weight: 600; overflow-wrap: anywhere; }
.f-list-open:hover { color: #b5df79; }
.f-list small { display: block; color: var(--f-soft); margin-top: 7px; }
.f-status { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; font-size: 12px; color: var(--f-soft); white-space: normal; }
.f-status::before { content: ""; width: 6px; height: 6px; flex-shrink: 0; border-radius: 50%; background: #919ba5; }
.f-status[data-state="published"] { color: #b5df79; }
.f-status[data-state="published"]::before { background: #b5df79; }
.f-status[data-state="paused"] { color: #f1cf7c; }
.f-status[data-state="paused"]::before { background: #f1cf7c; }
.f-editor-toolbar { align-items: center; margin-bottom: 0; }
.f-editor-identity { display: flex; gap: 12px; align-items: center; flex: 1 1 270px; min-width: 0; }
.f-editor-identity input { max-width: 340px; background: transparent; border-color: transparent; font-weight: 600; font-size: 16px; }
.f-editor-identity input:hover, .f-editor-identity input:focus { border-color: var(--f-line); }
.f-actions { flex-wrap: wrap; }
.f-editor { display: grid; grid-template-columns: minmax(0, 1fr) 310px; min-height: 570px; border-bottom: 1px solid var(--f-line); }
.f-canvas-section { min-width: 0; position: relative; background: #14181b; }
.f-canvas-tools { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px; border-bottom: 1px solid #292e32; }
.f-canvas-tools .f-row { gap: 4px; flex-wrap: wrap; }
.f-canvas-tools .f-button { background: #1d2225; }
.f-canvas-tools .f-add-button { min-height: 38px; padding: 8px 10px; background: #0867d9; border-color: #348dff; color: white; margin-left: 8px; }
.f-step-menu small { margin-left: auto; color: #f2ca65; font-size: 11px; }
.f-case-fields { min-width: 0; border: 0; border-top: 1px solid var(--f-line); padding: 12px 0 0; margin: 0 0 20px; }
.f-case-fields legend { color: var(--f-soft); font-size: 12px; padding-right: 8px; }
.f-case-fields > .f-button { float: right; margin-top: -8px; margin-bottom: 8px; }
.f-case-fields label { clear: both; }
.f-inspector [data-action="add-case"] { margin-bottom: 20px; }
.f-canvas-tools .f-add-button:hover { background: #147aec; }
.f-step-menu { position: absolute; z-index: 20; top: calc(100% - 5px); left: 12px; width: min(290px, calc(100% - 24px)); max-height: min(490px, 65dvh); overflow: auto; background: #20262b; border: 1px solid #4a555f; border-radius: 8px; padding: 8px; box-shadow: 0 12px 28px #0005; }
.f-menu-heading { display: block; padding: 12px 9px 7px; color: #aeb7c1; font-size: 11px; text-transform: uppercase; }
.f-step-menu button { width: 100%; display: flex; gap: 12px; align-items: center; text-align: left; padding: 11px 9px; color: #f4f6f8; background: transparent; border: 0; border-radius: 4px; }
.f-step-menu button:not(:disabled):hover, .f-step-menu button:focus-visible { background: #304252; outline-offset: -2px; }
.f-step-menu button .lucide { color: #9ecbff; }
.f-blank-canvas { padding: 100px 20px; text-align: center; color: #aeb7c1; }
.f-bubble small { display: block; font-size: 11px; opacity: .8; margin-bottom: 5px; }
.f-canvas-tools select { width: 155px; height: 36px; padding: 6px 8px; }
.f-zoom-label { display: inline-block; min-width: 42px; font-size: 11px; color: var(--f-soft); text-align: center; }
.f-canvas { position: relative; overflow: auto; height: 550px; overscroll-behavior: contain; overflow-anchor: none; touch-action: none; cursor: grab; background-image: radial-gradient(#353d43 .8px, transparent .8px); background-size: 20px 20px; }
.f-canvas:focus-visible { outline: 2px solid #58b4ff; outline-offset: -2px; }
.funnels-root[data-panning] .f-canvas { cursor: grabbing; user-select: none; }
.f-canvas-space { position: relative; margin: 0; min-width: 100%; min-height: 100%; overflow: clip; }
.f-graph { position: absolute; inset: 0 auto auto 0; transform-origin: top left; }
.f-graph > svg { position: absolute; inset: 0; overflow: visible; pointer-events: none; }
.f-wire { cursor: grab; outline: none; touch-action: none; }
.f-wire path, .f-wire-preview path { fill: none; stroke-linecap: butt; stroke-linejoin: miter; }
.f-wire-hit { stroke: transparent; stroke-width: var(--f-wire-hit-width, 20px); pointer-events: stroke; }
.f-wire-outline { stroke: #080a0c; stroke-width: 8; }
.f-graph-path { fill: none; stroke: var(--wire-color, #58b4ff); stroke-width: 4.5; }
.f-wire-shine { stroke: #ffffff; stroke-opacity: .28; stroke-width: 1.1; }
.f-wire:hover .f-wire-outline, .f-wire:focus-visible .f-wire-outline, .f-wire[aria-pressed="true"] .f-wire-outline { stroke: #eef6ff; stroke-width: 8; }
.f-wire[data-rewiring] { opacity: .2; }
.f-graph > .f-wire-preview { z-index: 5; }
.f-graph > .f-route-controls { z-index: 6; touch-action: none; }
.f-wires { touch-action: none; }
.f-route-handle { cursor: move; touch-action: none; outline: none; }
.f-route-handle[data-route-axis="vertical"] { cursor: ew-resize; }
.f-route-handle[data-route-axis="horizontal"] { cursor: ns-resize; }
.f-route-hit { fill: transparent; pointer-events: all; }
.f-route-dot { fill: #101418; stroke: var(--wire-color); stroke-width: 2; vector-effect: non-scaling-stroke; pointer-events: none; }
.f-route-handle:hover .f-route-dot, .f-route-handle:focus-visible .f-route-dot { fill: var(--wire-color); stroke: #fff; }
.f-end-handle { cursor: grab; touch-action: none; outline: none; }
.f-end-plug { fill: #080a0c; stroke: var(--wire-color); stroke-width: 1.5; pointer-events: none; }
.f-end-contact { fill: var(--wire-color); pointer-events: none; }
.f-end-handle:hover .f-end-plug, .f-end-handle:focus-visible .f-end-plug { stroke: #fff; stroke-width: 2.5; }
.f-end-handle[data-invalid] .f-end-plug { stroke: #ff858d; }
[data-moving-endpoint] .f-end-handle { cursor: grabbing; }
.f-node[data-end-drop="valid"] { outline: 2px solid #68dc9a; }
.f-node[data-end-drop="invalid"] { outline: 2px solid #ff858d; }
.f-custom-end { cursor: grab; }
[data-moving-route] .f-wire, [data-moving-route] .f-route-handle { cursor: grabbing; }
.f-route-setting { display: flex; align-items: center; justify-content: space-between; margin: 20px 0; gap: 12px; }
.f-route-setting span { font-size: 12px; color: var(--muted, #aab4be); }
.f-route-setting strong { display: block; margin-top: 5px; font-size: 14px; color: #edf2f5; font-weight: 500; }
.f-wire-plug { fill: #07090b; stroke: #8b949e; stroke-width: 1.5; }
.f-port { position: absolute; z-index: 4; width: var(--f-port-width, 34px); height: var(--f-port-height, 34px); transform: translate(-50%, -50%); border: 0; padding: 0; background: transparent; display: grid; place-items: center; touch-action: none; user-select: none; }
.f-port--output { cursor: crosshair !important; }
.f-port-plug { position: relative; display: block; width: 14px; height: 20px; border: 1px solid #69747b; border-radius: 3px; background: #080a0c; box-shadow: 0 2px 3px #0008, inset 2px 0 #23282c, inset -2px 0 #23282c; pointer-events: none; }
.f-port-plug::after { content: ""; position: absolute; width: 6px; height: 4px; top: 4px; left: 3px; background: var(--wire-color); border-radius: 1px; }
.f-port--input .f-port-plug { width: 18px; height: 13px; }
.f-port--input .f-port-plug::after { width: 10px; height: 3px; top: 4px; left: 3px; background: #40474d; }
.f-port:hover .f-port-plug, .f-port[aria-pressed="true"] .f-port-plug { border-color: var(--wire-color); box-shadow: 0 0 0 3px #b9d8f32b; }
.f-port-label { position: absolute; top: calc(50% + 12px); color: var(--wire-color); font-size: 11px; line-height: 1; pointer-events: none; padding: 2px 4px; background: #14181b; }
.f-port[data-compatible] .f-port-plug { border-color: #83d6b2; box-shadow: 0 0 0 3px #83d6b225; }
.f-port[data-drop-target] .f-port-plug { border-color: #ff858d; box-shadow: 0 0 0 5px #ff858d40; }
.f-port[data-drop-target][data-compatible] .f-port-plug { border-color: #68dc9a; box-shadow: 0 0 0 5px #68dc9a50; }
.f-graph[data-wiring] { cursor: crosshair; }
.f-connection-summary { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 6px 12px; align-items: center; margin-bottom: 24px; overflow-wrap: anywhere; }
.f-connection-summary > span:last-child { grid-column: 2; font-size: 12px; color: var(--f-soft); }
.f-wire-sample { position: relative; height: 5px; background: var(--wire-color); border-radius: 3px; }
.f-wire-sample::before, .f-wire-sample::after { content: ""; position: absolute; top: -4px; width: 9px; height: 13px; background: #080a0c; border: 1px solid #69747b; border-radius: 2px; }
.f-wire-sample::before { left: 0; }
.f-wire-sample::after { right: 0; }
.f-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.f-edge-label { font: 11px system-ui; fill: #bdc8cd; }
.f-node { position: absolute; width: 220px; height: 120px; padding: 0; display: flex; flex-direction: column; background: #21262b; border: 1px solid #465057; border-radius: 8px; color: #f4f6f8; text-align: left; box-shadow: 0 3px 8px #0002; }
.f-node:hover { border-color: #abc38d; }
.funnels-root .f-node { cursor: grab; touch-action: none; user-select: none; }
.funnels-root .f-node[data-dragging], .funnels-root[data-moving-node] .f-canvas { cursor: grabbing; }
.f-node[data-dragging] { box-shadow: 0 8px 20px #0007; }
.f-node[aria-pressed="true"] { border-color: #b5df79; outline: 2px solid #b5df7933; }
.f-node-title { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; border-bottom: 1px solid #ffffff12; width: 100%; padding: 10px 12px; background: #313437; border-radius: 7px 7px 0 0; }
.f-node-title .lucide { width: 15px; height: 15px; }
.f-node--trigger .f-node-title { background: #2d3d2e; color: #ceecba; }
.f-node--message .f-node-title { background: #3c2b35; color: #efb9d2; }
.f-node--message_received .f-node-title { background: #273e47; color: #b1e4ef; }
.f-node--rich_panel .f-node-title { background: #294359; color: #b8ddff; }
.f-node--ai_conversation .f-node-title { background: #23443b; color: #a0ead2; }
.f-node-title .lucide { flex-shrink: 0; }
.f-ai-settings { margin: 0; }
.f-ai-settings dt { color: #9aafbf; font-size: 12px; margin-top: 24px; }
.f-ai-settings dd { margin: 6px 0 0; font-size: 14px; line-height: 1.5; }
.f-ai-settings + label { margin-top: 24px; }
.f-rich-tabs { display: flex; border-bottom: 1px solid var(--f-line); margin-bottom: 18px; }
.f-rich-tabs button { flex: 1; background: transparent; color: var(--f-soft); border: 0; border-bottom: 2px solid transparent; padding: 10px; }
.f-rich-tabs [aria-selected="true"] { border-bottom-color: #7dbbff; color: #d0e6ff; }
.f-rich-heading, .f-rich-card-nav { display: flex; gap: 5px; align-items: center; margin: 12px 0; }
.f-rich-heading { justify-content: space-between; }
.f-rich-card-nav > span { flex: 1; text-align: center; font-size: 12px; white-space: nowrap; }
.f-rich-card-nav .f-icon-button { width: 30px; min-height: 32px; height: 32px; }
.f-rich-fields { min-width: 0; border: 0; border-top: 1px solid var(--f-line); padding: 12px 0 0; margin: 0 0 20px; }
.f-rich-fields legend { color: var(--f-soft); font-size: 12px; padding-right: 8px; }
.f-rich-fields > .f-button { float: right; margin-top: -8px; margin-bottom: 8px; }
.f-rich-fields label { clear: both; }
.f-rich-product-row { display: flex; align-items: center; gap: 8px; }
.f-rich-product-row label { min-width: 0; flex: 1; }
.f-rich-preview { min-width: 0; width: 100%; margin-bottom: 22px; }
.f-rich-preview > small { display: block; color: var(--f-soft); font-size: 11px; margin-bottom: 10px; }
.f-rich-carousel { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; }
.f-rich-preview-card { min-width: 0; overflow: hidden; border: 1px solid #47515a; border-radius: 8px; background: #242b31; }
.f-rich-carousel > .f-rich-preview-card { flex: 0 0 92%; scroll-snap-align: start; }
.f-rich-preview-copy { padding: 14px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; line-height: 1.55; }
.f-rich-preview-copy strong { font-size: 14px; }
.f-rich-preview-copy p { color: #d0d7de; margin: 5px 0; }
.f-rich-preview-copy small { display: block; margin-top: 8px; color: #a7cbee; }
.f-rich-image { aspect-ratio: 1.91; width: 100%; display: grid; place-items: center; background: #13191e; }
.f-rich-image img { width: 100%; height: 100%; object-fit: contain; min-height: 0; }
.f-rich-image-error { color: var(--f-soft); font-size: 12px; }
.f-rich-preview-button { border-top: 1px solid #47515a; padding: 12px; display: flex; gap: 8px; align-items: center; justify-content: center; color: #a7cfff; font-size: 13px; }
.f-rich-preview-button span { min-width: 0; overflow-wrap: anywhere; }
.f-rich-product-preview { padding: 0; list-style: none; }
.f-rich-product-preview li { display: flex; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--f-line); overflow-wrap: anywhere; }
.f-rich-product-preview span { min-width: 0; }
.f-node--delay .f-node-title { background: #403929; color: #ead39a; }
.f-node--condition .f-node-title, .f-node--platform_condition .f-node-title { background: #233c3d; color: #a0ddda; }
.f-node--cases .f-node-title { background: #263e50; color: #9ed3f5; }
.f-node--while .f-node-title { background: #403621; color: #f2ca65; }
.f-node--end .f-node-title { color: #b8c9c8; }
.f-node-copy { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; font-size: 12px; line-height: 1.5; padding: 10px 12px; width: 100%; white-space: pre-wrap; color: #cbd3d7; }
.f-inspector { min-width: 0; max-height: 613px; overflow-y: auto; padding: 20px; border-left: 1px solid var(--f-line); background: #191d20; }
.f-inspector-heading { justify-content: space-between; margin-bottom: 22px; min-height: 36px; }
.f-inspector-heading h2 { font-size: 16px; }
.f-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.f-check { display: flex !important; align-items: center; gap: 8px; }
.f-check input { width: 16px; height: 16px; accent-color: #b5df79; }
.f-trigger-events, .f-preview-history { border: 0; padding: 0; margin: 0 0 20px; min-width: 0; }
.f-trigger-events legend, .f-preview-history legend { font-size: 12px; color: var(--f-soft); margin-bottom: 10px; }
.f-trigger-events .f-check { align-items: flex-start; margin-bottom: 0; padding: 9px 0; line-height: 1.5; color: #e0e5e9; cursor: pointer; }
.f-trigger-events input { flex: 0 0 16px; margin-top: 2px; padding: 0; }
.f-trigger-events .f-check-all { border-bottom: 1px solid var(--f-line); margin-bottom: 4px; color: #b4d4fa; }
.f-trigger-events small { display: block; color: #e8cc90; font-size: 11px; }
.f-interval-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.f-caption { color: var(--f-soft); font-size: 12px; }
.f-limit { display: flex; justify-content: flex-end; color: var(--f-soft); font-size: 11px; margin-top: -13px; margin-bottom: 18px; }
.f-channel-label { color: #c7cdd2; font-size: 12px; margin-bottom: 18px; }
.f-channel-label img { width: 19px; height: 19px; }
.f-branch-label { font-size: 12px; padding-left: 10px; border-left: 2px solid #79baad; }
.f-branch-label--no { border-color: #d39792; }
.f-inspector-footer { margin-top: 28px; border-top: 1px solid var(--f-line); padding-top: 16px; }
.f-inspector-footer p { margin-bottom: 0; }
.f-preview-messages { min-height: 220px; max-height: 330px; overflow: auto; display: flex; flex-direction: column; gap: 14px; padding: 16px 0; }
.f-preview-messages > * { flex-shrink: 0; }
.f-bubble { max-width: 90%; align-self: flex-end; padding: 11px 14px; border-radius: 8px; background: #315549; color: #f1fbf4; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; font-size: 13px; }
.f-bubble--inbound { align-self: flex-start; background: #2b3036; color: #ecf0f2; }
.f-message-parts { display: flex; flex-direction: column; gap: 12px; max-height: 360px; overflow: auto; margin: 12px 0 22px; font-size: 12px; color: var(--f-muted, #9aa6b1); }
.f-message-parts .f-bubble { max-width: 100%; min-width: 0; box-sizing: border-box; }
.f-message-parts .f-preview-warning { margin: 0; }
.f-preview-event { align-self: center; color: #bec6cc; font-size: 12px; text-align: center; }
.f-preview-warning { color: #e8cc90; font-size: 12px; }
.f-dialog { background: #1b2023; color: #f4f6f8; border: 1px solid #454d50; border-radius: 8px; padding: 24px; width: min(860px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto; }
.f-dialog::backdrop { background: #050708b8; }
.f-dialog .f-inspector-heading { margin-bottom: 24px; }
.f-dialog--confirm { width: min(450px, calc(100vw - 32px)); }
.f-dialog-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.f-publish-label { color: #c9e5b2; font-size: 12px; }
.f-saved-state { color: var(--f-soft); font-size: 11px; white-space: nowrap; }
.f-link-copy { display:grid; gap:6px; margin-top:12px; min-width:0; }
.f-link-copy input { width:100%; min-width:0; }
.f-runs { padding: 0; list-style: none; }
.f-runs li { display: grid; gap: 8px; padding: 14px 0; border-bottom: 1px solid var(--f-line); overflow-wrap: anywhere; }
.f-runs .f-button { justify-self: start; }
@media (min-width: 1500px) { .f-inspector { max-height: 693px; } }
@media (max-width: 620px) { .f-inspector { max-height: none; overflow-y: visible; } }
@media (min-width: 1500px) { .f-editor { grid-template-columns: minmax(0, 1fr) 360px; } .f-canvas { height: 630px; } }
/* Fill the space below the editor controls without fixing their height. Long
   guides/reports can still scroll the page; the canvas keeps a usable minimum. */
@media (min-width: 621px) {
  body[data-manager-section="funnels"]:has(.f-editor) { display: flex; flex-direction: column; height: 100dvh; }
  body[data-manager-section="funnels"]:has(.f-editor) > .epic-navbar { flex-shrink: 0; }
  body[data-manager-section="funnels"]:has(.f-editor) .manager-page { display: flex; flex-direction: column; flex: 1; min-height: 0; }
  body[data-manager-section="funnels"]:has(.f-editor) .manager-tabs { flex-shrink: 0; }
  body[data-manager-section="funnels"]:has(.f-editor) #manager-portal:not([hidden]),
  .funnels-root:has(.f-editor) { display: flex; flex-direction: column; flex: 1; min-height: 0; }
  .funnels-root:has(.f-editor) > :not(.f-editor) { flex-shrink: 0; }
  .funnels-root:has(.f-editor) > .f-header { margin: 8px 0 16px; }
  .funnels-root:has(.f-editor) > .f-notice:empty { min-height: 0; margin: 6px 0; }
  .f-editor { flex: 1 0 360px; min-height: 360px; grid-template-rows: minmax(0, 1fr); }
  .f-canvas-section { display: flex; flex-direction: column; min-height: 0; }
  .f-canvas-tools { flex-shrink: 0; }
  .f-canvas { flex: 1; height: auto; min-height: 0; }
  .f-inspector { min-height: 0; max-height: none; }
}
@media (max-width: 800px) { .f-editor { grid-template-columns: minmax(0, 1fr) 275px; } .f-inspector { padding: 16px; } .f-canvas-tools { flex-wrap: wrap; } .f-templates { grid-template-columns: 1fr; } .f-template { min-height: 110px; } .f-list th:nth-child(3), .f-list td:nth-child(3) { display: none; } .f-list th:first-child { width: 45%; } }
@media (max-width: 620px) { .f-header { margin-top: 18px; gap: 16px; } .f-header h1 { font-size: 24px; } .f-header .f-channel-select { width: 140px; } .f-header-title { gap: 12px; } .f-editor { grid-template-columns: minmax(0, 1fr); } .f-inspector { border-left: 0; border-top: 1px solid var(--f-line); } .f-canvas { height: 350px; } .f-canvas-tools { gap: 8px; } .f-editor-toolbar { align-items: stretch; } .f-editor-identity input { padding-inline: 4px; } .f-actions { gap: 6px; } .f-actions .f-button { padding: 8px 10px; } .f-list th:nth-child(4), .f-list td:nth-child(4) { display: none; } .f-list th:first-child { width: auto; } .f-list th:nth-child(2) { width: 86px; } .f-list th:last-child { width: 85px; } .f-list td { padding: 14px 5px; } .f-list th { padding: 12px 5px; } .f-list .f-actions { gap: 3px; } .f-search { width: 100%; } .f-dialog { padding: 18px; } }

/* EPIC first contact: shared, warm wording with locked action meanings. */
.f-foundation-banner { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 18px 20px; margin-top: 16px; border: 1px solid #506447; border-radius: 12px; background: #1c261f; }
.f-foundation-banner > div { min-width: 0; }
.f-foundation-banner strong { color: #e2efd9; }
.f-foundation-banner p { margin: 7px 0; color: #d1dccd; }
.f-foundation-banner small { display: block; color: #b8c8b1; line-height: 1.6; }
.f-foundation-badge { display: inline-flex; flex-shrink: 0; border: 1px solid #617752; border-radius: 99px; padding: 5px 10px; font-size: 11px; font-weight: 600; color: #d7e8c9; background: #2a3825; }
.f-node--si_onboarding { border-color: #698453; background: #222d24; }
.f-welcome-card { min-width: 0; overflow: hidden; margin: 18px 0 12px; border: 1px solid #58634e; border-radius: 14px; padding: 19px; color: #e8eee3; background: #202722; }
.f-welcome-eyebrow { display: block; color: #bad2aa; font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }
.funnels-root .f-welcome-card h3 { margin: 10px 0 16px; color: #f2f4ed; font-size: 19px; line-height: 1.35; }
.f-welcome-card p { margin: 0 0 14px; font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; white-space: pre-line; }
.f-welcome-buttons { display: grid; gap: 9px; padding-top: 7px; }
.funnels-root .f-welcome-button { display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 0; min-height: 44px; padding: 11px 12px; border: 1px solid #5d6b53; border-radius: 9px; background: #2c362b; color: #edf4e5; text-align: center; text-decoration: none; white-space: normal; overflow-wrap: anywhere; font-weight: 550; font-size: 13px; }
.funnels-root .f-welcome-button:hover:not(:disabled) { background: #384432; }
.funnels-root .f-welcome-button--primary { background: #b5df79; border-color: #b5df79; color: #192310; font-weight: 650; }
.funnels-root .f-welcome-button--primary:hover:not(:disabled) { background: #c5ee8c; }
@media (max-width: 600px) {
  .f-foundation-banner { flex-wrap: wrap; padding: 15px; }
  .f-welcome-card { padding: 15px; }
  .f-foundation-banner .f-button { white-space: normal; }
}

/* Read-only account-entry IF/THEN overview; selection never rewires the graph. */
.f-first-interaction { margin-top:16px; padding:16px 20px; border:1px solid #506447; border-radius:12px; background:#1a211d; }
.f-first-interaction > summary { display:flex; align-items:center; gap:12px; min-height:24px; cursor:pointer; list-style:none; }
.f-first-interaction > summary::-webkit-details-marker { display:none; }
.f-first-interaction > summary::before { content:"\25B6"; color:#bddf84; font-size:11px; }
.f-first-interaction[open] > summary::before { content:"\25BC"; }
.f-first-interaction > summary:focus-visible { outline:2px solid #bddf84; outline-offset:5px; border-radius:3px; }
.f-first-interaction > summary span { margin-left:auto; font-size:12px; color:#bddf84; }
.f-first-interaction[open] > summary { margin-bottom:14px; }
.f-first-interaction:not([open]) .f-guide-hide, .f-first-interaction[open] .f-guide-show { display:none; }
.f-first-interaction header { display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap; margin-bottom:10px; }
.f-if-map { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:0 20px; max-width:760px; margin:0 auto; }
.f-if-condition { grid-column:1/-1; display:flex; align-items:center; justify-content:center; gap:10px; padding:10px 16px; border:1px solid #758766; border-radius:10px; background:#283122; text-align:center; }
.f-if-condition > span, .f-if-branch { font-size:12px; color:#c4d7b5; }
.f-if-yes, .f-if-no { position:relative; padding-top:12px; display:grid; gap:7px; text-align:center; }
.f-if-yes::before, .f-if-no::before { content:""; position:absolute; top:0; left:50%; height:10px; border-left:1px solid #809576; }
.f-if-step, .f-if-join { min-height:52px; display:grid; gap:4px; align-content:center; padding:10px 14px; color:#e7eee2; border:1px solid #55644d; border-radius:8px; background:#232b25; font:inherit; text-align:center; }
button.f-if-step, button.f-if-join { cursor:pointer; width:100%; }
.f-if-step small, .f-if-join small { font-size:12px; color:#becabb; line-height:1.45; }
.f-if-down { color:#a2b992; line-height:18px; }
.f-if-join { grid-column:1/-1; background:#263629; }
.f-if-step:focus-visible, .f-if-join:focus-visible { outline:2px solid #b7df7c; outline-offset:3px; }
.f-first-interaction > p { margin-bottom:0; }
.f-trigger-rules h3 { font-size:14px; margin:18px 0 6px; }
@media (max-width:620px) { .f-first-interaction { padding:12px; } .f-if-map { gap:0 8px; } .f-if-step, .f-if-join { padding:9px 6px; overflow-wrap:anywhere; } .f-if-condition { padding:10px 8px; } }

/* Required Icebreaker boundary and optional, bounded unfinished reminder. */
.f-node[data-onboarding-stage="icebreaker"] { border-color:#769468; }
.f-node[data-onboarding-stage="icebreaker_complete"] { border-color:#59bca0; }
.f-node[data-onboarding-stage="icebreaker_complete"] .f-node-title { background:#21473d; }
.f-reminder-settings { border:1px solid var(--f-line); border-radius:10px; padding:12px; margin:18px 0; min-width:0; }
.f-reminder-settings legend { padding:0 5px; font-weight:600; }
.f-reminder-settings label { margin-top:12px; }
.f-icebreaker-behavior h3 { margin:10px 0; }
.f-icebreaker-behavior .f-actions { flex-wrap:wrap; }

.f-completion-preview { border:1px solid #59bca0; border-radius:8px; padding:12px; display:grid; gap:6px; background:#1b3028; font-size:12px; line-height:1.5; }

/* Flow-button previews are actual test controls, not provider callbacks. */
button.f-rich-preview-button { width:100%; min-height:44px; background:transparent; border-right:0; border-bottom:0; border-left:0; cursor:pointer; font:inherit; }
button.f-rich-preview-button:hover, button.f-rich-preview-button[aria-pressed="true"] { background:#203949; }
button.f-rich-preview-button:focus-visible { outline:2px solid #a7cfff; outline-offset:-3px; }
.f-port-label { max-width:110px; overflow-wrap:anywhere; text-align:center; line-height:1.2; }

/* Explicit definition readiness, separate from live recipient eligibility. */
.f-readiness { margin:16px 0; padding:18px; border:1px solid #53646d; border-radius:10px; background:#192126; color:#edf3f5; overflow-wrap:anywhere; }
.f-readiness h2, .f-readiness h3 { margin:8px 0 12px; }
.f-readiness p { line-height:1.6; }
.f-readiness-issue { padding:10px 0; border-top:1px solid #39444c; }
.f-readiness-issue .f-actions { flex-wrap:wrap; }
.f-readiness-issue button { white-space:normal; overflow-wrap:anywhere; max-width:100%; }
.f-readiness summary { cursor:pointer; padding:12px 0; }
