/* One reading hierarchy across the sequence, floor models and source drawings. */
.unified-explorer {--head:76px;--nav:50px;--side:390px;font-family:system-ui,-apple-system,sans-serif}
.unified-explorer .masthead {position:fixed;padding:0 26px}
.unified-explorer .masthead-right {gap:14px}
.unified-explorer .masthead .edition {display:none}
#explorer-nav {position:fixed;inset:var(--head) 0 auto;height:var(--nav);display:flex;align-items:stretch;gap:24px;padding:0 28px;background:#0c151d;border-bottom:1px solid var(--line);z-index:12;overflow-x:auto}
#explorer-nav a {display:flex;align-items:center;flex-shrink:0;padding:0 2px;text-decoration:none;font-size:14px;color:var(--muted);border-bottom:3px solid transparent}
#explorer-nav a[aria-current] {color:var(--ink);border-bottom-color:var(--accent)}
.unified-explorer #workspace-mode {display:none}
.unified-explorer #experience {top:calc(var(--head) + var(--nav))}
.unified-explorer #stage-card {padding:22px 24px}
.unified-explorer .chapter-meta {font-size:12px;letter-spacing:.03em;gap:12px;margin-bottom:18px}
.unified-explorer #stage-card h1,.unified-explorer #stage-card h2 {font-size:30px;line-height:1.15}
.unified-explorer #stage-card-content>p {font-size:16px;line-height:1.6}
.unified-explorer button,.unified-explorer select,.unified-explorer summary {font-family:inherit}
.unified-explorer button,.unified-explorer select {min-height:40px}
.unified-explorer select {font-size:14px}
.unified-explorer select:focus-visible {outline:2px solid var(--accent);outline-offset:3px}
.unified-explorer .floor-views {flex-wrap:wrap;margin:12px 0}
.unified-explorer .floor-views button {font-size:14px;min-width:80px;padding:8px}
.unified-explorer .floor-layers {font-size:14px;gap:6px 12px;margin:14px 0}
.unified-explorer .floor-layers label {min-height:36px}
.unified-explorer .floor-layers input {width:17px;height:17px}
.unified-explorer details {margin:16px 0;padding:14px 0}
.unified-explorer details summary {font-size:14px;color:var(--accent)}
.unified-explorer details p {font-size:14px;line-height:1.6}
.unified-explorer .damage-key,.unified-explorer #damage-status {font-size:14px;line-height:1.5}
.unified-explorer #floor-picker {margin:12px 0 16px;grid-template-columns:1fr 1fr}
.unified-explorer #floor-picker label {font-size:14px;letter-spacing:0}
.journey-link {display:block;padding:12px 14px;border:1px solid #52707f;text-decoration:none;color:var(--accent);font-size:14px;line-height:1.4;margin:12px 0;background:#152b36}
.journey-link:hover {background:#203d49}
.secondary-links {display:flex;flex-wrap:wrap;gap:12px;font-size:14px;margin:14px 0}
.sequence-intro {font-size:14px;line-height:1.55;color:var(--muted)}
.unified-explorer:not(.north-mode) #sequence-heading {display:none}
.explorer-loading #floor-picker,.explorer-loading #floor-inspector,.explorer-loading #inspection-options,.explorer-loading #evidence-panel,.explorer-loading #chapter-source,.explorer-loading #transport,.explorer-loading .model-tools,.explorer-loading #clock-overlay {visibility:hidden}
#sequence-source-open {width:100%;text-align:left;padding:8px 12px;color:var(--accent);margin-bottom:12px}
#sequence-view-picker {display:none}
.north-mode #sequence-view-picker {display:block;position:absolute;bottom:96px;left:24px;font-size:13px;color:var(--muted)}
#sequence-camera-inline {min-width:170px;background:#10212df5}
.unified-explorer.north-mode #north-controls {margin:0;padding:0;border:0;background:none}
.unified-explorer.north-mode #stage-card-content p {font-size:16px;line-height:1.55}
.unified-explorer.north-mode #floor-inspector,.unified-explorer.north-mode #inspection-options,.unified-explorer.north-mode #floor-heading {display:none!important}
.unified-explorer #north-controls .sequence-tower-label {display:block;font-size:14px;margin-bottom:16px}
.unified-explorer #north-controls p,.unified-explorer #north-controls summary,.unified-explorer #north-controls button,.unified-explorer #north-controls .sag-source-note {font-size:14px;line-height:1.5}
.unified-explorer #north-controls .north-presentations button {padding:9px}
.sequence-case {display:block;font-size:14px;padding:12px 0;border-top:1px solid var(--line)}
.sequence-case small {display:block;font-size:13px;color:var(--muted);line-height:1.5;margin-top:8px}
.sequence-case select {margin-top:7px}
.unified-explorer .north-metrics {grid-template-columns:1fr 1fr 1fr;gap:12px}
.unified-explorer .north-metrics div:last-child {grid-column:auto}
.unified-explorer .north-metrics strong {font-size:20px}
.unified-explorer .north-metrics span {font-size:13px;line-height:1.4;display:block;margin-top:5px}
.unified-explorer #north-phase-note {padding:14px 0;margin:0;min-height:0}
.unified-explorer.north-mode #transport {height:126px;padding:12px 24px}
.unified-explorer.north-mode #experience {bottom:126px}
.unified-explorer #sequence-steps {display:none}
.unified-explorer.north-mode #sequence-steps {display:flex;margin:0 0 8px;gap:8px;flex-wrap:nowrap}
.unified-explorer #sequence-steps button {flex:1;font-size:14px;min-height:40px;padding:7px}
.unified-explorer .pace-note {font-size:12px}
.unified-explorer #progress-label {font-size:13px}
.unified-explorer #scene-state-note {position:absolute;left:24px;top:82px;padding:8px 12px;max-width:calc(100% - 100px);background:#10212def;border-left:2px solid var(--amber);font-size:13px;line-height:1.45;color:#e0c9a6;pointer-events:none}
.unified-explorer:not(.north-mode) #scene-state-note {display:none}
.unified-explorer.north-mode #clock-overlay {display:none}
.unified-explorer #camera-tools button {width:40px;height:40px}
.unified-explorer #view-title {font-size:15px}
.floor-stepper {display:flex;gap:8px;margin:0 0 14px}
.floor-stepper button {flex:1;font-size:14px}
.building-map {border-left:3px solid #567c8e;padding-left:12px;margin:16px 0}
.building-map button {display:flex;width:100%;justify-content:space-between;text-align:left;align-items:center;border:0;border-bottom:1px solid var(--line);padding:8px;font-size:14px;gap:10px}
.building-map button span {font:12px ui-monospace,monospace;color:var(--muted);white-space:nowrap}
.building-map button[aria-pressed=true] {background:#274350;color:#e3f5fb;border-left:2px solid var(--accent)}
.sublevel-links {display:flex;gap:6px;flex-wrap:wrap;margin:10px 0}
.sublevel-links a {display:grid;place-items:center;min-width:40px;min-height:40px;border:1px solid var(--line);text-decoration:none;font-size:14px;flex:1}
.sublevel-links a[aria-current] {background:#274350;border-color:var(--accent)}
.map-note {font-size:13px;line-height:1.5;color:var(--muted)}
.floor-separation-note {font-size:13px;color:var(--muted)}
.unified-explorer.detail-page>header {height:var(--head);padding:0 28px}
.unified-explorer.detail-page>main {margin-top:var(--nav);height:calc(100dvh - var(--head) - var(--nav));grid-template-columns:390px 1fr}
.unified-explorer.detail-page aside {padding:22px 24px}
.unified-explorer.detail-page #detail-source-controls {padding:12px 0;border-bottom:1px solid var(--line)}
.unified-explorer.detail-page #detail-source-choice {margin-bottom:12px}
.unified-explorer.detail-page #detail-source-stage {padding:16px 16px 72px}
.unified-explorer.detail-page #detail-source-image {height:100%}
.unified-explorer.detail-page #detail-source-caption {margin:8px 0}
#source-plan-tools {position:absolute;bottom:16px;right:16px;display:flex;gap:6px;padding:6px;background:#10212df5;border:1px solid var(--line);z-index:2}
#source-plan-tools button {background:#132733;min-width:40px}
.unified-explorer .viewport-heading {left:24px;top:20px;right:20px}
@media(min-width:1550px){.unified-explorer {--side:430px}}
@media(max-width:1000px){.unified-explorer {--side:350px}.unified-explorer .wordmark{font-size:12px}.unified-explorer .masthead-right{gap:4px}}
@media(max-width:760px){
 .unified-explorer {--head:64px;--nav:48px;--side:100%}
 .unified-explorer .masthead {padding:0 14px}.unified-explorer .wordmark{font-size:10px}.unified-explorer .wordmark small{font-size:9px}.unified-explorer .masthead-right #reference-open{font-size:12px;width:110px}
 #explorer-nav {gap:20px;padding:0 16px}#explorer-nav a{font-size:14px}
 .unified-explorer #experience {top:calc(var(--head) + var(--nav))}
 .unified-explorer #scene-wrap,.unified-explorer.floor-mode #scene-wrap {height:40%;min-height:205px}
 .unified-explorer #stage-card {padding:18px 20px}
 .unified-explorer.north-mode #experience {bottom:122px}
 .unified-explorer.north-mode #transport {height:122px;padding:8px 12px}
 .unified-explorer #sequence-steps {gap:4px!important}.unified-explorer #sequence-steps button{font-size:12px;padding:5px 2px}
 .unified-explorer #scene-state-note{left:16px;top:58px;right:16px;max-width:none;font-size:12px;padding:6px 8px}
 .unified-explorer #camera-tools {bottom:25px;right:12px;gap:4px}
 .unified-explorer #camera-tools button {width:36px;min-height:36px;height:36px}
 .unified-explorer.north-mode #sequence-view-picker {bottom:24px;left:16px;font-size:0}
 .unified-explorer #sequence-camera-inline {font-size:12px;min-width:0;width:164px;min-height:36px;height:36px;margin:0;padding:4px}
 .unified-explorer.north-mode #model-scope {display:none}
 .unified-explorer .viewport-heading{left:16px;top:10px;right:12px}.unified-explorer .viewport-heading .eyebrow{display:none}
 .unified-explorer #model-scope {font-size:10px;bottom:6px;max-width:calc(100% - 24px);line-height:1.25}
 .unified-explorer #view-title {font-size:13px}.unified-explorer #resume-tour{font-size:12px;padding:4px;flex-shrink:0}
 .unified-explorer .transport-main {gap:10px;height:52px}.unified-explorer #progress-label{font-size:12px}
 .unified-explorer.detail-page>main {height:auto;display:flex;margin-top:var(--nav)}
 .unified-explorer.detail-page>header {padding:0 16px}.unified-explorer.detail-page>header strong {font-size:12px}
 .unified-explorer.detail-page #detail-stage {height:42dvh;min-height:280px}
}
@media(max-height:600px) and (max-width:760px){.unified-explorer{overflow:auto}.unified-explorer #experience{position:relative;top:auto;margin-top:calc(var(--head) + var(--nav));padding-bottom:126px;bottom:auto;overflow:visible}.unified-explorer #scene-wrap{height:260px;flex:none}.unified-explorer #stage-card{overflow:visible}.unified-explorer.north-mode #experience{bottom:auto}.unified-explorer #transport{position:fixed}}

/* The model owns the workspace; supporting material opens in one inspector. */
.model-workspace {--head:52px;--nav:44px;--toolbar:54px;--side:360px;overflow:hidden}
.model-workspace .masthead {padding:0 20px}
.model-workspace .wordmark {font-size:11px;letter-spacing:.1em;gap:12px}
.model-workspace .wordmark small {display:none}
.model-workspace .mark {font-size:32px}
.model-workspace #reference-open {font-size:13px;min-height:36px}
.model-workspace #explorer-nav {padding:0 20px;gap:24px;overflow:visible}
.model-workspace #explorer-nav a {font-size:13px}
#inspector-toggle {margin:5px 0 5px auto;padding:0 12px;min-height:34px;font-size:13px;color:var(--accent);white-space:nowrap;flex-shrink:0}
#inspector-toggle[aria-expanded=true] {background:#233d4b;border-color:var(--accent)}
#model-toolbar {position:fixed;top:calc(var(--head) + var(--nav));inset-inline:0;height:var(--toolbar);z-index:11;display:flex;align-items:center;gap:16px;padding:0 20px;border-bottom:1px solid var(--line);background:#101e28}
.model-workspace #model-toolbar #view-title {font-size:13px;flex:1;line-height:1.3}
.model-workspace #model-toolbar #resume-tour {order:5;white-space:nowrap;font-size:12px;min-height:34px;padding:6px}
.model-workspace.north-mode #resume-tour {display:none}
.model-workspace #model-toolbar label {display:flex;align-items:center;gap:8px;font-size:12px;white-space:nowrap;color:var(--muted)}
.model-workspace #model-toolbar select {margin:0;min-height:36px;font-size:13px;padding:6px 8px;width:auto}
.model-workspace #sequence-heading {margin:0}
.model-workspace.north-mode #sequence-view-picker {display:flex;position:static;font-size:12px}
.model-workspace #follow-camera {font-size:12px;min-height:36px;padding:6px 10px;white-space:nowrap}
.model-workspace #follow-camera[aria-pressed=true] {background:#284650;border-color:#87b6c2;color:#d9eff3}
.model-workspace:not(.north-mode) #follow-camera {display:none}
.model-workspace #experience {position:fixed;top:calc(var(--head) + var(--nav) + var(--toolbar));display:grid;grid-template-columns:minmax(0,1fr);margin:0;padding:0;overflow:hidden}
.model-workspace.inspector-open #experience {grid-template-columns:var(--side) minmax(0,1fr)}
.model-workspace #scene-wrap,.model-workspace.floor-mode #scene-wrap {height:100%;min-height:0;order:0;border:0}
.model-workspace #stage-card {height:100%;min-height:0;order:0;padding:18px 22px}
.inspector-close {display:block;margin:0 0 18px auto;font-size:12px;min-height:32px!important;padding:5px 9px;color:var(--muted)}
.model-workspace #stage-card .chapter-meta {margin-bottom:14px;font-size:10px}
.model-workspace #stage-card h1,.model-workspace #stage-card h2 {font-size:28px}
.model-workspace:not(.show-model-labels) #scene-labels {display:none}
.model-workspace #canvas-notes>*:not(summary),.model-workspace #view-tools>*:not(summary) {position:static;inset:auto;transform:none;max-width:none;width:auto;pointer-events:auto;margin:12px 0;font-size:13px;line-height:1.5}
.model-workspace #canvas-notes #model-scope {display:block;line-height:1.6}
.model-workspace #canvas-notes #model-legend {display:flex;gap:12px}
.model-workspace #canvas-notes #motion-caption {display:block}
.model-workspace #view-tools #camera-tools {display:flex;flex-wrap:wrap;gap:8px}
.model-workspace #view-tools .model-tools {max-width:none}
.model-workspace .annotation-control {display:flex;align-items:center;gap:8px;color:var(--muted)}
.model-workspace .annotation-control input {width:17px;height:17px;accent-color:var(--accent)}
.model-workspace.north-mode #experience {bottom:110px}
.model-workspace.north-mode #transport {height:110px;padding:8px 20px}
.model-workspace #transport .transport-main {height:45px}
.model-workspace.north-mode #sequence-steps {gap:6px;margin:0 0 5px}
.model-workspace #sequence-steps button {min-height:36px;font-size:13px}
.model-workspace #model-toolbar #floor-picker {display:flex;margin:0;gap:14px}
.model-workspace #model-toolbar .floor-views {margin:0;flex-wrap:nowrap;gap:4px}
.model-workspace #model-toolbar .floor-views button {font-size:12px;min-width:0;white-space:nowrap;min-height:36px;padding:6px 9px}
.model-workspace #model-toolbar:has(#floor-picker) #view-title {display:none}
.model-workspace.detail-page>header {position:fixed;inset:0 0 auto;z-index:12;height:var(--head);padding:0 20px;background:#0c151d}
.model-workspace.detail-page>header strong {font-size:12px}
.model-workspace.detail-page>header>a {display:none}
.model-workspace.detail-page>main {position:fixed;inset:calc(var(--head) + var(--nav) + var(--toolbar)) 0 0;margin:0;height:auto;display:grid;grid-template-columns:minmax(0,1fr)}
.model-workspace.detail-page.inspector-open>main {grid-template-columns:var(--side) minmax(0,1fr)}
.model-workspace.detail-page aside {background:#101e28;height:100%;min-height:0;padding:18px 22px}
.model-workspace.detail-page #detail-stage {order:0;height:100%;min-height:0;overflow:hidden}
.model-workspace.detail-page #detail-source-stage {padding:12px}
.model-workspace.detail-page #detail-source-caption {display:none}
.model-workspace.detail-page #detail-choice {max-width:350px;flex:1;min-width:0}
.model-workspace.detail-page #detail-sublevels {margin:0;flex-wrap:nowrap;gap:4px}
.model-workspace.detail-page #detail-sublevels a {min-height:36px;min-width:36px;font-size:13px}
.model-workspace #source-plan-tools {position:static;margin-left:auto;flex-shrink:0;padding:0;border:0;background:none;gap:4px}
.model-workspace #source-plan-tools button {min-height:36px;font-size:12px;padding:6px 8px}
@media(max-width:1050px){
 .model-workspace #model-toolbar #view-title {display:none}
 .model-workspace #model-toolbar #sequence-heading {margin-right:auto}
 .model-workspace #explorer-nav {gap:16px}
}
@media(max-width:760px){
 .model-workspace {--head:44px;--nav:80px;--toolbar:88px;--side:100%}
 .model-workspace .masthead {padding:0 12px}.model-workspace .wordmark{font-size:10px;gap:8px}.model-workspace .mark{font-size:28px}
 .model-workspace .masthead-right #reference-open {font-size:12px;width:auto;max-width:150px;padding:6px}
 .model-workspace #explorer-nav {display:grid;grid-template-columns:1fr 1fr 1fr;padding:0 12px;gap:0 10px;overflow:visible}
 .model-workspace #explorer-nav a {font-size:12px;min-width:0;justify-content:center;white-space:nowrap;min-height:40px}
 .model-workspace #explorer-nav a[data-destination=story] {grid-column:1;grid-row:2;justify-content:flex-start}
 .model-workspace #inspector-toggle {grid-column:2/4;grid-row:2;justify-self:end;margin:3px 0;min-height:34px;font-size:12px}
 #model-toolbar {padding:6px 12px;gap:6px 10px;flex-wrap:wrap;align-content:center}
 .model-workspace #model-toolbar #sequence-heading {width:calc(52% - 5px);margin:0}
 .model-workspace #model-toolbar #sequence-view-picker {width:calc(48% - 5px)}
 .model-workspace #model-toolbar #sequence-heading,.model-workspace #model-toolbar #sequence-view-picker {font-size:0;gap:0}
 .model-workspace #model-toolbar #sequence-heading select,.model-workspace #model-toolbar #sequence-view-picker select {width:100%;font-size:12px;min-width:0}
 .model-workspace #follow-camera {margin-left:auto;min-height:30px;font-size:12px;padding:4px 9px}
 .model-workspace.north-mode #experience {bottom:105px}
 .model-workspace.north-mode #transport {height:105px;padding:6px 12px}
 .model-workspace #sequence-steps button {font-size:11px;min-height:36px;padding:5px 2px}
 .model-workspace .transport-buttons #play {min-width:64px;font-size:15px}
 .model-workspace #experience,.model-workspace.inspector-open #experience {display:block;overflow:hidden;position:fixed;margin:0;padding:0}
 .model-workspace #stage-card,.model-workspace.detail-page aside {position:absolute;inset:0;z-index:8;width:100%;overflow:auto;border:0;box-shadow:0 12px 24px #0008}
 .model-workspace #scene-wrap {width:100%;height:100%;min-height:0}
 .model-workspace #model-toolbar #floor-picker {width:100%;gap:12px}
 .model-workspace #model-toolbar #floor-picker label {flex:1}
 .model-workspace #model-toolbar #floor-picker select {flex:1;min-width:0}
 .model-workspace #model-toolbar .floor-views {flex:1}
 .model-workspace #model-toolbar .floor-views button {font-size:11px;padding:6px;min-height:32px}
 .model-workspace #model-toolbar #resume-tour {min-height:32px;padding:4px;font-size:11px}
 .model-workspace.detail-page>main,.model-workspace.detail-page.inspector-open>main {display:block}
 .model-workspace.detail-page #detail-stage {width:100%;height:100%;min-height:0}
 .model-workspace.detail-page #detail-choice {max-width:none;flex:auto;width:100%;height:32px;min-height:32px}
 .model-workspace.detail-page #detail-sublevels {gap:3px;flex:1}
 .model-workspace.detail-page #detail-sublevels a {min-width:28px;min-height:32px;font-size:12px}
 .model-workspace #source-plan-tools {gap:2px}
 .model-workspace #source-plan-tools button {min-width:28px;min-height:32px;font-size:11px;padding:5px}
}
@media(max-height:560px) and (max-width:760px){
 .model-workspace {--head:38px;--nav:40px;--toolbar:44px}
 .model-workspace #explorer-nav {display:flex;gap:12px}
 .model-workspace #explorer-nav a {font-size:11px;min-height:36px}
 .model-workspace #explorer-nav a[data-destination=story] {display:none}
 .model-workspace #inspector-toggle {margin:3px 0 3px auto;min-height:30px;font-size:11px}
 .model-workspace #model-toolbar {flex-wrap:nowrap}
 .model-workspace #model-toolbar #sequence-heading,.model-workspace #model-toolbar #sequence-view-picker {width:auto}
 .model-workspace #model-toolbar #floor-picker {width:auto}
 .model-workspace.detail-page #detail-choice {width:180px;flex:1}
 .model-workspace.north-mode #transport {height:96px;padding:4px 12px}
 .model-workspace.north-mode #experience {bottom:96px}
}
.model-workspace #sequence-cutaway {font-size:12px;min-height:36px;padding:6px 10px;white-space:nowrap}
.model-workspace #sequence-cutaway[aria-pressed=true] {background:#284650;border-color:#87b6c2;color:#d9eff3}
.model-workspace:not(.north-mode) #sequence-cutaway {display:none}
@media(max-width:760px){.model-workspace #sequence-cutaway{min-height:30px;padding:4px 9px}}
#model-loading {display:none}
.explorer-loading #model-loading {position:absolute;inset:0;display:grid;place-items:center;background:#0b141c;color:var(--muted);font-size:14px;z-index:3}
.nav-short {display:none}
.model-workspace #inspector-toggle {margin:0;min-height:34px}
.model-workspace #stage-card #reference-open {display:block;text-align:left;border:1px solid var(--line);width:100%;max-width:none;padding:8px 10px;margin-bottom:18px}
@media(max-width:760px){
 .model-workspace {--nav:40px}
 .model-workspace #explorer-nav {display:flex;justify-content:space-between;gap:12px}
 .model-workspace #explorer-nav a,.model-workspace #explorer-nav a[data-destination=story] {font-size:12px;display:flex;justify-content:center;min-height:40px;grid-area:auto}
 .model-workspace #explorer-nav .nav-full {display:none}
 .model-workspace #explorer-nav .nav-short {display:inline}
 .model-workspace #inspector-toggle {font-size:12px;padding:0 9px;min-height:32px}
}
.model-workspace.north-mode .annotation-control {display:none!important}
.model-workspace.floor-explorer:not(.assembly-view) #experience {bottom:0}
@media(max-width:760px){
 .model-workspace.floor-explorer #model-toolbar #resume-tour {font-size:0;padding:4px;min-width:30px}
 .model-workspace.floor-explorer #model-toolbar #resume-tour::after {content:'↺';font-size:18px}
}
@media(max-width:380px){.model-workspace .wordmark{font-size:9px;letter-spacing:.03em;gap:6px}.model-workspace .mark{font-size:24px}}

/* Two major chapters; inspection tools remain a single, compact destination. */
#explorer-nav {overflow:visible}
#explorer-nav .chapter-index {color:var(--accent);font-size:10px;margin-right:8px}
#explorer-nav #explore-menu {position:relative;margin:0 0 0 auto;padding:0;border:0;align-self:stretch}
#explore-menu>summary {height:100%;display:flex;align-items:center;gap:8px;cursor:pointer;color:var(--muted);font-size:13px;list-style:none;white-space:nowrap}
#explore-menu>summary::after {content:'⌄';font-size:16px}
#explore-menu>summary::-webkit-details-marker {display:none}
#explore-menu[open]>summary {color:var(--ink)}
#explore-menu .explore-links {position:absolute;top:100%;right:0;min-width:210px;display:grid;background:#101e28;border:1px solid var(--line);padding:8px;box-shadow:0 12px 30px #0008}
#explorer-nav #explore-menu a {display:flex;justify-content:flex-start;padding:10px 12px;min-height:44px;border:0;font-size:13px}
#explore-menu a:hover,#explore-menu a[aria-current] {background:#233d4b}
#construction-steps,#continue-day {display:none}
.model-workspace.construction-mode #construction-steps {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin-bottom:5px}
.model-workspace.construction-mode #construction-steps button {min-height:36px;font-size:13px;padding:5px 8px}
#construction-steps button[aria-pressed=true] {color:var(--ink);border-color:var(--accent);background:#284650}
.model-workspace.construction-mode #continue-day {display:block;white-space:nowrap;min-height:34px;padding:6px 12px;color:var(--accent);font-size:13px;margin-left:auto}
.model-workspace.construction-mode #model-toolbar #view-title {display:block;flex:1;min-width:0}
.model-workspace.construction-mode #transport {height:110px;padding:8px 20px}
.model-workspace.construction-mode #experience {bottom:110px}
.construction-mode #floor-picker,.construction-mode #floor-inspector,.construction-mode #damage-status,.construction-mode #download-mapping,.construction-mode .damage-key,.construction-mode #chapters,.construction-mode #sequence-steps,.construction-mode #damage-state,.construction-mode #sequence-heading,.construction-mode #sequence-view-picker {display:none!important}
.construction-mode #view-tools #bathtub-toggle {display:none}
.construction-mode #view-tools .annotation-control {display:none}
@media(max-width:760px){
 #explorer-nav .chapter-index {display:none}
 .model-workspace #explorer-nav {gap:18px;justify-content:flex-start}
 #explore-menu>summary {font-size:12px}
 .model-workspace.construction-mode {--toolbar:48px}
 .model-workspace.construction-mode #model-toolbar {flex-wrap:nowrap;gap:8px}
 .model-workspace.construction-mode #model-toolbar #resume-tour {display:none}
 .model-workspace.construction-mode #model-toolbar #view-title {font-size:12px}
 .model-workspace.construction-mode #continue-day {font-size:12px;padding:4px 8px}
 .model-workspace.construction-mode #transport {height:105px;padding:6px 12px}
 .model-workspace.construction-mode #experience {bottom:105px}
 .model-workspace.construction-mode #construction-steps {gap:4px}
 .model-workspace.construction-mode #construction-steps button {font-size:11px;padding:4px 2px}
 .construction-mode .transport-buttons #previous,.construction-mode .transport-buttons #next {display:none}
}
#section-story,#next-section {display:none}
.model-workspace.section-playback #section-story {display:flex;align-items:center;gap:18px;min-height:42px;margin-bottom:6px}
#section-story-copy {margin:0;font-size:14px;line-height:1.4;flex:1;color:#d0dce3;max-width:1100px}
#section-deep-dive {flex:none;font-size:13px;padding:5px 8px;min-height:32px;color:var(--accent);border:0;background:none}
.section-playback #next-section {display:block;flex:none;min-height:36px;padding:6px 12px;font-size:13px;color:var(--accent);margin-left:4px}
.model-workspace.section-playback #transport {height:156px;padding:8px 20px}
.model-workspace.section-playback #experience {bottom:156px}
.section-playback .pace-note,.section-playback #previous,.section-playback #next,.section-playback #continue-day {display:none!important}
.section-playback #play {min-width:135px}
@media(max-width:760px){
 .model-workspace.section-playback #transport {height:180px;padding:6px 12px}
 .model-workspace.section-playback #experience {bottom:180px}
 .model-workspace.section-playback #section-story {min-height:65px;gap:8px;margin-bottom:5px}
 #section-story-copy {font-size:13px;line-height:1.35}
 #section-deep-dive {font-size:12px;max-width:58px;padding:4px 0;line-height:1.4}
 .section-playback #next-section {min-height:34px;font-size:12px;padding:5px 8px;margin-left:0}
 .model-workspace.section-playback .transport-main {gap:10px}
 .model-workspace.section-playback #play {min-width:44px}
 .section-playback #progress-label {font-size:11px}
}

.model-workspace.detail-page #detail-sublevels button {min-height:36px;min-width:36px;padding:4px;font-size:13px}
.model-workspace.detail-page #detail-sublevels button[aria-pressed=true] {border-color:var(--accent);background:#284650}
@media(max-width:760px){.model-workspace.detail-page #detail-sublevels button {min-height:32px;min-width:28px;font-size:12px}}

/* A story section is a short explanation followed by an inspection hold. */
#construction-section-picker,#previous-section {display:none}
.model-workspace.construction-mode #construction-steps {grid-template-columns:repeat(6,minmax(0,1fr))}
.section-caption {flex:1;min-width:0}
#section-beat-title {display:block;font-size:12px;line-height:1.35;color:var(--accent);font-weight:600;margin-bottom:3px}
.section-playback #previous-section {display:block;flex:none;min-width:36px;min-height:36px;padding:5px;font-size:16px}
.section-playback #previous-section:disabled {opacity:.35}
.model-workspace.section-playback #transport {height:174px}
.model-workspace.section-playback #experience {bottom:174px}
.model-workspace.section-playback #section-story {min-height:62px}
@media(max-width:760px){
 .model-workspace.construction-mode #construction-steps {display:none}
 .model-workspace.construction-mode #construction-section-picker {display:block;width:100%;height:36px;margin:4px 0 7px;font-size:13px;background:#14232c;border:1px solid var(--line);color:var(--ink);padding:5px 10px}
 .model-workspace.section-playback #transport {height:192px}
 .model-workspace.section-playback #experience {bottom:192px}
 .model-workspace.section-playback #section-story {min-height:76px;align-items:flex-start}
 .section-playback #previous-section {min-width:30px;min-height:36px}
 .model-workspace.section-playback .transport-main {gap:7px}
 #section-beat-title {font-size:11px}
 #section-deep-dive {margin-top:16px}
}
@media(max-width:360px){
 .model-workspace.section-playback #transport {height:210px}
 .model-workspace.section-playback #experience {bottom:210px}
 .model-workspace.section-playback #section-story {min-height:92px}
}

/* Every chapter section is selectable; mobile uses a compact chapter index. */
#day-steps,#day-section-picker {display:none}
.model-workspace.construction-mode #construction-steps {grid-template-columns:repeat(8,minmax(0,1fr));gap:4px}
.model-workspace.construction-mode #construction-steps button {font-size:12px;padding:5px 3px}
.model-workspace.north-mode.section-playback #sequence-steps {display:none}
.model-workspace.north-mode.section-playback #day-steps {display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;margin-bottom:5px}
#day-steps button {min-height:36px;font-size:12px;padding:5px 3px}
#day-steps button[aria-pressed=true] {color:var(--ink);border-color:var(--accent);background:#284650}
@media(max-width:1100px){
 .model-workspace.construction-mode #construction-steps {display:none}
 .model-workspace.construction-mode #construction-section-picker {display:block;width:100%;height:36px;margin:4px 0 7px;font-size:13px;background:#14232c;border:1px solid var(--line);color:var(--ink);padding:5px 10px}
}
@media(max-width:760px){
 .model-workspace.north-mode.section-playback #day-steps {display:none}
 .model-workspace.north-mode.section-playback #day-section-picker {display:block;width:100%;height:36px;margin:4px 0 7px;font-size:13px;background:#14232c;border:1px solid var(--line);color:var(--ink);padding:5px 10px}
}

/* Content-sized transport: explanatory copy must never push controls offscreen. */
.model-workspace.section-playback #transport {height:auto;padding:8px 20px;max-height:calc(100dvh - var(--head) - var(--nav) - var(--toolbar) - 100px);overflow-y:auto;box-sizing:border-box}
.model-workspace.section-playback #experience {bottom:var(--story-transport-height,210px)}
.model-workspace.section-playback #section-story {min-height:0;gap:14px;padding:0 0 8px;align-items:flex-start}
.section-playback #section-story-copy {font-size:14px;line-height:1.45;margin:5px 0 0}
.beat-navigation {display:flex;align-items:center;gap:5px;min-width:0}
.beat-navigation #beat-picker {min-width:0;max-width:100%;flex:1;background:#12232d;color:var(--accent);border:1px solid var(--line);font-size:14px;line-height:1.3;height:34px;min-height:34px;margin:0;padding:4px 8px;text-overflow:ellipsis}
.beat-navigation button {flex:none;min-width:30px;min-height:34px;height:34px;padding:0 6px;font-size:21px;line-height:1}
.beat-navigation button:disabled {opacity:.3}
.section-playback #section-beat-title {display:none}
.section-playback #section-deep-dive {margin-top:0;min-height:34px;white-space:nowrap;font-size:14px}
.model-workspace.section-playback .transport-main {height:auto;min-height:40px}
.model-workspace.section-playback .progress-wrap {min-width:0}
@media(max-width:760px){
 .model-workspace.section-playback #transport {padding:6px 12px}
 .model-workspace.section-playback #section-story {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 8px}
 .section-playback .section-caption {display:contents}
 .section-playback .beat-navigation {grid-column:1;grid-row:1}
 .section-playback #section-story-copy {grid-column:1/-1;grid-row:2;margin:0}
 .section-playback #section-deep-dive {grid-column:2;grid-row:1;font-size:12px;padding:4px}
 .beat-navigation #beat-picker {font-size:14px;padding:4px;min-height:36px;height:36px}
 .beat-navigation button {min-width:24px;padding:0 3px}
 .model-workspace.section-playback #progress-label {display:none}
 .model-workspace.section-playback #play {min-width:40px;font-size:14px}

}
@media(max-height:500px) and (min-width:761px){
 .model-workspace.section-playback {--head:36px;--nav:34px;--toolbar:40px}
 .model-workspace.section-playback .masthead {height:var(--head)}
 .model-workspace.section-playback #inspector-toggle {min-height:30px;padding:4px 10px}
 .model-workspace.section-playback #explorer-nav a {font-size:12px}
 .model-workspace.section-playback #model-toolbar select,.model-workspace.section-playback #model-toolbar button {min-height:32px;height:32px;padding-block:3px}

 .model-workspace.section-playback #transport {padding-block:5px;max-height:calc(100dvh - var(--head) - var(--nav) - var(--toolbar) - 104px)}
 .model-workspace.section-playback .transport-main {min-height:36px}
 .model-workspace.section-playback #play,.model-workspace.section-playback #previous-section,.model-workspace.section-playback #next-section {height:36px;min-height:36px;padding-block:4px}

 .model-workspace.section-playback #section-story {padding-bottom:0}
 .model-workspace.section-playback #progress-label {display:none}
}
