/* Healthcare story: a warm manual desk becomes a connected blue/teal workspace.
   Scoped to the additive journey; the original MISH map remains available. */
.engine.has-journey .e-grid{grid-template-areas:"q q" "journey journey" "trace map"}
.engine.has-journey:not(.journey-map-open) .e-trace,
.engine.has-journey:not(.journey-map-open) .e-mapcol{display:none}
.engine .e-journey{--j-bg:#050607;--j-ink:#eff9fc;--j-muted:#bacfda;--j-accent:#ffb16b;--j-line:#35414a;grid-area:journey;min-width:0;scroll-margin-top:calc(var(--e-header) + 16px)}
.engine .e-journey[data-phase="assisted"]{--j-bg:#050607;--j-ink:#eff9fc;--j-muted:#bacfda;--j-accent:#63d7e3;--j-line:#456478}
.engine .e-journey svg{display:block;flex:none;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.engine .j-top{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;padding:24px 0 30px}
.engine .j-title{font:600 clamp(30px,3.3vw,48px)/1.12 var(--e-display);letter-spacing:-.035em;color:var(--e-light);text-wrap:balance}
.engine .j-title em{font-style:normal;color:#b9d9ed}
.engine .j-intro{max-width:62ch;margin-top:14px;color:var(--e-body);font-size:14px;line-height:1.65}
.engine .j-example{flex:0 0 220px;color:var(--e-mint);font-size:13px;line-height:1.65;text-align:right}
.engine .j-example b{font-size:11px;font-weight:400;color:var(--e-muted)}
.engine .j-phase-tabs{display:grid;grid-template-columns:1fr 1fr;gap:3px}
.engine .j-phase-tabs button{display:grid;grid-template-columns:auto 1fr;column-gap:16px;text-align:left;padding:17px 24px;border:0;background:var(--mish-lift);color:#ded7ea;min-height:80px;border-radius:12px 12px 0 0;transition:background .25s,color .25s}
.engine .j-phase-tabs button>span{grid-row:span 2;align-self:center;font-size:23px;font-weight:500;font-variant-numeric:tabular-nums;opacity:.8}
.engine .j-phase-tabs button b{font-size:15px;font-weight:600}
.engine .j-phase-tabs button small{font-size:12px}
.engine .j-phase-tabs button[aria-pressed="true"]{background:var(--j-bg);color:var(--j-ink)}
.engine .j-phase-tabs button:hover:not([aria-pressed="true"]){background:rgba(48,26,67,.8)}
.engine .j-workspace{display:grid;grid-template-columns:270px minmax(0,1fr);gap:28px;background:var(--j-bg);color:var(--j-ink);padding:30px;border-radius:0 0 12px 12px;transition:background .35s,color .35s}
.engine .j-narrative{min-width:0;padding:20px;background:var(--mish-lift);border:1px solid #63d7e326;border-radius:var(--mish-radius-panel)}
.engine .j-chapter{font-size:11px;font-weight:600;color:var(--j-accent);font-variant-numeric:tabular-nums;margin-bottom:12px}
.engine .j-scene-title{font-size:26px;line-height:1.16;letter-spacing:-.025em;text-wrap:balance;min-height:90px;color:var(--j-ink)}
.engine .j-caption{font-size:13px;line-height:1.65;min-height:130px;margin-top:12px;color:var(--j-muted)}
.engine .j-decision{display:flex;align-items:center;gap:8px;color:var(--j-accent);font-size:11px;font-weight:600;min-height:45px;line-height:1.5;padding-bottom:14px}
.engine .j-decision svg{width:18px;height:18px}
.engine .j-steps{padding:12px 0 0;list-style:none;border-top:1px solid var(--j-line);display:grid;gap:2px}
.engine .j-steps button{position:relative;display:flex;align-items:center;gap:12px;text-align:left;width:100%;padding:8px 0;border:0;background:none;color:var(--j-muted);min-height:37px;font-size:12px}
.engine .j-steps button>span{font-size:11px;font-variant-numeric:tabular-nums}
.engine .j-steps button>b{font-weight:400}
.engine .j-steps button[aria-current="true"]{color:var(--j-accent)}
.engine .j-steps button[aria-current="true"]>b{font-weight:600}
.engine .j-steps button:hover{color:var(--j-ink)}
.engine .j-steps button svg{position:absolute;bottom:2px;left:25px;right:0;width:calc(100% - 25px);height:2px;opacity:0}
.engine .j-steps button[aria-current="true"] svg{opacity:1}
.engine .j-steps button svg path{stroke-dasharray:1;stroke-dashoffset:calc(1 - var(--j-progress,0))}
.engine .j-stage{min-width:0;align-self:center;position:relative}
.engine .j-stations{display:grid;grid-template-columns:repeat(4,1fr);margin:0 0 40px;position:relative}
.engine .j-stations::before{content:"";height:1px;background:var(--j-line);position:absolute;top:15px;left:10%;right:10%}
.engine .j-stations span{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;gap:8px;font-size:11px;color:var(--j-muted)}
.engine .j-stations svg{background:var(--j-bg);box-sizing:content-box;padding:4px 10px}
.engine .j-stations .is-current{color:var(--j-accent);font-weight:600}
.engine .j-scenes{position:relative;display:grid;grid-template-columns:.82fr 1fr 1.2fr;gap:18px;align-items:center;min-height:350px;isolation:isolate}
.engine .j-patient{background:#e1edff;color:#223956;border-radius:16px;padding:14px;min-width:0;transform:rotate(-2deg);box-shadow:0 20px 38px -22px #1c25384d}
.engine .j-window-label{display:flex;align-items:center;gap:6px;font-size:11px;font-weight:600;padding-bottom:16px}
.engine .j-window-label svg{width:14px;height:14px}
.engine .j-patient h5,.engine .j-reception h5{font-size:17px;line-height:1.25;letter-spacing:-.015em;margin:0 0 5px}
.engine .j-patient>p{font-size:11px;line-height:1.5}
.engine .j-calendar-head{display:flex;align-items:center;justify-content:space-between;gap:5px;border-top:1px solid #b0c4e1;padding-top:15px;margin-top:18px;font-size:11px}
.engine .j-calendar-head svg{width:15px;height:15px}
.engine .j-slots{display:grid;gap:6px;margin:12px 0 16px}
.engine .j-slots>span{display:flex;justify-content:space-between;align-items:center;border:1px solid #a9beda;border-radius:4px;padding:6px 9px;line-height:1.3;font-size:11px;font-variant-numeric:tabular-nums;min-height:29px}
.engine .j-slots svg{width:14px;height:14px;opacity:0}
.engine .j-booked .j-selected-slot{background:#275ab2;color:white;border-color:#275ab2}
.engine .j-booked .j-selected-slot svg{opacity:1}
.engine .j-book-state{color:#234270;font-weight:600;min-height:32px}
.engine .j-record-id{font-size:11px;letter-spacing:.07em;margin-top:8px;color:#496282}
.engine .j-patient-note{font-size:11px;line-height:1.6;margin-top:16px;padding-top:12px;border-top:1px solid #b0c4e1}
.engine .j-paper-wrap{min-width:0;position:relative;z-index:2}
.engine .j-paper{position:relative;background:#fffdf8;color:#352b41;padding:20px 16px 16px;box-shadow:0 24px 38px -22px #32233d66;transform-origin:center;border-radius:3px 3px 12px 3px}
.engine .j-paper-head{display:flex;align-items:flex-start;gap:7px;font-size:12px;line-height:1.35}
.engine .j-paper-head svg{width:17px;height:17px}
.engine .j-paper-id{display:block;font-size:11px;color:#665c6d;margin-top:8px}
.engine .j-paper dl{display:grid;gap:12px;margin:24px 0 16px}
.engine .j-paper dt{font-size:11px;color:#6c5c6a;line-height:1.35;margin-bottom:3px}
.engine .j-paper dd{font-size:11px;line-height:1.45;color:#372c3d}
.engine .j-form-rule{height:1px;background:#d9c9cd;margin-bottom:12px}
.engine .j-consent-copy{font-size:11px;line-height:1.55;color:#5e4e60}
.engine svg.j-signature{width:100%;height:60px;stroke-width:2;stroke:#315daa;margin:2px 0 3px}
.engine .j-signature path{stroke-dasharray:1;stroke-dashoffset:1}
.engine .j-sign-state{font-size:11px;line-height:1.45;color:#68596c;min-height:25px;border-top:1px solid #d9c9cd;padding-top:7px}
.engine .j-transfer-label{position:absolute;left:0;top:calc(100% + 17px);display:flex;align-items:center;gap:7px;color:var(--j-accent);font-size:11px;font-weight:600;width:210px;opacity:0}
.engine .j-transfer-label svg{width:18px}
.engine [data-kind="handoff"] .j-transfer-label{opacity:1}
.engine .j-reception{background:#efe8f3;color:#382c48;border-radius:12px;padding:16px;min-width:0;box-shadow:0 20px 38px -26px #35213f59}
.engine .j-desk-head{display:flex;gap:8px;align-items:center;margin:6px 0 20px}
.engine .j-desk-head p{font-size:11px;line-height:1.5}
.engine .j-desk-head h5{font-size:13px}
.engine .j-avatar{padding:7px;border-radius:50%;background:#dac8e9}
.engine .j-avatar svg{width:17px;height:17px}
.engine .j-reception-rows{display:grid;gap:0}
.engine .j-reception-rows>p{display:grid;grid-template-columns:15px 1fr;gap:3px 8px;padding:11px 0;border-top:1px solid #d8c9df;align-items:center;font-size:11px;line-height:1.4}
.engine .j-reception-rows svg{width:15px;height:15px;grid-row:span 2}
.engine .j-reception-rows b{font-size:11px;font-weight:500;color:#78555a}
.engine .j-reception-rows .is-complete b{color:#205b50}
.engine .j-coverage{margin:12px -16px -3px;padding:14px 16px;background:#dedceb}
.engine .j-coverage>div{display:flex;align-items:center;gap:5px;flex-wrap:wrap;font-size:11px}
.engine .j-coverage svg{width:14px;height:14px}
.engine .j-coverage-state{font-size:11px;color:#5c455c;margin-left:auto}
.engine .j-coverage-copy{font-size:11px;line-height:1.6;margin-top:8px;color:#55475e}
.engine .j-reception-state{font-size:11px;line-height:1.6;font-weight:600;padding-top:14px}
.engine .j-outcome{display:flex;flex-direction:column;gap:4px;padding-top:40px;text-align:center;max-width:60ch;margin:auto}
.engine .j-actor{font-size:11px;color:var(--j-accent)}
.engine .j-outcome-text{font-size:12px;font-weight:500;color:var(--j-muted);line-height:1.55}
.engine [data-phase="assisted"] .j-patient{transform:none;background:#d8edf6}
.engine [data-phase="assisted"] .j-reception{background:#d9efea;color:#1f413e}
.engine [data-phase="assisted"] .j-avatar{background:#bbd8d4}
.engine [data-phase="assisted"] .j-coverage{background:#c0ddd9}
.engine [data-phase="assisted"] .j-reception-rows>p{border-color:#a9ccc6}
.engine [data-phase="assisted"] .j-stations::before{height:2px;background:#699dba}
.engine [data-kind="coverage"] .j-reception,.engine [data-kind="lookup"] .j-reception{outline:2px solid var(--j-accent);outline-offset:5px}
.engine [data-kind="signature"] .j-paper{outline:2px solid #315daa;outline-offset:5px}
.engine [data-kind="booking"] .j-patient{outline:2px solid #315daa;outline-offset:5px}
.engine .j-controls{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;padding:20px 0 14px}
.engine .j-transport{display:flex;gap:7px;flex-wrap:wrap}
.engine .j-controls button{border:1px solid #9883af;border-radius:5px;padding:11px 14px;background:transparent;color:var(--e-light);font-size:11px;line-height:1.5;min-height:42px;transition:background .2s}
.engine .j-controls button:hover{background:rgba(48,26,67,.8)}
.engine .j-controls [data-j-action="play"]{background:var(--e-mint);border-color:var(--e-mint);color:var(--e-on-mint);font-weight:600}
.engine .j-controls [data-j-action="play"]:hover{background:var(--e-mint-hi)}
.engine .j-controls button:disabled{opacity:.5;cursor:default}
.engine .j-position{font-size:11px;color:var(--e-muted);font-variant-numeric:tabular-nums}
.engine .j-footnote{color:var(--e-muted);font-size:11px;line-height:1.65;max-width:100ch}
.engine .j-workspace :focus-visible{outline-color:var(--j-accent);box-shadow:none}
.engine .j-workspace ::selection{background:#e0bda9;color:#2d2434}
.engine [data-phase="assisted"] .j-workspace ::selection{background:#8cd3dc;color:#221334}
.engine .e-journey[data-playing="false"] *{animation-play-state:paused!important}
@container engine (max-width:1150px){
 .engine .j-workspace{grid-template-columns:220px minmax(0,1fr);gap:22px;padding:24px}
 .engine .j-scenes{gap:12px;grid-template-columns:.9fr 1fr 1.1fr}
 .engine .j-patient,.engine .j-reception{padding:12px}
 .engine .j-paper{padding:16px 12px 12px}
 .engine .j-coverage{margin-left:-12px;margin-right:-12px;padding:12px}
 .engine .j-scene-title{font-size:23px}
}
@container engine (max-width:950px){
 .engine .j-workspace{grid-template-columns:1fr;gap:28px}
 .engine .j-stage{grid-row:1}
 .engine .j-narrative{display:grid;grid-template-columns:1fr 1fr;gap:10px 24px}
 .engine .j-chapter,.engine .j-scene-title,.engine .j-caption,.engine .j-decision{grid-column:1}
 .engine .j-scene-title,.engine .j-caption{min-height:0}
 .engine .j-caption{margin:0}
 .engine .j-decision{padding-bottom:0}
 .engine .j-steps{grid-column:2;grid-row:1 / span 4;padding:0;border-top:0;align-content:start}
 .engine .j-scenes{grid-template-columns:1fr 1fr 1.2fr;gap:24px;max-width:720px;margin:auto}
 .engine .j-stations{margin-bottom:28px}
 .engine .j-outcome{padding-top:30px}
 .engine .j-patient,.engine .j-reception{padding:18px}
 .engine .j-paper{padding:22px 18px 16px}
 .engine .j-coverage{margin-left:-18px;margin-right:-18px;padding:16px 18px}
}
@container engine (max-width:640px){
 .engine.has-journey .e-grid{grid-template-areas:"q" "journey" "map" "trace"}
 .engine .j-top{display:block;padding:18px 0 22px}
 .engine .j-title{font-size:31px}
 .engine .j-intro{font-size:12px}
 .engine .j-example{text-align:left;margin-top:14px;font-size:11px}
 .engine .j-example br{display:none}
 .engine .j-example b{margin-left:8px;font-size:11px}
 .engine .j-phase-tabs button{padding:12px 10px;column-gap:7px;min-height:77px}
 .engine .j-phase-tabs button>span{font-size:16px}
 .engine .j-phase-tabs button b{font-size:12px;line-height:1.4}
 .engine .j-phase-tabs button small{font-size:11px;line-height:1.4}
 .engine .j-workspace{padding:20px 16px;gap:24px}
 .engine .j-stations{margin-bottom:20px}
 .engine .j-stations span{font-size:11px;gap:3px}
 .engine .j-stations svg{padding:4px 8px}
 .engine .j-scenes{display:grid;grid-template-columns:1fr;min-height:310px;max-width:280px}
 .engine .j-patient,.engine .j-paper-wrap,.engine .j-reception{display:none;grid-column:1;grid-row:1}
 .engine [data-kind="booking"] .j-patient{display:block;max-width:230px;width:100%;justify-self:center}
 .engine [data-kind="signature"] .j-paper-wrap{display:block;width:235px;justify-self:center}
 .engine [data-kind="handoff"] .j-paper-wrap{display:block;width:190px;justify-self:start;align-self:start;padding-top:15px}
 .engine [data-kind="handoff"] .j-reception{display:block;max-width:235px;width:100%;justify-self:end;align-self:end}
 .engine [data-kind="handoff"] .j-paper-wrap .j-paper{transform-origin:center top}
 .engine [data-kind="processing"] .j-reception,.engine [data-kind="coverage"] .j-reception,.engine [data-kind="lookup"] .j-reception,.engine [data-kind="ready"] .j-reception{display:block}
 .engine .j-patient{transform:none}
 .engine .j-paper{padding:18px}
 .engine .j-transfer-label{width:220px;top:calc(100% + 8px);font-size:11px}
 .engine .j-outcome{padding-top:22px}
 .engine .j-outcome-text{font-size:11px}
 .engine .j-narrative{display:block}
 .engine .j-chapter{margin-bottom:8px}
 .engine .j-scene-title{font-size:24px}
 .engine .j-caption{margin-top:10px;font-size:12px}
 .engine .j-decision{margin-top:8px;min-height:40px}
 .engine .j-steps{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px 10px;margin-top:14px;padding-top:12px;border-top:1px solid var(--j-line)}
 .engine .j-steps button{font-size:11px;gap:5px;min-height:40px}
 .engine .j-steps button>span{font-size:11px}
 .engine .j-steps button svg{left:17px;width:calc(100% - 17px)}
 .engine .j-controls{gap:14px 8px}
 .engine .j-transport{display:grid;grid-template-columns:1fr 1fr;width:100%}
 .engine .j-controls button{min-height:44px}
 .engine .j-footnote{font-size:11px}
}
/* Original desk props. Their only motion source is mountJourney.frame(). */
.engine .j-closeup{display:none;grid-column:1 / -1;width:100%;max-width:590px;justify-self:center;min-width:0}
.engine :is([data-kind="notebook"],[data-kind="hangup"],[data-kind="system"],[data-kind="sms"]) :is(.j-patient,.j-paper-wrap,.j-reception){display:none}
.engine [data-kind="notebook"] .j-notebook-scene,.engine [data-kind="hangup"] .j-phone-scene,.engine [data-kind="system"] .j-system-scene,.engine [data-kind="sms"] .j-sms-scene{display:block}
.engine .j-prop-label{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:13px;line-height:1.5;padding:0 12px}
.engine .j-prop-label span{font-size:11px;color:var(--j-muted)}
.engine svg.j-desk-art,.engine svg.j-phone-art{width:100%;height:auto;margin:12px auto 0;max-width:510px;overflow:visible}
.engine .j-art-heading{font:600 20px var(--e-body-font,sans-serif);fill:#795955;stroke:none;letter-spacing:.4px}
.engine .j-notebook-ink{stroke-dasharray:1;stroke-dashoffset:1}
.engine .j-prop-caption{text-align:center;font-size:13px;line-height:1.7;margin-top:12px;color:var(--j-ink)}
.engine .j-prop-caption span{font-size:11px;color:var(--j-muted)}
.engine .j-confirmations{display:flex;justify-content:center;flex-wrap:wrap;gap:8px 20px;font-size:12px;color:#99e7ef;line-height:1.6}
.engine .j-call-state{font-size:11px;color:var(--j-muted);text-align:center;min-height:34px;margin-top:12px;line-height:1.5}
.engine .j-system-window{background:#e4f2ef;color:#233f45;border:1px solid #92b9b6;border-radius:12px;padding:24px;margin:22px 0;box-shadow:0 24px 45px -22px #0008;overflow:hidden}
.engine .j-system-toolbar{display:flex;align-items:center;gap:10px;font-size:15px;font-weight:600;border-bottom:1px solid #b1cfca;padding-bottom:20px}
.engine .j-system-toolbar span{font-size:11px;font-weight:400;margin-left:auto}
.engine .j-system-status{font-size:11px;margin:22px 0 12px;color:#365d60}
.engine .j-system-record{display:flex;gap:16px;align-items:center;background:#fffef6;padding:22px 18px;border:1px solid #b1c8bd;border-left:4px solid #347d71;border-radius:6px}
.engine .j-system-time{font-size:23px;font-weight:500;letter-spacing:-.025em}
.engine .j-system-record b{font-size:14px}.engine .j-system-record p{font-size:12px;margin:7px 0;line-height:1.5}
.engine .j-system-record small{font-size:11px;color:#43615c;line-height:1.5;display:block}
.engine .j-system-record>svg{margin-left:auto;color:#347d71}
.engine .j-pending{display:grid;gap:14px;font-size:12px;margin-top:28px}
.engine .j-pending>span{display:flex;justify-content:space-between;gap:10px;border-top:1px solid #b1cfca;padding-top:12px}
.engine .j-pending b{font-size:11px;font-weight:400;color:#52645e}
.engine .j-mobile-device{max-width:285px;min-height:350px;margin:0 auto;background:#f0f5f5;color:#263a47;border:8px solid #6b8596;border-radius:31px;padding:12px 17px 23px;box-shadow:0 25px 40px -18px #0008}
.engine .j-device-speaker{width:55px;height:5px;background:#536d7c;border-radius:9px;margin:0 auto 23px}
.engine .j-message-head{display:flex;align-items:center;gap:6px;font-size:13px;font-weight:600;flex-wrap:wrap;border-bottom:1px solid #cbd9df;padding-bottom:13px}
.engine .j-message-head span{display:block;width:100%;font-size:11px;font-weight:400;margin-left:26px;color:#536977}
.engine .j-message-time{font-size:11px;text-align:center;color:#526977;margin:20px 0 16px}
.engine .j-sms-bubble{padding:16px 14px;background:#d8eae2;border-radius:15px 15px 15px 3px;font-size:13px;line-height:1.55;transform-origin:bottom left}
.engine .j-sms-bubble b{font-weight:600}.engine .j-sms-bubble p{margin-top:10px}.engine .j-sms-bubble small{display:block;margin-top:16px;font-size:11px;color:#416258}
.engine .j-sms-state{font-size:11px;text-align:right;color:#526977;margin-top:11px;line-height:1.5}
@container engine (max-width:640px){
 .engine .j-prop-label{display:block;text-align:center;padding:0}.engine .j-prop-label span{display:block;margin-top:4px}
 .engine .j-prop-caption{font-size:12px}.engine .j-confirmations{font-size:11px;gap:5px}
 .engine .j-system-window{padding:15px 12px}.engine .j-system-toolbar{font-size:12px;gap:6px}
 .engine .j-system-record{padding:17px 12px;gap:12px;flex-wrap:wrap}.engine .j-system-time{font-size:21px}
 .engine .j-system-record>div{flex:1 1 140px}.engine .j-system-record>svg{display:none}
 .engine .j-pending{font-size:11px}
}
@media(prefers-reduced-motion:reduce){.engine .e-journey *{transition:none!important}}
html[data-motion="paused"] .engine .e-journey *,.engine.is-held .e-journey *{transition:none!important}
