/* A reserved bottom rail, including fullscreen presentations. */
:root { --course-history-height: calc(58px + env(safe-area-inset-bottom, 0px)); }
body.has-course-history { padding-bottom: var(--course-history-height); }
.course-history { position:fixed; z-index:20000; inset:auto 0 0; height:var(--course-history-height); box-sizing:border-box; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:6px 12px calc(6px + env(safe-area-inset-bottom, 0px)); background:#0c1d30; border-top:1px solid #496176; color:#fff; }
.course-history button,.course-history a { box-sizing:border-box; min-height:44px; display:inline-flex; align-items:center; justify-content:center; gap:8px; padding:8px 14px; font:600 14px/1.2 system-ui,sans-serif; color:#fff; border:1px solid #72869a; border-radius:8px; background:#172e45; text-decoration:none; }
.course-history button:not(:disabled),.course-history a { cursor:pointer; }
.course-history button:disabled { opacity:.4; cursor:default; }
.course-history :focus-visible { outline:3px solid #67e8f9; outline-offset:2px; }
.course-history [hidden] { display:none; }
body.has-course-history .panorama-v2-shell.is-fullscreen-fallback,body.has-course-history .panorama-secondary-infographic.is-fullscreen-fallback { bottom:var(--course-history-height); height:calc(100dvh - var(--course-history-height)); }
body.has-course-history .panorama-v2-shell.is-fullscreen-fallback .panorama-v2-viewport,body.has-course-history .panorama-v2-shell:fullscreen .panorama-v2-viewport { height:calc(100dvh - 145px - var(--course-history-height)); }
body.has-course-history :fullscreen { box-sizing:border-box; padding-bottom:var(--course-history-height); overflow:auto; }
@media(max-width:480px) { .course-history { gap:6px; padding-inline:6px; } .course-history button,.course-history a { font-size:12px; padding-inline:9px; } }
/* Backdrop filters create a fixed-position containing block: release it for the CSS fullscreen re-entry. */
body.panorama-v2-fullscreen-fallback .panorama-opening-card { backdrop-filter:none; -webkit-backdrop-filter:none; }
