/* Isolate the mobile toolbar from the legacy details/summary box model. */
@media(max-width:700px){
  body.map-first.workspace-layout .atlas-header.map-toolbar{
    --toolbar-control:44px;
    position:absolute;inset:12px 12px auto;display:grid;
    grid-template-columns:var(--toolbar-control) minmax(0,1fr) auto;
    grid-template-rows:var(--toolbar-control);align-items:center;gap:4px;
    height:56px;min-height:56px;max-height:56px;margin:0;padding:5px;
    border:1px solid #dce2d5;border-radius:14px;background:#fafbf6f5;
    box-shadow:0 3px 16px #1d30251a;box-sizing:border-box;pointer-events:auto;
  }
  .workspace-layout .atlas-header.map-toolbar>.workspace-menu-toggle{
    position:static;inset:auto;display:grid;grid-row:1;grid-column:1;place-items:center;
    width:44px;height:44px;min-width:44px;min-height:44px;max-height:44px;
    margin:0;padding:0;border:0;border-radius:9px;background:transparent;
    box-shadow:none;color:#243c30;font-size:0;line-height:1;box-sizing:border-box;
  }
  .atlas-header.map-toolbar>.workspace-menu-toggle svg{display:block}
  .workspace-layout .atlas-header.map-toolbar .atlas-header-actions{
    display:flex;grid-column:3;grid-row:1;align-items:center;align-self:center;gap:0;
    height:44px;min-height:44px;max-height:44px;margin:0;padding:0;border:0;line-height:1;
  }
  .atlas-header.map-toolbar .atlas-header-actions>.account-menu,
  .atlas-header.map-toolbar .atlas-header-actions>.map-presentation{
    display:block;position:relative;align-self:center;flex:0 0 44px;
    width:44px;min-width:44px;max-width:44px;height:44px;min-height:44px;max-height:44px;
    margin:0;padding:0;border:0;border-radius:9px;background:transparent;
    box-shadow:none;box-sizing:border-box;line-height:1;
  }
  .atlas-header.map-toolbar .atlas-header-actions>.account-menu>summary,
  .atlas-header.map-toolbar .atlas-header-actions>.map-presentation>summary{
    position:relative;display:grid;place-items:center;float:none;
    width:44px;min-width:44px;max-width:44px;height:44px;min-height:44px;max-height:44px;
    margin:0;padding:0!important;border:0;border-radius:9px;background:transparent;
    box-shadow:none;box-sizing:border-box;line-height:1;list-style:none;color:#243c30;
  }
  .atlas-header.map-toolbar .atlas-header-actions>details[open]>summary,
  .atlas-header.map-toolbar>.workspace-menu-toggle:hover{background:#e8eee3}
  .atlas-header.map-toolbar .atlas-header-actions>.account-login-entry{display:grid;place-items:center;text-decoration:none;color:#243c30}.atlas-header.map-toolbar .atlas-header-actions>.account-login-entry:hover{background:#e8eee3}
  .atlas-header.map-toolbar .atlas-header-actions>details>summary::-webkit-details-marker{display:none}
  .atlas-header.map-toolbar .account-menu .account-login-icon{display:block;width:20px;height:20px;margin:0}
  .atlas-header.map-toolbar .account-menu .account-login-label{display:none}
  .atlas-header.map-toolbar .account-menu .account-menu-avatar{
    position:absolute;inset:6px auto auto 6px;width:32px;height:32px;
    min-height:0;margin:0;border:1px solid #d3decb;border-radius:50%;object-fit:cover;box-sizing:border-box;
  }
  .atlas-header.map-toolbar .account-menu .account-initials{
    display:grid;place-items:center;float:none;width:32px;height:32px;margin:0;
    border-radius:50%;background:#e6eddf;color:#2b4435;font:600 11px/1 Arial;
  }
  .atlas-header.map-toolbar .account-notification-badge{top:1px;right:0;font-size:9px;line-height:15px}
  .workspace-layout .atlas-header.map-toolbar .address-search-form{
    display:flex;grid-column:2;grid-row:1;align-items:center;gap:6px;
    width:100%;min-width:0;max-width:none;height:44px;min-height:44px;max-height:44px;
    margin:0;padding:0 4px;border:0;border-radius:0;background:transparent;
    box-shadow:none;box-sizing:border-box;line-height:1;
  }
  .workspace-layout .atlas-header.map-toolbar .address-search-form>.search-icon{
    display:grid;place-items:center;flex:0 0 18px;width:18px;height:20px;
    margin:0;padding:0;color:#7c8b76;font-size:0;line-height:1;
  }
  .atlas-header.map-toolbar .address-search-form>.search-icon svg{display:block}
  .workspace-layout .atlas-header.map-toolbar .address-search-form input{
    flex:1 1 auto;width:100%;min-width:0;height:44px;min-height:44px;max-height:44px;
    margin:0;padding:0;border:0;border-radius:0;background:transparent;
    color:#2b4133;font:400 16px/1.3 'DM Sans',Arial;box-shadow:none;box-sizing:border-box;
  }
  .atlas-header.map-toolbar .address-search-form input::placeholder{color:#8a9583;opacity:1}
  .workspace-layout .atlas-header.map-toolbar .address-search-form>button[type=submit]{display:none}
  .workspace-layout .atlas-header.map-toolbar .address-search-form #address-search-clear{
    display:grid;place-items:center;flex:0 0 26px;width:26px;min-width:26px;height:44px;
    margin:0;padding:0;border:0;background:transparent;color:#677660;font:22px/1 Arial;
  }
  .workspace-layout .atlas-header.map-toolbar:has(#address-search-input:focus) .address-search-form{grid-column:2/-1}
  .workspace-layout .atlas-header.map-toolbar:has(#address-search-input:focus) .atlas-header-actions{visibility:hidden;pointer-events:none}
  .workspace-layout .atlas-header.map-toolbar .atlas-context{padding:0 5px;font-size:12px}
  .atlas-header.map-toolbar .account-menu-items{position:fixed;top:calc(var(--atlas-toolbar-bottom,68px) + 8px);right:12px;max-height:calc(var(--app-visible-height,100dvh) - var(--atlas-toolbar-bottom,68px) - 24px);line-height:1.6}
  .atlas-header.map-toolbar :focus-visible{outline:2px solid #bd663f;outline-offset:2px}
}

/* Search results are native controls, not clickable list items. */
.address-results li.address-result{padding:0}
.address-results .address-result-button{display:block;width:100%;min-height:48px;padding:12px 14px;border:0;border-radius:0;background:transparent;color:inherit;font:inherit;line-height:1.5;text-align:left;white-space:normal;overflow-wrap:anywhere}
.address-results .address-result-button:hover{background:var(--ds-surface-muted,#edf0e4)}
.address-results .address-result-button:focus-visible{outline:3px solid var(--ds-brand,#20372f);outline-offset:-3px}
@media(max-width:700px){
  .workspace-layout .atlas-header.map-toolbar .address-search-form #address-search-clear{flex-basis:44px;width:44px;min-width:44px;min-height:44px}
  .workspace-layout .atlas-header.map-toolbar:has(#address-search-input:focus) .address-search-form>button[type=submit]{display:grid;place-items:center;flex:0 0 44px;width:44px;min-width:44px;height:44px;min-height:44px;padding:0;background:transparent;color:var(--ds-brand,#20372f)}
  .atlas-header.map-toolbar .address-search-button-icon{display:block}
  .atlas-header.map-toolbar .address-search-button-label{display:none}
}
