:root { --motion-duration:750ms; --white-stroke: rgb(255 255 255 / 50%); color-scheme: dark; --bg: #090e15; --surface: #101923; --text: #edf3fa; --muted: #9eafc3; --line: var(--white-stroke); --accent: #9adfe6; }
/* Keep mobile text inflation from sizing inline labels and values independently. */
html { -webkit-text-size-adjust:100%; text-size-adjust:100%; }
* { box-sizing: border-box; }
/* Keep the document inside the usable browser viewport as side controls and
   folding displays change size. The backdrop can still fill the screen. */
body { margin: 0; width:100%; max-width:100svw; background: var(--bg); color: var(--text); font: 16px/1.6 Arial, sans-serif; }
main { width:100%; min-width:0; max-width: 980px; min-height: 100svh; margin: 0 auto; padding: 48px 28px 32px; display: flex; flex-direction: column; }
body.calendar-loading :is(#calendar-content,.calendar-footer) { opacity:0; pointer-events:none; }
h1 { font-size: 38px; line-height: 1.15; letter-spacing: -1px; margin: 0 0 28px; }
h2 { font-size: 21px; line-height: 1.4; margin: 0 0 8px; }
p { margin: 0 0 14px; }
.muted { color: var(--muted); }
button, input, textarea { font: inherit; border: 1.1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 6px; padding: 9px 13px; }
button { cursor: pointer; white-space: nowrap; }
button:hover { border-color: rgb(255 255 255 / 90%); }
button:disabled { opacity: .45; cursor: default; }
.camera-playback-button:disabled { opacity:1; cursor:pointer; }
.primary { background: #edf3fa; color: #101923; border-color: #edf3fa; font-weight: 700; }
button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 2px solid rgb(255 255 255 / 90%); outline-offset: 4px; }
/* Safari paints a dark full-width tap highlight over disclosure summaries.
   Keep the native keyboard focus ring, without the touch highlight. */
details { -webkit-tap-highlight-color:transparent; }
summary { background:transparent; list-style:none; cursor:pointer; }
summary::-webkit-details-marker { display:none; }
summary::before { content:''; display:inline-block; width:7px; height:7px; flex-shrink:0; align-self:center; margin-right:10px; vertical-align:.1em; border-right:1.5px solid currentColor; border-bottom:1.5px solid currentColor; transform:rotate(-45deg); transform-origin:50% 50%; transition:transform 220ms ease-in-out; }
details[open] > summary::before { transform:rotate(45deg); }
@media(prefers-reduced-motion:reduce) { summary::before { transition:none; } }
input { width: 100%; }
#trajectory-import-json { display: block; width: 100%; box-sizing: border-box; resize: vertical; margin: 8px 0; font-family: ui-monospace, monospace; }
#trajectory-import-preview { white-space: pre-wrap; overflow-wrap: anywhere; }
label { display: block; margin-bottom: 8px; }
.status-line { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.calendar-heading { display: flex; align-items: center; gap: 20px; width: fit-content; max-width: 100%; }
.calendar-heading h1 { margin: 0; }
.launch-period { display:grid; grid-template-columns:max-content max-content 3em minmax(0,1fr); justify-content:start; padding-inline:8px; align-items:start; gap:0 24px; margin:0 0 18px; }
.launch-period [data-launch-period] { border:0; border-radius:0; background:none; color:#fff; padding:8px 0; font:inherit; opacity:.55; transition:opacity var(--motion-duration) ease; }
.launch-period [data-launch-period][aria-pressed="true"] { opacity:1; font-weight:700; }
.launch-period [data-launch-period]::after { content:attr(data-label); display:block; font-weight:700; height:0; visibility:hidden; overflow:hidden; }
@media(prefers-reduced-motion:reduce) { .launch-period [data-launch-period] { transition:none; } }
.calendar-footer { margin-top:24px; padding-inline:8px; text-align:left; }
.calendar-footer p { font-size:12px; margin:0; }
.run-reveal { display: inline-flex; align-items: baseline; vertical-align: baseline; }
#feed-age { font: inherit; color: inherit; background: none; border: 0; border-radius: 0; padding: 0; }
#feed-age:disabled { opacity: 1; cursor: default; }
.run-duration-clip { display: grid; grid-template-columns: 0fr; transition: grid-template-columns var(--motion-duration) ease; }
#run-duration { min-width: 0; overflow: hidden; white-space: pre; opacity: 0; visibility: hidden; transform: translateX(-14px); transition: transform var(--motion-duration) ease, opacity var(--motion-duration) ease, visibility 0s linear var(--motion-duration); }
.run-reveal.is-open .run-duration-clip { grid-template-columns: 1fr; }
.run-reveal.is-open #run-duration { opacity: 1; visibility: visible; transform: translateX(0); transition-delay: 0s; }
@media (prefers-reduced-motion: reduce) { .run-duration-clip, #run-duration { transition: none; transform: none; } }
.launch { position: relative; display: grid; grid-template-columns: 185px minmax(0, 1fr) max-content; grid-template-areas: "when content countdown"; align-items: start; gap: 26px; padding: 27px 0; border-bottom: 1px solid var(--line); }
.launch .when { grid-area: when; }
.launch-content { grid-area: content; min-width: 0; }
.launch time { display: block; font-weight: 700; }
.launch .time { font-size: 17px; color: var(--accent); margin-top: 4px; font-variant-numeric: tabular-nums; }
.sky-conditions { display: grid; gap: 6px; margin-top: 8px; color: var(--muted); font-size: 13px; line-height: 1.4; font-variant-numeric: tabular-nums; }
.sky-row { display: grid; grid-template-columns: 35px minmax(0, 1fr); gap: 6px; }
.sky-label { opacity: .75; }
.sky-values { min-width: 0; }
.sky-detail { opacity: .75; }
.sky-detail::before { content: " · "; }
.launch .mission { margin-bottom: 5px; }
.launch-hardware { color: var(--accent); }
.launch .countdown { grid-area: countdown; justify-self: end; text-align: right; font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; margin: 0; }
.countdown-unit { font-size: .9em; opacity: .75; }
.launch .vehicle { color: var(--accent); font-size: 14px; margin-bottom: 7px; }
.launch .place { color: var(--muted); margin: 0; }
.launch .mission, .launch p { overflow-wrap: anywhere; }
.empty { padding: 40px 0; width: 100%; text-align: center; color: #ff666b; }
#manage { margin-top: auto; padding-top: 26px; }
#manage > summary { cursor: pointer; color: var(--muted); font-size: .75rem; width: max-content; margin-left: auto; }
.management { margin-top: 20px; padding: 24px; border: 1.1px solid var(--line); border-radius: 8px; background: var(--surface); text-align: left; }
.management > summary { cursor: pointer; font-size: 21px; font-weight: 700; }
#registry-message { margin-top: 16px; }
#page-message.error { color: #ffb4bd; }
#page-message { margin: 16px 0; }
#tokens { list-style: none; padding: 0; }
#tokens li { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); padding: 12px 0; font-size: 14px; overflow-wrap: anywhere; }
#new-token { margin-top: 18px; }
#hide-token { margin-top: 10px; }
#token-status:empty { display: none; }
.login { max-width: 490px; min-height: auto; padding-top: 70px; }
.login form { display: grid; gap: 10px; margin-top: 30px; }
.login button { margin-top: 10px; }
[hidden] { display: none !important; }
@media (max-width: 800px) {
  .launch { grid-template-columns: minmax(0, 1fr) max-content; grid-template-areas: "when countdown" "content content"; gap: 12px 16px; }
}
@media (max-width: 600px) {
  main { padding: 28px 20px 24px; }
  h1 { font-size: 32px; }
  .launch { padding: 23px 0; }
  .launch .when { display: flex; gap: 9px; flex-wrap: wrap; align-items: baseline; }
  .launch .time { margin: 0; }
  .sky-conditions { flex-basis: 100%; margin-top: 0; }
  .management { padding: 18px; }
  #tokens li { align-items: flex-start; flex-direction: column; }
  .status-line { align-items: flex-start; flex-wrap: wrap; }
  button { font-size: 14px; }
}
a { color: var(--text); }
.registry-section { margin: 20px 0; }
.registry-section > summary, .registry-record > summary { cursor: pointer; font-weight: 700; }
.registry-record, .registry-proposal { padding: 20px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.registry-record > summary { margin-bottom: 12px; }
.registry-pad { padding: 12px 0 12px 18px; border-left: 1px solid var(--line); margin: 20px 0; }
.registry-location p { margin-bottom: 6px; }
.registry-actions { display: flex; gap: 12px; margin-top: 12px; }
#registry-merge { display: grid; gap: 8px; }
#registry-merge select { width: 100%; min-width: 0; font: inherit; background: var(--surface); color: var(--text); padding: 8px; }
#registry-tokens { list-style: none; padding: 0; }
#registry-tokens li { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; }

/* 321 glass sky — local design iteration. */
@property --sky-top { syntax: '<color>'; inherits: true; initial-value: #11151c; }
@property --sky-bottom { syntax: '<color>'; inherits: true; initial-value: #1d232c; }
@property --sky-end-top { syntax: '<color>'; inherits: true; initial-value: #11151c; }
@property --sky-end-bottom { syntax: '<color>'; inherits: true; initial-value: #1d232c; }
:root { --bg: #000; --surface: #101115; --muted: #a5adb9; --card-ease: cubic-bezier(.22,1,.36,1); }
body { background: #000; -webkit-font-smoothing: antialiased; }
main { max-width: 1050px; padding: max(52px,env(safe-area-inset-top,0px)) max(28px,env(safe-area-inset-right,0px)) max(32px,env(safe-area-inset-bottom,0px)) max(28px,env(safe-area-inset-left,0px)); }
.status-line { border: 0; align-items: center; flex-wrap:wrap; padding: 0 8px 22px; }
.calendar-heading h1 { font-size: 42px; letter-spacing: -1.7px; }
.calendar-heading h1.site-title {
  font-family:"Inter","Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  font-size:clamp(1rem,3.4vw,3rem); font-weight:700; line-height:1.02;
  letter-spacing:clamp(.012em,.12vw,.024em); text-align:left;
  background:linear-gradient(120deg,#33d6d0 0%,#fff 45%,#33d6d0 100%);
  background-size:220% 100%; background-clip:text; -webkit-background-clip:text;
  color:transparent; -webkit-text-fill-color:transparent;
  animation:calendar-title-sheen 6s linear infinite paused;
}
.calendar-heading h1.site-title.sky-visible { animation-play-state:running; }
.sky-paused .calendar-heading h1.site-title { animation-play-state:paused; }
@keyframes calendar-title-sheen { from { background-position:0% 0; } to { background-position:200% 0; } }
.calendar-heading p { color: #8f98a5; }
#time-toggle { border-radius: 24px; padding: 9px 17px; font-size: 13px; background: linear-gradient(135deg,#ffffff12,#ffffff06); border-color: var(--white-stroke); box-shadow: inset 0 1px 0 #ffffff0a; }
#launches { display: flex; flex-direction: column; gap: 5px; isolation: isolate; padding: 3px; margin: -3px; }
.launch { display: block; padding: 0; border: 0; flex-shrink: 0; min-width: 0; border-radius: 30px; }
.launch-face {
  position: relative; isolation: isolate; display: grid;
  grid-template-columns: 190px minmax(0,1fr) max-content;
  grid-template-areas: "when content countdown";
  gap: 20px; align-items: start; padding: 26px 28px;
  min-height: 164px; border-radius: inherit; overflow: hidden;
  border: 1px solid var(--white-stroke);
  background: linear-gradient(165deg,color-mix(in srgb,var(--sky-top) 92%,transparent),color-mix(in srgb,var(--sky-bottom) 80%,transparent));
  backdrop-filter: blur(20px) saturate(130%); -webkit-backdrop-filter: blur(20px) saturate(130%);
  box-shadow: inset 0 1px 0 #ffffff14, inset 0 -1px 0 #0005, 0 3px 10px #0006;
  transform: perspective(1400px) translateY(var(--lift,0px)) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg));
  transition: transform var(--motion-duration) var(--card-ease), border-color var(--motion-duration) var(--card-ease), box-shadow var(--motion-duration) var(--card-ease),
    --sky-top var(--motion-duration) var(--card-ease), --sky-bottom var(--motion-duration) var(--card-ease), --sky-end-top var(--motion-duration) var(--card-ease), --sky-end-bottom var(--motion-duration) var(--card-ease);
}
.launch-face::before { content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background: linear-gradient(165deg,color-mix(in srgb,var(--sky-end-top) 92%,transparent),color-mix(in srgb,var(--sky-end-bottom) 80%,transparent));
  mask-image: linear-gradient(90deg,transparent,#000); -webkit-mask-image: linear-gradient(90deg,transparent,#000);
}
.launch-face::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit;
  background: radial-gradient(ellipse at var(--mx,20%) var(--my,0%),#ffffff0b,transparent 62%),linear-gradient(160deg,#ffffff08,transparent 40%,#00000018);
}
.launch-face.is-hovered { border-color: var(--white-stroke); box-shadow: inset 0 1px 0 #ffffff24, inset 0 -1px 0 #0005, 0 5px 14px #0008; }
.launch .when, .launch-content, .launch .countdown { position: relative; z-index: 1; }
.launch .mission { font-size: 20px; line-height: 1.3; letter-spacing: -.35px; margin-bottom: 10px; }
.launch-hardware { color: #bcebf0; }
.launch .place { color: #ced7e2; font-size: 14px; line-height: 1.5; }
.launch .vehicle { color: #c3e1ec; margin-bottom: 7px; font-size: 13px; }
.launch time { font-size: 15px; }
.launch .time { color: #d4edf4; font-size: 15px; margin: 4px 0 10px; }
.launch .countdown { font-size: 14px; letter-spacing: -.2px; }
.sky-conditions { color: #d0dbe6; font-size: 12px; gap: 3px; margin-top: 0; }
.sky-label { opacity: .8; }
.sky-detail { opacity: .85; }
.sky-row { grid-template-columns: 32px minmax(0,1fr); gap: 5px; }
.card-stars { position: absolute; inset: 0; z-index: -1; overflow: hidden; border-radius: inherit; pointer-events: none;
  mask-image: linear-gradient(90deg,rgba(0,0,0,var(--stars-open,0)),rgba(0,0,0,var(--stars-close,0)));
  -webkit-mask-image: linear-gradient(90deg,rgba(0,0,0,var(--stars-open,0)),rgba(0,0,0,var(--stars-close,0)));
}
.card-stars i { position: absolute; display: block; height: var(--size); width: var(--size); background: #dfeaff; border-radius: 50%; opacity: var(--shine);
  animation: star-breath var(--period,18s) ease-in-out var(--delay) infinite; animation-play-state: paused;
}
.card-stars .bright-star { box-shadow: 0 0 4px 1px #dceaff40; }
.sky-visible .card-stars i { animation-play-state: running; }
.sky-paused .card-stars i { animation-play-state: paused; }
@keyframes star-breath { 0%,100% { opacity: calc(var(--shine) * .8); } 50% { opacity: var(--shine); } }
.candidate-exit-list { position: fixed; inset: 0; z-index: 2; pointer-events: none; }
.candidate-exit-window { position: absolute; inset: 0; pointer-events: none; }
.management { border-color: var(--white-stroke); background: #101115; border-radius: 24px; }
@media (max-width: 800px) {
  main { padding: max(32px,env(safe-area-inset-top,0px)) max(20px,env(safe-area-inset-right,0px)) max(24px,env(safe-area-inset-bottom,0px)) max(20px,env(safe-area-inset-left,0px)); }
  .launch-face { grid-template-columns: minmax(0,1fr) max-content; grid-template-areas: "when countdown" "content content"; gap: 18px 12px; padding: 23px 25px; }
}
@media (max-width: 600px) {
  main { padding: max(30px,env(safe-area-inset-top,0px)) max(12px,env(safe-area-inset-right,0px)) max(24px,env(safe-area-inset-bottom,0px)) max(12px,env(safe-area-inset-left,0px)); }
  .status-line { padding: 0 9px 16px; gap: 15px; }
  .launch-period { padding-inline:9px; }
  .calendar-heading { gap: 16px; }
  .calendar-heading h1 { font-size: 36px; }
  .calendar-heading p { font-size: 12px; }
  .launch { padding: 0; border-radius: 27px; }
  .launch-face { padding: 22px 20px; gap: 15px 10px; }
  .launch .mission { font-size: 19px; }
  .launch .when { display: block; }
  .launch .time { margin-top: 3px; }
  .launch .countdown { font-size: 13px; }
  .sky-row { grid-template-columns: 32px minmax(0,1fr); }
  #time-toggle { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .launch, .launch *, .launch::before, .launch::after { animation: none !important; transition: none !important; }
  .launch-face { transform: none !important; }
}
/* High sun becomes pale glass; text follows the local part of the sky gradient. */
.launch .when { color: var(--ink-start,#edf3fa); }
.launch .time, .sky-conditions { color: var(--muted-start,#ced7e2); }
.launch-content { color: var(--ink-mid,#edf3fa); }
.launch-hardware, .launch .vehicle { color: var(--accent-mid,#bcebf0); }
.launch .place { color: var(--muted-mid,#ced7e2); }
.launch .launch-face .countdown { color:#fff; }
.launch .launch-face .countdown .countdown-unit { color:#aaa; opacity:1; }
/* Date and launch time share one typographic line. */
.launch .launch-datetime { margin-bottom: 10px; font-size: 15px; font-weight: 700; line-height: 1.5; font-variant-numeric: tabular-nums; }
@media (min-width: 801px) { .launch-face { grid-template-columns: 260px minmax(0,1fr) max-content; } }
/* Sky, stars, then glass highlights; content is a separate foreground plane. */
.launch-face::before { z-index: 0; }
.card-stars { z-index: 1; }
.launch-face::after { z-index: 2; }
.launch .when, .launch-content, .launch .countdown { z-index: 3; }
.launch-at { opacity: .75; }
/* Full-width sky copy sits beneath the date/time, above the mission details. */
.launch-face { grid-template-columns: minmax(0,1fr) max-content; grid-template-areas: "when countdown" "sky sky" "content content"; gap: 9px 16px; }
.launch-sky { grid-area: sky; position: relative; z-index: 3; margin-bottom: 9px; }
.launch .launch-datetime { margin: 0; }
.sky-conditions { display: block; font-size: 13px; line-height: 1.5; }
.launch .sky-summary, .launch .sky-lighting { margin: 0; color: inherit; }
.launch-face::after { background: radial-gradient(ellipse at var(--mx,20%) var(--my,0%),#ffffff05,transparent 62%),linear-gradient(160deg,#ffffff03,transparent 40%,#0000000a); }
.card-stars i { background: #f0f5ff; }
.card-stars .bright-star { box-shadow: 0 0 5px 1px #e1edff60; }
@media (max-width:600px) { .launch-face { gap: 9px 10px; } .sky-conditions { font-size: 12px; } }
/* A crisp foreground glyph keeps its warning color even over pale daytime glass. */

/* Launch window: opening sky at left, closing sky at right. */
@property --sky-0 { syntax: '<color>'; inherits: true; initial-value: #0a0c10; }
@property --sky-1 { syntax: '<color>'; inherits: true; initial-value: #0a0c10; }
@property --sky-2 { syntax: '<color>'; inherits: true; initial-value: #0a0c10; }
@property --sky-3 { syntax: '<color>'; inherits: true; initial-value: #0a0c10; }
@property --sky-4 { syntax: '<color>'; inherits: true; initial-value: #0a0c10; }
@property --sky-5 { syntax: '<color>'; inherits: true; initial-value: #0a0c10; }
@property --sky-6 { syntax: '<color>'; inherits: true; initial-value: #0a0c10; }
@property --sky-7 { syntax: '<color>'; inherits: true; initial-value: #0a0c10; }
@property --sky-8 { syntax: '<color>'; inherits: true; initial-value: #0a0c10; }
.launch-face { background: linear-gradient(90deg,var(--sky-0) 0%,var(--sky-1) 12.5%,var(--sky-2) 25%,var(--sky-3) 37.5%,var(--sky-4) 50%,var(--sky-5) 62.5%,var(--sky-6) 75%,var(--sky-7) 87.5%,var(--sky-8) 100%); transition-property: transform,border-color,box-shadow,--sky-0,--sky-1,--sky-2,--sky-3,--sky-4,--sky-5,--sky-6,--sky-7,--sky-8; transition-duration: var(--motion-duration); transition-timing-function: var(--card-ease); }
.launch-face::before { background: none; mask-image: none; -webkit-mask-image: none; }
.card-stars { mask-image: var(--window-stars); -webkit-mask-image: var(--window-stars); }
/* Mission identity leads; schedule and sky information follow in reading order. */
.launch-face { grid-template-areas: "content countdown" "when when" "sky sky" "location location"; }
.launch .mission { margin: 0; }
.launch-content { color: var(--ink-start,#edf3fa); }
.launch-hardware, .launch .vehicle { color: var(--accent-start,#bcebf0); }
.launch .place { color: var(--muted-start,#ced7e2); }
/* Identity left; schedule and countdown stacked at right. */
.launch-face { grid-template-columns: minmax(0,1fr) minmax(180px,40%); grid-template-areas: "content rail" "sky rail" "location location"; gap: 12px 20px; }
.launch .mission, .launch .mission .launch-hardware { color: #fff; font-weight: 700; text-shadow: 0 1px 3px #0006; }
.launch-rail { grid-area: rail; position: relative; z-index: 4; align-self: start; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; min-width: 0; }
.launch-rail .when { width:100%; min-width:0; text-align:left; color: var(--ink-end,#edf3fa); }
.launch-rail .launch-datetime { margin: 0; }
.launch-rail .countdown { margin: 0; }
.launch-timing-detail { display:flex; flex-wrap:wrap; align-items:baseline; gap:4px 12px; }
.launch-window-start,.launch-window-end { display:inline-block; max-width:100%; }
.launch-window-end { opacity:.75; }
@media (max-width:600px) {
  .launch-face { grid-template-columns: minmax(0,1fr) minmax(135px,44%); gap: 12px; }
  .launch .mission { font-size: 18px; }
  .launch .launch-datetime { font-size: 13px; }
  .launch-sky { grid-column: 1 / -1; grid-row: 2; }
  .launch-rail { grid-row: 1; }
}
/* Avoid saturated backdrop pixels leaking into the rounded border in WebKit. */
.launch-face { backdrop-filter: none; -webkit-backdrop-filter: none; border-color: transparent; background-clip: padding-box; box-shadow: inset 0 0 0 1.1px var(--white-stroke), inset 0 1px 0 #ffffff0a, 0 3px 10px #0006; }
.launch-face.is-hovered { border-color: transparent; box-shadow: inset 0 0 0 1.1px var(--white-stroke), inset 0 1px 0 #ffffff14, 0 5px 14px #0008; }
/* A quiet charcoal canvas separates the near-black night cards from the page. */
body { background: #101010; color: #fff; }
body.homepage-backdrop { position:relative; isolation:isolate; }
body.homepage-backdrop::before {
  content:""; position:fixed; inset:0; z-index:-1; pointer-events:none;
  background:linear-gradient(rgba(5,7,10,.16),rgba(5,7,10,.24)),url('/images/bg.jpg?v=20260227r2') center center / cover no-repeat;
}
/* Keep foreground copy white across every sky; existing opacity sets hierarchy. */
.launch .launch-face, .launch .launch-face * { color: #fff; }
.launch-content .place { margin: 5px 0 0; text-align: left; }
.launch .launch-subtitle { margin: 5px 0 0; font-size: 14px; line-height: 1.5; }
.launch .launch-subtitle .vehicle, .launch .launch-subtitle .place { margin: 0; font: inherit; }
/* Time-first cards: shaded schedule rail beside launch identity and details. */
.launch { border-radius: 24px; }
.launch .launch-face { height:auto; min-height:0; max-height:none; padding:4px; grid-template-columns:180px minmax(0,1fr); grid-template-areas:"rail info"; gap:0; align-items:stretch; }
.launch-info { grid-area:info; position:relative; z-index:3; min-width:0; min-height:0; display:flex; flex-direction:column; justify-content:center; gap:6px; padding:20px 24px; }
.launch-content, .launch-sky { flex-shrink: 0; }
.launch .mission { font-size: 18px; line-height: 22px; letter-spacing: -.25px; }
.launch .launch-subtitle { margin-top: 2px; font-size: 12px; line-height: 16px; }
.launch .launch-subtitle .launch-hardware { font:inherit; }
.launch-sky { margin: 0; padding-left: 0; }
.sky-conditions { font-size: 12px; line-height: 16px; }
.launch-rail { display:flex; flex-direction:column; align-items:flex-start; align-self:stretch; width:100%; margin:0; padding:20px 18px; gap:18px; border-right:1px solid #ffffff28; background:#00000026; border-radius:calc(var(--launch-radius,24px) - 5px) 0 0 calc(var(--launch-radius,24px) - 5px); }
.launch .launch-datetime { font-size: 13px; line-height: 18px; }
.launch .countdown { font-size: 13px; line-height: 18px; }
@media (max-width:600px) {
  .launch { border-radius: 22px; }
  .launch .launch-face { height:auto; min-height:0; max-height:none; padding:4px; grid-template-columns:112px minmax(0,1fr); grid-template-areas:"rail info"; }
  .launch .mission { font-size: 17px; line-height: 21px; }
  .launch-rail { padding:18px 12px; gap:16px; }
  .launch-rail .when { text-align:left; }
  .launch-info { height:auto; overflow:visible; gap:6px; padding:18px 14px; }
  .launch-timing-detail { justify-content:flex-start; }
  .launch .launch-datetime { display:block; }
  .launch-datetime > span { white-space:normal; }
  .launch .launch-at { white-space:normal; padding-left:0; }
  .launch .launch-datetime, .launch .countdown { font-size: 12px; line-height: 16px; }
}
#changelog { width: min(100%,640px); align-self: flex-start; margin: 20px auto 0 0; color: #fff; }
#calendar-content.is-view-changing > #changelog { visibility:hidden; }
#changelog > summary { cursor: pointer; color: var(--muted); font-size: .75rem; width: max-content; margin: 0; }
.changelog-content { margin-top: 16px; text-align: left; }
.changelog-run { margin: 0 0 20px; }
.changelog-run h3 { margin: 0 0 6px; font-size: 13px; font-weight: 600; opacity: .75; text-align: left; }
.changelog-run ul { margin: 0; padding-left: 20px; font-size: 13px; line-height: 1.6; }
.changelog-run li { margin: 3px 0; overflow-wrap: anywhere; }
#changelog-status { font-size: 13px; text-align: left; }
#changelog-status:empty { display: none; }
/* Floating preferences never move the schedule or resize its maps. */
#settings-toggle { width:40px; height:40px; display:grid; place-items:center; padding:0; border-radius:13px; background:transparent; border:0; color:#fff; }
#settings-toggle .settings-glyph { width:29px; height:29px; opacity:.8; display:block; transform-origin:50% 50%; transform:rotate(0deg); transition:transform 300ms ease,opacity 150ms ease; }
#settings-toggle:hover .settings-glyph { opacity:1; }
#settings-toggle[aria-expanded="true"] { background:#ffffff14; }
.calendar-settings { position:relative; height:0; flex-shrink:0; z-index:30; overflow-anchor:none; }
.settings-clip { position:absolute; top:-12px; right:8px; width:min(360px,100%); opacity:0; visibility:hidden; transform:translateY(-6px); transition:opacity 160ms ease,transform 160ms ease,visibility 160ms; }
.calendar-settings.is-open .settings-clip { opacity:1; visibility:visible; transform:translateY(0); }
.calendar-content { display:flex; flex-direction:column; flex:1; min-width:0; overflow-anchor:none; }
.settings-menu { padding:18px; border:1.1px solid var(--white-stroke); border-radius:16px; background:rgba(0,0,0,.45); -webkit-backdrop-filter:blur(20px); backdrop-filter:blur(20px); display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:18px 16px; max-height:calc(100svh - 160px); overflow-y:auto; }
.settings-row { display:flex; flex-direction:column; gap:6px; min-width:0; }
.settings-row:first-child,.settings-filter-row { grid-column:1 / -1; }
.settings-label { font-size:12px; line-height:16px; font-weight:400; color:rgb(255 255 255 / 65%); }
.time-options { position:relative; display:flex; justify-content:space-between; align-items:stretch; width:100%; min-width:0; padding:0; isolation:isolate; user-select:none; touch-action:pan-y; }
.time-options button { flex:0 0 auto; min-width:0; position:relative; z-index:1; border:0; border-radius:10px; background:transparent; padding:9px 10px; color:#fff; font-size:13px; line-height:20px; }
.time-options button.is-selected { font-weight:700; }
.time-options button:disabled { cursor:wait; opacity:.65; }
.time-selection { position:absolute; left:0; top:0; bottom:0; border-radius:10px; background:transparent; border:1.1px solid var(--white-stroke); transition:transform var(--motion-duration) var(--card-ease),width var(--motion-duration) var(--card-ease); pointer-events:none; }
.time-options.is-dragging .time-selection { transition:none; }
#clock-options,#unit-options { gap:4px; }
#clock-options button,#unit-options button { flex:1; padding-left:6px; padding-right:6px; }
#location-options-label { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.settings-filter-row { padding-top:14px; border-top:1px solid #ffffff26; }
#location-options button { padding-left:8px; padding-right:8px; }
#settings-message { grid-column:1 / -1; margin:-8px 0 0; color:rgb(255 255 255 / 75%); font-size:12px; line-height:18px; overflow-wrap:anywhere; }
#settings-message:empty { display:none; }
@media (max-width:600px) {
  .settings-clip { right:0; width:min(360px,100%); top:-6px; }
  .settings-menu { padding:16px; gap:16px 12px; max-height:calc(100svh - 150px); }
  .time-options button { min-height:44px; padding:10px 8px; }
}
@media (prefers-reduced-motion:reduce) {
  .settings-clip,.time-selection { transition:none; }
}

.settings-toolbar { display: flex; align-items: center; justify-content: flex-end; margin-left: auto; min-width: 0; max-width: 100%; }
.settings-toolbar #settings-toggle { flex-shrink: 0; }

.filter-summary-clip { grid-column:4; grid-row:1; align-self:center; display:flex; align-items:center; gap:10px; min-width:0; min-height:24px; color:#fff; font-size:12px; line-height:20px; opacity:0; transition:opacity var(--motion-duration) ease-in-out; }
.filter-summary-clip.is-visible { opacity:.75; }
.filter-summary-inner { min-width: 0; overflow: hidden; }
#filter-summary { display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.filter-summary-separator { flex:none; }
@media(max-width:700px) {
  .launch-period { grid-template-columns:max-content max-content 3em; }
  .filter-summary-clip { grid-column:1 / -1; grid-row:2; }
  .filter-summary-separator { display:none; }
  .launch-period .demo-selector { grid-row:3; }
}
@media (prefers-reduced-motion:reduce) { .filter-summary-clip { transition:none; } }

/* Day separators share the launch identity's typography. */
.weekday-heading { color: #fff; font-size: 18px; font-weight: 700; line-height: 22px; letter-spacing: -.25px; margin: 0; padding: 4px 20px; }
/* The Demo tab owns the choices; an open list takes a second navigation row. */
.demo-selector { display:block; grid-column:3; grid-row:2; min-width:0; }
.demo-selector:not(.has-selection) > summary { display:none; }
.demo-selector.has-selection { margin:0 0 5px; }
.demo-selector.has-selection > summary { position:relative; display:flex; align-items:center; padding:4px 20px; font-size:18px; line-height:22px; letter-spacing:-.25px; font-weight:700; text-align:left; }
.demo-selector.has-selection > summary::before { content:""; position:absolute; left:4px; }
.demo-selector.has-selection .demo-choices { padding-left:20px; font-size:18px; }
.demo-selector > summary { display:block; list-style:none; cursor:pointer; text-align:center; }
.demo-selector > summary::before { content:none; }
.demo-choices { position:relative; left:0; transform:none; width:max-content; max-width:calc(100vw - 56px); padding:6px 0 0; border:0; background:none; box-shadow:none; }
.demo-choices button { display:block; width:100%; padding:11px 0; border:0; background:transparent; color:#fff; font:inherit; font-weight:400; line-height:22px; text-align:left; }
.demo-choices button[aria-pressed="true"] { font-weight:400; }
.demo-choices button:hover,.demo-choices button:focus-visible { text-decoration:underline; text-underline-offset:4px; }
.demo-selector > summary:focus-visible { outline:1px solid currentColor; outline-offset:3px; }
.synthetic-demo-heading { font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.synthetic-demo { padding-bottom: 14px; border-bottom: 0; border-radius: 0; margin-bottom: 8px; }
.synthetic-demo .launch-face { border-radius: 24px; }
@media (max-width:600px) {
  .weekday-heading, .demo-selector.has-selection > summary { font-size:17px; line-height:21px; padding-left:16px; padding-right:16px; }
  .demo-selector.has-selection > summary::before { left:0; }
}

.launch .launch-summary { margin: 2px 0 0; font-size: 12px; line-height: 16px; }
.launch-confidence-label { margin:0; font-size:14px; line-height:20px; font-weight:600; }
.launch-disclosure > summary { display:flex; align-items:baseline; gap:5px; padding:4px 0; cursor:pointer; list-style:none; font-size:14px; line-height:20px; font-weight:600; }
.launch-disclosure > summary::before { margin-right:6px; }
.launch-confidence .trajectory-explanation { margin-top:6px; max-width:none; }
.launch .launch-face:has(.launch-confidence) { height:auto; max-height:none; }
.launch .launch-face:has(.launch-confidence) .launch-info { height:auto; overflow:visible; }

/* Exit copies retain the same class-based calendar styling and inline sky values. */
.candidate-exit-list .card-stars i { animation-play-state: paused; }
#launches { overflow-anchor: none; }

.launch-trajectory { --widget-gap:14px; display:flex; flex-direction:column; container:launch-widgets / inline-size; width:95%; min-width:0; margin:0 auto 24px; }
.launch-trajectory > * { flex:none; width:100%; box-sizing:border-box; margin-top:var(--widget-gap); }
.launch-trajectory > .is-collapsed { margin-top:0; }
.trajectory-info { min-width: 0; min-height: 0; align-self: start; display: flex; flex-direction: column; padding: 15px 16px; border: 1.1px solid var(--white-stroke); border-radius: 16px; background: #ffffff04; color: #fff; }
body.homepage-backdrop .trajectory-info,
body.homepage-backdrop #settings-toggle {
  background:rgba(0,0,0,.25);
  -webkit-backdrop-filter:blur(8px);
  backdrop-filter:blur(8px);
}
.trajectory-grade { margin: 0; color: #fff; font-size: 16px; line-height: 22px; font-weight: 700; }
.trajectory-grade-score[data-grade="A"], .launch .launch-face .trajectory-grade-score[data-grade="A"] { color: #6cde91; }
.trajectory-grade-score[data-grade="B"], .launch .launch-face .trajectory-grade-score[data-grade="B"] { color: #badb72; }
.trajectory-grade-score[data-grade="C"], .launch .launch-face .trajectory-grade-score[data-grade="C"] { color: #f2d16b; }
.trajectory-grade-score[data-grade="D"], .launch .launch-face .trajectory-grade-score[data-grade="D"] { color: #f4a65e; }
.trajectory-grade-score[data-grade="E"], .launch .launch-face .trajectory-grade-score[data-grade="E"] { color: #f58064; }
.trajectory-grade-score[data-grade="F"], .launch .launch-face .trajectory-grade-score[data-grade="F"] { color: #ff646d; }
/* These widgets grow with their text; scrolling belongs to the page. */
.trajectory-explanation { min-height: 0; overflow: visible; margin-top: 8px; }
.trajectory-explanation p { margin: 0; font-size: 15px; line-height: 22px; opacity: .85; overflow-wrap: anywhere; }
.trajectory-time { display: inline-block; white-space: nowrap; overflow-wrap: normal; word-break: normal; }
.trajectory-sky { display: grid; gap: 3px; margin-top: 10px; }
.trajectory-sky-row { display: flex; align-items: baseline; gap: 6px; font-variant-numeric: tabular-nums; }
.trajectory-sky-row > :first-child { flex: 0 0 auto; }
.trajectory-explanation:focus-visible { outline: 1px solid var(--white-stroke); outline-offset: 2px; }
.launch-map { box-sizing:border-box; width: 100%; min-width: 0; min-height: 0; margin: 0; aspect-ratio: 1; overflow: hidden; border-radius: 16px; border: 1.1px solid var(--white-stroke); background: #0f0f0f; }
@media (max-width:600px) {
  .launch-trajectory { --widget-gap:12px; }
  .trajectory-info { padding: 14px; }
  .trajectory-grade { font-size: 15px; }
}
.trajectory-link-row { padding: 14px 0; border-bottom: 1px solid var(--white-stroke); }
.trajectory-link-row h3 { margin: 0 0 6px; font-size: 14px; }
.trajectory-link-row p { font-size: 12px; }
.trajectory-link-row select { display: block; width: 100%; margin-bottom: 8px; }
.trajectory-link-row button { font-size: 12px; margin-right: 8px; }

.launch-map > button { padding:0; border:0; border-radius:0; background:#0f0f0f; cursor:pointer; }
.launch-map > button:focus-visible { outline:3px solid #555; outline-offset:-3px; }

.launch-map { position:relative; align-self:start; isolation:isolate; }
.calendar-live-map { width:100%; height:100%; background:#111; }
.launch-map > .launch-map-trigger { position:absolute; inset:0; z-index:450; width:100%; height:100%; background:transparent; border:0; cursor:pointer; }
.launch-map > .launch-map-trigger:disabled { opacity:1; cursor:wait; }
.calendar-live-map img.leaflet-image-layer { image-rendering:auto; }
/* Keep credits independent of label/interaction fades and Leaflet's later CSS. */
.launch-map .calendar-live-map .leaflet-control-attribution { font-size:6px; line-height:1.3; padding:2px 6px; background:transparent; color:#fff; opacity:.5; visibility:visible; transition:none; }
.launch-map .calendar-live-map .leaflet-control-attribution a { display:inline; width:auto; height:auto; color:inherit; }
.calendar-live-map .leaflet-tile { border:0; outline:0; }
.calendar-live-map .calendar-track { vector-effect:non-scaling-stroke; }
.calendar-live-map .calendar-map-dot { box-sizing:border-box; border:.6px solid var(--white-stroke); border-radius:50%; background:#d5f3f5; pointer-events:none; }
.calendar-live-map .calendar-map-dot.is-observer { border-width:1px; background:#ff626a; }
.calendar-live-map .calendar-map-dot.is-current-location { border-width:1px; background:#65d98a; }

.trajectory-info-stack { display:grid; grid-template-columns:minmax(0,1fr); gap:var(--widget-gap); min-width:0; align-self:start; }
.trajectory-info-stack > .trajectory-info { align-self:stretch; }
.trajectory-info-stack > .trajectory-info:only-child { grid-column:1 / -1; }
.trajectory-details-shell { display:grid; grid-template-rows:1fr; opacity:1; min-width:0; transition:grid-template-rows var(--motion-duration) var(--card-ease),opacity var(--motion-duration) var(--card-ease),margin-top var(--motion-duration) var(--card-ease); }
.trajectory-details-clip { position:relative; min-height:0; overflow:hidden; }
.trajectory-details-status { position:absolute; top:16px; right:18px; font-size:12px; color:#b8bdc5; pointer-events:none; }
.trajectory-details-shell .trajectory-explanation { transition:filter 150ms ease,opacity 150ms ease; }
.trajectory-details-shell.is-updating .trajectory-explanation { filter:blur(1.5px); opacity:.4; pointer-events:none; user-select:none; }
.trajectory-details-shell.is-collapsed { grid-template-rows:0fr; opacity:0; pointer-events:none; }
@media(prefers-reduced-motion:reduce) { .trajectory-details-shell,.trajectory-details-shell .trajectory-explanation { transition:none; } }
.observer-controls-shell { display:grid; grid-template-rows:1fr; opacity:1; min-width:0; margin-bottom:0; transition:grid-template-rows var(--motion-duration) cubic-bezier(.22,1,.36,1),opacity var(--motion-duration) cubic-bezier(.22,1,.36,1),margin-top var(--motion-duration) cubic-bezier(.22,1,.36,1); }
.observer-controls-clip { min-height:0; overflow:hidden; }
.observer-controls-shell.is-collapsed { grid-template-rows:0fr; opacity:0; pointer-events:none; }
.launch-map.no-jellyfish, .launch-map.no-jellyfish .calendar-live-map { cursor:default; }
.trajectory-prediction .trajectory-explanation p + p { margin-top:7px; }
.prediction-likelihood { font-weight:700; }
/* Leaflet's additive blend creates bright tile seams on dark maps. */
.calendar-live-map.leaflet-container img.leaflet-tile { mix-blend-mode:normal; }

.observer-controls { position:relative; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); align-items:center; gap:8px; padding:12px 14px; }
.observer-controls .observer-heading { position:relative; grid-column:1 / -1; margin:0; min-width:0; padding-right:24px; box-sizing:border-box; }
.observer-controls[aria-busy="true"] .observer-heading::after { content:""; position:absolute; right:6px; top:50%; width:10px; height:10px; margin-top:-6px; border:1.5px solid #ffffff40; border-top-color:#ffffffe6; border-radius:50%; animation:observer-spin .8s linear infinite; }
@keyframes observer-spin { to { transform:rotate(360deg); } }
@media (prefers-reduced-motion:reduce) { .observer-controls[aria-busy="true"] .observer-heading::after { animation:none; } }
.observer-controls button { min-height:44px; padding:8px 12px; border:2.2px solid transparent; border-radius:10px; background:transparent; color:white; font-size:14px; white-space:nowrap; }
.observer-controls button[aria-pressed="true"] { border-color:var(--white-stroke); font-weight:700; }
.observer-controls button:hover { border-color:var(--white-stroke); }
/* Reserve each label's bold width in both states. Weight and selection change
   in the same paint, without a follow-up flex layout or outline resize. */
.time-options button.selection-option,
.observer-controls button.selection-option { display:inline-grid; place-items:center; }
.selection-option > span, .selection-option::after { grid-area:1 / 1; }
.selection-option::after { content:attr(data-label); font-weight:700; visibility:hidden; height:0; pointer-events:none; }
.observer-controls .observer-status { position:absolute; top:15px; left:16px; right:16px; max-height:30px; overflow:auto; margin:0; font-size:13px; line-height:1.35; color:#ff626a; }
.observer-controls.has-location-error .observer-heading { visibility:hidden; }
.observer-controls .observer-cities { grid-column:1 / -1; margin:0; line-height:1.8; transition:filter 150ms ease,opacity 150ms ease; }
.observer-cities[aria-busy="true"] { filter:blur(1px); opacity:.4; pointer-events:none; }
.observer-city-item { display:inline-block; white-space:nowrap; }
.observer-controls .observer-city { display:inline; min-height:0; padding:3px 0; border:0; border-radius:2px; font:inherit; line-height:inherit; white-space:normal; text-align:left; text-decoration:none; cursor:default; color:inherit; -webkit-tap-highlight-color:transparent; }
.observer-controls .observer-city:is(:hover,:active,:focus) { background:transparent; color:inherit; text-decoration:none; box-shadow:none; }
.observer-controls .observer-city:disabled { cursor:default; }
.calendar-live-map.picking-location { cursor:crosshair; }

.trajectory-window { grid-column:1 / -1; width:100%; box-sizing:border-box; padding:14px 16px; gap:10px; }
.trajectory-window .trajectory-grade { margin:0; }
.window-scrubber { --window-handle-width:90px; --window-handle-height:44px; position:relative; height:var(--window-handle-height); margin-top:0; }
.window-selected-time { position:absolute; z-index:2; top:0; width:max-content; padding:0 10px; height:var(--window-handle-height); box-sizing:border-box; display:flex; align-items:center; justify-content:center; left:calc(var(--window-position, 0) * (100% - var(--window-handle-width))); border:2.2px solid var(--white-stroke); border-radius:10px; background:#151515; font-size:14px; font-variant-numeric:tabular-nums; color:#fff; white-space:nowrap; pointer-events:none; }
.window-slider { appearance:none; -webkit-appearance:none; display:block; width:100%; min-width:0; height:var(--window-handle-height); margin:0; padding:0; border:0; border-radius:0; background:transparent; cursor:ew-resize; }
.window-sky-track,.window-forecast-track { position:absolute; left:0; right:0; top:calc(50% - 1.5px); height:3px; border-radius:2px; pointer-events:none; }
.window-sky-track { background:var(--window-sky,#ffffff60); }
.window-forecast-track { background:var(--window-forecast,transparent); opacity:0; transition:opacity var(--motion-duration) var(--card-ease); }
.has-forecast .window-forecast-track { opacity:1; }
.window-slider { position:relative; }
.window-slider::-webkit-slider-runnable-track { height:3px; border-radius:2px; background:transparent; }
.window-slider::-moz-range-track { height:3px; border-radius:2px; background:transparent; }
.trajectory-summary-slot[aria-busy="true"] .trajectory-grade { display:flex; align-items:center; gap:10px; }
.trajectory-summary-slot[aria-busy="true"] .trajectory-grade::before { content:""; flex:none; width:16px; height:16px; border:2px solid #ffffff35; border-top-color:#ffffffe6; border-radius:50%; animation:observer-spin .8s linear infinite; }
@media (prefers-reduced-motion:reduce) { .window-forecast-track { transition:none; } .trajectory-summary-slot[aria-busy="true"] .trajectory-grade::before { animation:none; } }
.window-slider::-webkit-slider-thumb { -webkit-appearance:none; width:var(--window-handle-width); height:var(--window-handle-height); margin-top:calc((3px - var(--window-handle-height)) / 2); border:0; background:transparent; }
.window-slider::-moz-range-thumb { width:var(--window-handle-width); height:var(--window-handle-height); border:0; border-radius:10px; background:transparent; }
.trajectory-window, .observer-controls { -webkit-user-select:none; user-select:none; -webkit-tap-highlight-color:transparent; }
.window-slider:focus, .window-slider:focus-visible { outline:none; box-shadow:none; }
.window-slider:disabled { cursor:wait; opacity:.45; }
.window-locked { position:absolute; pointer-events:none; left:calc(var(--window-handle-width) / 2); top:calc(50% - 1.5px); height:3px; width:calc((100% - var(--window-handle-width)) * var(--window-locked)); background:#454545; }
/* Use contrast and weight to distinguish mission, site and supporting metadata. */
.launch .launch-target { font-size:30px; line-height:1.2; white-space:nowrap; }
.launch .launch-face .launch-clock-period { font-size:.52em; margin-left:2px; }
.launch .launch-face .launch-clock-zone,
.launch .launch-face .launch-clock-date { color:#d0dbe3; font-size:12px; line-height:1.4; }
.launch-rail .launch-timing-detail { display:flex; flex-direction:column; align-items:flex-start; gap:8px; }
.launch .countdown { font-size:12px; line-height:18px; font-weight:400; white-space:nowrap; }
.launch .launch-face .countdown .countdown-unit { color:#d0dbe3; }
.launch-content { display:block; }
.launch-content .mission { min-width:0; margin:0; overflow-wrap:anywhere; }
.launch .launch-face .mission > span:not(.launch-hardware) { color:#e0e5e9; font-weight:400; text-shadow:none; }
.launch .launch-subtitle { margin:0; font-size:14px; line-height:1.5; }
.launch .launch-face .launch-subtitle :is(.vehicle,.launch-hardware) { color:#c6d2dc; }
.launch .launch-face .launch-subtitle .place { color:#f1f5f8; }
.launch-confidence { border-top:1px solid #ffffff28; margin-top:6px; padding-top:8px; }
.launch .window-static-summary { margin:0; font-size:13px; line-height:1.5; color:#dbe3e9; }
@media (max-width:600px) {
  .launch .launch-target { font-size:24px; }
  .launch .launch-target[data-precise="true"] { font-size:18px; }
  .launch .countdown { font-size:11px; }
  .launch .launch-subtitle { font-size:13px; }
  .launch .window-static-summary { font-size:12px; }
  .launch-confidence-label, .launch-disclosure > summary { font-size:13px; line-height:18px; }
  .launch-disclosure > summary { display:block; }
}
@media (max-width:360px) {
  .launch .launch-face { grid-template-columns:96px minmax(0,1fr); }
  .launch-rail { padding:16px 9px; }
  .launch-info { padding:16px 11px; }
  .launch .launch-target { font-size:22px; }
  .launch .launch-target[data-precise="true"] { font-size:16px; }
  .launch .countdown { font-size:10px; }
}

.launch .countdown-unit { font-size:inherit; }
.window-interactive { display:flex; flex-direction:column; gap:10px; min-width:0; }
.window-static-summary { margin:6px 0 0; font-size:15px; line-height:22px; font-variant-numeric:tabular-nums; }
.launch-target { display:block; font-weight:700; margin:0; }
.window-endpoints { position:relative; display:flex; justify-content:space-between; gap:8px; font-size:13px; line-height:18px; color:#ffffffb3; font-variant-numeric:tabular-nums; }
.window-progress { margin:0; font-size:12px; color:#ffffffb3; }
.window-best-dot { position:absolute; z-index:1; top:calc((var(--window-handle-height) - 10px) / 2); left:calc(var(--best-position,0) * (100% - var(--window-handle-width)) + var(--window-handle-width) / 2); transform:translateX(-50%); width:10px; height:10px; border-radius:50%; background:#fff; pointer-events:none; }
.window-best-label { position:absolute; top:0; width:max-content; white-space:nowrap; font-size:13px; line-height:18px; color:#fff; text-align:center; pointer-events:none; }
.window-best-time { color:#fff; font-variant-numeric:tabular-nums; }

.window-endpoints.is-crowded { flex-wrap:wrap; }
.window-endpoints.is-crowded .window-best-label { position:static; flex-basis:100%; text-align:center; }

.window-best-label > span { display:inline; }
.window-endpoints:has(.window-best-label:not([hidden])) { min-height:16px; }
.prediction-rating[data-rating="Exceptional"] { color:#6cde91; }
.prediction-rating[data-rating="Strong"] { color:#badb72; }
.prediction-rating[data-rating="Noticeable"] { color:#f2d16b; }
.prediction-rating[data-rating="Faint"] { color:#f4a65e; }
.prediction-rating[data-rating="Not expected"] { color:#ff646d; }

.trajectory-info { box-sizing:border-box; }
.trajectory-info.is-resizing { overflow:hidden; }
.trajectory-info.is-resizing > * { flex-shrink:0; }

.window-preview-notice { position:absolute; right:0; top:50%; transform:translateY(-50%); margin:0; font-size:11px; line-height:16px; font-weight:700; color:#f2d16b; opacity:0; transition:opacity var(--motion-duration) cubic-bezier(.22,1,.36,1); }
.window-preview-notice.is-visible { opacity:1; }
@media (prefers-reduced-motion:reduce) { .window-preview-notice { transition:none; } }

.trajectory-window { container-type:inline-size; }
.window-header { position:relative; }
.window-header .trajectory-grade { transition:opacity var(--motion-duration) cubic-bezier(.22,1,.36,1); }
@container (max-width:720px) {
  .window-header.is-preview .trajectory-grade { opacity:0; }
  .window-header .window-preview-notice { left:0; right:auto; }
}
@media (prefers-reduced-motion:reduce) { .window-header .trajectory-grade { transition:none; } }

/* The card retains the window when forecasting controls collapse. */
.trajectory-window-shell { grid-column:1 / -1; display:grid; grid-template-rows:1fr; min-width:0; opacity:1; transition:grid-template-rows var(--motion-duration) var(--card-ease),opacity var(--motion-duration) var(--card-ease); }
.trajectory-window-shell.is-collapsed { grid-template-rows:0fr; opacity:0; pointer-events:none; }
@media(prefers-reduced-motion:reduce) { .trajectory-window-shell { transition:none; } }
.trajectory-window-clip { min-height:0; overflow:hidden; }

/* Forecast wording and ratings share the same fade and resize duration. */
.trajectory-prediction { position:relative; }
.prediction-outgoing { position:absolute; inset:0; padding:inherit; pointer-events:none; overflow:hidden; border-radius:inherit; }
.observer-controls button { transition:border-color var(--motion-duration) cubic-bezier(.22,1,.36,1); }
@media(prefers-reduced-motion:reduce) {
  *, *::before, *::after { animation:none !important; transition:none !important; }
}

/* Solar events share the scrubber's geometry without adding layout height. */
.window-solar-events, .solar-event-group { position:absolute; inset:0; pointer-events:none; }
.window-solar-event { position:absolute; z-index:1; top:calc((var(--window-handle-height) - 10px) / 2); left:calc(var(--event-position) * (100% - var(--window-handle-width)) + var(--window-handle-width) / 2); transform:translateX(-50%); width:10px; height:10px; border-radius:50%; background:#f2d16b; pointer-events:none; }
.window-middle-label { position:absolute; top:0; width:max-content; white-space:nowrap; font-size:13px; line-height:18px; text-align:center; pointer-events:none; transition:left var(--motion-duration) cubic-bezier(.22,1,.36,1); }
.solar-event-time { color:#f2d16b; }
.window-endpoints.is-crowded .window-boundary { flex:0 0 calc(50% - 4px); }
.window-endpoints.is-crowded .window-boundary:nth-child(2) { text-align:right; }
.window-endpoints.is-crowded .window-middle-label { position:static; flex-basis:auto; margin-inline:auto; }
.window-endpoints.is-crowded .window-middle-label.is-leaving { position:absolute; }
@media(prefers-reduced-motion:reduce) { .window-middle-label { transition:none; } }

@media(max-width:600px) { .trajectory-window { padding:12px 14px; } }

/* Square visual widgets share a stable viewport on every screen size. */
.trajectory-visuals { display:grid; grid-template-columns:minmax(0,1fr); row-gap:0; column-gap:var(--widget-gap); min-width:0; align-self:start; align-items:start; }
.trajectory-camera-shell { display:grid; grid-template-rows:1fr; opacity:1; min-width:0; margin-top:var(--widget-gap); transition:grid-template-rows var(--motion-duration) cubic-bezier(.22,1,.36,1),opacity var(--motion-duration) ease,margin-top var(--motion-duration) cubic-bezier(.22,1,.36,1); }
.trajectory-camera-clip { min-height:0; overflow:hidden; }
.trajectory-camera-shell.is-collapsed { grid-template-rows:0fr; opacity:0; margin-top:0; pointer-events:none; }
@media(prefers-reduced-motion:reduce) { .trajectory-camera-shell,.trajectory-visuals { transition:none!important; } }
.trajectory-camera { box-sizing:border-box; position:relative; align-self:stretch; padding:4px; overflow:hidden; }
.camera-header { position:absolute; top:14px; left:14px; right:14px; z-index:2; pointer-events:none; display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.camera-header .trajectory-grade { flex:1; min-width:0; }
.camera-zoom-button { font-family:inherit; font-size:11px; font-weight:600; font-variant-numeric:tabular-nums; }
.camera-zoom-button:focus-visible { outline:2px solid rgb(255 255 255 / 90%); outline-offset:2px; }
.camera-playback-button,.camera-zoom-button { pointer-events:auto; position:relative; flex:0 0 32px; width:32px; height:32px; padding:0; display:grid; place-items:center; border:1px solid rgb(255 255 255 / 90%); border-radius:6px; color:rgb(255 255 255 / 90%); background:rgb(0 0 0 / 15%); cursor:pointer; }
.camera-playback-button::before { content:""; width:10.5px; height:12px; background:currentColor; clip-path:polygon(12% 0,100% 50%,12% 100%); }
.camera-playback-button[data-playing="true"]::before { clip-path:none; background:linear-gradient(to right,currentColor 0 35%,transparent 35% 65%,currentColor 65% 100%); }
.camera-playback-button:focus-visible { outline:2px solid rgb(255 255 255 / 90%); outline-offset:2px; }
.camera-footer { position:absolute; bottom:14px; left:14px; right:14px; z-index:2; pointer-events:none; display:flex; flex-direction:column; align-items:flex-start; gap:3px; }
.camera-time { display:flex; align-items:baseline; font-size:12px; font-variant-numeric:tabular-nums; white-space:nowrap; }
.camera-elapsed { flex:0 0 11ch; width:11ch; }
.camera-time-separator { white-space:pre; }
.camera-clock { min-width:11ch; }
.camera-viewport { position:relative; width:100%; aspect-ratio:1; height:auto; overflow:hidden; border-radius:12px; background:#090e15; }
.camera-canvas { display:block; position:absolute; inset:0; width:100%; height:100%; cursor:default; touch-action:pan-y; user-select:none; -webkit-user-select:none; }
.camera-canvas:focus, .camera-canvas:focus-visible { outline:none; }
.camera-preparation-cover { position:absolute; inset:0; overflow:hidden; pointer-events:none; background:#090e15; }
.camera-preparation-glass { position:absolute; inset:-18%; filter:blur(28px); background:radial-gradient(ellipse at 72% 65%,#674f69,transparent 72%),#26324c; }
.camera-preparation-text { position:absolute; inset:0; display:grid; place-items:center; color:#fff; font-size:14px; font-weight:500; text-align:center; }
.camera-preparation-text[hidden] { display:none; }
.camera-header .trajectory-grade,.camera-elapsed,.camera-clock { position:relative; }
.camera-text-current { display:block; }
.camera-text-old { position:absolute; top:0; left:0; width:100%; pointer-events:none; }
.camera-header .trajectory-grade { overflow:hidden; }
.calendar-map-close:focus, .calendar-map-close:focus-visible { outline:none; box-shadow:none; }
/* Pointer selections can restore focus after a dialog or rerender. Only
   keyboard navigation should leave a focus highlight on the destination. */
body[data-calendar-input="pointer"] :is(button,input,textarea,select,summary,a,[tabindex]):focus { outline:none; }
body[data-calendar-input="pointer"] .demo-selector > summary:focus-visible,
body[data-calendar-input="pointer"] .demo-choices button:focus-visible { text-decoration:none; }
body[data-calendar-input="pointer"] .demo-choices button:focus-visible:not(:hover) { background:transparent; }
.camera-compass { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; }

/* Map controls are controls, not selectable page copy. */
.leaflet-control-zoom, .leaflet-control-zoom a, .calendar-map-close { -webkit-user-select:none; user-select:none; -webkit-touch-callout:none; }
/* Match the camera's four-pixel inset without changing card text spacing. */
.launch-map { padding:4px; }
.launch-map > .calendar-live-map { position:absolute; inset:4px; width:auto; height:auto; border-radius:12px; overflow:hidden; background:#0f0f0f; }
.launch-map > .calendar-live-map:focus:not(:focus-visible) { outline:none; }
.launch-face { background:rgba(0,0,0,.25); }
.launch-face::before { inset:4px; border-radius:calc(var(--launch-radius,24px) - 5px); background:linear-gradient(90deg,var(--sky-0) 0%,var(--sky-1) 12.5%,var(--sky-2) 25%,var(--sky-3) 37.5%,var(--sky-4) 50%,var(--sky-5) 62.5%,var(--sky-6) 75%,var(--sky-7) 87.5%,var(--sky-8) 100%); }
.launch-face::after, .launch-face > .card-stars { inset:4px; border-radius:calc(var(--launch-radius,24px) - 5px); }

.launch { --launch-radius:24px; border-radius:var(--launch-radius); }
@media(max-width:600px) { .launch { --launch-radius:22px; } }
.synthetic-demo .launch-face { --launch-radius:24px; }

/* Export controls stay outside the rendered viewport and downloaded video. */
.camera-export-controls { display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-end; gap:8px; padding:8px 4px 2px; }
.camera-export-controls button { font-size:12px; padding:7px 12px; border-radius:10px; }
.camera-export-controls button:disabled { opacity:.6; cursor:wait; }
.camera-export-status { font-size:12px; color:var(--muted,#b9c1c8); }
.camera-export-cancel[hidden] { display:none; }

/* A single opacity surface replaces tab content without cloned exit cards. */
.launch-panel { display:flex; flex-direction:column; min-width:0; overflow-anchor:none; }

/* Stable event hierarchy inside the shared viewing forecast. */
.viewing-event { margin-top:16px; min-width:0; }
.viewing-event-heading { margin:0 0 5px; font-size:15px; line-height:21px; font-weight:600; }
.viewing-event-detail { margin-top:10px; }
.viewing-detail-heading { margin:0 0 3px; font-size:14px; line-height:20px; font-weight:600; color:#fff; }
.viewing-model-note { margin-top:16px; }
.trajectory-prediction .prediction-summary { opacity:.95; }
@media (max-width:600px) {
  .viewing-event-heading { font-size:15px; line-height:21px; }
}

.viewing-event-single { margin-top:0; }

.calendar-map-labels { opacity:0; transition:opacity 1s ease; }
.calendar-heat-pane { isolation:isolate; }
.calendar-heat-image { mix-blend-mode:plus-lighter; }
.calendar-map-labels.labels-visible { opacity:1; }
@media (prefers-reduced-motion:reduce) { .calendar-map-labels,.launch-map .leaflet-control-attribution,.calendar-live-map .leaflet-control-zoom { transition:none; } }

/* Shared widget order: forecast/location, time, visuals, supporting details. */
/* Keep each painted summary inside the block that reserves its space. */
.trajectory-summary-slot { display:flow-root; min-width:0; }
.trajectory-summary .trajectory-explanation { margin-top:6px; }
.trajectory-summary .viewing-event { margin-top:12px; }
.trajectory-summary .viewing-event:first-child { margin-top:0; }
.trajectory-info-stack .trajectory-explanation { max-width:none; }
.trajectory-visuals > .launch-map,
.trajectory-visuals > .trajectory-camera-shell { width:100%; max-width:560px; justify-self:center; }
.camera-playback-button::after,.camera-zoom-button::after { content:""; position:absolute; inset:-6px; }
.camera-header .trajectory-grade { font-size:14px; line-height:20px; }
/* Keep the notice in flow while transparent so toggling preview never moves the slider. */
.window-preview-notice { position:static; transform:none; margin:0; font-size:12px; line-height:18px; min-height:18px; white-space:normal; display:block; }
.window-header.is-preview .trajectory-grade { opacity:1; }
.window-header { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:baseline; column-gap:12px; }
.window-time-zone { font-size:12px; color:#b8bdc5; white-space:nowrap; }
.window-header .window-preview-notice { grid-column:1 / -1; }
.window-endpoints.is-crowded .window-middle-label { white-space:normal; }
@container launch-widgets (min-width:520px) {
  .observer-controls { grid-template-columns:minmax(0,1fr) repeat(3,minmax(80px,120px)); }
  .observer-controls .observer-heading { grid-column:auto; }
  .observer-controls .observer-status { right:auto; max-width:calc(100% - 400px); }
}
@container launch-widgets (min-width:760px) {
  .trajectory-visuals { grid-template-columns:minmax(0,1fr) minmax(0,1fr); transition:grid-template-columns var(--motion-duration) cubic-bezier(.22,1,.36,1),column-gap var(--motion-duration) cubic-bezier(.22,1,.36,1); }
  .trajectory-visuals:has(> .trajectory-camera-shell.is-collapsed) { grid-template-columns:minmax(0,1fr) minmax(0,0fr); column-gap:0; }
  .trajectory-visuals > .trajectory-camera-shell { margin-top:0; overflow:hidden; }
  .trajectory-summary .trajectory-explanation:has(> .viewing-event + .viewing-event) { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
  .trajectory-summary .viewing-event { margin-top:0; }
}

/* Inline forecast values use the same type scale as their label. */
.prediction-rating, .trajectory-grade-score, .trajectory-time, .window-best-label > span, .window-solar-label > span { font-size:inherit; line-height:inherit; }

#settings-toggle[aria-expanded="true"] .settings-glyph { transform:rotate(45deg); }
@media (prefers-reduced-motion:reduce) { #settings-toggle .settings-glyph { transition:none; } }
/* Desktop shares one answer/location card; mobile retains separate boxes. */
.observer-controls { display:flex; flex-direction:column; gap:8px; }
.observer-buttons { display:flex; flex:0 0 auto; align-items:center; gap:4px; }
.observer-controls .observer-heading { display:none; }
.observer-controls .observer-cities { margin:0; min-width:0; line-height:1.5; }
.observer-controls .observer-status { position:static; max-width:none; max-height:none; }
.observer-status:empty { display:none; }
.forecast-location-widget { display:grid; grid-template-columns:minmax(0,1fr) minmax(220px,40%); gap:12px 24px; align-items:start; }
body.homepage-backdrop .forecast-location-widget .trajectory-summary,
body.homepage-backdrop .forecast-location-widget .observer-controls { padding:0; border:0; border-radius:0; background:none; box-shadow:none; backdrop-filter:none; -webkit-backdrop-filter:none; }
.forecast-location-widget .observer-controls { align-items:flex-end; }
.forecast-location-widget .observer-cities { width:100%; text-align:right; }
.forecast-location-widget .observer-controls-shell.is-collapsed { display:none; }
.forecast-location-widget:has(.observer-controls-shell.is-collapsed) { grid-template-columns:minmax(0,1fr); }
@media (max-width:650px) {
  body.homepage-backdrop .forecast-location-widget { display:flex; flex-direction:column; gap:var(--widget-gap); padding:0; border:0; background:none; backdrop-filter:none; -webkit-backdrop-filter:none; }
  .forecast-location-widget > * { width:100%; }
  .forecast-location-widget .observer-controls-shell { order:-1; }
  body.homepage-backdrop .forecast-location-widget .trajectory-summary,
  body.homepage-backdrop .forecast-location-widget .observer-controls { padding:14px; border:1.1px solid var(--white-stroke); border-radius:16px; background:rgba(0,0,0,.25); backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px); }
  .forecast-location-widget .observer-controls { align-items:stretch; }
  .observer-controls .observer-heading { display:block; padding-right:24px; }
  .observer-buttons > button { flex:1; }
  .forecast-location-widget .observer-cities { text-align:left; }
}

@media(max-width:600px) { .demo-selector.has-selection .demo-choices { padding-left:16px; font-size:17px; } }
.launch-map-trigger { color:#ccc; font:400 14px/1.5 Arial,sans-serif; }
@media(max-width:650px) { .demo-selector:not(.has-selection) .demo-choices { max-width:calc(50vw - 72px); } }

/* The homepage gate contains no private calendar data or application scripts. */
body.calendar-login { min-height:100svh; display:flex; padding:24px 0; }
.calendar-login main.login { width:min(440px,calc(100% - 40px)); min-height:auto; margin:auto; padding:32px; border:1px solid var(--white-stroke); border-radius:18px; background:rgba(9,14,21,.88); box-shadow:0 20px 60px rgb(0 0 0 / 30%); backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px); }
.calendar-login .login h1 { font-size:32px; margin-bottom:14px; }
.calendar-login .login form { margin-top:16px; }
