/* Only the selected-filter panel moved into the mobile sheet changes layout. */
@media (max-width:640px) {
  body.map-page #mapSelectionDialog .mobile-menu-shell {
    border-color:#e6e2ed; border-radius:20px 20px 0 0; background:#fff;
  }
  body.map-page #mapSelectionDialog .mobile-menu-header {
    min-height:60px; padding:10px 12px 6px 15px;
    border-color:#e6e2ed; background:#fff;
  }
  body.map-page #mapSelectionDialog .has-menu-content .mobile-menu-header-copy > :is(.mobile-menu-title,.mobile-menu-caption) {
    display:none;
  }
  body.map-page #mapSelectionDialog .mobile-menu-close.outlo-close {
    padding:14px !important;
  }
  body.map-page #mapSelectionDialog .mobile-menu-close.outlo-close::after {
    inset:8px !important;
  }
  body.map-page #mapSelectionDialog #mapFilterPopoverTitle {
    margin:0; color:#211b37; font-size:16px; font-weight:650; line-height:20px;
  }
  body.map-page #mapSelectionDialog .map-selection-filter-count {
    color:#666076; font-size:12px; line-height:18px; white-space:nowrap;
  }
  body.map-page #mapSelectionDialog .mobile-menu-grip {
    left:calc(50% - 15px); width:30px; background:#d6d0e2;
  }
  body.map-page #mapSelectionDialog .mobile-menu-body {
    padding:0 15px max(10px,env(safe-area-inset-bottom)); scrollbar-gutter:stable;
  }
  body.map-page #mapSelectionDialog #mapFilterPopover.mobile-menu-panel {
    position:static; inset:auto; width:100%; max-width:none; max-height:none;
    margin:0; padding:0; border:0; border-radius:0; overflow:visible;
    background:transparent; box-shadow:none; transform:none;
  }
  body.map-page #mapSelectionDialog .map-filter-popover-header { display:none; }
  body.map-page #mapSelectionDialog #mapFilterPopoverChips { gap:0; padding:0; }
  body.map-page #mapSelectionDialog #mapFilterPopoverChips .map-filter-popover-group { padding-block:8px; }
  body.map-page #mapSelectionDialog #mapFilterPopoverChips .map-filter-popover-group + .map-filter-popover-group {
    border-top:1px solid #e6e2ed;
  }
  body.map-page #mapSelectionDialog #mapFilterPopoverChips .map-filter-popover-group-title {
    min-height:0; margin:0 0 5px; padding:0; color:#666076;
    font-size:12px; font-weight:550; line-height:18px;
  }
  body.map-page #mapSelectionDialog #mapFilterPopoverChips .map-filter-popover-group > .map-filter-popover-options {
    flex-flow:row wrap; gap:5px; min-height:0; padding:0;
  }
  body.map-page #mapSelectionDialog #mapSelectionEmpty { margin:10px 0; color:#666076; }
  body.map-page #mapSelectionDialog #mapFilterUndoToast {
    position:sticky; inset:auto; bottom:0; display:flex; gap:7px; align-items:center;
    width:auto; min-width:0; max-width:none; margin:8px 0 0; padding:9px 8px;
    transform:none; opacity:1; pointer-events:auto; box-shadow:none;
    border:1px solid #d8e9dd; border-radius:10px; background:#f2faf4; font-size:12px; line-height:18px;
  }
  body.map-page #mapSelectionDialog #mapFilterUndoToast[hidden] { display:none; }
  body.map-page #mapSelectionDialog #mapFilterUndoToast .toast-icon { display:none; }
  body.map-page #mapSelectionDialog #mapFilterUndoMessage { flex:1; }
}
