/* Star tracker: focal-plane display. Shared simulator layout lives in space/space.css. */
.frame-stage {
    position: relative; display: grid; place-items: center; padding: .7rem;
    background: #06070a; border-bottom: 1px solid var(--line);
}
.sensor-screen {
    position: relative; overflow: hidden; width: min(100%, 58vh, 690px); aspect-ratio: 4 / 3;
    background: #090b10; box-shadow: 0 0 0 1px #30343f;
}
#image, #overlay-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#overlay-canvas { pointer-events: none; }
.frame-legend { display: flex; flex-wrap: wrap; gap: .2rem .8rem; align-items: center; }
.frame-legend .key { display: inline-flex; gap: .35rem; align-items: center; white-space: nowrap; }
.frame-legend i { width: .55rem; height: .55rem; display: inline-block; border: 1px solid #83e4b6; }
.frame-legend .unmatched i { border-color: #e9bd7d; border-radius: 50%; }
.frame-legend .weak i { border-color: #f08a8a; }
.frame-legend[data-view=residuals] .unmatched { display: none; }
.pixel-readout { color: var(--text); }
#sensor-screen { cursor: crosshair; }
#orbit-strip { display: block; width: calc(100% - 16px); height: 30px; margin: .4rem 8px 0; cursor: pointer; }
.strip-legend .lit i { background: #4a3f22; }
.strip-legend .dark i { background: #151a24; box-shadow: inset 0 0 0 1px #2c3240; }
.strip-legend .saa i { background: #e0605f; }
#budget-note { margin-top: .5rem; }
@media (max-width: 560px) {
    .sensor-screen { width: 100%; }
    .frame-stage { padding: .4rem; }
}
