.shell.market-home, .market-header .shell, body:has(.market-home) .footer {
  width: min(1216px, calc(100% - 64px));
}
.market-header {
  position: relative;
  z-index: 6;
  background: var(--mkt-night);
  color: var(--mkt-night-ink);
  border-bottom: 1px solid #435f82;
}
.market-nav-inner, .market-actions, .market-location, .market-search, .mode-pill {
  display: flex;
  align-items: center;
}
.market-nav-inner { min-height: 58px; gap: 10px; }
.market-header .food-nav-menu { flex: none; }
.market-header .food-nav-menu summary {
  width: 44px; height: 44px; padding: 9px; background: transparent; color: var(--mkt-night-ink);
}
.market-header .food-nav-menu summary svg, .quick-tools svg, .market-search svg {
  display: block;
  width: 19px; height: 19px;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.market-header .food-nav-menu nav { left: 0; right: auto; z-index: 1; }
.market-header .food-nav-menu nav > * { white-space: nowrap; }
.market-header .market-brand {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  color: var(--mkt-night-ink); font: 750 clamp(1.25rem, 2vw, 1.6rem)/1 Manrope, system-ui, sans-serif;
  letter-spacing: -.055em; white-space: nowrap;
}
.market-brand b { color: var(--mkt-mark); font-weight: inherit; }
.market-brand .mark { width: 32px; height: 32px; }
.market-actions { margin-left: auto; gap: 7px; }
.market-header #open-assistant, .market-header .market-actions #open-cart {
  display: inline-flex; align-items: center; justify-content: center;
  position: relative; inset: auto; min-height: 44px;
  border: 0; border-radius: 24px; box-shadow: none;
}
.market-header #open-assistant { gap: 5px; background: #163056; color: var(--mkt-night-ink); box-shadow: inset 0 0 0 1px #5178b7; font-size: .84rem; }
.market-header #open-assistant svg { width: 17px; height: 17px; }
.market-header .market-actions #open-cart { width: 44px; padding: 8px; background: var(--mkt-wash); color: var(--blue); }
.market-header .market-actions #open-cart svg { width: 20px; height: 20px; stroke-width: 2.2; }
.market-header #open-cart, #mobile-cart { text-decoration: none; }
#mobile-cart { font-weight: 730; }
.market-header .market-actions #cart-count { top: -1px; right: -2px; background: var(--blue); color: white; }
.market-header #open-assistant:hover, .market-header .food-nav-menu summary:hover,
.market-header .food-nav-menu[open] summary { background: #28476c; }
.market-header .market-actions #open-cart:hover { background: var(--mkt-mark); }
.market-header :is(.market-brand, .food-nav-menu summary, #open-assistant, #open-cart):focus-visible {
  outline: 2px solid var(--mkt-mark); outline-offset: 2px;
}
.market-location { justify-content: space-between; gap: 10px; padding: 10px 0 3px; }
.market-home #choose-delivery-address {
  min-width: 0; max-width: min(620px, 100%); min-height: 44px;
  display: grid; justify-items: start; gap: 2px; padding: 1px 0;
  background: none; border: 0; border-radius: 4px; color: var(--blue); text-align: left;
}
#choose-delivery-address small { font-size: .8rem; font-weight: 450; color: var(--mkt-muted); }
#choose-delivery-address strong { display: flex; align-items: center; gap: 7px; min-width: 0; max-width: 100%; font-size: .98rem; font-weight: 700; }
.market-home .drop-chevron { flex: none; width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.mode-pill { position: relative; flex: none; }
.mode-pill select {
  appearance: none; border: 0; border-radius: 30px; cursor: pointer; padding: 0 32px 0 17px;
  height: 38px; background: var(--blue); color: white; font-size: .875rem; font-weight: 700;
}
.mode-pill > svg { position: absolute; right: 12px; pointer-events: none; color: white; }
.mode-pill select option { background: white; color: var(--mkt-ink); }
.market-search-dock { position: sticky; top: 0; z-index: 5; padding-block: 5px; background: var(--mkt-canvas); }
.market-search {
  width: 100%; min-height: 44px; padding: 0 14px; gap: 9px;
  border-radius: 999px; color: var(--blue); background: var(--mkt-surface); box-shadow: inset 0 0 0 1px #a9c3e3;
}
.market-search:focus-within { box-shadow: inset 0 0 0 2px var(--blue); }
.market-search svg { flex: none; }
.market-search input {
  flex: 1; min-width: 0; width: 100%; height: 42px; padding: 0; border: 0; outline: 0;
  background: transparent; color: var(--mkt-ink); font-size: 1rem; font-weight: 500;
}
.market-search input::placeholder { color: var(--mkt-muted); opacity: 1; }
.feed-controls { border-bottom: 1px solid var(--mkt-line); }
#cuisine-rail, .quick-tools { display: flex; align-items: center; gap: 10px; overflow-x: auto; scrollbar-width: none; }
#cuisine-rail::-webkit-scrollbar, .quick-tools::-webkit-scrollbar { display: none; }
#cuisine-rail { gap: 9px; min-height: 78px; padding-block: 5px 7px; }
#cuisine-rail .cuisine-option {
  flex: 0 0 auto; display: grid; justify-items: center; align-content: center; gap: 4px;
  min-width: 68px; min-height: 64px; padding: 3px 7px 5px;
  background: transparent; color: var(--mkt-ink); border: 0; border-radius: 10px;
  font-size: .8125rem; line-height: 1.3; font-weight: 600;
}
#cuisine-rail img { width: 38px; height: 38px; object-fit: contain; }
#cuisine-rail .cuisine-option:hover { background: var(--mkt-wash); }
#cuisine-rail .cuisine-option[aria-pressed=true] { background: var(--blue); color: white; }
.quick-tools { padding: 3px 0 9px; }
.quick-tools button {
  display: inline-flex; flex: none; gap: 6px; align-items: center; justify-content: center;
  min-height: 35px; padding: 5px 12px; border-radius: 24px;
  background: var(--mkt-surface); color: var(--mkt-action); box-shadow: inset 0 0 0 1px var(--mkt-line); font-size: .84rem; font-weight: 650;
}
.quick-tools button:hover { background: var(--mkt-wash); }
.quick-tools button[aria-pressed=true], .quick-tools button[aria-expanded=true] { background: var(--blue); color: white; box-shadow: none; }
.quick-tools svg { width: 15px; height: 15px; }
.quick-tools .drop-chevron { width: 12px; height: 12px; }
#filter-count:empty { display: none; }
#cuisine-rail button:focus-visible, .quick-tools button:focus-visible { outline-offset: -2px; }
#cuisine-rail [aria-pressed=true]:focus-visible, .quick-tools :is([aria-pressed=true], [aria-expanded=true]):focus-visible { outline-color: white; }
.fee-panel { display: flex; flex-wrap: wrap; gap: 18px 40px; padding: 16px; margin-top: 8px; background: var(--mkt-surface); border: 1px solid var(--mkt-line); border-radius: 14px; font-size: .9rem; }
.fee-panel > div { display: grid; gap: 3px; }
.fee-panel span, .ranking-note { color: var(--mkt-muted); }
.ranking-note { margin: 10px 0 17px; font-size: .86rem; }
.ranking-note summary { cursor: pointer; width: fit-content; padding-block: 4px; list-style: none; text-decoration: underline; text-underline-offset: 3px; }
.ranking-note summary::-webkit-details-marker { display: none; }
.ranking-note p { max-width: 64ch; margin: 6px 0 0; line-height: 1.5; }
.market-home #browse-filters .filter-sheet { margin-top: 0; }
body:has(.market-home) .footer a { color: var(--mkt-action); text-underline-offset: 3px; }
.market-home .catalog-loading {
  display: flex; grid-column: 1/-1; gap: 16px; overflow: hidden;
}
.catalog-loading i {
  display: block; flex: 0 0 min(66vw, 320px); aspect-ratio: 16 / 9;
  border-radius: 13px; background: var(--mkt-line);
}
body:has(.market-home) .moko-launcher-zone { bottom: max(18px, env(safe-area-inset-bottom)); }
.moko-launcher-zone #open-moko { inset: auto 0 0 auto; width: 44px; height: 44px; }
.moko-launcher-zone #open-moko::before { inset: -3px; }
.moko-launcher-zone #open-moko svg { width: 20px; height: 20px; }
.market-home .restaurant-promo-photo { height: 112px; min-height: 0; }
.market-home .restaurant-promo-copy h2 { font-size: clamp(1.12rem, 2vw, 1.6rem); }
.market-home .restaurant-promo-copy p { font-size: .875rem; }
.market-home .restaurant-promo-moko { width: 48px; }
@media (max-width: 650px) {
  .shell.market-home, .market-header .shell, body:has(.market-home) .footer { width: calc(100% - 32px); }
  .market-header { border-bottom: 0; }
  .market-nav-inner { gap: 5px; min-height: 48px; }
  .market-header .market-brand { gap: 6px; font-size: clamp(1.05rem, 5vw, 1.25rem); }
  .market-brand .mark { width: 26px; height: 26px; }
  .market-header .food-nav-menu { margin-left: -8px; }
  .market-header .food-nav-menu summary { padding: 10px 8px; }
  .market-header .food-nav-menu nav { left: 4px; }
  .market-actions { gap: 1px; }
  .market-header #open-assistant { width: 44px; padding: 7px; }
  .market-header #open-assistant span { display: none; }
  .market-location { padding: 4px 0 0; }
  #choose-delivery-address small { font-size: .8rem; }
  #choose-delivery-address strong { font-size: .94rem; }
  #choose-delivery-address [data-address-label] { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mode-pill select { padding-left: 13px; padding-right: 27px; }
  .mode-pill > svg { right: 9px; }
  .market-search-dock { margin-inline: -16px; padding: 4px 16px; }
  #cuisine-rail, .quick-tools { margin-inline: -16px; padding-inline: 16px; }
  #cuisine-rail { min-height: 73px; gap: 4px; padding-block: 4px 6px; }
  #cuisine-rail .cuisine-option { min-width: 56px; min-height: 61px; padding: 3px 5px 4px; }
  #cuisine-rail img { width: 34px; height: 34px; }
  .quick-tools { gap: 7px; }
  .quick-tools button { padding: 5px 10px; }
}
