/* Browser chrome is outside the page. Fit only the actually visible area. */
.display-stage { position: fixed; left: 0; top: 0; width: 100%; height: 100%; overflow: hidden; z-index: 1; }
.display-controls { position: fixed; z-index: 60; right: 14px; bottom: 12px; display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: 7px; background: rgba(4, 18, 35, .92); transition: opacity .2s; }
.display-controls button { min-height: 40px; padding: 7px 14px; color: #dcf6ff; background: #12354b; border: 1px solid #5fa5c3; border-radius: 5px; font: 14px/1.4 sans-serif; cursor: pointer; }
.display-controls button:focus { outline: 3px solid #a5eaff; outline-offset: 2px; }
.display-controls span { max-width: 290px; font: 12px/1.5 sans-serif; color: #9fc1d4; }
.display-controls[data-visible="false"] { opacity: 0; pointer-events: none; }
.display-controls:focus-within { opacity: 1; pointer-events: auto; }
html[data-display-fullscreen="true"] body[data-display-idle="true"] { cursor: none; }
/* The pairing page may scroll on short windows; never centre its top offscreen. */
.access-gate { inset: auto; left: 0; top: 0; width: 100%; height: 100%; align-items: flex-start; padding-bottom: 76px; }
.access-card { margin: auto; flex-shrink: 0; }
@media (max-width: 600px) { .display-controls { right: 6px; bottom: 6px; max-width: calc(100% - 12px); } .display-controls span { max-width: 180px; } }
@media (prefers-reduced-motion: reduce) { .display-controls { transition: none; } }
