/* WildWatts "Your fleet" - v4 "selected direction" (25 Nov 2026)
   Room (explorable) on the left, selected-miner inspector on the right, complete roster below.
   List view / no WebGL: the roster takes the room's column. Phones: list first, details in a sheet. Dark only. */
.ww-fleet {
  --f-bg: #0C0C10; --f-panel: #16161E; --f-panel-2: #1E1E28; --f-line: #2A2A3A; --f-line-2: #657181;
  --f-text: #F5F5F7; --f-muted: #B6BEC9; --f-orange: #F15800; --f-orange-ink: #0C0C10;
  --f-ok: #51DBA5; --f-warn: #FFCF70; --f-bad: #FF9898; --f-na: #B6BEC9; --f-focus: #B6DDFF;
  color: var(--f-text); font-family: 'DM Sans', system-ui, sans-serif; margin: 0 0 24px; line-height: 1.45;
}
.ww-fleet *, .ww-fleet *::before, .ww-fleet *::after { box-sizing: border-box; }
.ww-fleet :is(button, a, input, [tabindex]):focus-visible { outline: 3px solid var(--f-focus); outline-offset: 2px; }
.ww-fleet h1, .ww-fleet h2, .ww-fleet h3 { text-wrap: balance; }
.ww-fleet [hidden] { display: none !important; }
.f3d-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* ── header ── */
.f3d-head { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; margin-bottom: 12px; }
.f3d-title { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -.4px; line-height: 1.1; color: var(--f-text); }
.f3d-sub { margin: 3px 0 0; font-size: 14.5px; color: var(--f-muted); }
.f3d-headact { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.f3d-demo { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--f-orange);
  border: 1px solid rgba(241,88,0,.6); border-radius: 999px; padding: 6px 12px; }
.f3d-rent { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 10px; font-size: 15px; font-weight: 700;
  color: var(--f-orange-ink); background: var(--f-orange); text-decoration: none; white-space: nowrap; }
.f3d-rent:hover { background: #ff6a14; }

/* ── metrics: compact, one per algorithm ── */
.f3d-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 14px; background: var(--f-panel);
  border: 1px solid var(--f-line); border-radius: 14px; overflow: hidden; }
.f3d-stat { padding: 10px 18px; border-left: 1px solid var(--f-line); display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.f3d-stat:first-child { border-left: 0; }
.f3d-stat .k { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--f-muted); }
.f3d-stat .v { font-size: 22px; font-weight: 800; color: var(--f-text); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.f3d-attn { font: inherit; text-align: left; background: transparent; color: inherit; border: 0; border-left: 1px solid var(--f-line); cursor: pointer; }
.f3d-attn:hover:not(:disabled) { background: var(--f-panel-2); }
.f3d-attn:disabled { cursor: default; }
.f3d-attn .dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--f-warn); margin-right: 8px; vertical-align: middle; }

/* ── main: room + inspector ── */
.f3d-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(290px, 316px); gap: 16px; align-items: start; }
.f3d-roompanel { min-width: 0; background: var(--f-panel); border: 1px solid var(--f-line); border-radius: 16px; padding: 10px; }
.f3d-toolbar { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.f3d-seg, .f3d-pager { display: inline-flex; gap: 4px; padding: 3px; border-radius: 12px; background: var(--f-bg); border: 1px solid var(--f-line); }
.f3d-seg button, .f3d-pager button { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; min-width: 44px; padding: 0 14px; border-radius: 9px; border: 0;
  background: transparent; color: var(--f-muted); font: 600 14px/1 'DM Sans', sans-serif; cursor: pointer; white-space: nowrap; }
.f3d-seg button[aria-pressed="true"] { background: var(--f-panel-2); color: var(--f-text); box-shadow: inset 0 0 0 1px var(--f-line-2); }
.f3d-pager button[aria-pressed="true"] { background: var(--f-panel-2); color: var(--f-text); box-shadow: inset 0 0 0 1.5px var(--f-orange); }
.f3d-seg button:hover, .f3d-pager button:hover { color: var(--f-text); }
.f3d-pager .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--f-warn); display: inline-block; }
.f3d-tools { margin-left: auto; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.f3d-tbtn, .f3d-view button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; min-width: 44px; padding: 0 12px; border-radius: 10px;
  font: 600 14px/1 'DM Sans', sans-serif; color: var(--f-text); cursor: pointer; background: var(--f-bg); border: 1px solid var(--f-line-2); white-space: nowrap; }
.f3d-tbtn:hover, .f3d-view button:hover { border-color: var(--f-orange); }
.f3d-tbtn[aria-pressed="true"], .f3d-tbtn[aria-expanded="true"] { border-color: var(--f-orange); box-shadow: inset 0 0 0 1px var(--f-orange); }
.f3d-view { display: flex; gap: 6px; }
.f3d-view button { font-size: 16px; }
.f3d-view .reset span { font-size: 13.5px; }
.f3d-explore { display: none; }
@media (pointer: coarse) { .f3d-explore { display: inline-flex; } }
.f3d-shelfmenu { position: relative; }
.f3d-shelflist { position: absolute; z-index: 20; right: 0; top: calc(100% + 6px); min-width: 220px; margin: 0; padding: 6px; list-style: none;
  background: var(--f-panel); border: 1px solid var(--f-line-2); border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.5); }
.f3d-shelflist button { width: 100%; text-align: left; min-height: 44px; padding: 0 12px; border-radius: 8px; border: 0; background: transparent;
  color: var(--f-text); font: 600 14px 'DM Sans', sans-serif; cursor: pointer; }
.f3d-shelflist button:hover, .f3d-shelflist button:focus-visible { background: var(--f-panel-2); }
.ww-fleet.no-room .f3d-seg, .ww-fleet.no-room .f3d-explore, .ww-fleet.no-room .f3d-view { display: none !important; }
.ww-fleet[data-view="list"] .f3d-stage, .ww-fleet[data-view="list"] .f3d-foot, .ww-fleet[data-view="list"] .f3d-cap,
.ww-fleet[data-view="list"] .f3d-view, .ww-fleet[data-view="list"] .f3d-explore, .ww-fleet[data-view="list"] .f3d-pager { display: none !important; }
.ww-fleet[data-view="list"] .f3d-roompanel { border: 0; background: transparent; padding: 0; }

/* ── the room ── */
.f3d-stage { position: relative; aspect-ratio: 2 / 1; min-height: 280px; border-radius: 12px; overflow: hidden; isolation: isolate; background: #0d0907;
  user-select: none; -webkit-user-select: none; cursor: grab; touch-action: pan-y; }
.f3d-stage:focus { outline: none; }
.f3d-stage:focus-visible { outline: 3px solid var(--f-focus); outline-offset: 2px; }
.f3d-stage.is-dragging { cursor: grabbing; }
.f3d-stage.is-explore { touch-action: none; box-shadow: inset 0 0 0 2px var(--f-orange); }
.f3d-back, .f3d-shade, .f3d-canvas, .f3d-labels { position: absolute; inset: 0; }
.f3d-back { z-index: 0; filter: blur(1.2px) brightness(.9); }
.f3d-back > div { position: absolute; inset: 0; }
.f3d-skyl { position: absolute; inset: 0; background-size: cover; background-position: center 60%; transition: opacity 2s linear; }
.sky-night { background: linear-gradient(180deg, #050816 0%, #0d1630 60%, #1a2238 100%); }
.sky-dawn  { background: linear-gradient(180deg, #2a3a6b 0%, #c76b5a 55%, #f3b27a 80%); }
.sky-day   { background: linear-gradient(180deg, #4f8fd6 0%, #8fc0ec 60%, #d7ecfa 100%); }
.sky-dusk  { background: linear-gradient(180deg, #1d2450 0%, #8a4a6e 45%, #e0773f 75%, #f5b259 100%); }
.f3d-farm, .f3d-window, .f3d-fore { display: none; }
.f3d-room.has-art { background-size: 100% 100%; }
.f3d-shade { z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,.1) 0%, transparent 22%, transparent 82%, rgba(0,0,0,.24) 100%); }
.f3d-canvas { z-index: 2; }
.f3d-canvas canvas { width: 100% !important; height: 100% !important; display: block; }
.f3d.room3d .f3d-back, .f3d.room3d .f3d-props { display: none; }
.f3d-props { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.f3d-stage.over-unit { cursor: pointer; }
.f3d-done { position: absolute; z-index: 7; left: 50%; bottom: 12px; transform: translateX(-50%); min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 0; background: var(--f-orange); color: var(--f-orange-ink); font: 700 14px 'DM Sans', sans-serif; cursor: pointer; }
.f3d-foot { display: flex; justify-content: space-between; align-items: baseline; gap: 6px 16px; flex-wrap: wrap; padding: 8px 4px 0; }
.f3d-meta, .f3d-hint { margin: 0; font-size: 13px; color: var(--f-muted); }
.f3d-hint { text-align: right; }
.f3d-cap { display: none; margin: 8px 4px 0; font-size: 14px; font-weight: 600; }

/* room markers: a number on the front edge; name on hover or selection */
.f3d-labels { z-index: 4; pointer-events: none; }
.f3d-mk { position: absolute; left: 0; top: 0; display: flex; flex-direction: column; align-items: center; pointer-events: auto; cursor: pointer;
  margin-left: -22px; margin-top: -4px; min-width: 44px; min-height: 44px; padding-top: 8px; will-change: transform; }
.f3d-mk .n { display: grid; place-items: center; min-width: 30px; height: 22px; padding: 0 6px; border-radius: 6px; font-size: 12.5px; font-weight: 700;
  font-variant-numeric: tabular-nums; color: var(--f-text); background: rgba(12,12,16,.86); border: 1px solid var(--f-line-2); }
.f3d-mk.st-offline .n, .f3d-mk.st-unavailable .n { border-color: var(--f-bad); }
.f3d-mk.st-offline .n::after, .f3d-mk.st-unavailable .n::after { content: "!"; margin-left: 4px; color: var(--f-bad); }
.f3d-mk .nm { display: none; position: absolute; left: calc(50% + 18px); top: 4px; margin: 0; white-space: nowrap; font-size: 12.5px; font-weight: 600; padding: 4px 9px; border-radius: 7px;
  color: var(--f-text); background: rgba(12,12,16,.92); border: 1px solid var(--f-line-2); }
.f3d-mk.nm-l .nm { left: auto; right: calc(50% + 18px); }
.f3d-mk.nm-b .nm { left: 50%; top: 32px; transform: translateX(-50%); }
.f3d-mk:hover .nm, .f3d-mk.is-hover .nm, .f3d-mk.is-sel .nm { display: block; }
.f3d-mk:hover, .f3d-mk.is-hover, .f3d-mk.is-sel { z-index: 3; }
.f3d-mk.is-sel .n { background: var(--f-orange); color: var(--f-orange-ink); border-color: var(--f-orange); }
.f3d-mk.is-dim { opacity: .35; }
.f3d-add { position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; margin-left: -60px; margin-top: -22px;
  border-radius: 10px; font-size: 13px; font-weight: 600; color: var(--f-muted); text-decoration: none; pointer-events: auto;
  background: rgba(12,12,16,.55); border: 1px dashed rgba(182,190,201,.45); white-space: nowrap; }
.f3d-add:hover { color: var(--f-text); border-color: var(--f-orange); }

/* ── shelf-object popup: anchored beside its object (desktop), a sheet on phones / in list view ── */
.f3d-pop { position: absolute; left: 0; top: 0; z-index: 8; width: 290px; padding: 12px 14px 14px; border-radius: 14px;
  background: rgba(16,16,22,.96); border: 1px solid var(--f-line-2); color: var(--f-text); box-shadow: 0 14px 40px rgba(0,0,0,.55); animation: f3dCardIn .2s ease both; cursor: auto; }
.f3d-pop .hd { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.f3d-pop h3 { margin: 0; font-size: 16px; font-weight: 800; }
.f3d-pop h3:focus { outline: none; } .f3d-pop h3:focus-visible { outline: 3px solid var(--f-focus); outline-offset: 2px; }
.f3d-pop .x { min-width: 44px; min-height: 44px; margin: -8px -10px -8px 0; border: 0; background: transparent; color: var(--f-muted); font-size: 24px; line-height: 1; cursor: pointer; border-radius: 10px; }
.f3d-pop .x:hover { color: var(--f-text); }
.f3d-pop .ph { margin: 8px 0 10px; border-radius: 10px; overflow: hidden; background: #0e0c0b; display: grid; place-items: center; }
.f3d-pop .ph canvas { display: block; width: 100%; height: auto; }
.f3d-pop .ph img { display: block; max-width: 70%; max-height: 160px; object-fit: contain; padding: 16px 0; }
.f3d-pop p { margin: 0 0 8px; font-size: 13.5px; line-height: 1.5; color: var(--f-muted); }
.f3d-pop a { display: flex; align-items: center; gap: 4px; min-height: 44px; font-size: 14px; font-weight: 700; color: var(--f-orange); text-decoration: none; }
.f3d-pop a:hover { text-decoration: underline; }
.f3d-pop.sheet { position: fixed; transform: none !important; left: auto; top: auto; right: 24px; bottom: 24px; width: 340px; z-index: 60; }
@keyframes f3dCardIn { from { opacity: 0; } to { opacity: 1; } }

/* ── inspector ── */
.f3d-insp { background: var(--f-panel); border: 1px solid var(--f-line); border-radius: 16px; padding: 16px; min-width: 0; }
.f3d-ihead { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.f3d-insp h2 { margin: 0; font-size: 21px; font-weight: 800; line-height: 1.2; overflow-wrap: anywhere; }
.f3d-insp h2 .num { font-variant-numeric: tabular-nums; }
.f3d-insp h2:focus { outline: none; }
.f3d-insp h2:focus-visible { outline: 3px solid var(--f-focus); outline-offset: 3px; }
.f3d-close { display: none; min-height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--f-line-2); background: var(--f-bg); color: var(--f-text);
  font: 600 14px 'DM Sans', sans-serif; cursor: pointer; white-space: nowrap; }
.f3d-model { margin: 3px 0 0; font-size: 13.5px; color: var(--f-muted); overflow-wrap: anywhere; }
.f3d-st { display: inline-flex; align-items: center; gap: 8px; margin: 6px 0 0; font-size: 14px; font-weight: 600; }
.f3d-st .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--f-na); flex: none; }
.f3d-st.st-online .dot { background: var(--f-ok); } .f3d-st.st-starting .dot { background: var(--f-warn); }
.f3d-st.st-offline .dot { background: var(--f-bad); } .f3d-st.st-unavailable .dot { background: transparent; box-shadow: inset 0 0 0 2px var(--f-na); }
.f3d-photo { margin: 12px 0 10px; border-radius: 12px; background: radial-gradient(circle at 50% 42%, #2a2a36, #121218 72%); height: 190px; padding: 16px;
  display: flex; align-items: center; justify-content: center; }
.f3d-photo img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; filter: drop-shadow(0 10px 14px rgba(0,0,0,.45)); }
.f3d-prime { display: flex; flex-direction: column; gap: 1px; padding-top: 10px; border-top: 1px solid var(--f-line); }
.f3d-prime .k { font-size: 12.5px; font-weight: 700; letter-spacing: .04em; color: var(--f-muted); }
.f3d-prime .v { font-size: 30px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.15; }
.f3d-exp { display: flex; align-items: center; gap: 8px; margin: 8px 0 0; padding-top: 8px; border-top: 1px solid var(--f-line); font-size: 14.5px; font-weight: 600; }
.f3d-exp svg { color: var(--f-muted); flex: none; }
.f3d-exp.urgent, .f3d-exp.warn { color: var(--f-warn); }
.f3d-dl { margin: 6px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.f3d-dl > div { display: flex; flex-direction: column; gap: 1px; padding: 6px 0 0; font-size: 13px; }
.f3d-dl dt { color: var(--f-muted); }
.f3d-dl dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; font-size: 14px; }
.f3d-acts { display: grid; gap: 8px; margin-top: 12px; }
.f3d-btn { display: flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 16px; border-radius: 10px; font-size: 15px; font-weight: 700;
  text-decoration: none; color: var(--f-text); background: transparent; border: 1px solid var(--f-line-2); font-family: inherit; }
.f3d-btn:hover { border-color: var(--f-text); }
.f3d-btn.primary { background: var(--f-orange); border-color: var(--f-orange); color: var(--f-orange-ink); }
.f3d-btn.primary:hover { background: #ff6a14; }
.f3d-btn[disabled] { opacity: .55; cursor: not-allowed; }
.f3d-note { margin: 0; font-size: 13px; color: var(--f-muted); }
.f3d-insp-empty p { color: var(--f-muted); font-size: 14px; margin: 8px 0 0; }
.f3d-scrim { position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.55); }

/* ── roster ── */
.f3d-roster { margin-top: 18px; }
.f3d-roompanel .f3d-roster { margin-top: 4px; }
.f3d-rhead { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; margin-bottom: 12px; }
.f3d-rhead h2 { margin: 0; font-size: 20px; font-weight: 800; margin-right: 4px; }
.f3d-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.f3d-fchip { min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--f-line-2); background: transparent; color: var(--f-text);
  font: 600 14px/1 'DM Sans', sans-serif; cursor: pointer; }
.f3d-fchip .c { color: var(--f-muted); margin-left: 4px; font-variant-numeric: tabular-nums; }
.f3d-fchip[aria-pressed="true"] { background: var(--f-text); color: var(--f-bg); border-color: var(--f-text); }
.f3d-fchip[aria-pressed="true"] .c { color: #3a3a46; }
.f3d-search { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border-radius: 10px;
  border: 1px solid var(--f-line-2); background: var(--f-panel); color: var(--f-muted); }
.f3d-search input { border: 0; outline: 0; background: transparent; color: var(--f-text); font: 500 14px 'DM Sans', sans-serif; width: 170px; min-height: 44px; }
.f3d-search:focus-within { outline: 3px solid var(--f-focus); outline-offset: 2px; }
.f3d-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.f3d-list li[hidden] { display: none; }
.f3d-ri { width: 100%; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; align-items: center; text-align: left; padding: 9px 12px;
  border-radius: 12px; border: 1px solid var(--f-line); background: var(--f-panel); color: var(--f-text); font: inherit; cursor: pointer; min-height: 76px; }
.f3d-ri:hover { border-color: var(--f-line-2); background: var(--f-panel-2); }
.f3d-ri[aria-pressed="true"] { border-color: var(--f-orange); box-shadow: inset 0 0 0 1px var(--f-orange); }
.f3d-ri .th { width: 56px; height: 56px; object-fit: contain; border-radius: 8px; background: #121218; display: block; padding: 4px; }
.f3d-ri .tx { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.f3d-ri .l1 { font-size: 15px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.f3d-ri .l1 .al { font-weight: 500; color: var(--f-muted); }
.f3d-ri .num { color: var(--f-muted); font-variant-numeric: tabular-nums; margin-right: 2px; }
.f3d-ri .l2 { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 13.5px; }
.f3d-ri .l2 .f3d-st { margin: 0; font-size: 13.5px; }
.f3d-ri .hr { color: var(--f-muted); font-variant-numeric: tabular-nums; }
.f3d-ri .l3 { font-size: 12.5px; color: var(--f-muted); }
.f3d-ri .l3.urgent, .f3d-ri .l3.warn { color: var(--f-warn); }
.f3d-none { color: var(--f-muted); font-size: 14px; margin: 6px 0 0; }

/* ── moments ── */
.f3d-grad { position: absolute; z-index: 6; left: 50%; top: 12px; transform: translateX(-50%); padding: 9px 18px; border-radius: 999px;
  font-size: 14px; font-weight: 600; color: var(--f-text); white-space: nowrap; background: rgba(12,12,16,.88); border: 1px solid rgba(241,88,0,.7);
  animation: f3dGradIn .6s cubic-bezier(.2,.9,.3,1.2) both; transition: opacity .9s, transform .9s; }
.f3d-grad b { color: var(--f-orange); text-transform: uppercase; letter-spacing: .1em; font-size: 11.5px; margin-right: 8px; }
.f3d-grad.out { opacity: 0; transform: translateX(-50%) translateY(-8px); }
@keyframes f3dGradIn { from { opacity: 0; transform: translateX(-50%) translateY(-14px) scale(.96); } to { opacity: 1; transform: translateX(-50%); } }
.f3d-whisper { position: absolute; z-index: 6; left: 50%; bottom: 52px; transform: translateX(-50%); font-size: 13px; font-style: italic; color: rgba(245,245,247,.9);
  text-shadow: 0 1px 8px rgba(0,0,0,.9); pointer-events: none; animation: f3dWhisper .5s ease both; transition: opacity 1s; white-space: nowrap; }
.f3d-whisper.out { opacity: 0; }
@keyframes f3dWhisper { from { opacity: 0; transform: translateX(-50%) translateY(4px); } to { opacity: 1; transform: translateX(-50%); } }

/* ── responsive ── */
@media (max-width: 1100px) { .f3d-main { grid-template-columns: minmax(0, 1fr); } .f3d-stage { aspect-ratio: 16 / 9; } }
@media (max-width: 1100px) and (min-width: 761px) { .f3d-insp { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 0 18px; } .f3d-insp > * { grid-column: 2; } .f3d-insp .f3d-photo { grid-column: 1; grid-row: 1 / span 6; margin: 0; height: 100%; min-height: 200px; } }
/* phones and small tablets: the list leads, details open in a sheet */
@media (max-width: 760px) {
  .f3d-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .f3d-stat:nth-child(3) { border-left: 0; }
  .f3d-stat:nth-child(n+3) { border-top: 1px solid var(--f-line); }
  .f3d-stat .v { font-size: 19px; white-space: normal; }
  .f3d-search { margin-left: 0; width: 100%; } .f3d-search input { width: 100%; }
  .f3d-insp { display: none; }
  .ww-fleet.sheet-open .f3d-insp { display: block; position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; max-height: 88vh; overflow: auto;
    border-radius: 18px 18px 0 0; border-bottom: 0; padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); box-shadow: 0 -12px 40px rgba(0,0,0,.6); }
  .ww-fleet.sheet-open .f3d-close { display: inline-flex; align-items: center; }
  .f3d-main { gap: 0; }
  .f3d-roster { margin-top: 12px; }
  .f3d-hint { display: none; }
  .f3d-view .reset span { display: none; }
  .f3d-shelfmenu .f3d-tbtn { font-size: 13.5px; }
}
@media (max-width: 600px) {
  .f3d-title { font-size: 23px; }
  .f3d-list { grid-template-columns: minmax(0, 1fr); }
  .f3d-stage { aspect-ratio: 4 / 3; min-height: 0; }
  .f3d-mk .nm { display: none !important; }   /* the selected name goes in the caption under the room, never clipped in-scene */
  .ww-fleet[data-view="room"] .f3d-cap { display: block; }
  .f3d-pop.sheet { left: 0; right: 0; bottom: 0; width: auto; max-height: 86vh; overflow: auto; border-radius: 18px 18px 0 0; padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
  .f3d-toolbar { gap: 6px; }
  .f3d-tools { margin-left: 0; }
  .f3d-view [data-v="in"], .f3d-view [data-v="out"] { display: none; }   /* phones zoom by pinching in Explore mode; Reset stays */
}
@media (prefers-reduced-motion: reduce) {
  .ww-fleet *, .ww-fleet *::before, .ww-fleet *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* full-screen 3D mode: the room panel fills the display */
.f3d-roompanel:fullscreen { width: 100vw; height: 100vh; border: 0; border-radius: 0; padding: 10px; background: var(--f-bg); display: flex; flex-direction: column; }
.f3d-roompanel:fullscreen .f3d-stage { flex: 1 1 auto; aspect-ratio: auto; min-height: 0; border-radius: 8px; }
.f3d-roompanel:-webkit-full-screen { width: 100vw; height: 100vh; border: 0; border-radius: 0; padding: 10px; background: var(--f-bg); display: flex; flex-direction: column; }
.f3d-roompanel:-webkit-full-screen .f3d-stage { flex: 1 1 auto; aspect-ratio: auto; min-height: 0; }
.ww-fleet[data-view="list"] .f3d-full { display: none; }
/* full-screen stats: a frosted-glass bubble, top right */
.f3d-hud { display: none; position: absolute; z-index: 6; top: 16px; right: 16px; gap: 0; padding: 6px 4px; border-radius: 22px; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.05)); border: 1px solid rgba(255,255,255,.22);
  -webkit-backdrop-filter: blur(22px) saturate(170%); backdrop-filter: blur(22px) saturate(170%);
  box-shadow: 0 10px 34px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.28); }
.f3d-hud > div { display: flex; flex-direction: column; gap: 1px; padding: 8px 18px; border-left: 1px solid rgba(255,255,255,.14); }
.f3d-hud > div:first-child { border-left: 0; }
.f3d-hud .k { font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: rgba(245,245,247,.72); }
.f3d-hud .v { font-size: 19px; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; text-shadow: 0 1px 6px rgba(0,0,0,.35); }
.f3d-hud .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--f-warn); margin-right: 7px; vertical-align: middle; }
.f3d-roompanel:fullscreen .f3d-hud { display: flex; }
.f3d-roompanel:-webkit-full-screen .f3d-hud { display: flex; }
/* many bays: compact picker */
.f3d-pager { align-items: center; }
.f3d-pager button:disabled { opacity: .35; cursor: default; }
.f3d-baysel select { min-height: 44px; padding: 0 10px; border-radius: 9px; border: 1px solid var(--f-line-2); background: var(--f-panel-2); color: var(--f-text); font: 600 14px 'DM Sans', sans-serif; }
.f3d-bayof { padding: 0 8px; font-size: 13px; color: var(--f-muted); white-space: nowrap; }
