:is(#ama-app, #ama-geo-header) .am-home-account-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0 clamp(8px, 1.6vw, 16px);
  min-width: 0;
  max-width: min(28rem, 100%);
  margin-inline-start: auto;
  font-family: system-ui, sans-serif;
}

:is(#ama-app, #ama-geo-header) .am-home-account-group > .ama-home-events { display: none; }

:is(#ama-app, #ama-geo-header) .am-home-account-group > a.amm-ai-launch {
  position: static !important;
  min-block-size: 40px;
  flex: none;
  padding-inline: 14px;
  background: #0049b7;
  color: #fff;
  font-size: 15px;
  box-shadow: 0 4px 14px #0049b733;
}

:is(#ama-app, #ama-geo-header) .am-home-account-group > a.amm-ai-launch:hover { background: #003f9e; }

:is(#ama-app, #ama-geo-header) .am-home-account-group > .am-support-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #202123;
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
}

:is(#ama-app, #ama-geo-header) .am-home-account-group > .am-support-link:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

:is(#ama-app, #ama-geo-header) .am-home-session {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0 6px;
  margin: 0;
  min-width: 0;
  max-width: 100%;
  line-height: 1.45;
  font-size: 15px;
  color: #364354;
  overflow-wrap: anywhere;
}

:is(#ama-app, #ama-geo-header) .am-home-session-state:empty { display: none; }
:is(#ama-app, #ama-geo-header) .am-home-session a { color: #0756bb; text-underline-offset: 2px; }

:is(#ama-app, #ama-geo-header) .am-home-session a.am-home-session-pill {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 44px;
  padding: 0 11px;
  border: 1px solid #c8daef;
  border-radius: 999px;
  background: #fff;
  font: 650 14px/21px system-ui, sans-serif;
  text-decoration: none;
}

:is(#ama-app, #ama-geo-header) .am-home-session a.am-home-session-pill:hover { background: #f4f8ff; }
:is(#ama-app, #ama-geo-header) .am-home-account-group a:focus-visible {
  outline: 2px solid #0756bb;
  outline-offset: 3px;
}

#ama-app .ama-sidebar nav > a.ama-sidebar-directory {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  background: #0049b7;
  color: #fff;
  box-shadow: 0 4px 14px #0049b733;
  font-weight: 700;
  text-decoration: none;
}

#ama-app .ama-sidebar nav > a.ama-sidebar-directory:hover { background: #003f9e; }
#ama-app .ama-sidebar nav > a.ama-sidebar-directory:focus-visible { outline: 2px solid #0756bb; outline-offset: 3px; }
#ama-app .ama-sidebar nav > a.ama-sidebar-all-sections { font-weight: 700; }

.am-shared-masthead { min-width: 0; margin-block-end: 12px; }
body > .am-shared-masthead { margin-inline: clamp(12px, 4vw, 44px); }
.am-shared-masthead > [data-am-shared-banner-host] { display: flow-root; }
.am-shared-masthead [data-am-shared-banner-host] > .ama-banner-frame { --ama-banner-height: 53.76px; }
.am-shared-masthead [data-am-shared-banner-host] .ama-banner-frame .ama-client-ad { padding-block: 3px; }
.am-shared-masthead [data-am-shared-banner-host] .ama-banner-frame [data-home-campaign] .ama-client-ad { padding-block: 2px; }
.am-shared-masthead [data-am-shared-banner-host] .ama-banner-frame [data-home-campaign] .ama-context-copy { gap: 1px; }

@media (width < 768px) {
  .am-shared-masthead [data-am-shared-banner-host] > .ama-banner-frame { --ama-banner-height: 64.512px; }
}

#ama-app .ama-main > .am-shared-masthead ~ .ama-start { margin-block-start: 0; }
#ama-app:not(.ama-native) .ama-main > .am-shared-masthead + .ama-start { margin-block-start: 0; }

.am-shared-search { width: min(100%, 760px); margin-inline: auto; }

:is(#ama-app, body) .am-shared-search > .ama-search {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  min-height: 35.52px;
  gap: 4px;
  padding: 0 4px 0 16px;
  border: 1px solid #dedede;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 4px 18px #00000006;
}

:is(#ama-app, body) .am-shared-search input[type="search"] {
  box-sizing: border-box;
  flex: 1;
  width: 100%;
  min-width: 0;
  min-height: 32px;
  height: auto !important;
  margin: 0;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #202123 !important;
  box-shadow: none !important;
  font: 17px/1.5 system-ui, sans-serif !important;
}

:is(#ama-app, body) .am-shared-search > .ama-search > :is(.ama-voice, .ama-submit) {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px !important;
  min-width: 44px;
  height: 33px !important;
  min-height: 33px !important;
  padding: 0 !important;
  border: 0;
  border-radius: 12px !important;
}

:is(#ama-app, body) .am-shared-search > .ama-search > .ama-voice { background: transparent; color: #444; }
:is(#ama-app, body) .am-shared-search > .ama-search > .ama-voice:hover { background: #f0f0f0; }
:is(#ama-app, body) .am-shared-search > .ama-search > .ama-submit { background: #0756bb; color: #fff; }
:is(#ama-app, body) .am-shared-search > .ama-search > .ama-submit:hover { background: #0049b7; }
:is(#ama-app, body) .am-shared-search > .ama-search > :is(.ama-voice, .ama-submit) > span,
.am-shared-search [hidden], .am-shared-search .ama-voice-status:empty { display: none !important; }

.am-shared-search .ama-search:focus-within { outline: 2px solid #0756bb; outline-offset: 3px; }
.am-shared-search button:focus-visible { outline: 2px solid #0756bb; outline-offset: 2px; }

#ama-app .ama-cabinet-back[hidden] { display: none !important; }

#ama-app .ama-results:has(> .ama-catalog-index) { margin-block-start: 8px; }

#ama-app .ama-results:has(> .ama-catalog-index) > .amseo-results-title {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  overflow: hidden;
  clip-path: inset(50%);
}

#ama-app .ama-catalog-index,
.ama-section-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(16px, 4vw, 40px);
}

#ama-app .ama-section-feed-page { padding-block-start: 6px; }

.ama-section-column { min-inline-size: 0; }

#ama-app .ama-section-column > h2 { margin: 0; }

.ama-section-column > h2 > a {
  display: inline-flex;
  min-block-size: 44px;
  align-items: center;
  color: #0756bb;
  text-underline-offset: 3px;
}

#ama-app .ama-section-preview-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ama-section-preview-list > li {
  display: grid;
  gap: 3px;
  margin: 0;
  padding: 12px 0;
  border-bottom: 1px solid #e4e8ee;
  overflow-wrap: anywhere;
}

.ama-section-preview-list > li > :is(a, span) { font-weight: 600; }
.ama-section-preview-list > li > a { text-underline-offset: 3px; }
.ama-section-preview-list small { font-size: .875rem; color: #4e5c6e; }
.ama-section-preview-list .ama-section-preview-example { font-weight: 500; }

@media (max-width: 600px) {
  #ama-app .ama-catalog-index,
  .ama-section-columns { grid-template-columns: minmax(0, 1fr); row-gap: 12px; }
}

@media (max-width: 800px) {
  :is(#ama-app, body) .am-shared-search > .ama-search { min-height: 33.6px; }
  :is(#ama-app, body) .am-shared-search input[type="search"] { font-size: 16px !important; }
  :is(#ama-app, body) .am-shared-search > .ama-search > :is(.ama-voice, .ama-submit) {
    height: 31px !important;
    min-height: 31px !important;
  }
}

@media (max-width: 520px) {
  :is(#ama-app, body) .am-shared-search > .ama-search { min-height: 53.76px; }
  :is(#ama-app, body) .am-shared-search > .ama-search > :is(.ama-voice, .ama-submit) {
    height: 44px !important;
    min-height: 44px !important;
  }
}

#ama-app.ama-native .ama-orders-view > h1 {
  margin: 0;
  font-size: clamp(1.125rem, 2vw, 1.5rem) !important;
  line-height: 1.25;
}

#ama-app .ama-orders-toolbar {
  --order-map-blue: #164c9f;
  --order-map-border: #b9cbe0;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px 20px;
  margin-block: 4px 0;
}

#ama-app .ama-orders-toolbar-map:empty { display: none; }

#ama-app .ama-orders-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 8px;
  min-inline-size: 0;
  margin-inline-start: auto;
}

#ama-app.ama-native .ama-orders-toolbar-actions > :is(.ama-orders-category-form, .am-listings-actions) {
  display: block !important;
  min-inline-size: 0;
  max-inline-size: 100%;
  padding: 0 !important;
  margin: 0 !important;
  border: 0;
  background: transparent;
}

#ama-app .ama-orders-toolbar [hidden] { display: none !important; }

#ama-app.ama-native .ama-orders-toolbar-actions > .ama-orders-category-form { max-inline-size: 15rem; }
#ama-app .ama-orders-toolbar .ama-order-filters { margin: 0; }

#ama-app .ama-orders-toolbar .ama-order-filters > summary {
  box-sizing: border-box;
  min-height: 44px;
  max-inline-size: 100%;
  padding: .5rem .75rem;
  border: 1px solid var(--order-map-border);
  border-radius: .65rem;
  background: #fff;
  color: #123461;
  font: inherit;
  line-height: 1.45;
  list-style-position: inside;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#ama-app .ama-orders-toolbar .ama-order-filters > summary:hover { background: #eff6ff; }

#ama-app .ama-orders-toolbar .ama-order-filters > label { display: block; max-inline-size: 100%; }

#ama-app.ama-native .ama-orders-toolbar-actions .am-listings-primary {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .5rem .75rem;
  border-radius: .65rem;
  background: #0756bb !important;
  color: #fff;
  line-height: 1.35;
  text-align: center;
}

#ama-app.ama-native .ama-orders-toolbar-actions .am-listings-primary:hover { background: #0049b7 !important; }

@media (max-width: 600px) {
  #ama-app .ama-orders-toolbar { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
  #ama-app .ama-orders-toolbar-actions { display: contents; }
  #ama-app .ama-orders-toolbar-map,
  #ama-app .ama-orders-toolbar-actions > button { grid-column: span 3; }
  #ama-app .ama-orders-toolbar-actions > :is(.am-order-map-filters, .ama-orders-category-form, .am-listings-actions) {
    grid-column: span 2;
  }
  #ama-app .ama-orders-toolbar-actions > :is(.am-order-map-filters[open], .ama-orders-category-form:has(details[open])) {
    grid-column: 1 / -1;
    max-inline-size: none;
  }
  #ama-app .ama-orders-toolbar :is(.am-order-map-control, .ama-order-filters > summary, .am-listings-primary) {
    box-sizing: border-box;
    width: 100%;
    padding-inline: .25rem;
    font-size: .875rem;
    line-height: 1.25;
    text-align: center;
  }
}

/* The AI conversation has its own input. */
body.am-ai-chat-page .am-shared-search { display: none !important; }
