/*
 * THE PAGE CHROME — card#11045 PR-A; `docs/design/FLOOR.md` § 4.2 (the floor page's chrome, top to bottom)
 * and § 10.4 (this file is the palette's one home).
 *
 * ⛔ ONE SHEET, LINKED ONCE, FROM `resources/views/layouts/app.blade.php`, with `?v=<mtime>` so a deploy
 * that changes it is never served from a browser's cache. No bundler and no build step: it is served
 * static the way `public/js/floor/main.js` is. `Tests\Feature\ThePageChromeIsOneLinkedStylesheetTest`
 * holds the link.
 *
 * ⛔ THE PALETTE LIVES HERE ONCE, AS CUSTOM PROPERTIES ON `:root`, AND THE FLOOR's DRAWING READS IT.
 * `public/js/floor/painter.js`'s embedded style names every colour as `var(--scene-…)`; a token it reads
 * that is not declared below resolves to nothing, so the same test reds on one.
 *
 * ⛔ `--door` / `--door-edge` / `--lobby-mat` ARE COPIES OF THE LOBBY's `INK.door` / `INK.doorEdge` / `INK.mat`
 * (`public/js/lobby/building-scene.js`), which the lobby keeps as hex because its room is SVG shape data painted as
 * presentation attributes, which read no custom property; the floor's elevator (card#11045 PR-D), the lobby room's
 * leaves and the lobby view behind the cab's doors (card#12113) read these, and the same test reds when they drift.
 *
 * ⛔ NO TEXT SIZE ON `:root`, `html`, `body`, `*` OR ON ANY TAG THE LOBBY DIRECTORY IS BUILT FROM, AND NO
 * `!important` TEXT SIZE. The directory's face is `1rem`, which must be the body text size (§ 4.1;
 * `Tests\Feature\Lobby\TheLobbyIsADrawnRoomTest` reads this sheet and reds on each). Text sizes below are set on
 * classes and ids, and on headings, summaries and controls.
 *
 * ⛔ THE FLOOR's DRAWING HEIGHT IS ONE MECHANISM, A FLEX COLUMN: on the floor page `main` is a column at
 * least `100dvh − --reveal` tall, and the room's stage (`#floor-drawing`, the gesture hint's row under it,
 * and the drill-down card over both) takes ALL the height the chrome above it leaves (the header, the
 * strip, any banner, statement or notice shown, the camera row), the drawing never less than its own
 * `min-height` and with NO ceiling — a ceiling left the rest of a tall window empty between the room and
 * the sections (card#11045 review r1). The sections below the room hang from the column's bottom edge,
 * which is the stage's, so the first section's summary touches the hint's row under the drawing and shows
 * `--reveal` above the window's bottom edge whenever the drawing is above its floor. `tools/design/floor-chrome.browser.mjs` measures both on a rendered page.
 * The camera's surface is the drawing's own box (`main.js`'s `surface()`, re-read by a `ResizeObserver`
 * on the drawing), so the chrome growing or shrinking is a resize of the drawing the camera sees.
 *
 * ⛔ EVERY `color-mix()` HERE SITS IN AN `@supports (color: color-mix(in srgb, currentColor 50%, transparent))`
 * BLOCK, AFTER A PLAIN RULE OF THE SAME SELECTOR THAT SETS THE SAME PROPERTY (card#12070, the mechanism card#12052
 * gave the drawing's own style in `painter.js`). A declaration holding `var()` is accepted when it is parsed and
 * fails only when its value is computed, so a browser without `color-mix()` would keep it and paint nothing — a
 * `box-shadow` or `border` losing the whole declaration — and a plain value declared before it in the same rule would
 * be thrown away. The plain rule
 * is therefore a rule of its own: a browser without `color-mix()` skips the block and keeps it, one with it takes the
 * block's later rule. Each fallback is the mixed value with every `color-mix()` replaced by ONE OF ITS OWN COLOURS,
 * picked so the rule still reads (the larger share unless named otherwise beside it).
 * `Tests\Feature\ThePageChromeIsOneLinkedStylesheetTest` reds on a `color-mix()` outside such a block, here or in
 * the painter's style, and on a mixed declaration with no plain one before its block; the popup's contrast in this
 * branch is `TheCabPanelReconcilesByKeyTest`'s.
 *
 * Scoping: the shell's rules are generic; the floor's sit under `#floor`, the lobby's under `.lobby`,
 * the console's under `.console-nav`; a sign-in page gets the shell and nothing else.
 */

:root {
    color-scheme: dark;

    /* The page — dark, quiet chrome around a warm room (§ 10.4). */
    --ground: #171a28;
    --ground-deep: #10121c;
    --panel: #1f2333;
    --panel-2: #262b3e;
    --line: #323850;
    --ink: #eef0f6;
    --dim: #aab1c6;
    --faint: #707890;
    --lamp: #ffcf7d;
    --lamp-dim: #a8834e;
    --warn: #f0b455;
    --alarm: #d97b6c;

    /* The floor's elevator leaves, as the lobby's cab draws them — copies, held equal by a test (above) — and
       the seam between them. */
    --door: #dbe5ee;
    --door-edge: #9fb1c4;
    --door-frame: #2b3340;
    /* card#12786: the restroom door's slider field (FLOOR.md § 6.7 item 2) — vacant green under a white ring, occupied red
       under a white bar, shape as well as colour. */
    --restroom-vacant: #5f9a62;
    --restroom-occupied: #c8553d;
    /* The welcome mat the lobby view behind the cab's doors lays before the front doors (card#12113) — a copy of
       the lobby's `INK.mat`, held equal by the same test. */
    --lobby-mat: #e7866d;
    /* The lobby directory's plaque (FLOOR.md § 4.1, card#12113): its cream face — a surface the state chips are measured
       over (`tools/design/state-chip-colours.py`) — its soft frame, its ink, its dimmer ink, the chips' outline, the brass
       edge of the readings' panels and the dark of its title bar and numerals. */
    --lobby-plaque: #fffaf2;
    --lobby-plaque-edge: #e7b98f;
    --lobby-plaque-ink: #3b2f2a;
    --lobby-plaque-dim: #6b5f58;
    --lobby-plaque-outline: rgba(59, 47, 42, 0.35);
    --lobby-brass: #c9a873;
    --lobby-sign: #3b2f4a;

    /* The floor's frame's FALLBACK (docs/design/FLOOR.md § 10.6 item 8): what the painter draws under the
       floor's theme on every paint, so it is what is left where a theme's document is not — the band's flat
       wall, the slab under the rooms, and a plane's flat fill. One sheet token for every theme, held to the
       facts' ink at 4.5:1 by AT-D3-25 (`tools/floor-themes/selftest.mjs`): a failed theme is legible rather
       than pretty. The art is the theme's (`resources/floor/themes/<name>/theme.js`). */
    --house-wall: #2a454f;
    --house-wall-2: #35565f;
    --house-trim: #1f3540;
    --scene-floor: #e8dcc4;

    /* The room drawing's palette — `public/js/floor/painter.js`'s classes read these. */
    --scene-ink: #3b2f2a;
    --scene-glass: #cfe6f5;
    --scene-trim: #8a6f5a;
    --scene-clock-face: #fffaf2;
    --scene-monitor: #2d3342;
    --scene-monitor-on: #7fd3c4;
    --scene-placeholder: #f1ece6;
    --scene-placeholder-edge: #b8a99a;
    --scene-stool: #c98b5b;
    --scene-badge: #fde2c7;
    --scene-badge-edge: #d9905a;
    --scene-paper: #ffffff;
    --scene-unrecognised: #bb3333;
    --scene-gauge-track: #e8dfd4;
    --scene-gauge-fill: #7fb069;
    --scene-bubble-source: #7a6a60;
    --scene-thread: #6b8fd6;
    --scene-flash: #ffe9a8;

    /* The desk's plate and its flag ⚠ +N (card#11058 B2): the nameplate's paper, and the one flag's chip. */
    --scene-plate: #fffaf2;
    --scene-plate-edge: #8a6f5a;
    --scene-flag: #fff3d6;
    --scene-flag-edge: #d9905a;
    --scene-flag-ink: #8a4b10;

    /* The state chip (§ 7.1, card#11058 Q4 a): one colour per `render_state` member — `lobby/render-state.js`'s
       ten, which the painter's chip rules are generated from — and the chip's ink, each fill light enough to
       hold it. The word on the chip carries the state; the colour never carries it alone. A held seat's chip
       is hollow, edged in its state's colour, in the unconfirmed ink. `retired` is never drawn (no desk).
       The three quiet states are a cold family — frost, dusk, slate — chosen so that, as the tokens, as the
       dimmed hollow edge and AS DRAWN under § 7.3's lighting over either plank course, every pair involving one
       of them is at least 5 ΔE2000 apart under the three dichromacies; the live states' own pairs are PR #269's;
       re-derived by `tools/design/state-chip-colours.py`, whose `--check` CI runs on every pull request. */
    --state-working: #57c785;
    --state-idle: #9aa7c0;
    --state-blocked: #f0b455;
    --state-stalled: #d97b6c;
    --state-unknown: #c9a7e8;
    --state-catching_up: #8ecfdb;
    --state-stale: #e2f3fe;
    --state-offline: #cbd6d8;
    --state-disabled: #8289a5;
    --state-retired: #828a9a;
    --state-ink: #1b1f2b;
    --state-ink-unconfirmed: #5c6270;

    /* Type — system fallbacks until the faces are vendored (card#11045 Q5). */
    --face-display: Quicksand, ui-rounded, system-ui, sans-serif;
    --face-body: "IBM Plex Sans", system-ui, sans-serif;
    --face-mono: "IBM Plex Mono", ui-monospace, monospace;

    /* Chrome measures. */
    --header-h: 56px;
    --gutter: clamp(12px, 2.5vw, 24px);
    --radius: 10px;
    --reveal: 56px;
}

/* ── The shell — every page ──────────────────────────────────────────────────────────────────── */

/* Every `hidden` toggle the pages' scripts make wins over a display set below. */
[hidden] {
    display: none !important;
}

html {
    background: var(--ground);
}

body {
    margin: 0;
    background: var(--ground);
    color: var(--ink);
    font-family: var(--face-body);
    line-height: 1.45;
}

main {
    padding-bottom: 32px;
}

main > :not(.app-header) {
    margin-inline: var(--gutter);
}

.app-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 16px;
    min-height: var(--header-h);
    padding: 0 var(--gutter);
    box-sizing: border-box;
    background: var(--panel);
    border-bottom: 1px solid var(--line);
}

.app-header h1 {
    margin: 0;
    margin-right: auto;
    font-family: var(--face-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--lamp);
    letter-spacing: 0.01em;
}

h2,
h3,
h4 {
    font-family: var(--face-display);
    color: var(--ink);
}

a {
    color: var(--lamp);
}

a:visited {
    color: var(--lamp);
}

:focus-visible {
    outline: 2px solid var(--lamp);
    outline-offset: 2px;
}

button,
input,
select,
textarea {
    font: inherit;
    color: var(--ink);
}

button,
.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 30px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--panel-2);
    color: var(--ink);
    text-decoration: none;
    cursor: pointer;
}

button:hover,
.pill:hover {
    border-color: var(--lamp-dim);
}

button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

a.pill,
a.pill:visited {
    color: var(--ink);
}

input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
    box-sizing: border-box;
    min-height: 36px;
    padding: 6px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--ground-deep);
}

form label {
    display: block;
    margin-top: 12px;
    color: var(--dim);
}

form button[type="submit"] {
    margin-top: 16px;
}

table {
    border-collapse: collapse;
}

th,
td {
    padding: 6px 10px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

th {
    color: var(--dim);
}

code,
pre {
    font-family: var(--face-mono);
}

[role="alert"] {
    color: var(--ink);
    background: var(--panel);
    border-left: 4px solid var(--alarm);
    padding: 8px 12px;
    border-radius: 6px;
}

@supports (color: color-mix(in srgb, currentColor 50%, transparent)) {
    [role="alert"] {
        background: color-mix(in srgb, var(--alarm) 30%, var(--panel));
    }
}

main > [role="status"] {
    padding: 8px 12px;
    border-left: 4px solid var(--lamp-dim);
    background: var(--panel);
    border-radius: 6px;
}

/* Hidden from the eye, kept for a screen reader. */
.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* A sign-in page — the shell, with the form as a card. */
main > form:has(label) {
    max-width: 420px;
    margin-top: 32px;
    padding: 20px 24px 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
}

main > form:has(label) input:not([type="checkbox"]):not([type="radio"]) {
    width: 100%;
}

/* ── The console ─────────────────────────────────────────────────────────────────────────────── */

.console-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0;
    padding: 0;
    list-style: none;
}

.console-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--panel-2);
    color: var(--ink);
    text-decoration: none;
}

.console-nav a[aria-current="page"] {
    border-color: var(--lamp);
    color: var(--lamp);
}

/* ── The lobby ───────────────────────────────────────────────────────────────────────────────── */

/*
 * THE LOBBY's DRAWN ROOM AND ITS DIRECTORY (FLOOR.md § 4.1, card#12113). `#lobby-building` is the drawing surface and
 * `#lobby-room` the camera's layer: its size, its clip and its transform are `public/js/lobby/main.js`'s (from
 * `building-scene.js`'s `surfaceStyle()` and the camera), never this sheet's, so a placeholder page before the first
 * snapshot flows as text. The directory's and the readings' FACES are counter-scaled by `--lobby-zoom` /
 * `--lobby-scale`, which `directory.js`'s `showDirectory()` alone writes on the layer, so their text is one size at every
 * zoom — the page's own, or less on a small board (`directory.js`'s `boardText()`). ⛔ The plaque's face is a surface
 * `tools/design/state-chip-colours.py` measures the state chips over (`--lobby-plaque`).
 */
main > section.lobby {
    margin-inline: 8px;
}

/* A frame that takes no layout: a border would move the room off the box the camera measures. */
.lobby #lobby-building {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: 0 0 0 1px var(--line);
}

.lobby nav[aria-label="the camera"] {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0;
}

.lobby > p:not([role]) {
    color: var(--dim);
}

/* The two faces: the page's own text size — which a small board scales down, face and all (`directory.js`) — and every
   line read whole: a line wider than its box wraps, breaking inside a word only where a word alone is wider (FLOOR.md
   § 4.1), so a plaque grows taller rather than hiding a figure. */
.lobby .lobby-face {
    box-sizing: border-box;
    font-size: 1rem;
    line-height: 1.3;
    color: var(--lobby-plaque-ink);
    overflow-wrap: anywhere;
}

.lobby .lobby-directory-face {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.lobby #lobby-directory-heading {
    flex: none;
    margin: 0;
    padding: 2px 8px;
    border-radius: 8px;
    background: var(--lobby-sign);
    color: var(--lamp);
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
}

/* The title wraps at every width: no board face is narrower than the Directory title wrap width (FLOOR.md § 12), because a
   face under the Directory dock width docks (card#12187), so the phone's one-line cut and its container rule are retired. */

.lobby .lobby-directory-title {
    font-family: var(--face-display);
    font-weight: 700;
    letter-spacing: 0.15em;
}

/* The plaques' list. Docked, and with no room drawn, it is no scroller — the page is — and the browser owns every touch on
   it (`touch-action` is `auto`). */
.lobby .lobby-plaques {
    flex: 1 1 auto;
    min-height: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.lobby .lobby-plaque {
    flex: none;
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 5px 10px;
    border: 2px solid var(--lobby-plaque-edge);
    border-radius: 10px;
    background: var(--lobby-plaque);
}

.lobby .lobby-plaque-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px 6px;
    min-width: 0;
    overflow: hidden;
}

/* The name row: the name and the agents and desks never shrink, so the rooms line is the one part that gives way — it
   takes what the row has left and wraps inside it. Where the name and the figures do not fit side by side, the figures
   move to a line of their own, still right-aligned; a name wider than the row wraps. */
.lobby .lobby-plaque-name {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: none;
    max-width: 100%;
    font-weight: 700;
    color: var(--lobby-plaque-ink);
    outline-offset: -2px;
}

.lobby .lobby-plaque-numeral {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    min-width: 1.4em;
    height: 1.4em;
    border-radius: 0.7em;
    background: var(--lobby-sign);
    color: var(--lamp);
    font-family: var(--face-mono);
}

.lobby .lobby-plaque-rooms {
    flex: 1 1 0;
    min-width: 6em;
    color: var(--lobby-plaque-dim);
}

.lobby .lobby-plaque-staffing {
    flex: none;
    max-width: 100%;
    margin-left: auto;
    font-weight: 600;
}

/* A chip: its member's fill, a 1 px outline in the plaque's ink at low opacity so a pale fill keeps its edge, its word
   always on it (§ 4.1). An unrecognised value is the sheet's unrecognised treatment. */
.lobby .lobby-chip {
    flex: none;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 8px;
    border-radius: 10px;
    border: 1px solid var(--lobby-plaque-outline);
    background: var(--fill);
    color: var(--state-ink);
    font-weight: 600;
}

.lobby .lobby-chip.unrecognised {
    background: var(--lobby-plaque);
    border: 1.5px dashed var(--scene-unrecognised);
    color: var(--lobby-plaque-ink);
}

/* A marker: a disc for a member that draws a character, a ring for an empty chair (§ 4.1). */
.lobby .lobby-marker {
    flex: none;
    box-sizing: border-box;
    width: 12px;
    height: 12px;
    border-radius: 6px;
    box-shadow: 0 0 0 1px var(--lobby-plaque-ink);
}

.lobby .lobby-marker.disc {
    background: var(--fill);
}

.lobby .lobby-marker.ring {
    border: 3px solid var(--fill);
    background: var(--lobby-plaque);
}

.lobby .lobby-marker-more {
    margin-left: 4px;
    font-family: var(--face-mono);
}

.lobby .lobby-plaque-totals {
    color: var(--lobby-plaque-dim);
}

.lobby .lobby-plaque.unclaimed,
.lobby .lobby-plaque.none {
    flex-direction: row;
}

/* The readings under the board: two brass-edged panels side by side, each scrolling inside its half and each declaring it
   (`data-camera-scrolls`), as the directory's list does — stacked one under the other docked and with no room drawn
   (below). */
.lobby .lobby-readings-face {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    overflow: hidden;
}

.lobby .lobby-reading {
    box-sizing: border-box;
    min-height: 0;
    padding: 4px 10px;
    border: 2px solid var(--lobby-brass);
    border-radius: 8px;
    background: var(--lobby-plaque);
    font-family: var(--face-mono);
    overflow-y: auto;
}

.lobby .lobby-reading h3 {
    margin: 0;
    font-size: 1rem;
    color: inherit;
}

.lobby .lobby-reading p,
.lobby .lobby-reading li {
    margin: 0;
}

.lobby .lobby-reading ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

/*
 * WHERE A BOX STANDS IS ITS OWN `data-home` (FLOOR.md § 4.1, decision 72; card#12187) — `board` in the camera's layer,
 * `dock` in the page's flow under the drawn room, `flow` with no room drawn, the markup's own value — written by
 * `lobby/directory.js`'s `dockingEntry()` alone. Every rule below that depends on it is keyed on the box's own
 * attribute, never on an ancestor the box may leave.
 *
 * ⛔ `touch-action: none` ONLY WHERE THE GESTURE WIRE LISTENS — on the board, where a native scroll or zoom would cancel the
 * pointer stream its hand-off rests on, and a scroller of its own does not inherit `none` from the drawing (§ 4.1). Docked
 * and flowing everything is `auto`, never `none` and never `pan-y`, so a finger scrolls and pinch-zooms the page (WCAG 2.2
 * SC 1.4.4).
 */
.lobby [data-home="board"] .lobby-plaques {
    overflow-y: auto;
    touch-action: none;
}

.lobby [data-home="board"] .lobby-reading {
    touch-action: none;
}

/* Docked and flowing: the readings' two panels stacked, each a native inner scroll capped at ten of its lines. */
.lobby #lobby-readings:not([data-home="board"]) {
    margin-top: 8px;
}

.lobby :not([data-home="board"]) > .lobby-readings-face {
    grid-template-columns: minmax(0, 1fr);
}

.lobby :not([data-home="board"]) > .lobby-readings-face .lobby-reading {
    max-height: calc(10 * 1.3em + 12px);
}

/* Docked, a plaque's link is a tap target of at least 24 × 24 CSS px (WCAG 2.2 SC 2.5.8), declared rather than left to
   the inline exception. */
.lobby [data-home="dock"] .lobby-plaque-name {
    min-width: 24px;
    min-height: 24px;
}

/* With no room drawn the faces flow as the page's own text, on the page's own ground. */
.lobby [data-home="flow"] .lobby-face {
    color: var(--ink);
}

.lobby [data-home="flow"] .lobby-reading,
.lobby [data-home="flow"] .lobby-plaque {
    background: var(--panel);
    border-color: var(--line);
    color: var(--ink);
}

/* ── The floor ───────────────────────────────────────────────────────────────────────────────── */

/* The flex column the drawing's height comes from (the header above, the room in the leftover). */
.page-floor main {
    display: flex;
    flex-direction: column;
    min-height: calc(100dvh - var(--reveal));
    padding-bottom: 0;
}

.page-floor main > :not(.app-header) {
    margin-inline: 0;
}

.page-floor main > #floor {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    position: relative;
}

#floor > * {
    margin: 0;
}

/* Every part of the column keeps its own height except the room's stage, which takes the rest — by
   selector, so no rule order decides which of the two wins. */
#floor > :not(.floor-stage) {
    flex: 0 0 auto;
}

/* The header's floor half: the building's counts and the way to the lobby. */
.floor-counts {
    margin: 0;
    font-family: var(--face-mono);
    font-size: 13px;
    color: var(--dim);
}

/* § 9 F8's banner, full width over everything else on the floor. */
#floor-banner {
    border-radius: 0;
    border-left-width: 6px;
}

/* The status strip: this page's connection | the fleet | the room's clock. */
.floor-strip {
    display: flex;
    align-items: center;
    gap: 6px 0;
    min-height: 40px;
    padding: 0 var(--gutter);
    background: var(--panel-2);
    border-bottom: 1px solid var(--line);
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: thin;
}

.floor-chips {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-inline: 16px;
}

.floor-chips:first-of-type {
    padding-left: 0;
}

.floor-chips + .floor-chips {
    border-left: 1px solid var(--line);
}

.floor-chips > p {
    margin: 0;
    font-family: var(--face-mono);
    font-size: 13px;
    color: var(--dim);
}

/* The statements and the notices — amber bars under the strip, only while their condition holds. */
#floor-statement,
#floor-kept,
#floor-layout-statement,
#floor-notices > li,
#floor-rooms > li {
    padding: 6px var(--gutter);
    background: var(--panel);
    /* Without color-mix() the edge is the amber itself, so the bar still reads as a statement. */
    border-bottom: 1px solid var(--warn);
    color: var(--ink);
}

@supports (color: color-mix(in srgb, currentColor 50%, transparent)) {
    #floor-statement,
    #floor-kept,
    #floor-layout-statement,
    #floor-notices > li,
    #floor-rooms > li {
        background: color-mix(in srgb, var(--warn) 18%, var(--panel));
        border-bottom: 1px solid color-mix(in srgb, var(--warn) 45%, var(--panel));
    }
}

#floor-notices,
#floor-rooms {
    list-style: none;
    padding: 0;
}

/* The camera row: the floor's name, and the camera's controls — outside the drawing, never over a desk. */
.floor-camera-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    min-height: 44px;
    padding: 4px var(--gutter);
    box-sizing: border-box;
    background: var(--panel);
    border-bottom: 1px solid var(--line);
}

#floor-name {
    margin: 0 auto 0 0;
    font-size: 20px;
    font-weight: 700;
}

#floor-camera {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

#floor-camera > button,
#floor-camera > .pill {
    font-size: 14px;
}

/* Icons that draw no name of their own: the button's words stay its accessible name. */
#floor-camera > #floor-zoom-in,
#floor-camera > #floor-zoom-out {
    width: 34px;
    justify-content: center;
    padding: 0;
    font-size: 0;
}

#floor-zoom-in::before {
    content: "+" / "";
    font-size: 18px;
}

#floor-zoom-out::before {
    content: "\2212" / "";
    font-size: 18px;
}

#floor-fit::before {
    content: "\2922" / "";
}

#floor-camera > .pill:not(.building-pill):not(.floor-route-pill)::before,
.floor-home::before {
    content: "\2302" / "";
}

/* The room's stage — the leftover height of the column; the drawing fills it, the drill-down sits over it. */
.floor-stage {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* The room — the exterior dark around the drawn floor. */
#floor-drawing {
    flex: 1 1 0;
    min-height: 320px;
    width: 100%;
    overflow: hidden;
    touch-action: none;
    cursor: grab;
    background: radial-gradient(ellipse at center, var(--ground) 0%, var(--ground-deep) 75%);
}

/*
 * THE 3-D FLOOR's STAGE (`/floor/{floor}/3d`, card#13033 stage 2 slice 4): the canvas fills the drawing's box, and the
 * labels' layer lies over it — every label a positioned element `CSS2DRenderer` moves, the layer itself letting the
 * pointer through to the camera's controls. Without WebGL 2 (`floor3d/main.js`'s `data-webgl`) the stage is collapsed to a
 * line and hidden and the camera's controls withdrawn, and the list below is the page.
 */
#floor-drawing.floor3d-stage {
    position: relative;
    cursor: grab;
}

#floor3d-canvas {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
}

.floor3d-labels {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.floor3d-label {
    pointer-events: auto;
    padding: 2px 7px;
    border-radius: 8px;
    background: var(--lobby-plaque);
    color: var(--lobby-plaque-ink);
    box-shadow: 0 1px 0 var(--lobby-plaque-outline);
    font-size: 12px;
    line-height: 1.3;
    white-space: nowrap;
}

.floor3d-label > span {
    display: block;
}

.floor3d-label[data-culled] {
    opacity: 0;
    pointer-events: none;
}

.floor3d-label[data-culled]:focus-visible {
    opacity: 1;
}

.floor3d-name {
    font-weight: 700;
    text-decoration: none;
}

.floor3d-name:focus-visible {
    outline: 2px solid var(--lamp);
}

/*
 * The elevator's control on the 3-D floor (`floor3d/floor-labels.js`): the doorway's keyboard button, standing at its
 * centre. Unseen and letting the pointer through to the drawn doorway — a press there is the renderer's — until it holds
 * the keyboard's focus, when it shows as a plaque.
 */
.floor3d-elevator {
    opacity: 0;
    pointer-events: none;
    font-weight: 700;
}

.floor3d-elevator:focus {
    outline: none;
}

.floor3d-elevator:focus-visible {
    opacity: 1;
    outline: 2px solid var(--lamp);
}

/*
 * The status on the 3-D floor — the screen's strings, hanging beside the sitter 2 px under the line its bubble stands on
 * (`floor/floor-world.js`'s `PIN`), so the two never touch: a dark plaque the scene shows through, its text the page's
 * ink. At the 75 % share below the ink holds 5.0:1 against the plaque laid over pure white, the lightest thing it can
 * stand in front of (WCAG AA's 4.5:1 for its 12 px text). The screen's teal would need 85 % to hold it, so the status
 * reads in the ink, lit or off. It and the bubble hold no control, so a press on either reaches the camera: beside the
 * sitters they stand where a drag to turn the view begins.
 */
.floor3d-status {
    margin-top: 2px;
    pointer-events: none;
    background: var(--scene-monitor);
    color: var(--ink);
}

/*
 * A thought on the 3-D floor — a desk's bubble, standing beside its sitter, and a walker's thought — on the light plaque
 * at 70 % (below): its ink holds 5.9:1 against the plaque laid over pure black, the darkest thing it can stand in front
 * of (WCAG AA's 4.5:1).
 */
.floor3d-bubble {
    max-width: 200px;
    border-radius: 14px;
    background: var(--lobby-plaque);
    white-space: normal;
    pointer-events: none;
}

@supports (color: color-mix(in srgb, currentColor 50%, transparent)) {
    .floor3d-label {
        background: color-mix(in srgb, var(--lobby-plaque) 90%, transparent);
    }

    .floor3d-status {
        background: color-mix(in srgb, var(--scene-monitor) 75%, transparent);
    }

    .floor3d-bubble {
        background: color-mix(in srgb, var(--lobby-plaque) 70%, transparent);
    }
}

.floor3d-facts {
    font-size: 11px;
    color: var(--lobby-plaque-dim);
}

@keyframes floor3d-badge-in {
    from {
        opacity: 0;
    }
}

.floor3d-thought {
    font-style: italic;
}

/*
 * The marks over a body (`floor3d/body-paint.js`): the sleeper's z's rising beside its head and a state marker, each glyph
 * lit at its pulse level (`data-level`, 0 dark to 3 full — the 2-D glow's four, `creatures.js`'s `Z_GLOW`), in the lamp
 * colour with a halo as it brightens. The glyphs carry a class of their own: the page chrome sheet sizes no tag the lobby's
 * directory builds (`TheLobbyIsADrawnRoomTest`).
 */
.floor3d-mark {
    pointer-events: none;
    font-weight: 800;
    color: var(--scene-ink);
    line-height: 1;
}

.floor3d-mark[data-kind="zs"] .floor3d-glyph {
    display: inline-block;
    font-size: 14px;
}

.floor3d-mark[data-kind="zs"] .floor3d-glyph:nth-child(2) {
    transform: translateY(-8px);
    font-size: 17px;
}

.floor3d-mark[data-kind="zs"] .floor3d-glyph:nth-child(3) {
    transform: translateY(-18px);
    font-size: 21px;
}

.floor3d-mark[data-kind="marker"] .floor3d-glyph {
    font-size: 26px;
}

.floor3d-mark .floor3d-glyph[data-level="0"] {
    opacity: 0.45;
}

.floor3d-mark .floor3d-glyph[data-level="1"] {
    opacity: 0.65;
    color: var(--lamp);
}

.floor3d-mark .floor3d-glyph[data-level="2"] {
    opacity: 0.85;
    color: var(--lamp);
    text-shadow: 0 0 3px var(--lamp);
}

.floor3d-mark .floor3d-glyph[data-level="3"] {
    color: var(--lamp);
    text-shadow: 0 0 6px var(--lamp);
}

#floor[data-webgl="none"] #floor-camera > button,
#floor[data-webgl="none"] .floor-hint-row {
    display: none;
}

/* Withdrawn, never removed: the floor screen's camera needs the drawing's box positive whatever draws in it. */
#floor[data-webgl="none"] .floor-stage > #floor-drawing {
    flex: 0 0 1px;
    min-height: 1px;
    visibility: hidden;
}

/* The gesture hint's row under the drawing: its height kept whether the line is offered or not (card#11045). */
.floor-hint-row {
    flex: 0 0 24px;
    display: flex;
    align-items: center;
    padding: 0 var(--gutter);
    background: var(--panel);
    border-top: 1px solid var(--line);
    box-sizing: border-box;
}

/* § 9 F6/F7: the floor under the sign-in prompt is dimmed, never blanked — the drawing and the list. */
#floor [data-dimmed="true"] {
    opacity: 0.45;
    filter: saturate(0.4);
}

/* The sections under the room, just below the column, closed by default. */
.floor-below {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 0 var(--gutter) 32px;
}

.floor-section {
    border-bottom: 1px solid var(--line);
}

.floor-section > summary {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    cursor: pointer;
    list-style: none;
}

.floor-section > summary::-webkit-details-marker {
    display: none;
}

.floor-section > summary::before {
    content: "\25B8" / "";
    color: var(--dim);
}

.floor-section[open] > summary::before {
    content: "\25BE" / "";
}

.floor-section > summary > h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
}

.floor-section > :not(summary) {
    margin: 0 0 16px;
}

.floor-section ul,
.floor-section ol {
    padding-left: 20px;
    color: var(--dim);
}

#floor-desks > li {
    margin-bottom: 10px;
}

#floor-desks > li > a {
    font-weight: 700;
}

.floor-back {
    margin: 16px 0 0;
}

/* Cards over the floor: the sign-in prompt, centred on the window; the drill-down, docked over the room. */
#floor-signin,
#floor-panel {
    z-index: 20;
    box-sizing: border-box;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: 0 16px 48px rgb(0 0 0 / 0.45);
}

/*
 * § 4.5's CAB (card#11795): the elevator's interior, a modal dialog filling the window — the painter's cab
 * (`#floor-cab-doors`, `paintCab()`) and the button popup, LAID OUT TOGETHER (card#12039): side by side in a
 * landscape window, the cab over the popup in a portrait one, so the popup never covers the door and the
 * cab is fitted whole into its own box (`paintCab()`'s `meet`), its door's head and lamp always in view. The
 * cab is a room drawn in depth, taller than it is wide (card#12051, card#12071), sized to the window's height in a
 * landscape window and to at most 85% of its width in a portrait one, and
 * nothing is painted past it: around it is the dialog's own dark background. The dialog's look only:
 * the ride's view transition is the layout's inline block, never this sheet's (`layouts/app.blade.php`).
 *
 * ⛔ THE POPUP IS THE ELEVATOR's OWN BUTTON PANEL, IN THE HOUSE THEME's ELEVATOR PALETTE, AND THIS SHEET
 * HOLDS NO COPY OF IT. `--cab-frame` and `--cab-lamp` are set on the dialog from the theme module's
 * `PALETTE.elevator` (`floor/cab-paint.js`'s `cabTheme()`, which also marks the dialog `data-themed`); the defaults
 * below are only what a theme that did not load leaves, the same tokens the painter's own fallback drew. Its
 * body is the frame, its words the room's ink, a stop's button the building's door and door edge (`--door` /
 * `--door-edge`, the leaves' colours), the current floor's call button the lamp.
 * `tools/design/floor-ride.browser.mjs`'s `cab-palette` row reads each against the theme.
 *
 * ⛔ WITH NO THEME THE POPUP IS THE PAGE's OWN PANEL (card#12047): `--cab-body` / `--cab-ink` are `--panel` /
 * `--ink` until `data-themed` makes them the frame and the room's ink. The door frame's fallback under the room's
 * ink was 1.01:1, every word in the popup illegible. Every text in the popup holds 4.5:1 on what it sits on, in
 * both states, over the body's light and shade: `TheCabPanelReconcilesByKeyTest`'s contrast check computes it
 * from this sheet and the house theme, and `floor-ride.browser.mjs`'s `cab-fallback` row from a page whose theme
 * failed to load.
 */
.floor-cab {
    --cab-frame: var(--door-frame);
    --cab-lamp: var(--lamp);
    --cab-body: var(--panel);
    --cab-ink: var(--ink);
    /* The frame's rim — its edges, its rivets and its shadows: the frame darkened toward the room's ink (below). Without
       color-mix() the rim is the room's ink itself, so the edge and the rivets still show on the frame. */
    --cab-rim: var(--scene-ink);
    /* The popup's width — FLOOR.md § 12's *Cab button popup*, held equal to it by `TheCabPanelReconcilesByKeyTest`
       (with the two layouts' width bound and the stacked one's height bound): its widest, and beside the door a
       share of the window. */
    --cab-panel-max: 480px;
    --cab-panel-w: clamp(280px, 36vw, var(--cab-panel-max));
    position: fixed;
    inset: 0;
    width: 100vw;
    /* The dynamic viewport's height where the browser has it, so a phone's toolbar never covers the popup's foot. */
    height: 100vh;
    height: 100dvh;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: var(--door-frame);
    color: var(--ink);
    overflow: hidden;
}

@supports (color: color-mix(in srgb, currentColor 50%, transparent)) {
    .floor-cab {
        --cab-rim: color-mix(in srgb, var(--cab-frame) 55%, var(--scene-ink));
    }
}

/* The house theme loaded (`cabTheme()`): the popup is the elevator's frame, and its words the room's ink on it. */
.floor-cab[data-themed] {
    --cab-body: var(--cab-frame);
    --cab-ink: var(--scene-ink);
}

/* Only an open dialog is laid out: a `display` on the closed one would show it. */
.floor-cab[open] {
    display: grid;
    grid-template-columns: auto var(--cab-panel-w);
    grid-template-rows: minmax(0, 1fr);
    justify-content: center;
    gap: calc(2 * var(--gutter));
    box-sizing: border-box;
    padding: var(--gutter);
    align-items: center;
}

.floor-cab::backdrop {
    background: var(--ground-deep);
}

.floor-cab-doors {
    align-self: stretch;
    min-width: 0;
    min-height: 0;
}

/* In a landscape window the cab's box is the cab's own shape (`paintCab()` sets `--cab-aspect`), as tall as the
   window allows less a margin, so the narrow cab and the popup sit together as one centred group. */
@media (orientation: landscape) and (min-width: 420px) {
    .floor-cab-doors {
        height: calc(100vh - 4 * var(--gutter));
        height: calc(100dvh - 4 * var(--gutter));
        aspect-ratio: var(--cab-aspect, auto);
        max-width: calc(100vw - var(--cab-panel-w) - 4 * var(--gutter));
    }
}

.floor-cab-panel {
    box-sizing: border-box;
    width: var(--cab-panel-w);
    max-height: 100%;
    overflow-y: auto;
    padding: 20px 22px 18px;
    border: 3px solid var(--cab-rim);
    border-radius: 28px;
    background-color: var(--cab-body);
    /* A rivet in each corner, over the frame's light from the top left. */
    background-image:
        radial-gradient(circle at 16px 16px, var(--cab-rim) 0 4px, transparent 4.5px),
        radial-gradient(circle at calc(100% - 16px) 16px, var(--cab-rim) 0 4px, transparent 4.5px),
        radial-gradient(circle at 16px calc(100% - 16px), var(--cab-rim) 0 4px, transparent 4.5px),
        radial-gradient(circle at calc(100% - 16px) calc(100% - 16px), var(--cab-rim) 0 4px, transparent 4.5px),
        linear-gradient(160deg, rgb(255 255 255 / 0.3), rgb(255 255 255 / 0) 42%, rgb(0 0 0 / 0.1));
    box-shadow: inset 0 3px 0 rgb(255 255 255 / 0.35), inset 0 -4px 0 rgb(0 0 0 / 0.12), 0 18px 48px rgb(0 0 0 / 0.45);
    color: var(--cab-ink);
}

/* A portrait window, or one too narrow to hold the popup beside the cab: the cab above, the popup centred under it. */
@media (orientation: portrait), (max-width: 419px) {
    .floor-cab[open] {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: minmax(0, 1fr) auto;
        justify-items: center;
    }

    /* No wider than 85% of the window, so where the window's width binds (a phone) the cab is still a bounded box with the
       dialog's background either side of it, never stretched across the window (card#12071's wider cab). */
    .floor-cab-doors {
        justify-self: center;
        width: min(100%, 85vw);
    }

    .floor-cab-panel {
        width: min(var(--cab-panel-max), 100%);
        max-height: 55vh;
        max-height: 55dvh;
    }
}

/* The heading, under the panel's own lamp — the elevator's header plate. */
.floor-cab-panel h2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    font-size: 20px;
    color: var(--cab-ink);
    text-align: center;
}

.floor-cab-panel h2::before {
    content: "";
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--cab-lamp);
    box-shadow: 0 0 0 3px var(--cab-rim), 0 0 14px var(--cab-lamp);
}

.floor-cab-panel ul {
    display: grid;
    gap: 10px;
    margin: 0 0 12px;
    padding: 0;
    list-style: none;
}

/* A stop's button: a plate in the leaves' own door colours. */
.floor-cab-panel li > button {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 48px;
    padding: 8px 16px 8px 10px;
    border: 2px solid var(--door-edge);
    border-radius: 18px;
    background: var(--door);
    color: var(--scene-ink);
    font-size: 16px;
    text-align: left;
    box-shadow: inset 0 -3px 0 var(--door-edge), 0 2px 0 var(--cab-rim);
}

@supports (color: color-mix(in srgb, currentColor 50%, transparent)) {
    .floor-cab-panel li > button {
        box-shadow: inset 0 -3px 0 color-mix(in srgb, var(--door-edge) 55%, transparent), 0 2px 0 var(--cab-rim);
    }
}

.floor-cab-panel li > button:hover {
    border-color: var(--scene-ink);
}

.floor-cab-panel li > button:active {
    transform: translateY(2px);
    box-shadow: inset 0 -1px 0 var(--door-edge);
}

@supports (color: color-mix(in srgb, currentColor 50%, transparent)) {
    .floor-cab-panel li > button:active {
        box-shadow: inset 0 -1px 0 color-mix(in srgb, var(--door-edge) 55%, transparent);
    }
}

.floor-cab-panel li > button:focus-visible {
    /* Drawn on the popup's body, past the button's edge: the body's ink. */
    outline: 3px solid var(--cab-ink);
    outline-offset: 3px;
}

/* A stop's round call button; the current floor's is lit by the lamp, and its plate warmed by it. */
.cab-cap {
    flex: none;
    width: 26px;
    height: 26px;
    box-sizing: border-box;
    border: 3px solid var(--door-edge);
    border-radius: 50%;
    background: var(--door);
    box-shadow: inset 0 2px 2px rgb(255 255 255 / 0.6);
}

/* Without color-mix() the current floor's plate is the door's and its edge — and its call button's — the room's ink,
   so the lit call button and the dark edge still pick it out. */
.floor-cab-panel li.current > button {
    border-color: var(--scene-ink);
    background: var(--door);
}

.floor-cab-panel li.current .cab-cap {
    border-color: var(--scene-ink);
    background: var(--cab-lamp);
    box-shadow: inset 0 2px 2px rgb(255 255 255 / 0.6), 0 0 12px var(--cab-lamp);
}

@supports (color: color-mix(in srgb, currentColor 50%, transparent)) {
    .cab-cap {
        background: color-mix(in srgb, var(--door) 60%, var(--door-edge));
    }

    .floor-cab-panel li.current > button {
        border-color: color-mix(in srgb, var(--cab-lamp) 60%, var(--scene-ink));
        background: color-mix(in srgb, var(--door) 65%, var(--cab-lamp));
    }

    .floor-cab-panel li.current .cab-cap {
        border-color: color-mix(in srgb, var(--cab-lamp) 60%, var(--scene-ink));
    }
}

.cab-name {
    font-weight: 600;
}

/* *— you are here*, on its stop's door-coloured button. */
.cab-here {
    color: var(--scene-ink);
}

/* The status, layout and feed lines, on the popup's body — by class, so the lobby's cab (`#lobby-cab-*`) is styled as the floor's. */
.floor-cab-status,
.floor-cab-layout,
.floor-cab-feed {
    color: var(--cab-ink);
}

.floor-cab-status {
    margin: 0 0 10px;
    text-align: center;
}

.floor-cab-feed,
.floor-cab-layout {
    margin: 4px 0 0;
    font-size: 13px;
    text-align: center;
}

#floor-signin {
    position: fixed;
    z-index: 30;
    inset: 0;
    margin: auto;
    width: min(420px, calc(100vw - 32px));
    height: fit-content;
    padding: 16px 20px;
    border-left: 4px solid var(--alarm);
}

.floor-stage > #floor-panel {
    top: 12px;
    position: absolute;
    right: 16px;
    bottom: 12px;
    width: min(460px, calc(100vw - 32px));
    padding: 12px 18px 18px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

#floor-panel h4 {
    margin: 16px 0 4px;
    color: var(--lamp);
}

#floor-panel p,
#floor-panel ul,
#floor-panel ol {
    margin: 4px 0;
    color: var(--dim);
}

/* ── The building view (card#13033, `resources/views/building.blade.php`) ─────────────────────────────────────────
 *
 * The floor's column, its strip, its camera row and its hint row, by their shared classes; the stage takes the height
 * the chrome leaves, as `#floor-drawing` does, and it has that size whether or not the stack is drawn — the stack is
 * derived from the stage's size (`building/stack-model.js`), so a stage sized only once drawn would never be drawn.
 *
 * WHERE AN ENTRY STANDS IS ITS OWN `data-home` (`public/js/building/labels.js`'s `dock()`, its one writer): `flow`, the
 * floors' list in the stage as a plain list — the whole page without WebGL 2; before the first stack it is there too,
 * `.visually-hidden` under the *Drawing the building…* placeholder (`stagePhase()`) — or `stage`, each entry a label over
 * the canvas: a floor's beside the stack, a desk's at its anchor's projection (an inline `transform`, `place()`'s). A desk label's box
 * — its font, padding, border and height — is the model's (`--label-*`, written from `stack-model.js`), so the cull's
 * measured boxes are the boxes drawn; its colours are the painter's own plate tokens.
 */
.page-building main {
    display: flex;
    flex-direction: column;
    min-height: calc(100dvh - var(--reveal));
    padding-bottom: 0;
}

.page-building main > :not(.app-header) {
    margin-inline: 0;
}

.page-building main > #building {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    position: relative;
}

#building > * {
    margin: 0;
}

#building > :not(.floor-stage) {
    flex: 0 0 auto;
}

#building-view-status {
    margin: 0 auto 0 0;
    font-size: 20px;
    font-weight: 700;
}

#building-camera-row > nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

#building-stage {
    flex: 1 1 0;
    min-height: 320px;
    position: relative;
    overflow: auto;
    background: radial-gradient(ellipse at center, var(--ground) 0%, var(--ground-deep) 75%);
}

/* The placeholder while the first stack is drawn (`stagePhase()`'s `drawing`): centred in the stage. */
#building-drawing {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    color: var(--dim);
}

#building-canvas {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    touch-action: none;
    cursor: grab;
}

#building-floors {
    margin: 0;
    padding: 12px var(--gutter);
}

#building-floors ul {
    margin: 0;
}

#building-floors[data-home="stage"] {
    position: absolute;
    inset: 0;
    padding: 0;
    overflow: hidden;
    pointer-events: none;
    list-style: none;
}

#building-floors[data-home="stage"] ul {
    padding: 0;
    list-style: none;
}

#building-floors [data-home="stage"] {
    position: absolute;
    left: 0;
    top: 0;
    pointer-events: auto;
    white-space: nowrap;
}

.building-floor-head[data-home="stage"] > .building-floor-link {
    display: inline-block;
    padding: 2px 8px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--panel);
    color: var(--ink);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.building-floor-head[data-home="stage"] > .building-notices > .building-notice {
    max-width: 320px;
    white-space: normal;
    font-size: 12px;
    color: var(--warn);
}

.building-desk[data-home="stage"] {
    box-sizing: border-box;
    height: var(--label-h);
    padding: 0 var(--label-pad);
    border: var(--label-border) solid var(--scene-plate-edge);
    background: var(--scene-plate);
    color: var(--scene-ink);
    font: var(--label-font);
    line-height: calc(var(--label-h) - 2 * var(--label-border));
    text-decoration: none;
}

/* ── The camera's gesture hint — every camera page, one line (card#11045, `resources/views/partials/camera-hint`) ── */

.camera-hint {
    margin: 0;
    font-family: var(--face-mono);
    font-size: 12px;
    line-height: 16px;
    color: var(--dim);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.camera-hint > .hint-short {
    display: none;
}

.lobby .camera-hint {
    margin-top: 6px;
}

/* ── Narrow windows — only the chrome reflows; the drawing is the same column (§ 4.5) ──────────── */

@media (max-width: 600px) {
    .camera-hint > .hint-long {
        display: none;
    }

    .camera-hint > .hint-short {
        display: inline;
    }

    .app-header h1 {
        font-size: 18px;
    }

    .floor-counts {
        flex-basis: 100%;
        order: 3;
        font-size: 12px;
    }

    #floor-name {
        font-size: 17px;
    }

    #floor-camera > #floor-fit,
    #floor-camera > .pill:not(.building-pill):not(.floor-route-pill),
    .app-header > .floor-home {
        width: 34px;
        justify-content: center;
        padding: 0;
        font-size: 0;
    }

    #floor-fit::before,
    #floor-camera > .pill:not(.building-pill):not(.floor-route-pill)::before,
    .floor-home::before {
        margin: 0;
        font-size: 16px;
    }

    .floor-stage > #floor-panel {
        top: auto;
        left: 8px;
        right: 8px;
        bottom: 8px;
        width: auto;
        max-height: calc(100% - 16px);
    }
}
