* { box-sizing: border-box }
:root { color-scheme: dark; --ink:#f0f8f7; --muted:#a9c1c6; --edge:#32505a; --teal:#99f3d8; --amber:#ffcd84; background:#0d1d26; color:var(--ink); font:16px/1.35 system-ui,sans-serif }
body { margin:0 }
h1,h2,p,dl,dd { margin:0 }
button,input { font:inherit }
button { color:var(--ink); border:1px solid var(--edge); border-radius:7px; background:#1c3740; padding:9px 13px; font-weight:650; cursor:pointer }
button:hover { border-color:#75aeaa }
button:disabled { opacity:.55; cursor:default }
button.primary,button[aria-pressed="true"] { background:var(--teal); color:#102923; border-color:var(--teal) }
:focus-visible { outline:3px solid #d4fdf2; outline-offset:3px }
input { accent-color:var(--teal) }
input:not([type=range]) { min-width:0; width:100%; padding:11px; border:1px solid var(--edge); border-radius:6px; background:#0e242e; color:var(--ink) }
[hidden] { display:none!important }
.brand { color:var(--teal); font-size:.76rem; letter-spacing:.18em; font-weight:750 }
.gate-page { min-height:100dvh; display:grid; align-items:center; background:radial-gradient(ellipse at 25% 55%,#214752,#0d1d26 64%) }
.gate { width:min(950px,100%); padding:40px clamp(20px,5vw,65px); margin:auto; display:grid; grid-template-columns:1.2fr 1fr; align-items:center; gap:clamp(26px,8vw,95px) }
.gate h1 { font-size:clamp(3rem,8vw,6.4rem); line-height:.92; letter-spacing:-.068em; margin:12px 0 18px }
.deck { color:var(--muted); font-size:1.09rem; max-width:28ch }
.gate-card { display:grid; gap:13px; background:#142b34; padding:clamp(20px,4vw,29px); border:1px solid var(--edge); border-radius:12px }
.gate-card h2 { font-size:1.6rem }
.gate-card label { color:var(--muted) }
#pin { letter-spacing:.45em; font-size:1.28rem }
#gate-message { min-height:1.35em; color:var(--amber); font-size:.9rem }

.demo-page { min-height:100dvh; display:grid; grid-template-rows:auto minmax(400px,1fr) auto; padding:0 clamp(10px,2vw,30px) }
.masthead { min-width:0; display:flex; align-items:center; gap:20px; padding:14px 0 }
.masthead h1 { font-size:clamp(1.45rem,2.5vw,2.35rem); letter-spacing:-.04em; line-height:1.05 }
.location { color:var(--muted); margin-left:auto }
.head-controls { display:flex; gap:7px; margin-left:auto }
.presentation { display:grid; grid-template-columns:minmax(0,1fr) minmax(262px,26%); gap:12px; min-height:0 }
.map,.story { min-width:0; border:1px solid var(--edge); border-radius:9px; background:#142b34; overflow:hidden }
.map { position:relative; isolation:isolate }
#globe { position:absolute; inset:0 }
.story { display:flex; flex-direction:column; gap:clamp(12px,2.1vh,23px); padding:clamp(14px,2vw,27px); overflow:auto }
.status { color:var(--teal); font-size:.77rem; letter-spacing:.085em; font-weight:750 }
.status[data-tone="hold"] { color:var(--amber) }
.story h2 { font-size:clamp(1.65rem,3.2vw,3.3rem); letter-spacing:-.045em; line-height:1.03 }
.description { color:#c3d5d9; font-size:clamp(.95rem,1.35vw,1.22rem); max-width:35ch }
.facts { display:grid; grid-template-columns:1fr 1fr; gap:8px }
.facts div { background:#1c3841; padding:9px; border:1px solid #2f515a; border-radius:7px }
.facts dt { font-size:.76rem; color:var(--muted) }
.facts dd { font-weight:700; font-size:clamp(.95rem,1.5vw,1.3rem) }
.weather-compare { display:grid; gap:7px; color:var(--muted); font-size:.86rem }
.weather-options { display:flex; gap:7px }
.weather-options button { padding:4px 9px }
 .story-actions { margin-top:auto; display:flex; gap:6px; flex-wrap:wrap }
.presenter { padding:10px 0; display:grid; grid-template-columns:minmax(180px,1fr) auto; align-items:center; gap:7px 20px }
.progress { min-width:0; display:grid; gap:3px; font-size:.85rem; color:var(--muted) }
.progress span { display:flex; justify-content:space-between; gap:8px }
#seek { width:100%; margin:0 }
.presenter-controls,.chapters { display:flex; gap:6px; flex-wrap:wrap }
.presenter-controls button { white-space:nowrap }
.chapters { margin-left:10px }
.chapters [aria-current="step"] { border-color:var(--teal); color:var(--teal) }
 .presenter-meta {grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:8px}
.runtime-status { min-height:1em; font-size:.75rem; color:var(--muted) }
.credits-button {padding:2px 6px;font-size:.75rem;background:transparent;color:var(--muted)}
#demo-credits {width:min(460px,calc(100% - 24px))}
.credits-list {margin:0 0 12px;padding-left:20px;display:grid;gap:6px;color:#c3d5d9;font-size:.9rem}
#renderer-credits .cesium-widget-credits {position:static}
#renderer-credits .cesium-credit-expand-link {color:var(--teal)}
dialog { width:min(800px,calc(100% - 24px)); max-height:calc(100dvh - 28px); background:#142b34; color:var(--ink); border:1px solid var(--edge); border-radius:12px; padding:clamp(14px,3vw,23px); }
dialog::backdrop { background:#031219c7 }
.dialog-head { display:flex; justify-content:space-between; align-items:center; gap:10px; margin-bottom:16px }
.savings-layout {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.03fr);gap:18px;align-items:start}
.savings-layout h3 {margin:0;font-size:1rem;letter-spacing:-.01em}
.savings-assumptions {display:grid;gap:11px}
.fuel-fields {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.fuel-fields label {display:grid;align-content:end;gap:4px;font-size:.83rem;line-height:1.25}
.fuel-fields input {font-size:.95rem;padding:8px}
.savings-season {display:grid;grid-template-columns:minmax(0,1fr) 4.5rem;gap:4px 8px;align-items:center;padding:9px;background:#0e242e;border:1px solid var(--edge);border-radius:7px}
.savings-season label {font-size:.83rem;font-weight:650}
.savings-season input[type=number] {padding:6px 7px}
.savings-season input[type=range] {grid-column:1/-1;width:100%;margin:0;min-height:26px}
.savings-season p {grid-column:1/-1;font-size:.75rem;color:var(--muted)}
.savings-switches {display:flex;flex-wrap:wrap;gap:7px 16px;min-width:0;margin:0;padding:0;border:0}
.savings-switches legend {font-size:.76rem;color:var(--muted);margin-bottom:4px}
.savings-switches label {display:flex;align-items:center;gap:5px;font-size:.86rem;min-height:26px}
.savings-switches input {width:16px;height:16px;margin:0}
.savings-tabs {display:grid;grid-template-columns:1fr 1fr;gap:3px;padding:3px;background:#0d242e;border:1px solid var(--edge);border-radius:7px}
.savings-tabs button {padding:5px 8px;border:1px solid transparent;background:transparent;color:var(--muted);font-size:.85rem}
.savings-tabs button[aria-selected="true"] {background:#254651;border-color:#486c75;color:var(--ink)}
.crew-trip {display:grid;align-content:center;gap:3px;padding:7px;background:#1d3943;border-radius:6px}
.crew-trip span {font-size:.75rem;color:var(--muted)}
.crew-trip strong {font-variant-numeric:tabular-nums}
.savings-results {display:grid;gap:8px;padding:12px;background:#0e242e;border:1px solid #355862;border-radius:8px;min-width:0}
#savings-trip-note,#savings-error {font-size:.84rem;color:#bbd4d8}
#savings-error {color:var(--amber)}
.savings-costs {width:100%;margin-top:8px;border-collapse:collapse;table-layout:fixed;color:var(--ink);font-size:.78rem}
.savings-costs th,.savings-costs td {text-align:right;padding:5px 3px;border-bottom:1px solid #31505b;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.savings-costs th:first-child {width:33%;text-align:left;padding-left:0}
.savings-costs thead th,.savings-costs small {font-size:.71rem;color:var(--muted);font-weight:500}
.savings-costs small {display:block}
.savings-costs td {font-weight:650}
.savings-totals {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;margin:9px 0}
.savings-totals div {padding:6px 4px;background:#1e3c45;border-radius:5px;min-width:0}
.savings-totals div:last-child {background:#294e49}
.savings-totals dt {font-size:.72rem;color:#b9d6d8}
.savings-totals dd {margin-top:4px;font-weight:750;font-size:clamp(.86rem,1.8vw,1.2rem);color:var(--teal);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.savings-exposure {display:grid;gap:3px;margin:9px 0;padding:8px;background:#16343d;border:1px solid var(--edge);border-radius:6px}
.savings-exposure dt {font-size:.76rem;color:var(--muted)}
.savings-exposure dd {margin:0;font-size:.9rem;font-weight:700;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.savings-breakdown {display:grid;gap:5px;font-size:.85rem}
.savings-breakdown div {display:flex;justify-content:space-between;align-items:baseline;gap:7px;border-top:1px solid #31505b;padding-top:5px}
.savings-breakdown dt {display:flex;flex-wrap:wrap;gap:3px 7px}
.savings-breakdown small {color:var(--muted);font-size:.75rem}
.savings-breakdown dd {font-variant-numeric:tabular-nums;white-space:nowrap}
.savings-basis,.savings-note {color:var(--muted);font-size:.75rem}
.savings-note {margin-top:12px}
@media (max-width:660px) { .savings-layout {grid-template-columns:1fr;gap:12px} }
.demo-page .hud-motion,.demo-page .hud-home { bottom:37px }
.demo-page .hud-card b { font-size:clamp(15px,1.6vw,24px) }
.demo-page .hud-track b { font-size:15px }
.demo-page .hud-card span,.demo-page .hud-track { font-size:12px }
.demo-page .hud-tape span { font-size:10px }
@media (min-width:900px) and (orientation:landscape) { .demo-page { height:100dvh; grid-template-rows:auto minmax(0,1fr) auto } }
@media (max-width:900px) { .location { display:none } .presenter { grid-template-columns:1fr } .chapters { margin-left:3px } }
@media (max-width:690px) {
  .gate { grid-template-columns:1fr }
  .presentation { grid-template-columns:1fr }
  .map { min-height:48dvh }
  .story { min-height:280px }
  .head-controls button,.presenter-controls button { padding:7px 9px; font-size:.85rem }
  .demo-page .hud-compass { top:10px }
  .demo-page .hud-status { top:51px }
}
@media (max-width:350px) { .fuel-fields { grid-template-columns:1fr } }

.live-weather-status {font-size:.79rem;color:var(--muted)}
.weather-hud {position:absolute;z-index:3;top:10px;left:10px;width:min(334px,calc(100% - 78px));font-variant-numeric:tabular-nums}
.weather-symbols {position:absolute;width:0;height:0;overflow:hidden}
.weather-hud svg:not(.weather-symbols) {width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
#weather-chip {display:flex;align-items:center;gap:7px;padding:6px 8px;min-height:45px;max-width:100%;background:#102731;border-color:#567984;text-align:left}
.weather-chip-group {display:grid;line-height:1.15;gap:3px;white-space:nowrap}
.weather-chip-group strong {font-size:13px;color:var(--ink)}
.weather-chip-group small,#weather-hourly p,#wx-hours small {font-size:11px;color:#b7d0d4}
.weather-chip-wind {display:flex;align-items:center;gap:4px;border-left:1px solid #42616c;padding-left:6px}
.weather-hud .weather-sky,.weather-hud #wx-hours svg {color:var(--amber)}
.weather-hud .weather-arrow {color:var(--teal);width:15px!important}
.weather-hud .weather-chevron {width:12px!important;color:#b7d0d4;margin-left:auto}
#weather-chip[aria-expanded=true] .weather-chevron {transform:rotate(180deg)}
#weather-hourly {margin-top:15px;padding:10px;background:#102731;border:1px solid #567984;border-radius:8px}
#wx-source {font-weight:650}
#wx-outlook-label {font-size:12px;margin:6px 0 0}
#wx-hours {list-style:none;padding:7px 0;margin:7px 0;border-block:1px solid #385663;display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
#wx-hours li {min-width:0;display:grid;justify-items:center;gap:3px;text-align:center;font-size:12px}
#wx-hours li+li {border-left:1px solid #385663}
#wx-details:not(:empty) {margin-top:6px}
@media(max-width:1150px) {
  .demo-page .hud-compass {top:63px;left:10px;transform:none;width:min(43%,260px)}
  #weather-hourly {margin-top:64px}
}
@media(max-width:690px) {
  .weather-hud {width:min(310px,calc(100% - 68px))}
  .demo-page .hud-compass {top:63px}
}
.scene-status {position:absolute;z-index:4;inset:0;display:grid;place-content:center;justify-items:center;gap:10px;padding:16px;background:#142b34;text-align:center;color:#d1e2e6}

.camera-view,.route-view {position:absolute;inset:0;overflow:hidden;background:#122b3a}
.route-view svg {width:100%;height:100%;display:block}
.route-path {stroke:#a2f4df;stroke-width:2;stroke-dasharray:6 4;vector-effect:non-scaling-stroke}
.route-point {fill:#a2f4df;stroke:#102732;stroke-width:2}
.route-label {fill:#effbfa;stroke:#102732;stroke-width:6;paint-order:stroke;font-size:22px;font-weight:700}
.route-aircraft-ring {fill:#102732;stroke:#a2f4df;stroke-width:2.5}
.route-aircraft {fill:#e8fffa}
.view-tag {position:absolute;bottom:6px;left:6px;margin:0;padding:3px 6px;border:1px solid #54747d;border-radius:4px;background:#102733ef;color:#e3f7f4;font-size:.7rem;line-height:1.15;white-space:nowrap;pointer-events:none}
.view-tag b {color:var(--teal)}
.map[data-layout="launch"] .camera-view,
.map[data-layout="tracking"] .route-view {
  z-index:2;inset:auto 10px 10px auto;border:1px solid #6a929b;border-radius:7px;box-shadow:0 3px 12px #06151c90
}
.map[data-layout="launch"] .camera-view {width:clamp(155px,44%,410px);aspect-ratio:16/9}
.map[data-layout="tracking"] .route-view {width:clamp(116px,31%,260px);aspect-ratio:1.54}
.map[data-layout="tracking"] .route-label {font-size:28px}
.map[data-layout="launch"] .route-view .view-tag {bottom:10px;left:10px}
.map[data-layout="tracking"] .hud-home {bottom:100px;left:10px;right:auto}
.map[data-layout="tracking"] .hud-motion {bottom:10px}
@media(max-width:690px) {
  .map[data-layout="launch"] .camera-view {width:51%}
  .map[data-layout="tracking"] .route-view {width:34%}
}

