/* Wave36: a visible objective and causal map around the original decision engine.
   Applied only after the original visual surfaces and controls are ready. */
.fd-demo [data-workflow36=true]{--w36-ink:#102f43;--w36-muted:#435f70;--w36-blue:#075dba;--w36-line:#bdcfd9;--w36-paper:#f7fafc}
/* Keep the optional, long legacy walkthrough out of layout until requested. */
.fd-demo .fd-reference:not([open])>.fd-reference__body{display:none}
.fd-demo [data-workflow36=true] .v9-layout{display:block!important}
.fd-demo[data-workflow36-ready=true]>.fd-demo-head{padding-bottom:12px}
.fd-demo[data-workflow36-ready=true]>.fd-demo-head>.ib-try-link{display:none}
.fd-demo [data-workflow36=true] .w36-goal{padding:0 0 18px;border:0;color:var(--w36-ink);max-width:none}
.fd-demo [data-workflow36=true] .w36-eyebrow{font-size:12px;line-height:1.4;letter-spacing:.1em;text-transform:uppercase;color:var(--w36-blue);margin:0 0 12px;font-weight:600}
.fd-demo [data-workflow36=true] .w36-goal h2{font-size:clamp(28px,3.1vw,42px);font-weight:500;letter-spacing:-.035em;line-height:1.13;margin:0 0 14px;max-width:27ch;color:var(--w36-ink)}
.fd-demo [data-workflow36=true] .w36-goal>p:not(.w36-eyebrow){font-size:17px;line-height:1.55;max-width:72ch;margin:0;color:var(--w36-muted)}
.fd-demo [data-workflow36=true] .w36-goal .w36-outcome{display:flex;flex-wrap:wrap;gap:4px 8px;margin-top:12px!important;font-size:13px!important}
.w36-outcome strong{font-weight:600;color:#103f64}
.fd-demo [data-workflow36=true] .w36-inputs{padding:0;margin:0 0 22px;border-block:1px solid var(--w36-line);color:var(--w36-ink);background:transparent;min-width:0}
.fd-demo [data-workflow36=true] .w36-inputs>summary{display:list-item;list-style:disclosure-closed;padding:16px 6px;cursor:pointer;font-size:16px;line-height:1.45;font-weight:600;min-height:48px;overflow-wrap:anywhere}
.fd-demo [data-workflow36=true] .w36-inputs[open]>summary{list-style:disclosure-open}
.fd-demo [data-workflow36=true] .w36-inputs>summary>span{display:none;font-size:13px;font-weight:400;color:var(--w36-muted);margin-top:5px;line-height:1.5}
.fd-demo [data-workflow36=true] .w36-inputs[open]>summary>span{display:block}
.fd-demo [data-workflow36=true] .w36-inputs .v9-companion{display:block;position:static;inset:auto;border:0;margin:0;padding:0 0 24px;min-width:0;width:100%}
.fd-demo [data-workflow36=true] .w36-inputs .v9-controls{border:0;margin:0;padding:0}
.fd-demo [data-workflow36=true] .w36-inputs .pd-lab__form{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 28px}
.fd-demo [data-workflow36=true] .w36-inputs .pd-lab__actions{grid-column:1/-1}
.fd-demo [data-workflow36=true] .w36-inputs .w16-tool-chooser{max-width:680px;margin-top:24px;padding-top:24px;border-top:1px solid var(--w36-line)}
.fd-demo [data-workflow36=true] .w36-inputs :is(select,input){max-width:100%;min-width:0;font-size:16px}
.fd-demo [data-workflow36=true] .w36-inputs .pd-check{align-self:center}
.fd-demo [data-workflow36=true] .w11-toolbar,.fd-demo [data-workflow36=true] .w11-toolbar-top{position:static!important;top:auto!important;background:transparent}
.fd-demo [data-workflow36=true] .w11-toolbar{margin:0 0 8px;padding:0}
.fd-demo [data-workflow36=true] .w36-map-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px 24px;margin-bottom:16px}
.fd-demo [data-workflow36=true] .w36-map-heading h3{font-size:21px;font-weight:500;line-height:1.25;letter-spacing:-.02em;margin:0;color:var(--w36-ink)}
.fd-demo [data-workflow36=true] .w36-map-heading p{font-size:14px;line-height:1.5;margin:0;color:var(--w36-muted)}
.fd-demo [data-workflow36=true] .w11-phases{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;padding:0;overflow:visible}
.fd-demo [data-workflow36=true] .w11-phases button{display:block;position:relative;min-width:0;min-height:220px;padding:20px;background:#fff;border:1px solid var(--w36-line);border-radius:6px;color:var(--w36-ink);font-weight:400;text-align:left;white-space:normal;overflow-wrap:anywhere;box-shadow:none;transform:none;transition:background-color 140ms,border-color 140ms}
.fd-demo [data-workflow36=true] .w36-node-art{display:flex;align-items:center;justify-content:flex-start;width:52px;height:48px;margin-bottom:12px;color:#075dba}
.fd-demo [data-workflow36=true] .w36-node-art svg{width:34px;height:34px}
.fd-demo [data-workflow36=true] .w36-node-art img{width:32px;height:32px;object-fit:contain}
.fd-demo [data-workflow36=true] .w36-node-art .fd-character{width:48px!important;height:48px!important;min-width:48px;flex:none;transform:none!important;position:static;margin:0}
.fd-demo [data-workflow36=true] .w11-phases button:not(:last-child)::after{content:'›';position:absolute;left:calc(100% + 4px);top:50%;transform:translateY(-50%);color:#39799d;font-size:24px;line-height:1;pointer-events:none}
.fd-demo [data-workflow36=true] .w11-phases button[aria-current=step]{background:#e8f2ff;border-color:#0b65ba;box-shadow:inset 0 3px #0b65ba}
.fd-demo [data-workflow36=true] .w11-phases button:hover{border-color:#0b65ba}
.fd-demo [data-workflow36=true] .w11-phases .w36-node-number{display:grid;place-items:center;flex:0 0 30px;width:30px;height:30px;background:#eff4f8;border-radius:50%;color:#27617f;font-size:12px;font-weight:600;line-height:1}
.fd-demo [data-workflow36=true] .w11-phases button[aria-current=step] .w36-node-number{background:#075dba;color:#fff}
.fd-demo [data-workflow36=true] .w11-phases .w36-node-copy{display:block;min-width:0;font-size:14px;line-height:1.4;text-align:left}
.fd-demo [data-workflow36=true] .w36-node-copy small{display:block;font-size:11px;line-height:1.4;text-transform:uppercase;letter-spacing:.04em;margin-bottom:8px;color:#47677d}
.fd-demo [data-workflow36=true] .w36-node-copy strong{display:block;font-size:16px;line-height:1.3;font-weight:600;letter-spacing:-.01em}
.fd-demo [data-workflow36=true] [data-w36-detail]{display:block;font-size:13px;line-height:1.5;margin-top:8px;color:var(--w36-muted)}
.fd-demo [data-workflow36=true] [data-w36-state]{display:block;margin-top:12px;font-size:11px;line-height:1.4;color:#075dba;font-weight:600}
.fd-demo [data-workflow36=true] .w11-progress{display:none}
.fd-demo [data-workflow36=true] .w36-map-scope{font-size:12px;line-height:1.5;color:var(--w36-muted);margin:12px 0 0}
.fd-demo [data-workflow36=true] .w11-toolbar-top{margin:20px 0!important}
.fd-demo [data-workflow36=true] .w11-story-controls{gap:8px}
.fd-demo [data-workflow36=true] .w11-story-controls button:first-child{background:#075dba;border-color:#075dba}
.fd-demo [data-workflow36=true] .w11-story-board{max-width:100%;min-width:0}
.fd-demo [data-workflow36=true] .dv-artifact{max-width:100%;overflow-wrap:anywhere}
.fd-demo [data-workflow36=true] .w36-inputs summary:focus-visible,.fd-demo [data-workflow36=true] .w11-phases button:focus-visible{outline:3px solid #075dba;outline-offset:4px}
@media(max-width:1000px){
 .fd-demo [data-workflow36=true] .w11-phases{gap:12px}
 .fd-demo [data-workflow36=true] .w11-phases button{display:block;padding:16px 12px}
 .fd-demo [data-workflow36=true] .w11-phases .w36-node-number{margin-bottom:12px}
 .fd-demo [data-workflow36=true] .w11-phases button:not(:last-child)::after{left:calc(100% + 1px);font-size:20px}
}
@media(max-width:700px){
 .fd-demo [data-workflow36=true] .w36-goal{padding:0 0 16px}
 .fd-demo [data-workflow36=true] .w36-goal h2{font-size:30px}
 .fd-demo [data-workflow36=true] .w36-goal>p:not(.w36-eyebrow){font-size:16px}
 .fd-demo [data-workflow36=true] .w36-inputs .pd-lab__form{grid-template-columns:minmax(0,1fr)}
 .fd-demo [data-workflow36=true] .w36-map-heading{display:block;margin-bottom:14px}
 .fd-demo [data-workflow36=true] .w36-map-heading p{margin-top:6px}
 .fd-demo [data-workflow36=true] .w11-phases{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 .fd-demo [data-workflow36=true] .w11-phases button{display:block;padding:14px;min-height:0;text-align:left}
 .fd-demo [data-workflow36=true] .w11-phases .w36-node-number{margin:0;flex-basis:32px;width:32px;height:32px}
 .fd-demo [data-workflow36=true] .w11-phases button:not(:last-child)::after{display:none}
 .fd-demo [data-workflow36=true] .w11-phases button:nth-child(odd)::after{display:block;left:calc(100% + 1px);top:50%;transform:translateY(-50%);font-size:20px}
 .fd-demo [data-workflow36=true] .w36-node-art{height:36px;margin-bottom:9px}
 .fd-demo [data-workflow36=true] .w36-node-art .fd-character{width:40px!important;height:40px!important;min-width:40px}
 .fd-demo [data-workflow36=true] .w36-node-art svg{width:28px;height:28px}
 .fd-demo [data-workflow36=true] .w36-node-art img{width:28px;height:28px}
 .fd-demo [data-workflow36=true] .w36-node-copy small{margin-bottom:5px}
 .fd-demo [data-workflow36=true] .w36-node-copy strong{font-size:14px}
 .fd-demo [data-workflow36=true] [data-w36-detail]{margin-top:5px;font-size:12px;line-height:1.4}
 .fd-demo [data-workflow36=true] [data-w36-state]{margin-top:7px}
 .fd-demo [data-workflow36=true] .w11-story-controls button{flex:1 1 auto;white-space:normal;max-width:100%}
}
@media(max-width:380px){
 .fd-demo[data-demo-composition] .fd-workbench{margin-inline:16px!important}
 .fd-demo [data-workflow36=true] .w11-phases button{padding:12px;gap:10px}
 .fd-demo [data-workflow36=true] .w36-goal h2{font-size:28px}
}
@media(prefers-reduced-motion:reduce){.fd-demo [data-workflow36=true] .w11-phases button{transition:none}}
