body.funnel-open .workspace-footer{display:none}
.fn-tool{display:grid;gap:var(--surface-gap);padding-bottom:48px;min-width:0;--fn-blue:#3478f6;--fn-teal:#189eb5}
.fn-tool h2{margin:0;font-size:20px;line-height:28px;letter-spacing:-.4px}.fn-tool svg{width:18px;height:18px}
.fn-empty{text-align:center;padding:56px 24px!important}.fn-empty-symbol{display:grid;place-items:center;width:52px;height:52px;margin:0 auto 20px;border-radius:16px;background:var(--surface-control);color:var(--text-secondary)}.fn-empty-symbol svg{width:24px;height:24px}
.fn-empty h2{font-size:24px;line-height:34px}.fn-empty p{font-size:16px;line-height:26px;color:var(--text-secondary);margin:14px 0 24px}.fn-empty-actions{display:flex;justify-content:center;align-items:center;gap:10px;flex-wrap:wrap}
.fn-section-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px}.fn-settings{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:24px}.fn-optional{font-weight:500;color:var(--text-muted)}.fn-rule{font-size:14px;line-height:23px;margin:20px 0 28px;color:var(--text-secondary);max-width:760px}
.fn-table{width:100%;border-collapse:collapse;table-layout:fixed;text-align:left}.fn-name-col{width:auto}.fn-count-col{width:210px}.fn-actions-col{width:112px}.fn-b-col,.fn-b-cell{display:none}.fn-series-input{display:none}.fn-comparing .fn-b-cell{display:table-cell}.fn-comparing .fn-b-col{display:table-column;width:24%}.fn-comparing .fn-count-col{width:24%}.fn-comparing .fn-series-input{display:flex}
.fn-table th{vertical-align:bottom;padding:0 6px 14px;font-weight:550;font-size:14px;color:var(--text-secondary)}.fn-table th:first-child{padding-left:0}.fn-table th:last-child{padding-right:0}.fn-series-label{display:flex;align-items:center;gap:7px;font-size:14px;line-height:22px;margin-bottom:8px}.fn-table:not(:has(.fn-series-input:not([hidden]))) .fn-series-label{margin-bottom:0}.fn-table .fn-series-label .fn-dot{display:none}.fn-comparing .fn-table .fn-series-label .fn-dot{display:inline-block}
.fn-table td{padding:14px 6px;border-top:1px solid #ededf0;vertical-align:top}.fn-table td:first-child{padding-left:0}.fn-table td:last-child{padding-right:0}.fn-stage-name{display:flex;align-items:center;gap:10px}.fn-stage-name>.dt-input{flex:1;min-width:0}.fn-order{display:grid;place-items:center;width:24px;height:44px;flex-shrink:0;font-size:14px;font-weight:600;color:var(--text-muted);cursor:grab;user-select:none}.fn-order:active{cursor:grabbing}.fn-table .fn-row-actions{white-space:nowrap;padding-top:20px}.fn-row-actions .dt-icon-button{display:inline-grid;width:30px;height:32px}.fn-row-actions .fn-delete:hover{color:var(--status-fail-text);background:var(--status-fail-bg)}.fn-tool button:disabled{opacity:.4;cursor:default}
.fn-table .dt-input input{font-size:15px}.fn-value-cell input{font-variant-numeric:tabular-nums}.fn-table tr.is-drop-target{background:var(--surface-result)}.fn-mobile-label{display:none}.fn-field-error{font-size:13px;line-height:21px;margin:8px 0 0;color:var(--status-fail-text)}
.fn-editor-bottom{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:8px}.fn-stage-count{font-size:13px;line-height:22px;color:var(--text-muted)}.fn-storage{margin:20px 0 0;font-size:14px;line-height:22px;color:var(--text-muted)}.fn-storage:empty{display:none}.fn-storage.has-error{color:var(--status-fail-text)}
.fn-results{display:grid;gap:var(--surface-gap);min-width:0}.fn-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--surface-gap)}.fn-metric{min-width:0}.fn-metric h3{font-size:14px;line-height:22px;font-weight:550;color:var(--text-secondary);margin:0 0 16px}.fn-metric-line{display:flex;align-items:flex-start;gap:10px;min-width:0}.fn-metric-line+.fn-metric-line{margin-top:14px}.fn-metric-letter{display:grid;place-items:center;border-radius:6px;width:24px;height:24px;flex-shrink:0;margin-top:6px;background:var(--surface-control);font-size:12px;line-height:20px;font-weight:650}.fn-metric-letter.fn-a{color:var(--fn-blue)}.fn-metric-letter.fn-b{color:var(--fn-teal)}.fn-metric-value{font-size:30px;line-height:38px;font-weight:650;letter-spacing:-.7px;min-width:0;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.fn-largest-value{font-size:22px;line-height:32px;letter-spacing:-.3px}.fn-largest{background:transparent;text-align:left;padding:0;color:var(--text-primary);width:100%}.fn-largest strong{display:block;font-size:30px;line-height:38px;font-weight:650}.fn-largest>span{display:block;margin-top:6px;font-size:14px;line-height:23px;font-weight:500;color:var(--text-secondary);overflow-wrap:anywhere}.fn-largest:hover>span{text-decoration:underline;text-underline-offset:3px}.fn-delta{font-size:14px;line-height:23px;color:var(--text-result);font-weight:600;margin:14px 0 0}
.fn-mode{flex-shrink:0}.fn-mode label{flex:1}.fn-legend{display:flex;align-items:center;flex-wrap:wrap;gap:12px 24px;font-size:14px;line-height:23px;color:var(--text-secondary);margin-bottom:12px}.fn-legend>span{display:inline-flex;align-items:center;gap:7px;overflow-wrap:anywhere;min-width:0}.fn-dot{display:inline-block;width:8px;height:8px;border-radius:50%;flex-shrink:0;background:var(--fn-blue)}.fn-dot.fn-b{background:var(--fn-teal)}.fn-chart-description{font-size:14px;line-height:23px;color:var(--text-secondary);margin:0 0 24px}.fn-result-notice{border-radius:12px;padding:12px 14px;background:var(--surface-control);font-size:14px;line-height:23px;color:var(--text-secondary);margin-bottom:16px}
.fn-chart{min-width:0}.fn-chart-stage{padding:12px;border-radius:14px;transition:background-color 180ms ease}.fn-chart-stage.is-highlighted{background:var(--surface-result)}.fn-chart-stage h3{font-size:16px;line-height:26px;font-weight:600;margin:0 0 12px;display:flex;gap:10px;overflow-wrap:anywhere}.fn-chart-stage h3>span{font-size:14px;line-height:26px;font-weight:500;color:var(--text-muted);width:20px;flex-shrink:0}.fn-bar-row{display:grid;grid-template-columns:20px minmax(0,1fr) 140px;gap:10px;align-items:center}.fn-bar-row+.fn-bar-row{margin-top:12px}.fn-series-letter{font-size:13px;font-weight:600;line-height:24px;color:var(--text-secondary)}.fn-bar-track{height:30px;border-radius:8px;background:var(--surface-control);min-width:0;overflow:hidden}.fn-bar{display:block;height:100%;background:var(--fn-blue);border-radius:8px}.fn-bar.fn-b{background:var(--fn-teal)}.fn-bar-value{min-width:0;display:flex;flex-direction:column;align-items:flex-end;gap:2px;font-variant-numeric:tabular-nums}.fn-bar-value strong{font-size:16px;line-height:24px;font-weight:650;overflow-wrap:anywhere}.fn-bar-value>span{font-size:12px;line-height:20px;color:var(--text-muted);text-align:right}.fn-transitions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:10px 12px 10px 42px}.fn-loss{display:flex;align-items:center;flex-wrap:wrap;gap:8px 18px;min-height:36px;padding:7px 10px;border-radius:10px;background:var(--surface-control);color:var(--text-secondary);font-size:13px;line-height:22px;text-align:left;transition:background-color 140ms ease,color 140ms ease}.fn-loss strong{font-weight:650;color:var(--text-primary);margin-left:4px}.fn-loss>b{font-weight:650}.fn-loss:hover,.fn-loss[aria-pressed=true]{background:var(--surface-result);color:var(--text-result)}.fn-loss[aria-pressed=true] strong{color:var(--text-result)}.fn-step-delta{font-size:13px;line-height:22px;margin:10px 0 0 30px;color:var(--text-secondary);font-variant-numeric:tabular-nums}
.fn-chart-footer{margin-top:24px;padding-top:20px;border-top:1px solid #ededf0}.fn-comparison-note{font-size:14px;line-height:23px;color:var(--text-muted);margin:0 0 18px}.fn-export-actions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.fn-undo{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);z-index:65;display:flex;align-items:center;gap:20px;padding:14px 18px;border-radius:12px;background:#202124;color:#fff;font-size:14px;line-height:22px;max-width:calc(100vw - 32px);animation:fn-enter 220ms ease}.fn-undo button{background:transparent;padding:4px 0;color:#fff;font-size:14px;font-weight:650;text-decoration:underline;text-underline-offset:4px}.fn-undo[data-closing=true]{opacity:0;transition:opacity 160ms ease}.fn-confirm{width:min(560px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:28px;border-radius:20px}.fn-confirm h2{font-size:24px;line-height:34px;margin:0 0 14px}.fn-confirm p{font-size:16px;line-height:26px;margin:0;color:var(--text-secondary)}.fn-confirm>div{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap;margin-top:24px}
@keyframes fn-enter{from{opacity:0;translate:0 4px}to{opacity:1;translate:0 0}}
@media(max-width:1250px){.fn-comparing .fn-name-col{width:34%}.fn-comparing .fn-count-col,.fn-comparing .fn-b-col{width:24%}.fn-comparing .fn-actions-col{width:18%}.fn-comparing .fn-row-actions .dt-icon-button{width:27px}}
@media(max-width:1000px){.fn-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.fn-metric:last-child{grid-column:1/-1}.fn-metric-value,.fn-largest strong{font-size:28px}.fn-section-head{flex-wrap:wrap}.fn-settings{gap:16px}}
@media(max-width:900px){.fn-table,.fn-table tbody{display:block}.fn-table colgroup,.fn-table thead{display:none}.fn-table tr{display:grid;position:relative;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px 12px;padding:20px 0;border-top:1px solid #ededf0}.fn-table td{display:block;padding:0!important;border:0;min-width:0}.fn-table .fn-b-cell{display:none}.fn-comparing .fn-table .fn-b-cell{display:block}.fn-table .fn-name-cell{grid-column:1/-1;padding-right:95px!important}.fn-table .fn-row-actions{position:absolute;right:0;top:26px}.fn-mobile-label{display:block;font-size:14px;line-height:22px;font-weight:550;color:var(--text-secondary);margin-bottom:8px}.fn-table:not(.fn-comparing) .fn-value-cell{grid-column:1/-1}.fn-comparing .fn-value-cell{grid-column:auto!important}.fn-stage-name{gap:6px}.fn-order{width:18px}.fn-table .fn-value-cell{padding-left:24px!important}.fn-comparing .fn-table .fn-b-cell{padding-left:0!important}.fn-series-mobile:not([hidden]){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0 0 20px}.fn-series-mobile .dt-field>label{min-height:0;display:block}}
@media(max-width:760px){.fn-tool{padding-bottom:32px}.fn-empty{padding:40px 20px!important}.fn-empty h2{font-size:22px;line-height:32px}.fn-settings{grid-template-columns:minmax(0,1fr);gap:18px}.fn-settings .dt-field>label{min-height:0;display:block}.fn-rule{margin:18px 0 22px}.fn-metrics{grid-template-columns:minmax(0,1fr)}.fn-metric:last-child{grid-column:auto}.fn-metric h3{margin-bottom:12px}.fn-metric-line+.fn-metric-line{margin-top:10px}.fn-bar-row{grid-template-columns:16px minmax(0,1fr) 105px;gap:8px}.fn-bar-value>span{font-size:12px}.fn-bar-track{height:28px}.fn-chart-stage{padding:10px 0}.fn-chart-stage.is-highlighted{padding-inline:10px}.fn-transitions{padding:10px 0 10px 24px}.fn-loss{width:100%;gap:4px 12px;font-size:13px}.fn-loss>span{display:block}.fn-chart-stage h3{gap:6px;font-size:15px}.fn-mode{max-width:100%;width:100%}.fn-section-head{gap:16px}.fn-legend{gap:10px 20px}.fn-stage-count{font-size:12px}.fn-editor-bottom{gap:8px}.fn-comparison-note{font-size:13px}.fn-export-actions{justify-content:flex-start}.fn-confirm{padding:22px}}
@media(max-width:380px){.fn-table .fn-name-cell{padding-right:0!important}.fn-table .fn-row-actions{position:static;grid-column:1/-1;padding-left:24px!important}.fn-table .fn-value-cell{padding-left:0!important}.fn-empty-actions{flex-direction:column;align-items:stretch}.fn-section-head>.fn-compare{width:100%}.fn-bar-row{grid-template-columns:14px minmax(0,1fr) 88px;gap:6px}.fn-bar-value strong{font-size:15px}.fn-bar-value>span{font-size:11px}.fn-stage-count{max-width:68px;text-align:right}}

.fn-series-mobile{display:none}
.fn-loss{font-size:14px}
@media(max-width:760px){.fn-table .fn-name-cell{padding-right:0!important}.fn-table .fn-row-actions{position:static;grid-column:1/-1;padding:0!important;text-align:right}}
#fn-editor-body{transition:opacity 160ms ease,display 160ms allow-discrete}
#fn-editor-body[hidden]{opacity:0}
@starting-style{#fn-editor-body:not([hidden]){opacity:0}}

.fn-editor-actions{display:flex;gap:8px;flex-wrap:wrap}.fn-editor.is-collapsed .fn-section-head{margin-bottom:0}

/* Column labels share a baseline in both editor modes. */
.fn-table th .fn-series-label{margin:0;min-height:22px}
.fn-comparing .fn-table th .fn-series-input{margin-top:8px}
.fn-comparing .fn-table th:first-child{vertical-align:top}
.fn-metric-value{display:flex;flex-direction:column;gap:8px;letter-spacing:normal}
.fn-metric-number,.fn-largest strong{font-size:32px;line-height:40px;letter-spacing:-.6px;font-weight:650}
.fn-metric-caption{font-size:14px;line-height:22px;color:var(--text-secondary);font-weight:500}
.fn-largest>span{margin-top:8px;line-height:22px}.fn-largest-value{font-size:32px;line-height:40px}
.fn-metric-line{align-items:flex-start}.fn-metric-letter{margin-top:8px;background:var(--surface-data)}
.fn-bar-track,.fn-result-notice{background:var(--surface-data)}

.fn-table thead th{line-height:22px}.fn-table thead .fn-series-label{min-height:22px;line-height:22px}

.fn-metric[data-metric=total] .fn-metric-number{color:var(--text-result)}
.fn-metric[data-metric=lost] .fn-metric-caption{color:var(--status-fail-text)}
.fn-metric-value .fn-largest>span{letter-spacing:0;font-size:14px;line-height:22px;margin-top:8px}
