/* «Стиль музея»: scenario cards share the left menu palette and typography. */
:root{
 --event-panel-width:320px;
 --event-panel-edge:15px;
 --event-panel-top:15px;
 --history-dock-height:0px;
 --museum-dock-reserve:calc(var(--museum-edge) + var(--launch-dock-height) + var(--museum-dock-gap));
}
/* Keep the historical year input for reconstructions; remove its public UI. */
body #timeDock{display:none!important}
body :is(#buranLossPanel,#buranLaunchPanel,#buranLandingPanel,#energiaLaunchPanel,#soyuzLaunchPanel,#puaLoadingPanel,.fall-player,.fall-card){
 position:fixed!important;z-index:270;
 top:var(--event-panel-top)!important;right:var(--event-panel-edge)!important;
 bottom:auto!important;left:auto!important;transform:none!important;
 width:var(--event-panel-width)!important;max-width:calc(100vw - 20px)!important;
 max-height:calc(100dvh - var(--event-panel-top) - var(--museum-dock-reserve))!important;
 box-sizing:border-box;padding:18px!important;overflow:auto;overscroll-behavior:contain;
 background:var(--museum-style-surface)!important;color:var(--museum-style-title)!important;
 border:1px solid var(--museum-ui-border)!important;border-radius:17px!important;
 box-shadow:var(--museum-style-shadow);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);
 font:500 12px/1.55 Montserrat,Arial,sans-serif!important;
 scrollbar-width:thin;scrollbar-color:#617783 #0c1d29;
}
body :is(#buranLossPanel,#buranLaunchPanel,#buranLandingPanel,#energiaLaunchPanel,#soyuzLaunchPanel,#puaLoadingPanel,.fall-player,.fall-card)[hidden]{display:none!important}
body :is(#buranLossPanel,#buranLaunchPanel,#buranLandingPanel,#energiaLaunchPanel,#soyuzLaunchPanel,#puaLoadingPanel,.fall-player,.fall-card) *{box-sizing:border-box;min-width:0}
body :is(#buranLossPanel,#buranLaunchPanel,#buranLandingPanel,#energiaLaunchPanel,#soyuzLaunchPanel,#puaLoadingPanel,.fall-player,.fall-card) :is(h2,#soyuzTitle){
 font:500 20px/1.22 Bounded,Montserrat,Arial,sans-serif!important;
 color:var(--museum-style-title)!important;letter-spacing:-.035em!important;overflow-wrap:anywhere;
}
body .fall-player>strong{font:500 18px/1.3 Bounded,Montserrat,Arial,sans-serif;margin-right:30px;overflow-wrap:anywhere;color:var(--museum-style-title)}
body :is(#buranLossPanel,#buranLaunchPanel,#buranLandingPanel,#energiaLaunchPanel,#soyuzLaunchPanel,#puaLoadingPanel,.fall-player,.fall-card) :is(header,.soyuz-launch-head,.pua-heading){align-items:flex-start;gap:8px}
body :is(#buranLossPanel,#buranLaunchPanel,#buranLandingPanel,#energiaLaunchPanel,#soyuzLaunchPanel,#puaLoadingPanel,.fall-player,.fall-card) :is(.loss-eyebrow,.buran-launch-eyebrow,.buran-event-date,.energia-kicker,.soyuz-launch-eyebrow,.pua-overline,.fall-kicker){color:var(--museum-style-accent)!important;font:700 9px/1.5 Montserrat,Arial,sans-serif!important;letter-spacing:.07em!important}
body :is(#buranLossPanel,#buranLaunchPanel,#buranLandingPanel,#energiaLaunchPanel,#soyuzLaunchPanel,#puaLoadingPanel,.fall-player,.fall-card) p{font:500 12px/1.65 Montserrat,Arial,sans-serif;color:var(--museum-style-copy)!important;min-height:0}
body :is(#buranLossPanel,#buranLaunchPanel,#buranLandingPanel,#energiaLaunchPanel,#soyuzLaunchPanel,#puaLoadingPanel,.fall-player,.fall-card) :is(button,select){
 min-height:40px;padding:8px 10px;border:1px solid var(--museum-style-control-border)!important;border-radius:8px!important;
 background:var(--museum-style-control)!important;color:var(--museum-style-control-text)!important;cursor:pointer;
 font:650 10px/1.4 Montserrat,Arial,sans-serif!important;white-space:normal;
}
body :is(#buranLossPanel,#buranLaunchPanel,#buranLandingPanel,#energiaLaunchPanel,#soyuzLaunchPanel,#puaLoadingPanel,.fall-player,.fall-card) button:hover{background:var(--museum-style-control-hover)!important;border-color:var(--museum-style-control-hover-border)!important}
body :is(#buranLossPanel,#buranLaunchPanel,#buranLandingPanel,#energiaLaunchPanel,#soyuzLaunchPanel,#puaLoadingPanel,.fall-player,.fall-card) :is(button[aria-pressed=true],.fall-play,#soyuzPlay,#buranLossPlay,#buranLaunchPlay,#buranLandingPause,#energiaPlay,#puaPlay,[data-control=pause]){
 background:var(--museum-style-control-active)!important;border-color:var(--museum-style-control-active-border)!important;color:var(--museum-style-control-active-text)!important;box-shadow:inset 0 1px #ffffff17,0 1px 6px #0006;
}
body :is(#buranLossPanel,#buranLaunchPanel,#buranLandingPanel,#energiaLaunchPanel,#soyuzLaunchPanel,#puaLoadingPanel,.fall-player,.fall-card) :is(button,input,select,summary,a):focus-visible{outline:2px solid var(--museum-style-accent)!important;outline-offset:3px}
body button:is(#buranLossClose,#buranLaunchClose,#energiaClose,#soyuzClose,#puaClose,.fall-stop,.fall-close){
 flex:0 0 36px;width:36px;min-height:36px!important;height:36px!important;padding:0!important;font:400 23px/1 Arial,sans-serif!important;
}
body :is(#buranLossPanel,#buranLaunchPanel,#buranLandingPanel,#energiaLaunchPanel,#soyuzLaunchPanel,#puaLoadingPanel,.fall-player,.fall-card) input[type=range]{accent-color:var(--museum-style-accent)!important;width:100%;min-height:22px;cursor:pointer}
body :is(#buranLossPanel,#buranLaunchPanel,#buranLandingPanel,#energiaLaunchPanel,#soyuzLaunchPanel,#puaLoadingPanel,.fall-player,.fall-card) :is(nav,.loss-buttons,.buran-launch-buttons,.buran-event-controls,.soyuz-launch-actions,.pua-playback,.pua-views,.energia-actions,.energia-cameras){display:flex;flex-wrap:wrap;gap:6px;align-items:center}
body :is(#buranLossPanel,#buranLaunchPanel,#buranLandingPanel,#energiaLaunchPanel,#soyuzLaunchPanel,#puaLoadingPanel,.fall-player,.fall-card) details{margin-top:12px;border-top:1px solid var(--museum-ui-border);padding-top:10px;color:#aabeca;font-size:11px}
body :is(#buranLossPanel,#buranLaunchPanel,#buranLandingPanel,#energiaLaunchPanel,#soyuzLaunchPanel,#puaLoadingPanel,.fall-player,.fall-card) summary{cursor:pointer;line-height:1.5}
body :is(#buranLossPanel,#buranLaunchPanel,#buranLandingPanel,#energiaLaunchPanel,#soyuzLaunchPanel,#puaLoadingPanel,.fall-player,.fall-card) a{color:var(--museum-style-accent)!important;text-underline-offset:3px;overflow-wrap:anywhere}
body :is(#buranLossPanel,#buranLaunchPanel) :is(.loss-phase,.buran-launch-phase){flex-wrap:wrap}
body :is(#buranLossTime,#buranLaunchTime,.fall-player output){white-space:nowrap;color:#aabeca;font-variant-numeric:tabular-nums}
body .buran-event-top,body .buran-event-head{flex-wrap:wrap;gap:6px}
body .buran-event-top>span:last-child{font-size:8px;letter-spacing:.03em}
body #buranLandingClock{font-size:18px;white-space:nowrap}
body .fall-card h2{margin-top:12px}body .fall-card .fall-note{border-color:var(--museum-style-accent)}
body :is(#buranLossPanel,#buranLaunchPanel,#buranLandingPanel,#energiaLaunchPanel,#soyuzLaunchPanel,#puaLoadingPanel,.fall-player,.fall-card) .fall-phase{color:var(--museum-style-accent)!important;font-weight:650;margin:12px 0}
body :is(#buranLossPanel,#buranLaunchPanel,#buranLandingPanel,#energiaLaunchPanel,#soyuzLaunchPanel,#puaLoadingPanel,.fall-player,.fall-card) p.fall-player-note{font-size:9px;color:#aabeca!important}
body .fall-player .fall-event-summary{font-size:11px}
body .fall-player details a{display:block;margin:8px 0}
/* Narrative and playback precede optional telemetry on the narrow card. */
body #energiaLaunchPanel:not([hidden]){display:flex;flex-direction:column}
body #energiaLaunchPanel>*{flex-shrink:0;order:10}
body #energiaLaunchPanel .energia-event-head{order:0}
body #energiaLaunchPanel .energia-primary{order:1;grid-template-columns:1fr;gap:6px}
body #energiaLaunchPanel .energia-fact{order:2;min-height:0;padding:8px 0}
body #energiaLaunchPanel .energia-timeline{order:3}
body #energiaLaunchPanel .energia-actions{order:4}
body #energiaLaunchPanel .energia-cameras{order:5}
body #energiaLaunchPanel .energia-telemetry{order:6;grid-template-columns:repeat(2,minmax(0,1fr))}
body #energiaLaunchPanel .energia-systems{order:7;grid-template-columns:repeat(2,minmax(0,1fr))}
body #energiaLaunchPanel .energia-status{order:8}
/* A single event owns the right-hand reading space. */
body.pua-loading-active #museumLeftStack{display:flex!important}
body:has(:is(#buranLossPanel,#buranLaunchPanel,#buranLandingPanel,#energiaLaunchPanel,#soyuzLaunchPanel,#puaLoadingPanel,.fall-player,.fall-card):not([hidden])) :is(#hero,#info,#workshopPanel){visibility:hidden!important;pointer-events:none!important}
@media(max-width:850px){
 :root{--event-panel-width:min(360px,calc(100vw - 20px));--event-panel-edge:10px;--event-panel-top:calc(env(safe-area-inset-top,0px) + 64px)}
 body :is(#buranLossPanel,#buranLaunchPanel,#buranLandingPanel,#energiaLaunchPanel,#soyuzLaunchPanel,#puaLoadingPanel,.fall-player,.fall-card){max-height:38dvh!important;padding:14px!important;border-radius:16px!important}
 body :is(#buranLossPanel,#buranLaunchPanel,#buranLandingPanel,#energiaLaunchPanel,#soyuzLaunchPanel,#puaLoadingPanel,.fall-player,.fall-card) :is(h2,#soyuzTitle){font-size:17px!important}
 body :is(#buranLossPanel,#buranLaunchPanel,#buranLandingPanel,#energiaLaunchPanel,#soyuzLaunchPanel,#puaLoadingPanel,.fall-player,.fall-card) :is(button,select){min-height:44px}
 body.mobile-menu-open :is(#buranLossPanel,#buranLaunchPanel,#buranLandingPanel,#energiaLaunchPanel,#soyuzLaunchPanel,#puaLoadingPanel,.fall-player,.fall-card){visibility:hidden!important;pointer-events:none!important}
 body.mobile-menu-open #museumLeftStack,body.mobile-menu-open #ui{visibility:visible!important;pointer-events:auto!important;opacity:1!important}
 /* The workshop toolbar shares the mobile header without covering Menu/Home. */
 body.workshop-mode #workshopBar{top:calc(env(safe-area-inset-top,0px) + 8px);left:64px;right:64px;transform:none;width:auto;min-height:44px;padding:5px;gap:4px;justify-content:space-between;border:1px solid #ffffff30;border-radius:12px}
 body.workshop-mode #workshopBar b{display:none}
 body.workshop-mode #workshopBar :is(button,a){min-height:32px;padding:5px;font-size:9px;white-space:nowrap}
 body.workshop-mode #museumMobileBar .mobile-title{visibility:hidden}
}

/* Match navigation's subtle divisions and warm highlights in every scenario. */
body :is(#buranLossPanel,#buranLaunchPanel,#buranLandingPanel,#energiaLaunchPanel,#soyuzLaunchPanel,#puaLoadingPanel,.fall-player,.fall-card) h3{color:var(--museum-style-title);font-family:Montserrat,Arial,sans-serif}
body :is(#buranLossPanel,#buranLaunchPanel,#buranLandingPanel,#energiaLaunchPanel,#soyuzLaunchPanel,#puaLoadingPanel,.fall-player,.fall-card) :is(.buran-event-fact,.energia-fact){border-color:var(--museum-style-accent)}
body :is(#buranLossPanel,#buranLaunchPanel,#buranLandingPanel,#energiaLaunchPanel,#soyuzLaunchPanel,#puaLoadingPanel,.fall-player,.fall-card) button:disabled{cursor:wait;opacity:.55}
@media(prefers-reduced-transparency:reduce){
 body :is(#buranLossPanel,#buranLaunchPanel,#buranLandingPanel,#energiaLaunchPanel,#soyuzLaunchPanel,#puaLoadingPanel,.fall-player,.fall-card){background:#10202b!important;backdrop-filter:none;-webkit-backdrop-filter:none}
}

.mobile-event-toggle{display:none!important}
@media(max-width:850px){
 body :is(#buranLossPanel,#buranLaunchPanel,#buranLandingPanel,#energiaLaunchPanel,#soyuzLaunchPanel,#puaLoadingPanel,.fall-player,.fall-card)[data-mobile-event]{
  backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
  background:linear-gradient(145deg,#14222c,#07131d)!important;
 }
 body :is(#buranLossPanel,#buranLaunchPanel,#buranLandingPanel,#energiaLaunchPanel,#soyuzLaunchPanel,#puaLoadingPanel,.fall-player,.fall-card)[data-mobile-event] .mobile-event-toggle{
  display:block!important;min-height:44px!important;margin-top:12px;width:100%;
  color:var(--museum-style-accent)!important;
 }
 body :is(#buranLossPanel,#buranLaunchPanel,#buranLandingPanel,#energiaLaunchPanel,#soyuzLaunchPanel,#puaLoadingPanel,.fall-player,.fall-card)[data-mobile-event][data-mobile-expanded="true"] .mobile-event-toggle{position:sticky;top:0;z-index:2;order:-1;margin:0 0 12px;background:#203642!important}
 body :is(#buranLossPanel,#buranLaunchPanel,#buranLandingPanel,#energiaLaunchPanel,#soyuzLaunchPanel,#puaLoadingPanel,.fall-player,.fall-card)[data-mobile-event][data-mobile-expanded="true"]{
  max-height:calc(100dvh - var(--event-panel-top) - var(--museum-dock-reserve))!important;
 }
 body :is(#buranLossPanel,#buranLaunchPanel,#buranLandingPanel,#energiaLaunchPanel,#soyuzLaunchPanel,#puaLoadingPanel,.fall-player,.fall-card)[data-mobile-event][data-mobile-expanded="false"]{
  display:block!important;width:min(290px,calc(100vw - 20px))!important;
  min-height:112px;max-height:calc(100dvh - var(--event-panel-top) - 18px)!important;
  padding:11px 12px 62px!important;border-radius:15px!important;
  cursor:pointer;overflow:hidden;
 }
 body :is(#buranLossPanel,#buranLaunchPanel,#buranLandingPanel,#energiaLaunchPanel,#soyuzLaunchPanel,#puaLoadingPanel,.fall-player,.fall-card)[data-mobile-event][data-mobile-expanded="false"]> :not(.mobile-event-keep):not(.mobile-event-toggle){display:none!important}
 body :is(#buranLossPanel,#buranLaunchPanel,#buranLandingPanel,#energiaLaunchPanel,#soyuzLaunchPanel,#puaLoadingPanel,.fall-player,.fall-card)[data-mobile-event][data-mobile-expanded="false"] .mobile-event-heading{
  margin:0!important;padding:0 33px 0 0!important;border:0!important;gap:5px;min-height:22px;
 }
 body :is(#buranLossPanel,#buranLaunchPanel,#buranLandingPanel,#energiaLaunchPanel,#soyuzLaunchPanel,#puaLoadingPanel,.fall-player,.fall-card)[data-mobile-event][data-mobile-expanded="false"] :is(h2,#soyuzTitle,.mobile-event-heading:is(strong)){
  font:650 13px/1.3 Bounded,Montserrat,Arial,sans-serif!important;
  margin:0!important;letter-spacing:-.025em!important;
 }
 body :is(#buranLossPanel,#buranLaunchPanel,#buranLandingPanel,#energiaLaunchPanel,#soyuzLaunchPanel,#puaLoadingPanel,.fall-player,.fall-card)[data-mobile-event][data-mobile-expanded="false"] :is(.loss-eyebrow,.buran-launch-eyebrow,.energia-kicker,.energia-tag,.soyuz-launch-eyebrow,.pua-overline,.buran-event-top,.fall-kicker){display:none!important}
 body :is(#buranLossPanel,#buranLaunchPanel,#buranLandingPanel,#energiaLaunchPanel,#soyuzLaunchPanel,#puaLoadingPanel,.fall-player,.fall-card)[data-mobile-event][data-mobile-expanded="false"] .mobile-event-status{
  margin:6px 0 0!important;padding:0!important;font:550 11px/1.35 Montserrat,Arial,sans-serif!important;
  color:var(--museum-style-copy)!important;gap:4px 9px;
 }
 body :is(#buranLossPanel,#buranLaunchPanel,#buranLandingPanel,#energiaLaunchPanel,#soyuzLaunchPanel,#puaLoadingPanel,.fall-player,.fall-card)[data-mobile-event][data-mobile-expanded="false"] .mobile-event-status :is(h3,strong,b,span,output){font-size:11px!important;line-height:1.35!important;margin:0!important}
 body :is(#buranLossPanel,#buranLaunchPanel,#buranLandingPanel,#energiaLaunchPanel,#soyuzLaunchPanel,#puaLoadingPanel,.fall-player,.fall-card)[data-mobile-event][data-mobile-expanded="false"] .energia-primary{display:flex!important;flex-wrap:wrap}
 body :is(#buranLossPanel,#buranLaunchPanel,#buranLandingPanel,#energiaLaunchPanel,#soyuzLaunchPanel,#puaLoadingPanel,.fall-player,.fall-card)[data-mobile-event][data-mobile-expanded="false"] .energia-primary .energia-small{display:none!important}
 body :is(#buranLossPanel,#buranLaunchPanel,#buranLandingPanel,#energiaLaunchPanel,#soyuzLaunchPanel,#puaLoadingPanel,.fall-player,.fall-card)[data-mobile-event][data-mobile-expanded="false"] .mobile-event-actions{margin:0!important;padding:0!important;min-height:0!important;height:0}
 body :is(#buranLossPanel,#buranLaunchPanel,#buranLandingPanel,#energiaLaunchPanel,#soyuzLaunchPanel,#puaLoadingPanel,.fall-player,.fall-card)[data-mobile-event][data-mobile-expanded="false"] .mobile-event-actions>:not(.mobile-event-primary):not(.mobile-event-close){display:none!important}
 body :is(#buranLossPanel,#buranLaunchPanel,#buranLandingPanel,#energiaLaunchPanel,#soyuzLaunchPanel,#puaLoadingPanel,.fall-player,.fall-card)[data-mobile-event][data-mobile-expanded="false"] .mobile-event-primary{
  position:absolute;left:12px;bottom:10px;margin:0!important;width:108px;min-height:44px!important;padding:8px!important;
 }
 body :is(#buranLossPanel,#buranLaunchPanel,#buranLandingPanel,#energiaLaunchPanel,#soyuzLaunchPanel,#puaLoadingPanel,.fall-player,.fall-card)[data-mobile-event][data-mobile-expanded="false"] .mobile-event-toggle{
  position:absolute;bottom:10px;right:12px;width:calc(100% - 144px);margin:0!important;min-height:44px!important;padding:8px!important;
 }
 body :is(#buranLossPanel,#buranLaunchPanel,#buranLandingPanel,#energiaLaunchPanel,#soyuzLaunchPanel,#puaLoadingPanel,.fall-player,.fall-card)[data-mobile-event][data-mobile-expanded="false"]:not(:has(.mobile-event-primary)) .mobile-event-toggle{left:12px;width:calc(100% - 24px)}
 body :is(#buranLossPanel,#buranLaunchPanel,#buranLandingPanel,#energiaLaunchPanel,#soyuzLaunchPanel,#puaLoadingPanel,.fall-player,.fall-card)[data-mobile-event][data-mobile-expanded="false"] .mobile-event-close{
  position:absolute!important;right:4px!important;top:3px!important;width:40px!important;height:40px!important;min-height:40px!important;
  padding:0!important;margin:0!important;border:0!important;background:transparent!important;font-size:0!important;
 }
 body :is(#buranLossPanel,#buranLaunchPanel,#buranLandingPanel,#energiaLaunchPanel,#soyuzLaunchPanel,#puaLoadingPanel,.fall-player,.fall-card)[data-mobile-event][data-mobile-expanded="false"] .mobile-event-close::after{content:'×';font:400 24px/1 Arial,sans-serif}
 body #buranLandingPanel[data-mobile-expanded="false"] .buran-event-head{display:block}
 body #buranLandingPanel[data-mobile-expanded="false"] .buran-event-head::before{content:'ПОСАДКА БУРАНА';display:block;margin-bottom:5px;font:650 8px/1.3 Montserrat,Arial,sans-serif;color:var(--museum-style-accent);letter-spacing:.06em}
 body #buranLandingPanel[data-mobile-expanded="false"] #buranLandingClock{font-size:11px;display:block;margin-top:5px}
 body .fall-player[data-mobile-expanded="false"]>strong{display:block!important;padding-right:30px}
 body :is(#buranLossPanel,#buranLaunchPanel,#buranLandingPanel,#energiaLaunchPanel,#soyuzLaunchPanel,#puaLoadingPanel,.fall-player,.fall-card)[data-mobile-event][hidden]{display:none!important}
}
