/* p3-1 FLEET MAP (R-1009-32/32a). Laid on storm.css + storm-look.css (the
   Tree Shop look). Colour never carries meaning alone: every pin carries its
   unit number and every row its WORDS (DOWN / PROBLEM / STORM / YARD).
   Tap floor 48 px; 390 px wide first; no horizontal page scroll. */
body.fleet .fm-back { color: var(--c-accent, #57A9FE); font-weight: 700; text-decoration: none; white-space: nowrap; flex-shrink: 0;
  min-height: 44px; display: inline-flex; align-items: center; padding-right: 6px; }
body.fleet main { padding: 0 16px 24px; }
body.fleet .fm-note { color: #A3ACB9; font-size: 13px; margin: 4px 0; }
body.fleet .fm-filters { display: flex; gap: 8px; margin: 8px 0; flex-wrap: wrap; }
body.fleet .fm-chip { appearance: none; background: #000; color: #C7C7C7; border: 1px solid #C7C7C7;
  border-radius: 22px; min-height: 44px; padding: 0 16px; font-size: 15px; font-weight: 700; width: auto; margin: 0; }
body.fleet .fm-chip.on { background: #57A9FE; color: #000; border-color: #57A9FE; }
body.fleet .fm-map { position: relative; height: 56vh; min-height: 300px; overflow: hidden;
  border: 2px solid #007CFD; border-radius: 12px; background: #0B0F14; touch-action: none; user-select: none; }
body.fleet .fm-layer { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
body.fleet #fm-tiles img { position: absolute; width: 256px; height: 256px; pointer-events: none; max-width: none; }
body.fleet .fm-pin { position: absolute; transform: translate(-50%, -100%); appearance: none; margin: 0; width: auto;
  min-width: 44px; min-height: 30px; padding: 3px 7px; border-radius: 8px; border: 2px solid #000;
  background: #19C37D; color: #000; font: 700 12px/1.1 -apple-system, Arial, sans-serif; white-space: nowrap; }
body.fleet .fm-pin::after { content: ""; position: absolute; left: 50%; bottom: -8px; margin-left: -6px;
  border: 6px solid transparent; border-top-color: #000; }
body.fleet .fm-pin.storm { background: #57A9FE; }
body.fleet .fm-pin.concern { background: #FFB020; }
body.fleet .fm-pin.down { background: #FF5A5A; }
body.fleet .fm-zoom { position: absolute; right: 8px; top: 8px; display: flex; flex-direction: column; gap: 6px; }
body.fleet .fm-zoom button { appearance: none; width: 48px; min-height: 48px; margin: 0; border-radius: 10px;
  background: #000; color: #FFF; border: 1px solid #C7C7C7; font-size: 22px; font-weight: 700; }
body.fleet .fm-zoom .fm-fit { font-size: 11px; }
body.fleet .fm-attrib { position: absolute; right: 4px; bottom: 2px; margin: 0; font-size: 10px;
  background: rgba(255,255,255,.85); color: #000; padding: 1px 4px; border-radius: 4px; }
body.fleet .fm-list-title { font-size: 16px; margin: 14px 0 6px; }
body.fleet .fm-row { display: flex; flex-direction: column; gap: 2px; width: 100%; text-align: left; appearance: none;
  background: #000; color: #FFF; border: 1px solid #1C2634; border-left: 4px solid #19C37D; border-radius: 10px;
  padding: 10px 12px; margin: 0 0 8px; min-height: 56px; font-size: 15px; }
body.fleet .fm-row.storm { border-left-color: #57A9FE; }
body.fleet .fm-row.concern { border-left-color: #FFB020; }
body.fleet .fm-row.down { border-left-color: #FF5A5A; }
body.fleet .fm-row .u { font-weight: 800; font-size: 17px; }
body.fleet .fm-row .l { color: #C7C7C7; font-size: 13px; }
body.fleet .fm-tags { margin: 4px 0; font-weight: 800; font-size: 13px; letter-spacing: .04em; color: #FFF; }
body.fleet .fm-sheet { position: fixed; left: 0; right: 0; bottom: 0; max-height: 82vh; overflow-y: auto; z-index: 20;
  background: #000; border-top: 3px solid #007CFD; padding: 12px 16px calc(16px + env(safe-area-inset-bottom));
  max-width: 430px; margin: 0 auto; }
body.fleet .fm-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
body.fleet .fm-sheet-head b { font-size: 22px; }
body.fleet .fm-nav { display: flex; align-items: center; justify-content: center; min-height: 52px; margin: 8px 0;
  border-radius: 12px; background: #57A9FE; color: #000; font-weight: 800; text-decoration: none; }
body.fleet .fm-card, body.fleet .fm-photos { border-top: 1px solid #1C2634; margin-top: 10px; padding-top: 8px; }
body.fleet .fm-card dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 10px; margin: 0; font-size: 14px; }
body.fleet .fm-card dt { color: #A3ACB9; }
body.fleet .fm-card dd { margin: 0; }
body.fleet .up-item { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px;
  border-bottom: 1px solid #1C2634; padding: 8px 0; }
body.fleet .up-item .n { font-weight: 700; }
body.fleet .up-item .s { color: #C7C7C7; font-size: 13px; width: 100%; }
body.fleet .up-item .s.missing { color: #FFB020; font-weight: 700; }
body.fleet .up-item button, body.fleet .up-item label.up-take { appearance: none; width: auto; margin: 0; min-height: 48px;
  padding: 0 14px; border-radius: 10px; border: 1px solid #57A9FE; background: #000; color: #57A9FE;
  font-weight: 800; font-size: 15px; display: inline-flex; align-items: center; }
body.fleet .up-item input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }
/* p5-1 fleet filters */
body.fleet .ff-panel { margin: 10px 0 4px; }
body.fleet .ff-search { width: 100%; min-height: 52px; margin: 0 0 8px; padding: 0 14px; border-radius: 12px;
  border: 1px solid #C7C7C7; background: #000; color: #FFF; font-size: 18px; box-sizing: border-box; }
body.fleet .ff-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
body.fleet .ff-chips[hidden] { display: none; }
body.fleet .ff-chip { min-height: 52px; border-radius: 26px; }
body.fleet .ff-sort { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font-weight: 700; color: #C7C7C7; }
body.fleet .ff-sort select { flex: 1; min-height: 52px; border-radius: 12px; border: 1px solid #C7C7C7;
  background: #000; color: #FFF; font-size: 16px; padding: 0 10px; margin: 0; }
body.fleet .ff-toggle { appearance: none; width: 100%; min-height: 52px; margin: 0 0 8px; border-radius: 12px;
  border: 1px solid #007CFD; background: #000; color: #FFF; font-size: 15px; font-weight: 700; text-align: left; padding: 0 14px; }
body.fleet .fm-list[hidden] { display: none; }
body.fleet .fm-pin.ff-group { transform: translate(-50%, -50%); min-width: 44px; min-height: 44px; border-radius: 22px;
  background: #FFF; color: #000; font-size: 15px; display: inline-flex; align-items: center; justify-content: center; }
body.fleet .fm-pin.ff-group::after { content: none; }
/* p5-142: the Leaflet container (its panes stay inside it; Show all sits above) */
body.fleet .fm-leaflet { z-index: 0; background: #0B0F14; }
body.fleet .fm-zoom { z-index: 1; }
body.fleet .leaflet-control-zoom a { width: 44px; height: 44px; line-height: 44px; font-size: 22px; }
/* p5-145: MapLibre's + / - at the same glove size */
body.fleet .maplibregl-ctrl-group button { width: 44px; height: 44px; }
body.fleet .maplibregl-ctrl-group button .maplibregl-ctrl-icon { background-size: 34px 34px; }
body.fleet .fm-pin-label { background: #000; color: #FFF; border: 1px solid #C7C7C7; border-radius: 6px;
  padding: 1px 6px; font: 700 12px/1.2 -apple-system, Arial, sans-serif; box-shadow: none; }
body.fleet .fm-pin-label::before { content: none; }
body.fleet .ff-group-label { background: transparent; border: 0; color: #000; font-size: 15px; }
