@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800&family=IBM+Plex+Mono:wght@400;500;600&family=Inter:wght@400;500;600;700&display=swap');
:root{color-scheme:dark;--bg:#0a1017;--panel:#111b26;--line:#263746;--muted:#a0b0bf;--accent:#ffb459;--mono:"IBM Plex Mono",monospace;--display:"Barlow Condensed","Arial Narrow",sans-serif}
*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 65% -20%,#1a2938,transparent 54%),var(--bg);color:#edf4fa;font-family:Inter,system-ui,sans-serif;min-height:100vh}header{height:75px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;padding:0 max(5%,calc((100vw - 1350px)/2));background:#0c141df0}.brand{display:flex;align-items:center;gap:12px}.brand strong{display:block;letter-spacing:.14em;font-size:15px}.brand small{display:block;color:var(--muted);font:500 11px var(--mono);letter-spacing:.11em;margin-top:4px}.mark{display:grid;place-items:center;width:40px;height:40px;border:1px solid #705333;background:#29201a;border-radius:8px;color:var(--accent);font-size:27px}main{max-width:1350px;margin:auto;padding:35px 28px 45px}.intro{display:flex;justify-content:space-between;align-items:end;gap:22px;margin-bottom:26px}.eyebrow,.progress,.viewhead,.viewfoot,#telemetry{font:600 13px var(--mono);letter-spacing:.09em}.eyebrow{color:var(--accent)}.eyebrow span{color:var(--muted);padding:0 5px}h1,h2{font-family:var(--display);margin:0;font-weight:700}h1{font-size:clamp(52px,7vw,96px);line-height:.95;margin:8px 0 12px}h1 span{color:var(--accent)}p{color:var(--muted);line-height:1.55;margin:0}.progress{width:min(255px,35%);color:var(--muted);padding-bottom:5px}.progress div{display:flex;justify-content:space-between;gap:8px}.progress strong{color:var(--accent)}progress{display:block;width:100%;height:6px;margin-top:10px;appearance:none;border:0;border-radius:10px;overflow:hidden;background:#253342}progress::-webkit-progress-bar{background:#253342}progress::-webkit-progress-value{background:var(--accent)}progress::-moz-progress-bar{background:var(--accent)}nav{display:grid;grid-template-columns:repeat(6,1fr);gap:7px;margin-bottom:16px}.step{padding:12px 10px;background:#111b25;border:1px solid var(--line);border-radius:7px;color:var(--muted);font:500 13px var(--mono);white-space:nowrap}.step span{opacity:.7;margin-right:7px}.step.active{color:var(--accent);border-color:#86613d;background:#2a221e}.step.done{color:#a4d7c6}.deck{display:grid;grid-template-columns:minmax(0,1fr) 315px;gap:16px;align-items:stretch}.viewport,.panel{border:1px solid var(--line);border-radius:12px;overflow:hidden;background:var(--panel)}.viewport{display:flex;flex-direction:column}.viewhead,.viewfoot{display:flex;justify-content:space-between;gap:10px;padding:14px 17px;color:#9dabb9}.viewhead{border-bottom:1px solid var(--line);color:#d5e3ef}.viewhead span:last-child{color:#8db3ca}.viewfoot{border-top:1px solid var(--line)}canvas{width:100%;height:auto;display:block;flex:1;min-height:0;object-fit:contain;background:#101d2b}.panel{padding:23px 20px}h2{font-size:37px;line-height:1.03;margin:9px 0 10px}.panel p{font-size:15px;margin-bottom:17px}button{cursor:pointer;font:600 14px Inter,system-ui,sans-serif;border-radius:7px;border:1px solid var(--line);background:#1b2937;color:#edf4fa;padding:11px 13px;touch-action:none}button:hover:not(:disabled){border-color:var(--accent)}button:focus-visible{outline:2px solid #ffd29c;outline-offset:3px}button:disabled{cursor:default}.quiet{background:transparent}.action{background:var(--accent);color:#241a12;border-color:transparent;width:100%;margin-top:8px}.action:hover{background:#ffc67e}.part{width:100%;display:flex;align-items:center;gap:10px;text-align:left;margin-bottom:7px;min-height:45px}.part .icon{color:var(--accent);width:20px;text-align:center}.part .state{margin-left:auto;color:#90a8bb;font:500 12px var(--mono)}.part:disabled{background:#131f29;color:#b9cbd8}.part:disabled .state,.part:disabled .icon{color:#91d0b6}#controls{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}#controls button{padding:12px 3px}#telemetry{margin-top:13px;color:#a0bbce;line-height:1.6}#telemetry:empty{display:none}[hidden]{display:none!important}dialog{background:var(--panel);color:#edf4fa;border:1px solid var(--line);border-radius:12px;padding:24px;max-width:calc(100% - 32px)}dialog::backdrop{background:#000a}dialog form{display:flex;gap:10px;margin-top:20px}dialog .action{margin:0;width:auto}@media(max-width:900px){.deck{grid-template-columns:minmax(0,1fr) 270px}.step span{display:none}}@media(max-width:690px){header{height:60px}main{padding:24px 12px}.deck{grid-template-columns:1fr}.intro{align-items:start;flex-direction:column;gap:15px}.progress{width:100%}nav{grid-template-columns:repeat(3,1fr)}.step{text-align:center;padding:8px 5px}.viewhead,.viewfoot{font-size:11px;padding:10px}.panel{padding:16px}h2{font-size:32px}}
nav{grid-template-columns:repeat(7,minmax(0,1fr))}.step{overflow:hidden;text-overflow:ellipsis}#scene{touch-action:none;cursor:grab}#scene:active{cursor:grabbing}#camera-mode{padding:4px 8px;font:500 12px var(--mono)}.viewhead{align-items:center}
.service-meta{display:flex;align-items:center;justify-content:space-between;gap:7px;font:500 11px var(--mono);color:#b7c6d3}.service-meta:first-child{color:var(--accent)}#job-title{font:700 27px var(--display);margin:8px 0}#job-points{padding-left:24px;margin:5px 0 15px;font-size:13px;line-height:1.5;color:var(--muted)}#job-points li{padding:2px 4px}.current-point{color:var(--accent);font-weight:700}.signed-off{color:#94baa9}#tool-label{font-size:13px;font-weight:600}.instrument{position:relative;margin:10px 0;padding:0 8px;background:#283745;border-radius:8px;height:25px}.instrument span{position:absolute;top:6px;height:13px;background:#9b7544;border-radius:3px;pointer-events:none}.instrument span.tracking{background:#427d65}#tool-setting{position:absolute;inset:0;width:100%;margin:0;appearance:none;background:transparent;accent-color:var(--accent);cursor:ew-resize}.instrument input::-webkit-slider-thumb{appearance:none;width:12px;height:22px;background:#f5d29a;border:1px solid #111a20;border-radius:3px}.instrument input::-moz-range-thumb{width:12px;height:22px;background:#f5d29a;border:1px solid #111a20;border-radius:3px}#tool-feedback{margin:10px 0 0;font-size:13px;min-height:2.7em}#sample-progress{height:4px}
@media(max-width:690px){nav{grid-template-columns:repeat(4,minmax(0,1fr))}.step{font-size:11px}.viewfoot{flex-wrap:wrap}}
:root{--accent:#ddbd73;--bg:#0b1220;--panel:#111d30;--line:#283a4d;--muted:#adbdcc}.brand .mark{background:#101d35;color:#ddbd73;border-color:#9a7c43}.step.active{background:#29271f;border-color:#967f4c}.action:hover{background:#f1d68e}
#reveal{width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;border-radius:0;background:#0a1323;overflow:hidden}#reveal[open]{display:flex;flex-direction:column}.reveal-header{display:grid;grid-template-columns:150px 1fr auto;align-items:center;gap:18px;padding:15px clamp(12px,3vw,42px);border-bottom:1px solid #364151;background:#101d35;z-index:1}.reveal-header img{width:100%;height:auto}.reveal-header h2{font-size:clamp(24px,4vw,46px);margin:3px 0 0}.reveal-actions{display:flex;gap:8px}.reveal-actions form{margin:0}.reveal-actions button{white-space:nowrap}.reveal-actions .action{width:auto}#reveal-scene{height:0;flex:1;display:flex;align-items:center;justify-content:center;background:radial-gradient(ellipse,#263645,#101925 65%,#0b1220)}#reveal-scene canvas{width:100%;height:100%;object-fit:contain}
@media(max-width:690px){.reveal-header{grid-template-columns:1fr auto;gap:9px;padding:12px}.reveal-header img{width:110px}.reveal-header>div:nth-child(2){grid-row:2;grid-column:1/-1}.reveal-actions .quiet{display:none}.reveal-header .eyebrow{font-size:10px}.brand small{font-size:9px}}
.view-actions,.reveal-views,#photo-nav{display:flex;gap:8px;align-items:center}.view-actions button{padding:5px 8px;font:500 12px var(--mono)}.reveal-views{padding:10px clamp(12px,3vw,42px);background:#0c1626;border-bottom:1px solid var(--line)}.reveal-views button,#photo-nav button{padding:7px 12px;font-size:13px}.reveal-views button[aria-pressed=true],#photo-nav button[aria-pressed=true]{background:#ddbd73;color:#151e2b;border-color:#ddbd73}#aircraft-photo{min-height:0;flex:1;display:flex;flex-direction:column;margin:0;background:#090f19}#reference-image{display:block;width:100%;min-height:0;flex:1;object-fit:contain}#aircraft-photo figcaption{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;padding:10px clamp(12px,3vw,42px);background:#101d35}#photo-credit{font:500 12px var(--mono);color:#dcc591;text-underline-offset:3px}
#photo-license{font:500 12px var(--mono);color:#dcc591;text-underline-offset:3px}#reference-image{height:0}

/* Hangar shift and its centered work cards. */
.header-tools{display:flex;gap:.45rem}.header-tools button{font-size:.84rem}
button{touch-action:manipulation}#controls button{touch-action:none}
#decision,#arrival,#restart{position:fixed;inset:0;margin:auto;padding:0;border:2px solid #bc9c59;box-shadow:0 0 0 4px #1d344b,0 24px 100px #000b;background:#0f1d2c;border-radius:12px;color:#eef4f6}
#decision::backdrop,#arrival::backdrop,#restart::backdrop{background:rgba(4,11,20,.82)}
#decision {
  --reading-size: 1.375rem;
  --label-size: 1.0625rem;
  width: min(62rem, calc(100% - 2rem));
  max-height: 94vh;
  max-height: 94dvh;
  overflow: auto;
  overscroll-behavior: contain;
  overflow-wrap: anywhere;
}
#decision[data-text-size="extra-large"] {
  --reading-size: 1.75rem;
  --label-size: 1.3125rem;
}
.card-head,.film-bar{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:.8rem 1.35rem;background:#172c41;border-bottom:1px solid #536070}
.card-head button,.film-bar button{padding:.45rem .65rem;font-size:.82rem}
#decision .card-head, #decision .card-tools {
  flex-wrap: wrap;
}
#decision .card-head { padding: .7rem clamp(1rem, 2.5vw, 1.6rem); }
#decision .card-head .eyebrow {
  max-width: none;
  font-size: var(--label-size);
  line-height: 1.4;
  letter-spacing: .035em;
  color: #ffe29e;
}
#decision .card-head button, .card-size, .card-size select {
  font: 600 var(--label-size)/1.35 system-ui, sans-serif;
}
.card-size { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; }
.card-size select, #decision .card-head button {
  min-height: 2.75rem;
  border: 1px solid #688199;
  border-radius: .4rem;
  padding: .4rem .65rem;
  background: #182b3c;
  color: #fff;
}
.card-size select:focus-visible { outline: 3px solid #ffe29e; outline-offset: 2px; }
#card-body { padding: 1.1rem clamp(1rem, 2.5vw, 1.6rem) 1.4rem; }
.decision-heading { display: flex; align-items: center; justify-content: space-between; gap: clamp(.65rem, 2vw, 1.5rem); }
.qa-plaque { display: block; width: clamp(5rem, 13vw, 9rem); height: auto; flex: none; border-radius: .35rem; }
.qa-plaque[hidden] { display: none; }
#signoff-emblem { width: clamp(3rem, 8vw, 5rem); align-self: center; }
#decision-title { font-size: clamp(2rem, 4.2vw, 3rem); line-height: 1.12; margin: 0 0 .4rem; outline: 0; }
#decision-prompt, #card-feedback, .evidence dd, .card-option, #decision .bench-controls p,
#decision .test-grid button, #decision .action, #decision .release-checklist label {
  font-size: var(--reading-size);
  line-height: 1.45;
  color: #f7fafc;
}
.card-reference { display: grid; align-items: start; gap: .85rem; }
#decision-prompt + .card-reference:has(#bench-view:not([hidden]), .evidence) { margin-top: 1rem; }
@media (min-width: 48em) {
  .card-reference:has(#bench-view:not([hidden])) { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 1.25rem; }
}
#bench-view { margin: 0; overflow: hidden; border: 1px solid #526678; border-radius: .45rem; background: #142536; }
#bench-image { width: 100%; height: auto; max-height: 14rem; object-fit: contain; }
@media (max-width: 47.99em) {
  #bench-image { max-height: min(22vh, 11rem); }
}
#bench-camera {
  padding: .55rem .8rem;
  border-top: 1px solid #526678;
  font-size: var(--label-size);
  font-weight: 650;
  line-height: 1.4;
  color: #ffe29e;
}
#card-evidence { display: grid; gap: .5rem; margin: 0; }
#card-evidence:empty, #card-feedback:empty { display: none; }
.evidence { padding: .5rem .95rem .65rem; border-left: 3px solid #ddbd73; background: #192d40; }
.evidence dt, #decision .test-record legend { color: #ffe29e; font-size: var(--label-size); font-weight: 700; line-height: 1.4; }
.evidence dd { margin: .12rem 0 0; }
#card-options { display: grid; gap: .6rem; margin-top: 1rem; }
.card-option {
  width: 100%;
  min-height: 3.25rem;
  display: block;
  text-align: left;
  padding: .55rem 1rem;
  background: #20394e;
  border: 1px solid #70899e;
}
.card-option strong { display: block; }
.card-option small { display: block; font-size: .88em; font-weight: 450; margin-top: .18rem; }
.card-option[data-invalid=true] { border-color: #cc8b66; background: #382c29; }
.card-option:hover:not(:disabled) { background: #2a465b; }
#card-feedback { color: #ffe0a5; margin: .8rem 0 0; }
.card-subaction { justify-self: start; color: #dfebf4; background: transparent; border: 0; text-decoration: underline; text-align: left; padding: .5rem 0; font-size: var(--label-size); }
#decision .action { color: #211a0d; }
#decision .test-grid button[aria-pressed=true] { color: #152331; }
#decision .test-record { min-width: 0; }
#restart{padding:1.4rem}#arrival{width:min(74rem,calc(100vw - 2rem));max-height:94dvh;overflow:auto;background:#0c1824}#arrival video{width:100%;display:block;height:100%;object-fit:contain}.film-frame{aspect-ratio:16/9;max-height:65dvh;background:#0a1016}.film-footer{display:flex;align-items:center;justify-content:space-between;padding:1rem 1.4rem;gap:1rem}.film-footer h2{margin:.25rem 0;font-size:1.9rem}.film-footer p{font-size:.94rem}.film-footer button{white-space:nowrap}
#job-station{color:#b8c8d2;margin-bottom:.55rem}.service-meta{gap:10px;flex-wrap:wrap}.service-meta span:last-child{color:#d2dfe6}#job-points{counter-reset:bench;list-style:none;padding:0;display:grid;gap:.2rem}#job-points li{padding:.18rem 0}#job-points li:before{display:inline-block;width:1.6rem;color:#748a9c;counter-increment:bench;content:counter(bench,decimal-leading-zero);font:500 .75rem var(--mono)}#job-points .signed-off:before{content:"✓";color:#83c9a7}#job-points .current-point:before{color:#e1bf75}
.bench-controls{background:#142536;border:1px solid #354d60;border-radius:6px;padding:.8rem;display:grid;gap:.6rem}.bench-controls label{font-size:.86rem;color:#d2e0e8}.bench-controls input[type=range]{width:100%;accent-color:#e0bd6c}.bench-readout{font:500 .86rem var(--mono);color:#e3c17d}.test-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.4rem}.test-grid button{min-height:42px;background:#253a4c;color:#f2e9d6}.test-grid button[aria-pressed=true]{background:#d5b669;border-color:#ffe4a6;color:#152331}.surface-tile{font:700 1.1rem var(--mono)}
#decision .action{min-height:44px;width:100%;margin:0}.view-actions{flex-wrap:wrap;justify-content:flex-end}.work-nav{grid-template-columns:repeat(6,minmax(0,1fr))}
@media(max-width:690px){.work-nav{grid-template-columns:repeat(3,minmax(0,1fr))}#decision{width:calc(100vw - 1.2rem);max-width:none;max-height:93dvh}#card-body{padding:.85rem}.card-head,.film-bar{padding:.65rem .85rem}#arrival{width:calc(100vw - 1rem);max-width:none}.film-footer{padding:.75rem;align-items:flex-start}.film-footer h2{font-size:1.4rem}.header-tools{gap:.22rem}.header-tools button{font-size:.75rem;padding:.5rem}.viewhead{gap:4px}.view-actions{gap:4px}.view-actions button{font-size:.68rem}.card-option{padding:.6rem .7rem}}
@media(max-height:540px) and (orientation:landscape){#decision{max-height:92dvh}.film-frame{max-height:50dvh}}
.film-tools{display:flex;align-items:center;gap:.4rem;flex-wrap:wrap;justify-content:flex-end}
#decision .card-option:disabled{cursor:default;color:#cdbcb3}.bench-controls .action:disabled,#card-options>.card-option:disabled{opacity:.7}

#photo-nav{flex-wrap:wrap}#photo-credit:not([href]){text-decoration:none}

#sound-panel{position:fixed;inset:0;margin:auto;padding:0;width:min(29rem,calc(100vw - 2rem));border:2px solid #bc9c59;background:#101e2e;color:#edf2f5;border-radius:12px;box-shadow:0 0 0 4px #1d344b,0 24px 100px #000b}
#sound-panel::backdrop{background:#050d17c9}#sound-panel form{margin:0}.sound-body{padding:1.1rem 1.4rem 1.4rem}.sound-body h2{margin:0 0 1.2rem}.sound-body p{font-size:.89rem;margin:.75rem 0 0;color:#c3d2de}
.card-tools{display:flex;align-items:center;gap:.45rem}.mix-row{display:grid;grid-template-columns:1fr auto;align-items:center;gap:.3rem 1rem;margin:0 0 1.1rem}
.mix-row label,.power-title label{font-weight:650}.mix-row output,.power-title output{font:600 .9rem var(--mono);color:#edca7e}
.mix-row input,#power-input{accent-color:#ddbb73;width:100%;min-width:0;height:2.2rem;margin:0;cursor:pointer;touch-action:pan-y}.mix-row input{grid-column:1/-1}
#power-control{background:#132336;border-top:1px solid #354659;padding:.45rem 1rem .22rem}#power-control[hidden],#auto-power[hidden]{display:none}
.power-title{display:flex;align-items:center;gap:.65rem}.power-title .quiet{margin-left:auto;font-size:.8rem;padding:.3rem .65rem}.power-title button[aria-pressed=true]{color:#b2d3bf;border-color:#507467}
#replay-flight{margin-top:.65rem;width:100%}
@media(max-width:460px){header{flex-wrap:wrap;gap:.4rem}.header-tools{flex-wrap:wrap}.card-tools{gap:.2rem}.card-head .eyebrow{max-width:54%}}

.flight-frame{position:relative;overflow:hidden}
#climb-instruments,#test-flight-award{position:absolute;z-index:1;pointer-events:none;background:rgba(10,24,39,.9);color:#eef4f6}
#climb-instruments{left:2.5%;bottom:4%;display:grid;gap:.15rem;padding:.45rem .85rem;border-left:3px solid #dabe77}
#climb-instruments span,#test-flight-award small,#test-flight-award span{font:600 clamp(.64rem,1.35vw,.88rem) var(--mono);letter-spacing:.11em;text-transform:uppercase;color:#e9ce8d}
#climb-instruments strong{font:600 clamp(.99rem,2vw,1.45rem) var(--mono);font-variant-numeric:tabular-nums}
#test-flight-award{left:50%;top:4%;transform:translateX(-50%);width:max-content;max-width:93%;box-sizing:border-box;display:grid;justify-items:center;gap:.12rem;border:1px solid #c5a567;border-bottom:3px solid #c5a567;border-radius:5px;padding:.52rem 1.45rem .45rem;text-align:center}
#test-flight-award strong{font-size:clamp(1.1rem,2.9vw,2rem);line-height:1.12;letter-spacing:-.025em}
#climb-instruments[hidden],#test-flight-award[hidden]{display:none}
#replay-finale{margin-top:.65rem;width:100%}
/* Immersive flightline: retain the active mission controls at every screen size. */
.graphics-label{display:flex;align-items:center;gap:.4rem;font:500 14px system-ui;color:#c9d3db;letter-spacing:0}.graphics-label select{font:500 14px system-ui;padding:.45rem;background:#142431;color:#e9ddbd;border:1px solid #51616b;border-radius:6px;min-height:36px}.view-actions{flex-wrap:wrap}.viewhead{flex-wrap:wrap;gap:10px}.immersive header,.immersive .intro,.immersive #phases{display:none}.immersive main{max-width:none;padding:10px}.immersive .deck{grid-template-columns:minmax(0,1fr) 290px;align-items:start}.immersive .viewport{position:sticky;top:10px}.immersive .flight-frame{height:calc(100dvh - 240px);min-height:300px;background:#111b20}.immersive #scene{height:100%;width:100%;object-fit:contain}.immersive .panel{padding:20px;max-height:calc(100dvh - 20px);overflow:auto}.immersive .viewhead{padding:10px 14px}.immersive h2{font-size:32px}@media(max-width:850px){.immersive .deck{grid-template-columns:1fr}.immersive .viewport{position:relative;top:0}.immersive .flight-frame{height:57dvh}.immersive .panel{max-height:none}.graphics-label{font-size:14px}}@media(prefers-reduced-motion:reduce){#scene{scroll-behavior:auto}}


.test-record{border:1px solid #526473;border-radius:6px;margin:0;padding:.65rem}.test-record legend{color:#e6c47e;font-size:14px;padding:0 .4rem}.test-record p{font-size:16px;line-height:1.4;margin-bottom:.5rem}.test-record .test-grid{grid-template-columns:1fr 1fr}.release-checklist{display:grid;gap:14px;padding:12px 0}.release-checklist label{display:flex;gap:12px;align-items:start;line-height:1.5}.release-checklist input{width:24px;height:24px;flex:none;accent-color:#dfbd75}.simulation-note{font-size:14px;margin-top:20px}.simulation-note a{color:#e6c47e}.immersive .simulation-note{margin-top:8px}

#repair-cinema{width:min(1120px,96vw);max-height:94dvh;padding:20px;border:2px solid #d8b86e;border-radius:18px;background:#0d1928;color:#edf2f8;box-shadow:0 30px 100px #000b;}
#repair-cinema::backdrop{background:#030a12e8;backdrop-filter:blur(7px)}
#repair-cinema header{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:14px}
#repair-cinema h2{font-size:clamp(24px,3.4vw,42px);margin:4px 0}
#repair-cinema video{display:block;width:100%;max-height:66dvh;aspect-ratio:16/9;object-fit:contain;background:#030810;border-radius:9px}
#repair-cinema .repair-film-footer{display:flex;align-items:center;justify-content:space-between;gap:18px}
#repair-cinema p{font-size:16px;color:#c6d1dc}#repair-cinema small{color:#8e9daa;font-size:12px}
#repair-cinema button{min-height:44px;padding:10px 16px;background:#23384a;color:#f5e0ab;border:1px solid #af975c;border-radius:8px;cursor:pointer}
@media(max-width:600px){#repair-cinema{padding:12px}#repair-cinema header{align-items:flex-start}.repair-film-footer{align-items:flex-start!important}}

.panel #instruction, .panel #job-station, #job-points, #tool-run {
  color: #edf5fa;
  font-size: 1.125rem;
  line-height: 1.5;
}
#job-points .current-point { color: #ffe29e; }
#tool-run { color: #211a0d; }
#service .service-meta { font-size: 1rem; }

#card-evidence.score-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(7rem, 100%), 1fr));
  gap: .75rem;
  margin: .4rem 0;
}
.score-summary > div {
  padding: .8rem 1rem;
  border-left: 3px solid #ddbd73;
  background: #192d40;
}
.score-summary dt { color: #ffe29e; font-size: var(--label-size); font-weight: 650; }
.score-summary dd { margin: .2rem 0 0; font-size: calc(var(--reading-size) * 1.6); font-weight: 700; font-variant-numeric: tabular-nums; }
#test-flight-award #award-score { font: 650 1.125rem/1.3 system-ui, sans-serif; letter-spacing: 0; text-transform: none; }
#view-score { width: 100%; margin-top: .65rem; font-size: 1.125rem; border-color: #b99b5f; }

.brand-emblem{width:2.7rem;height:2.7rem;object-fit:contain;border-radius:.5rem}
.film-frame,.repair-screen{position:relative}
.film-wordmark{position:absolute;z-index:1;top:3%;left:2%;width:clamp(6.2rem,15%,10rem);height:auto;padding:.22rem .4rem;background:rgba(12,27,45,.86);border-radius:.25rem;pointer-events:none}
#repair-cinema header{height:auto;min-height:0;padding:.35rem 0 .8rem;background:none}
#repair-cinema .repair-film-footer p{font-size:1.1rem;line-height:1.45}
#campus-ending{position:absolute;inset:0;overflow:hidden;background:#1d3545;pointer-events:none}
#campus-ending[hidden]{display:none}
#campus-ending img,#campus-ending video{display:block;position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
#campus-ending video:not(.playing){visibility:hidden}

#repair-cinema.brand-on-film .film-wordmark{display:none}

#share-game {
  min-height: 44px;
  border-color: #b99b5f;
  color: #ffe29e;
  font-size: .94rem;
}
#share-dialog { width: min(26rem, calc(100% - 2rem)); }
#share-dialog h2 { margin: 0 0 1rem; }
#share-dialog label { display: block; margin-bottom: .35rem; }
#share-url {
  box-sizing: border-box;
  width: 100%;
  padding: .7rem;
  font: inherit;
  color: #edf4fa;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: .4rem;
}
#share-dialog button { min-height: 44px; }
#share-status { margin: .75rem 0 0; }
#share-status:empty { margin: 0; }
.rental-promo { margin: 1.25rem 0 .75rem; }
.rental-promo a {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2.25rem);
  padding: 1.15rem clamp(1rem, 2.5vw, 2rem);
  background: #14253a;
  color: #f6f3ed;
  text-decoration: none;
  border: 1px solid #465465;
  border-left: 4px solid #d8b269;
  border-radius: .55rem;
}
.rental-promo img { width: 10rem; height: auto; }
.rental-promo-copy { flex: 1; min-width: 0; }
.rental-promo-copy strong { display: block; font: 700 clamp(1.4rem, 2.6vw, 1.85rem)/1.1 var(--display); }
.rental-promo-copy span { display: block; margin-top: .28rem; color: #d9e3eb; font-size: 1rem; line-height: 1.4; }
.rental-promo-action, .film-sponsor { color: #f7d58c; font-weight: 650; text-decoration: underline; text-underline-offset: .2em; }
.rental-promo a:hover { border-color: #d8b269; }
.rental-promo a:focus-visible, .film-sponsor:focus-visible { outline: 3px solid #f7d58c; outline-offset: 3px; }
.film-sponsor { display: inline-flex; align-items: center; min-height: 44px; font-size: 1rem; }
.film-bar button { flex-shrink: 0; }
.immersive .rental-promo { display: none; }
@media (max-width: 48rem) {
  .rental-promo a { flex-direction: column; align-items: flex-start; gap: .7rem; }
  .rental-promo img { width: 8rem; }
}
@media (max-width: 42rem) {
  body > header { height: auto; min-height: 60px; flex-wrap: wrap; gap: .5rem; padding-block: .6rem; }
  .header-tools { flex-wrap: wrap; }
}

/* Keep the incident readable in the flight frame, including tablet immersive mode. */
#ife-film, #ife-hud, #ife-caption { position: absolute; pointer-events: none; }
#ife-film[hidden], #ife-hud[hidden], #ife-caption[hidden] { display: none; }
#ife-film {
  inset: 0; background: #14202b; container-type: size;
  display: grid; place-items: center; overflow: hidden;
}
.ife-plate { position: relative; width: min(100%, 177.87cqh); aspect-ratio: 836 / 470; }
#ife-still { width: 100%; height: 100%; display: block; object-fit: contain; }
.ife-beacons { display: none; position: absolute; inset: 0; }
#ife-still[data-shot="rescue"] + .ife-beacons { display: block; }
.ife-beacons i {
  position: absolute; width: 1%; aspect-ratio: 2 / 1; border-radius: 50%;
  background: #ffecad; box-shadow: 0 0 .45rem .15rem #ff4738;
  transform: translate(-50%, -50%); animation: ife-beacon 1.3s ease-in-out infinite alternate;
}
.ife-beacons i:nth-child(1) { left: 12.8%; top: 47.7%; }
.ife-beacons i:nth-child(2) { left: 25%; top: 37.7%; animation-delay: -.5s; }
.ife-beacons i:nth-child(3) { left: 78.6%; top: 33%; animation-delay: -.9s; }
.ife-beacons i:nth-child(4) { left: 85.2%; top: 49.4%; animation-delay: -.3s; }
@keyframes ife-beacon { from { opacity: .12; } to { opacity: 1; } }
#ife-hud {
  top: 4%; left: 3%; right: auto; z-index: 2; max-width: 94%;
  display: flex; align-items: center; gap: .65rem; padding: .55rem .85rem;
  color: #fff2cb; background: #211b15ef; border: 1px solid #f3bc62; border-radius: 4px;
}
#ife-hud small { display: block; color: #ffd88a; font: 650 .875rem/1.3 system-ui; }
#ife-hud strong { font: 700 clamp(1rem,2.2vw,1.35rem)/1.15 system-ui; }
.ife-lamp { flex: none; width: .85rem; height: .85rem; border-radius: 50%; background: #ffad32; box-shadow: 0 0 .55rem #ff9c29; animation: ife-beacon .65s ease-in-out infinite alternate; }
#ife-caption {
  bottom: 0; left: 0; right: 0; z-index: 2; padding: .55rem 3% .65rem;
  background: #0a1622ee; border-top: 2px solid #caa569; color: #f5f7fa;
  display: flex; align-items: baseline; flex-wrap: wrap; gap: .15rem .7rem;
  font: 500 clamp(1rem,1.55vw,1.2rem)/1.32 system-ui;
}
#ife-call { font-weight: 750; color: #ffe09e; }
.score-summary > .evidence { grid-column: 1 / -1; }
.score-summary > .evidence dd { font-size: var(--reading-size); }
@media (prefers-reduced-motion: reduce) {
  .ife-lamp, .ife-beacons i { animation: none; }
}

#ife-clip { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; visibility: hidden; }
#ife-clip.playing { visibility: visible; }

#player-profile{width:min(92vw,28rem);box-sizing:border-box;background:#12202c;color:#f4f2eb;border:1px solid #a58b58;border-radius:.75rem;padding:1.4rem}#player-profile::backdrop{background:#07111bd9}#player-profile p{line-height:1.5}#player-profile .profile-actions{display:grid;gap:.6rem}#player-profile a{color:#f5ce81}#player-profile [hidden],#profile-open[hidden]{display:none}

#ife-film.ground-recovery .ife-beacons{display:none}

/* The arrival film is the first screen new players see. */
.film-sound-slot {
  flex: 1;
  min-width: 0;
  min-height: 3.5rem;
  display: flex;
  align-items: center;
}
#film-sound {
  position: relative;
  left: 0;
  transform: translateX(0);
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  min-height: 3.5rem;
  padding: .65rem clamp(1rem, 3vw, 2rem);
  border: 2px solid #ffe3a3;
  border-radius: .65rem;
  background: #f4cd7c;
  color: #101d30;
  font: 750 clamp(1.1rem, 2.2vw, 1.45rem)/1.2 system-ui, sans-serif;
  cursor: pointer;
}
#film-sound:hover { background: #ffdf9e; }
#film-sound[data-enabled="true"] {
  left: 100%;
  transform: translateX(-100%);
  min-height: 2.75rem;
  padding: .45rem .7rem;
  gap: .4rem;
  border: 1px solid #607183;
  border-radius: 7px;
  background: transparent;
  color: #edf4fa;
  font: 600 .95rem/1.2 system-ui, sans-serif;
}
#film-sound[data-enabled="true"]:hover { background: #21384c; }
#film-sound[data-enabled="true"] svg { width: 1.15rem; height: 1.15rem; }
@media (prefers-reduced-motion: no-preference) {
  #film-sound {
    transition: left .38s ease-in-out, transform .38s ease-in-out;
  }
  #film-sound[data-enabled="true"] { animation: settle-sound .38s ease-in-out; }
  @keyframes settle-sound {
    0%, 100% { opacity: 1; }
    45% { opacity: .2; }
  }
  .sound-settings { transition: background-color .25s, border-color .25s, color .25s; }
}
#film-sound svg { flex: none; width: 1.6rem; height: 1.6rem; }
#film-sound[data-enabled="false"] .speaker-waves,
#film-sound[data-enabled="true"] .speaker-muted { display: none; }
#sound-open, #card-sound { min-height: 2.75rem; }
:root:not(.sound-active) .sound-settings {
  padding-inline: .85rem;
  background: #f4cd7c;
  border: 1px solid #ffe3a3;
  color: #101d30;
  font-weight: 750;
}
#film-sound:focus-visible, .sound-settings:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}
@media (max-width: 42rem) {
  #arrival .film-bar { flex-wrap: wrap; }
  #arrival .film-sound-slot { flex: 1 1 12rem; }
  .film-footer { flex-wrap: wrap; }
  .film-tools { justify-content: flex-start; }
}

.view-actions .mission-exit, .card-tools .mission-exit { min-height: 40px; color: #f1d79b; border-color: #96804e; }
#exit-mission-dialog { width: min(28rem, calc(100vw - 2rem)); margin: auto; padding: 1.4rem; color: #edf4fa; background: #112032; border: 2px solid #bc9c59; border-radius: 12px; }
#exit-mission-dialog::backdrop { background: rgb(4 11 20 / .82); }
#exit-mission-dialog form { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .6rem; }
#exit-mission-dialog button { min-height: 44px; }
#arrival .film-bar .mission-exit { margin-left: auto; }

.header-tools .game-exit, .view-actions .game-exit, .card-tools .game-exit, .film-bar .game-exit, .game-exit {
  min-height: 44px;
  padding: .65rem .9rem;
  font-size: 1rem;
  font-weight: 700;
  color: #fff0c9;
  background: #423321;
  border: 2px solid #d7b569;
}
.game-exit:hover { background: #60492d; }
.game-exit:focus-visible { outline: 3px solid #fff0c9; outline-offset: 3px; }

#hangar-photo { position:absolute; inset:0; display:grid; place-items:center; background:#101923; }
#hangar-photo[hidden], #photo-mode[hidden], #photo-inspect[hidden] { display:none; }
#bay-photo { display:block; width:100%; height:100%; object-fit:contain; min-height:0; }
#photo-inspect { position:absolute; bottom:.8rem; left:.8rem; max-width:calc(100% - 1.6rem); min-height:44px;
  padding:.55rem .9rem; background:#112b23f5; color:#e2ffec; border:2px solid #78ed9d; border-radius:.5rem; font-weight:700; }
#bench-image { display:block; aspect-ratio:16/9; width:100%; object-fit:contain; background:#101923; }
@media(min-width:48em) {
  #decision:is([data-mode="level"],[data-mode="assembly"],[data-mode="confirm"]) #card-body {
    display:grid; grid-template-columns: minmax(0,1fr) minmax(0,1.15fr); gap:.75rem 1.25rem; align-items:start; }
  #decision:is([data-mode="level"],[data-mode="assembly"],[data-mode="confirm"]) #card-body > :is(.decision-heading,#decision-prompt,#card-feedback) { grid-column:1/-1; margin:0; }
  #decision:is([data-mode="level"],[data-mode="assembly"],[data-mode="confirm"]) #card-body > :is(.card-reference,#card-options) { margin-top:0; }
  #decision:is([data-mode="level"],[data-mode="assembly"],[data-mode="confirm"]) .card-reference { grid-template-columns:1fr; }
}

#hangar-photo { container-type:size; }
.hangar-photo-plate { position:relative; width:100%; width:min(100cqw, 177.7778cqh); aspect-ratio:16/9; }
#photo-marker { position:absolute; transform:translate(-50%,-50%); padding:0; width:44px; height:44px;
  border:0; border-radius:50%; background:transparent; display:grid; place-items:center; }
#photo-marker[hidden] { display:none; }
#photo-marker::after { content:""; width:21px; height:21px; border:3px solid #8affac; border-radius:50%;
  box-shadow:0 0 0 2px #163c29,0 0 10px #41ff91; background:#3be78244; }
#photo-marker:focus-visible { outline:3px solid white; }
