/* Causal demo presentation. Original result engine and controls remain owners. */
.fd-demo [data-demo-story]{--story-ink:#102f43;--story-muted:#435f70}
.fd-demo [data-demo-story] .w11-story-intro{padding:0 0 16px;max-width:64ch}
.fd-demo [data-demo-story] .w11-story-intro h2{font-size:20px;line-height:1.2;letter-spacing:-.015em;color:var(--story-ink);margin:0 0 8px}
.fd-demo [data-demo-story] .w11-story-intro p{font-size:16px;line-height:1.55;color:var(--story-muted);margin:0}
.fd-demo [data-demo-story] .w11-story-controls{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:0}
.fd-demo [data-demo-story] .w11-story-controls[hidden],.fd-demo [data-demo-story] [data-story-scene][hidden]{display:none!important}
.fd-demo [data-demo-story] .w11-story-controls button{min-height:48px;min-width:48px;padding:12px 16px;border:1px solid #7795a7;border-radius:3px;background:#fff;color:var(--story-ink);font:inherit;font-size:15px;cursor:pointer}
.fd-demo [data-demo-story] .w11-story-controls button:first-child{background:#123e50;color:#fff;border-color:#123e50}
.fd-demo [data-demo-story] .w11-story-controls button[aria-disabled=true]{opacity:.55;cursor:default}
.fd-demo [data-demo-story] .w11-story-controls button:focus-visible{outline:3px solid #167bb5;outline-offset:3px}
.fd-demo [data-demo-story] [data-story-status]{font-size:14px;line-height:1.5;color:var(--story-muted);flex:1 0 100%;padding-top:4px}
.fd-demo [data-demo-story] .w11-stage{min-width:0;background:#fff;color:var(--story-ink);padding:36px;border-top:1px solid var(--story-ink);margin-bottom:24px;overflow-wrap:anywhere}
.fd-demo [data-demo-story] .w11-stage h3{font-size:15px;line-height:1.5;font-weight:500;color:var(--story-muted);margin:0 0 28px}
.fd-demo [data-demo-story] .w11-source{border-left:4px solid #b06623;padding:8px 0 8px 24px}
.fd-demo [data-demo-story] .w11-source strong{display:block;font-size:clamp(30px,3vw,44px);line-height:1.16;font-weight:500;letter-spacing:-.025em}
.fd-demo [data-demo-story] .w11-stage p{font-size:17px;line-height:1.6;max-width:50ch;margin:22px 0 0;color:var(--story-ink)}
.fd-demo [data-demo-story] .w11-check{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin:0 0 28px}
.fd-demo [data-demo-story] .w11-check div{border-bottom:1px solid #b8cbd4;padding-bottom:16px;min-width:0}
.fd-demo [data-demo-story] .w11-check dt{font-size:14px;color:var(--story-muted);margin-bottom:8px}
.fd-demo [data-demo-story] .w11-check dd{font-size:clamp(23px,2.5vw,34px);line-height:1.2;margin:0;letter-spacing:-.02em}
.fd-demo [data-demo-story] .w11-stage .w11-reply{background:#123e50;color:#fff;padding:28px;border-radius:0 18px 18px 18px;font-size:clamp(23px,2.3vw,31px);line-height:1.4;letter-spacing:-.02em;margin:0}
.fd-demo [data-demo-story] .w11-route{display:flex;align-items:center;gap:16px;border-top:1px solid #b8cbd4;margin-top:28px;padding-top:20px;font-size:19px;line-height:1.4}
.fd-demo [data-demo-story] .w11-stage small{display:block;margin-top:24px;font-size:13px;line-height:1.55;color:var(--story-muted)}
.fd-demo [data-demo-story][data-story-ready=true] .w11-story-board{min-height:460px}
.fd-demo [data-demo-story] .w11-benefit{font-size:16px;line-height:1.6;border-top:1px solid #b8cbd4;padding-top:20px;color:var(--story-ink)}
@media(max-width:900px){.fd-demo [data-demo-story][data-story-ready=true] .w11-story-board{min-height:0}.fd-demo [data-demo-story] .w11-stage{padding:24px}}
@media(max-width:600px){.fd-demo [data-demo-story] .w11-check{grid-template-columns:1fr;gap:18px}.fd-demo [data-demo-story] .w11-source{padding-left:16px}.fd-demo [data-demo-story] .w11-stage .w11-reply{padding:22px}.fd-demo [data-demo-story] .w11-story-controls{gap:6px}.fd-demo [data-demo-story] .w11-story-controls button{padding-inline:12px}}
@media(prefers-reduced-motion:reduce){.fd-demo [data-demo-story]{scroll-behavior:auto}}

/* The real phase stays beside the work; no progress or agent action is fabricated. */
.fd-demo [data-demo-story] .w11-toolbar{background:#f7f9fb;padding:12px 0 0;margin-bottom:20px;z-index:12}
.fd-demo [data-demo-story][data-story-ready=true] .w11-toolbar{position:sticky;top:var(--story-nav-height,77px)}
.fd-demo [data-demo-story] .w11-toolbar-top{display:flex;align-items:center;justify-content:space-between;gap:20px;padding-bottom:12px}
.fd-demo [data-demo-story] .w11-performer{display:flex;align-items:center;gap:20px;min-width:0}
.fd-demo [data-demo-story] .w11-performer .v9-job>.fd-character{width:64px;flex-basis:64px}
.fd-demo [data-demo-story] [data-story-performer]{font-size:14px;line-height:1.4;color:#205f8b;max-width:16ch}
.fd-demo [data-demo-story] .w11-phases{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding:0 0 10px}
.fd-demo [data-demo-story] .w11-phases[hidden]{display:none}
.fd-demo [data-demo-story] .w11-phases button{display:flex;align-items:center;gap:10px;padding:8px 12px;min-height:44px;background:transparent;color:#435f70;border:1px solid #b8cbd4;border-radius:3px;font:inherit;font-size:15px;line-height:1.3;text-align:left;cursor:pointer}
.fd-demo [data-demo-story] .w11-phases button>span{font-size:12px;font-variant-numeric:tabular-nums}
.fd-demo [data-demo-story] .w11-phases button[aria-current=step]{color:#123e50;background:#e0edf5;border-color:#237aaa;font-weight:600}
.fd-demo [data-demo-story] .w11-phases button:focus-visible{outline:3px solid #167bb5;outline-offset:2px}
.fd-demo [data-demo-story] .w11-progress{height:3px;background:#cddfe9;overflow:hidden}
.fd-demo [data-demo-story] .w11-progress i{display:block;height:100%;background:#237aaa;transform:scaleX(.25);transform-origin:left}
.fd-demo [data-demo-story][data-story-motion=pointer] .w11-progress i{transition:transform 220ms cubic-bezier(.23,1,.32,1)}
.fd-demo[data-demo-composition] [data-demo-story] :is([data-story-scene],#result-preview,#try-scenario){scroll-margin-top:calc(var(--story-obstruction-height,227px) + 24px)}
.fd-demo[data-demo-composition] [data-demo-story] .v9-companion{padding-top:0;border-top:0}
.fd-demo[data-demo-composition] [data-demo-story] .v9-companion .v9-controls{padding-top:0;margin-top:0;border-top:0}
.fd-demo[data-demo-composition] [data-demo-story] .v9-context{padding-top:20px;margin-top:20px;border-top:1px solid #b8cbd4}
@media(max-width:900px){.fd-demo [data-demo-story] .w11-toolbar-top{gap:12px}.fd-demo [data-demo-story] .w11-performer{gap:10px}.fd-demo[data-demo-composition] [data-demo-story] .v9-companion{display:block}}
@media(max-width:600px){.fd-demo [data-demo-story][data-story-ready=true] .w11-toolbar{position:static}.fd-demo [data-demo-story] .w11-toolbar-top{display:block}.fd-demo [data-demo-story] .w11-performer{gap:8px;margin-bottom:12px}.fd-demo [data-demo-story] .w11-performer .v9-job{display:none}.fd-demo [data-demo-story] [data-story-performer]{font-size:13px;max-width:none}.fd-demo [data-demo-story] .w11-story-controls{display:grid;grid-template-columns:minmax(0,1fr) auto auto}.fd-demo [data-demo-story] [data-story-status]{grid-column:1/-1}.fd-demo [data-demo-story] .w11-story-controls button{font-size:13px;min-height:44px;padding:8px}.fd-demo [data-demo-story] [data-story-status]{font-size:12px;text-align:right}.fd-demo [data-demo-story] .w11-phases{gap:6px;grid-template-columns:repeat(2,minmax(0,1fr))}.fd-demo [data-demo-story] .w11-phases button{font-size:13px;padding:8px;gap:6px}}
@media(prefers-reduced-motion:reduce){.fd-demo [data-demo-story] .w11-progress i{transition:none!important}}

/* Family-specific working materials. All truth comes from the existing result/form. */
.fd-demo [data-demo-story] .w12-inquiry{grid-template-columns:1fr 1fr;gap:24px}
.fd-demo [data-demo-story] .w12-inquiry>div:last-child{grid-column:1/-1}
.fd-demo [data-demo-story] .w12-decision{border-left:3px solid #237aaa;padding-left:20px}
.fd-demo [data-demo-story] .w12-decision>strong{display:block;font-size:clamp(24px,2.6vw,34px);font-weight:500;line-height:1.25;letter-spacing:-.02em}
.fd-demo [data-demo-story] .w12-assignment{border-top:1px solid #b8cbd4;padding-top:24px}
.fd-demo [data-demo-story] .w12-assignment h4{font-size:20px;line-height:1.4;margin:0;color:var(--story-ink)}
.fd-demo [data-demo-story] .w12-estimate{font-size:24px;line-height:1.35;border-bottom:1px solid #b8cbd4;padding-bottom:24px;margin-bottom:24px}
.fd-demo [data-demo-story] .w12-correspondence{border-top:1px solid #102f43;padding-top:24px}
.fd-demo [data-demo-story] .w12-correspondence h4{font-size:15px;line-height:1.5;color:var(--story-muted);font-weight:500;margin:0 0 20px}
.fd-demo [data-demo-story] .w12-correspondence p{font-size:clamp(24px,2.4vw,32px);line-height:1.45;letter-spacing:-.02em;margin:0}
.fd-demo [data-demo-story][data-story-outcome=reply] .w12-correspondence,.fd-demo [data-demo-story][data-story-outcome=optout] .w12-correspondence{border-top:3px solid #9a5f27}
.fd-demo [data-demo-story][data-story-outcome=reply] .w12-correspondence p,.fd-demo [data-demo-story][data-story-outcome=optout] .w12-correspondence p{font-size:22px;letter-spacing:0}
.fd-demo [data-demo-story] .w12-files{list-style:none;margin:0;padding:0}
.fd-demo [data-demo-story] .w12-files li{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:baseline;gap:20px;padding:20px 0;border-bottom:1px solid #b8cbd4;font-size:21px;line-height:1.4}
.fd-demo [data-demo-story] .w12-files li strong{font-size:14px;font-weight:500;color:#435f70}
.fd-demo [data-demo-story] .w12-files li[data-received=false] strong{color:#875015}
.fd-demo [data-demo-story] .w12-packet-count,.fd-demo [data-demo-story] .w12-job-age{display:flex;align-items:baseline;gap:24px;flex-wrap:wrap;margin-bottom:28px}
.fd-demo [data-demo-story] .w12-packet-count strong,.fd-demo [data-demo-story] .w12-job-age strong{font-size:clamp(56px,6vw,84px);font-weight:500;line-height:1.05;letter-spacing:-.05em}
.fd-demo [data-demo-story] .w12-packet-count span,.fd-demo [data-demo-story] .w12-job-age span{font-size:18px;line-height:1.4;color:var(--story-muted);max-width:22ch}
.fd-demo [data-demo-story] .w12-open-items p:first-child{font-size:25px;line-height:1.4;margin-top:0}
.fd-demo [data-demo-story] .w12-open-items p+p{border-top:1px solid #b8cbd4;padding-top:24px}
.fd-demo [data-demo-story] .w12-question{display:block}
.fd-demo [data-demo-story] .w12-question dd{font-size:clamp(26px,3vw,38px);line-height:1.3}
.fd-demo [data-demo-story] .w12-source-spine{border-left:4px solid #237aaa;padding:16px 24px;display:grid;gap:16px}
.fd-demo [data-demo-story] .w12-source-spine>span{font-size:14px;color:var(--story-muted)}
.fd-demo [data-demo-story] .w12-source-spine>strong{font-size:25px;line-height:1.4;font-weight:500}
.fd-demo [data-demo-story] .w12-answer p{font-size:24px;line-height:1.5;margin-top:0}
.fd-demo [data-demo-story] .w12-citation{border-top:1px solid #b8cbd4;margin-top:24px;padding-top:1px}
@media(max-width:600px){.fd-demo [data-demo-story] .w12-inquiry{display:block}.fd-demo [data-demo-story] .w12-inquiry>div{margin-bottom:20px}.fd-demo [data-demo-story] .w12-files li{font-size:18px;gap:12px}.fd-demo [data-demo-story] .w12-files li strong{font-size:13px}.fd-demo [data-demo-story] .w12-answer p,.fd-demo [data-demo-story] .w12-open-items p:first-child{font-size:22px}.fd-demo [data-demo-story] .w12-source-spine{padding:12px 0 12px 18px}.fd-demo [data-demo-story] .w12-source-spine>strong{font-size:22px}}

/* Keep the playback control intrinsic width stable across Run/Pause/Replay. */
.w11-story-controls [data-story-run]::after { content: attr(data-story-reserve); display: block; height: 0; visibility: hidden; pointer-events: none; }

/* A local tool example reads the original result; it never connects an account. */
.fd-demo [data-demo-story] .w16-tool-chooser{margin-top:28px;padding-top:24px;border-top:1px solid #b8cbd4;display:grid;gap:12px}
.fd-demo [data-demo-story] .w16-tool-chooser .pd-field{display:grid;gap:8px}
.fd-demo [data-demo-story] .w16-tool-chooser button{min-height:48px;padding:12px 16px;background:#123e50;color:#fff;border:1px solid #123e50;border-radius:3px;font:inherit;font-size:15px;line-height:1.4;text-align:left;cursor:pointer}
.fd-demo [data-demo-story] .w16-tool-chooser button:hover{background:#20566a}
.fd-demo [data-demo-story] .w16-tool-chooser :is(select,button):focus-visible{outline:3px solid #167bb5;outline-offset:3px}
.fd-demo [data-demo-story] .w16-tool-chooser p{margin:0;font-size:13px;line-height:1.55;color:var(--story-muted)}
.fd-demo [data-demo-story] .w16-tool-preview{margin-top:40px;border-top:1px solid #102f43;padding-top:24px;min-width:0;overflow-wrap:anywhere;scroll-margin-top:calc(var(--story-obstruction-height,227px) + 24px)}
.fd-demo [data-demo-story] .w16-tool-preview:focus{outline:none}
.fd-demo [data-demo-story] .w16-tool-preview>h3{font-size:24px;line-height:1.25;letter-spacing:-.02em;color:var(--story-ink);margin:0 0 8px}
.fd-demo [data-demo-story] .w16-tool-disclosure,.fd-demo [data-demo-story] .w16-tool-scope{font-size:14px;line-height:1.55;color:var(--story-muted);max-width:70ch;margin:0}
.fd-demo [data-demo-story] .w16-tool-path{list-style:none;padding:24px 0;margin:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.fd-demo [data-demo-story] .w16-tool-path li{min-width:0;border-top:1px solid #b8cbd4;padding-top:12px}
.fd-demo [data-demo-story] .w16-tool-path span{display:block;font-size:13px;line-height:1.4;color:var(--story-muted);margin-bottom:8px}
.fd-demo [data-demo-story] .w16-tool-path strong{display:block;font-size:16px;line-height:1.5;font-weight:500;color:var(--story-ink)}
.fd-demo [data-demo-story] .w16-tool-record{background:#fff;padding:28px;margin-bottom:20px;border-top:3px solid #237aaa}
.fd-demo [data-demo-story] .w16-tool-record h4{font-size:21px;line-height:1.35;font-weight:600;letter-spacing:-.015em;margin:0 0 12px;color:var(--story-ink)}
.fd-demo [data-demo-story] .w16-tool-state{font-size:16px;line-height:1.5;margin:0 0 24px;color:#205f8b}
.fd-demo [data-demo-story] .w16-tool-record dl{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin:0}
.fd-demo [data-demo-story] .w16-tool-record dl>div{min-width:0;padding-top:16px;border-top:1px solid #b8cbd4}
.fd-demo [data-demo-story] .w16-tool-record dl>div:first-child,.fd-demo [data-demo-story] .w16-tool-body{grid-column:1/-1}
.fd-demo [data-demo-story] .w16-tool-record dt{font-size:13px;line-height:1.5;color:var(--story-muted);margin-bottom:8px}
.fd-demo [data-demo-story] .w16-tool-record dd{font-size:17px;line-height:1.55;color:var(--story-ink);margin:0}
@media(max-width:600px){
 .fd-demo [data-demo-story] .w16-tool-preview>h3{font-size:22px}
 .fd-demo [data-demo-story] .w16-tool-path{grid-template-columns:1fr;gap:16px}
 .fd-demo [data-demo-story] .w16-tool-path li{display:grid;grid-template-columns:88px minmax(0,1fr);gap:12px}
 .fd-demo [data-demo-story] .w16-tool-path span{margin:0}
 .fd-demo [data-demo-story] .w16-tool-record{padding:24px 20px}
 .fd-demo [data-demo-story] .w16-tool-record dl{grid-template-columns:1fr;gap:20px}
}

/* Brand identity supports the tool name; names and original controls stay accessible. */
.fd-demo [data-demo-story] .w26-brand{display:inline-flex;align-items:center;gap:8px;font:inherit;line-height:1.35;vertical-align:middle;min-width:0}
.fd-demo [data-demo-story] .w26-brand img,.fd-demo [data-demo-story] [data-connection-brand] img{display:block;width:24px;height:24px;object-fit:contain;flex:0 0 24px;background:#fff;border-radius:3px;padding:2px;box-sizing:content-box}
.fd-demo [data-demo-story] .w26-tool-select{display:flex;gap:10px;align-items:center;min-width:0}
.fd-demo [data-demo-story] .w26-tool-select select{flex:1;min-width:0;width:100%}
.fd-demo [data-demo-story] .w26-brand-examples{border-top:1px solid #b8cbd4;padding-top:14px;margin-top:2px;min-width:0}
.fd-demo [data-demo-story] .w26-brand-examples>p{font-size:13px;line-height:1.45;margin:0 0 10px;color:var(--story-muted)}
.fd-demo [data-demo-story] .w26-brand-examples ul{display:flex;flex-wrap:wrap;gap:14px 24px;list-style:none;padding:0;margin:0}
.fd-demo [data-demo-story] .w26-brand-examples li{display:grid;gap:4px;min-width:0;font-size:14px;line-height:1.4}
.fd-demo [data-demo-story] .w26-brand-examples small{font-size:12px;line-height:1.4;color:var(--story-muted);max-width:24ch}
.fd-demo [data-demo-story] .dv-app-bar .w26-brand{white-space:nowrap}
@media(max-width:600px){
 .fd-demo [data-demo-story] .dv-app-bar{flex-direction:column;align-items:flex-start;gap:6px}
 .fd-demo [data-demo-story] .dv-crm--jobber .dv-jobber-steps{gap:12px}
 .fd-demo [data-demo-story] .dv-crm--jobber .dv-jobber-steps>b{flex:1;min-width:0;overflow-wrap:normal;word-break:normal}
 .fd-demo [data-demo-story] .dv-crm--jobber .dv-jobber-steps>span{flex:none;white-space:nowrap}
 .fd-demo [data-demo-story] .dv-crm--jobber .dv-intake-fields--rows>div{flex-direction:column;gap:6px}
 .fd-demo [data-demo-story] .dv-crm--jobber .dv-intake-fields--rows>div>strong{text-align:left;overflow-wrap:normal;word-break:normal}
}
