/* Desktop inventory floor. The phone's Containment Stack keeps its own layout. */
@media (min-width: 761px) and (min-height: 761px), (min-width: 761px) and (pointer: fine), (min-width: 761px) and (pointer: none) {
  .hall-desktop-layout {
    width: min(1680px, 100%);
    margin: 0 auto;
    padding: 24px;
    gap: 16px;
  }
  .hall-desktop-layout .facility-header {
    min-height: 60px;
    padding: 0 0 16px;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }
  .hall-desktop-layout .facility-header h1 { font-size: 18px; letter-spacing: 0.06em; }
  .hall-return-link { padding: 10px 0 10px 14px; color: var(--muted); font: 12px/1.4 ui-monospace, monospace; text-underline-offset: 4px; }
  .hall-return-link:hover { color: var(--text); }
  .hall-desktop-layout[data-record-mode] .facility-grid {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    flex: 0 0 auto;
    grid-template: none;
    min-width: 0;
  }
  .hall-instrument-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 32px;
    padding: 0 2px;
    color: var(--muted);
    font: 11px/1.5 ui-monospace, monospace;
  }
  .hall-instrument-strip > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 9px; }
  .hall-instrument-strip .eyebrow { margin: 0; font-size: 9px; letter-spacing: 0.09em; }
  .hall-instrument-strip strong { color: var(--text); font-size: 12px; font-weight: 500; }
  .hall-instrument-strip [data-mcore-dose-status], #ticketClearance { font-size: 10px; }
  .hall-desktop-layout[data-record-mode] .containment-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    grid-template-rows: auto auto;
    grid-template-areas: "map station" "inspection inspection";
    align-items: start;
    align-self: auto;
    gap: 18px;
    min-width: 0;
    order: initial;
    grid-area: auto;
  }
  .hall-desktop-layout[data-record-mode] .primary-containment-window {
    grid-area: map;
    position: relative;
    min-height: 0;
    max-height: none;
    overflow: visible;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 4px;
    box-shadow: none;
    background: rgba(5, 13, 11, 0.88);
  }
  .hall-desktop-layout .primary-containment-window::before,
  .hall-desktop-layout .primary-containment-window::after { display: none; }
  .hall-pool-plate { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 20px 22px 0; }
  .hall-pool-plate .eyebrow { font-size: 9px; letter-spacing: 0.13em; }
  .hall-pool-plate h2 { margin: 0; font-size: 16px; font-weight: 550; letter-spacing: 0.04em; }
  .hall-pool-plate > span { color: var(--muted); font: 10px/1.5 ui-monospace, monospace; }
  .hall-map-stage { position: relative; margin: 4px 6px 0; }
  .hall-desktop-layout .primary-containment-window .facility-map {
    position: relative;
    display: block;
    inset: auto;
    width: 100%;
    height: auto;
    aspect-ratio: 1200 / 560;
    overflow: visible;
    filter: none;
  }
  .hall-map-stage #containmentField { opacity: 0.42; }
  .hall-desktop-layout .facility-map .zone-shape > text { font-size: 17px; letter-spacing: 0.06em; }
  .hall-desktop-layout .facility-map .zone-shape > .micro-label { font-size: 12px; letter-spacing: 0.04em; }
  .hall-desktop-layout .facility-map .floor-grid { opacity: 0.18; }
  .hall-desktop-layout .facility-map .observation-zone > text { font-size: 13px; }
  .hall-desktop-layout .facility-map .hall-outline { stroke-opacity: 0.55; }
  .hall-desktop-layout .facility-map .pond-zone > rect { fill: rgba(36, 88, 73, 0.09); stroke: rgba(171, 224, 211, 0.45); }
  .hall-desktop-layout .facility-map .pool-slot {
    fill: #0c211b;
    stroke: #739087;
    stroke-width: 1.3;
    transition: fill 120ms ease, stroke 120ms ease;
    filter: none;
  }
  .hall-desktop-layout .facility-map .pool-slot:hover,
  .hall-desktop-layout .facility-map .pool-slot:focus-visible { fill: #233f31; stroke: #e4dba7; stroke-width: 2.4; outline: none; }
  .hall-desktop-layout .facility-map .pool-slot.is-selected { fill: #51462b; stroke: #e4b763; stroke-width: 2.5; }
  .hall-desktop-layout .facility-map .pool-slot.is-raised { fill: #07110e; stroke-dasharray: 5 3; }
  .hall-desktop-layout .facility-map .pool-slot.is-returned { fill: #0c211b; stroke-dasharray: none; }
  .hall-desktop-layout .facility-map .pool-slot-number {
    pointer-events: none;
    fill: #d2e1d8;
    stroke: none;
    font: 17px ui-monospace, monospace;
    letter-spacing: 0;
    text-anchor: middle;
    dominant-baseline: central;
  }
  .hall-desktop-layout .assembly-marker circle { fill: none; stroke-width: 1.6; }
  .hall-desktop-layout .assembly-marker path { stroke-width: 1.6; }
  .hall-pool-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 0 22px 16px; color: var(--muted); font: 10px/1.4 ui-monospace, monospace; }
  .hall-pool-legend > span { display: inline-flex; align-items: center; gap: 6px; }
  .hall-key { display: inline-block; width: 12px; height: 12px; background: #0c211b; border: 1px solid #739087; }
  .hall-key-selected { background: #51462b; border: 2px solid #e4b763; }
  .hall-key-raised { background: #07110e; border: 1px dashed #e4b763; }
  .hall-pool-order { margin-left: auto; }
  .hall-slot-readout { margin: 0; padding: 13px 22px; min-height: 46px; border-top: 1px solid var(--line); color: var(--muted); font: 12px/1.6 ui-monospace, monospace; overflow-wrap: anywhere; }
  .hall-slot-readout.is-active { color: #e5d4a7; }
  .hall-assembly-index { border-top: 1px solid var(--line); }
  .hall-assembly-index > summary { padding: 15px 22px; cursor: pointer; color: var(--text); font: 12px/1.5 ui-monospace, monospace; }
  .hall-assembly-index > summary > span { float: right; margin-left: 16px; color: var(--muted); font-size: 10px; }
  .hall-index-body { padding: 0 22px 20px; }
  .hall-index-body label { display: block; margin-bottom: 8px; color: var(--muted); font-size: 12px; }
  #desktopAssemblySearch { width: 100%; min-height: 42px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 3px; background: #06100c; color: var(--text); font: 13px/1.5 ui-monospace, monospace; }
  #desktopAssemblyCount { margin: 12px 0; color: var(--muted); font: 11px/1.5 ui-monospace, monospace; }
  .hall-index-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; max-height: 260px; overflow-y: auto; padding: 5px; margin: -5px; }
  .desktop-assembly-choice { min-height: 42px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 2px; text-align: left; background: rgba(15, 29, 23, 0.5); color: var(--text); font: 12px/1.45 ui-monospace, monospace; cursor: pointer; overflow-wrap: anywhere; }
  .desktop-assembly-choice:hover { background: #1a2f24; border-color: var(--line-strong); }
  .desktop-assembly-choice.is-selected { border-color: var(--amber); color: #e5d4a7; }
  .desktop-assembly-empty { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 12px; }
  .desktop-assembly-choice[hidden], .desktop-assembly-empty[hidden] { display: none; }
  .hall-desktop-layout[data-record-mode] .hall-handling-station {
    grid-area: station;
    display: flex;
    flex-direction: column;
    align-self: start;
    gap: 19px;
    min-width: 0;
    padding: 23px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: rgba(10, 20, 16, 0.9);
    box-shadow: none;
  }
  .hall-station-heading { padding-bottom: 17px; border-bottom: 1px solid var(--line); }
  .hall-station-heading .eyebrow { color: #becfab; font-size: 9px; }
  .hall-station-heading h2 { margin: 8px 0; font-size: 16px; font-weight: 550; letter-spacing: 0.02em; }
  #currentZone { margin: 0; color: var(--muted); font: 11px/1.5 ui-monospace, monospace; }
  .hall-selection > .eyebrow { font-size: 9px; }
  .hall-selection > .readout { margin: 8px 0 16px; color: #e5d4a7; font-size: 16px; line-height: 1.4; }
  .hall-handling-ledger { display: grid; gap: 10px; margin: 0; }
  .hall-handling-ledger > div { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 8px; }
  .hall-handling-ledger dt { color: var(--muted); font: 10px/1.5 ui-monospace, monospace; }
  .hall-handling-ledger dd { margin: 0; font: 11px/1.5 ui-monospace, monospace; overflow-wrap: anywhere; }
  .hall-desktop-layout .hall-handling-station .procedure-block { grid-area: auto; border: 0; padding: 0; }
  .hall-handling-station .procedure-block .eyebrow { font-size: 9px; }
  .hall-handling-station .procedure-block p:last-child { font-size: 13px; line-height: 1.6; }
  .hall-handling-station .hall-station-status { display: none; }
  .hall-handling-station .procedure-actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; grid-area: auto; }
  .hall-handling-station .procedure-actions button { min-height: 44px; padding: 12px; font-size: 10px; letter-spacing: 0.06em; line-height: 1.45; }
  .hall-handling-station .procedure-actions button:first-child:not(:disabled) { border-color: #9cba8b; background: rgba(146, 181, 120, 0.12); }
  .hall-desktop-layout[data-has-assembly="false"] .hall-selection { display: none; }
  .hall-desktop-layout .hall-retained-readout { display: none !important; }
  .hall-inspection-area { grid-area: inspection; display: grid; gap: 16px; min-width: 0; }
  .hall-inspection-area:has(> .is-available), .hall-inspection-area:has(> .is-open), .hall-inspection-area:has(> .is-armed) { border-top: 1px solid var(--line); padding-top: 18px; }
  .hall-inspection-area > .assembly-memory-surface { grid-area: auto; margin: 0; padding: 20px; }
  .hall-inspection-area > .assembly-memory-surface:not(.is-available),
  .hall-inspection-area > .records-card:not(.is-open) { display: none; }
  .hall-inspection-area > .records-card { padding: 22px; max-height: none; overflow: visible; }
  .hall-desktop-layout .mobile-pool-access, .hall-desktop-layout .facility-footer { display: none; }
  .hall-desktop-layout a:focus-visible, .hall-desktop-layout button:focus-visible,
  .hall-desktop-layout summary:focus-visible, .hall-desktop-layout input:focus-visible { outline: 2px solid #c5e79e; outline-offset: 4px; }
}
@media (min-width: 761px) and (min-height: 761px) and (max-width: 1100px), (min-width: 761px) and (pointer: fine) and (max-width: 1100px), (min-width: 761px) and (pointer: none) and (max-width: 1100px) {
  .hall-desktop-layout { padding: 18px; }
  .hall-desktop-layout[data-record-mode] .containment-main { grid-template-columns: minmax(0, 1fr); grid-template-areas: "map" "station" "inspection"; }
  .hall-desktop-layout[data-record-mode] .hall-handling-station { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px 28px; }
  .hall-station-heading { grid-column: 1 / -1; display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; padding-bottom: 12px; }
  .hall-station-heading h2, .hall-station-heading .eyebrow { margin: 0; }
  .hall-handling-station .procedure-actions { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hall-desktop-layout[data-has-assembly="false"] .hall-station-instruction { grid-column: 1 / -1; }
}
@media (min-width: 761px) and (min-height: 761px) and (prefers-reduced-motion: reduce), (min-width: 761px) and (pointer: fine) and (prefers-reduced-motion: reduce), (min-width: 761px) and (pointer: none) and (prefers-reduced-motion: reduce) {
  .hall-desktop-layout .pool-slot, .hall-desktop-layout .assembly-marker,
  .hall-desktop-layout .procedure-actions button { transition: none; }
}
