:root{font-family:Inter,Segoe UI,Arial,sans-serif;color:#102750;background:#f7fafd;font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-width:320px}button,input{font:inherit}button{cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #22a2ed;outline-offset:2px}a{color:inherit;text-decoration:none}.topbar{height:62px;display:flex;align-items:center;gap:32px;padding:0 clamp(16px,2.7vw,48px);border-bottom:1px solid #dde6f0;background:#fff}.brand{display:flex;align-items:center;gap:10px;color:#0c2e61;font-size:22px;white-space:nowrap;font-weight:900;letter-spacing:-1px}.brand strong{color:#2e83c6}.brand-mark{display:grid;place-items:center;width:29px;height:30px;border-radius:7px;background:#0b2d62;color:#fff;font-size:19px}.top-note{color:#8094b3;font-size:11px;font-weight:700;letter-spacing:2px}.top-actions{margin-left:auto;display:flex;align-items:center;gap:24px}.nav-link{font-size:13px;color:#5d7496}.nav-link:first-child{color:#0c2e61;font-weight:700}.lang{border:1px solid #cbd9e9;background:#fff;color:#184273;border-radius:7px;padding:6px 12px;font-size:12px;font-weight:700}.workbench{max-width:1800px;margin:0 auto;padding:20px clamp(12px,2.4vw,40px) 18px}.intro{display:flex;justify-content:space-between;gap:20px;align-items:end}.overline{font-size:11px;letter-spacing:1.8px;color:#6281aa;font-weight:800}.intro h1{font-size:clamp(27px,2.45vw,42px);letter-spacing:-1.3px;line-height:1.13;margin:7px 0 6px}.intro p{margin:0;color:#5f769a;font-size:15px;max-width:740px;line-height:1.45}.intro-meta{display:flex;align-items:center;gap:8px;border:1px solid #d8e5f2;background:white;padding:8px 11px;border-radius:30px;font-size:11px;color:#58749a;white-space:nowrap}.live-mark{width:7px;height:7px;border-radius:50%;background:#2388bd}.journey{display:flex;align-items:center;gap:5px;margin:18px 0 14px;overflow:auto;scrollbar-width:thin}.journey button{flex:1 0 auto;text-align:left;min-width:126px;border:1px solid #dce6f0;background:#f0f5fa;color:#50698d;padding:10px 13px;border-radius:7px;font-size:12px;white-space:nowrap;transition:background .15s,transform .15s}.journey button:hover{transform:translateY(-2px);border-color:#9dc4eb}.journey button.active{background:#dbedfc;border-color:#a8cae9;color:#0a3c7a;font-weight:800}.journey button span{display:inline-grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#cfdceb;margin-right:7px;color:#154271;font-weight:800}.journey button.active span{background:#b5d8f9}.workspace{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,350px);min-height:610px;height:min(70vh,810px);border:1px solid #dce6f0;border-radius:17px;overflow:hidden;background:#fff;box-shadow:0 18px 65px #112f5a12}.scene-shell{position:relative;min-width:0;overflow:hidden;background:radial-gradient(circle at 46% 32%,#fff 0%,#f8fbfe 62%,#f1f7fc 100%)}.scene-grid{position:absolute;inset:0;pointer-events:none;background-image:linear-gradient(#718faf0a 1px,transparent 1px),linear-gradient(90deg,#718faf0a 1px,transparent 1px);background-size:42px 42px;mask-image:linear-gradient(transparent 18%,#000 100%)}#stage{position:absolute;inset:0}#stage canvas{width:100%;height:100%;display:block;touch-action:none}.labels{position:absolute;inset:0;pointer-events:none}.label{position:absolute;transform:translate(-50%,-100%);border:1px solid #d1e1f1;background:#ffffffeb;border-radius:7px;box-shadow:0 4px 15px #1c477c1f;padding:5px 8px;color:#163b73;font-size:11px;font-weight:700;white-space:nowrap;pointer-events:auto;transition:opacity .2s}.label:before{content:"";display:block;position:absolute;width:7px;height:7px;left:50%;bottom:-11px;border-radius:50%;background:#1074bb;border:2px solid white;box-shadow:0 0 0 2px #1074bb}.label.active{background:#0e3972;color:white;border-color:#0e3972}.scene-actions{position:absolute;left:16px;right:16px;bottom:54px;display:flex;justify-content:center;gap:7px;flex-wrap:wrap;pointer-events:none}.scene-actions button{pointer-events:auto;background:#ffffffed;border:1px solid #d3e1ee;color:#235485;border-radius:9px;padding:9px 12px;font-size:12px;font-weight:750;box-shadow:0 6px 14px #193e6b12}.scene-actions button:hover,.scene-actions button[aria-pressed=true]{background:#e6f2fd;border-color:#87b9e5}.scene-actions .primary{background:#0d326a;color:white;border-color:#0d326a}.scene-actions .primary:hover{background:#18508e}.scene-legend{position:absolute;right:16px;bottom:13px;display:flex;gap:14px;border:1px solid #d6e4f0;border-radius:8px;background:#ffffffeb;padding:8px 10px;color:#5f7696;font-size:10px}.scene-legend span{display:flex;gap:5px;align-items:center}.swatch{display:inline-block;width:18px;height:3px;border-radius:4px}.supply{background:#1b75bc}.return{background:#50b7d8}.condenser{background:#728da8}.hint{position:absolute;left:16px;bottom:17px;color:#6e8aa9;font-size:10px}.scene-fallback{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;background:#f7fbff}.scene-fallback[hidden]{display:none}.scene-fallback button{background:#0d326a;color:white;border:0;padding:12px 16px;border-radius:8px}.inspector{display:flex;flex-direction:column;min-height:0;border-left:1px solid #dce6f0;padding:19px 17px;background:linear-gradient(#fff,#f9fbfe)}.panel-top{display:flex;justify-content:space-between;align-items:center}.panel-top button{border:0;background:none;font-size:23px;color:#6681a4}.inspector h2{font-size:21px;line-height:1.2;letter-spacing:-.35px;margin:9px 0 6px}.inspector>p{color:#5d7395;font-size:13px;line-height:1.4;margin:0 0 14px}.mode-tabs{display:flex;border:1px solid #dbe7f2;border-radius:9px;padding:3px;background:#eef4fa}.mode-tabs button{flex:1;background:transparent;border:0;border-radius:6px;color:#657d9e;padding:8px 4px;font-size:12px;font-weight:800}.mode-tabs button.active{background:white;color:#0e4e93;box-shadow:0 2px 7px #193e6b1c}.panel-content{overflow:auto;padding:4px 1px;flex:1;scrollbar-width:thin}.info-block{border:1px solid #dce8f3;background:#fff;border-radius:9px;padding:11px 12px;margin-top:9px}.info-block h3{font-size:12px;margin:0 0 6px;color:#143468}.info-block p,.info-block li{color:#587293;font-size:12px;line-height:1.46;margin:0}.info-block ul{margin:0;padding-left:16px}.info-block li+li{margin-top:3px}.info-block.alert{border-color:#d4e4f4;background:#f3f8fd}.panel-foot{border-top:1px solid #e1e9f2;padding-top:10px;color:#8092ac;font-size:10px}.panel-foot button{width:100%;margin-bottom:8px;border:1px solid #acc9e6;background:white;color:#174e89;padding:8px;border-radius:7px;font-weight:750}.panel-foot button[hidden]{display:none}.bottom-bar{display:flex;align-items:center;gap:14px;margin-top:12px;position:relative}.search-label{display:flex;align-items:center;gap:8px;min-width:300px;width:350px;border:1px solid #d3e1ef;border-radius:9px;background:#fff;padding:8px 12px}.search-label span{font-size:20px;color:#5e82aa}.search-label input{border:0;outline:0;width:100%;font-size:13px;color:#16396c}.search-results{position:absolute;bottom:calc(100% + 5px);left:0;width:350px;max-height:270px;overflow:auto;border:1px solid #d3e1ef;border-radius:9px;background:#fff;z-index:5;box-shadow:0 14px 32px #143a6d20}.search-results[hidden]{display:none}.search-results button{display:block;width:100%;text-align:left;padding:10px 12px;border:0;background:#fff;color:#24456d}.search-results button:hover{background:#edf6ff}.bottom-tip{color:#8194ae;font-size:12px}
html[dir=rtl] .intro,html[dir=rtl] .inspector,html[dir=rtl] .search-results button{text-align:right}html[dir=rtl] .top-actions{margin-left:0;margin-right:auto}html[dir=rtl] .inspector{border-left:0;border-right:1px solid #dce6f0}html[dir=rtl] .hint{left:auto;right:16px}html[dir=rtl] .scene-legend{right:auto;left:16px}html[dir=rtl] .info-block ul{padding-left:0;padding-right:16px}
@media(max-width:1000px){.top-note{display:none}.workspace{grid-template-columns:minmax(0,1fr) 310px}.intro-meta{display:none}.scene-legend{bottom:113px}.scene-actions{bottom:45px}}@media(max-width:750px){.topbar{height:56px;gap:10px;padding:0 12px}.brand{font-size:17px}.brand-mark{width:24px;height:26px;font-size:16px}.top-actions{gap:9px}.top-actions a{display:none}.workbench{padding:16px 10px}.intro h1{font-size:27px}.intro p{font-size:13px}.journey{margin:14px 0 10px}.journey button{min-width:118px}.workspace{height:auto;display:flex;flex-direction:column}.scene-shell{height:min(65vh,520px);min-height:420px}.inspector{min-height:370px;max-height:520px;border-left:0;border-top:1px solid #dce6f0}.scene-actions{bottom:38px;left:8px;right:8px;gap:5px}.scene-actions button{font-size:11px;padding:7px 8px}.hint{display:none}.scene-legend{left:8px;right:auto;bottom:105px;font-size:9px}.bottom-bar{flex-direction:column;align-items:stretch}.search-label{width:100%;min-width:0}.search-results{width:100%}html[dir=rtl] .inspector{border-right:0}.bottom-tip{padding-left:3px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition-duration:.01ms!important;animation-duration:.01ms!important}}

/* Native MEP Estimate-X module treatment, scoped to this page only. */
:root{--navy:#081f46;--blue:#066aff;--steel:#506987;--line:#dce6ef;--paper:#f8fbfd}
body{font-family:Arial,Helvetica,sans-serif;background:var(--paper);color:var(--navy)}
.topbar{position:relative;z-index:20;width:min(1320px,calc(100% - 40px));height:76px;margin:12px auto 0;padding:13px 24px;border:1px solid #fff;border-radius:21px;background:#fffffff0;box-shadow:0 8px 30px #254b7416;backdrop-filter:blur(16px)}
.brand{display:flex;gap:0;color:var(--navy);letter-spacing:normal}.brand-copy{display:flex;flex-direction:column;gap:5px}.brand-copy strong{display:flex;align-items:center;font-size:19px;line-height:1}.brand-copy img{display:inline-block;width:39px;height:42px;margin-inline-start:1px}.brand-copy small{font-size:10px;font-weight:400;color:#667e9a;white-space:nowrap}
.module-nav{display:flex;align-items:center;gap:26px;margin-inline-start:auto;font-size:12px;font-weight:600}.module-nav a{position:relative;padding:15px 0;color:#27405f}.module-nav a.active,.module-nav a:hover{color:var(--blue)}.module-nav a.active:after{position:absolute;content:"";bottom:4px;left:0;right:0;height:2px;background:var(--blue)}
.top-actions{margin-left:0}.preview-chip{border:1px solid #dbe9fe;border-radius:18px;padding:7px 10px;color:#1762bb;background:#f1f7ff;font-size:10px;letter-spacing:1px}.lang{border:1px solid #e4eaf2;border-radius:9px;background:#f7faff;color:#12447d}
.workbench{max-width:1320px;padding-top:25px}.intro h1{font-size:clamp(30px,3vw,44px)}.workspace{border:1px solid #e2eaf3;border-radius:19px;box-shadow:0 10px 32px #183e6911}.scene-shell{background:radial-gradient(circle at 50% 28%,white,#f6faff 70%,#edf5fb)}.scene-actions .primary{background:linear-gradient(115deg,#1687ff,#0059fa);border-color:#0872ff;box-shadow:0 6px 15px #0165f62b}.scene-actions .primary:hover{background:#0056dc}.scene-actions button[aria-pressed=true]{background:#e5f0ff;color:#064fad;border-color:#86b6fa}.scene-actions button:disabled,.flow-playback button:disabled{opacity:.42;cursor:not-allowed}
.flow-choice{position:absolute;z-index:12;left:16px;bottom:116px;display:grid;gap:4px;width:min(305px,calc(100% - 32px));padding:12px;border:1px solid #bdd5ed;border-radius:14px;background:#fff;box-shadow:0 18px 48px #102f5629}.flow-choice[hidden],.flow-story[hidden],.xray-state[hidden],.component-tree[hidden]{display:none}.flow-choice strong{padding:3px 6px 7px;font-size:13px}.flow-choice button{border:0;border-radius:7px;background:#f2f7fc;padding:11px;text-align:start;font-size:12px;font-weight:700;color:#235181}.flow-choice button:hover{background:#dceeff}
.flow-story{position:absolute;z-index:11;top:16px;left:16px;max-width:min(360px,calc(100% - 32px));padding:14px 15px;border:1px solid #c6dcee;border-radius:13px;background:#fffffff2;box-shadow:0 14px 38px #173b6c1e;backdrop-filter:blur(15px)}.flow-story-head{display:flex;justify-content:space-between;align-items:center;color:#5c82ab;font-size:11px;letter-spacing:1px;font-weight:800}.flow-story-head button{border:0;background:transparent;color:#7490aa;font-size:22px}.flow-story strong{display:block;margin-top:7px;font-size:17px}.flow-story p{margin:6px 0 12px;color:#4f6e91;line-height:1.45;font-size:12px}.flow-playback{display:flex;flex-wrap:wrap;gap:5px}.flow-playback button{background:#edf5ff;border:1px solid #cbdff3;border-radius:7px;color:#185795;padding:6px 8px;font-size:11px;font-weight:700}.flow-playback button:hover{background:#daebfd}.xray-state{position:absolute;z-index:9;right:16px;top:16px;border:1px solid #a9c9e9;border-radius:8px;padding:7px 10px;background:#eff7ff;color:#164c88;font-size:11px;font-weight:800}
.component-tree{margin-top:10px;border:1px solid #cddfee;border-radius:10px;padding:9px;background:#f5faff}.component-tree h3{margin:1px 4px 8px;color:#284e7a;font-size:12px}.component-tree button{width:100%;display:flex;align-items:center;gap:6px;border:0;border-radius:6px;background:transparent;color:#34648f;text-align:start;padding:5px 7px;font-size:11px;line-height:1.25}.component-tree button:hover,.component-tree button.active{background:#dceefe;color:#0853a1}.component-tree button.root{font-weight:800}
.panel-type{border:1px solid #d7e5f2;border-radius:5px;padding:4px 6px;color:#6182a5;font-size:9px;font-weight:800;letter-spacing:1px}.inspector{border-color:#dce6ef}.info-block{border-color:#dce6ef}.label{border-color:#ccdfef}
html[dir=rtl] .top-actions{margin:0}html[dir=rtl] .module-nav{margin-inline-start:auto}html[dir=rtl] .flow-story,html[dir=rtl] .flow-choice{left:auto;right:16px;text-align:right}html[dir=rtl] .xray-state{right:auto;left:16px}html[dir=rtl] .component-tree button,html[dir=rtl] .flow-choice button{text-align:right}
@media(max-width:920px){.module-nav a:not(.active){display:none}.module-nav{gap:10px}.topbar{width:calc(100% - 22px);padding-inline:14px}}
@media(max-width:750px){.topbar{height:64px;margin-top:7px;border-radius:14px}.brand-copy strong{font-size:15px}.brand-copy img{width:29px;height:31px}.brand-copy small{font-size:8px}.module-nav,.preview-chip{display:none}.workbench{padding-top:18px}.scene-shell{height:min(62vh,535px);min-height:440px}.inspector{max-height:49vh;min-height:310px;padding-top:13px;border-top-left-radius:17px;border-top-right-radius:17px;box-shadow:0 -7px 18px #102f5613}.flow-story{top:10px;left:10px;max-width:calc(100% - 20px)}.flow-choice{bottom:105px;left:10px;width:calc(100% - 20px)}.xray-state{right:10px;top:10px;font-size:10px}.scene-actions{bottom:44px}.scene-legend{bottom:118px}.scene-legend span{font-size:9px}}
@media(max-width:750px){.inspector{height:560px;max-height:70vh}.component-tree{max-height:124px;overflow:auto;flex-shrink:0}.panel-content{min-height:150px}.scene-shell .label{font-size:9px;padding:4px 6px}.scene-actions{z-index:7}}

/* Immersive engineering workspace: the same canvas and selection state are retained. */
.nav-toggle{display:none}.panel-top #panel-toggle{flex:0 0 25px;height:25px;display:grid;place-items:center;border:1px solid #d8e3ec;border-radius:6px;background:#fff;color:#335675;font-size:15px;line-height:1;padding:0}.panel-top{gap:7px}.panel-top .panel-type{margin-inline-start:auto;white-space:nowrap}
.workbench.is-immersive{position:fixed;inset:0;z-index:1000;width:100vw;height:100dvh;max-width:none;margin:0;padding:10px 14px;display:flex;flex-direction:column;background:#f4f7f8;overflow:hidden}.workbench.is-immersive .intro{display:none}.workbench.is-immersive .nav-toggle{display:inline-flex;align-self:flex-start;border:1px solid #cbd9e4;border-radius:8px;background:#fff;color:#254968;padding:5px 10px;font-size:11px;font-weight:700;margin-bottom:5px}.workbench.is-immersive .journey{flex:0 0 auto;margin:0 0 8px;max-height:51px}.workbench.is-immersive.journey-collapsed .journey{display:none}.workbench.is-immersive .journey button{min-width:105px;padding:7px 9px}.workbench.is-immersive .workspace{flex:1;height:auto;min-height:0;grid-template-columns:minmax(0,1fr) minmax(300px,360px);border-radius:13px}.workbench.is-immersive .bottom-bar{flex:0 0 auto;margin-top:7px}.workbench.is-immersive .scene-actions{bottom:54px}.workbench.is-immersive .scene-shell{min-height:0}.workbench.is-immersive .inspector{min-height:0;max-height:none}.workbench.is-immersive .panel-content{min-height:0}
.workbench.panel-collapsed .workspace{grid-template-columns:minmax(0,1fr) 44px}.workbench.panel-collapsed .inspector{padding:10px 6px}.workbench.panel-collapsed .inspector>:not(.panel-top),.workbench.panel-collapsed .panel-top>:not(#panel-toggle){display:none}.workbench.panel-collapsed .panel-top{justify-content:center}
body.immersive-body{overflow:hidden}
.mode-tabs button{min-width:0;font-size:11px}.loading-intro{color:#587293;font-size:11px;line-height:1.45;margin:10px 2px}.loading-group{border:1px solid #dce8f0;border-radius:9px;margin-top:8px;background:#fff;overflow:hidden}.loading-group summary{cursor:pointer;list-style:none;padding:10px 10px;display:flex;justify-content:space-between;gap:10px;align-items:center;color:#133961;font-size:12px;font-weight:800}.loading-group summary::-webkit-details-marker{display:none}.loading-group summary:after{content:'⌄';color:#6e91aa}.loading-group[open] summary{border-bottom:1px solid #e4ebf1;background:#f3f7fa}.loading-lines{padding:5px 8px 8px}.loading-line{width:100%;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px;text-align:start;background:#fff;border:0;border-radius:6px;padding:7px 6px;color:#31516e;font-size:11px}.loading-line:hover,.loading-line:focus-visible{background:#e8f2fb}.loading-line small{grid-column:1 / -1;line-height:1.35;color:#718596}.loading-line .loading-state{font-size:9px;padding:2px 5px;border-radius:4px;color:#855e16;background:#fff5db;white-space:nowrap}.loading-line .loading-state.typical{color:#246344;background:#e7f5e9}.workbench.is-immersive .loading-line{font-size:12px}
html[dir=rtl] .loading-line{text-align:right}
@media(max-width:750px){.workbench.is-immersive{padding:5px 6px}.workbench.is-immersive .workspace{display:flex;flex-direction:column}.workbench.is-immersive .scene-shell{flex:1;height:auto;min-height:190px}.workbench.is-immersive .inspector{height:clamp(225px,38dvh,385px);min-height:0;max-height:none;border-radius:12px;padding:10px}.workbench.is-immersive .journey{max-height:47px}.workbench.is-immersive .scene-actions{bottom:44px}.workbench.is-immersive .scene-legend{bottom:116px}.workbench.is-immersive .bottom-tip{display:none}.workbench.is-immersive .bottom-bar{margin-top:5px}.workbench.is-immersive .search-label{padding:5px 9px}.workbench.panel-collapsed .inspector{height:42px;min-height:42px;max-height:42px;padding:7px}.workbench.is-immersive.panel-collapsed .scene-shell{height:auto;flex:1}}

#immersive-lang{display:none}.workbench.is-immersive #immersive-lang{display:inline-block}.component-tree{max-height:138px;overflow:auto;flex-shrink:0}

.workbench:has(#loadings.active) .component-tree{display:none}
@media(max-width:750px){
 .workbench.is-immersive .inspector{height:clamp(285px,44dvh,420px)}
 .workbench.is-immersive .panel-foot{display:flex;gap:5px;flex:0 0 auto;padding-top:5px}
 .workbench.is-immersive .panel-foot span{display:none}
 .workbench.is-immersive .panel-foot button{margin:0;padding:6px 3px;font-size:10px}
 .workbench.is-immersive .inspector h2{font-size:19px;margin:5px 0 3px}
 .workbench.is-immersive .inspector>p{font-size:11px;margin-bottom:7px}
}
/* Service colours are a visual convention for this teaching model; labels carry the actual circuit identity. */
.swatch.supply{background:#a83a32}.swatch.return{background:#783d3a}.swatch.condenser{background:#80524c}
.service-tags{position:absolute;inset:0;pointer-events:none;z-index:4}.service-tag{position:absolute;transform:translate(-50%,-50%);border:1px solid #9d4740;border-radius:3px;padding:2px 5px;background:#fffaf7ed;color:#812e29;font-size:10px;font-weight:900;box-shadow:0 2px 5px #29303922;white-space:nowrap}.service-tag.return{border-color:#734543;color:#683634}.service-tag.cw{border-color:#80695d;color:#675246}.service-tag[hidden]{display:none}
.top-actions .country-control{position:relative}.country-control #country-trigger{display:flex;align-items:center;gap:6px;min-height:32px;padding:5px 9px;border:1px solid #cbd9e9;border-radius:7px;background:#fff;color:#16406e;font-size:12px;font-weight:700}.country-control img{object-fit:cover;border:1px solid #e1e5e9}.country-popover{position:absolute;z-index:1201;top:calc(100% + 6px);inset-inline-end:0;width:230px;padding:6px;border:1px solid #cad8e5;border-radius:9px;background:#fff;box-shadow:0 12px 28px #25374725}.country-popover[hidden]{display:none}.country-option{display:flex;align-items:center;gap:8px;width:100%;padding:8px;border:0;border-radius:5px;background:#fff;color:#264360;text-align:start;font-size:12px}.country-option:hover,.country-option.active{background:#e8f2f9}.country-option small{margin-inline-start:auto;color:#61768c;font-size:11px}.immersive-bar{display:none}.immersive-country-label{font-size:11px;color:#435e76}.workbench.is-immersive .immersive-bar{display:flex;align-items:center;gap:7px;margin-bottom:5px}.workbench.is-immersive .immersive-bar .nav-toggle{margin:0}.workbench.is-immersive #immersive-country{border:1px solid #cbd9e4;border-radius:7px;padding:4px 5px;background:#fff;color:#23435f;font-size:11px}
.loading-line{grid-template-columns:minmax(0,1fr) auto;align-items:center;border-bottom:1px solid #edf1f4}.loading-line .loading-visual{border:0;background:none;text-align:start;color:#31516e;font-size:inherit;padding:1px 0;cursor:pointer}.loading-line .loading-visual:hover{text-decoration:underline}.loading-line .scope-decision{grid-column:1 / -1;justify-self:start;max-width:100%;border:1px solid #d1dee8;border-radius:5px;padding:3px 5px;background:#f8fafc;color:#234260;font-size:11px}.loading-line small{grid-column:1 / -1}.loading-line:hover{background:#f2f7f9}
@media(max-width:750px){.topbar .country-control #country-trigger{font-size:10px;padding:4px 5px}.topbar .country-control #country-current{max-width:58px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.workbench.is-immersive .immersive-bar{margin-bottom:3px}.workbench.is-immersive .immersive-country-label{display:none}.country-popover{width:210px}}
.labour-card{background:#f5f8fa}.labour-card .benchmark-note{margin-top:8px;font-size:11px;line-height:1.45;color:#657488}.labour-inputs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-top:10px}.labour-inputs label{display:flex;flex-direction:column;gap:4px;font-size:11px;color:#35546e;font-weight:700}.labour-inputs label:last-child{grid-column:1 / -1}.labour-inputs input{width:100%;border:1px solid #cbd9e4;border-radius:5px;padding:6px 7px;background:#fff;color:#19394f;font-size:12px}.labour-result{margin-top:9px!important;color:#173f67!important;font-weight:800!important}
.journey-story{position:absolute;z-index:13;top:16px;left:16px;width:min(370px,calc(100% - 32px));padding:12px 13px;border:1px solid #c8d8e6;border-radius:9px;background:#fffffff5;box-shadow:0 12px 32px #20395025}.journey-story[hidden],.narration[hidden],.narration-subtitle[hidden]{display:none}.journey-story>span{font-size:10px;color:#657e97;font-weight:800;letter-spacing:.08em}.journey-story strong{display:block;margin:4px 0;font-size:15px;color:#183d62}.journey-story p{font-size:12px;line-height:1.5;color:#34536e;margin:0 0 9px}.journey-playback{display:flex;flex-wrap:wrap;gap:4px}.journey-playback button{background:#edf3f8;border:1px solid #c9d7e4;border-radius:5px;padding:5px 7px;font-size:11px;font-weight:700;color:#1c496f}.journey-playback button:disabled{opacity:.45}.narration{position:absolute;z-index:14;top:16px;right:16px;max-width:min(320px,calc(100% - 32px));display:flex;align-items:center;flex-wrap:wrap;gap:4px;border:1px solid #c6d7e5;border-radius:8px;background:#ffffffed;padding:7px;color:#34536e;box-shadow:0 9px 26px #203b521d}.narration label,.narration #voice-status{font-size:10px;font-weight:700}.narration select,.narration button{border:1px solid #cbd9e3;border-radius:5px;padding:4px;background:#f6f9fb;color:#244760;font-size:10px}.narration #voice-status{flex:1 0 100%;font-weight:500}.narration-subtitle{position:absolute;bottom:113px;left:50%;transform:translateX(-50%);z-index:12;width:min(650px,calc(100% - 32px));max-height:90px;overflow:auto;padding:8px 11px;border-radius:7px;background:#183148eb;color:#fff;font-size:12px;line-height:1.48;text-align:center;box-shadow:0 6px 22px #25354635}.scene-shell:has(.narration:not([hidden])) .xray-state{top:91px}.workbench.is-presentation .inspector,.workbench.is-presentation .scene-actions,.workbench.is-presentation .journey,.workbench.is-presentation .bottom-bar,.workbench.is-presentation .immersive-bar{display:none}.workbench.is-presentation .workspace{grid-template-columns:minmax(0,1fr)}.workbench.is-presentation .flow-story{max-width:440px}.workbench.is-presentation .narration-subtitle{bottom:22px;width:min(780px,calc(100% - 32px))}
html[dir=rtl] .journey-story{left:auto;right:16px;text-align:right}html[dir=rtl] .narration{right:auto;left:16px}
@media(max-width:900px){.journey-story{max-height:155px;overflow:auto;width:min(280px,calc(100% - 26px))}.journey-story p{font-size:11px}.narration{top:175px;right:10px;max-width:240px}.scene-shell:has(.narration:not([hidden])) .xray-state{top:265px}}
@media(max-width:750px){.journey-story,.flow-story{top:7px;left:7px;width:calc(100% - 14px);max-width:none;max-height:118px;overflow:auto;padding:7px 9px}.journey-story strong{font-size:12px}.journey-story p,.flow-story p{font-size:10px;line-height:1.3}.journey-playback button,.flow-playback button{padding:3px 5px;font-size:10px}.narration{top:129px;right:7px;max-width:calc(100% - 14px);padding:4px;gap:3px}.narration #voice-status{display:none}.narration-subtitle{bottom:111px;max-height:54px;font-size:10px;padding:5px 7px}.workbench.is-presentation .narration{top:136px}.workbench.is-presentation .narration-subtitle{bottom:12px;max-height:90px}}
@media(max-width:750px){
 .workbench.is-immersive .journey-story,.workbench.is-immersive .flow-story{max-height:81px;overflow:auto}
 .workbench.is-immersive .journey-story p,.workbench.is-immersive .flow-story p{display:none}
 .workbench.is-immersive .journey-story strong,.workbench.is-immersive .flow-story strong{margin:1px 0 5px}
 .workbench.is-immersive .narration{top:87px;left:7px;right:7px;width:calc(100% - 14px);max-width:none;justify-content:center}
 .workbench.is-immersive .narration-subtitle{bottom:78px;max-height:71px}
 .workbench.is-immersive .scene-shell:has(.journey-story:not([hidden])) .scene-actions button:not(#xray):not(#fullscreen),.workbench.is-immersive .scene-shell:has(.flow-story:not([hidden])) .scene-actions button:not(#xray):not(#fullscreen){display:none}
 .workbench.is-immersive .scene-shell:has(.journey-story:not([hidden])) .scene-legend,.workbench.is-immersive .scene-shell:has(.flow-story:not([hidden])) .scene-legend{display:none}
 .workbench.is-immersive .scene-shell:has(.narration:not([hidden])) .xray-state{top:137px;right:7px;left:auto;font-size:9px;padding:3px 5px}
}
.narration button:disabled{opacity:.42;cursor:not-allowed}
/* Narration is recorded per chapter. Captions show the current spoken thought at reading size. */
.narration{max-width:min(390px,calc(100% - 32px));width:390px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;padding:10px}
.narration-setting{display:flex;flex-direction:column;gap:3px;min-width:0}
.narration-setting label{font-size:11px;line-height:1.2;font-weight:800;color:#294864}
.narration-setting select{width:100%;min-height:32px;font-size:12px;font-weight:700;background:#fff}
.narration-transport{grid-column:1 / -1;display:flex;gap:5px;flex-wrap:wrap}
.narration-transport button{min-height:31px;padding:5px 8px;font-size:11px;font-weight:750}
.narration #voice-status{grid-column:1 / -1;display:block;font-size:11px;font-weight:650;color:#375a75}
.narration-subtitle{width:min(790px,calc(100% - 30px));max-height:154px;min-height:58px;overflow:auto;padding:12px 18px;border-radius:10px;background:#112b40ed;color:#fff;font-size:clamp(16px,1.45vw,20px);line-height:1.6;font-weight:700;text-align:center;text-wrap:pretty;text-shadow:0 1px 1px #0008;border:1px solid #b1c6d580}
.narration-subtitle[dir=rtl]{font-family:Tahoma,Arial,sans-serif;line-height:1.72}
.scene-shell:has(.narration:not([hidden])) .xray-state{top:158px}
@media(max-width:900px){.narration{top:166px;right:10px;max-width:min(355px,calc(100% - 20px))}.scene-shell:has(.narration:not([hidden])) .xray-state{top:314px}}
@media(max-width:750px){.narration{top:128px;right:7px;left:7px;width:calc(100% - 14px);max-width:none;gap:4px;padding:7px}.narration-setting label{font-size:10px}.narration-setting select{min-height:29px;font-size:11px}.narration-transport{justify-content:center}.narration-transport button{min-height:28px;padding:3px 7px;font-size:10px}.narration #voice-status{font-size:10px;text-align:center}.narration-subtitle{bottom:100px;max-height:106px;min-height:48px;padding:8px 10px;font-size:15px;line-height:1.55}.narration-subtitle[dir=rtl]{line-height:1.62}.workbench.is-presentation .narration{top:109px}.workbench.is-presentation .narration-subtitle{bottom:12px;max-height:125px}.scene-shell:has(.narration:not([hidden])) .xray-state{top:258px}}
@media(max-width:750px){.workbench.is-immersive .narration{top:85px;left:7px;right:7px;width:calc(100% - 14px)}.workbench.is-immersive .narration-subtitle{bottom:76px;max-height:125px}.workbench.is-immersive.is-presentation .narration-subtitle{bottom:14px}.workbench.is-immersive .scene-shell:has(.narration:not([hidden])) .xray-state{top:210px}}
/* Mobile inspection: controls open on demand so the plant remains visible. */
.audio-settings-toggle,.mobile-detail-toggle,.story-expand{display:none}
@media(max-width:750px){
 .scene-shell .audio-settings-toggle{display:block;position:absolute;z-index:22;top:91px;right:8px;left:auto;width:auto;max-width:calc(100% - 16px);border:1px solid #aac9e1;border-radius:8px;background:#fffefa;color:#173c60;box-shadow:0 4px 16px #112e4a29;padding:7px 10px;font-size:12px;font-weight:800;line-height:1.25}
 .journey-story,.flow-story{top:8px;left:8px;right:auto;width:calc(100% - 16px);max-height:calc(100% - 80px);padding:7px 9px;overflow:auto}
 .journey-story strong,.flow-story strong{font-size:14px;margin:2px 0 4px}
 .journey-story p,.flow-story p,.workbench.is-immersive .journey-story p,.workbench.is-immersive .flow-story p{display:none}
 .journey-story.story-expanded p,.flow-story.story-expanded p,.workbench.is-immersive .journey-story.story-expanded p,.workbench.is-immersive .flow-story.story-expanded p{display:block;margin:6px 0;padding:6px;background:#f3f7fa;border-radius:6px;font-size:12px;line-height:1.6;text-align:start}
 .journey-story .story-expand,.flow-story .story-expand{display:block;position:absolute;right:8px;top:7px;border:1px solid #bdd1e4;border-radius:6px;background:#eef6fc;color:#174c76;padding:3px 6px;font-size:11px;font-weight:800}
 .journey-story>strong,.flow-story>strong{padding-right:64px}
 .journey-playback,.flow-playback{flex-wrap:nowrap;justify-content:space-between;gap:3px}
 .journey-playback button,.flow-playback button{min-height:28px;font-size:11px;padding:3px 7px}
 .scene-shell .narration{display:none}
 .scene-shell.audio-open .narration:not([hidden]){display:grid;position:absolute;z-index:26;top:129px;right:8px;left:auto;width:min(360px,calc(100% - 16px));max-width:none;max-height:calc(100% - 145px);overflow:auto;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:12px;border-radius:12px;background:#fff;box-shadow:0 12px 38px #0b27486b}
 .narration-setting label{font-size:12px}.narration-setting select{min-height:42px;font-size:14px}.narration-transport button{min-height:39px;font-size:12px}.narration #voice-status{font-size:12px}
 .narration-subtitle,.workbench.is-immersive .narration-subtitle{bottom:53px;min-height:0;max-height:105px;font-size:clamp(16px,4vw,20px);line-height:1.5;padding:7px 12px;width:calc(100% - 20px);overflow:auto}
 .scene-shell:has(.narration:not([hidden])) .xray-state,.workbench.is-immersive .scene-shell:has(.narration:not([hidden])) .xray-state{top:auto;bottom:115px;right:8px;left:auto}
 .scene-shell:has(.journey-story:not([hidden])) .scene-actions button:not(#xray):not(#fullscreen),.scene-shell:has(.flow-story:not([hidden])) .scene-actions button:not(#xray):not(#fullscreen){display:none}
 .scene-actions{bottom:6px;left:8px;right:8px;gap:5px}.scene-actions button{font-size:11px;padding:7px 9px}
 .scene-actions #immersive-lang,.scene-actions #presentation,.scene-actions #reset{display:none}
 .scene-legend{display:none}
 .workbench.is-immersive.mobile-immersive .scene-shell .audio-settings-toggle{top:8px}
 .workbench.is-immersive.mobile-immersive .scene-shell.audio-open .narration:not([hidden]){top:45px;max-height:calc(100% - 52px)}
}
.workbench.is-immersive.mobile-immersive{padding:0;overflow:hidden}
.workbench.is-immersive.mobile-immersive .intro,.workbench.is-immersive.mobile-immersive .immersive-bar,.workbench.is-immersive.mobile-immersive .journey,.workbench.is-immersive.mobile-immersive .bottom-bar{display:none}
.workbench.is-immersive.mobile-immersive .workspace{position:relative;display:block;flex:1;width:100%;height:100%;min-height:0;border:0;border-radius:0}
.workbench.is-immersive.mobile-immersive .scene-shell{position:absolute;inset:0;display:block;width:100%;height:100%;min-height:0;max-height:none}
.workbench.is-immersive.mobile-immersive .inspector{display:none}
.workbench.is-immersive.mobile-immersive.inspector-open .inspector{display:flex;position:absolute;z-index:24;top:0;right:0;bottom:0;width:min(365px,58%);height:100%;min-height:0;max-height:none;overflow:auto;border-left:1px solid #b6cfe1;border-radius:12px 0 0 12px;background:#fff;box-shadow:-12px 0 35px #102c5066}
.workbench.is-immersive.mobile-immersive .mobile-detail-toggle{display:block;position:absolute;z-index:27;top:47px;right:8px;padding:6px 9px;border:1px solid #abc9df;border-radius:7px;background:#fff;color:#173c60;font-size:12px;font-weight:800;box-shadow:0 3px 12px #163b5940}
.workbench.is-immersive.mobile-immersive .journey-story,.workbench.is-immersive.mobile-immersive .flow-story{top:8px;left:8px;width:min(345px,43%);max-height:calc(100% - 70px)}
.workbench.is-immersive.mobile-immersive .scene-actions{bottom:8px;left:8px;right:8px;z-index:20}
.workbench.is-immersive.mobile-immersive .scene-actions button:not(#xray):not(#fullscreen){display:none}
.workbench.is-immersive.mobile-immersive .narration-subtitle{bottom:51px;width:min(680px,calc(100% - 24px));max-height:96px;font-size:clamp(15px,2.5vw,19px)}
.workbench.is-immersive.mobile-immersive .scene-shell .audio-settings-toggle{display:block;top:8px;right:8px}
.workbench.is-immersive.mobile-immersive .scene-shell.audio-open .narration:not([hidden]){display:grid;position:absolute;z-index:30;top:45px;right:8px;left:auto;width:min(345px,45%);max-height:calc(100% - 55px);overflow:auto;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:11px;border-radius:10px;background:white;box-shadow:0 14px 35px #0e2f4b72}
.workbench.is-immersive.mobile-immersive .scene-legend,.workbench.is-immersive.mobile-immersive .hint{display:none}
@media(orientation:portrait){
 .workbench.is-immersive.mobile-immersive{position:fixed;inset:auto;top:0;left:100dvw;width:100dvh;height:100dvw;max-width:none;transform-origin:top left;transform:rotate(90deg);z-index:2000}
}
/* The same compact controls apply after the phone physically rotates and exceeds 750px. */
.workbench.is-immersive.mobile-immersive .journey-story,.workbench.is-immersive.mobile-immersive .flow-story{padding:8px 10px;overflow:auto}
.workbench.is-immersive.mobile-immersive .journey-story strong,.workbench.is-immersive.mobile-immersive .flow-story strong{font-size:14px;margin:2px 0 4px;padding-right:65px}
.workbench.is-immersive.mobile-immersive .journey-story p,.workbench.is-immersive.mobile-immersive .flow-story p{display:none}
.workbench.is-immersive.mobile-immersive .journey-story.story-expanded p,.workbench.is-immersive.mobile-immersive .flow-story.story-expanded p{display:block;font-size:12px;line-height:1.55;margin:6px 0;background:#f3f7fa;padding:7px;text-align:start}
.workbench.is-immersive.mobile-immersive .story-expand{display:block;position:absolute;right:8px;top:7px;border:1px solid #bdd1e4;border-radius:6px;background:#eef6fc;color:#174c76;padding:3px 6px;font-size:11px;font-weight:800}
.workbench.is-immersive.mobile-immersive .journey-playback,.workbench.is-immersive.mobile-immersive .flow-playback{flex-wrap:nowrap;gap:4px}
.workbench.is-immersive.mobile-immersive .journey-playback button,.workbench.is-immersive.mobile-immersive .flow-playback button{min-height:30px;padding:3px 6px;font-size:11px}
.workbench.is-immersive.mobile-immersive .scene-shell .narration{display:none}
.workbench.is-immersive.mobile-immersive .narration-setting select{min-height:40px;font-size:13px}
.workbench.is-immersive.mobile-immersive .narration-transport button{min-height:37px;font-size:12px}
.workbench.is-immersive.mobile-immersive .scene-shell .audio-settings-toggle{position:absolute;z-index:27;top:8px;right:8px;left:auto;width:auto;max-width:48%;border:1px solid #aac9e1;border-radius:8px;background:#fffefa;color:#173c60;box-shadow:0 4px 16px #112e4a29;padding:7px 10px;font-size:12px;font-weight:800;line-height:1.25}
.workbench.is-immersive.mobile-immersive .scene-shell.audio-open .narration:not([hidden]){border:1px solid #c6d7e5}
html[dir=rtl] .workbench.is-immersive.mobile-immersive .journey-story,html[dir=rtl] .workbench.is-immersive.mobile-immersive .flow-story{left:8px;right:auto}
html[dir=rtl] .workbench.is-immersive.mobile-immersive .scene-shell .audio-settings-toggle,html[dir=rtl] .workbench.is-immersive.mobile-immersive .scene-shell.audio-open .narration:not([hidden]){right:8px;left:auto}
@media(max-width:750px){html[dir=rtl] .journey-story,html[dir=rtl] .flow-story{left:8px;right:auto}html[dir=rtl] .scene-shell .audio-settings-toggle,html[dir=rtl] .scene-shell.audio-open .narration:not([hidden]){right:8px;left:auto}}
/* Engineering workspace ambient: moving survey grid behind the actual 3D installation. */
body{background:radial-gradient(ellipse 1200px 680px at 78% -15%,#e7f2fb 0%,#f6faff 55%,#f8fbfd 100%)}
body::before{content:"";position:fixed;inset:0;pointer-events:none;z-index:0;opacity:.28;background-image:linear-gradient(90deg,#6e9cbe18 1px,transparent 1px),linear-gradient(#6e9cbe18 1px,transparent 1px);background-size:64px 64px;mask-image:linear-gradient(to bottom,#000 0%,transparent 85%);animation:ambient-drift 50s linear infinite}
.panel-foot #ask-selected{border-color:#166bc6;background:#0c5eb7;color:#fff;box-shadow:0 4px 12px rgba(10,80,160,.14)}
.panel-foot #ask-selected:hover{background:#0a4f9d}
.topbar,.workbench{position:relative;z-index:1}
.scene-shell{isolation:isolate;background:radial-gradient(ellipse at 47% 28%,#fff 0%,#f4f9fc 58%,#eaf2f7 100%)}
.scene-shell::before{content:"";position:absolute;inset:-56px;z-index:0;pointer-events:none;opacity:.68;background-image:linear-gradient(90deg,#87acc815 1px,transparent 1px),linear-gradient(#87acc815 1px,transparent 1px),radial-gradient(ellipse 48% 35% at 73% 35%,#d9eefa78,transparent);background-size:46px 46px,46px 46px,100% 100%;animation:survey-drift 48s linear infinite}
#stage{z-index:1}#stage canvas{background:transparent}
.scene-grid{z-index:2;opacity:.48}
@keyframes survey-drift{from{transform:translate3d(-12px,-8px,0)}to{transform:translate3d(34px,38px,0)}}
@keyframes ambient-drift{from{background-position:0 0,0 0}to{background-position:64px 0,0 64px}}
@media(prefers-reduced-motion:reduce){body::before,.scene-shell::before{animation:none}}
@media(max-width:750px){body::before{opacity:.16}.scene-shell::before{opacity:.46}}
.labels{z-index:6}.scene-actions{z-index:9}.scene-legend,.hint{z-index:7}

/* Labour calculation: clear inputs and a result that remains legible on narrow screens. */
.labour-card{border:1px solid #b9d5e6;background:linear-gradient(155deg,#f9fcff,#eef5fa);box-shadow:0 9px 28px rgba(11,51,83,.075)}
.labour-card h3{margin-bottom:5px}
.labour-badge{display:inline-block;border-radius:30px;background:#d9eef3;color:#165a66;padding:5px 10px;font-size:12px;font-weight:800;line-height:1.35}
.labour-card .labour-basis{margin:10px 0 5px;color:#173f67;font-weight:750;line-height:1.55}
.labour-card .labour-scope{margin:0 0 5px;line-height:1.65;color:#344e61}
.labour-card .benchmark-note{font-size:12px;line-height:1.6;color:#52677b}
.labour-inputs{gap:11px;margin:15px 0 12px}
.labour-inputs label,.labour-inputs label:last-child{grid-column:auto;font-size:12px;line-height:1.35;min-width:0}
.labour-inputs input{border-radius:9px;padding:10px 11px;font-size:16px;min-height:42px;box-shadow:0 1px 3px rgba(23,63,103,.06)}
.labour-inputs input:focus{outline:2px solid #3986bb;outline-offset:1px}
.labour-summary{border:1px solid #a8cddf;background:linear-gradient(125deg,#e9f6fb,#fff);border-radius:12px;padding:14px;display:grid;gap:5px;color:#173f67}
.labour-summary-label{font-weight:700;font-size:13px}
.labour-estimate-value{font-size:clamp(22px,5vw,29px);font-variant-numeric:tabular-nums;letter-spacing:-.02em;overflow-wrap:anywhere}
.labour-summary p{margin:2px 0;font-size:12px;line-height:1.55;color:#35536b}
.labour-summary .labour-total{font-size:14px;font-weight:800;color:#135a74}
.labour-reset{margin-top:10px;border:1px solid #aac5d8;border-radius:9px;background:#fff;color:#165275;padding:9px 13px;font:inherit;font-size:12px;font-weight:800;cursor:pointer}
.labour-reset:hover,.labour-reset:focus-visible{background:#e9f4fa}
.labour-card .labour-warning{margin:10px 0 0;font-size:11px;line-height:1.6;color:#657488}
@media(max-width:360px){.labour-inputs{gap:7px}.labour-inputs label{font-size:11px}}
/* Keep the country choices above the workbench on mobile as well as desktop. */
.topbar{z-index:30}

/* Keep the 3D journey in view while the recorded narration plays. */
.journey-story{
  width:min(342px,calc(100% - 24px));
  max-height:min(76%,370px);
  padding:9px 11px 10px;
  border-color:#bcd3e4;
  border-radius:11px;
  background:rgba(255,255,255,.91);
  box-shadow:0 8px 24px rgba(15,51,86,.16);
  backdrop-filter:blur(12px);
  overflow:visible;
}
.journey-story>span{display:block;line-height:1.15}
.journey-story>strong{
  margin:3px 0 8px;
  padding-inline-end:88px;
  font-size:14px;
  line-height:1.3;
}
.journey-story .story-expand{
  display:block;
  position:absolute;
  top:8px;
  right:10px;
  min-height:27px;
  padding:3px 8px;
  border:1px solid #c7dbec;
  border-radius:6px;
  background:#f3f8fd;
  color:#174b78;
  font-size:11px;
  font-weight:750;
}
.story-expand::after{content:"⌄";display:inline-block;margin-inline-start:4px;transition:transform .18s}
.story-expand[aria-expanded=true]::after{transform:rotate(180deg)}
html[lang=en] .story-expand span[lang=ar],html[lang=ar] .story-expand span[lang=en]{display:none}
html[dir=rtl] .journey-story .story-expand{right:auto;left:10px}
.journey-story>p,.workbench.is-immersive .journey-story>p{display:none}
.journey-story.story-expanded>p,.workbench.is-immersive .journey-story.story-expanded>p{
  display:block;
  max-height:min(25vh,180px);
  overflow:auto;
  margin:0 0 9px;
  padding:8px 9px;
  border-radius:7px;
  background:#f2f7fb;
  color:#244867;
  font-size:12px;
  line-height:1.6;
  text-align:start;
}
.journey-playback,.workbench.is-immersive.mobile-immersive .journey-playback{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:4px;
}
.journey-playback button,.workbench.is-immersive.mobile-immersive .journey-playback button{
  min-width:0;
  min-height:31px;
  padding:4px 2px;
  white-space:nowrap;
  font-size:11px;
  line-height:1.2;
}
#journey-replay{font-size:0}
#journey-replay::before{content:"↺";font-size:19px;line-height:1}
.journey-story.story-expanded{z-index:25;overflow:auto}
@media(max-width:900px){
  .journey-story{width:min(342px,calc(100% - 16px));max-height:calc(100% - 70px)}
}
@media(max-width:750px){
  .journey-story{top:8px;left:8px;right:auto;width:min(342px,calc(100% - 16px));padding:8px 10px;overflow:visible}
  html[dir=rtl] .journey-story{left:8px;right:auto}
  .journey-story>strong{font-size:13px;margin:2px 0 7px}
}
.workbench.is-immersive.mobile-immersive .journey-story{
  width:min(342px,43%);
  max-height:calc(100% - 70px);
  overflow:visible;
}
.workbench.is-immersive.mobile-immersive .journey-story.story-expanded{overflow:auto}

/* Animated survey lines remain visible around the plant without hiding equipment. */
body::before{
  opacity:.48;
  background-image:linear-gradient(90deg,#4e87ae30 1px,transparent 1px),linear-gradient(#4e87ae30 1px,transparent 1px);
}
.scene-grid{
  z-index:2;
  opacity:.7;
  background-image:
    linear-gradient(90deg,#5a9bca32 1px,transparent 1px),
    linear-gradient(#5a9bca32 1px,transparent 1px),
    radial-gradient(circle at 82% 28%,transparent 0 100px,#4292c525 101px 102px,transparent 103px 150px,#4292c51c 151px 152px,transparent 153px);
  background-size:48px 48px,48px 48px,100% 100%;
  mask-image:radial-gradient(ellipse 83% 75% at 50% 50%,transparent 23%,#000 95%);
  animation:xray-survey-grid 30s linear infinite;
}
.scene-grid::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(105deg,transparent 37%,#1789c600 46%,#1789c62b 50%,#1789c600 54%,transparent 63%);
  background-size:240% 100%;
  animation:xray-survey-light 15s ease-in-out infinite alternate;
}
@keyframes xray-survey-grid{to{background-position:48px 24px,24px 48px,0 0}}
@keyframes xray-survey-light{from{background-position:100% 0}to{background-position:0 0}}
@media(prefers-reduced-motion:reduce){.scene-grid,.scene-grid::after{animation:none}}
@media(max-width:750px){.scene-grid{opacity:.46}.scene-grid::after{display:none}}

/* Spoken captions use a modest reading size rather than a title-sized banner. */
.narration-subtitle,
.workbench.is-presentation .narration-subtitle,
.workbench.is-immersive.mobile-immersive .narration-subtitle{
  width:min(550px,calc(100% - 28px));
  min-height:0;
  max-height:106px;
  padding:8px 13px;
  border:1px solid rgba(172,211,230,.36);
  border-radius:9px;
  background:rgba(15,43,65,.86);
  box-shadow:0 5px 16px rgba(11,40,65,.16);
  backdrop-filter:blur(7px);
  color:#f3f8fc;
  font-size:15px;
  font-weight:550;
  line-height:1.52;
  letter-spacing:0;
  text-shadow:none;
}
.narration-subtitle[dir=rtl]{font-family:Tahoma,Arial,sans-serif;line-height:1.58}
@media(max-width:750px){
  .narration-subtitle,
  .workbench.is-immersive .narration-subtitle,
  .workbench.is-immersive.mobile-immersive .narration-subtitle{
    width:min(490px,calc(100% - 20px));
    max-height:86px;
    padding:6px 10px;
    font-size:14px;
    line-height:1.5;
  }
}
