@media(max-width:768px){
.active-mobile-map-header{position:fixed;z-index:205000;top:max(10px,env(safe-area-inset-top));left:10px;right:10px;height:58px;display:grid;grid-template-columns:46px minmax(0,1fr) 40px;align-items:center;gap:7px;padding:6px 7px;background:rgba(255,255,255,.94);border:1px solid rgba(255,255,255,.9);border-radius:20px;box-shadow:0 8px 28px rgba(100,37,5,.16);backdrop-filter:blur(20px) saturate(160%);box-sizing:border-box}
.ammh-logo{width:42px;height:42px;display:grid;place-items:center;border-radius:14px}.ammh-logo img{width:46px;height:46px;max-width:none;object-fit:contain;object-position:center}.ammh-search-slot{min-width:0;height:44px}.ammh-search-slot #mobile-search-target{display:flex!important;width:100%!important;height:44px!important;min-width:0!important}.ammh-search-slot #search-box-wrapper{height:44px!important;min-height:44px!important}.ammh-search-slot #search-box-wrapper>div:first-child{height:44px!important;background:#f6f6f6!important;border:1px solid #ededed!important;border-radius:15px!important;overflow:hidden!important}.ammh-search-slot #search-input{height:44px!important;border:0!important;border-radius:15px!important;background:transparent!important;padding:0 78px 0 37px!important;font-size:12px!important;color:#484848!important;box-shadow:none!important}.ammh-search-slot .search-icon{left:12px!important;width:17px!important;height:17px!important;color:#787878!important}.ammh-search-slot #search-box-wrapper>div:first-child>div:last-child{right:4px!important;gap:2px!important;height:34px!important}.ammh-search-slot #btn-near-me,.ammh-search-slot #btn-toggle-filters{width:32px!important;min-width:32px!important;height:32px!important;border-radius:11px!important;background:#fff!important;color:#e9560c!important;border:1px solid #eaeaea!important;box-shadow:0 2px 7px rgba(111,41,6,.07)!important}.ammh-search-slot .btn-label-desktop{display:none!important}.ammh-more{width:40px;height:40px;display:grid;place-items:center;padding:0;border:0;border-radius:13px;background:#f6f6f6;color:#686868}.ammh-more .material-symbols-rounded{font-size:23px}.ammh-menu{position:absolute;display:none;top:65px;right:0;width:188px;padding:7px;background:rgba(255,255,255,.97);border:1px solid #eaeaea;border-radius:17px;box-shadow:0 16px 38px rgba(50,50,50,.2);backdrop-filter:blur(20px)}.ammh-menu.open{display:flex;flex-direction:column;animation:ammhIn .16s ease}.ammh-menu button{height:42px;display:flex;align-items:center;gap:10px;padding:0 11px;border:0;border-radius:11px;background:transparent;color:#682605;font-family:var(--font-firago);font-size:12px;text-align:left}.ammh-menu button:active{background:#f4f4f4}.ammh-menu .material-symbols-rounded{font-size:19px;color:#757575}@keyframes ammhIn{from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:none}}.apple-desktop-rail .apple-rail-top{display:none!important}.desktop-left-column{padding-top:76px!important}#drawer-main-header{display:none!important}.map-floating-filter-bar{top:78px!important}
body.dark-theme .active-mobile-map-header{background:rgba(33,33,33,.95);border-color:rgba(255,255,255,.1)}body.dark-theme .ammh-search-slot #search-box-wrapper>div:first-child,body.dark-theme .ammh-more{background:#313131!important;border-color:#414141!important}body.dark-theme .ammh-search-slot #search-input{color:#f4f4f4!important}body.dark-theme .ammh-search-slot #btn-near-me,body.dark-theme .ammh-search-slot #btn-toggle-filters{background:#3c3c3c!important;border-color:#4b4b4b!important;color:#f8a277!important}body.dark-theme .ammh-menu{background:rgba(33,33,33,.98);border-color:#454545}body.dark-theme .ammh-menu button{color:#f2f2f2}}
@media(min-width:769px){.active-mobile-map-header{display:none!important}}
@media(max-width:768px){
.mobile-quick-controls{position:fixed;z-index:204900;top:76px;left:10px;right:10px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;align-items:start}
.mobile-quick-controls .apple-rail-volunteer-box,.mobile-quick-controls #site-description-accordion{display:block!important;width:100%!important;margin:0!important;min-width:0!important;background:rgba(255,255,255,.94)!important;border:1px solid rgba(255,255,255,.92)!important;border-radius:17px!important;box-shadow:0 7px 22px rgba(100,37,5,.13)!important;backdrop-filter:blur(18px)!important;overflow:visible!important}
.mobile-quick-controls .apple-rail-vol-toggle-card{height:48px!important;display:grid!important;grid-template-columns:34px minmax(0,1fr) 18px!important;align-items:center!important;gap:7px!important;padding:5px 9px!important;margin:0!important;border:0!important;border-radius:17px!important;background:transparent!important;box-sizing:border-box!important;cursor:pointer!important}
.mobile-quick-controls .mqc-vol-icon{width:34px;height:34px;display:grid;place-items:center;border-radius:50%;background:#18b66d;color:#fff;font-size:21px;box-shadow:0 4px 11px rgba(14,150,86,.22)}
.mobile-quick-controls .apple-rail-vol-toggle-left{display:block!important;min-width:0!important}.mobile-quick-controls .apple-rail-vol-indicator{display:none!important}.mobile-quick-controls .apple-rail-vol-label{display:block!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;color:#672605!important;font-size:10px!important;font-weight:700!important}
.mobile-quick-controls .apple-rail-switch{position:absolute!important;opacity:0!important;pointer-events:none!important}.mobile-quick-controls .mqc-arrow{font-size:18px;color:#777777}
.mobile-quick-controls #site-description-accordion>button{height:48px!important;padding:5px 12px!important;border-radius:17px!important;background:transparent!important;color:#672605!important;font-size:10px!important;font-weight:700!important;white-space:nowrap!important}.mobile-quick-controls #site-description-accordion>button:before{content:'menu_book';font-family:'Material Symbols Rounded';width:34px;height:34px;display:grid;place-items:center;flex:0 0 34px;border-radius:50%;background:#f2f2f2;color:#e9560c;font-size:20px;font-weight:400}.mobile-quick-controls #txt-accordion-title{overflow:hidden;text-overflow:ellipsis}.mobile-quick-controls #accordion-arrow{margin-left:auto!important}
.mobile-quick-controls #site-description-content{position:absolute!important;top:56px!important;left:0!important;right:0!important;width:100%!important;background:rgba(255,255,255,.98)!important;border-radius:17px!important;box-shadow:0 12px 30px rgba(51,51,51,.18)!important}
.map-floating-filter-bar{top:134px!important}.desktop-left-column{padding-top:132px!important}
body.dark-theme .mobile-quick-controls .apple-rail-volunteer-box,body.dark-theme .mobile-quick-controls #site-description-accordion,body.dark-theme .mobile-quick-controls #site-description-content{background:rgba(33,33,33,.96)!important;border-color:#454545!important}body.dark-theme .mobile-quick-controls .apple-rail-vol-label,body.dark-theme .mobile-quick-controls #site-description-accordion>button{color:#f2f2f2!important}
}

@media(max-width:768px){
.mobile-quick-controls{grid-template-columns:minmax(0,1.06fr) minmax(0,.94fr)!important;gap:7px!important}
.mobile-quick-controls .apple-rail-volunteer-box,.mobile-quick-controls #site-description-accordion{min-width:0!important;overflow:visible!important}
.mobile-quick-controls .apple-rail-vol-toggle-card{position:relative!important;border:1px solid transparent!important}
.mobile-quick-controls .apple-rail-vol-toggle-card.is-active,.mobile-quick-controls .apple-rail-vol-toggle-card:has(#rail-vol-toggle-checkbox:checked){background:#e7f8ef!important;border-color:#8cddb5!important;box-shadow:inset 0 0 0 1px rgba(21,174,102,.06)!important}
.mobile-quick-controls .apple-rail-vol-toggle-card.is-active .apple-rail-vol-label,.mobile-quick-controls .apple-rail-vol-toggle-card:has(#rail-vol-toggle-checkbox:checked) .apple-rail-vol-label{color:#087c49!important}
.mobile-quick-controls .apple-rail-vol-toggle-card.is-active .mqc-arrow,.mobile-quick-controls .apple-rail-vol-toggle-card:has(#rail-vol-toggle-checkbox:checked) .mqc-arrow{color:#0a9156!important}
.mobile-quick-controls #site-description-accordion{overflow:hidden!important}
.mobile-quick-controls #site-description-accordion>button{display:grid!important;grid-template-columns:30px minmax(0,1fr) 14px!important;gap:6px!important;padding:5px 8px!important;text-align:left!important;min-width:0!important}
.mobile-quick-controls #site-description-accordion>button:before{content:'i'!important;font-family:Arial,sans-serif!important;font-size:16px!important;font-weight:700!important;width:30px!important;height:30px!important;display:grid!important;place-items:center!important;flex:none!important;border-radius:50%!important;background:#f2f2f2!important;color:#e9560c!important}
.mobile-quick-controls #txt-accordion-title{display:block!important;min-width:0!important;width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font-size:9px!important;line-height:1.2!important}
.mobile-quick-controls #accordion-arrow{display:block!important;width:14px!important;margin:0!important;font-size:9px!important;text-align:center!important}
body.dark-theme .mobile-quick-controls .apple-rail-vol-toggle-card.is-active,body.dark-theme .mobile-quick-controls .apple-rail-vol-toggle-card:has(#rail-vol-toggle-checkbox:checked){background:rgba(20,164,96,.2)!important;border-color:rgba(67,210,139,.5)!important}
}
@media(max-width:768px){
.apple-map-mode-pill{display:none!important}
.mobile-quick-controls .apple-rail-vol-toggle-card{grid-template-columns:34px minmax(0,1fr) 38px!important}
.mobile-quick-controls .mqc-arrow{display:none!important}
.mobile-quick-controls .apple-rail-switch{position:relative!important;display:block!important;width:38px!important;height:22px!important;opacity:1!important;pointer-events:auto!important;right:auto!important;top:auto!important}
.mobile-quick-controls .apple-rail-switch input{position:absolute!important;opacity:0!important;width:1px!important;height:1px!important}
.mobile-quick-controls .apple-rail-switch-slider{position:absolute!important;inset:0!important;border-radius:999px!important;background:#d4d4d4!important;box-shadow:inset 0 1px 3px rgba(46,46,46,.15)!important;transition:.22s ease!important}
.mobile-quick-controls .apple-rail-switch-slider:before{content:''!important;position:absolute!important;width:18px!important;height:18px!important;left:2px!important;top:2px!important;border-radius:50%!important;background:#fff!important;box-shadow:0 2px 6px rgba(43,43,43,.24)!important;transition:transform .22s ease!important}
.mobile-quick-controls .apple-rail-switch input:checked+.apple-rail-switch-slider{background:#18b66d!important}
.mobile-quick-controls .apple-rail-switch input:checked+.apple-rail-switch-slider:before{transform:translateX(16px)!important}
.mobile-quick-controls .mqc-vol-icon{background:#f04f5b!important;box-shadow:0 4px 11px rgba(218,54,69,.22)!important}
body.dark-theme .mobile-quick-controls .apple-rail-switch-slider{background:#606060!important}
}
@media(max-width:768px){
.mobile-quick-controls,.apple-map-mode-pill,.map-floating-filter-bar,.apple-rail-volunteer-box,#site-description-accordion{display:none!important}
.mobile-quick-controls-v2{position:fixed;z-index:204900;top:76px;left:10px;right:10px;display:grid;grid-template-columns:1fr 1fr;gap:7px}
.mobile-quick-controls-v2>button{height:48px;min-width:0;display:grid;grid-template-columns:32px minmax(0,1fr) auto;align-items:center;gap:7px;padding:5px 9px;border:1px solid rgba(255,255,255,.92);border-radius:17px;background:rgba(255,255,255,.95);box-shadow:0 7px 22px rgba(100,37,5,.13);backdrop-filter:blur(18px);color:#672605;font-family:var(--font-firago)}
.mqc2-icon{width:32px;height:32px;display:grid;place-items:center;border-radius:50%;font-size:18px}.mqc2-icon.heart{background:#fff0f1;color:#ed4858}.mqc2-icon.info{background:#f3f3f3;color:#e9560c;font:bold 16px Arial}
.mqc2-label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left;font-size:9px;font-weight:700}.mqc2-switch{position:relative;width:36px;height:21px;border-radius:999px;background:#d4d4d4;box-shadow:inset 0 1px 3px rgba(46,46,46,.15);transition:.22s}.mqc2-switch i{position:absolute;width:17px;height:17px;left:2px;top:2px;border-radius:50%;background:#fff;box-shadow:0 2px 6px rgba(43,43,43,.24);transition:.22s}.mqc2-vol.active{background:#e8f8ef;border-color:#8cddb5}.mqc2-vol.active .mqc2-label{color:#087c49}.mqc2-vol.active .mqc2-switch{background:#18b66d}.mqc2-vol.active .mqc2-switch i{transform:translateX(15px)}.mqc2-chevron{font-size:17px;color:#777777}.mqc2-guide.active{border-color:var(--palette-line,#e7e7e4);background:#f7f7f7}
.mqc2-guide-panel{display:none;position:absolute;top:56px;left:0;right:0;padding:16px 42px 15px 15px;border:1px solid #e9e9e9;border-radius:18px;background:rgba(255,255,255,.98);box-shadow:0 14px 34px rgba(51,51,51,.2);color:#6f2906}.mqc2-guide-panel.open{display:block;animation:mqc2in .18s ease}.mqc2-guide-panel strong{font-size:13px}.mqc2-guide-panel p{margin:8px 0 12px;font-size:11px;line-height:1.55;color:#747474}.mqc2-panel-close{position:absolute;right:9px;top:9px;width:30px;height:30px;border:0;border-radius:10px;background:#f4f4f4;color:#767676}.mqc2-panel-close span{font-size:18px}.mqc2-learn{height:34px;padding:0 14px;border:0;border-radius:11px;background:#f3651d;color:#fff;font:600 10px var(--font-firago)}@keyframes mqc2in{from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:none}}
.desktop-left-column{padding-top:132px!important}
body.dark-theme .mobile-quick-controls-v2>button,body.dark-theme .mqc2-guide-panel{background:rgba(33,33,33,.97);border-color:#464646;color:#f2f2f2}body.dark-theme .mqc2-vol.active{background:rgba(18,151,83,.24);border-color:#358d62}body.dark-theme .mqc2-guide-panel p{color:#bbbbbb}
}
@media(max-width:768px){
#apple-map-mode-pill-container,.apple-map-mode-pill-container{display:none!important;visibility:hidden!important;opacity:0!important;pointer-events:none!important;width:0!important;height:0!important;margin:0!important;padding:0!important}
.apple-map-mode-pill,.apple-rail-volunteer-box,#site-description-accordion,.mobile-quick-controls{display:none!important;visibility:hidden!important;pointer-events:none!important}
}
@media(max-width:768px){
#btn-volunteer-toggle,#search-volunteer-flex-row{display:none!important;visibility:hidden!important;opacity:0!important;pointer-events:none!important;width:0!important;height:0!important;min-width:0!important;min-height:0!important;margin:0!important;padding:0!important;overflow:hidden!important}
.active-mobile-map-header #mobile-search-target,.active-mobile-map-header #search-box-wrapper{display:flex!important;visibility:visible!important;opacity:1!important;width:100%!important;height:44px!important;min-width:0!important;pointer-events:auto!important;overflow:visible!important}
}
@media(max-width:768px){
#drawer-view-places .search-filter-section,.search-filter-section{background:transparent!important;background-color:transparent!important;border:0!important;outline:0!important;box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;padding:0!important;margin:0!important;min-height:0!important}
#drawer-view-places .search-filter-section:before,#drawer-view-places .search-filter-section:after,.search-filter-section:before,.search-filter-section:after{display:none!important;content:none!important}
}

/* Compact mobile about sheet — 2026-09-10 */
@media (max-width: 768px) {
body > #map-parking-toggle{display:none!important}
  #dock-modal-about {
    align-items: flex-end !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    padding: 16px 12px calc(104px + env(safe-area-inset-bottom)) !important;
    background: rgba(23,23,23, .26) !important;
    -webkit-backdrop-filter: blur(5px) !important;
    backdrop-filter: blur(5px) !important;
  }

  #dock-modal-about.active {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  #dock-modal-about > .modal-content {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 540px !important;
    height: auto !important;
    max-height: min(54dvh, 460px) !important;
    margin: 0 !important;
    overflow: hidden !important;
  }

  #dock-modal-about > .modal-content::before {
    content: "";
    position: absolute;
    top: 9px;
    left: 50%;
    width: 38px;
    height: 4px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--text-light) 42%, transparent);
    transform: translateX(-50%);
  }

  #dock-modal-about .modal-header {
    flex: 0 0 auto !important;
    padding-top: 7px !important;
    padding-bottom: 12px !important;
  }

  #dock-modal-about .modal-title {
    padding-right: 48px !important;
    font-size: 1.05rem !important;
    line-height: 1.35 !important;
  }

  #dock-modal-about .modal-close-btn {
    display: grid !important;
    place-items: center !important;
    width: 42px !important;
    height: 42px !important;
    margin: -5px -7px -5px 0 !important;
    padding: 0 !important;
    border-radius: 50% !important;
    background: rgba(162,162,162, .14) !important;
    font-size: 1.55rem !important;
  }

  #dock-modal-about .modal-body {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 16px 2px 4px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    -webkit-overflow-scrolling: touch !important;
    font-size: .91rem !important;
    line-height: 1.62 !important;
    scrollbar-width: thin;
  }
}

/* Unified mobile window workspace — 2026-09-11 */
@media (max-width: 768px) {
  :root {
    --mobile-shell-gap: 7px;
    --mobile-shell-window-top: 130px;
    --mobile-shell-window-bottom: 81px;
  }

  .mobile-quick-controls-v2 {
    top: calc(max(10px, env(safe-area-inset-top, 0px)) + 65px) !important;
  }

  /* Every standard mobile overlay occupies the same space between quick controls and dock. */
  .scanner-modal-overlay:not(#ar-modal):not(#chat-lightbox-modal),
  #add-place-modal.modal-overlay,
  #review-modal.modal-overlay,
  #dock-modal-about.modal-overlay,
  #dock-modal-faq.modal-overlay,
  #dock-modal-contact.modal-overlay,
  #modal-share-route.scanner-modal-overlay {
    position: fixed !important;
    top: var(--mobile-shell-window-top) !important;
    right: 0 !important;
    bottom: var(--mobile-shell-window-bottom) !important;
    left: 0 !important;
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    box-sizing: border-box !important;
    padding: 0 10px !important;
    align-items: stretch !important;
    justify-content: center !important;
    overflow: hidden !important;
  }

  .scanner-modal-overlay:not(#ar-modal):not(#chat-lightbox-modal) > .scanner-modal-content,
  #auth-modal > .scanner-modal-content,
  #cabinet-modal > .scanner-modal-content,
  #chat-modal > .scanner-modal-content,
  #chat-list-modal > .scanner-modal-content,
  #scanner-modal > .scanner-modal-content,
  #barrier-report-modal > .scanner-modal-content,
  #voice-describer-modal > .scanner-modal-content,
  #companion-request-modal > .scanner-modal-content,
  #volunteer-accept-modal > .scanner-modal-content,
  #public-profile-modal > .scanner-modal-content,
  #google-role-modal > .scanner-modal-content,
  #volunteer-review-modal > .scanner-modal-content,
  #reviews-list-modal > .scanner-modal-content,
  #terms-modal > .scanner-modal-content,
  #add-place-modal > .modal-content,
  #review-modal > .modal-content,
  #dock-modal-about > .modal-content,
  #dock-modal-faq > .modal-content,
  #dock-modal-contact > .modal-content,
  #modal-share-route > .modal-content {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    width: 100% !important;
    max-width: 520px !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
  }

  /* The catalogue uses the same bounds and scrolls only its cards. */
  #sidebar:not(.maps-hidden),
  .desktop-left-column #sidebar:not(.maps-hidden) {
    position: fixed !important;
    top: var(--mobile-shell-window-top) !important;
    right: 10px !important;
    bottom: var(--mobile-shell-window-bottom) !important;
    left: 10px !important;
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    max-width: 520px !important;
    max-height: none !important;
    margin: 0 auto !important;
    padding-top: 0 !important;
    border-radius: 24px !important;
    overflow: hidden !important;
  }

  #sidebar:not(.maps-hidden) .places-list {
    flex: 1 1 0% !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow-y: auto !important;
    padding-bottom: 20px !important;
    -webkit-overflow-scrolling: touch !important;
  }

  /* Assistant and route panels follow the same visual grid. */
  #ai-chat-panel,
  #route-builder-panel {
    position: fixed !important;
    top: var(--mobile-shell-window-top) !important;
    right: 10px !important;
    bottom: var(--mobile-shell-window-bottom) !important;
    left: 10px !important;
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    max-width: 520px !important;
    max-height: none !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
  }

  #dock-modal-about .modal-body,
  #dock-modal-faq .modal-body,
  #dock-modal-contact .modal-body {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    -webkit-overflow-scrolling: touch !important;
  }

  /* Prevent iOS Safari from zooming the page when a form field receives focus. */
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="search"],
  input[type="tel"],
  input[type="url"],
  input[type="number"],
  input[type="date"],
  input[type="time"],
  input[type="datetime-local"],
  input[type="month"],
  input:not([type]),
  textarea,
  select,
  [contenteditable="true"] {
    font-size: 16px !important;
    touch-action: manipulation;
  }

}

/* Volunteer missions use the existing cabinet section in a separate mobile window. */
@media (max-width: 768px) {
  #cabinet-modal.mobile-missions-separated .cabinet-main-tabs-bar { display: none !important; }
  #mobile-missions-modal > .mobile-missions-panel {
    display: flex !important;
    flex-direction: column !important;
    padding: 16px !important;
    gap: 14px;
    overflow: hidden !important;
    font-family: var(--font-firago), sans-serif;
  }
  #mobile-missions-modal .mobile-missions-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex: 0 0 auto;
  }
  #mobile-missions-title { margin: 0; color: var(--heading, #2a2a2a); font-size: 20px; font-weight: 700; }
  #mobile-missions-modal .mobile-missions-close {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border: 1px solid #e7e7e7;
    border-radius: 50%;
    background: #fafafa;
    color: #545454;
    cursor: pointer;
  }
  #mobile-missions-modal .mobile-missions-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }
  #mobile-missions-modal .cabinet-subfilter-nav {
    display: flex !important;
    gap: 7px;
    overflow-x: auto;
    margin-bottom: 12px;
    padding-bottom: 5px;
  }
  #mobile-missions-modal .cabinet-subfilter-nav button { flex: 0 0 auto; min-height: 38px; white-space: nowrap; }
  #mobile-missions-modal button:focus-visible { outline: 2px solid var(--palette-ink,#292928); outline-offset: 2px; }
  body.dark-theme #mobile-missions-modal .mobile-missions-close { background: #25282d; border-color: #404040; color: #e7e7e7; }
}

/* Reversible mobile dock visual refresh — 2026-09-11 */
@media (max-width: 768px) {
  .mobile-nav-bar {
    left: 10px !important;
    right: 10px !important;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px)) !important;
    width: calc(100% - 20px) !important;
    height: 68px !important;
    padding: 5px 6px 6px !important;
    gap: 2px !important;
    justify-content: space-between !important;
    background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(251,251,251,.82)) !important;
    -webkit-backdrop-filter: blur(28px) saturate(175%) !important;
    backdrop-filter: blur(28px) saturate(175%) !important;
    border: 1px solid rgba(255,255,255,.88) !important;
    border-radius: 24px !important;
    box-shadow: 0 12px 30px rgba(23,23,23,.14), 0 2px 8px rgba(23,23,23,.06), inset 0 1px 0 rgba(255,255,255,.92) !important;
  }

  .mobile-nav-item {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    height: 54px !important;
    margin: 0 !important;
    padding: 4px 3px 3px !important;
    gap: 2px !important;
    border-radius: 16px !important;
    color: #111111 !important;
    transition: transform .16s ease, color .18s ease, background-color .18s ease, box-shadow .18s ease !important;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-nav-item.active {
    color: #111111 !important;
    background: linear-gradient(180deg, rgba(245,119,57,.14), rgba(218,80,11,.08)) !important;
    box-shadow: inset 0 0 0 1px rgba(218,80,11,.08), 0 3px 9px rgba(218,80,11,.08) !important;
  }

  .mobile-nav-item.active::after {
    display: none !important;
  }

  .mobile-nav-item:active {
    transform: scale(.94) !important;
  }

  .mobile-nav-icon {
    width: 30px !important;
    height: 27px !important;
    margin: 0 !important;
    color: inherit !important;
  }

  .mobile-nav-icon svg {
    width: 22px !important;
    height: 22px !important;
    stroke-width: 2.25 !important;
  }

  .mobile-nav-icon img {
    width: 22px !important;
    height: 22px !important;
    object-fit: contain !important;
  }

  .mobile-nav-label {
    max-width: 100% !important;
    overflow: hidden !important;
    color: inherit !important;
    padding-bottom: 2px !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    line-height: 1.45 !important;
    letter-spacing: -.12px !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  #mobile-auth-profile-area .mobile-nav-icon img {
    width: 24px !important;
    height: 24px !important;
    object-fit: cover !important;
    border: 2px solid var(--palette-line,#e7e7e4) !important;
    border-radius: 50% !important;
  }

  .mobile-nav-bar .notification-dot {
    top: -3px !important;
    right: -5px !important;
    width: 8px !important;
    height: 8px !important;
    border: 2px solid #fff !important;
    box-shadow: 0 2px 5px rgba(239,68,68,.28) !important;
  }

  body.dark-theme .mobile-nav-bar {
    background: linear-gradient(180deg, rgba(41,41,41,.93), rgba(23,23,23,.88)) !important;
    border-color: rgba(255,255,255,.14) !important;
    box-shadow: 0 14px 34px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.08) !important;
  }

  body.dark-theme .mobile-nav-item {
    color: #b3b3b3 !important;
  }

  body.dark-theme .mobile-nav-item.active {
    color: #f79a6b !important;
    background: linear-gradient(180deg, rgba(247,154,107,.18), rgba(245,119,57,.10)) !important;
    box-shadow: inset 0 0 0 1px rgba(250,187,155,.10) !important;
  }

  body.dark-theme .mobile-nav-bar .notification-dot {
    border-color: #292929 !important;
  }
}

@media (max-width: 350px) {
  .mobile-nav-bar {
    left: 7px !important;
    right: 7px !important;
    width: calc(100% - 14px) !important;
    padding-right: 3px !important;
    padding-left: 3px !important;
  }

  .mobile-nav-label {
    font-size: 9px !important;
  }
}

/* Sliding dock selection motion — 2026-09-11 */
@media (max-width: 768px) {
  .mobile-nav-bar {
    --dock-pill-left: 6px;
    --dock-pill-width: calc((100% - 12px) / 5);
    isolation: isolate !important;
  }

  .mobile-nav-bar::before {
    content: '' !important;
    position: absolute !important;
    z-index: 0 !important;
    top: 5px !important;
    left: var(--dock-pill-left) !important;
    width: var(--dock-pill-width) !important;
    height: 54px !important;
    border: 0 !important;
    border-radius: 17px !important;
    outline: 0 !important;
    background: linear-gradient(180deg, rgba(245,119,57,.15), rgba(218,80,11,.075)) !important;
    box-shadow: 0 5px 13px rgba(218,80,11,.09) !important;
    transition:
      left .36s cubic-bezier(.2,.82,.2,1),
      width .36s cubic-bezier(.2,.82,.2,1),
      opacity .2s ease,
      background-color .2s ease !important;
    pointer-events: none !important;
  }

  .mobile-nav-item {
    z-index: 1 !important;
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .mobile-nav-item.active,
  .mobile-nav-item.dock-visual-active {
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #111111 !important;
  }

  .mobile-nav-item:focus,
  .mobile-nav-item:focus-visible {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
  }

  .mobile-nav-item .mobile-nav-icon,
  .mobile-nav-item .mobile-nav-label {
    transition: color .24s ease, transform .32s cubic-bezier(.2,.82,.2,1), opacity .2s ease !important;
  }

  .mobile-nav-item.dock-visual-active .mobile-nav-icon {
    transform: translateY(-1px) scale(1.05) !important;
  }

  .mobile-nav-item.dock-visual-active .mobile-nav-label {
    font-weight: 700 !important;
  }

  body.dark-theme .mobile-nav-bar::before {
    border: 0 !important;
    outline: 0 !important;
    background: linear-gradient(180deg, rgba(247,154,107,.18), rgba(245,119,57,.09)) !important;
    box-shadow: 0 5px 14px rgba(218,80,11,.14) !important;
  }

  body.dark-theme .mobile-nav-item.active,
  body.dark-theme .mobile-nav-item.dock-visual-active {
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #f79a6b !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-nav-bar::before,
  .mobile-nav-item .mobile-nav-icon,
  .mobile-nav-item .mobile-nav-label {
    transition-duration: 0s !important;
  }
}

/* Mobile Saved standalone window — 2026-09-12 */
@media (max-width: 768px) {
 .desktop-left-column #drawer-view-saved.mobile-dock-window-open,.desktop-left-column #drawer-view-companion.mobile-dock-window-open,.desktop-left-column #drawer-view-navigator.mobile-dock-window-open{position:fixed!important;z-index:204700!important;top:var(--mobile-shell-window-top)!important;right:10px!important;bottom:var(--mobile-shell-window-bottom)!important;left:10px!important;display:flex!important;flex-direction:column!important;width:auto!important;height:auto!important;min-height:0!important;max-width:520px!important;max-height:none!important;margin:0 auto!important;overflow:hidden!important;border:1px solid rgba(231,231,231,.92)!important;border-radius:24px!important;background:rgba(255,255,255,.98)!important;box-shadow:0 16px 42px rgba(23,23,23,.18)!important;-webkit-backdrop-filter:blur(22px)!important;backdrop-filter:blur(22px)!important}
 #drawer-view-saved.mobile-dock-window-open .drawer-view-scroll,#drawer-view-companion.mobile-dock-window-open .drawer-view-scroll,#drawer-view-navigator.mobile-dock-window-open .drawer-view-scroll{display:block!important;flex:1 1 auto!important;min-height:0!important;padding:10px 8px 20px!important;overflow-x:hidden!important;overflow-y:auto!important;-webkit-overflow-scrolling:touch!important}
 body.dark-theme .desktop-left-column #drawer-view-saved.mobile-dock-window-open,body.dark-theme .desktop-left-column #drawer-view-companion.mobile-dock-window-open,body.dark-theme .desktop-left-column #drawer-view-navigator.mobile-dock-window-open{border-color:rgba(84,84,84,.72)!important;background:rgba(30,30,30,.98)!important;box-shadow:0 18px 46px rgba(0,0,0,.42)!important}
}

.route-mobile-header{display:none}
@media (max-width:768px){
  #drawer-view-navigator.mobile-dock-window-open .route-mobile-header{display:flex;flex:none;align-items:center;gap:10px;min-height:60px;padding:8px 12px 8px 18px;border-bottom:1px solid #f0f0f0;box-sizing:border-box;color:#1c1c1c;font-family:var(--font-firago)}
  #drawer-view-navigator .route-mobile-header>.material-symbols-rounded{font-size:22px;color:#da500b}
  #drawer-view-navigator .route-mobile-header strong{min-width:0;flex:1;font-size:14px;font-weight:700;line-height:1.3}
  #drawer-view-navigator .route-mobile-close{display:grid;place-items:center;flex:none;width:38px;height:38px;padding:0;border:1px solid #e7e7e7;border-radius:50%;background:#fafafa;color:#545454;cursor:pointer}
  #drawer-view-navigator .route-mobile-close:focus-visible{outline:2px solid var(--palette-ink,#292928);outline-offset:2px}
  #drawer-view-navigator.mobile-dock-window-open>.drawer-view-scroll{padding:16px 14px 24px!important}
  #drawer-view-navigator .drawer-nav-mode-selector{gap:4px;padding:4px;margin-bottom:18px;border-radius:15px;background:#f4f4f4}
  #drawer-view-navigator .drawer-nav-mode-btn{min-width:0;min-height:52px;flex-direction:column;gap:3px;padding:5px 3px;border-radius:12px;font-size:10px;line-height:1.15;text-align:center;white-space:normal}
  #drawer-view-navigator .drawer-nav-mode-btn.active{background:#1c1c1c;color:#fff;box-shadow:0 4px 10px rgba(28,28,28,.15)}
  #drawer-view-navigator .drawer-nav-card{padding:0;margin-bottom:14px;border:0;border-radius:0;background:transparent;box-shadow:none}
  #drawer-view-navigator .drawer-nav-stops-wrapper{gap:9px}
  #drawer-view-navigator .drawer-nav-stop-row{min-width:0;gap:10px}
  #drawer-view-navigator .drawer-nav-input-wrap{min-width:0;min-height:50px;padding:0 5px 0 10px;border:1px solid transparent;border-radius:14px;background:#fafafa;box-shadow:none;box-sizing:border-box}
  #drawer-view-navigator .drawer-nav-input-wrap:focus-within{border-color:var(--palette-line,#e7e7e4);background:#fff;box-shadow:0 0 0 3px rgba(218,80,11,.12)}
  #drawer-view-navigator .drawer-nav-input{min-width:0;width:100%;height:48px;padding:0 4px;border:0;background:transparent;color:#242424;font-size:13px;line-height:24px;text-align:left;box-sizing:border-box}
  #drawer-view-navigator .drawer-nav-input::placeholder{color:#8e8e8e;opacity:1}
  #drawer-view-navigator .drawer-nav-btn-icon,#drawer-view-navigator .drawer-nav-btn-clear{flex:none;width:34px;height:34px;border-radius:10px}
  #drawer-view-navigator .drawer-nav-add-stop-wrap{margin-top:14px}
  #drawer-view-navigator .drawer-nav-add-stop-btn{justify-content:center;min-height:42px;width:100%;border:1px solid #e7e7e7;border-radius:13px;background:#fafafa;color:#5f5f5f}
  body.dark-theme #drawer-view-navigator .route-mobile-header{border-color:#4b4b4b;color:#f6f6f6}
  body.dark-theme #drawer-view-navigator .route-mobile-close,body.dark-theme #drawer-view-navigator .drawer-nav-add-stop-btn{border-color:#4b4b4b;background:#2c2c2c;color:#fddfd1}
  body.dark-theme #drawer-view-navigator .drawer-nav-mode-selector{background:#2c2c2c}
  body.dark-theme #drawer-view-navigator .drawer-nav-mode-btn.active{background:#da500b;color:#fff}
  body.dark-theme #drawer-view-navigator .drawer-nav-card{background:transparent}
  body.dark-theme #drawer-view-navigator .drawer-nav-input-wrap{border-color:transparent;background:#2c2c2c}
  body.dark-theme #drawer-view-navigator .drawer-nav-input-wrap:focus-within{border-color:var(--palette-line,#e7e7e4);background:#353535}
}

/* mobile-quick-controls-borderless */
.mobile-quick-controls-v2>button,
.mobile-quick-controls-v2>button:hover,
.mobile-quick-controls-v2>button:focus,
.mobile-quick-controls-v2>button:active,
.mobile-quick-controls-v2 .mqc2-vol.active,
.mobile-quick-controls-v2 .mqc2-guide.active { border: 0 !important; border-color: transparent !important; }
.mobile-quick-controls-v2 .mqc2-label { font-size: 11px !important; }
body.dark-theme .mobile-quick-controls-v2>button { border: 0 !important; border-color: transparent !important; }

@media (max-width:768px){
  .mobile-quick-controls-v2{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .mobile-quick-controls-v2 .mqc2-tools{height:48px;min-width:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2px;padding:3px;border:1px solid rgba(255,255,255,.94);border-radius:17px;background:rgba(255,255,255,.94);box-shadow:0 7px 22px rgba(100,37,5,.13);backdrop-filter:blur(18px);box-sizing:border-box}
  .mobile-quick-controls-v2 .mqc2-tools>button{position:relative;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;padding:1px;border:0;border-radius:13px;background:transparent;color:#672605;font-family:var(--font-firago);cursor:pointer;-webkit-tap-highlight-color:transparent;transition:background .18s ease,color .18s ease}
  .mobile-quick-controls-v2 .mqc2-tools>button svg{display:block;width:24px;height:24px;padding:0;flex:none;background:transparent;color:#525252;box-sizing:border-box;transition:color .18s ease,transform .18s ease}
  .mobile-quick-controls-v2 .mqc2-tools>button .mqc2-label{position:absolute!important;width:1px!important;height:1px!important;min-height:0!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important}
  .mobile-quick-controls-v2 .mqc2-tools>button.active{background:transparent;color:#da500b}
  .mobile-quick-controls-v2 .mqc2-tools>button.active svg{background:transparent;color:#da500b;transform:scale(1.08)}
  .mobile-quick-controls-v2 .mqc2-tools>button:focus-visible{outline:2px solid var(--palette-ink,#292928);outline-offset:-3px}
  .mobile-quick-controls-v2 .mqc2-guide .mqc2-chevron{display:none}
  .mqc2-scanner-panel{display:none;position:absolute;top:56px;left:0;right:0;padding:16px 15px 14px;border:1px solid #e9e9e9;border-radius:18px;background:rgba(255,255,255,.98);box-shadow:0 14px 34px rgba(51,51,51,.2);color:#6f2906}
  .mqc2-scanner-panel.open{display:grid;gap:7px;animation:mqc2in .18s ease}
  .mqc2-scanner-panel strong{font-size:13px;margin-bottom:4px}
  .mqc2-scanner-panel>button[data-scanner]{display:flex;align-items:center;gap:10px;width:100%;min-height:42px;padding:8px 10px;border:0;border-radius:11px;background:#f6f6f6;color:#6f2906;text-align:left;font:600 12px var(--font-firago);cursor:pointer}
  .mqc2-scanner-panel>button[data-scanner] .material-symbols-rounded{font-size:20px;color:#da500b}
  .mqc2-scanner-close{position:absolute;right:9px;top:9px;width:30px;height:30px;border:0;border-radius:10px;background:#f4f4f4;color:#767676}
  .mqc2-scanner-close .material-symbols-rounded{font-size:18px}
  .mobile-nav-bar{grid-template-columns:repeat(5,minmax(0,1fr))!important;--dock-pill-width:calc((100% - 12px)/5)}
  body.mobile-requester-missions .mobile-nav-bar{grid-template-columns:repeat(6,minmax(0,1fr))!important;--dock-pill-width:calc((100% - 14px)/6)}
  body.mobile-requester-missions .mobile-nav-item .mobile-nav-label{font-size:8.5px!important;letter-spacing:-.2px!important}
  body.dark-theme .mqc2-scanner-panel{background:rgba(33,33,33,.97);border-color:#464646;color:#f2f2f2}
  body.dark-theme .mqc2-scanner-panel>button[data-scanner]{background:#3a3a3a;color:#f2f2f2}
  body.dark-theme .mobile-quick-controls-v2 .mqc2-tools{border-color:#464646;background:rgba(33,33,33,.95)}
  body.dark-theme .mobile-quick-controls-v2 .mqc2-tools>button{color:#ebebeb}
  body.dark-theme .mobile-quick-controls-v2 .mqc2-tools>button svg{background:transparent;color:#fddfd1}
  body.dark-theme .mobile-quick-controls-v2 .mqc2-tools>button.active{background:transparent;color:#f79a6b}
  body.dark-theme .mobile-quick-controls-v2 .mqc2-tools>button.active svg{background:transparent;color:#f79a6b}
}
@media (max-width:350px){
  .mobile-quick-controls-v2 .mqc2-vol{grid-template-columns:28px minmax(0,1fr) 32px;gap:4px;padding:5px 6px}
  .mobile-quick-controls-v2 .mqc2-vol .mqc2-icon{width:28px;height:28px}
  .mobile-quick-controls-v2 .mqc2-vol .mqc2-switch{width:32px}
  .mobile-quick-controls-v2 .mqc2-vol.active .mqc2-switch i{transform:translateX(11px)}
}

@media (max-width:768px){
  /* Filters open below the fixed mobile header and quick controls. */
  .active-mobile-map-header #filters-dropdown,
  .active-mobile-map-header #search-box-wrapper #filters-dropdown{
    position:fixed!important;
    top:calc(136px + env(safe-area-inset-top,0px))!important;
    left:10px!important;
    right:10px!important;
    width:auto!important;
    max-height:calc(100vh - 232px)!important;
    overflow-y:auto!important;
    margin:0!important;
    z-index:204000!important;
  }
  #mobile-quick-controls-v2{z-index:220000!important}
}
/* active-mobile-filter-below-header */

@media (max-width:768px){
  /* Explicit viewport placement for the expanded filters panel. */
  #filters-dropdown.active{position:fixed!important;top:150px!important;left:10px!important;right:10px!important;width:auto!important;margin:0!important;max-height:calc(100vh - 240px)!important;overflow-y:auto!important;z-index:204000!important;transform:none!important}
}
/* force-mobile-filter-panel-position */

@media (max-width:768px){
  #filters-dropdown .categories-filter-wrapper{display:none!important}
  .mobile-radius-control{display:none!important;margin:0 0 14px;padding:12px 13px 10px;border-radius:16px;background:#f9f9f9;box-shadow:inset 0 0 0 1px #ededed}
  .mobile-radius-head{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#404040;font:700 12px var(--font-firago)}
  .mobile-radius-head>span{display:flex;align-items:center;gap:6px}.mobile-radius-head .material-symbols-rounded{font-size:17px;color:#da500b}
  #mobile-radius-value{padding:4px 8px;border-radius:999px;background:#f0f0f0;color:#da500b;font:700 11px var(--font-firago)}
  #mobile-radius-slider{display:block;width:100%;height:5px;margin:14px 0 7px;accent-color:#da500b;cursor:pointer}
  .mobile-radius-scale{display:flex;justify-content:space-between;color:#a2a2a2;font:500 10px var(--font-firago)}
  body.dark-theme .mobile-radius-control{background:#303030;box-shadow:inset 0 0 0 1px #464646}.dark-theme .mobile-radius-head{color:#f2f2f2}.dark-theme #mobile-radius-value{background:rgba(218,80,11,.2)}
}
.mobile-radius-control.nearby-radius-active{display:block!important}
@media (min-width:769px){.mobile-radius-control{display:none!important}}
/* mobile-radius-filter-ui */

@media (max-width:768px){
  #filters-dropdown #mobile-radius-control.nearby-radius-active{display:block!important}
  #filters-dropdown #mobile-radius-slider{-webkit-appearance:none;appearance:none;width:100%;height:6px;margin:15px 0 8px;border:0;border-radius:999px;background:linear-gradient(90deg,#da500b 0%,#f79260 55%,#e9e9e9 55%,#e9e9e9 100%);outline:0}
  #filters-dropdown #mobile-radius-slider::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:20px;height:20px;border:4px solid #fff;border-radius:50%;background:#da500b;box-shadow:0 2px 8px rgba(218,80,11,.34);cursor:pointer}
  #filters-dropdown #mobile-radius-slider::-moz-range-thumb{width:13px;height:13px;border:4px solid #fff;border-radius:50%;background:#da500b;box-shadow:0 2px 8px rgba(218,80,11,.34);cursor:pointer}
  #filters-dropdown #mobile-radius-slider:focus-visible{box-shadow:0 0 0 4px rgba(218,80,11,.14)}
}
/* mobile-radius-polished-ui */

/* mobile-radius-only-active-fix */
@media (max-width:768px){#filters-dropdown .near-me-radius-control{display:none!important}#filters-dropdown .mobile-radius-control.nearby-radius-active{display:block!important}}

/* mobile-filter-layout-final */
@media (max-width:768px){#search-box-wrapper #filters-dropdown.active{margin-top:6px!important;padding:8px 10px!important}#filters-dropdown.active{max-height:none!important;overflow:visible!important}#filters-dropdown.active .features-filter-container{display:flex!important;flex-wrap:wrap!important;overflow:visible!important;white-space:normal!important;gap:6px!important}#filters-dropdown.active .feature-filter-btn{flex:0 0 auto!important}}

/* mobile-filter-shell-gap-final */
@media (max-width:768px){#filters-dropdown.active{top:var(--mobile-shell-window-top,150px)!important;margin-top:0!important}}

/* mobile-menu-layer-final */
@media (max-width:768px){#active-mobile-map-header{z-index:300000!important}#active-mobile-map-header .ammh-menu{z-index:300001!important;pointer-events:auto!important}.ammh-search-slot #btn-near-me,.ammh-search-slot #btn-toggle-filters{pointer-events:auto!important;cursor:pointer!important}.mobile-quick-controls-v2{z-index:204900!important}}
@media (max-width: 768px) {
  .active-mobile-map-header #search-box-wrapper > div:first-child,
  body.dark-theme .active-mobile-map-header #search-box-wrapper > div:first-child {
    border: 0 !important;
  }
  .ammh-search-hint { position: absolute; z-index: 1; top: 50%; left: 37px; right: 70px; transform: translateY(-50%); color: #787878; font: 11px/1.1 var(--font-firago), sans-serif; pointer-events: none; white-space: normal; }
.active-mobile-map-header #search-input::placeholder { color: transparent !important; opacity: 0 !important; }
  body > header:not(#active-mobile-map-header) { display: none !important; }
  .skip-link:not(:focus) { transform: translateY(-100%); }
  #mobile-toggle { display: none !important; }
  #search-input:focus + .ammh-search-hint, #search-input:not(:placeholder-shown) + .ammh-search-hint { display: none; }
  body.dark-theme .ammh-search-hint { color: #b8b8b8; }
}

/* Fixed preview for a selected map pin, above the mobile dock. */
@media (max-width: 768px) {
  .mobile-volunteer-preview { position: fixed; z-index: 200010; left: 12px; right: 12px; bottom: calc(88px + env(safe-area-inset-bottom, 0px)); max-width: 520px; max-height: calc(100dvh - 240px - env(safe-area-inset-bottom, 0px)); overflow: visible; margin: 0 auto; padding: 0; border: 1px solid #e7e7e7; border-radius: 21px; background: rgba(255,255,255,.98); box-shadow: 0 13px 34px rgba(23,23,23,.2); color: #242424; font-family: var(--font-firago), sans-serif; box-sizing: border-box; }
  .mobile-volunteer-preview * { box-sizing: border-box; }
  .mobile-volunteer-preview-scroll { min-width: 0; max-height: inherit; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y; padding: 15px; border-radius: inherit; }
  .mobile-volunteer-preview > .mobile-place-preview-close { top: -10px; right: -3px; width: 30px; height: 30px; min-width: 30px; min-height: 30px; z-index: 2; transform: none; }
  .mobile-volunteer-preview-heading { display: flex; gap: 10px; padding-right: 19px; align-items: center; }
  .mobile-volunteer-preview-avatar { width: 42px; height: 42px; flex: none; overflow: hidden; border-radius: 50%; background: #f4f4f4; }
  .mobile-volunteer-preview-avatar img { width: 100%; height: 100%; object-fit: cover; }
  .mobile-volunteer-preview-heading > div { min-width: 0; }
  .mobile-volunteer-preview h3 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0 0 3px; font-size: 14px; line-height: 1.4; font-weight: 600; }
  .mobile-volunteer-preview-heading > div > span { color: #737373; font-size: 12px; }
  .mobile-volunteer-preview-profile-action { padding: 0; border: 0; background: transparent; box-shadow: none; cursor: pointer; font-family: inherit; font-weight: 400; }
  .mobile-volunteer-preview-name { color: #737373; font-size: 12px; text-align: left; }
  .mobile-volunteer-preview-name:hover { text-decoration: underline; }
  .mobile-volunteer-preview-profile-action:focus-visible { outline: 2px solid var(--palette-ink,#292928); outline-offset: 3px; }
  .mobile-volunteer-preview-info { display: grid; gap: 7px; margin: 12px 0; padding: 10px; border-radius: 12px; background: #f6f6f6; font-size: 12px; line-height: 1.5; }
  .mobile-volunteer-preview-info > span { display: flex; min-width: 0; align-items: center; gap: 7px; }
  .mobile-volunteer-preview-info svg, .mobile-volunteer-preview-info .a11y-icon { flex: none; width: 17px; height: 17px; color: #da500b; }
  .mobile-volunteer-preview-origin > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mobile-volunteer-preview-footer { display: flex; align-items: center; gap: 8px; }
  .mobile-volunteer-preview-footer button { flex: 1; min-height: 43px; padding: 9px 12px; border: 0; border-radius: 12px; background: #171717; color: #fff; font: 400 13px var(--font-firago), sans-serif; cursor: pointer; }
  .mobile-volunteer-preview-footer button:hover { background: #0f0f0f; transform: none; }
  .mobile-volunteer-preview-status { flex: 1; padding: 11px 8px; border-radius: 10px; background: #fff8e8; color: #8a6214; font-size: 12px; text-align: center; }
  .mobile-volunteer-preview-status.confirmed { background: #ecf9f0; color: #23824b; }
  .mobile-volunteer-preview-extra { margin: 0 0 11px; border-radius: 12px; background: #f6f6f6; font-size: 12px; line-height: 1.5; }
  .mobile-volunteer-preview-extra summary { display: flex; align-items: center; justify-content: space-between; min-height: 40px; padding: 10px 12px; color: #404040; font-weight: 400; cursor: pointer; list-style: none; }
  .mobile-volunteer-preview-extra summary::-webkit-details-marker { display: none; }
  .mobile-volunteer-preview-extra summary::after { content: '+'; color: #da500b; font-size: 18px; line-height: 1; }
  .mobile-volunteer-preview-extra[open] summary::after { content: '−'; }
  .mobile-volunteer-preview-extra-content { display: grid; gap: 9px; padding: 0 12px 12px; overflow-wrap: anywhere; }
  .mobile-volunteer-preview-detail small { display: block; margin-bottom: 2px; color: #737373; font-size: 11px; }
  .mobile-volunteer-preview-detail a { color: #da500b; text-decoration: none; }
  .mobile-volunteer-preview-extra .companion-needs-card { margin: 0; padding: 9px; background: #fff; font-size: 12px; }
  .mobile-volunteer-preview-extra .companion-needs-card > strong { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; }
  .mobile-volunteer-preview-extra .companion-need-chip { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; white-space: normal; font-size: 11px; }
  .mobile-volunteer-preview-extra .companion-need-chip svg { width: 14px; height: 14px; flex: none; }
  .mobile-volunteer-preview:has(.mobile-volunteer-preview-extra[open]) h3 { display: block; -webkit-line-clamp: unset; }
}
@media (max-width: 768px) {
  .mobile-place-preview {
    position: fixed;
    z-index: 200010;
    right: 12px;
    bottom: calc(var(--mobile-shell-window-bottom, 64px) + 6px);
    left: 12px;
    display: grid;
    grid-template-columns: minmax(96px, 32%) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) 38px;
    gap: 9px 11px;
    max-width: 520px;
    height: 186px;
    margin: 0 auto;
    padding: 11px;
    border: 1px solid rgba(231,231,231,.92);
    border-radius: 21px;
    background: rgba(255,255,255,.97);
    box-shadow: 0 13px 34px rgba(23,23,23,.2);
    color: #242424;
    font-family: var(--font-firago), sans-serif;
    box-sizing: border-box;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
  }
  .mobile-place-preview * { box-sizing: border-box; }
  .mobile-place-preview-close {
    position: absolute;
    top: -10px;
    right: -5px;
    z-index: 1;
    width: 27px;
    height: 27px;
    padding: 0;
    border: 1px solid #e4e4e4;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 3px 9px rgba(23,23,23,.13);
    color: #404040;
    font: 19px/1 Arial, sans-serif;
    cursor: pointer;
  }
  .mobile-place-preview-photo {
    display: grid;
    width: 100%;
    height: 100%;
    min-height: 0;
    place-items: center;
    overflow: hidden;
    padding: 0;
    border: 0;
    border-radius: 14px;
    background: #eeeeee;
    color: #939393;
    cursor: pointer;
  }
  .mobile-place-preview-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
  .mobile-place-preview-photo > .material-symbols-rounded { font-size: 28px; }
  .mobile-place-preview-content { display: flex; min-width: 0; flex-direction: column; gap: 3px; justify-content: space-between; }
  .mobile-place-preview-top { display: flex; min-width: 0; align-items: flex-start; gap: 5px; }
  .mobile-place-preview-title {
    display: -webkit-box;
    flex: 1 1 0;
    min-width: 0;
    overflow: hidden;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.32;
    text-align: left;
    cursor: pointer;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
  .mobile-place-preview-actions { display: flex; flex: none; gap: 3px; }
  .mobile-place-preview-actions button {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    padding: 0;
    border: 1px solid #e4e4e4;
    border-radius: 50%;
    background: #f8f8f8;
    color: #242424;
    cursor: pointer;
  }
  .mobile-place-preview-actions .material-symbols-rounded { font-size: 18px; }
  .mobile-place-preview-actions button[aria-pressed="true"] { background: #f3f3f3; color: #ce4c0b; }
  .mobile-place-preview-share-menu[hidden] { display: none; }
  .mobile-place-preview-share-menu {
    position: absolute;
    right: 10px;
    bottom: calc(100% + 7px);
    z-index: 2;
    display: grid;
    min-width: 174px;
    gap: 2px;
    padding: 5px;
    border: 1px solid #e4e4e4;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 9px 24px rgba(23,23,23,.2);
  }
  .mobile-place-preview-share-menu button { display: flex; height: 35px; align-items: center; gap: 9px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: #242424; font: 650 12px var(--font-firago), sans-serif; text-align: left; cursor: pointer; }
  .mobile-place-preview-share-menu button:hover, .mobile-place-preview-share-menu button:focus-visible { background: #f5f5f5; }
  .mobile-place-preview-share-menu .material-symbols-rounded { width: 20px; font-size: 19px; }
  .mobile-place-preview-whatsapp { width: 20px; height: 20px; flex: none; color: #25d366; }
  .mobile-place-preview-social-facebook { display: grid; width: 20px; height: 20px; place-items: center; border-radius: 50%; background: #d64f0b; color: #fff; font: 700 17px Arial, sans-serif; }
  .mobile-place-preview-address { display: -webkit-box; min-width: 0; overflow: hidden; color: #737373; font-size: 10px; line-height: 1.25; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .mobile-place-preview-status { display: inline-flex; align-items: center; gap: 3px; color: #737373; font-size: 10px; line-height: 1.3; }
  .mobile-place-preview-status.verified { color: #16804d; }
  .mobile-place-preview-status .material-symbols-rounded { font-size: 14px; }
  .mobile-place-preview-features { display: flex; min-height: 28px; align-items: center; gap: 5px; }
  .mobile-place-preview-feature { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; background: #f3f3f3; color: #cd4c0b; }
  .mobile-place-preview-feature .material-symbols-rounded { font-size: 17px; }
  .mobile-place-preview-no-features { color: #737373; font-size: 10px; line-height: 1.3; }
  .mobile-place-preview-footer { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; min-width: 0; }
  .mobile-place-preview-footer button { display: grid; min-width: 0; height: 38px; place-items: center; padding: 3px 6px; border-radius: 10px; font: 700 11px/1.2 var(--font-firago), sans-serif; text-align: center; cursor: pointer; }
  .mobile-place-preview-details { border: 1px solid var(--palette-line,#e7e7e4); background: #f8f8f8; color: #363636; }
  .mobile-place-preview-companion { border: 1px solid #0da66a; background: #0da66a; color: #fff; }
  .mobile-place-preview-footer .mobile-place-preview-companion { display: flex; align-items: center; justify-content: center; gap: 5px; }
  .mobile-place-preview-companion .material-symbols-rounded { flex: none; font-size: 17px; }
  body.place-details-open .mobile-place-preview { display: none; }
  body.dark-theme .mobile-place-preview { border-color: #454545; background: rgba(33,33,33,.96); color: #f4f4f4; }
  body.dark-theme .mobile-place-preview-actions button, body.dark-theme .mobile-place-preview-close { border-color: #525252; background: #3a3a3a; color: #f4f4f4; }
  body.dark-theme .mobile-place-preview-details { border-color: #525252; background: #3a3a3a; color: #f4f4f4; }
  body.dark-theme .mobile-place-preview-share-menu { border-color: #525252; background: #3a3a3a; }
  body.dark-theme .mobile-place-preview-share-menu button { color: #f4f4f4; }
  body.dark-theme .mobile-place-preview-share-menu button:hover, body.dark-theme .mobile-place-preview-share-menu button:focus-visible { background: #494949; }
}
@media (max-width: 360px) {
  .mobile-place-preview { grid-template-columns: 90px minmax(0, 1fr); gap: 8px; padding: 9px; }
  .mobile-place-preview-actions button { width: 27px; height: 27px; }
  .mobile-place-preview-actions .material-symbols-rounded { font-size: 16px; }
  .mobile-place-preview-footer button { font-size: 10px; }
}

/* Trial: white capsule dock with a pin-blue selection indicator. */
@media (max-width: 768px) {
  .mobile-nav-bar {
    left: 14px !important;
    right: 14px !important;
    width: calc(100% - 28px) !important;
    height: 64px !important;
    padding: 5px 7px 4px !important;
    gap: 0 !important;
    overflow: hidden !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: #fff !important;
    box-shadow: 0 7px 20px rgba(26,26,26,.16) !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
  .mobile-nav-bar::before {
    top: 0 !important;
    left: calc(var(--dock-pill-center, 46px) - 46px) !important;
    width: 92px !important;
    height: 64px !important;
    box-sizing: border-box !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #da500b !important;
    box-shadow: none !important;
    -webkit-clip-path: path('M 0 64 C 10 64 18 58 18 45 L 18 33 C 18 16 30 7 46 7 C 62 7 74 16 74 33 L 74 45 C 74 58 82 64 92 64 Z') !important;
    clip-path: path('M 0 64 C 10 64 18 58 18 45 L 18 33 C 18 16 30 7 46 7 C 62 7 74 16 74 33 L 74 45 C 74 58 82 64 92 64 Z') !important;
    -webkit-mask-image: none !important;
    mask-image: none !important;
  }
  .mobile-nav-bar:has(> #mobile-nav-toggle.dock-visual-active)::before {
    left: calc(var(--dock-pill-center, 40px) - 40px) !important;
    -webkit-clip-path: path('M 0 64 C 8 64 15 58 15 45 L 15 33 C 15 16 25 7 40 7 C 55 7 65 16 65 33 L 65 45 C 65 58 76 64 92 64 Z') !important;
    clip-path: path('M 0 64 C 8 64 15 58 15 45 L 15 33 C 15 16 25 7 40 7 C 55 7 65 16 65 33 L 65 45 C 65 58 76 64 92 64 Z') !important;
  }
  .mobile-nav-bar:has(> #mobile-auth-profile-area.dock-visual-active)::before {
    left: calc(var(--dock-pill-center, 52px) - 52px) !important;
    -webkit-clip-path: path('M 0 64 C 16 64 27 58 27 45 L 27 33 C 27 16 37 7 52 7 C 67 7 77 16 77 33 L 77 45 C 77 58 84 64 92 64 Z') !important;
    clip-path: path('M 0 64 C 16 64 27 58 27 45 L 27 33 C 27 16 37 7 52 7 C 67 7 77 16 77 33 L 77 45 C 77 58 84 64 92 64 Z') !important;
  }
  .mobile-nav-bar::after { content: none !important; display: none !important; }
  .mobile-nav-item {
    position: relative !important;
    height: 54px !important;
    padding: 4px 2px 2px !important;
    gap: 2px !important;
    color: #202027 !important;
  }
  .mobile-nav-item .mobile-nav-icon { color: #202027 !important; }
  .mobile-nav-item:not(#mobile-auth-profile-area) .mobile-nav-icon img { filter: brightness(0); }
  .mobile-nav-item .mobile-nav-label { font-size: 9px !important; font-weight: 500 !important; line-height: 1.2 !important; }
  .mobile-nav-item.dock-visual-active::before { content: none !important; }
  .mobile-nav-item.dock-visual-active { color: #fff !important; }
  .mobile-nav-item.dock-visual-active .mobile-nav-icon {
    position: relative;
    z-index: 1;
    transform: translateY(3px) !important;
    color: #fff !important;
  }
  .mobile-nav-item.dock-visual-active .mobile-nav-icon .material-symbols-rounded { color: #fff !important; }
  .mobile-nav-item.dock-visual-active:not(#mobile-auth-profile-area) .mobile-nav-icon img { filter: brightness(0) invert(1); }
  .mobile-nav-item.dock-visual-active .mobile-nav-label { transform: translateY(3px) !important; color: #fff !important; font-weight: 600 !important; }
  .mobile-nav-item:focus-visible { outline: 2px solid var(--palette-ink,#292928) !important; outline-offset: -2px !important; }
  body.dark-theme .mobile-nav-bar { background: #242424 !important; }
  body.dark-theme .mobile-nav-item, body.dark-theme .mobile-nav-item .mobile-nav-icon { color: #f3f3f3 !important; }
  body.dark-theme .mobile-nav-item.dock-visual-active, body.dark-theme .mobile-nav-item.dock-visual-active .mobile-nav-icon { color: #fff !important; }
}

@media (max-width: 350px) {
  .mobile-nav-bar:has(> #mobile-nav-toggle.dock-visual-active)::before {
    left: calc(var(--dock-pill-center, 35px) - 35px) !important;
    -webkit-clip-path: path('M 0 64 C 7 64 13 58 13 45 L 13 33 C 13 16 22 7 35 7 C 48 7 57 16 57 33 L 57 45 C 57 58 70 64 92 64 Z') !important;
    clip-path: path('M 0 64 C 7 64 13 58 13 45 L 13 33 C 13 16 22 7 35 7 C 48 7 57 16 57 33 L 57 45 C 57 58 70 64 92 64 Z') !important;
  }
  .mobile-nav-bar:has(> #mobile-auth-profile-area.dock-visual-active)::before {
    left: calc(var(--dock-pill-center, 57px) - 57px) !important;
    -webkit-clip-path: path('M 0 64 C 22 64 35 58 35 45 L 35 33 C 35 16 44 7 57 7 C 70 7 79 16 79 33 L 79 45 C 79 58 85 64 92 64 Z') !important;
    clip-path: path('M 0 64 C 22 64 35 58 35 45 L 35 33 C 35 16 44 7 57 7 C 70 7 79 16 79 33 L 79 45 C 79 58 85 64 92 64 Z') !important;
  }
}

@media(max-width:768px){
 #auth-modal.mobile-auth-shared > .scanner-modal-content{padding:18px!important}
 #auth-modal.mobile-auth-shared .auth-split-layout{display:none!important}
 #auth-modal.mobile-auth-shared #drawer-view-auth{display:block!important;position:static!important;height:auto!important;overflow:visible!important}
 #auth-modal.mobile-auth-shared .drawer-view-scroll{height:auto;overflow:visible;padding:0}
 .mobile-auth-shared-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px;color:var(--heading,#171717);font-family:var(--font-firago);font-size:13px}
 .mobile-auth-shared-head button{display:grid;place-items:center;width:32px;height:32px;padding:0;border:0;border-radius:10px;background:#f4f4f4;color:#737373;font-size:24px;font-weight:400;flex:none}
 #auth-modal.mobile-auth-shared .drawer-section-card{padding:16px;background:#fafafa;border:1px solid #e7e7e7;border-radius:16px;margin-top:14px}
 #auth-modal.mobile-auth-shared .drawer-section-title{display:flex;align-items:center;gap:8px;margin-bottom:6px;color:var(--heading,#171717)}
 #auth-modal.mobile-auth-shared .drawer-section-title h4{margin:0;font-size:13px}
 #auth-modal.mobile-auth-shared .drawer-section-desc{margin:0;color:#737373;font-size:12px;line-height:1.5}
 #auth-modal.mobile-auth-shared .apple-auth-input{font-size:.86rem!important}
 #auth-modal.mobile-auth-shared .apple-auth-submit-btn{background:#171717!important;font-size:13px!important;font-weight:400!important;box-shadow:none!important;transform:none!important}
 #auth-modal.mobile-auth-shared .apple-auth-submit-btn:hover{background:#0f0f0f!important}
 #auth-modal.mobile-auth-shared .apple-role-tile:hover{transform:none}
 body.dark-theme #auth-modal.mobile-auth-shared .drawer-section-card{background:rgba(255,255,255,.04);border-color:rgba(255,255,255,.1)}
}
/* Shared desktop authentication form on mobile. */
@media(max-width:768px){
  .drawer-auth-tabs {
    display: flex;
    gap: 6px;
    background: #f4f4f4;
    padding: 4px;
    border-radius: 14px;
  }
  body.dark-theme .drawer-auth-tabs {
    background: rgba(255, 255, 255, 0.06);
  }
  .drawer-auth-tab {
    flex: 1;
    height: 34px;
    border: none;
    background: transparent;
    border-radius: 10px;
    font-family: var(--font-firago);
    font-size: 0.8rem;
    font-weight: 600;
    color: #737373;
    cursor: pointer;
    transition: all 0.18s ease;
  }
  .drawer-auth-tab.active {
    background: #ffffff;
    color: #171717;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  }
  body.dark-theme .drawer-auth-tab.active {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
  }
  .drawer-auth-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .drawer-auth-switch-text {
    text-align: center;
    font-size: 0.78rem;
    color: #737373;
    margin-top: 4px;
  }
  .drawer-auth-switch-text a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    margin-left: 4px;
  }
  /* ==========================================================================
     APPLE-GRADE AUTHENTICATION FORMS & ROLE SELECTOR
     ========================================================================== */
  .apple-auth-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin-top: 6px;
  }
  .apple-auth-role-header {
    margin-bottom: 4px;
  }
  .apple-auth-role-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--heading, #171717);
    font-family: var(--font-firago);
  }
  .apple-auth-role-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 6px;
  }
  @media (max-width: 480px) {
    .apple-auth-role-selector {
      grid-template-columns: 1fr;
    }
  }
  .apple-role-tile {
    position: relative;
    background: #fafafa;
    border: 1.5px solid #e7e7e7;
    border-radius: 14px;
    padding: 12px 10px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
  }
  .apple-role-tile:hover {
    background: #f4f4f4;
    border-color: #d4d4d4;
    transform: translateY(-1px);
  }
  .apple-role-tile.active {
    background: #ffffff;
    border-color: var(--palette-line,#e7e7e4);
    box-shadow: 0 4px 14px rgba(218,80,11, 0.15);
  }
  .apple-role-tile[data-role="volunteer"].active {
    border-color: #16a34a;
    box-shadow: 0 4px 14px rgba(22, 163, 74, 0.15);
  }
  .apple-role-tile-icon-wrap {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(218,80,11, 0.1);
    color: #da500b;
    transition: all 0.2s ease;
  }
  .apple-role-tile-icon-wrap.volunteer {
    background: rgba(22, 163, 74, 0.1);
    color: #16a34a;
  }
  .apple-role-tile.active .apple-role-tile-icon-wrap.member {
    background: #da500b;
    color: #ffffff;
  }
  .apple-role-tile.active .apple-role-tile-icon-wrap.volunteer {
    background: #16a34a;
    color: #ffffff;
  }
  .apple-role-tile-content {
    flex: 1;
    min-width: 0;
  }
  .apple-role-tile-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #171717;
    font-family: var(--font-firago);
    line-height: 1.25;
  }
  .apple-role-tile-desc {
    font-size: 0.68rem;
    color: #737373;
    font-family: var(--font-firago);
    margin-top: 2px;
    line-height: 1.25;
  }
  .apple-role-tile-check {
    font-size: 16px;
    color: #d4d4d4;
    transition: all 0.2s ease;
    flex-shrink: 0;
  }
  .apple-role-tile.active .apple-role-tile-check {
    color: #da500b;
  }
  .apple-role-tile[data-role="volunteer"].active .apple-role-tile-check {
    color: #16a34a;
  }
  body.dark-theme .apple-role-tile {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
  }
  body.dark-theme .apple-role-tile:hover {
    background: rgba(255, 255, 255, 0.07);
  }
  body.dark-theme .apple-role-tile.active {
    background: rgba(218,80,11, 0.15);
    border-color: var(--palette-line,#e7e7e4);
  }
  body.dark-theme .apple-role-tile[data-role="volunteer"].active {
    background: rgba(22, 163, 74, 0.15);
    border-color: #4ade80;
  }
  body.dark-theme .apple-role-tile-title {
    color: #fafafa;
  }
  body.dark-theme .apple-role-tile-desc {
    color: #a2a2a2;
  }

  /* Field Container with Inside Icons */
  .apple-auth-field-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
  }
  .apple-auth-field-wrap .apple-auth-input-icon {
    position: absolute;
    left: 14px;
    font-size: 20px;
    color: #a2a2a2;
    pointer-events: none;
    transition: color 0.2s ease;
  }
  .apple-auth-input {
    width: 100%;
    height: 48px;
    padding: 0 42px 0 44px;
    border-radius: 14px;
    border: 1.5px solid #e7e7e7;
    background: #fafafa;
    font-size: 0.86rem;
    color: #171717;
    font-family: var(--font-firago);
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
  }
  .apple-auth-input::placeholder {
    color: #a2a2a2;
    font-size: 0.84rem;
  }
  .apple-auth-input:focus {
    border-color: var(--palette-line,#e7e7e4);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(218,80,11, 0.12);
  }
  .apple-auth-field-wrap:focus-within .apple-auth-input-icon {
    color: #da500b;
  }
  .apple-auth-eye-btn {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #a2a2a2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
  }
  .apple-auth-eye-btn:hover {
    color: #404040;
  }
  .apple-auth-eye-btn .material-symbols-rounded {
    font-size: 20px;
  }
  body.dark-theme .apple-auth-input {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
    color: #fafafa;
  }
  body.dark-theme .apple-auth-input::placeholder {
    color: #737373;
  }
  body.dark-theme .apple-auth-input:focus {
    border-color: var(--palette-line,#e7e7e4);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(247,154,107, 0.2);
  }
  body.dark-theme .apple-auth-field-wrap .apple-auth-input-icon,
  body.dark-theme .apple-auth-eye-btn {
    color: #737373;
  }
  body.dark-theme .apple-auth-field-wrap:focus-within .apple-auth-input-icon {
    color: #f79a6b;
  }
  body.dark-theme .apple-auth-eye-btn:hover {
    color: #e7e7e7;
  }

  /* Options Row (Remember me / Terms) */
  .apple-auth-options-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 2px 0 4px 0;
  }
  .apple-auth-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.78rem;
    color: #545454;
    font-family: var(--font-firago);
    cursor: pointer;
    user-select: none;
    line-height: 1.35;
  }
  .apple-auth-checkbox-label input[type="checkbox"] {
    margin-top: 2px;
    width: 16px;
    height: 16px;
    accent-color: #da500b;
    cursor: pointer;
  }
  body.dark-theme .apple-auth-checkbox-label {
    color: #a2a2a2;
  }

  /* Submit Button (Black / Dark Apple Pill style matching user screenshot) */
  .apple-auth-submit-btn {
    width: 100%;
    height: 48px;
    border-radius: 14px;
    border: none;
    background: #171717;
    color: #ffffff;
    font-family: var(--font-firago);
    font-size: 0.9rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(23,23,23, 0.2);
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    margin-top: 6px;
  }
  .apple-auth-submit-btn:hover {
    background: #292929;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(23,23,23, 0.28);
  }
  .apple-auth-submit-btn:active {
    transform: scale(0.98);
  }
  body.dark-theme .apple-auth-submit-btn {
    background: #da500b;
    box-shadow: 0 4px 14px rgba(218,80,11, 0.3);
  }
  body.dark-theme .apple-auth-submit-btn:hover {
    background: #ae4009;
  }


}

/* The mobile assistant uses the same controls and bubbles as the desktop drawer. */
@media (max-width: 768px) {
  #ai-chat-panel.mobile-ai-shared { overflow: hidden; border-radius: 24px; }
  #ai-chat-panel.mobile-ai-shared > .ai-chat-body,
  #ai-chat-panel.mobile-ai-shared > .ai-chat-footer { display: none !important; }
  #ai-chat-panel.mobile-ai-shared > .ai-chat-header { flex-shrink: 0; background: var(--card-bg); color: var(--text); border-bottom: 1px solid var(--border); }
  #ai-chat-panel.mobile-ai-shared .ai-chat-title-text h4,
  #ai-chat-panel.mobile-ai-shared .ai-chat-close { color: var(--text); }
  #ai-chat-panel.mobile-ai-shared #drawer-view-assistant {
    display: flex !important; flex-direction: column; flex: 1 1 0%;
    min-height: 0; min-width: 0; overflow: hidden; padding: 0;
  }
  /* 9. AI Assistant Wrapper */
  /* AI Top Bar & New Chat Button */
  .drawer-ai-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    background: #fafafa;
    border-bottom: 1px solid rgba(231,231,231, 0.8);
    flex-shrink: 0;
  }
  body.dark-theme .drawer-ai-top-bar {
    background: rgba(255, 255, 255, 0.03);
    border-bottom-color: rgba(255, 255, 255, 0.08);
  }
  .drawer-ai-status {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.74rem;
    font-weight: 600;
    color: #545454;
    font-family: var(--font-firago);
  }
  body.dark-theme .drawer-ai-status {
    color: #a2a2a2;
  }
  .drawer-ai-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
    animation: aiPulse 2s infinite ease-in-out;
  }
  @keyframes aiPulse {
    0%, 100% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.25); opacity: 1; box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.35); }
  }
  .drawer-ai-new-chat-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 11px;
    background: #ffffff;
    border: 1px solid #d4d4d4;
    border-radius: 10px;
    font-family: var(--font-firago);
    font-size: 0.74rem;
    font-weight: 600;
    color: #404040;
    cursor: pointer;
    transition: all 0.18s ease;
  }
  .drawer-ai-new-chat-btn:hover {
    background: #f4f4f4;
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(172,63,9, 0.08);
  }
  body.dark-theme .drawer-ai-new-chat-btn {
    background: #1c1c1e;
    border-color: rgba(255, 255, 255, 0.12);
    color: #d4d4d4;
  }
  body.dark-theme .drawer-ai-new-chat-btn:hover {
    background: #27272a;
    border-color: var(--primary);
    color: #ffffff;
  }
  .drawer-ai-new-chat-btn .material-symbols-rounded {
    font-size: 15px;
  }

  .drawer-ai-wrapper {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
  }
  .drawer-ai-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .drawer-ai-bubble {
    max-width: 86%;
    padding: 10px 14px;
    border-radius: 16px;
    font-family: var(--font-firago);
    font-size: 0.82rem;
    line-height: 1.45;
  }
  .drawer-ai-bubble.ai {
    align-self: flex-start;
    background: #f4f4f4;
    color: #171717;
    border-bottom-left-radius: 4px;
  }
  body.dark-theme .drawer-ai-bubble.ai {
    background: #1c1c1e;
    color: #f4f4f4;
  }
  .drawer-ai-bubble.user {
    align-self: flex-end;
    background: var(--primary);
    color: #ffffff;
    border-bottom-right-radius: 4px;
  }
  .drawer-ai-prompts {
    display: flex;
    gap: 6px;
    padding: 8px 16px;
    overflow-x: auto;
    border-top: 1px solid rgba(231,231,231, 0.7);
    flex-shrink: 0;
  }
  body.dark-theme .drawer-ai-prompts {
    border-top-color: rgba(255, 255, 255, 0.08);
  }
  .drawer-prompt-chip {
    white-space: nowrap;
    background: #fafafa;
    border: 1px solid #e7e7e7;
    border-radius: 9999px;
    padding: 5px 12px;
    font-size: 0.73rem;
    font-weight: 500;
    color: #545454;
    cursor: pointer;
    transition: all 0.18s ease;
  }
  .drawer-prompt-chip:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(172,63,9, 0.05);
  }
  body.dark-theme .drawer-prompt-chip {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: #d4d4d4;
  }
  .drawer-ai-input-bar {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid rgba(231,231,231, 0.8);
    background: rgba(255, 255, 255, 0.9);
    flex-shrink: 0;
  }
  body.dark-theme .drawer-ai-input-bar {
    border-top-color: rgba(255, 255, 255, 0.08);
    background: rgba(18, 18, 20, 0.9);
  }
  .drawer-ai-input {
    flex: 1;
    background: #f4f4f4;
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 9px 12px;
    font-family: var(--font-firago);
    font-size: 0.82rem;
    outline: none;
    transition: all 0.18s ease;
  }
  .drawer-ai-input:focus {
    border-color: var(--primary);
    background: #ffffff;
  }
  body.dark-theme .drawer-ai-input {
    background: #1c1c1e;
    color: #ffffff;
  }
  .drawer-ai-send-btn {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--primary);
    color: #ffffff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.18s ease;
  }
  .drawer-ai-send-btn:hover {
    opacity: 0.92;
    transform: scale(1.04);
  }


  #ai-chat-panel.mobile-ai-shared .drawer-ai-messages { min-height: 0; overscroll-behavior: contain; }
  #ai-chat-panel.mobile-ai-shared .drawer-ai-bubble { overflow-wrap: anywhere; flex-shrink: 0; }
  #ai-chat-panel.mobile-ai-shared .drawer-ai-input { min-width: 0; }
  #ai-chat-panel.mobile-ai-shared .drawer-ai-send-btn { flex-shrink: 0; }
  #ai-chat-panel.mobile-ai-shared .drawer-ai-new-chat-btn:hover,
  #ai-chat-panel.mobile-ai-shared .drawer-ai-send-btn:hover { transform: none; }
}
/* Mobile website navigation drawer. Desktop and native apps are unchanged. */
.ammh-nav-overlay[hidden]{display:none!important}
@media(max-width:768px){
 .ammh-nav-overlay{position:fixed;inset:0;z-index:400300;background:rgba(29,29,29,0);backdrop-filter:blur(0);transition:background .22s ease,backdrop-filter .22s ease;overscroll-behavior:contain}
 .ammh-nav-overlay.is-open{background:rgba(29,29,29,.42);backdrop-filter:blur(3px)}
 .ammh-nav-overlay .ammh-menu{position:absolute;inset:0 0 0 auto;top:0;right:0;display:flex;flex-direction:column;width:85vw;height:100dvh;max-height:100dvh;padding:0;box-sizing:border-box;background:var(--card-bg,#fff);color:var(--text-main,#323232);border:0;border-left:1px solid rgba(169,169,169,.22);border-radius:0;box-shadow:-16px 0 60px #2525252b;transform:translateX(105%);transition:transform .22s ease;animation:none;overflow:hidden;backdrop-filter:none}
 .ammh-nav-overlay .ammh-menu.open{transform:translateX(0);animation:none}
 .ammh-nav-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:calc(19px + env(safe-area-inset-top,0px)) 20px 18px;border-bottom:1px solid var(--border,#ececec);flex-shrink:0}
 .ammh-nav-heading>img{width:172px;max-width:calc(100% - 140px);height:44px;min-width:0;object-fit:contain;object-position:left center}
 .ammh-nav-heading .ammh-nav-auth{margin-left:auto;flex-shrink:0;min-height:40px;height:40px;padding:0 9px;font-size:12px;white-space:nowrap;color:var(--text-main,#7a2d06);background:var(--bg-secondary,#f5f5f5);border:1px solid var(--border,#e7e7e7)}
 .ammh-nav-heading .ammh-nav-auth.has-user{width:40px;padding:0;border-radius:50%;overflow:hidden}
 .ammh-nav-heading .ammh-nav-auth img{width:100%;height:100%;max-width:none;object-fit:cover;border-radius:50%}
 .ammh-nav-heading [data-menu-close]{flex-shrink:0}
 .ammh-nav-heading [data-menu-close]{width:40px;height:40px;min-height:40px;display:grid;place-items:center;padding:0;background:var(--bg-secondary,#f5f5f5);border:1px solid var(--border,#e7e7e7);border-radius:13px;color:var(--text-main,#7a2d06)}
 .ammh-nav-scroll{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:6px 20px 12px}
 .ammh-nav-section{padding:16px 0;border-bottom:1px solid var(--border,#ececec)}
 .ammh-nav-section[hidden]{display:none!important}
 .ammh-nav-caption{font-size:10px;font-weight:600;letter-spacing:.04em;line-height:1.5;color:var(--text-muted,#8f8f8f);margin:0 0 10px}
 .ammh-nav-overlay .ammh-menu .ammh-nav-section button{display:flex;align-items:center;gap:12px;min-height:48px;height:auto;width:100%;margin:3px 0;padding:11px 12px;border:0;border-radius:13px;font:500 13px/1.5 var(--font-firago,sans-serif);background:transparent;color:inherit;text-align:left;white-space:normal;box-sizing:border-box;cursor:pointer}
 .ammh-nav-overlay .ammh-menu button:hover,.ammh-nav-overlay .ammh-menu button:active{background:var(--bg-secondary,#f5f5f5)}
 .ammh-nav-overlay .ammh-menu button:focus-visible{outline:2px solid var(--palette-ink,#292928);outline-offset:2px}
 .ammh-nav-overlay .ammh-menu .material-symbols-rounded{flex:0 0 24px;font-size:22px;color:var(--text-muted,#707070)}
 .ammh-nav-overlay .mqc2-guide svg{flex:0 0 22px;width:22px;height:22px;fill:var(--text-muted,#707070)}
 .ammh-nav-overlay .mqc2-guide .mqc2-chevron{display:none}
 .ammh-nav-overlay .mqc2-guide .mqc2-label{font-size:13px!important}
 .ammh-nav-overlay .mqc2-scanner-panel{display:block;position:static;width:auto;padding:0;margin:0;border:0;background:transparent;box-shadow:none}
 .ammh-nav-overlay .mqc2-scanner-panel>.mqc2-scanner-close,.ammh-nav-overlay .mqc2-scanner-panel>strong{display:none}
 .ammh-nav-overlay .ammh-nav-main [data-a="add"]{background:transparent;color:inherit;margin-top:3px}
 .ammh-nav-overlay .ammh-nav-main [data-a="add"] .material-symbols-rounded{color:var(--text-muted,#707070)}
 .ammh-nav-account{border:0}
 .ammh-nav-footer{flex-shrink:0;padding:16px 20px calc(17px + env(safe-area-inset-bottom,0px));border-top:1px solid var(--border,#ececec);background:var(--card-bg,#fff)}
 .ammh-nav-languages{display:flex;gap:8px}
 .ammh-nav-overlay .ammh-nav-languages button{flex:1;display:flex;justify-content:center;align-items:center;gap:7px;height:43px;min-height:43px;padding:8px 10px;border:1px solid var(--border,#e7e7e7);border-radius:12px;font:500 12px var(--font-firago,sans-serif);background:transparent;color:inherit}
 .ammh-nav-overlay .ammh-nav-languages button[aria-current=true]{background:#f0f0f0;border-color:#dedede;color:#474747}
 .ammh-nav-overlay .ammh-nav-theme button{display:flex;align-items:center;gap:10px;height:42px;width:100%;padding:8px 12px;margin-top:10px;background:var(--bg-secondary,#f8f8f8);border-radius:12px;font:500 12px var(--font-firago,sans-serif);color:inherit}
 .mobile-quick-controls-v2.mqc2-menu-tools-moved .mqc2-tools{display:none!important}
 .ai-chat-bubble{display:flex!important;right:12px;bottom:calc(92px + env(safe-area-inset-bottom,0px));width:48px;height:48px;z-index:204850}
 body.dark-theme .ammh-nav-overlay .ammh-menu,body.dark-theme .ammh-nav-footer{background:#212121;color:#f2f2f2}
 body.dark-theme .ammh-nav-overlay .ammh-nav-languages button[aria-current=true]{background:#3a3a3a;color:#f0f0f0;border-color:#525252}
}
@media(prefers-reduced-motion:reduce){.ammh-nav-overlay,.ammh-nav-overlay .ammh-menu{transition:none!important}}
@media(min-width:769px){.ammh-nav-overlay{display:none!important}}

@media(max-width:768px){
  .ai-siri-orb { position: relative; display: grid; width: 48px; height: 48px; overflow: hidden; border-radius: 50%; background: #f0f0f0; }
  .ai-siri-orb::before {
    content: ''; position: absolute; inset: 0; border-radius: inherit;
    background:
      conic-gradient(from calc(var(--ai-orb-angle) * 2) at 25% 70%, #f79869, transparent 20% 80%, #f79869),
      conic-gradient(from calc(var(--ai-orb-angle) * 2) at 45% 75%, #fabb9b, transparent 30% 60%, #fabb9b),
      conic-gradient(from calc(var(--ai-orb-angle) * -3) at 80% 20%, #ed91c2, transparent 40% 60%, #ed91c2),
      conic-gradient(from calc(var(--ai-orb-angle) * 2) at 15% 5%, #fabb9b, transparent 10% 90%, #fabb9b),
      conic-gradient(from var(--ai-orb-angle) at 20% 80%, #ed91c2, transparent 10% 90%, #ed91c2),
      conic-gradient(from calc(var(--ai-orb-angle) * -2) at 85% 10%, #f79869, transparent 20% 80%, #f79869);
    filter: blur(1px) contrast(1.44);
    box-shadow: inset 0 0 .5px .1px #f0f0f0;
    animation: ai-orb-turn 20s linear infinite;
  }
  .ai-siri-orb::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(circle at 35% 25%, #ffffff80, transparent 55%); pointer-events: none; }

 .ai-chat-bubble{padding:0!important;border:0!important;background:#f0f0f0!important;box-shadow:0 4px 16px #42424238}
 .ai-chat-bubble::after{content:none}
 .ammh-nav-overlay .ammh-menu .ammh-nav-main button[data-a="add"]{background:transparent;color:inherit}
 .ammh-nav-overlay .ammh-menu .ammh-nav-main button[data-a="add"] .material-symbols-rounded{color:var(--text-muted,#707070)}
 .ammh-nav-overlay .ammh-nav-section button svg{flex:0 0 22px;width:22px;height:22px;color:var(--text-muted,#707070)}
}
@media(max-width:768px){.ammh-nav-overlay .mqc2-scanner-panel>.mqc2-scanner-close,.ammh-nav-overlay .mqc2-scanner-panel>strong{display:none!important}}
@media(prefers-reduced-motion:reduce){.ai-siri-orb::before{animation:none!important}}

/* Mobile controls share the volunteer row; their map behavior is retained. */
@media(max-width:768px){
 .mobile-quick-controls-v2.mqc2-menu-tools-moved{grid-template-columns:minmax(0,1fr) 48px 48px!important;gap:8px!important}
 .mobile-quick-controls-v2.mqc2-menu-tools-moved:has(#map-parking-toggle[hidden]){grid-template-columns:minmax(0,1fr) 48px!important}
 #mobile-quick-controls-v2 #map-parking-toggle{position:static!important;left:auto!important;top:auto!important;display:flex;align-items:center;justify-content:center;gap:0;width:48px;height:var(--mqc2-button-height,48px);min-height:0;padding:0;border:1px solid #e7e7e7;border-radius:16px;box-sizing:border-box;background:var(--card-bg,#fff);color:var(--text-main,#545454);box-shadow:0 4px 16px #64250510}
 #mobile-quick-controls-v2 #map-parking-toggle[hidden]{display:none!important}
 #mobile-quick-controls-v2 #map-parking-toggle>span:first-child{width:auto;height:auto;background:transparent;font-size:22px;color:inherit}
 #mobile-quick-controls-v2 #map-parking-toggle>span:nth-child(2){display:none}
 #mobile-quick-controls-v2 #map-parking-toggle[aria-pressed=true]{background:#dd510c;border-color:var(--palette-line,#e7e7e4);color:#fff}
 #mobile-quick-controls-v2 .sensory-control{position:static!important;right:auto!important;bottom:auto!important;width:48px;height:var(--mqc2-button-height,48px);z-index:12}
 #mobile-quick-controls-v2 .sensory-control.settings-open{z-index:300050}
 #mobile-quick-controls-v2 .sensory-toolbar{width:48px;height:100%}
 #mobile-quick-controls-v2 .sensory-toolbar button{width:48px;height:100%;min-height:0;min-width:48px;flex-basis:48px;border-radius:16px;border-color:#e7e7e7;color:var(--text-main,#545454)}
 #mobile-quick-controls-v2 .sensory-toolbar button[aria-pressed=true]{background:#e4f2ec;color:#287858;border-color:#b1d4c3}
 #mobile-quick-controls-v2 .sensory-control .sensory-key{position:fixed;top:var(--mobile-shell-window-top,134px);right:10px;bottom:auto;width:min(340px,calc(100vw - 20px));max-width:calc(100vw - 20px)}
 body:has(#ai-chat-panel.active) .ai-chat-bubble{visibility:hidden!important;opacity:0!important;transition:none!important;pointer-events:none!important}
 body.dark-theme #mobile-quick-controls-v2 #map-parking-toggle,body.dark-theme #mobile-quick-controls-v2 .sensory-toolbar button{background:#2d2d2d;border-color:#454545;color:#e3e3e3}
 body.dark-theme #mobile-quick-controls-v2 #map-parking-toggle[aria-pressed=true]{background:#dd510c;border-color:var(--palette-line,#e7e7e4);color:#fff}
 body.dark-theme #mobile-quick-controls-v2 .sensory-toolbar button[aria-pressed=true]{background:#254439;border-color:#46715e}
}
@media(max-width:768px) and (max-height:620px) and (orientation:landscape){#mobile-quick-controls-v2 .sensory-control .sensory-key{top:8px;right:66px;padding:9px}}
@media(max-width:768px){
 #mobile-quick-controls-v2.mqc2-menu-tools-moved>.mqc2-vol{grid-column:1;grid-row:1}
 #mobile-quick-controls-v2 #map-parking-toggle{grid-column:2;grid-row:1}
 #mobile-quick-controls-v2 .sensory-control{grid-column:3;grid-row:1}
 #mobile-quick-controls-v2:has(#map-parking-toggle[hidden]) .sensory-control{grid-column:2}
 .ammh-nav-overlay .ammh-menu .ammh-nav-tools .material-symbols-rounded{color:var(--text-muted,#707070)!important}
}
@media(max-width:768px){#mobile-quick-controls-v2 .sensory-toolbar{position:static!important;inset:auto!important;transform:none!important}}

@media(max-width:768px){body:not(.v2-portal) div#map-pin-hints{right:16px!important;bottom:calc(152px + env(safe-area-inset-bottom,0px))!important}}

/* Volunteer heart control, separated from the joined map tools. */
@media(max-width:768px){
 #mobile-quick-controls-v2.mqc2-menu-tools-moved{grid-template-columns:minmax(0,1fr) 48px 48px!important;gap:0!important;background:transparent;border-radius:19px;box-shadow:none;isolation:isolate}
 #mobile-quick-controls-v2.mqc2-menu-tools-moved>.mqc2-vol{height:48px;grid-template-columns:28px minmax(0,1fr) 36px;gap:7px;padding:4px 9px;margin-right:8px;border-radius:19px;background:var(--card-bg,#fff);box-shadow:0 5px 20px #6425051c;backdrop-filter:none;color:#545454;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:background .25s ease,color .25s ease}
 #mobile-quick-controls-v2 .mqc2-vol .mqc2-label{font-size:12px!important}
 #mobile-quick-controls-v2 .mqc2-vol .mqc2-icon{width:28px;height:28px;background:transparent!important;box-shadow:none;color:#707070;font-size:24px;transition:color .25s ease}
 #mobile-quick-controls-v2 .mqc2-vol.active{background:#eaf6f0;color:#087c49}
 #mobile-quick-controls-v2 .mqc2-vol.active .mqc2-icon{color:#09825b}
 #mobile-quick-controls-v2 .mqc2-power{position:relative;display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:#f0f0f0;color:#707070;transition:background .28s ease,color .28s ease,transform .15s ease}
 #mobile-quick-controls-v2 .mqc2-power-symbol{width:19px;height:19px;fill:transparent;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;transition:fill .25s ease,transform .25s ease}
 #mobile-quick-controls-v2 .mqc2-vol.active .mqc2-power-symbol{fill:currentColor;transform:scale(1.06)}
 #mobile-quick-controls-v2 .mqc2-power-ring{position:absolute;inset:0;width:36px;height:36px;fill:none;stroke:#09825b;stroke-width:1.6;stroke-linecap:round;stroke-dasharray:101;stroke-dashoffset:101;transform:rotate(-90deg);transition:stroke-dashoffset .35s ease}
 #mobile-quick-controls-v2 .mqc2-vol.active .mqc2-power{background:#09825b;color:#fff;box-shadow:inset 0 0 0 3px #eaf6f0}
 #mobile-quick-controls-v2 .mqc2-vol.active .mqc2-power-ring{stroke-dashoffset:0}
 #mobile-quick-controls-v2 .mqc2-vol:active .mqc2-power{transform:scale(.9)}
 #mobile-quick-controls-v2 .mqc2-vol:focus-visible{outline:2px solid var(--palette-ink,#292928);outline-offset:-3px}
 #mobile-quick-controls-v2 #map-parking-toggle,#mobile-quick-controls-v2 .sensory-toolbar button{border:0;border-left:1px solid #e8e8e8;border-radius:0;background:var(--card-bg,#fff);box-shadow:0 5px 20px #64250510;backdrop-filter:none}
 #mobile-quick-controls-v2 #map-parking-toggle{border-left:0;border-radius:19px 0 0 19px}
 #mobile-quick-controls-v2 .sensory-toolbar button{border-radius:0 19px 19px 0}
 #mobile-quick-controls-v2 #map-parking-toggle[aria-pressed=true]{background:#dd510c;color:#fff}
 #mobile-quick-controls-v2 .sensory-toolbar button[aria-pressed=true]{background:#e4f2ec;color:#287858}
 body.dark-theme #mobile-quick-controls-v2.mqc2-menu-tools-moved{background:transparent}
 body.dark-theme #mobile-quick-controls-v2 .mqc2-vol{background:#2d2d2d;color:#e3e3e3}
 body.dark-theme #mobile-quick-controls-v2 .mqc2-vol .mqc2-label{color:inherit}
 body.dark-theme #mobile-quick-controls-v2 .mqc2-vol .mqc2-icon{color:#c4c4c4}
 body.dark-theme #mobile-quick-controls-v2 .mqc2-vol.active{background:#254439;color:#b8ebd2}
 body.dark-theme #mobile-quick-controls-v2 .mqc2-vol.active .mqc2-icon{color:#81dcb1}
 body.dark-theme #mobile-quick-controls-v2 .mqc2-power{background:#444444;color:#cdcdcd}
 body.dark-theme #mobile-quick-controls-v2 .mqc2-vol.active .mqc2-power{background:#09825b;color:#fff;box-shadow:inset 0 0 0 3px #254439}
 body.dark-theme #mobile-quick-controls-v2 #map-parking-toggle,body.dark-theme #mobile-quick-controls-v2 .sensory-toolbar button{border-left-color:#454545}
}
@media(max-width:350px){#mobile-quick-controls-v2.mqc2-menu-tools-moved>.mqc2-vol{gap:4px;padding-left:7px;padding-right:7px}}
@media(prefers-reduced-motion:reduce){#mobile-quick-controls-v2 .mqc2-vol,#mobile-quick-controls-v2 .mqc2-power,#mobile-quick-controls-v2 .mqc2-power-symbol,#mobile-quick-controls-v2 .mqc2-power-ring,#mobile-quick-controls-v2 .mqc2-icon{transition:none!important}}

/* Keep the selected dock shape proportional when members have six destinations. */
@media (max-width: 768px) {
  body.mobile-requester-missions .mobile-nav-bar::before,
  body.mobile-requester-missions .mobile-nav-bar:has(> #mobile-nav-toggle.dock-visual-active)::before,
  body.mobile-requester-missions .mobile-nav-bar:has(> #mobile-auth-profile-area.dock-visual-active)::before {
    left: clamp(0px, calc(var(--dock-pill-center, 34px) - 34px), calc(100% - 68px)) !important;
    width: 68px !important;
    -webkit-clip-path: path('M 0 64 C 6 64 10 58 10 45 L 10 29 C 10 14 19 7 34 7 C 49 7 58 14 58 29 L 58 45 C 58 58 62 64 68 64 Z') !important;
    clip-path: path('M 0 64 C 6 64 10 58 10 45 L 10 29 C 10 14 19 7 34 7 C 49 7 58 14 58 29 L 58 45 C 58 58 62 64 68 64 Z') !important;
  }
}
@media (max-width: 350px) {
  body.mobile-requester-missions .mobile-nav-bar::before,
  body.mobile-requester-missions .mobile-nav-bar:has(> #mobile-nav-toggle.dock-visual-active)::before,
  body.mobile-requester-missions .mobile-nav-bar:has(> #mobile-auth-profile-area.dock-visual-active)::before {
    left: clamp(0px, calc(var(--dock-pill-center, 31px) - 31px), calc(100% - 62px)) !important;
    width: 62px !important;
    -webkit-clip-path: path('M 0 64 C 5 64 9 58 9 45 L 9 29 C 9 14 17 7 31 7 C 45 7 53 14 53 29 L 53 45 C 53 58 57 64 62 64 Z') !important;
    clip-path: path('M 0 64 C 5 64 9 58 9 45 L 9 29 C 9 14 17 7 31 7 C 45 7 53 14 53 29 L 53 45 C 53 58 57 64 62 64 Z') !important;
  }
}

/* Frosted-glass dock: keep every destination and its existing behavior. */
@media (max-width: 768px) {
  .mobile-nav-bar,
  body.dark-theme .mobile-nav-bar {
    overflow: hidden !important;
    border: 1px solid rgba(255,255,255,.52) !important;
    background: rgba(250,250,250,.22) !important;
    -webkit-backdrop-filter: blur(10px) saturate(155%) !important;
    backdrop-filter: blur(10px) saturate(155%) !important;
    box-shadow: 0 8px 22px rgba(45,45,45,.11), inset 0 1px 1px rgba(255,255,255,.78), inset 0 -1px 1px rgba(255,255,255,.32) !important;
  }
  .mobile-nav-bar::after {
    content: '' !important;
    display: block !important;
    position: absolute !important;
    inset: 0 !important;
    z-index: 0 !important;
    border-radius: inherit !important;
    background: linear-gradient(130deg, rgba(255,255,255,.16), transparent 33%, transparent 68%, rgba(255,255,255,.08)) !important;
    box-shadow: inset 0 1px 1px rgba(255,255,255,.8), inset 0 -1px 1px rgba(255,255,255,.28) !important;
    pointer-events: none !important;
  }
  .mobile-nav-bar::before,
  .mobile-nav-bar:has(> #mobile-nav-toggle.dock-visual-active)::before,
  .mobile-nav-bar:has(> #mobile-auth-profile-area.dock-visual-active)::before,
  body.mobile-requester-missions .mobile-nav-bar::before,
  body.mobile-requester-missions .mobile-nav-bar:has(> #mobile-nav-toggle.dock-visual-active)::before,
  body.mobile-requester-missions .mobile-nav-bar:has(> #mobile-auth-profile-area.dock-visual-active)::before {
    top: 4px !important;
    left: calc(var(--dock-pill-left, 6px) + 3px) !important;
    width: calc(var(--dock-pill-width, 54px) - 6px) !important;
    height: 54px !important;
    border: 1px solid rgba(255,255,255,.86) !important;
    border-radius: 999px !important;
    background: linear-gradient(160deg, rgba(255,255,255,.68), rgba(243,243,243,.42) 58%, rgba(255,255,255,.56)) !important;
    -webkit-backdrop-filter: blur(5px) saturate(140%) !important;
    backdrop-filter: blur(5px) saturate(140%) !important;
    box-shadow: 0 4px 12px rgba(51,51,51,.09), inset 0 1px 1px rgba(255,255,255,.98), inset 0 -2px 3px rgba(97,105,117,.08), 1px 0 1px rgba(245,120,58,.12), -1px 0 1px rgba(215,119,156,.1) !important;
    -webkit-clip-path: none !important;
    clip-path: none !important;
    transition: left .32s cubic-bezier(.2,.75,.2,1), width .32s cubic-bezier(.2,.75,.2,1) !important;
  }
  .mobile-nav-bar.dock-pill-stretch::before { transition-duration: .13s !important; }
  .mobile-nav-bar .mobile-nav-item,
  .mobile-nav-bar .mobile-nav-item .mobile-nav-icon { color: #202020 !important; }
  .mobile-nav-bar .mobile-nav-item.dock-visual-active,
  .mobile-nav-bar .mobile-nav-item.dock-visual-active .mobile-nav-icon,
  .mobile-nav-bar .mobile-nav-item.dock-visual-active .mobile-nav-label,
  .mobile-nav-bar .mobile-nav-item.dock-visual-active .material-symbols-rounded { color: #202020 !important; }
  .mobile-nav-bar .mobile-nav-item.dock-visual-active .mobile-nav-icon,
  .mobile-nav-bar .mobile-nav-item.dock-visual-active .mobile-nav-label { transform: none !important; }
  .mobile-nav-bar .mobile-nav-item.dock-visual-active:not(#mobile-auth-profile-area) .mobile-nav-icon img { filter: brightness(0) !important; }
  body.mobile-requester-missions .mobile-nav-bar .mobile-nav-label { font-size: 9.5px !important; letter-spacing: -.15px !important; }
  body.dark-theme .mobile-nav-bar {
    border-color: rgba(236,236,236,.18) !important;
    background: rgba(43,43,43,.35) !important;
    box-shadow: 0 8px 22px rgba(0,0,0,.2), inset 0 1px 1px rgba(255,255,255,.18) !important;
  }
  body.dark-theme .mobile-nav-bar::before,
  body.dark-theme .mobile-nav-bar:has(> #mobile-nav-toggle.dock-visual-active)::before,
  body.dark-theme .mobile-nav-bar:has(> #mobile-auth-profile-area.dock-visual-active)::before {
    border-color: rgba(237,237,237,.24) !important;
    background: linear-gradient(155deg, rgba(238,238,238,.38), rgba(175,175,175,.2) 52%, rgba(235,235,235,.3)) !important;
    box-shadow: 0 4px 13px rgba(0,0,0,.18), inset 0 1px 1px rgba(255,255,255,.39), inset 0 -2px 3px rgba(0,0,0,.12) !important;
  }
  body.dark-theme .mobile-nav-bar .mobile-nav-item,
  body.dark-theme .mobile-nav-bar .mobile-nav-item .mobile-nav-icon { color: #fcd6c3 !important; }
  body.dark-theme .mobile-nav-bar .mobile-nav-item.dock-visual-active,
  body.dark-theme .mobile-nav-bar .mobile-nav-item.dock-visual-active .mobile-nav-icon,
  body.dark-theme .mobile-nav-bar .mobile-nav-item.dock-visual-active .mobile-nav-label,
  body.dark-theme .mobile-nav-bar .mobile-nav-item.dock-visual-active .material-symbols-rounded { color: #f5f5f5 !important; }
  body.dark-theme .mobile-nav-bar .mobile-nav-item.dock-visual-active:not(#mobile-auth-profile-area) .mobile-nav-icon img { filter: brightness(0) invert(1) !important; }
}
@media (max-width: 768px) and (prefers-reduced-transparency: reduce),
       (max-width: 768px) and (prefers-contrast: more) {
  .mobile-nav-bar { background: #f8f8f8 !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  body.dark-theme .mobile-nav-bar { background: #282828 !important; }
}
@media (max-width: 768px) and (prefers-reduced-motion: reduce) {
  .mobile-nav-bar::before,
  .mobile-nav-bar .mobile-nav-item,
  .mobile-nav-bar .mobile-nav-item .mobile-nav-icon,
  .mobile-nav-bar .mobile-nav-item .mobile-nav-label { transition: none !important; }
}

/* Mobile map header: a calm search surface and four distinct map controls. */
@media (max-width: 768px) {
  #active-mobile-map-header {
    height: 62px;
    grid-template-columns: 42px minmax(0, 1fr) 40px;
    gap: 6px;
    padding: 6px 8px;
    border: 1px solid rgba(255,255,255,.52);
    border-radius: 24px;
    background: rgba(250,250,250,.22) !important;
    -webkit-backdrop-filter: blur(10px) saturate(155%);
    backdrop-filter: blur(10px) saturate(155%);
    box-shadow: 0 8px 22px rgba(45,45,45,.11), inset 0 1px 1px rgba(255,255,255,.78), inset 0 -1px 1px rgba(255,255,255,.32);
  }
  #active-mobile-map-header .ammh-search-slot { margin-left: 6px; }
  #active-mobile-map-header:has(.imv-notify-button:not([hidden])) {
    grid-template-columns: 42px minmax(0, 1fr) 38px 40px;
    gap: 5px;
  }
  #active-mobile-map-header .ammh-logo { width: 42px; height: 46px; }
  #active-mobile-map-header .ammh-logo img { width: 45px; height: 45px; }
  #active-mobile-map-header .ammh-search-slot,
  #active-mobile-map-header .ammh-search-slot #mobile-search-target,
  #active-mobile-map-header .ammh-search-slot #search-box-wrapper { height: 46px !important; }
  #active-mobile-map-header .ammh-search-slot #search-box-wrapper { background: transparent !important; }
  #active-mobile-map-header .ammh-search-slot #search-box-wrapper > div:first-child {
    height: 46px !important;
    border: 1px solid rgba(255,255,255,.8) !important;
    border-radius: 17px !important;
    background: rgba(255,255,255,.54) !important;
    box-shadow: inset 0 1px 2px rgba(57,57,57,.04) !important;
  }
  #active-mobile-map-header .ammh-search-slot #search-input { height: 46px !important; }
  #active-mobile-map-header .ammh-search-slot #btn-near-me,
  #active-mobile-map-header .ammh-search-slot #btn-toggle-filters {
    width: 33px !important;
    min-width: 33px !important;
    height: 34px !important;
    border: 0 !important;
    border-radius: 12px !important;
    background: rgba(255,255,255,.94) !important;
    box-shadow: 0 1px 4px rgba(57,57,57,.1) !important;
  }
  #active-mobile-map-header .imv-notify-button.mobile,
  #active-mobile-map-header .ammh-more {
    width: 38px;
    height: 42px;
    min-height: 42px;
    margin: 0;
    padding: 0;
    display: grid;
    place-items: center;
    border: 1px solid rgba(233,233,233,.75);
    border-radius: 15px;
    background: rgba(251,251,251,.8);
    color: #4a4a4a;
    box-shadow: 0 2px 6px rgba(57,57,57,.06);
  }
  #active-mobile-map-header .ammh-more { width: 40px; }
  #mobile-quick-controls-v2.mobile-quick-controls-v2.mqc2-menu-tools-moved,
  #mobile-quick-controls-v2.mobile-quick-controls-v2.mqc2-menu-tools-moved:has(#map-parking-toggle[hidden]),
  body.tourism-active #mobile-quick-controls-v2.mobile-quick-controls-v2.mqc2-menu-tools-moved {
    grid-template-columns: minmax(0,1.1fr) minmax(0,1fr) 38px 38px !important;
    grid-template-rows: 40px !important;
    align-items: center;
    gap: 6px !important;
    padding: 4px 5px;
    box-sizing: border-box;
    border: 1px solid rgba(255,255,255,.52);
    border-radius: 29px;
    background: rgba(250,250,250,.22) !important;
    -webkit-backdrop-filter: blur(10px) saturate(155%);
    backdrop-filter: blur(10px) saturate(155%);
    box-shadow: 0 8px 22px rgba(45,45,45,.11), inset 0 1px 1px rgba(255,255,255,.78), inset 0 -1px 1px rgba(255,255,255,.32) !important;
  }
  #mobile-quick-controls-v2.mobile-quick-controls-v2.mqc2-menu-tools-moved > .mqc2-vol,
  #mobile-quick-controls-v2.mobile-quick-controls-v2 > .tm-mode-toggle {
    grid-template-columns: 32px minmax(0,1fr) !important;
    align-items: center;
    align-content: center;
    gap: 6px !important;
    box-sizing: border-box !important;
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    min-width: 0;
    padding: 0 8px !important;
    margin: 0 !important;
    border: 1px solid rgba(255,255,255,.8) !important;
    border-radius: 24px !important;
    background: rgba(255,255,255,.54) !important;
    -webkit-backdrop-filter: blur(8px) saturate(135%);
    backdrop-filter: blur(8px) saturate(135%);
    box-shadow: 0 3px 10px rgba(49,49,49,.1), inset 0 1px 1px rgba(255,255,255,.92) !important;
  }
  #mobile-quick-controls-v2.mobile-quick-controls-v2.mqc2-menu-tools-moved > .mqc2-vol { grid-column: 1 !important; grid-row: 1 !important; }
  #mobile-quick-controls-v2.mobile-quick-controls-v2 > .tm-mode-toggle { grid-column: 2 !important; grid-row: 1 !important; }
  #mobile-quick-controls-v2.mobile-quick-controls-v2 .mqc2-vol > .mqc2-icon,
  #mobile-quick-controls-v2.mobile-quick-controls-v2 .tm-mode-toggle > .tm-mode-icon {
    display: grid !important;
    place-items: center;
    justify-self: center;
    align-self: center;
    margin: 0 !important;
    width: 30px;
    height: 30px;
    border-radius: 50%;
  }
  #mobile-quick-controls-v2.mobile-quick-controls-v2 .mqc2-vol > .mqc2-icon { background: #fff0f1 !important; color: #e94d5e !important; }
  #mobile-quick-controls-v2.mobile-quick-controls-v2 .tm-mode-toggle > .tm-mode-icon { justify-self: center; align-self: center; margin: 0 !important; background: linear-gradient(145deg,#f9b491,#e5540c) !important; color: #fff !important; box-shadow: 0 2px 8px rgba(243,95,21,.22); }
  #mobile-quick-controls-v2.mobile-quick-controls-v2 .tm-mode-toggle > .tm-mode-icon svg { display: block; margin: auto; transform: translateY(-1px) !important; }
  #mobile-quick-controls-v2 .mqc2-icon svg,
  #mobile-quick-controls-v2 .tm-mode-icon svg { width: 19px; height: 19px; }
  #mobile-quick-controls-v2 .mqc2-vol .mqc2-label,
  #mobile-quick-controls-v2 .tm-mode-toggle > .tm-mode-label {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11px !important;
    font-weight: 600 !important;
    text-align: left;
  }
  #mobile-quick-controls-v2 .mqc2-switch,
  #mobile-quick-controls-v2 .tm-mode-switch { display: none !important; }
  #mobile-quick-controls-v2.mobile-quick-controls-v2.mqc2-menu-tools-moved > .mqc2-vol.active {
    background: rgba(227,248,237,.67) !important;
    color: #08794e !important;
    border-color: rgba(168,224,191,.75) !important;
  }
  #mobile-quick-controls-v2.mobile-quick-controls-v2 .mqc2-vol.active > .mqc2-icon { background: #07885b !important; color: #fff !important; }
  #mobile-quick-controls-v2.mobile-quick-controls-v2 > .tm-mode-toggle[aria-pressed=true] {
    background: rgba(244,244,244,.67) !important;
    color: #cc4b0b !important;
    border-color: var(--palette-line,#e7e7e4) !important;
  }
  #mobile-quick-controls-v2.mobile-quick-controls-v2 > .tm-mode-toggle[aria-pressed=true] > .tm-mode-icon { background: #e8560c !important; color: #fff !important; }
  #mobile-quick-controls-v2.mobile-quick-controls-v2 > #map-parking-toggle,
  #mobile-quick-controls-v2 .sensory-toolbar button {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border: 1px solid rgba(255,255,255,.94) !important;
    border-radius: 50% !important;
    background: radial-gradient(circle at 30% 18%,rgba(255,255,255,.94),rgba(255,255,255,.56) 76%) !important;
    -webkit-backdrop-filter: blur(9px) saturate(145%);
    backdrop-filter: blur(9px) saturate(145%);
    box-shadow: 0 4px 12px rgba(49,49,49,.14), inset 0 1px 1px #fff, inset 0 -1px 2px rgba(129,129,129,.12) !important;
  }
  #mobile-quick-controls-v2.mobile-quick-controls-v2 > #map-parking-toggle {
    grid-column: 3 !important;
    grid-row: 1 !important;
    position: relative !important;
    display: grid !important;
    place-items: center !important;
    width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #dd510c !important;
    border-color: rgba(255,255,255,.85) !important;
  }
  #mobile-quick-controls-v2 #map-parking-toggle > span:first-child { display: none !important; }
  #mobile-quick-controls-v2 #map-parking-toggle::before {
    content: 'P';
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font: 600 23px/1 Arial, sans-serif;
    color: #fff;
  }
  #mobile-quick-controls-v2.mobile-quick-controls-v2 > .sensory-control { position: relative !important; grid-column: 4 !important; grid-row: 1 !important; width: 38px !important; height: 38px !important; }
  #mobile-quick-controls-v2.mobile-quick-controls-v2 .sensory-toolbar { width: 38px !important; height: 38px !important; }
  #mobile-quick-controls-v2.mobile-quick-controls-v2 .sensory-toolbar button { box-sizing: border-box !important; flex: 0 0 38px !important; width: 38px !important; min-width: 38px !important; max-width: 38px !important; height: 38px !important; min-height: 38px !important; max-height: 38px !important; padding: 0 !important; }
  #mobile-quick-controls-v2 .sensory-toolbar button::after { display: none !important; }
  #mobile-quick-controls-v2.mobile-quick-controls-v2 .sensory-control .sensory-key { position: absolute !important; top: calc(100% + 8px) !important; right: 0 !important; bottom: auto !important; width: min(304px,calc(100vw - 24px)) !important; max-width: calc(100vw - 24px) !important; max-height: calc(100dvh - 180px) !important; overflow: auto !important; }
  #mobile-quick-controls-v2 #map-parking-toggle[aria-pressed=true] { background: #b14109 !important; color: #fff !important; }
  #mobile-quick-controls-v2 #map-parking-toggle[aria-pressed=true]::before { color: #fff; }
  #mobile-quick-controls-v2 .sensory-toolbar button[aria-pressed=true] { background: #e8f5ef !important; color: #287858 !important; }
  body.tourism-active .ammh-search-slot .tm-header-search { height: 46px; border-radius: 17px; }
  body.dark-theme #active-mobile-map-header { background: rgba(43,43,43,.35) !important; border-color: rgba(236,236,236,.18); box-shadow: 0 8px 22px rgba(0,0,0,.2); }
  body.dark-theme #mobile-quick-controls-v2.mobile-quick-controls-v2 > :is(.mqc2-vol,.tm-mode-toggle,#map-parking-toggle),
  body.dark-theme #mobile-quick-controls-v2 .sensory-toolbar button { background: rgba(45,45,45,.9) !important; border-color: rgba(233,233,233,.18) !important; color: #ebebeb !important; }
  body.dark-theme #mobile-quick-controls-v2.mobile-quick-controls-v2 > #map-parking-toggle { background: #dd510c !important; border-color: rgba(255,255,255,.35) !important; }
  body.dark-theme #mobile-quick-controls-v2.mobile-quick-controls-v2 > #map-parking-toggle[aria-pressed=true] { background: #b14109 !important; }
  body.dark-theme #mobile-quick-controls-v2.mobile-quick-controls-v2 > .mqc2-vol.active { background: rgba(21,96,67,.84) !important; color: #d6f7e6 !important; }
  body.dark-theme #mobile-quick-controls-v2.mobile-quick-controls-v2 > .tm-mode-toggle[aria-pressed=true] { background: rgba(137,50,7,.84) !important; color: #eeeeee !important; }
  body.dark-theme #mobile-quick-controls-v2.mobile-quick-controls-v2.mqc2-menu-tools-moved { background: rgba(43,43,43,.35) !important; border-color: rgba(236,236,236,.18); }
}
@media (max-width: 370px) {
  #mobile-quick-controls-v2.mobile-quick-controls-v2.mqc2-menu-tools-moved,
  #mobile-quick-controls-v2.mobile-quick-controls-v2.mqc2-menu-tools-moved:has(#map-parking-toggle[hidden]),
  body.tourism-active #mobile-quick-controls-v2.mobile-quick-controls-v2.mqc2-menu-tools-moved { grid-template-columns: minmax(0,1.1fr) minmax(0,1fr) 36px 36px !important; gap: 4px !important; }
  #mobile-quick-controls-v2.mobile-quick-controls-v2.mqc2-menu-tools-moved > .mqc2-vol,
  #mobile-quick-controls-v2.mobile-quick-controls-v2 > .tm-mode-toggle { grid-template-columns: 25px minmax(0,1fr) !important; gap: 3px !important; padding: 0 5px !important; }
  #mobile-quick-controls-v2.mobile-quick-controls-v2 .mqc2-vol > .mqc2-icon,
  #mobile-quick-controls-v2.mobile-quick-controls-v2 .tm-mode-toggle > .tm-mode-icon { width: 25px; height: 25px; }
  #mobile-quick-controls-v2 .mqc2-vol .mqc2-label,
  #mobile-quick-controls-v2 .tm-mode-toggle > .tm-mode-label { font-size: 10px !important; }
  #mobile-quick-controls-v2.mobile-quick-controls-v2 .sensory-toolbar button { flex-basis: 36px !important; max-width: 36px !important; max-height: 36px !important; }
  #mobile-quick-controls-v2.mobile-quick-controls-v2 > #map-parking-toggle,
  #mobile-quick-controls-v2.mobile-quick-controls-v2 > .sensory-control,
  #mobile-quick-controls-v2.mobile-quick-controls-v2 .sensory-toolbar,
  #mobile-quick-controls-v2.mobile-quick-controls-v2 .sensory-toolbar button { width: 36px !important; min-width: 36px !important; height: 36px !important; min-height: 36px !important; }
}

/* Tourism uses the same mobile search controls as the main map, without filters. */
.tm-header-search-wrap { display: none; }
@media (max-width: 768px) {
  body.tourism-active #active-mobile-map-header .tm-header-search-wrap {
    display: block;
    position: relative;
    width: 100%;
    height: 46px;
    min-width: 0;
    border: 1px solid rgba(255,255,255,.8);
    border-radius: 17px;
    background: rgba(255,255,255,.54);
    box-shadow: inset 0 1px 2px rgba(57,57,57,.04);
    box-sizing: border-box;
  }
  body.tourism-active #active-mobile-map-header .tm-header-search-wrap .tm-header-search {
    display: block;
    width: 100%;
    height: 44px;
    padding: 0 43px 0 35px;
    border: 0;
    border-radius: 17px;
    background: transparent;
    box-shadow: none;
    font-size: 12px;
    outline-offset: 2px;
  }
  body.tourism-active .tm-header-search-hint {
    position: absolute;
    top: 50%;
    left: 35px;
    right: 42px;
    transform: translateY(-50%);
    color: #787878;
    font: 11px/1.1 var(--font-firago), sans-serif;
    letter-spacing: -.15px;
    pointer-events: none;
  }
  body.tourism-active .tm-header-search:focus + .tm-header-search-hint,
  body.tourism-active .tm-header-search:not(:placeholder-shown) + .tm-header-search-hint { display: none; }
  body.tourism-active .tm-header-search-wrap .imv-voice-search {
    left: 3px;
    width: 30px;
    min-width: 30px;
    height: 34px;
    min-height: 34px;
    color: #e9560c;
  }
  body.tourism-active .tm-header-search-wrap .tm-header-near {
    position: absolute;
    top: 5px;
    right: 5px;
    display: grid;
    place-items: center;
    width: 33px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: rgba(255,255,255,.94);
    color: #e9560c;
    box-shadow: 0 1px 4px rgba(57,57,57,.1);
    cursor: pointer;
  }
  body.tourism-active .tm-header-search-wrap .tm-header-near[aria-pressed=true] { background: #f0f0f0; }
  body.dark-theme.tourism-active #active-mobile-map-header .tm-header-search-wrap { background: #313131; border-color: #414141; }
  body.dark-theme.tourism-active .tm-header-search-hint { color: #b8b8b8; }
  body.dark-theme.tourism-active .tm-header-search-wrap .tm-header-near { background: #3c3c3c; color: #f8a277; }
}

#reviews-list-modal > .vr-mobile-topbar { display: none; }
/* Keep review navigation above the scrolling ratings on small screens. */
@media (max-width: 768px) {
  #reviews-list-modal > .vr-mobile-topbar {
    position: absolute !important;
    top: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 10008 !important;
    display: flex !important;
    align-items: center;
    gap: 8px;
    width: min(520px, calc(100% - 20px)) !important;
    height: 54px !important;
    padding: 8px 14px;
    box-sizing: border-box;
    border-radius: 20px 20px 0 0;
    background: var(--card-bg, #fff) !important;
  }
  #reviews-list-modal > .vr-mobile-topbar strong {
    flex: 1;
    text-align: center;
    font-size: 14px;
  }
  #reviews-list-modal > .vr-mobile-topbar .scanner-close {
    display: inline-grid;
    place-items: center;
    flex: none;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: var(--background, #f4f4f4);
    font-size: 24px;
    line-height: 1;
  }
  #reviews-list-modal:not(#ar-modal):not(#chat-lightbox-modal) > .scanner-modal-content.vr-panel {
    height: calc(100% - 54px) !important;
    max-height: calc(100% - 54px) !important;
    margin: 54px auto 0 !important;
    overflow: hidden !important;
    border-radius: 0 0 20px 20px !important;
    background: var(--card-bg, #fff) !important;
  }
  #reviews-list-modal .vr-panel > .scanner-header { display: none !important; }
  #reviews-list-modal .vr-list {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* Search actions appear only while the mobile search is being used. */
@media(max-width:768px){
 .ammh-search-map-hint[hidden]{display:none!important}
 .ammh-search-map-hint{position:absolute;top:calc(100% + 6px);left:12px;right:12px;padding:10px 12px;border:1px solid #e8e8e8;border-radius:12px;background:#fff;color:#686868;box-shadow:0 6px 18px #3333331a;font:12px/1.6 var(--font-firago),sans-serif;pointer-events:none}
 body.dark-theme .ammh-search-map-hint{background:#292929;border-color:#4b4b4b;color:#fcd6c4}
 #active-mobile-map-header:not(.ammh-search-expanded) #btn-near-me,
 #active-mobile-map-header:not(.ammh-search-expanded) #btn-toggle-filters,
 #active-mobile-map-header:not(.ammh-search-expanded) .tm-header-near{display:none!important}
 #active-mobile-map-header:not(.ammh-search-expanded) .ammh-search-slot #search-input,
 body.tourism-active #active-mobile-map-header:not(.ammh-search-expanded) .tm-header-search{padding-right:10px!important}
 #active-mobile-map-header:not(.ammh-search-expanded) .ammh-search-hint,
 body.tourism-active #active-mobile-map-header:not(.ammh-search-expanded) .tm-header-search-hint{right:10px!important}
}

/* Compact route editor; existing inputs and actions stay in place. */
@media(min-width:0px){
 #drawer-view-navigator .drawer-nav-card{padding:0;margin-bottom:14px;border:0;border-radius:0;background:transparent;box-shadow:none}
 #drawer-view-navigator .drawer-nav-stops-wrapper{position:relative;gap:0;padding:5px 45px 5px 12px;border:1px solid #eaeaea;border-radius:19px;background:#f6f6f6}
 #drawer-view-navigator .drawer-nav-stops-wrapper::before{content:'';position:absolute;left:23px;top:31px;bottom:31px;border-left:2px dotted #c7c7c7}
 #drawer-view-navigator .drawer-nav-stop-row{min-width:0;gap:10px;min-height:48px;margin:0!important}
 #drawer-view-navigator #nav-stop-row-destination,#drawer-view-navigator #nav-waypoints-container .drawer-nav-stop-row{border-top:1px solid #e7e7e7}
 #drawer-view-navigator .drawer-nav-stop-dot{position:relative;z-index:1;flex:0 0 24px;width:24px;height:24px;background:#f6f6f6;box-shadow:none}
 #drawer-view-navigator .drawer-nav-stop-dot.origin,#drawer-view-navigator .drawer-nav-stop-dot.dest{font-size:0}
 #drawer-view-navigator .drawer-nav-stop-dot.origin::after{content:'';width:10px;height:10px;box-sizing:border-box;border:3px solid #0caa7d;border-radius:50%;background:#fff}
 #drawer-view-navigator .drawer-nav-stop-dot.dest::after{content:'';width:12px;height:12px;box-sizing:border-box;border:3px solid var(--palette-line,#e7e7e4);border-radius:50% 50% 50% 0;background:#fff;transform:rotate(-45deg)}
 #drawer-view-navigator .drawer-nav-stop-dot.waypoint{color:#cb4b0b;font-size:11px;font-weight:600}
 #drawer-view-navigator .drawer-nav-input-wrap{min-width:0;min-height:44px;padding:0 2px;border:1px solid transparent;border-radius:10px;background:transparent;box-shadow:none}
 #drawer-view-navigator .drawer-nav-input-wrap:focus-within{border-color:var(--palette-line,#e7e7e4);background:#fff;box-shadow:0 0 0 2px #e7550c0a}
 #drawer-view-navigator .drawer-nav-input{min-width:0;width:100%;height:44px;padding:0 5px;line-height:1.4;font-size:13px!important;font-weight:400!important;background:transparent;box-sizing:border-box}
 #drawer-view-navigator .drawer-nav-input-wrap .drawer-nav-btn-icon,#drawer-view-navigator .drawer-nav-input-wrap .drawer-nav-btn-clear{display:none;width:29px;height:29px;flex:0 0 29px;border-radius:8px}
 #drawer-view-navigator .drawer-nav-stop-row:focus-within .drawer-nav-btn-icon,#drawer-view-navigator .drawer-nav-stop-row:focus-within .drawer-nav-btn-clear{display:flex}
 #drawer-view-navigator .drawer-nav-swap-row{position:absolute;right:7px;top:50%;width:32px;height:36px;margin:0;transform:translateY(-50%);z-index:2}
 #drawer-view-navigator .drawer-nav-connector-line{display:none}
 #drawer-view-navigator .drawer-nav-swap-btn{position:static;display:grid;place-items:center;width:32px;height:36px;padding:0;border:1px solid #e4e4e4;border-radius:11px;background:#fff;color:#6e6e6e;box-shadow:0 2px 5px #7a2d0608}
 #drawer-view-navigator .drawer-nav-add-stop-wrap{margin-top:7px}
 #drawer-view-navigator .drawer-nav-add-stop-btn{justify-content:flex-start;gap:6px;width:auto;min-height:32px;padding:0 10px;border:0;border-radius:10px;background:transparent;color:#646464}
 #drawer-view-navigator .drawer-nav-add-stop-btn>span:last-child{font-size:0}
 #drawer-view-navigator .drawer-nav-add-stop-btn>span:last-child::after{content:'გაჩერება';font-size:12px}
 html[lang=en] #drawer-view-navigator .drawer-nav-add-stop-btn>span:last-child::after{content:'Add stop'}
 body.dark-theme #drawer-view-navigator .drawer-nav-stops-wrapper,body.dark-theme #drawer-view-navigator .drawer-nav-stop-dot{background:#2c2c2c;border-color:#454545}
 body.dark-theme #drawer-view-navigator .drawer-nav-input-wrap{background:transparent}
 body.dark-theme #drawer-view-navigator .drawer-nav-input-wrap:focus-within{background:#393939;border-color:var(--palette-line,#e7e7e4)}
 body.dark-theme #drawer-view-navigator .drawer-nav-swap-btn{background:#3d3d3d;border-color:#5d5d5d;color:#fcdecf}
 body.dark-theme #drawer-view-navigator #nav-stop-row-destination,body.dark-theme #drawer-view-navigator #nav-waypoints-container .drawer-nav-stop-row{border-color:#454545}
 body.dark-theme #drawer-view-navigator .drawer-nav-add-stop-btn{background:transparent;color:#f9b795}
}

@media(min-width:0px){
 #drawer-view-navigator.drawer-view .imv-transit-options{margin:0 0 10px;padding:8px;border-radius:14px}
 #drawer-view-navigator.drawer-view .imv-transit-options > .imv-transit-choices{display:grid;grid-template-columns:1.25fr .75fr 1.2fr;gap:5px;flex-wrap:nowrap}
 #drawer-view-navigator.drawer-view .imv-transit-options > .imv-transit-choices button{justify-content:center;min-width:0;min-height:33px;padding:5px 3px;font-size:10px;line-height:1.2;white-space:nowrap;border-radius:9px}
 #drawer-view-navigator.drawer-view .imv-transit-options > .imv-transit-choices button svg{display:none}
 #drawer-view-navigator.drawer-view .imv-transit-options p{margin:7px 0 0;font-size:11px;line-height:1.4}
 #drawer-view-navigator.drawer-view .imv-transit-options summary{margin-top:5px;font-size:10px;line-height:1.4}
}

#map-clear-route[hidden]{display:none!important}
#map-clear-route{position:fixed;z-index:204600;right:20px;bottom:84px;min-height:40px;padding:0 15px;border:1px solid #e7e7e7;border-radius:14px;background:#fff;color:#a43d46;box-shadow:0 4px 18px #2e2e2e20;font:500 12px var(--font-firago),sans-serif;cursor:pointer}
#map-clear-route:focus-visible{outline:2px solid var(--palette-ink,#292928);outline-offset:3px}
@media(max-width:768px){#map-clear-route{right:auto;left:50%;bottom:calc(var(--mobile-shell-window-bottom,81px) + 10px);transform:translateX(-50%);white-space:nowrap}}
body.dark-theme #map-clear-route{background:#303030;border-color:#4f4f4f;color:#ffb3ba}

/* A route drawn from a pin does not open the route editor. */
@media(max-width:768px){
 .desktop-left-column #drawer-view-navigator:not(.mobile-dock-window-open),
 .desktop-left-column.drawer-closed #drawer-view-navigator{display:none!important}
 .desktop-left-column.drawer-closed .drawer-view>.mobile-window-bar{display:none!important}
}
/* Full-width mobile dock and panels, matching the design preview. */
@media(max-width:768px){
 html body .mobile-nav-bar{left:0!important;right:0!important;bottom:0!important;width:100%!important;max-width:none!important;height:calc(64px + env(safe-area-inset-bottom,0px))!important;padding:4px 7px calc(6px + env(safe-area-inset-bottom,0px))!important;gap:2px!important;display:flex!important;align-items:center!important;justify-content:space-around!important;border:0!important;border-top:1px solid #ececec!important;border-radius:0!important;background:#fff!important;box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;transform:none!important}
 html body .mobile-nav-bar::before,html body .mobile-nav-bar::after{display:none!important}
 html body .mobile-nav-bar .mobile-nav-item{flex:1 1 0!important;min-width:0!important;max-width:none!important;height:48px!important;min-height:48px!important;padding:5px 2px!important;gap:5px!important;border:0!important;border-radius:11px!important;box-shadow:none!important;background:transparent!important;color:#737373!important;transform:none!important}
 html body .mobile-nav-bar .mobile-nav-item .mobile-nav-icon,html body .mobile-nav-bar .mobile-nav-item .mobile-nav-label,html body .mobile-nav-bar .mobile-nav-item .material-symbols-rounded{color:inherit!important;transform:none!important}
 html body .mobile-nav-bar .mobile-nav-item .mobile-nav-icon{height:20px!important;width:24px!important}
 html body .mobile-nav-bar .mobile-nav-item .mobile-nav-icon :is(svg,img){width:20px!important;height:20px!important;filter:none!important}
 html body .mobile-nav-bar .mobile-nav-label{font-size:9px!important;font-weight:400!important;line-height:1.2!important;padding:0!important;letter-spacing:0!important}
 html body .mobile-nav-bar .mobile-nav-item.dock-visual-active{background:#f5f5f5!important;color:#dc510c!important}
 html body :is(.scanner-modal-overlay:not(#ar-modal):not(#chat-lightbox-modal),#add-place-modal.modal-overlay,#review-modal.modal-overlay,#dock-modal-about.modal-overlay,#dock-modal-faq.modal-overlay,#dock-modal-contact.modal-overlay,#modal-share-route){padding-inline:0!important}
 html body :is(.scanner-modal-overlay:not(#ar-modal):not(#chat-lightbox-modal),#add-place-modal,#review-modal,#dock-modal-about,#dock-modal-faq,#dock-modal-contact,#modal-share-route)>:is(.scanner-modal-content,.modal-content,.mobile-missions-panel){width:100%!important;max-width:none!important;margin-inline:0!important;border-radius:22px 22px 0 0!important;border-inline:0!important;border-bottom:0!important}
 html body :is(#sidebar:not(.maps-hidden),.desktop-left-column #sidebar:not(.maps-hidden),.desktop-left-column .drawer-view.mobile-dock-window-open,#drawer-view-public-profile.active,.desktop-left-column #drawer-view-projects.active,.desktop-left-column #drawer-view-tourism.active,#ai-chat-panel,#route-builder-panel,#place-details-overlay,#reviews-list-modal,#mobile-missions-modal>.mobile-missions-panel){left:0!important;right:0!important;bottom:var(--mobile-shell-window-bottom,64px)!important;width:auto!important;max-width:none!important;margin-inline:0!important;border-radius:22px 22px 0 0!important;border-inline:0!important;border-bottom:0!important;box-sizing:border-box!important}
 html body :is(#place-details-overlay .place-details-panel,#mobile-missions-modal .mobile-missions-panel){left:0!important;right:0!important;width:100%!important;max-width:none!important;margin-inline:0!important;border-radius:22px 22px 0 0!important;border-inline:0!important;border-bottom:0!important}
 html body #place-details-overlay .place-details-panel{bottom:var(--mobile-shell-window-bottom,64px)!important}
 html body #mobile-missions-modal .mobile-missions-panel{bottom:auto!important}
 html body.tourism-active .desktop-left-column #drawer-view-tourism.active{bottom:var(--mobile-shell-window-bottom,64px)!important;height:auto!important;top:var(--mobile-shell-window-top,130px)!important;transform:none!important}
 html body.tourism-active .desktop-left-column #drawer-view-tourism.active:not(.tm-journey-open):not(.tm-detail-open){top:auto!important;height:calc(100dvh - var(--mobile-shell-window-top,130px) - var(--mobile-shell-window-bottom,64px) - var(--tm-sheet-offset,0px))!important;min-height:0!important;max-height:none!important;transition:height .48s cubic-bezier(.22,.8,.25,1)!important}
 html body.tourism-active .desktop-left-column #drawer-view-tourism.active.tm-sheet-dragging{transition:none!important}
 @media(prefers-reduced-motion:reduce){html body.tourism-active .desktop-left-column #drawer-view-tourism.active{transition:none!important}}
 html body.dark-theme .mobile-nav-bar{background:#272727!important;border-top-color:#434343!important}
 html body.dark-theme .mobile-nav-bar .mobile-nav-item{color:#b2b2b2!important}
 html body.dark-theme .mobile-nav-bar .mobile-nav-item.dock-visual-active{background:#742b06!important;color:#fbcfb9!important}
}

/* Match the preview sheet's gentle, continuous entrance across mobile windows. */
.imv-tourism-animation{display:none}
@media(min-width:769px){
 #drawer-view-tourism .tm-adaptation-info:has(.imv-tourism-animation){display:grid;grid-template-columns:110px minmax(0,1fr);gap:12px 15px;align-items:center}
 #drawer-view-tourism .tm-adaptation-info:has(.imv-tourism-animation)>strong{grid-column:1/-1}
 #drawer-view-tourism .tm-adaptation-info>.imv-tourism-animation{display:block;width:110px;height:110px;object-fit:contain;background:#fff;border-radius:12px}
 #drawer-view-tourism .tm-adaptation-info:has(.imv-tourism-animation)>p{margin:0}
}
#drawer-companion-form .drawer-req-icon.imv-companion-animation{display:grid!important;place-items:center;width:196px!important;height:110px!important;min-height:110px;margin:0 auto 12px!important;background:#fff!important;border-radius:12px;overflow:hidden}
.imv-companion-animation .imv-wheelchair-animation{display:block;width:196px;height:110px;object-fit:contain;pointer-events:none}
.imv-companion-animation [hidden]{display:none!important}
#drawer-view-companion>.drawer-view-scroll:has(.drawer-trip-place-picker){display:flex!important;flex-direction:column;overflow:hidden!important;min-height:0}
#drawer-companion-form:has(.drawer-trip-place-picker)>.drawer-wizard-progress{display:none!important}
#drawer-view-companion:has(.drawer-trip-place-picker) #drawer-companion-member-area,
#drawer-view-companion:has(.drawer-trip-place-picker) #drawer-companion-form,
#drawer-view-companion:has(.drawer-trip-place-picker) .drawer-req-step.active[data-drawer-step="1"]{display:flex!important;flex-direction:column;flex:1 1 0%;min-height:0!important;overflow:hidden}
#drawer-companion-form .drawer-trip-place-picker{display:flex;flex-direction:column}
#drawer-companion-form .drawer-req-step .drawer-trip-place-picker{display:flex!important;flex-direction:column;flex:1 1 0%;min-height:0;overflow:hidden;margin-bottom:0!important}
#drawer-companion-form .drawer-trip-place-picker>.drawer-trip-place-grid{flex:1 1 0%;min-height:0;max-height:none!important;overflow-y:auto;overscroll-behavior:contain;grid-auto-rows:max-content;align-content:start}
#drawer-companion-form .drawer-trip-place-picker>:not(.drawer-trip-place-grid){flex-shrink:0}
#drawer-companion-form .drawer-trip-place-picker>.drawer-btn-primary{flex:0 0 44px!important;height:44px!important;max-height:44px;margin:0!important;background:var(--imv-dark-button,#171717);position:relative}

@media(max-width:768px){
 html body .mobile-nav-bar,html body.tourism-active .mobile-nav-bar{z-index:400100!important;isolation:isolate}
}
@keyframes imv-mobile-sheet-enter{
 from{translate:0 100%;opacity:.85}
 to{translate:0 0;opacity:1}
}
@media(max-width:768px){
 html body .mobile-nav-bar .mobile-nav-item .mobile-nav-icon{display:flex!important;align-items:center!important;justify-content:center!important;position:relative;height:22px!important;width:24px!important}
 html body .mobile-nav-bar .mobile-nav-item .mobile-nav-icon .imv-hugeicon{display:block;width:22px!important;height:22px!important;position:static!important;transform:none;color:inherit!important;stroke:currentColor;filter:none!important;flex:none;overflow:visible}
 html body .mobile-nav-bar .mobile-nav-item.dock-visual-active .mobile-nav-icon .imv-hugeicon{color:#dc510c!important}
 .imv-hugeicon{transform-origin:center;pointer-events:none}
 #mobile-companion-btn .imv-companion-missions-icon{display:none!important}
 #mobile-companion-btn[data-dock-service="missions"] .mobile-nav-icon>.imv-hugeicon{display:none!important}
 #mobile-companion-btn[data-dock-service="missions"] .imv-companion-missions-icon{display:block!important}
}
@media(max-width:768px) and (prefers-reduced-motion:no-preference){
 html body :is(.scanner-modal-overlay.active:not(#ar-modal):not(#chat-lightbox-modal),.modal-overlay.active)>:is(.scanner-modal-content,.modal-content),
 html body #mobile-missions-modal.active>.mobile-missions-panel,
 html body .desktop-left-column .drawer-view.mobile-dock-window-open,
 html body .desktop-left-column #drawer-view-projects.active,
 html body.tourism-active .desktop-left-column #drawer-view-tourism.active,
 html body .desktop-left-column #sidebar:not(.maps-hidden),
 html body #place-details-overlay.active .place-details-panel,
 html body #ai-chat-panel.active,
 html body #route-builder-panel.active{
  animation:imv-mobile-sheet-enter .48s cubic-bezier(.22,.8,.25,1) backwards!important;
 }
}
@media(max-width:768px){
 body:has(#mobile-place-preview) .ai-chat-bubble{z-index:200000!important;transition-property:transform,opacity,box-shadow,background-color!important}
}
