.bex{--ex-ink:#1c2e55;--ex-accent:#ca332f;--ex-line:#ced9e3;--ex-pale:#f3f6f8;color:var(--ex-ink);font:16px/1.6 Arial,Helvetica,sans-serif;overflow-wrap:anywhere}.bex *{box-sizing:border-box}.bex [hidden]{display:none!important}.bex h2{font-size:clamp(26px,3vw,36px);line-height:1.18;margin:9px 0 15px}.bex h3{font-size:21px;line-height:1.35;margin:0 0 12px}.bex h4{font-size:17px;line-height:1.4;margin:12px 0 7px}.bex p{margin:10px 0 16px}.bex a{color:#174c75;text-decoration:underline;text-underline-offset:3px}.bex :focus-visible{outline:3px solid #ab3d10;outline-offset:4px}.bex button,.bex select{font:700 14px/1.35 Arial,sans-serif;min-height:44px;border:1px solid #b7c8d5;border-radius:7px;padding:11px 14px;background:white;color:var(--ex-ink);cursor:pointer}.bex select{font-size:15px;width:100%;max-width:100%;white-space:normal;margin:7px 0 16px}.bex button:hover{border-color:var(--ex-ink);background:#edf2f6}.bex button[aria-pressed=true]{background:var(--ex-ink);border-color:var(--ex-ink);color:white}.bex button:disabled{opacity:.55;cursor:default}.bex label{font-weight:700}.bex input[type=range]{width:100%;min-height:32px;accent-color:var(--ex-ink);cursor:pointer}.bex-header{display:flex;align-items:flex-start;gap:28px;justify-content:space-between}.bex-header>div{max-width:960px}.bex-header img{object-fit:contain;max-width:120px;height:100px}.bex-eyebrow{color:#7b3f28;font-size:12px;letter-spacing:.07em;text-transform:uppercase;font-weight:700}.bex-status{display:flex;flex-wrap:wrap;gap:9px 15px;border-block:1px solid var(--ex-line);padding:12px 0;margin:10px 0 24px;font-size:12px}.bex-status span{padding-left:12px;border-left:1px solid var(--ex-line)}.bex-view-label{display:block}.bex-view-label small{font-weight:400;display:block}.bex-intro{margin:10px 0 18px}.bex-workbench{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:20px;align-items:start}.bex-visual{min-width:0}.bex-toolbar,.bex-controls{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:12px}.bex-toolbar button:first-child{background:var(--ex-ink);color:white}.bex-toolbar button:last-child{margin-left:auto}.bex-stage{position:relative;aspect-ratio:16/9;background:#f3f5f6;border:1px solid var(--ex-line);border-radius:12px;overflow:hidden}.bex-stage[data-render=3d] .bex-still,.bex-stage[data-render=3d] .bex-empty{display:none}.bex-stage[data-render=2d] .bex-webgl{visibility:hidden;pointer-events:none}.bex-stage[data-render=2d] .bex-mark{display:none}.bex-still{width:100%;height:100%;object-fit:contain;display:block}.bex-empty{padding:25px;position:absolute;inset:0;display:flex;align-items:center;background:#f5f7f9}.bex-webgl{position:absolute;inset:0}.bex-webgl canvas{width:100%;height:100%;display:block}.bex-state-label{position:absolute;top:10px;left:10px;max-width:calc(100% - 20px);font-size:11px;line-height:1.4;padding:6px 9px;background:#fffffff0;border:1px solid #d3dce2;border-radius:5px;pointer-events:none}.bex-mark{position:absolute;bottom:12px;right:12px;width:26px;height:26px;opacity:.5;pointer-events:none}.bex-caption,.bex-muted{font-size:12px;line-height:1.5;color:#456179}.bex-caption{margin:9px 0!important}.bex-view-warning,.bex-note{padding:10px 12px;border-left:3px solid #bc9c58;background:#fbf8ef;font-size:13px;line-height:1.5}.bex-section{display:flex;gap:7px;align-items:center;flex-wrap:wrap}.bex-section label{flex:1 1 220px;font-size:13px}.bex-section button{font-size:12px}.bex-side{background:#f4f6f8;border:1px solid var(--ex-line);border-top:4px solid var(--ex-accent);border-radius:8px;padding:17px;max-height:none;font-size:14px}.bex-side .bex-controls button{flex:1 1 100px;padding:8px;font-size:12px}.bex-side dl{margin:0}.bex-side dt{font-weight:700;margin:13px 0 3px}.bex-side dd{margin:0}.bex-sources{border-top:1px solid var(--ex-line);padding-top:10px;margin-top:16px}.bex-sources a{display:block;font-size:11px;line-height:1.45;margin:7px 0}.bex-state-section,.bex>section,.bex-reading,.bex-question,.bex-export{margin-top:28px;padding-top:23px;border-top:1px solid var(--ex-line)}.bex-state-buttons,.bex-services{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.bex-state-buttons button,.bex-services button{text-align:left;font-size:14px}.bex-state-buttons small,.bex-services small{display:block;font-size:11px;font-weight:400;margin-top:4px}.bex-services button{border-left:4px solid #65778b}.bex-services button[data-ex-service=electricity]{border-left-color:#45434c}.bex-services button[data-ex-service=gas]{border-left-color:#a88116}.bex-services button[data-ex-service=water]{border-left-color:#3188b3}.bex-services button[data-ex-service=drainage]{border-left-color:#94684b}.bex-services button[data-ex-service=comms]{border-left-color:#745994}.bex-evidence-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.bex-evidence-item{border:1px solid var(--ex-line);border-radius:7px;padding:14px;background:#fff}.bex-evidence-item h4{margin:0 0 6px}.bex-evidence-item small{display:block;color:#536879}.bex-evidence-item p{font-size:14px}.bex-evidence-item[data-kind=unresolved]{border-left:4px solid #8c643d}.bex details>summary{cursor:pointer;min-height:44px;padding:10px 0;font-weight:700}.bex details article{padding:18px 0;border-bottom:1px solid var(--ex-line)}.bex details article h3{font-size:19px}.bex-reading table{border-collapse:collapse;min-width:650px;width:100%;font-size:13px}.bex-reading th,.bex-reading td{border:1px solid var(--ex-line);padding:10px;text-align:left;vertical-align:top}.bex-reading th{background:#e9eff4}.bex-table-scroll{overflow-x:auto}.bex-tour{margin-top:22px;border:1px solid var(--ex-line);border-radius:8px;background:#f5f7f9;padding:16px}.bex-tour-head{display:flex;gap:15px;align-items:center;justify-content:space-between}.bex-tour-head h4{margin:0}.bex-tour-head small{font-size:11px}.bex-tour p{font-size:14px}.bex-tour>label{display:block;font-size:12px}.bex-tour output{display:block;font-variant-numeric:tabular-nums}.bex-live{font-size:12px;min-height:18px}.bex-dialog{max-width:1550px;width:calc(100vw - 24px);max-height:94vh;border:1px solid var(--ex-line);border-radius:12px;padding:20px}.bex-dialog::backdrop{background:#11283da8}.bex-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:18px}.bex-export-progress{font-size:13px}.bex-component-pin{position:absolute;z-index:2}.bex [data-ex-planned] p{font-size:12px}.bex [data-ex-planned] small{display:block}.bex-reading>ul{padding-left:22px}.bex-reading>ul li{margin:9px 0}.bex [data-ex-downloads] a{display:block;padding:12px 0}
@media(max-width:1050px){.bex-workbench{grid-template-columns:minmax(0,1fr)}.bex-side{display:block}.bex-side .bex-controls{max-width:350px}.bex-side .bex-sources{display:flex;flex-wrap:wrap;gap:7px 16px}.bex-side .bex-sources a{max-width:290px}.bex-side h3{margin-top:4px}.bex-header img{max-width:90px;height:80px}}
@media(max-width:600px){.bex{font-size:15px}.bex-header{gap:12px}.bex-header img{max-width:72px;height:70px}.bex-header h2{font-size:25px}.bex-eyebrow{font-size:10px}.bex-status{gap:8px;font-size:11px}.bex-status span{border:0;padding:0}.bex-state-buttons,.bex-services{grid-template-columns:repeat(2,minmax(0,1fr))}.bex-evidence-list{grid-template-columns:1fr}.bex button{font-size:12px;padding:9px}.bex-stage{aspect-ratio:4/3}.bex-state-label{font-size:9px;top:6px;left:6px}.bex-tour-head{align-items:flex-start}.bex-tour-head button{max-width:125px}.bex-controls{gap:5px}.bex-dialog{padding:12px}.bex-section button{flex:1 1 80px}.bex-toolbar button:last-child{margin-left:0}.bex-intro h3{font-size:18px}.bex-side{padding:14px}}
@media(prefers-reduced-motion:reduce){.bex *{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
.bex-context fieldset{min-width:0;border:1px solid #ced9e3;border-radius:7px;padding:13px;margin:14px 0;font-size:13px}.bex-context legend{font-weight:700;padding:0 7px}.bex-topic-example{border-top:1px solid #ced9e3;margin:28px 0;padding-top:25px}.bex-topic-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px}.bex-topic-cards>.bex-topic-card{margin:0;min-width:0;border:1px solid #ced9e3;border-radius:8px;overflow:hidden;background:#fff}.bex-topic-card img{width:100%;height:auto;aspect-ratio:16/9;object-fit:contain;display:block}.bex-topic-caption{padding:12px 15px;font-size:14px;line-height:1.5}.bex-topic-caption a{font-weight:700}.bex-topic-limit,.bex-topic-sources,.bex-topic-related{font-size:13px;line-height:1.5}.bex-topic-link{display:inline-block;min-height:44px;padding:10px 0}.bex-topic-sources a{margin-right:10px}@media(max-width:650px){.bex-topic-cards{grid-template-columns:1fr}}

.bex-topic-card>figcaption{padding:14px}

/* Keep clickable callouts on the perimeter; fine leaders connect to unchanged model anchors. */
.bex-model-labels{z-index:3}.bex-model-hotspot{max-width:48px;white-space:nowrap;line-height:1!important}.bex-model-leader{pointer-events:none}

/* Source-specific service-cover comparison, independent of the fictional 3D layout. */
.bex-depth-comparison{border:1px solid #ced9e3;border-radius:10px;padding:18px;margin:20px 0 25px;background:#fff;scroll-margin-top:20px}.bex-depth-comparison h3{margin:0 0 8px}.bex-depth-settings{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}.bex-depth-settings button{min-height:44px}.bex-depth-figure{margin:0}.bex-depth-image-link{display:block;border:1px solid #d4dfe7;border-radius:8px;overflow:hidden;background:#fff}.bex-depth-image-link img{display:block;width:100%;height:auto}.bex-depth-figure figcaption{font-size:13px;font-weight:700;margin:10px 0}.bex-depth-actions{display:flex;flex-wrap:wrap;gap:10px 20px;margin:8px 0 12px}.bex-depth-actions a{display:inline-flex;min-height:44px;align-items:center;font-size:13px;font-weight:700;text-underline-offset:3px}.bex-depth-scope{font-size:12px!important;color:#4c677c}.bex-depth-comparison>p{margin:8px 0}.bex-depth-footnote{font-size:12px!important}@media(max-width:600px){.bex-depth-comparison{padding:12px}.bex-depth-settings button{flex:1 1 90px}.bex-depth-actions{gap:4px 16px}}

.bex-depth-pan{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;border-radius:8px}.bex-depth-pan:focus-visible{outline:3px solid #ed1231;outline-offset:3px}.bex-depth-image-link{min-width:1100px}

.shared-model-caption{padding:13px 15px;margin:8px 0;background:#fff;border:1px solid #bdcedc;border-left:4px solid #d62945;border-radius:7px;min-height:140px}.shared-model-caption small{display:block;font:700 10px/1.5 Arial;color:#a31f35}.shared-model-caption strong{display:block;font:700 15px/1.5 Arial;color:#143f68;margin:4px 0}.shared-model-caption p{font:14px/1.6 Arial!important;margin:6px 0!important;color:#36556f}.shared-model-caption button{min-height:44px;font-size:12px;background:#143f68;color:white;border-color:#143f68}@media(max-width:600px){.shared-model-caption{min-height:185px}.shared-model-caption p{font-size:13px!important}}

.bex-stage{max-height:52dvh;scroll-margin-top:78px}

/* The complete explanation and controls belong immediately to their viewport. */
.bex-tour.shared-model-caption{margin:8px 0 16px;padding:17px;min-height:0;background:#fff;border-left:4px solid #ca332f}.bex-tour.shared-model-caption h4{font-size:19px;line-height:1.35}.bex-tour.shared-model-caption p[data-ex-tour-copy]{font-size:16px!important;line-height:1.65!important;min-height:5em}.bex-lesson-stages{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin:13px 0}.bex-lesson-stages button{text-align:left;white-space:normal;min-width:0}.bex-stage-sources{display:flex;flex-wrap:wrap;gap:5px 14px;margin-bottom:12px}.bex-stage-sources a{font-size:11px;line-height:1.5}.bex-tour .bex-lesson-mode{font-size:12px!important;color:#456179}.bex-learning-check{border-top:1px solid #ced9e3;margin-top:12px}.bex-learning-check .bex-controls button{flex:1 1 220px;text-align:left;background:#f3f6f8;color:#163c57}.bex-learning-check .bex-controls button[aria-pressed=true]{background:#163c57;color:#fff}.bex-tour.shared-model-caption button{background:white;color:#163c57;border-color:#b7c8d5}.bex-tour.shared-model-caption button[aria-pressed=true],.bex-tour.shared-model-caption [data-ex-tour=play]{background:#163c57;color:white}.bex-tour.shared-model-caption [data-ex-check-feedback]{font-size:14px!important}@media(max-width:600px){.bex-tour.shared-model-caption{padding:13px}.bex-tour.shared-model-caption p[data-ex-tour-copy]{font-size:15px!important;min-height:8em}.bex-lesson-stages{grid-template-columns:repeat(2,minmax(0,1fr))}.bex-tour-head{flex-wrap:wrap}.bex-tour-head button{max-width:none}.bex-stage{aspect-ratio:4/3;min-height:240px}}
