/* Map placement. One grid for every map surface. 8px spacing, 44px targets.
   Phone (under 900px): bottom sheet, map full width, controls snapped to the map corners.
   >=900px: the sheet becomes a left panel and the rail stays a right column.
   Tokens are also read by the React shell (app/src/map/chrome.tsx). */
:root{
  --ml-space:8px;
  --ml-touch:44px;
  --ml-fab:56px;
  --ml-peek:56px;
  --ml-radius:12px;
  --ml-z-map:1;
  --ml-z-banner:4;
  --ml-z-chrome:5;
  --ml-z-fab:6;
  --ml-z-sheet:7;
  --ml-z-modal:8;
  --ml-safe-t:env(safe-area-inset-top,0px);
  --ml-safe-r:env(safe-area-inset-right,0px);
  --ml-safe-b:env(safe-area-inset-bottom,0px);
  --ml-safe-l:env(safe-area-inset-left,0px);
  --ml-sheet:56px;
}
.ml{
  --ml-bg:color-mix(in srgb,#fff 94%,transparent);
  --ml-fg:#111;
  --ml-line:#222;
  --ml-muted:#5c6570;
  --ml-accent:#d35400;
  --ml-accent-ink:#fff;
  --ml-warn:#e8c07a;
  --ml-warn-ink:#1a1000;
  color:var(--ml-fg);
}
body.dk .ml,[data-theme=dark] .ml{
  --ml-bg:color-mix(in srgb,#15181d 92%,transparent);
  --ml-fg:#f3f4f6;
  --ml-line:#3a414c;
  --ml-muted:#a3a9b4;
  --ml-accent:#ff7a1a;
  --ml-accent-ink:#140800;
  --ml-warn:#2e2108;
  --ml-warn-ink:#f3f4f6;
}
/* Night and Low light: the sheet text follows the map (warm, dim), not the bright dark-theme white. */
body.nt .ml{
  --ml-bg:color-mix(in srgb,#140c0b 94%,transparent);
  --ml-fg:#f0d0c8;
  --ml-line:#5a3030;
  --ml-muted:#c09484;
  --ml-accent:#c0502a;
  --ml-accent-ink:#140806;
}
body.lo .ml{
  --ml-bg:color-mix(in srgb,#070303 94%,transparent);
  --ml-fg:#d0705a;
  --ml-line:#4a1810;
  --ml-muted:#a05040;
  --ml-accent:#9a2a1a;
  --ml-accent-ink:#f0c0b0;
}
.ml,.ml *{box-sizing:border-box}
.ml{
  position:absolute;inset:0;pointer-events:none;z-index:var(--ml-z-chrome);
  display:grid;gap:var(--ml-space);
  grid-template-columns:minmax(0,1fr) auto;
  grid-template-rows:auto auto minmax(28vh,1fr) auto auto;
  grid-template-areas:"top top" "status status" "map rail" "map fab" "sheet sheet";
  padding:calc(var(--ml-space) + var(--ml-safe-t)) calc(var(--ml-space) + var(--ml-safe-r)) calc(var(--ml-space) + var(--ml-safe-b)) calc(var(--ml-space) + var(--ml-safe-l));
}
#ov.ml{
  position:fixed;
  display:grid;
  justify-content:stretch;
  align-content:stretch;
  gap:var(--ml-space);
  grid-template-columns:minmax(0,1fr) auto;
  grid-template-rows:auto auto minmax(28vh,1fr) auto auto;
  grid-template-areas:"top top" "status status" "map rail" "map fab" "sheet sheet";
  padding:calc(var(--ml-space) + var(--ml-safe-t)) calc(var(--ml-space) + var(--ml-safe-r)) calc(var(--ml-space) + var(--ml-safe-b)) calc(var(--ml-space) + var(--ml-safe-l));
}
.ml-top{grid-area:top;min-width:0;pointer-events:auto;z-index:var(--ml-z-chrome)}
.ml-status{grid-area:status;display:flex;flex-direction:column;gap:var(--ml-space);min-width:0;z-index:var(--ml-z-banner)}
#ov.ml .ml-status{flex-direction:row;flex-wrap:nowrap;align-items:center;max-height:var(--ml-touch);overflow-x:auto;overflow-y:hidden;scrollbar-width:none}
#ov.ml .ml-status::-webkit-scrollbar{display:none}
/* Notices keep a readable width and the row scrolls sideways on a phone, instead of squeezing each to a letter. */
#ov.ml .ml-status .ml-banner{flex:0 0 auto;max-width:82%}
#ov.ml .ml-status:has(.ml-banner-body:not([hidden])){flex-wrap:wrap;max-height:none;overflow:visible}
#ml-banners{display:contents}
#ov.ml #sd{flex:1;min-width:0}
.ml-legal{margin:0;padding:8px 10px;border-radius:var(--ml-radius);background:var(--ml-warn);color:var(--ml-warn-ink);font:650 14px/1.35 sans-serif}
.ml-tools{display:flex;gap:8px;align-items:stretch;min-width:0}
.ml-tools .ml-seg{flex:1;min-width:0}
.ml-state{flex:0 1 132px;min-width:0;min-height:44px;border-radius:12px;border:1px solid var(--ml-line);background:var(--ml-bg);color:var(--ml-fg);font:700 14px/1 sans-serif;padding:0 8px}
.ml-status:not(:has(.ml-banner:not([hidden]),#sd:not([hidden]),.ml-filters:not([hidden]),.ml-seg,.ml-legal)){display:none}
.ml-map{grid-area:map;min-width:0;min-height:0;position:relative;z-index:var(--ml-z-map);pointer-events:auto}
.ml-map .wm-canvas,.ml-map .maplibregl-map,.ml-map .maplibregl-canvas-container,.ml-map .maplibregl-canvas{pointer-events:auto;touch-action:none}
/* Incident viewer draws on #m, behind this grid. The empty cell must not eat those hits. */
#ov .ml-map{pointer-events:none}
.ml-rail{grid-area:rail;align-self:start;justify-self:end;display:flex;flex-direction:column;gap:var(--ml-space);pointer-events:auto;z-index:var(--ml-z-chrome);max-height:100%;overflow:auto;scrollbar-width:none}
.ml-rail::-webkit-scrollbar{display:none}
.ml-fab,.ml-fab-slot{grid-area:fab;justify-self:end;align-self:end;z-index:var(--ml-z-fab)}
.ml-fab-slot{width:0;height:0}
html.ml-embed .ml-fab-slot{width:var(--ml-fab);height:var(--ml-fab)}
html.ml-pick .ml-fab-slot{width:0;height:0}
.ml-sheet{grid-area:sheet;pointer-events:auto;z-index:var(--ml-z-sheet);background:var(--ml-bg);color:var(--ml-fg);border:1px solid var(--ml-line);border-radius:16px;box-shadow:0 8px 24px rgb(0 0 0/.18);display:flex;flex-direction:column;min-width:0;overflow:hidden;height:var(--ml-peek)}
.ml-sheet[data-tier=half]{height:min(32vh,280px)}
.ml-sheet[data-tier=full]{height:min(52vh,480px)}
.ml-sheet-h{display:flex;align-items:center;gap:var(--ml-space);padding:6px;min-height:var(--ml-peek);box-sizing:border-box;flex:none}
.ml-host .ml-sheet-h{cursor:pointer}
.ml-host .ml-sheet-h .ml-title{flex:1}
.ml-grab{width:var(--ml-touch);height:var(--ml-touch);border:0;border-radius:10px;background:none;color:inherit;cursor:grab;display:grid;place-items:center;padding:0;flex:none}
.ml-grab::before{content:"";width:32px;height:4px;border-radius:4px;background:currentColor;opacity:.45}
.ml-tabs{display:flex;flex:1;gap:4px;min-width:0}
.ml-tabs button{flex:1;min-height:var(--ml-touch);border:0;border-radius:10px;background:transparent;color:inherit;font:700 13px/1.1 sans-serif;cursor:pointer;padding:0 6px}
.ml-tabs button.on,.ml-tabs button[aria-selected=true]{background:color-mix(in srgb,var(--ml-accent) 20%,transparent)}
.ml-sheet-b{overflow:auto;padding:0 8px 8px;min-height:0;flex:1}
.ml-sheet[data-tier=peek] .ml-sheet-b{display:none}
.ml-title{margin:0;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:750 16px/1.2 sans-serif;letter-spacing:-.02em}
.ml-search{display:flex;align-items:center;min-height:var(--ml-touch);background:var(--ml-bg);color:var(--ml-fg);border:1px solid var(--ml-line);border-radius:var(--ml-radius);padding:0 12px}
.ml-search input{flex:1;min-width:0;height:var(--ml-touch);border:0;background:none;color:inherit;font:500 16px sans-serif;outline:none}
.ml-search input::placeholder{color:var(--ml-muted)}
.ml-banner{display:flex;flex-wrap:nowrap;align-items:center;gap:0 4px;height:var(--ml-touch);min-height:var(--ml-touch);max-height:var(--ml-touch);overflow:hidden;background:var(--ml-warn);color:var(--ml-warn-ink);border:1px solid #6b4a12;border-radius:var(--ml-radius);padding:0 4px 0 12px;pointer-events:auto}
.ml-banner:has(.ml-banner-body:not([hidden])){flex-wrap:wrap;height:auto;max-height:none;overflow:visible}
.ml-banner-sum{flex:1;min-width:0;height:var(--ml-touch);min-height:var(--ml-touch);border:0;background:none;color:inherit;font:700 13px/var(--ml-touch) sans-serif;text-align:left;cursor:pointer;padding:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ml-banner-body{flex:1 0 100%;padding:0 8px 8px;font:13px/1.35 sans-serif}
.ml-x{width:var(--ml-touch);height:var(--ml-touch);border:0;border-radius:10px;background:none;color:inherit;font:400 22px/1 sans-serif;cursor:pointer}
.ml-filters{display:flex;gap:var(--ml-space);pointer-events:auto;min-width:0}
.ml-filters button,.ml-seg button{flex:1;min-height:var(--ml-touch);border-radius:var(--ml-radius);border:1px solid var(--ml-line);background:var(--ml-bg);color:var(--ml-fg);font:700 14px sans-serif;cursor:pointer;padding:0 8px}
/* White on #d35400 is 4.17:1. 14px labels need 4.5:1, so the selected fill is #a84300 (6.06:1). */
.ml-filters button.on,.ml-seg button.on{background:#a84300;color:#fff;border-color:transparent;box-shadow:inset 0 0 0 2px #a84300}
[data-theme=dark] .ml-filters button.on,[data-theme=dark] .ml-seg button.on,body.dk .ml-filters button.on,body.dk .ml-seg button.on{background:var(--ml-accent);color:var(--ml-accent-ink);box-shadow:inset 0 0 0 2px var(--ml-accent)}
.ml-seg{display:flex;gap:4px;padding:4px;border-radius:14px;background:color-mix(in srgb,var(--ml-fg) 8%,var(--ml-bg));pointer-events:auto}
.ml-rail button,.ml-fab{width:var(--ml-touch);height:var(--ml-touch);min-width:var(--ml-touch);min-height:var(--ml-touch);border-radius:var(--ml-radius);border:1px solid var(--ml-line);background:var(--ml-bg);color:var(--ml-fg);padding:0;display:grid;place-items:center;cursor:pointer;font:700 18px/1 sans-serif;box-shadow:0 1px 4px rgb(0 0 0/.12)}
.ml-rail button.on,.ml-rail button[aria-pressed=true]{background:var(--ml-accent);color:var(--ml-accent-ink);border-color:transparent}
.maplibregl-ctrl-attrib-button{width:44px;height:44px}
.maplibregl-ctrl-attrib a{display:inline-flex;align-items:center;min-height:44px;padding:0 6px}
.ml-fab{width:var(--ml-fab);height:var(--ml-fab);border:0;border-radius:16px;background:var(--ml-accent);color:var(--ml-accent-ink);pointer-events:auto;box-shadow:0 4px 16px rgb(0 0 0/.28)}
.ml-fab svg,.ml-rail svg{display:block}
.ml button:focus-visible,.ml input:focus-visible,.ml select:focus-visible,.ml a:focus-visible{outline:2px solid var(--ml-accent);outline-offset:2px}
.ml-check{display:flex;align-items:center;gap:8px;min-height:var(--ml-touch);font:600 14px sans-serif}
.ml-check input{width:22px;height:22px}
.ml-field{display:flex;flex-direction:column;gap:4px;font:700 12px sans-serif;color:var(--ml-muted)}
.ml-field select{min-height:var(--ml-touch);border-radius:var(--ml-radius);border:1px solid var(--ml-line);background:var(--ml-bg);color:var(--ml-fg);font:600 16px sans-serif;padding:0 8px}

/* Incident viewer: search fills the top bar. Theme lives in the Layers pane, not on the map. */
#ov.ml #srch{max-height:none;border:0;background:transparent;box-shadow:none;padding:0;width:100%}
#ov.ml #srch.pnl{border-width:0}
#ov.ml .sr-in{background:var(--ml-bg);border:1px solid var(--ml-line);border-radius:var(--ml-radius);min-height:var(--ml-touch)}
#ov.ml #sq{height:var(--ml-touch)}
#ov.ml #sres{max-height:min(40vh,320px);background:var(--ml-bg);border:1px solid var(--ml-line);border-radius:var(--ml-radius);margin-top:8px}
#ov.ml #mm{display:flex;flex-wrap:wrap;gap:4px;margin:0 0 8px}
#ov.ml #mm button{min-width:var(--ml-touch);min-height:var(--ml-touch);border-radius:10px;border:1px solid var(--ml-line)}
#ov.ml #ft{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:8px 8px 12px}
#ov.ml #ft br{display:none}
#ov.ml #ft #out{flex:1 0 100%;min-height:var(--ml-touch);display:flex;align-items:center}
#ov.ml #ft button,#ov.ml #ft select,#ov.ml #rt button,#ov.ml #rt select{min-height:var(--ml-touch);min-width:var(--ml-touch);margin:0;padding:0 12px;box-sizing:border-box}
#ov.ml #ft select{flex:1 1 160px}
#ov.ml #ly label{min-height:var(--ml-touch)}
/* Import KML / GPX (Layers pane, import.js). Every control is at least 44px. */
#ov.ml .imp{padding:4px 10px 8px;border-top:1px solid color-mix(in srgb,var(--ml-fg) 15%,transparent);margin-top:4px;font:14px/1.35 sans-serif}
#ov.ml .imp button{min-height:var(--ml-touch);min-width:var(--ml-touch);padding:0 12px;border-radius:10px;border:1px solid var(--ml-line);background:none;color:inherit;font:600 14px sans-serif;cursor:pointer;box-sizing:border-box}
#ov.ml .imp .imp-add{background:var(--ml-accent);color:var(--ml-accent-ink);border-color:var(--ml-accent);margin:6px 0}
#ov.ml .imp-msg{font-size:13px}#ov.ml .imp-msg:empty{display:none}#ov.ml .imp-msg.bad{color:#c62828;font-weight:600}body.dk #ov.ml .imp-msg.bad{color:#ff8a80}body.lo #ov.ml .imp-msg.bad{color:#e0602a}
#ov.ml .imp-list{list-style:none;margin:4px 0;padding:0}#ov.ml .imp-list li{display:flex;align-items:center;gap:6px;padding:2px 0;border-bottom:1px solid color-mix(in srgb,var(--ml-fg) 10%,transparent)}
#ov.ml .imp-on{flex:1 1 auto;min-width:0;display:flex;align-items:center;gap:8px;min-height:var(--ml-touch);cursor:pointer}#ov.ml .imp-on input{width:22px;height:22px;flex:0 0 auto}
#ov.ml .imp-nm{min-width:0;display:flex;flex-direction:column}#ov.ml .imp-nm b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#ov.ml .imp-nm small{opacity:.75;font-size:12px}
#ov.ml .imp-use{font-size:12px;opacity:.75}
.imp-desc{margin-top:4px;max-height:40vh;overflow:auto;overflow-wrap:anywhere}.imp-warn{margin-top:6px;font:600 12px sans-serif;color:#a84300}body.dk .imp-warn{color:#ffb070}body.lo .imp-warn{color:#d0603a}
/* Measure (GPS · Tools pane). Buttons are 44px via the #ft rule above. */
#ov.ml #ft .meas{flex:1 0 100%;display:flex;flex-wrap:wrap;align-items:center;gap:8px;border-top:1px solid color-mix(in srgb,var(--ml-fg) 15%,transparent);padding-top:8px}
#ov.ml #ms-tools{display:flex;flex-wrap:wrap;gap:8px}#ov.ml #ms-tools[hidden]{display:none}
#ov.ml #ms-out{flex:1 0 100%;font:14px/1.4 sans-serif}#ov.ml #ms-out:empty{display:none}
#ov.ml #ft .meas button[aria-pressed=true]{background:#a84300;color:#fff;border-color:#a84300}
body.dk #ov.ml #ft .meas button[aria-pressed=true]{background:var(--ml-accent);color:var(--ml-accent-ink);border-color:var(--ml-accent)}
/* Coordinate chip: bottom centre of the map cell. The crosshair marks the map centre while GPS is off. */
#ov .ml-map{position:relative}
.ml-coord{position:absolute;left:56px;right:56px;bottom:0;display:flex;justify-content:center;gap:4px;pointer-events:none}
.ml-coord button{pointer-events:auto;min-height:var(--ml-touch);border-radius:var(--ml-radius);border:1px solid var(--ml-line);background:var(--ml-bg);color:var(--ml-fg);cursor:pointer;box-shadow:0 1px 4px rgb(0 0 0/.12)}
#coord{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:1px;min-width:0;padding:3px 12px;text-align:left;font:700 15px/1.15 ui-monospace,Menlo,Consolas,monospace}
#coord small{font:600 12px/1.1 sans-serif;color:var(--ml-muted);white-space:nowrap}
#coordcp{width:var(--ml-touch);min-width:var(--ml-touch);display:grid;place-items:center;padding:0}
#coordcp.on{background:var(--ml-accent);color:var(--ml-accent-ink)}
#xhair{position:fixed;left:50%;top:50%;width:28px;height:28px;margin:-14px 0 0 -14px;pointer-events:none;z-index:2;color:#111;
  background:linear-gradient(currentColor,currentColor) center/2px 100% no-repeat,linear-gradient(currentColor,currentColor) center/100% 2px no-repeat;filter:drop-shadow(0 0 1px #fff) drop-shadow(0 0 1px #fff)}
#xhair[hidden]{display:none}
body.dk #xhair{color:#fff;filter:drop-shadow(0 0 1px #000) drop-shadow(0 0 1px #000)}
body.lo #xhair{color:#a04030;filter:none}
html.ml-pick .ml-coord,html.ml-pick #xhair{display:none}
#compass-ico{transition:transform .1s linear}
body.sheet #ml-sheet{visibility:hidden}
html.ml-pick #ml-sheet{visibility:hidden;height:72px}
html.ml-pick .ml-sheet-b{display:none}

@media (min-width:900px){
  #ov.ml{
    grid-template-columns:minmax(280px,360px) minmax(0,1fr) auto;
    grid-template-rows:auto auto minmax(0,1fr) auto;
    grid-template-areas:"top top top" "status status status" "sheet map rail" "sheet map fab";
  }
  html.ml-pick #ov.ml{
    grid-template-columns:minmax(0,1fr) auto;
    grid-template-rows:auto auto minmax(28vh,1fr) auto auto;
    grid-template-areas:"top top" "status status" "map rail" "map fab" "sheet sheet";
  }
  .ml{
    grid-template-columns:minmax(280px,360px) minmax(0,1fr) auto;
    grid-template-rows:auto auto minmax(0,1fr) auto;
    grid-template-areas:"top top top" "status status status" "sheet map rail" "sheet map fab";
  }
  .ml-sheet,.ml-sheet[data-tier=peek],.ml-sheet[data-tier=half],.ml-sheet[data-tier=full]{height:auto;max-height:none;align-self:stretch}
  .ml-sheet[data-tier=peek] .ml-sheet-b{display:block}
  html.ml-pick .ml{
    grid-template-columns:minmax(0,1fr) auto;
    grid-template-rows:auto auto minmax(28vh,1fr) auto auto;
    grid-template-areas:"top top" "status status" "map rail" "map fab" "sheet sheet";
  }
  html.ml-pick #ml-sheet{height:72px}
}
@media (max-height:500px) and (max-width:899px){
  .ml-sheet[data-tier=half]{height:min(32vh,280px)}
  .ml-sheet[data-tier=full]{height:min(48vh,420px)}
  .ml-map{min-height:28vh}
}
.ml-sheet .wm-list,.ml-sheet .wm-card{position:static;width:auto;max-width:none;max-height:none;left:auto;right:auto;bottom:auto;top:auto;border:0;box-shadow:none;background:transparent;border-radius:0}
.ml-map .wm-canvas{position:absolute;inset:0}
.maplibregl-ctrl-bottom-right,.maplibregl-ctrl-bottom-left{bottom:calc(var(--ml-sheet,56px) + 16px)}
.maplibregl-ctrl-bottom-right{right:calc(60px + env(safe-area-inset-right))}
#ov.ml #sd{display:block;pointer-events:auto;background:var(--ml-bg);color:var(--ml-fg);border:1px solid var(--ml-line);border-radius:var(--ml-radius);padding:0 8px}
#ov.ml #sd[hidden]{display:none}
#ov.ml #sd>summary{min-height:var(--ml-touch)}

/* Phone: the rail column is gone so the map is full width. Layers sits in the
   bottom-left thumb zone, above the sheet. The other tools stack at the top-right.
   The rail box does not take hits, so the map center stays clear. */
@media (max-width:899px){
  .ml:has(.ml-sheet[data-tier="peek"]){
    grid-template-rows:auto auto minmax(46vh,1fr) auto auto;
  }
  .ml,#ov.ml{
    grid-template-columns:minmax(0,1fr);
    grid-template-areas:"top" "status" "map" "fab" "sheet";
  }
  .ml-rail{
    grid-area:map;position:relative;align-self:stretch;justify-self:stretch;
    display:flex;flex-direction:column;align-items:flex-end;justify-content:flex-start;
    max-height:none;overflow:visible;pointer-events:none;z-index:var(--ml-z-chrome);
  }
  .ml-rail button{position:relative;pointer-events:auto;width:48px;height:48px;min-width:48px;min-height:48px}
  .ml-rail button[data-ml="layers"],.ml-rail button[data-ml="Filter fires"]{position:absolute;left:0;bottom:0;right:auto;top:auto}
  .ml-sheet-h{overflow:visible}
  .ml-tabs{overflow-x:auto;scrollbar-width:none}
  .ml-tabs::-webkit-scrollbar{display:none}
  .ml-tabs button{flex:1 0 auto;white-space:nowrap}
  .maplibregl-ctrl-bottom-right{right:8px;bottom:calc(var(--ml-sheet,56px) + 60px);max-width:calc(100% - 16px)}
  .maplibregl-ctrl-bottom-left{left:8px;bottom:calc(var(--ml-sheet,56px) + 60px)}
}
@media (min-width:900px){
  #ov.ml:has(#ml-sheet[data-tier="peek"]){
    grid-template-columns:minmax(0,1fr) auto;
    grid-template-areas:"top top" "status status" "map rail" "sheet fab";
  }
  #ov.ml:has(#ml-sheet[data-tier="peek"]) .ml-sheet{height:56px;max-height:56px}
  #ov.ml:has(#ml-sheet[data-tier="peek"]) .ml-sheet-b{display:none}
}
@media (hover:hover){
  .ml-rail button:hover{box-shadow:0 2px 8px rgb(0 0 0/.22)}
}

/* Crew pin chrome sits in the parent document, aligned to the same edges. */
.pin-ui.ml{display:block;background:none;padding:0;gap:0}
.pin-ui .ml-fab{position:absolute;right:calc(var(--ml-space) + var(--ml-safe-r));bottom:calc(var(--ml-sheet,56px) + var(--ml-space) + var(--ml-safe-b))}
.pin-ui .pin-sheet{position:absolute;left:calc(var(--ml-space) + var(--ml-safe-l));right:calc(var(--ml-space) + var(--ml-safe-r));bottom:calc(var(--ml-space) + var(--ml-safe-b));height:auto;max-height:min(72vh,640px,calc(100% - 16px));overflow:auto}
/* Moving a pin needs the map, so that sheet stays a short strip at the bottom at every width. */
.pin-ui .pin-sheet.compact{top:auto;height:auto;max-height:min(40vh,calc(100% - 16px))}
@media (min-width:900px){
  .pin-ui .pin-sheet{top:calc(var(--ml-space) + var(--ml-safe-t));bottom:calc(var(--ml-space) + var(--ml-safe-b));left:calc(var(--ml-space) + var(--ml-safe-l));right:auto;width:min(360px,calc(100% - 88px));height:auto;max-height:none}
  .pin-ui .ml-fab{bottom:calc(var(--ml-space) + var(--ml-safe-b))}
}
@media (min-width:900px){.pin-ui .pin-sheet.compact{top:auto;width:min(420px,calc(100% - 88px))}}
