/* Shared story presentation: scene-specific highlights remain in their modules. */
body.story-mode{--story-ink:#294b42;--story-muted:#587568;--story-accent:#306c5d;--story-line:#b5c9bb;--story-paper:rgba(248,250,246,.84)}
body.story-mode #space-caption #spatial-key{font-size:10px;line-height:1.5;color:#496d60;margin-top:5px}
body.story-mode:not(.local-replay):not([data-presentation-step="10"]) header{background:linear-gradient(180deg,rgba(241,244,239,.96),rgba(241,244,239,.70) 75%,transparent)}
body.story-mode:not(.local-replay):not([data-presentation-step="10"]) h1{font-size:19px;letter-spacing:.08em;font-weight:600}
body.story-mode:not(.local-replay):not([data-presentation-step="10"]) #space-navigation button{background:var(--story-paper);border-color:rgba(123,151,138,.3);color:#496a60;border-radius:4px}
body.story-mode:not(.local-replay):not([data-presentation-step="10"]) #space-navigation [aria-current="true"]{background:#315f54;border-color:#315f54;color:white}
body.story-mode:not(.local-replay):not([data-presentation-step="10"]) #space-caption{border-left:2px solid #6c9b89;padding-left:16px}
body.story-mode:not(.local-replay):not([data-presentation-step="10"]) #space-caption>span{font-size:10px;letter-spacing:.12em;color:#648177}
body.story-mode:not(.local-replay):not([data-presentation-step="10"]) #space-caption h2{color:var(--story-ink);font-weight:600;letter-spacing:.025em}
body.story-mode:not(.local-replay):not([data-presentation-step="10"]) #space-caption p{color:#48665b}
body.story-mode:not(.local-replay):not([data-presentation-step="10"]) #story-next{background:var(--story-accent);border-color:var(--story-accent)}
body.story-mode:not(.local-replay):not([data-presentation-step="10"]) #story-auto{border-color:#93b3a4;color:#346e5d}
body.story-mode:not(.local-replay):not([data-presentation-step="10"]) #story-chapters{max-width:none;padding-top:10px;border-top:1px solid rgba(114,142,126,.32)}
body.story-mode:not(.local-replay):not([data-presentation-step="10"]) #story-chapters [aria-current="true"]{color:#2b6d5b;border-bottom:2px solid #306c5d}
@media(min-width:651px) and (max-width:1000px){
 body.story-mode[data-space="region"]:not(.local-replay):not([data-presentation-step="10"]) #facilities{top:132px;bottom:auto;right:20px;z-index:4}
 body.story-mode[data-space="region"]:not(.local-replay):not([data-presentation-step="10"]) :is(#device-note,#facility-panel){top:175px;right:20px;max-height:calc(100dvh - 300px);overflow:auto}
}
@media(max-width:650px){
 body.story-mode:not(.local-replay):not([data-presentation-step="10"]) h1{font-size:16px}
 body.story-mode:not(.local-replay):not([data-presentation-step="10"]) #space-caption{padding-left:10px}
 body.story-mode:not(.local-replay):not([data-presentation-step="10"]) #story-chapters{padding-top:5px}
}
