.home {
  padding: max(var(--space-4), env(safe-area-inset-top, 0px)) var(--space-4)
    calc(var(--nav-h) + var(--nav-protrude) + env(safe-area-inset-bottom, 0px) + var(--space-6));
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.search-row {
  position: sticky;
  top: 0;
  z-index: 20;
  margin: calc(-1 * var(--space-2)) calc(-1 * var(--space-4)) 0;
  padding: max(var(--space-2), env(safe-area-inset-top, 0px)) var(--space-4) var(--space-2);
  background: var(--bg);
}

.search-row--stuck {
  border-bottom: 1px solid var(--line);
}

.banner {
  position: relative;
  margin-left: calc(-1 * var(--space-4));
  margin-right: calc(-1 * var(--space-4));
  width: calc(100% + var(--space-4) * 2);
}

.banner__viewport {
  position: relative;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 24px;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

.banner__viewport::-webkit-scrollbar {
  display: none;
}

.banner__track {
  display: flex;
  gap: var(--space-2);
  padding-inline: 24px;
}

.banner__slide {
  flex: 0 0 calc(100% - 48px);
  scroll-snap-align: center;
  display: block;
  aspect-ratio: 5 / 2;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  background: var(--surface-2);
  text-decoration: none;
  color: inherit;
}

.banner__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.banner__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--muted);
  background: var(--surface-2);
}

.banner__dots {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.banner__dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-pill);
  background: var(--dot);
  padding: 0;
  border: none;
  transition: width 0.2s ease;
}

.banner__dot--active {
  width: 18px;
  background: var(--brand-strong);
}

.banner__slide.skeleton {
  animation: skeleton-pulse 1.4s ease-in-out infinite;
}

.search-row__field {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  height: var(--control-h);
  width: 100%;
  padding: 0 var(--space-2) 0 var(--space-4);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-soft);
}

.search-row__field input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 16px;
  color: var(--ink);
  min-width: 0;
}

.search-row__field input::placeholder {
  color: var(--muted);
}

.search-row__field input:focus {
  outline: none;
}

.search-row__divider {
  flex-shrink: 0;
  width: 1px;
  height: 20px;
  background: var(--line);
}

.search-row__pin {
  flex-shrink: 0;
  width: var(--icon-btn);
  height: var(--icon-btn);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-strong);
  border-radius: 50%;
  text-decoration: none;
}

.search-row__pin:active {
  opacity: 0.75;
}

.search-row__field {
  position: relative;
  flex-wrap: wrap;
}

.search-results {
  width: 100%;
  margin-top: 8px;
  max-height: 240px;
  overflow-y: auto;
  border-top: 1px solid var(--line);
  padding-top: 6px;
}

.search-results__row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 4px;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius-md);
}

.search-results__row span {
  font-size: 13px;
  color: var(--muted);
}

.search-results__row:active {
  background: var(--surface-2);
}

.search-results--empty {
  font-size: 13px;
  color: var(--muted);
  padding: 8px 4px;
}

.home-stale {
  margin: 0;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: #fef9c3;
  color: #854d0e;
  font-size: 14px;
  font-weight: 600;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

.section-head__title {
  font-size: 17px;
  font-weight: 700;
}

.kitchens-section__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.kitchen-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  text-decoration: none;
  color: var(--ink);
}

.kitchen-card:active {
  background: #FAFAF8;
}

.kitchen-card__top {
  display: flex;
  gap: 12px;
  align-items: center;
}

.kitchen-card__logo-wrap {
  width: 52px;
  height: 52px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

.kitchen-card__logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kitchen-card__logo-initial {
  font-size: 20px;
  font-weight: 600;
  color: var(--brand-ink);
}

.kitchen-card__body {
  min-width: 0;
  flex: 1;
}

.kitchen-card__title-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.kitchen-card__name {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kitchen-card__open {
  flex: none;
  font-size: 12px;
  font-weight: 500;
  color: #16A34A;
}

.kitchen-card__meta {
  margin-top: 3px;
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kitchen-card__star {
  color: var(--brand);
}

.kitchen-card__dishes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  padding-left: 64px;
}

.kitchen-card__dish {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  color: #374151;
  background: #F3F4F6;
  border-radius: 999px;
  padding: 3px 9px;
}

.kitchen-card--closed {
  opacity: 0.5;
}

.kitchen-card--closed .kitchen-card__logo {
  filter: grayscale(1);
}

.empty-home {
  text-align: center;
  padding: var(--space-8) var(--space-4);
  font-size: 15px;
  color: var(--muted);
}

.tiles {
  margin: 0 calc(-1 * var(--space-4));
}

.tiles__row {
  gap: 10px;
  padding: 0 var(--space-4);
}

.tile {
  flex: 0 0 68px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--ink);
  scroll-snap-align: start;
}

.tile__img {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: #F7F7F5;
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tile__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tile__initial {
  font-size: 22px;
  font-weight: 600;
  color: #C2410C;
}

.tile__name {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  max-width: 68px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tile:active .tile__img {
  border-color: var(--brand);
}

.kitchens-section .section-head {
  margin-bottom: var(--space-2);
}