#demonstration-chooser{max-width:550px;width:calc(100% - 40px);padding:28px;background:#faf8ef;color:#29483d;border:1px solid #b9c9b5;border-radius:18px;font:15px/1.5 system-ui}
#demonstration-chooser::backdrop{background:#18372d66}
#demonstration-chooser h2{font:30px/1.1 Georgia,serif}
#demonstration-chooser nav,#demonstration-cue nav{display:flex;gap:6px;flex-wrap:wrap}
#demonstration-chooser button,#demonstration-cue button{padding:8px 11px;border:1px solid #bcc8b8;border-radius:7px;background:#fffdf6;color:#29483d;font:inherit;cursor:pointer}
#demonstration-chooser [data-demo-scope="both"],#demonstration-cue #demo-next{background:#315b4a;color:white}
#demonstration-cue{position:fixed;z-index:44;top:82px;left:20px;width:310px;padding:16px;border:1px solid #b9c9b5;border-radius:14px;background:#faf8eff5;color:#29483d;box-shadow:0 7px 24px #19382b18;font:13px/1.4 system-ui}
#demonstration-cue[hidden]{display:none}
#demonstration-cue small{font-size:10px;letter-spacing:.05em}
#demonstration-cue h2{font:23px/1.1 Georgia,serif;margin:8px 0 12px}
#demonstration-cue details{margin:10px 0}#demonstration-cue summary{cursor:pointer}
#demonstration-cue button:disabled{opacity:.45;cursor:default}
.demonstration-active #path-panel{top:330px;max-height:calc(100vh - 440px)}
.demo-copy-note{padding:9px;border-left:3px solid #aa8654;background:#f4eddc;font:12px/1.5 system-ui}
@media(max-width:900px){
 #demonstration-cue{top:auto;bottom:10px;left:10px;right:10px;width:auto;padding:10px 14px;max-height:40vh;overflow:auto}
 #demonstration-cue h2{font-size:18px;margin:4px 0 6px}#demonstration-cue details{margin:5px 0}
 .demonstration-active .view-tabs{display:none!important}
 .demonstration-active #inspector,.demonstration-active #scenario{bottom:calc(var(--demonstration-height,160px) + 30px);max-height:calc(100vh - var(--demonstration-height,160px) - 110px)}
 .demonstration-active #path-panel{top:82px;bottom:calc(var(--demonstration-height,160px) + 30px);max-height:calc(100vh - var(--demonstration-height,160px) - 120px)}
}

/* One route through the rehearsal: the presenter controls advance the prepared
   connection/evidence stops; free-exploration controls return after it ends. */
.demonstration-active #connection-travel,.demonstration-active #world-journey-controls,.demonstration-active #visual-story-controls,.demonstration-active #scenario-toggle{display:none!important}
@media(max-width:900px){
 .immersive.demonstration-active .world-controls{display:none}
 .demonstration-active.inspector-open .world-controls,.demonstration-active.scenario-open .world-controls,.demonstration-active.explorer-open .world-controls{display:none}
}
@media(max-width:900px){#demonstration-cue nav{position:sticky;bottom:0;background:#faf8ef;padding-top:5px}}
@media(max-width:400px){#demonstration-cue nav{gap:4px;flex-wrap:nowrap}#demonstration-cue button{font-size:12px;padding:7px 8px;white-space:nowrap}}

/* Preview the destination in the primary action, including evidence boundaries. */
#demonstration-cue nav{display:grid;grid-template-columns:1fr 1fr 1fr}
#demonstration-cue #demo-next{grid-column:1/-1;text-align:left;white-space:normal;line-height:1.35;padding:9px 11px}
#demo-next .demo-next-scope{display:block;font-size:10px;font-weight:400;letter-spacing:.025em;margin-bottom:3px}
#demo-next strong{display:block;font-size:13px;font-weight:600}
#demonstration-cue #demo-next[data-boundary="simulated"]{background:#765328;border-color:#765328}
#demonstration-cue #demo-next[data-boundary="public"]{background:#315b4a}
#demonstration-cue #demo-previous,#demonstration-cue #demo-end{font-size:12px;padding:7px 8px}

.demo-location{display:flex;align-items:center;gap:8px}.demo-location #demo-scope-label{flex:1;min-width:0}
#demonstration-cue #demo-overview-open{padding:5px 7px;font-size:11px;flex:none;white-space:nowrap}
#demo-overview{width:min(520px,calc(100vw - 24px));max-height:calc(100dvh - 24px);box-sizing:border-box;overflow:auto;padding:20px;border:1px solid #bccbb9;border-radius:16px;background:#faf8ef;color:#29483d;font:13px/1.4 system-ui}
#demo-overview::backdrop{background:#18372d66;backdrop-filter:blur(4px)}
#demo-overview h2{font:27px Georgia;margin:0 0 8px}#demo-overview h3{font-size:11px;margin:14px 0 7px;text-transform:uppercase;letter-spacing:.05em}
.demo-overview-current{font-size:12px;margin:0 0 12px}.demo-overview-projects{display:flex;gap:6px}.demo-overview-projects button{flex:1}
#demo-overview button{font:inherit;color:inherit;padding:9px;border:1px solid #b9c9b5;border-radius:8px;background:#fffdf6;cursor:pointer}
#demo-overview button:focus-visible{outline:3px solid #a87932;outline-offset:2px}
#demo-overview .demo-overview-projects [aria-pressed=true]{background:#315b4a;color:white}
.demo-overview-stops{display:grid;grid-template-columns:1fr 1fr;gap:6px}
#demo-overview .demo-overview-stops button{text-align:left;font-size:12px;min-height:44px}
#demo-overview .simulated h3{color:#765328}#demo-overview .simulated button{background:#f6eddf;border-color:#cdb58f}
#demo-overview [aria-current=step]{box-shadow:inset 0 0 0 2px #315b4a}#demo-overview [aria-current=step] small{display:block;font-size:10px;font-weight:600;margin-top:4px}
.demo-overview-note{font-size:11px;margin:14px 0 10px}#demo-overview-close{width:100%;position:sticky;bottom:0}
@media(max-width:400px){#demo-overview{padding:14px}.demo-overview-stops{gap:5px}#demo-overview .demo-overview-stops button{padding:7px;font-size:11px}}

#demonstration-cue #demo-return{flex:none;min-width:30px;padding:4px 7px;font-size:18px;line-height:1.1}
.demo-visited-count{font-size:11px;margin:-5px 0 10px;color:#4e6758}
#demo-overview #demo-overview-return{width:100%;text-align:left;font-size:11px;margin-bottom:10px;background:#e9efe5}
#demo-overview .demo-visit-status{display:block;font-size:10px;margin-top:4px;color:#355d4c}

#demo-resume-go{width:100%;text-align:left;background:#315b4a!important;color:white!important}#demo-resume p{font-size:12px;line-height:1.4;margin:8px 0}#demo-pause{width:100%;margin:0 0 7px}.demo-save-notice{font-size:11px;color:#765328}
#demonstration-chooser{max-height:calc(100dvh - 24px);overflow:auto;box-sizing:border-box}

/* Keep pause discoverable beside the destructive-to-progress End action. */
#demonstration-cue #demo-pause-current{font-size:12px;padding:7px 8px;background:#e9efe5}
#demonstration-chooser h2{margin:0 0 16px}
#demonstration-chooser .demo-entry-help{font-size:13px}
.demo-entry-details{margin:14px 0;font-size:12px}.demo-entry-details summary{cursor:pointer}
@media(max-width:400px){#demonstration-chooser{padding:18px}#demonstration-chooser h2{font-size:24px;margin-bottom:12px}#demonstration-cue nav{gap:4px}#demonstration-cue #demo-previous,#demonstration-cue #demo-pause-current,#demonstration-cue #demo-end{padding:7px 3px;font-size:11px}}

/* The narrow-screen utility row occupies the evidence close-button area. */
@media(max-width:480px){.demonstration-active.inspector-open .world-utility,.demonstration-active.scenario-open .world-utility{display:none}}

/* On-demand stop guide keeps talking points readable without crowding the world. */
#demonstration-cue #demo-guide-open{padding:4px 0;margin:0 0 8px;border:0;background:transparent;font-size:12px;text-decoration:underline;text-underline-offset:3px}
#demo-guide{width:min(460px,calc(100vw - 24px));max-height:calc(100dvh - 24px);box-sizing:border-box;overflow:auto;padding:22px;border:1px solid #b9c9b5;border-radius:16px;background:#faf8ef;color:#29483d;font:14px/1.45 system-ui}
#demo-guide::backdrop{background:#18372d66;backdrop-filter:blur(3px)}
#demo-guide h2{font:25px/1.15 Georgia;margin:8px 0 18px}#demo-guide h3{font-size:11px;text-transform:uppercase;letter-spacing:.04em;margin:0 0 4px}#demo-guide section p{margin:0}
#demo-guide section{margin:12px 0;padding:10px;border-left:3px solid #729580;background:#eef2e9}
#demo-guide section+section{background:#f4eddf;border-color:#a98447}#demo-guide .demo-guide-scope{font-size:11px;margin:0}
#demo-guide[data-layer=simulated] .demo-guide-scope{color:#765328;font-weight:600}
#demo-guide a{font-size:12px;color:inherit}#demo-guide-close{display:block;width:100%;margin-top:16px;padding:9px;border:1px solid #b9c9b5;border-radius:8px;background:#fffdf6;color:inherit;font:inherit;cursor:pointer}
@media(max-width:400px){#demo-guide{padding:16px;font-size:13px}#demo-guide h2{font-size:22px;margin-bottom:12px}}

/* Keep the guide mounted across prepared stops; content scrolls above its controls. */
#demo-guide{overflow:hidden}
#demo-guide[open]{display:flex;flex-direction:column}
.demo-guide-content{min-height:0;overflow:auto;overscroll-behavior:contain}
.demo-guide-navigation{display:grid;grid-template-columns:1fr 1fr;gap:6px;padding-top:12px;flex:none}
.demo-guide-navigation button{padding:9px;border:1px solid #b9c9b5;border-radius:8px;background:#fffdf6;color:inherit;font:12px/1.3 system-ui;cursor:pointer}
.demo-guide-navigation button:disabled{opacity:.45;cursor:default}
#demo-guide-next{grid-column:1/-1;text-align:left;background:#315b4a;color:white}
#demo-guide-next[data-boundary=simulated]{background:#765328;border-color:#765328}
#demo-guide-next span,#demo-guide-next strong{display:block}#demo-guide-next span{font-size:10px;margin-bottom:3px}
#demo-guide .demo-guide-navigation #demo-guide-close{margin:0;padding:9px;font-size:12px}
#demo-guide button:focus-visible{outline:3px solid #a87932;outline-offset:2px}

#demo-guide-jump{margin:0 0 12px;font-size:12px}
#demo-guide-jump summary{cursor:pointer;text-decoration:underline;text-underline-offset:3px}
.demo-guide-jump-row{display:flex;gap:6px;margin-top:8px}
#demo-guide-destination{flex:1;min-width:0;max-width:100%;padding:8px;border:1px solid #b9c9b5;border-radius:7px;background:#fffdf6;color:#29483d;font:12px system-ui}
#demo-guide-go{flex:none;padding:8px 12px;border:1px solid #b9c9b5;border-radius:7px;background:#315b4a;color:white;font:12px system-ui;cursor:pointer}
#demo-guide-go:disabled{opacity:.45;cursor:default}
#demo-guide-destination:focus-visible{outline:3px solid #a87932;outline-offset:2px}

#demo-guide-destination-note{font-size:11px;margin:5px 0 0;color:#5d695c}

#demo-guide-return{display:block;width:100%;text-align:left;margin:0 0 10px;padding:8px 10px;border:1px solid #b9c9b5;border-radius:8px;background:#e9efe5;color:#29483d;font:11px/1.4 system-ui;cursor:pointer}
#demo-guide-return:disabled{opacity:.45;cursor:default}
