/* One editorial stage, with the same reading rhythm across both chapters. */
.model-workspace.section-playback {--story-paper:#f0eae0;--story-rule:#2c3e47}
.model-workspace.section-playback #model-toolbar {background:#0d171e;padding-inline:24px;gap:20px;border-bottom-color:#22313a}
.model-workspace.construction-mode.section-playback #construction-steps {display:none}
.model-workspace.construction-mode.section-playback #construction-section-picker {display:block;flex:1;max-width:500px;width:auto;min-width:0;border:0;border-radius:0;background:none;margin:0;padding:0 24px 0 0;font-size:14px;height:44px;color:#c5d7df}
.model-workspace.construction-mode.section-playback #model-toolbar #view-title {display:none}
.model-workspace.section-playback #transport {padding:16px max(24px,calc((100vw - 1040px)/2)) 12px;background:#0c161d;border-top:1px solid var(--story-rule)}
.model-workspace.section-playback #section-story {display:block;padding:0 0 12px;margin:0}
.model-workspace.section-playback .section-caption {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 28px;align-items:center}
#story-kicker {grid-column:1/-1;grid-row:1;min-width:0;margin:0;color:#a3bbc6;font:10px/1.5 ui-monospace,Menlo,monospace;letter-spacing:.15em;text-transform:uppercase;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.model-workspace.section-playback #section-beat-title {display:block;grid-column:1/-1;grid-row:2;margin:0;color:var(--story-paper);font:400 clamp(23px,2.5vw,32px)/1.15 "Iowan Old Style",Baskerville,Georgia,serif;letter-spacing:-.025em;text-wrap:balance}
.model-workspace.section-playback #section-story-copy {grid-column:1/-1;grid-row:3;max-width:960px;margin:4px 0 0;color:#bccbd2;font-size:15px;line-height:1.55;text-wrap:pretty}
.model-workspace.section-playback .beat-navigation {grid-column:2;grid-row:1;gap:3px;max-width:290px}
.model-workspace.section-playback .beat-navigation #beat-picker {font-size:12px;min-height:30px;height:30px;border:0;border-radius:0;background:none;color:#a9c4d0;padding:0 4px}
.model-workspace.section-playback .beat-navigation button {min-width:28px;min-height:30px;height:30px;border:0;background:none;color:#a9c4d0}
.model-workspace.section-playback #section-deep-dive {display:none}
.model-workspace.section-playback #transport .transport-main {height:44px;min-height:44px;gap:14px}
.model-workspace.section-playback #transport .transport-main button {border:0;background:none;min-height:44px}
.model-workspace.section-playback #transport #play {background:#b3ccd5;color:#0b161e;border-radius:50%;width:40px;min-width:40px;height:40px;min-height:40px;padding:0}
.model-workspace.section-playback #play span,.model-workspace.section-playback #progress-label {display:none}
.model-workspace.section-playback #next-section {font-size:13px;white-space:normal;line-height:1.3;max-width:34%;padding-inline:0;text-align:right}
.model-workspace.section-playback #previous-section {min-width:28px;padding-inline:0}
.section-playback .progress-wrap {position:relative;padding-top:8px}
.section-playback #chapter-progress {display:block;width:100%;margin:0;accent-color:#b3ccd5}
#story-markers {position:absolute;top:0;left:7px;right:7px;height:5px;pointer-events:none}
#story-markers i {position:absolute;width:1px;height:4px;background:#5b717c}
#story-event {position:absolute;left:24px;top:20px;z-index:5;max-width:calc(100% - 48px);margin:0;pointer-events:none;color:#b8cbd4;font:11px/1.65 ui-monospace,Menlo,monospace;letter-spacing:.025em;background:#0d171ee6;padding:8px 12px;border-left:1px solid #819eaa}
#story-event strong {display:block;font-weight:400;color:#edf0ed;font-size:12px}
#story-event span {display:block}
#story-event small {display:block;font-size:10px;color:#8fa8b5}
#story-closing {margin:12px 0 0;padding:12px 0 0;border-top:1px solid var(--story-rule);font-size:13px;color:#becbd1;line-height:1.5}
#story-closing a {text-decoration:underline;text-underline-offset:4px;margin-right:20px;display:inline-block}
#story-closing p {margin:0 0 6px}
.model-workspace.towers-home #model-toolbar {display:none}
.model-workspace.towers-home #experience {top:calc(var(--head) + var(--nav))}
.model-workspace.towers-home #transport {padding:20px 24px 22px}
.model-workspace.towers-home .section-caption {display:block;text-align:center}
.model-workspace.towers-home #story-kicker {margin-bottom:10px;color:#a5bac3}
.model-workspace.towers-home #section-beat-title {display:block;font-size:clamp(30px,4vw,48px);margin-bottom:10px}
.model-workspace.towers-home #section-story-copy {max-width:660px;margin:0 auto;font-size:15px}
.model-workspace.towers-home #transport #play {width:auto;min-width:170px;border-radius:2px;padding:0 22px;font-size:13px}
.model-workspace.towers-home #play span {display:inline}
.model-workspace.towers-home #section-story {padding-bottom:18px}
@media(max-width:760px){
 .model-workspace.section-playback #model-toolbar {padding-inline:14px;gap:10px}
 .model-workspace.construction-mode.section-playback #construction-section-picker {font-size:13px;max-width:none}
 .model-workspace.section-playback #transport {padding:10px 14px 8px}
 .model-workspace.section-playback .section-caption {gap:5px 8px}
 .model-workspace.section-playback #story-kicker {font-size:9px;letter-spacing:.06em}
 .model-workspace.section-playback .beat-navigation {max-width:154px}
 .model-workspace.section-playback .beat-navigation #beat-picker {font-size:11px}
 .model-workspace.section-playback #section-beat-title {font-size:24px;line-height:1.14}
 .model-workspace.section-playback #section-story-copy {font-size:14px;line-height:1.45}
 .model-workspace.section-playback #section-story {padding-bottom:8px}
 .model-workspace.section-playback #transport .transport-main {gap:10px}
 #story-event {left:14px;top:12px;padding:5px 8px;max-width:calc(100% - 28px);font-size:10px}
 #story-event strong {font-size:11px}
 #story-event small {font-size:9px}
 .model-workspace.towers-home #transport {padding:16px 18px}
 .model-workspace.towers-home #section-beat-title {font-size:32px}
 .model-workspace.towers-home #story-kicker {margin-bottom:6px}
 .model-workspace.towers-home #section-story-copy {font-size:14px}
 #story-closing {font-size:12px;padding-top:8px;margin-top:8px}
}
@media(max-height:600px){
 .model-workspace.section-playback #transport {padding-block:6px}
 .model-workspace.section-playback #section-beat-title {font-size:21px}
 .model-workspace.section-playback #section-story-copy {font-size:13px;line-height:1.4}
 .model-workspace.section-playback #section-story {padding-bottom:4px}
 #story-event {top:6px;left:12px;padding:3px 8px;font-size:10px}
 #story-event small {display:none}
 .model-workspace.towers-home #section-beat-title {font-size:28px}
 .model-workspace.towers-home #section-story {padding-bottom:8px}
}
@media(prefers-reduced-motion:reduce){.section-playback * {animation:none!important}}

/* Keep the camera viewport stable while the section's captions change. */
.model-workspace.section-playback #section-beat-title {min-height:var(--story-title-height,0)}
.model-workspace.section-playback #section-story-copy {min-height:var(--story-copy-height,0)}
#day-evidence-open {top:auto;bottom:12px;right:18px;padding:6px 10px;background:#0d171ee6}
#scene-wrap:has(#day-evidence:not([hidden])) #story-event {visibility:hidden}
@media(max-width:760px){#day-evidence-open {top:auto;bottom:10px;right:14px;font-size:12px}}

/* Navigation opens on demand; the model owns the space below the masthead. */
.model-workspace.story-shell {--nav:0px!important;--toolbar:0px!important}
.model-workspace.story-shell #experience {top:var(--head)}
/* Keep the header, stage and footer inside the current browser viewport.
   The safe bottom edge excludes Android's gesture bar when Chrome retracts. */
.model-workspace.story-shell.section-playback {
 --story-viewport-height:100vh;
 position:fixed;
 inset:0 0 auto;
 height:calc(var(--story-viewport-height) - env(safe-area-inset-bottom,0px));
 display:grid;
 grid-template-rows:var(--head) minmax(0,1fr) auto;
 overflow:hidden;
}
@supports(height:100dvh){
 .model-workspace.story-shell.section-playback {--story-viewport-height:100dvh}
}
.model-workspace.story-shell.section-playback>.masthead {position:relative;inset:auto;grid-row:1;min-width:0}
.model-workspace.story-shell.section-playback #experience {position:relative;inset:auto;grid-row:2;min-height:0}
.model-workspace.story-shell.section-playback #transport {
 position:relative;
 inset:auto;
 grid-row:3;
 display:flex;
 flex-direction:column;
 min-height:0;
 overflow:hidden;
 max-height:calc(var(--story-viewport-height) - env(safe-area-inset-bottom,0px) - var(--head) - 100px);
}
.model-workspace.story-shell.section-playback #section-story {flex:0 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}
.model-workspace.story-shell.section-playback #transport .transport-main {flex:none}
.model-workspace.story-shell.section-playback:has(#day-evidence.is-exploring:not([hidden])) #experience {inset:auto}
.story-shell #story-menu {position:relative;margin-left:auto}
#story-menu>summary {display:flex;align-items:center;gap:12px;min-height:44px;padding:0 4px;list-style:none;cursor:pointer;font-size:13px;color:#c1d1d9}
#story-menu>summary::-webkit-details-marker {display:none}
#story-menu>summary span {font-size:16px;color:#9bb4c0}
.story-menu-panel {position:fixed;top:calc(var(--head) + 6px);right:16px;width:min(370px,calc(100vw - 28px));max-height:calc(100dvh - env(safe-area-inset-bottom,0px) - var(--head) - 20px);overflow:auto;padding:18px;background:#101d26;border:1px solid #344953;box-shadow:0 18px 48px #0006;text-align:left}
.story-menu-label {font:10px/1.5 ui-monospace,Menlo,monospace;letter-spacing:.1em;text-transform:uppercase;color:#96aeb9;margin:0 0 10px}
.model-workspace.story-shell #explorer-nav {position:static;inset:auto;height:auto;display:grid;grid-template-columns:1fr 1fr;gap:2px 12px;padding:0 0 12px;border:0;background:none;overflow:visible}
.model-workspace.story-shell #explorer-nav a {justify-content:flex-start;border:0;min-height:38px;height:auto;padding:6px 0;white-space:normal;font-size:13px;line-height:1.4}
.model-workspace.story-shell #explorer-nav a[aria-current] {color:#eef2ef;text-decoration:underline;text-underline-offset:5px;background:none}
.model-workspace.story-shell #explorer-nav a[aria-current]::after {display:none}
.model-workspace.story-shell #model-toolbar {position:static;inset:auto;width:100%;height:auto;display:flex;flex-direction:column;align-items:stretch;gap:8px;padding:12px 0;margin:0;border:0;border-top:1px solid #30434d;background:none}
.model-workspace.story-shell.towers-home #model-toolbar {display:none}
.model-workspace.story-shell #model-toolbar #construction-section-picker {width:100%;max-width:none;flex:none;min-height:40px;height:40px;padding:0 20px 0 0;margin:0;font-size:13px}
.model-workspace.story-shell #model-toolbar #sequence-heading {display:flex;width:100%;margin:0}
.model-workspace.story-shell.construction-mode #model-toolbar #sequence-heading {display:none}
.model-workspace.story-shell #model-toolbar #sequence-tower {width:100%;max-width:none;min-height:40px;height:40px;padding:0 20px 0 0;font-size:13px}
.model-workspace.story-shell #model-toolbar #day-section-picker {width:100%;max-width:none;margin:0;min-height:40px;height:40px;padding:0 20px 0 0;font-size:13px}
.model-workspace.story-shell #day-view-options {margin:0}
.story-shell #day-view-options>summary {font-size:13px;width:auto;justify-content:flex-start;min-height:40px}
.story-shell #day-view-options>summary::after {content:'⌄';font-size:13px;letter-spacing:0;margin-left:auto}
.story-shell .day-view-controls {position:static;inset:auto;min-width:0;box-shadow:none;background:none;padding:0;gap:8px}
.model-workspace.story-shell #model-toolbar #sequence-view-picker {width:100%;flex-wrap:wrap;font-size:12px}
.model-workspace.story-shell #model-toolbar #resume-tour {display:inline-flex;align-items:center;align-self:flex-start;margin:0;padding:0;min-height:38px}
.model-workspace.story-shell #inspector-toggle {display:block;border:0;padding:6px 0;margin:6px 0 0;font-size:13px;min-height:40px;text-align:left}
.story-guide-choice {display:none;align-items:center;gap:10px;min-height:40px;font-size:13px;color:#b8cbd5}
.north-mode .story-guide-choice {display:flex}
.story-guide-choice input {width:16px;height:16px;accent-color:#a5c5d4;margin:0}
.story-upper-choice {display:flex;align-items:center;gap:10px;min-height:40px;font-size:13px;color:#b8cbd5}
.story-upper-choice input {width:16px;height:16px;accent-color:#a5c5d4;margin:0;flex-shrink:0}
.story-shell:not(.show-story-guides) .day-building-locator {display:none}
.story-shell #story-event {position:static;inset:auto;max-width:none;padding:12px 0 0;margin:12px 0 0;border:0;border-top:1px solid #30434d;background:none;letter-spacing:0}
.story-shell #story-event strong {font-size:11px}
.story-shell #story-event small {display:block}
.model-workspace.story-shell.section-playback #transport {padding-top:8px}
.model-workspace.story-shell.section-playback #section-story {padding-bottom:6px}
.story-shell #transport #day-evidence-open {position:static;inset:auto;font-size:12px;padding:0;min-height:40px;height:40px;border:0;background:none;white-space:nowrap;text-decoration:none;color:#a9c4d0}
.story-shell #transport #day-evidence-open:hover {text-decoration:underline;text-underline-offset:4px}
.story-shell #section-story .day-movement-legend,
.story-shell #section-story .day-load-legend {position:static;inset:auto;display:flex;align-items:center;flex-wrap:wrap;gap:4px 16px;max-width:none;background:none;font-size:11px;line-height:1.4;margin:6px 0 0;padding:0}
.story-shell #section-story .day-movement-legend strong,
.story-shell #section-story .day-load-legend strong {display:none}
.story-shell #section-story .day-movement-legend>div,
.story-shell #section-story .day-load-legend>div {margin:0;gap:8px}
.story-shell #section-story .day-movement-legend i {width:64px;height:3px}
.story-shell #section-story .day-movement-legend>span {display:none}
.story-shell #section-story .day-movement-legend small,
.story-shell #section-story .day-load-legend small {font-size:11px;margin:0}
.story-shell #section-story .day-movement-legend br {display:none}
.model-workspace.story-shell.towers-home #transport {padding:12px 24px 14px}
.model-workspace.story-shell.towers-home #story-kicker {display:none}
.model-workspace.story-shell.towers-home #section-beat-title {font-size:clamp(28px,3vw,38px);margin-bottom:6px}
.model-workspace.story-shell.towers-home #section-story-copy {max-width:720px;font-size:14px;line-height:1.45}
.model-workspace.story-shell.towers-home #section-story {padding-bottom:10px;margin-bottom:0}
.model-workspace.story-shell.towers-home #whole-site-link {display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 16px;border:1px solid #526b78;border-radius:2px;color:#d5e1e4;font-size:13px;text-decoration:none;white-space:nowrap}
.model-workspace.story-shell.towers-home #whole-site-link:hover {background:#1a2c37}
.model-workspace.story-shell.towers-home #whole-site-link:focus-visible {outline:2px solid #b3ccd5;outline-offset:3px}
@media(max-width:760px){
 .story-shell .masthead-right {gap:0}
 #story-menu>summary {font-size:12px;gap:8px}
 .story-menu-panel {right:12px;padding:14px}
 .model-workspace.story-shell.towers-home #transport {padding:10px 18px 12px}
 .model-workspace.story-shell.towers-home #section-beat-title {font-size:29px}
 .model-workspace.story-shell.towers-home #section-story-copy {font-size:13px}
 .model-workspace.story-shell.towers-home #transport #play {min-width:0;padding:0 12px;font-size:11px;white-space:nowrap}
 .model-workspace.story-shell.towers-home #whole-site-link {padding:0 10px;font-size:11px}
 .model-workspace.story-shell #transport .transport-main {gap:8px}
 .model-workspace.story-shell #transport #day-evidence-open {font-size:11px}
 .model-workspace.story-shell #section-story .day-movement-legend {gap:4px 10px}
}

/* Short windows keep a readable caption and a usable model stage. */
@media(max-height:480px) and (min-width:761px){
 .model-workspace.story-shell.section-playback #transport {padding-block:4px}
 .model-workspace.story-shell.section-playback .section-caption {gap:3px 20px}
 .model-workspace.story-shell.section-playback #section-beat-title {font-size:19px}
 .model-workspace.story-shell.section-playback #section-story-copy {font-size:12px;line-height:1.4;margin-top:2px}
 .model-workspace.story-shell.section-playback #section-story {padding-bottom:2px}
 .model-workspace.story-shell.section-playback .beat-navigation button,
 .model-workspace.story-shell.section-playback .beat-navigation #beat-picker {height:26px;min-height:26px}
 .model-workspace.story-shell.section-playback #transport .transport-main {height:40px;min-height:40px}
}

.model-workspace.section-playback #section-story.single-beat .beat-navigation {display:none}

/* Each section reserves only the teaching aids it will use. Impact's floor
   index and part key share a row: the longer of the two sets its height. */
.model-workspace.story-shell.section-playback.north-mode[data-story-section=impact] #section-story {display:grid;grid-template-columns:minmax(0,1fr);gap:0}
.story-shell.north-mode[data-story-section=impact] #section-story .section-caption {grid-column:1;grid-row:1}
.story-shell.north-mode[data-story-section=impact] #section-story .day-floor-review,
.story-shell.north-mode[data-story-section=impact] #section-story .day-load-legend {grid-column:1;grid-row:2;align-self:start;min-width:0}
.story-shell.north-mode[data-story-section=impact] #section-story .day-floor-review[hidden],
.story-shell.north-mode[data-story-section=impact] #section-story .day-load-legend[hidden],
.story-shell.north-mode:is([data-story-section=sagging],[data-story-section=bowing]) #section-story .day-movement-legend[hidden] {display:flex!important;visibility:hidden;pointer-events:none}
.story-shell.north-mode[data-story-section=tilt] #story-closing[hidden] {display:block!important;visibility:hidden;pointer-events:none}

/* Feedback stays with the control the reader is using; the model stays still. */
.model-workspace.section-playback #transport button,
.model-workspace.section-playback .beat-navigation select,
.story-shell #story-menu>summary {transition:color 160ms ease-out,background-color 160ms ease-out,box-shadow 160ms ease-out}
.model-workspace.section-playback #transport button:not(:disabled):focus-visible,
.model-workspace.section-playback .beat-navigation select:focus-visible,
.story-shell #story-menu>summary:focus-visible {outline:2px solid #b3ccd5;outline-offset:3px}
.model-workspace.section-playback #transport #play:focus-visible {background:#d3e1e5;box-shadow:0 0 0 4px #b3ccd518}
.story-shell #story-menu[open]>summary {color:var(--story-paper,#f0eae0)}
@media(hover:hover){
 .model-workspace.section-playback #transport button:not(:disabled):hover,
 .model-workspace.section-playback .beat-navigation select:hover,
 .story-shell #story-menu>summary:hover {color:var(--story-paper,#f0eae0)}
 .model-workspace.section-playback #transport #play:hover {background:#d3e1e5;color:#0b161e;box-shadow:0 0 0 4px #b3ccd518}
}

/* A single, short arrival marks the change from watching to choosing a view. */
@keyframes story-menu-arrive {from {opacity:.75;transform:translateY(-3px)} to {opacity:1;transform:translateY(0)}}
.story-shell #story-menu[open] .story-menu-panel {animation:story-menu-arrive 180ms cubic-bezier(.22,1,.36,1) both}
@media(prefers-reduced-motion:reduce){
 .story-shell #story-menu[open] .story-menu-panel {animation:none}
 .model-workspace.section-playback #transport button,
 .model-workspace.section-playback .beat-navigation select,
 .story-shell #story-menu>summary {transition:none}
}

/* A gap in source coverage leaves the connected structure on screen. */
#day-evidence.is-source-gap:not(.is-exploring) {inset:auto 18px 16px auto;width:min(340px,calc(100% - 36px));max-height:40%;overflow:auto;background:#10212aee;color:#dce8ee;border:1px solid #405762;border-radius:4px;box-shadow:0 8px 26px #0003}
#day-evidence.is-source-gap:not(.is-exploring) .day-source-heading {padding:10px 12px 4px;gap:8px;align-items:flex-start;flex-wrap:wrap}
#day-evidence.is-source-gap:not(.is-exploring) .day-source-heading>div {display:flex;flex-direction:column;align-items:flex-start;gap:3px}
#day-evidence.is-source-gap:not(.is-exploring) .day-source-kind {font-size:10px;color:#ceb885;letter-spacing:.09em}
#day-evidence.is-source-gap:not(.is-exploring) .day-source-location {font-size:12px;line-height:1.4;text-wrap:balance}
#day-evidence.is-source-gap:not(.is-exploring) .day-source-inspect {min-height:32px;font-size:11px;color:#aed0dc;padding:0}
#day-evidence.is-source-gap:not(.is-exploring) .day-source-figure {flex:none;min-height:0}
#day-evidence.is-source-gap:not(.is-exploring) .day-source-image {flex:none;min-height:0;background:none;overflow:visible;display:block}
#day-evidence.is-source-gap:not(.is-exploring) .day-source-image p {margin:0;padding:4px 12px 12px;font-size:12px;line-height:1.5;text-align:left;color:#b7cbd5;max-width:none}
#day-evidence.is-source-gap:not(.is-exploring) .day-source-figure figcaption {display:none}
@media(max-width:760px){
 #day-evidence.is-source-gap:not(.is-exploring) {inset:auto 10px 8px;max-height:45%;width:auto}
 #day-evidence.is-source-gap:not(.is-exploring) .day-source-heading {padding:8px 10px 2px;flex-wrap:nowrap;align-items:center}
 #day-evidence.is-source-gap:not(.is-exploring) .day-source-heading>div {flex-direction:row;flex-wrap:wrap;gap:2px 8px}
 #day-evidence.is-source-gap:not(.is-exploring) .day-source-kind {font-size:10px}
 #day-evidence.is-source-gap:not(.is-exploring) .day-source-inspect {max-width:100px;line-height:1.4}
 #day-evidence.is-source-gap:not(.is-exploring) .day-source-image p {padding:2px 10px 9px;font-size:11px;line-height:1.4}
}

/* Visible transport verbs and a quiet map of the viewing commitment. */
.model-workspace.section-playback #transport #play {width:auto;min-width:88px;border-radius:4px;padding:0 12px;font-size:12px;white-space:nowrap}
.model-workspace.section-playback #play span {display:inline}
.model-workspace.section-playback #progress-label {display:block;color:#91aab6;font-size:10px;line-height:1.2;margin:0 0 2px}
.section-playback .progress-wrap {padding-top:0;min-width:36px}
.section-playback #story-markers {top:13px}
#story-contract {margin:10px auto 0;max-width:730px;color:#91aab6;font-size:12px;line-height:1.6;text-align:center}
#compare-towers {display:block;border:0;border-top:1px solid #30434d;border-radius:0;background:none;color:#c5d7df;width:100%;text-align:left;margin-top:10px;padding:12px 0 0;min-height:44px;font-size:13px}
.story-comparison {--comparison-gap:16px;position:fixed;inset:calc(env(safe-area-inset-top,0px) + var(--comparison-gap)) 0 calc(env(safe-area-inset-bottom,0px) + var(--comparison-gap));margin:auto;box-sizing:border-box;width:min(960px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px) - 2 * var(--comparison-gap));padding:0;border:1px solid #425762;border-radius:6px;background:#101e27;color:#dce5e7;box-shadow:0 24px 100px #0009;overflow:auto}
.story-comparison::backdrop {background:#061017d9;backdrop-filter:blur(5px)}
.comparison-heading {display:flex;align-items:flex-start;justify-content:space-between;gap:24px;padding:24px 28px 18px;border-bottom:1px solid #344851;position:sticky;top:0;z-index:1;background:#101e27}
.comparison-kicker {margin:0 0 9px;font:10px/1.5 ui-monospace,Menlo,monospace;letter-spacing:.08em;text-transform:uppercase;color:#a5bbc4}
.comparison-heading h2 {margin:0;font:400 clamp(25px,3vw,34px)/1.15 "Iowan Old Style",Baskerville,Georgia,serif;color:#f0eae0;letter-spacing:-.02em}
.story-comparison button {border:1px solid #5a737f;border-radius:3px;color:#dce7eb;background:#192e3a;padding:10px 14px;min-height:42px;font:inherit;font-size:12px;cursor:pointer}
.comparison-close {flex:none;align-self:flex-start}
.story-comparison button:focus-visible,.story-comparison a:focus-visible {outline:2px solid #c0d9e2;outline-offset:3px}
.comparison-body {padding:0 28px;font-size:14px;line-height:1.6}
.comparison-intro {margin:18px 0}
.comparison-table {width:100%;table-layout:fixed;border-collapse:collapse;font-size:13px;line-height:1.55}
.comparison-table th,.comparison-table td {padding:13px 16px;border-bottom:1px solid #344851;vertical-align:top;text-align:left}
.comparison-table th:first-child {width:20%;padding-left:0}
.comparison-table thead th {color:#e4ddd0;font-size:15px;font-weight:500}
.comparison-table tbody th {color:#a9c3cf;font-weight:500}
.comparison-table td:last-child,.comparison-table th:last-child {padding-right:0}
.comparison-conclusion {margin:20px 0;color:#f0eae0}
.comparison-access {padding:14px 18px;border-left:2px solid #8b9d9a;background:#172831}
.comparison-access h3 {margin:0 0 10px;font-size:14px;font-weight:500;color:#e8e5dc}
.comparison-access p {margin:6px 0;font-size:13px}
.comparison-access strong {font-weight:500;color:#c9dce5}
.comparison-sources {font-size:11px;color:#a6bac4;margin:16px 0}
.comparison-sources a {color:inherit;text-underline-offset:3px}
.comparison-footer {padding:0 28px 24px}
.comparison-footer p {font-size:12px;color:#a6bac4;margin:12px 0}
.comparison-actions {display:flex;flex-wrap:wrap;gap:10px}
@media(max-width:760px){
 .model-workspace.section-playback #transport #play {min-width:76px;padding-inline:9px;font-size:11px}
 .model-workspace.section-playback #progress-label {font-size:9px;white-space:nowrap}
 .model-workspace.section-playback #transport .transport-main {gap:8px}
 .model-workspace.section-playback #next-section {font-size:11px;max-width:28%}
 .model-workspace.section-playback .section-caption {grid-template-columns:minmax(0,1fr) auto}
 .model-workspace.section-playback #story-kicker {font-size:9px;letter-spacing:.02em}
 .model-workspace.section-playback .beat-navigation {max-width:130px}
 #story-contract {font-size:11px;max-width:340px;line-height:1.5}
 .story-comparison {--comparison-gap:8px;width:calc(100vw - 16px)}
 .comparison-heading {padding:18px 16px 14px;gap:12px;flex-wrap:wrap}
 .comparison-close {padding:6px 10px!important;min-height:34px!important}
 .comparison-body {padding:0 16px;font-size:13px}
 .comparison-table {font-size:12px;line-height:1.5}
 .comparison-table th,.comparison-table td {padding:10px 8px}
 .comparison-table th:first-child {width:20%;font-size:11px}
 .comparison-table thead th {font-size:13px}
 .comparison-table,.comparison-table thead,.comparison-table tbody {display:block}
 .comparison-table tr {display:grid;grid-template-columns:1fr 1fr;border-bottom:1px solid #344851}
 .comparison-table th,.comparison-table td {border:0;padding:8px}
 .comparison-table th:first-child {width:auto;grid-column:1/-1;padding:10px 8px 0;font-size:12px}
 .comparison-table thead th:first-child {display:none}
 .comparison-table thead th {padding:10px 8px}
 .comparison-access {padding:12px}
 .comparison-footer {padding:0 16px 18px}
 .comparison-actions {display:grid;grid-template-columns:1fr;width:100%}
}

/* Exhibit captions: one short idea, with a comfortable reading measure. */
.model-workspace.story-shell.section-playback #section-story-copy {font-size:16px;line-height:1.5;max-width:76ch}
.model-workspace.story-shell.towers-home #section-story-copy {max-width:62ch}
.story-shell #section-story .day-movement-legend,
.story-shell #section-story .day-load-legend,
.story-shell #section-story .day-movement-legend small,
.story-shell #section-story .day-load-legend small {font-size:12px;line-height:1.45}
#day-evidence.is-source-gap:not(.is-exploring) .day-source-image p {font-size:13px;line-height:1.45}
@media(max-width:760px){
 .model-workspace.story-shell.section-playback #section-story-copy {font-size:15px}
 .model-workspace.story-shell.section-playback .beat-navigation #beat-picker {font-size:12px}
 #day-evidence.is-source-gap:not(.is-exploring) .day-source-image p {font-size:12px}
}
@media(max-height:480px){
 .model-workspace.story-shell.section-playback #section-story-copy {font-size:14px;line-height:1.4}
 #day-evidence.is-source-gap:not(.is-exploring) {inset:auto 12px 6px;width:auto;max-height:70%}
 #day-evidence.is-source-gap:not(.is-exploring) .day-source-heading {padding-block:6px 0;align-items:center}
 #day-evidence.is-source-gap:not(.is-exploring) .day-source-heading>div {flex-direction:row;flex-wrap:wrap;gap:4px 12px}
 #day-evidence.is-source-gap:not(.is-exploring) .day-source-image p {padding-block:2px 8px}
}

/* On small screens, reserve space for the model instead of unseen captions.
   Longer explanations scroll above the controls, which remain in view. */
@media(max-width:760px),(max-height:480px){
 .model-workspace.story-shell.section-playback #section-beat-title,
 .model-workspace.story-shell.section-playback #section-story-copy {min-height:0}
 .model-workspace.story-shell.section-playback.north-mode #section-story>[hidden] {display:none!important}
 .model-workspace.story-shell.section-playback #transport {max-height:calc(var(--story-viewport-height) - env(safe-area-inset-bottom,0px) - var(--head) - clamp(120px,30dvh,220px))}
}
@media(max-width:760px){
 .model-workspace.story-shell.section-playback:not(.towers-home) #transport .transport-main {
  display:grid;
  grid-template-columns:30px auto minmax(48px,1fr) minmax(80px,1.5fr);
  grid-template-rows:auto auto;
  height:auto;
  gap:4px 8px;
 }
 .model-workspace.story-shell.section-playback:not(.towers-home) .progress-wrap {grid-column:1/-1;grid-row:1;min-width:0}
 .model-workspace.story-shell.section-playback #progress-label {white-space:normal;overflow-wrap:anywhere}
 .model-workspace.story-shell.section-playback #story-markers {top:auto;bottom:12px}
 .model-workspace.story-shell.section-playback #previous-section {grid-column:1;grid-row:2;min-width:0}
 .model-workspace.story-shell.section-playback .transport-buttons {grid-column:2;grid-row:2}
 .model-workspace.story-shell.section-playback #transport #day-evidence-open {grid-column:3;grid-row:2;min-width:0;white-space:normal}
 .model-workspace.story-shell.section-playback #next-section {grid-column:4;grid-row:2;min-width:0;max-width:none;overflow-wrap:anywhere}
 .model-workspace.story-shell.section-playback .transport-main:not(:has(#day-evidence-open:not([hidden]))) #next-section {grid-column:3/-1}
}

/* The teaching stage has a stable allocation. Longer reading is a deliberate
   paused action, not an expanding footer that moves the subject mid-shot. */
.model-workspace.story-shell.section-playback:not(.towers-home) #transport {
 height:220px;max-height:none;padding:10px max(22px,calc((100vw - 1040px)/2)) 8px;
}
.model-workspace.story-shell.section-playback:not(.towers-home) #section-story {
 flex:1;min-height:0;padding-bottom:3px;overflow:auto;
}
.model-workspace.story-shell.section-playback #section-beat-title,
.model-workspace.story-shell.section-playback #section-story-copy {min-height:0}
.model-workspace.story-shell.section-playback #section-story-copy {font-size:16px;line-height:1.45;margin-top:4px}
.model-workspace.story-shell.section-playback #story-kicker {font-size:11px;letter-spacing:.025em}
.model-workspace.story-shell.section-playback .beat-navigation {max-width:290px}
.model-workspace.story-shell.section-playback .beat-navigation button,
.model-workspace.story-shell.section-playback .beat-navigation #beat-picker {min-height:36px;height:36px}
#story-qualifier {flex:none;margin:2px 0 5px;font-size:12px;line-height:1.35;color:#a6c0cd}
/* Floor choices are controls, not scrollable prose. The short action and
   source qualifier stay beside a complete row without reducing model space. */
.model-workspace.story-shell.section-playback #transport>.day-floor-review {flex:none;position:static;max-width:none;margin:0;padding:0;gap:0 4px}
.model-workspace.story-shell.section-playback #transport>.day-floor-review button {min-height:44px;min-width:44px}
.model-workspace.story-shell.section-playback #transport>.day-floor-review small {display:none}
.model-workspace.story-shell.section-playback #transport:has(>.day-floor-review:not([hidden])) #section-beat-title {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;margin:0}
#story-explanation-open {font-size:12px;color:#bad3de;white-space:nowrap;padding:0 6px}
.towers-home #story-explanation-open,.towers-home #story-qualifier {display:none}
#story-explanation {position:fixed;inset:auto 18px 18px auto;margin:0;width:min(480px,calc(100vw - 36px));max-height:65dvh;padding:18px;border:1px solid #617e8a;border-radius:6px;background:#101e27;color:#dbe6eb;font-size:15px;line-height:1.55;overflow:auto}
#story-explanation::backdrop {background:#03101922;backdrop-filter:none}
.story-explanation-heading {display:flex;align-items:flex-start;gap:18px;justify-content:space-between}
#story-explanation-title {font-size:22px;line-height:1.25;margin:0 0 16px}
#story-explanation button {min-width:56px;min-height:44px;flex:none;font-size:13px;padding:6px 10px}
#story-explanation-note {font-size:13px;color:#a6c0cd}
#story-footage-open{font-size:12px;white-space:nowrap;flex:none;padding:0 4px}
#story-footage-open[hidden]{display:none!important}
#story-explanation[data-comparison=footage] #story-explanation-copy,
#story-explanation[data-comparison=footage] #story-explanation-note,
#story-explanation[data-comparison=footage] #story-closing,
#story-explanation[data-comparison=footage] #story-explanation-guides> :not([data-continuation-footage]){display:none!important}
.continuation-film-basis{font-size:12px;color:#bdd1d9}
#story-explanation .day-movement-legend,#story-explanation .day-load-legend {position:static;inset:auto;max-width:none;pointer-events:auto;background:none;font-size:13px;padding:8px 0}
#story-explanation .day-movement-legend small,#story-explanation .day-load-legend small {font-size:12px}
/* Reading the model never requires opening Details. These compact keys stay
   in the stage, apart from the source companion and transport captions. */
.story-shell .day-movement-legend {left:14px;bottom:12px;padding:6px 8px;border-radius:3px;font-size:10px;line-height:1.35;max-width:260px}
.story-shell .day-movement-legend strong {font-size:11px}
.story-shell .day-movement-legend>div {margin:4px 0}
.story-shell .day-movement-legend i {width:75px;height:4px}
.story-shell .day-movement-legend small {font-size:10px;margin:0}
.story-shell .day-load-legend {left:auto;right:14px;top:12px;bottom:auto;padding:6px 8px;border-radius:3px;font-size:11px}
.story-shell .day-load-legend strong {display:none}
.story-shell .day-load-legend>div {gap:12px;margin:0 0 3px}
.story-shell .day-load-legend small {font-size:10px}
@media(max-width:700px){
 .story-shell .day-movement-legend {left:auto;right:8px;top:38px;bottom:auto;max-width:170px}
 .story-shell .day-load-legend {right:8px;top:38px;font-size:10px}
 .story-shell .day-load-legend>div {gap:7px}
}
#story-explanation #story-closing[hidden] {display:none!important}
#story-explanation #story-closing {visibility:visible}
#story-explanation #story-closing a {min-height:44px;display:flex;align-items:center;margin:0}

/* Guided records retain their located structure. Full figures are available
   in the separate, paused source explorer at every viewport size. */
#day-evidence.is-guided-figure[data-companion-layout=wide] {inset:0 0 0 auto;width:32%;max-height:none;border-left:1px solid #526b78}
#day-evidence.is-guided-figure[data-companion-layout=wide] .day-source-heading {padding:10px 12px;gap:8px;flex-wrap:wrap}
#day-evidence.is-guided-figure[data-companion-layout=wide] .day-source-location {font-size:12px}
#day-evidence.is-guided-figure[data-companion-layout=wide] .day-source-figure {display:flex;flex-direction:column;flex:1;min-height:0}
#day-evidence.is-guided-figure[data-companion-layout=wide] .day-source-image {flex:1;min-height:100px}
#day-evidence.is-guided-figure[data-companion-layout=wide] .day-source-takeaway {display:none}
#day-evidence.is-guided-figure[data-companion-layout=wide] .day-source-figure figcaption {padding:8px 12px;font-size:12px}
#day-evidence.is-guided-figure[data-companion-layout=wide] .day-source-note {font-size:12px;line-height:1.4}
#day-evidence:is(.is-guided-figure,.is-compact-stair-cue)[data-companion-layout=compact] {display:block;min-width:0;inset:auto 8px 6px;width:auto;height:76px;max-height:28%;border:1px solid #526b78;border-radius:4px;overflow:hidden;background:#10212aee;color:#dce8ee}
#day-evidence:is(.is-guided-figure,.is-compact-stair-cue)[data-companion-layout=compact] .day-source-heading {height:100%;padding:6px 10px;gap:10px;align-items:center;flex-direction:row}
#day-evidence:is(.is-guided-figure,.is-compact-stair-cue)[data-companion-layout=compact] .day-source-heading>div {display:flex;flex-direction:column;gap:3px;min-width:0}
#day-evidence:is(.is-guided-figure,.is-compact-stair-cue)[data-companion-layout=compact] .day-source-kind {color:#ceb885;font-size:10px}
#day-evidence:is(.is-guided-figure,.is-compact-stair-cue)[data-companion-layout=compact] .day-source-location {font-size:12px;line-height:1.3}
#day-evidence:is(.is-guided-figure,.is-compact-stair-cue)[data-companion-layout=compact] .day-source-inspect {color:#b8d9e5;min-height:44px;font-size:12px;max-width:80px;white-space:normal}
#day-evidence:is(.is-guided-figure,.is-compact-stair-cue)[data-companion-layout=compact] .day-source-figure,
#day-evidence:is(.is-guided-figure,.is-compact-stair-cue)[data-companion-layout=compact] .day-source-entries {display:none}
.story-shell #scene-wrap:has(#day-evidence.is-guided-figure[data-companion-layout=compact]:not([hidden]):not(.is-onset-cue)) .day-explanation-key{bottom:90px}
.day-context-reference,.day-tilt-reference {position:absolute;left:14px;top:38px;z-index:5;max-width:min(290px,calc(100% - 28px));padding:5px 8px;background:#0d1d27e8;color:#bfd3dc;font-size:11px;line-height:1.4;pointer-events:none}
.day-tilt-reference {top:auto;bottom:12px}
.day-tilt-reference svg {max-height:70px;width:auto}

@media(max-width:760px){
 .model-workspace.story-shell.section-playback:not(.towers-home) #transport {height:236px;padding:8px 14px}
 .model-workspace.story-shell.section-playback:not(.towers-home) #section-story {overflow:auto}
 /* The action sentence is the compact caption; avoid repeating its heading. */
 .model-workspace.story-shell.section-playback:not(.towers-home) #section-beat-title {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;margin:0}
 .model-workspace.story-shell.section-playback .section-caption {gap:0 6px}
 .model-workspace.story-shell.section-playback #section-story-copy {font-size:15px;line-height:1.4;margin-top:4px}
 .model-workspace.story-shell.section-playback #story-kicker {font-size:10px;line-height:1.3;max-width:none}
 .model-workspace.story-shell.section-playback .beat-navigation {max-width:136px}
 .model-workspace.story-shell.section-playback .beat-navigation button,
 .model-workspace.story-shell.section-playback .beat-navigation #beat-picker {min-height:36px;height:36px}
 #story-qualifier {font-size:11px;line-height:1.3;margin:2px 0 3px}
 .model-workspace.story-shell.section-playback #transport>.day-floor-review {gap:0 3px}
 .model-workspace.story-shell.section-playback #transport>.day-floor-review>span {display:none}
 .model-workspace.story-shell.section-playback #transport>.day-floor-review button {min-width:38px}
 .model-workspace.story-shell.section-playback:not(.towers-home) .progress-wrap {grid-column:1/4;grid-row:1}
 .model-workspace.story-shell.section-playback #transport #story-explanation-open {grid-column:4;grid-row:1;min-height:40px;font-size:11px;padding:0}
 #story-explanation {inset:auto 10px 10px;margin:0;width:auto;max-height:65dvh;padding:14px}
 .day-context-reference,.day-tilt-reference {left:8px;font-size:10px;max-width:calc(100% - 16px)}
}

@media(max-height:480px) and (min-width:560px){
 .model-workspace.story-shell.section-playback:not(.towers-home) {grid-template-columns:minmax(0,1fr) clamp(210px,34vw,286px);grid-template-rows:var(--head) minmax(0,1fr)}
 .model-workspace.story-shell.section-playback:not(.towers-home)>.masthead {grid-column:1/-1}
 .model-workspace.story-shell.section-playback:not(.towers-home) #experience {grid-row:2;grid-column:1}
 .model-workspace.story-shell.section-playback:not(.towers-home) #transport {grid-row:2;grid-column:2;height:auto;min-height:0;border-top:0;border-left:1px solid var(--story-rule);padding:10px 12px 6px}
 .model-workspace.story-shell.section-playback:not(.towers-home) .section-caption {display:flex;flex-direction:column;align-items:stretch;gap:4px}
 .model-workspace.story-shell.section-playback:not(.towers-home) #story-kicker {max-width:none;font-size:11px}
 .model-workspace.story-shell.section-playback:not(.towers-home) .beat-navigation {max-width:none;order:2}
 .model-workspace.story-shell.section-playback:not(.towers-home) #section-beat-title {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;margin:0}
 .model-workspace.story-shell.section-playback:not(.towers-home) #section-story-copy {font-size:15px;line-height:1.4;order:1}
 .model-workspace.story-shell.section-playback:not(.towers-home) #transport .transport-main {display:grid;grid-template-columns:30px minmax(68px,1fr) minmax(62px,1fr);grid-template-rows:auto auto auto;height:auto;gap:3px 5px}
 .model-workspace.story-shell.section-playback:not(.towers-home) .progress-wrap {grid-column:1/-1;grid-row:1}
 .model-workspace.story-shell.section-playback:not(.towers-home) #previous-section {grid-column:1;grid-row:2}
 .model-workspace.story-shell.section-playback:not(.towers-home) .transport-buttons {grid-column:2;grid-row:2}
 .model-workspace.story-shell.section-playback:not(.towers-home) #next-section {grid-column:3;grid-row:2;max-width:none;font-size:12px}
 .model-workspace.story-shell.section-playback:not(.towers-home) #transport #day-evidence-open {grid-column:1/3;grid-row:3;font-size:12px;white-space:normal}
 .model-workspace.story-shell.section-playback:not(.towers-home) #transport #story-explanation-open {grid-column:3;grid-row:3;font-size:11px;white-space:normal}
 #story-qualifier {font-size:11px}
}

/* Block batches and isolated member specimens are manual inspection, with no playback. */
.static-floor-inspection #play,.static-floor-inspection #chapter-progress {display:none!important}
.static-floor-inspection .pace-note {max-width:none}

#source-state-scope {margin:0;padding:6px 0 2px;color:#b8cdd5;font-size:11px;line-height:1.35;max-width:100%}

.model-workspace.source-state-review #transport {height:auto}
.model-workspace.source-state-review #experience {bottom:var(--source-state-transport-height,134px)}

/* A major segment plays continuously. Keep its controls close to the
   caption, reserving only the text height needed by that segment. */
.model-workspace.story-shell.section-playback:not(.towers-home) #transport {
 height:auto;padding:8px max(14px,calc((100vw - 1040px)/2));
}
.model-workspace.story-shell.section-playback:not(.towers-home) #section-story {
 flex:none;min-height:0;padding:0;overflow:visible;
}
.model-workspace.story-shell.section-playback:not(.towers-home) .section-caption {display:block}
.model-workspace.story-shell.section-playback:not(.towers-home) #story-kicker {
 max-width:none;font-size:10px;line-height:1.3;letter-spacing:.025em;
}
.model-workspace.story-shell.section-playback:not(.towers-home) #section-beat-title {
 position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;margin:0;
}
.model-workspace.story-shell.section-playback:not(.towers-home) #section-story-copy {
 max-width:none;min-height:var(--story-copy-height,2.8em);font-size:14px;line-height:1.4;margin:3px 0 0;
}
.model-workspace.story-shell.section-playback:not(.towers-home) #transport .transport-main {
 display:flex;align-items:center;gap:10px;height:36px;min-height:36px;margin-top:6px;
}
.model-workspace.story-shell.section-playback:not(.towers-home) #transport .progress-wrap,
.model-workspace.story-shell.section-playback:not(.towers-home) #story-markers,
.model-workspace.story-shell.section-playback:not(.towers-home) #day-evidence-open,
.model-workspace.story-shell.section-playback:not(.towers-home) #previous-beat,
.model-workspace.story-shell.section-playback:not(.towers-home) #next-beat {display:none!important}
.model-workspace.story-shell.section-playback:not(.towers-home) #transport #previous-section {
 flex:none;min-width:40px;min-height:36px;max-width:none;padding:0;text-align:left;font-size:12px;
}
.model-workspace.story-shell.section-playback:not(.towers-home) #transport .transport-buttons {
 flex:1;justify-content:flex-start;min-width:0;
}
.model-workspace.story-shell.section-playback:not(.towers-home) #transport .transport-buttons:has(#play:not([hidden])) {min-width:54px}
.model-workspace.story-shell.section-playback:not(.towers-home) #transport #play {
 background:none;color:#a9c1cc;box-shadow:none;min-width:54px;min-height:36px;height:36px;width:auto;padding:0 3px;font-size:12px;border-radius:4px;
}
.model-workspace.story-shell.section-playback:not(.towers-home) #play[hidden] {display:none!important}
.model-workspace.story-shell.section-playback:not(.towers-home) #transport #story-explanation-open {
 flex:none;min-width:44px;min-height:36px;padding:0 4px;font-size:12px;white-space:nowrap;
}
.model-workspace.story-shell.section-playback:not(.towers-home) #transport .transport-main #next-section {
 flex:none;max-width:none;min-width:68px;min-height:36px;height:36px;padding:0 12px;
 border-radius:4px;background:#b3ccd5;color:#0b161e;font-size:12px;font-weight:600;white-space:nowrap;text-align:center;
}
.model-workspace.story-shell.section-playback:not(.towers-home) #transport .transport-main #next-section:hover {background:#d3e1e5}
.model-workspace.story-shell.section-playback:not(.towers-home) #transport .transport-main #next-section:focus-visible {outline:2px solid #fff;outline-offset:3px}
.model-workspace.story-shell.section-playback:not(.towers-home) .story-menu-panel .beat-navigation {display:block;max-width:none;border-top:1px solid #344953;margin-top:12px;padding-top:8px}
.model-workspace.story-shell.section-playback:not(.towers-home) .story-menu-panel #beat-picker {width:100%;max-width:none;min-height:44px;font-size:13px}
.model-workspace.story-shell.section-playback:not(.towers-home) .story-menu-panel .beat-navigation[hidden] {display:none}
@media(pointer:coarse){
 .model-workspace.story-shell.section-playback:not(.towers-home) #transport .transport-main {height:44px;min-height:44px}
 .model-workspace.story-shell.section-playback:not(.towers-home) #transport .transport-main button {min-height:44px!important}
}
@media(max-height:480px) and (min-width:560px){
 .model-workspace.story-shell.section-playback:not(.towers-home) #transport {padding:10px 12px 6px;overflow:auto}
 .model-workspace.story-shell.section-playback:not(.towers-home) #transport .transport-main {flex-wrap:wrap;height:auto;gap:4px 7px}
 .model-workspace.story-shell.section-playback:not(.towers-home) #transport .transport-buttons {flex:1}
}

/* Quiet progress stays in the single-line breadcrumb; only a completed
   segment gives Next the primary treatment. The reading area keeps its size. */
.model-workspace.story-shell.section-playback:not(.towers-home) .story-progress-heading {display:flex;align-items:center;gap:12px;min-width:0}
.model-workspace.story-shell.section-playback:not(.towers-home) #story-kicker {flex:1;min-width:0}
.model-workspace.story-shell.section-playback:not(.towers-home) button#story-kicker {
 min-height:24px;height:24px;padding:0;margin:-5.5px 0;border:0;border-radius:2px;background:none;box-shadow:none;text-align:left;
 text-decoration:underline;text-decoration-color:#536c78;text-underline-offset:3px;cursor:pointer;
}
.model-workspace.story-shell.section-playback:not(.towers-home) button#story-kicker:hover {color:#e0ebef;text-decoration-color:currentColor}
.model-workspace.story-shell.section-playback:not(.towers-home) button#story-kicker:focus-visible {outline:2px solid #c8e2ef;outline-offset:3px}
#story-section-count {flex:none;color:#a3bbc6;font:10px/1.3 ui-monospace,Menlo,monospace;white-space:nowrap;font-variant-numeric:tabular-nums}
#story-section-progress {display:block;width:100%;height:2px;margin:5px 0 6px;border:0;appearance:none;background:#2c3e47;color:#9bb9c7}
#story-section-progress::-webkit-progress-bar {background:#2c3e47}
#story-section-progress::-webkit-progress-value {background:#9bb9c7}
#story-section-progress::-moz-progress-bar {background:#9bb9c7}
#story-section-progress[hidden],#story-section-count[hidden] {display:none}
#story-section-ready {flex:0 1 auto;min-width:0;color:#c7dcd5;font-size:11px;line-height:1.15}
#story-section-ready:empty {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.model-workspace.story-shell.section-playback:not(.towers-home) #transport .transport-main #next-section {
 flex:0 1 auto;max-width:46%;white-space:normal;line-height:1.2;overflow-wrap:normal;
}
.model-workspace.story-shell.section-playback:not(.towers-home):not(.section-ready) #transport .transport-main #next-section {background:transparent;color:#b8ccd6;box-shadow:inset 0 0 0 1px #46616d;font-weight:400}
.model-workspace.story-shell.section-playback:not(.towers-home):not(.section-ready) #transport .transport-main #next-section:hover {background:#20333d}
.model-workspace.story-shell.section-playback.section-ready #story-section-progress::-webkit-progress-value {background:#b8d5c9}
.model-workspace.story-shell.section-playback.section-ready #story-section-progress::-moz-progress-bar {background:#b8d5c9}
@media(max-width:360px){
 .model-workspace.story-shell.section-playback:not(.towers-home) #transport .transport-main {gap:6px}
 #story-section-ready {font-size:10px}
}

/* Evidence, reference and color keys occupy a single model-side region. */
.story-shell .day-explanation-key .day-movement-legend,.story-shell .day-explanation-key .day-load-legend{position:static;inset:auto;max-width:none;margin:4px 0 0;padding:0;background:none;font-size:10px}
.story-shell .day-explanation-key .day-movement-legend{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.story-shell .day-explanation-key .day-movement-legend strong{display:none}.story-shell .day-explanation-key .day-movement-legend>div{margin:0}.story-shell .day-explanation-key .day-movement-legend small{font-size:9px}.story-shell .day-explanation-key .day-load-legend small{font-size:9px}
.story-shell .day-building-locator svg{height:auto}
@media(max-width:800px){.story-shell .day-explanation-key .day-movement-legend{gap:3px 8px;font-size:9px}.story-shell .day-explanation-key .day-movement-legend small{font-size:8px}}

/* Original onset views stay in the story. These are observations, not timed
   frames synchronized to the independently illustrated model orientation. */
.day-onset-records{display:flex;flex-wrap:wrap;gap:5px;padding:7px 12px;border-top:1px solid #c4d1d5;background:#eef1ef;flex:none}
#day-evidence .day-onset-records button{flex:1;font-size:11px;min-height:34px;color:#253f4b;background:#f8faf9;border-color:#8b9ea5}
#day-evidence .day-onset-records button[aria-pressed=true]{color:#fff;background:#294e60;border-color:#294e60}
.day-onset-scope{font-size:11px;line-height:1.4;color:#536771;margin:8px 0 0;padding-top:7px;border-top:1px solid #b9c8ce}
#day-evidence.is-onset-cue[data-companion-layout=wide] .day-source-time{font-size:10px}
#day-evidence.is-onset-cue[data-companion-layout=wide] .day-source-note{font-size:11px}
#day-evidence.is-onset-cue[data-companion-layout=wide] .day-source-image{margin:5px 8px;min-height:180px}
#day-evidence.is-onset-cue[data-companion-layout=compact]{inset:0;width:100%;height:100%;max-height:none;border-radius:0;display:flex;background:#f4f3f0;color:#213e49}
#day-evidence.is-onset-cue[data-companion-layout=compact] .day-source-heading{height:auto;flex:none;color:#213e49}
#day-evidence.is-onset-cue[data-companion-layout=compact] .day-source-figure{display:flex;flex-direction:column;flex:1;min-height:0}
#day-evidence.is-onset-cue[data-companion-layout=compact] .day-source-image{margin:3px 8px;flex:1;min-height:80px}
#day-evidence.is-onset-cue[data-companion-layout=compact] figcaption{padding:6px 10px;max-height:35%;overflow:auto;flex:none}
#day-evidence.is-onset-cue[data-companion-layout=compact] .day-source-title{font-size:11px}
#day-evidence.is-onset-cue[data-companion-layout=compact] .day-source-time{font-size:10px}
#day-evidence.is-onset-cue[data-companion-layout=compact] .day-source-note,#day-evidence.is-onset-cue[data-companion-layout=compact] .day-onset-scope{font-size:10px;margin:4px 0}

/* The model stays primary; viewers explicitly open source comparisons. */
.day-onset-film{position:absolute;inset:0;z-index:10;background:#0b141c;color:#e1ebed;display:flex;flex-direction:column}
.day-onset-film[hidden],.day-onset-film [hidden]{display:none!important}
.day-onset-film header{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:56px;padding:9px 18px;border-bottom:1px solid #354a56;background:#10212a;box-sizing:border-box}
.day-onset-film header span{display:block;font:10px/1.4 ui-monospace,monospace;letter-spacing:.1em;color:#d6bd88}
.day-onset-film header strong{font-size:14px;font-weight:500}
.day-onset-film nav{display:flex;gap:6px;flex-wrap:wrap}
.day-onset-film button{min-height:36px;padding:6px 10px;font:12px/1.3 system-ui;background:#132b37;border:1px solid #547787;border-radius:3px;color:#dfedf3;cursor:pointer}
.day-onset-film button[aria-pressed=true]{background:#345b6b;border-color:#aacdd8}
.day-onset-film button:focus-visible{outline:2px solid #e7c683;outline-offset:2px}
.onset-film-body{display:grid;grid-template-columns:minmax(0,1fr) minmax(240px,29%);gap:18px;padding:16px 24px;min-height:0;flex:1}
.onset-film-image{min-height:0;position:relative;display:flex;align-items:center;justify-content:center;background:#050a0e}
.onset-film-image video{width:100%;height:100%;max-height:100%;object-fit:contain;display:block}
.onset-film-status{position:absolute;inset:40% 10% auto;text-align:center;background:#10212add;padding:15px}
.onset-film-body aside{align-self:center;max-height:100%;overflow:auto;line-height:1.5}
.onset-film-body h2{font-size:19px;font-weight:500;line-height:1.3;margin:0 0 12px}
.onset-film-body p{font-size:13px;color:#c6d6de;margin:10px 0}
.onset-film-body a{display:block;font-size:11px;color:#a5d6e6;margin-top:15px}
.onset-film-body small{display:block;font-size:10px;color:#9bb1bc;margin-top:5px}
.onset-film-body .onset-film-scope{font-size:11px;border-top:1px solid #39505b;padding-top:9px}
.day-onset-film[data-mode=figures],.day-onset-film[data-mode=model]{inset:0 0 auto;background:transparent;pointer-events:none}
.day-onset-film[data-mode=figures] header,.day-onset-film[data-mode=model] header{pointer-events:auto}
.onset-model-basis{align-self:flex-start;background:#10212af5;border-left:2px solid #e7c683;max-width:370px;padding:8px 12px;font-size:11px;line-height:1.5;margin:12px 18px;color:#dce7ed}
.onset-calibration{margin:12px 0;border-top:1px solid #627c89;padding-top:9px;font-size:12px}
.onset-calibration summary{cursor:pointer;color:#e9d09b}
.onset-calibration img{display:block;width:100%;height:auto;margin:9px 0}
.onset-calibration-caption{font-size:11px;line-height:1.4}
#day-evidence.is-onset-cue[data-companion-layout]{inset:66px 0 0;width:100%;height:auto;max-height:none;border:0;border-radius:0;display:flex}
#day-evidence.is-onset-cue[data-companion-layout] .day-source-figure{display:grid;grid-template-columns:minmax(0,1fr) minmax(245px,28%);grid-template-rows:minmax(0,1fr) auto;gap:0;flex:1;min-height:0}
#day-evidence.is-onset-cue[data-companion-layout] .day-source-image{grid-column:1;grid-row:1;margin:8px 12px;min-height:80px}
#day-evidence.is-onset-cue[data-companion-layout] .day-onset-records{grid-column:1;grid-row:2}
#day-evidence.is-onset-cue[data-companion-layout] figcaption{grid-column:2;grid-row:1 / 3;align-self:center;max-height:100%;overflow:auto;padding:12px 20px}
@media(max-width:700px){
 .day-onset-film header{padding:7px 9px;gap:6px;align-items:flex-start;min-height:68px}.day-onset-film header>div{min-width:75px}.day-onset-film nav{gap:4px;justify-content:flex-end}.day-onset-film button{font-size:10px;min-height:32px;padding:5px 7px}.day-onset-film nav button:last-child{flex-basis:100%}
 .onset-film-body{display:flex;flex-direction:column;gap:8px;padding:8px;min-height:0}.onset-film-image{flex:1;min-height:110px}.onset-film-body aside{flex:none;max-height:38%;overflow:auto;width:100%;box-sizing:border-box;padding:0 5px}.onset-film-body h2{font-size:14px;margin:0}.onset-film-body p{font-size:11px;margin:5px 0}.onset-film-body a{margin-top:5px}.onset-film-body .onset-film-scope{font-size:10px}.onset-film-replay{float:right;margin:2px 0 4px 8px}
 .onset-model-basis{font-size:10px;max-width:calc(100% - 36px);margin:6px 10px}
 #day-evidence.is-onset-cue[data-companion-layout]{top:80px}#day-evidence.is-onset-cue[data-companion-layout] .day-source-heading{display:none}
 #day-evidence.is-onset-cue[data-companion-layout] .day-source-figure{display:flex;flex-direction:column}
 #day-evidence.is-onset-cue[data-companion-layout] .day-source-image{flex:1;min-height:90px}
 #day-evidence.is-onset-cue[data-companion-layout] figcaption{flex:none;max-height:30%;padding:5px 10px;width:100%;box-sizing:border-box}
 #day-evidence.is-onset-cue[data-companion-layout] .day-onset-scope{font-size:10px}
}

.day-onset-film[data-mode=model]{inset:8px 12px auto auto;max-width:calc(100% - 24px)}
.day-onset-film[data-mode=model] header{background:#10212ae8;border:1px solid #354a56;border-radius:4px;min-height:0;padding:5px;justify-content:flex-end}
.day-onset-film[data-mode=model] header>div,.day-onset-film[data-mode=model] .onset-model-basis{display:none}
.day-onset-film[data-mode=model] nav button:last-child{flex-basis:auto}
@media(max-width:700px){.day-onset-film[data-mode=model]{inset:6px 8px auto auto}.day-onset-film[data-mode=model] nav{justify-content:flex-end}}

.day-onset-film .onset-model-play{background:#b8d1dc;color:#10212a;border-color:#d1e4ec;font-weight:600;min-width:96px}

/* Keep onset controls clear of the evidence key on narrow screens. */
@media(max-width:700px){
 #scene-wrap:has(.day-onset-film[data-mode=model]:not([hidden])) .day-shot-locator{display:none}
 #scene-wrap:has(.day-onset-film[data-mode=model]:not([hidden])) .day-building-locator{top:64px}
 #scene-wrap:has(.day-onset-film[data-mode=model]:not([hidden])) .day-tilt-views{top:64px;bottom:auto;left:132px;right:8px}
 #scene-wrap:has(.day-onset-film[data-mode=model]:not([hidden])) .day-tilt-views>div{flex-wrap:wrap}
 #scene-wrap:has(.day-onset-film[data-mode=model]:not([hidden])) .day-tilt-views button{min-height:36px;padding:4px 6px}
}

/* The extra onset comparison control must not push Next off a narrow screen. */
@media(max-width:380px){
 .model-workspace.story-shell.section-playback:not(.towers-home) #transport .transport-main:has(#story-footage-open:not([hidden])) {flex-wrap:wrap;height:auto}
 .model-workspace.story-shell.section-playback:not(.towers-home) #transport .transport-main:has(#story-footage-open:not([hidden])) #next-section {margin-left:auto}
}
