/* Header wordmark A2: one SVG, viewBox cropped to the ink so 24px / 28px CSS height is the letter height.
   Outfit, Pretendard, and Noto Sans KR load from index.html. Outfit 400/600 are preloaded. */

:root {
  --aisle-produce: #1F7A4D;
  /* Produce text on sage pills. #1F7A4D stays everywhere else. */
  --aisle-produce-on-sage: #1A6B43;
  --aisle-cream: #F7F1E6;
  --aisle-ink: #1C1917;
  --aisle-sage: #D7E6D4;
  --tomato: #C9362A;
  --aisle-tomato: var(--tomato);
  --aisle-gold: #E8B84A;
  --aisle-white: #FFFFFF;
  /* Stone stays on non-text only (borders, icons, dividers). Muted text is --rt-muted. */
  --aisle-muted: #8A837A;
  --rt-muted: #5F5A54;
  /* Locked type scale, 2026-11-09. Outfit; IBM Plex Mono stays on the receipt tape. */
  --aisle-title-size: 28px;
  --aisle-title-weight: 700;
  --aisle-title-lh: 1.15;
  --aisle-title-track: -0.4px;
  --aisle-title-sm-size: 24px;
  --aisle-title-sm-weight: 700;
  --aisle-section-size: 12px;
  --aisle-section-weight: 700;
  --aisle-section-track: 0.06em;
  --aisle-sub-size: 16px;
  --aisle-sub-weight: 600;
  --aisle-body-size: 15px;
  --aisle-body-weight: 400;
  --aisle-body-lh: 1.45;
  --aisle-caption-size: 13px;
  --aisle-caption-weight: 500;
  --aisle-btn-size: 16px;
  --aisle-btn-weight: 600;
  /* 44px row starts 8px under the safe area. Not a fixed notch offset. */
  --header-safe-top: calc(var(--safe-area-inset-top, env(safe-area-inset-top, 0px)) + 8px);
  --header-block: calc(var(--header-safe-top) + 44px);
}

html, body {
  background: var(--aisle-cream) !important;
  color: var(--aisle-ink);
  font-family: Outfit, "Pretendard", "Noto Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
}

/* Stays put while Profile scrolls. Covers the notch only, not the 8px row gap. */
html::before {
  content: "";
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  right: 0;
  height: var(--safe-area-inset-top, env(safe-area-inset-top, 0px));
  background: var(--aisle-cream);
  pointer-events: none;
}

.app {
  background: var(--aisle-cream) !important;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.screen {
  background: var(--aisle-cream);
  padding-bottom: 140px;
  flex: 1;
  max-height: none;
}

.aisle-app-header {
  box-sizing: border-box;
  height: 44px;
  min-height: 44px;
  margin-top: var(--header-safe-top);
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--aisle-cream);
  flex-shrink: 0;
  position: sticky;
  top: var(--header-safe-top);
  z-index: 40;
}

/* Cream paints up through the inset so the notch is not a gap above the row. */
.aisle-app-header::before,
.header.aisle-subview-header::before,
.discover-profile-bar::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: calc(-1 * var(--header-safe-top));
  height: var(--header-safe-top);
  background: inherit;
  pointer-events: none;
}

img.aisle-lockup,
.aisle-lockup {
  height: 24px;
  width: auto;
  max-height: 24px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  object-fit: contain;
  object-position: center center;
  content: url("/brand/aislemates/wordmark-v5.svg?v=8");
  pointer-events: none;
}

/* Sign-in wordmark. Same cropped A2 SVG as the headers, 28px tall. */
img.aisle-signin-wordmark,
.aisle-signin-wordmark {
  height: 28px;
  width: auto;
  max-height: 28px;
  display: block;
  object-fit: contain;
  object-position: center center;
  content: url("/brand/aislemates/wordmark-v5.svg?v=8");
}

.logo {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 36px 0 20px;
  color: transparent;
  font-size: 0;
  letter-spacing: 0;
  text-align: center;
}

.logo img.aisle-lockup {
  margin-left: auto;
  margin-right: auto;
}

/* Sign-in, no-profile and waiting-period screens have no tab bar, so cream
   fills to the bottom edge, under the home bar, and content stays above it. */
.login-screen {
  background: var(--aisle-cream);
  min-height: 100vh;
  padding: 24px 20px;
  /* !important: the page's inline .login-screen padding comes after this file. */
  padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)) !important;
}

.login-screen.sign-in-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Clerk's cardBox is 25rem. A full-width logo centers on the column, which
   sits 20px off that card. Cap both to the card width and center them, at
   every width, so the wordmark shares the card's axis. The block stays
   vertically centered; display:block was pinning it to the top. */
.login-screen.sign-in-centered .logo,
.login-screen.sign-in-centered .clerk-slot,
.login-screen.sign-in-centered .cl-rootBox,
.login-screen.sign-in-centered .cl-cardBox {
  width: 100%;
  max-width: 25rem;
  margin-left: auto;
  margin-right: auto;
}

.login-screen.sign-in-centered .logo {
  margin-top: 0;
  margin-bottom: 20px;
}

.login-screen h2 {
  font-family: Outfit, "Pretendard", "Noto Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
  font-weight: 700;
  color: var(--aisle-ink);
}

.btn-primary {
  background: var(--aisle-produce) !important;
  color: var(--aisle-white) !important;
  border: none;
  font-family: Outfit, "Pretendard", "Noto Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
  font-size: var(--aisle-btn-size);
  font-weight: var(--aisle-btn-weight);
}

.btn.btn-secondary {
  background: var(--aisle-sage) !important;
  color: var(--aisle-produce-on-sage);
  border: 2px solid var(--aisle-produce) !important;
  font-family: Outfit, "Pretendard", "Noto Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
  font-size: var(--aisle-btn-size);
  font-weight: var(--aisle-btn-weight);
  white-space: nowrap;
}

/* Scan review Discard. Same 47px box and 30px radius as .btn.btn-success. */
.btn.btn-destructive-secondary {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 47px;
  padding: 0 15px;
  border-radius: 30px;
  background: transparent;
  color: #C9362A;
  border: 2px solid #C9362A;
  font-family: Outfit, "Pretendard", "Noto Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
  font-size: var(--aisle-btn-size);
  font-weight: var(--aisle-btn-weight);
  line-height: 1.2;
  text-transform: none;
  white-space: nowrap;
}

.btn-success {
  background: var(--aisle-produce) !important;
}

.btn.btn-success {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 47px;
  padding: 0 15px;
  border-radius: 30px;
  font-family: Outfit, "Pretendard", "Noto Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
  font-size: var(--aisle-btn-size);
  font-weight: var(--aisle-btn-weight);
  line-height: 1.2;
  text-transform: none;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--aisle-produce) !important;
  background: var(--aisle-white);
}

.toggle-text span {
  color: var(--aisle-produce) !important;
}

/* Nav — 4 equal tabs, Produce when active */
.nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  background: var(--aisle-white) !important;
  border-top: 1px solid rgba(28, 25, 23, 0.06) !important;
  display: flex;
  justify-content: stretch;
  /* The white bar runs down under the iPhone home bar: its own background
     fills the safe area, and the tabs stay above it. The 85px + inset that
     other rules reserve for the tab bar already counts this inset. */
  padding: 6px 4px calc(18px + env(safe-area-inset-bottom, 0px)) !important;
  z-index: 100;
}

/* The iOS app sets html.keyboard-open while the keyboard is up, so the tab
   bar doesn't ride above the keyboard. */
html.keyboard-open .nav {
  display: none !important;
}

/* With the tab bar hidden, the chat thread drops the 100px it keeps for it
   down to 8px, so the chat box sits just above the keyboard. This selector
   outranks the thread rule in aisle-chat-c.css whatever the load order. */
html.keyboard-open .screen.active.aisle-chat-c-thread {
  padding-bottom: 8px;
}

.nav-btn {
  flex: 1;
  background: none !important;
  border: none;
  color: var(--rt-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 4px;
  min-width: 0;
  border-radius: 0;
}

.nav-btn.active {
  background: none !important;
  color: var(--aisle-produce) !important;
}

.nav-btn .nav-label {
  display: block;
  margin: 0;
  font-family: Outfit, "Pretendard", "Noto Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
  font-size: 10px;
  font-weight: 500;
  line-height: 13px;
  letter-spacing: 0.1px;
}

.nav-btn:not(.active) .nav-label {
  color: var(--rt-muted);
}

.nav-btn svg {
  width: 24px;
  height: 24px;
  display: block;
  flex: 0 0 24px;
  stroke: currentColor;
}

.nav-btn.active svg {
  stroke: var(--aisle-produce);
}

.nav-btn svg.nav-discover {
  stroke: none;
  fill: currentColor;
}

/* Discover hero card */
.aisle-card-wrap {
  display: flex;
  flex-direction: column;
}

.profile-card,
.aisle-hero-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: #2a2420;
  box-shadow: 0 12px 32px rgba(28, 25, 23, 0.12);
  margin-bottom: 0;
}

.aisle-card-wrap .profile-card {
  margin-bottom: 0;
}

.profile-card .profile-img,
.profile-card .video-wrapper {
  width: 100%;
  height: 52vh;
  min-height: 380px;
  max-height: 560px;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  background: #2a2420;
}

.aisle-card-scrim {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 52%;
  background: linear-gradient(to top, rgba(28,25,23,0.78) 0%, rgba(28,25,23,0.42) 42%, rgba(28,25,23,0) 100%);
  pointer-events: none;
  z-index: 1;
}

.profile-card .profile-info,
.aisle-card-overlay {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 18px;
  z-index: 2;
  padding: 0;
  background: transparent;
}

.profile-card .profile-name,
.aisle-card-name {
  font-family: Outfit, "Pretendard", "Noto Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
  font-weight: var(--aisle-title-sm-weight);
  font-size: var(--aisle-title-sm-size);
  color: #fff !important;
  letter-spacing: var(--aisle-title-track);
  line-height: var(--aisle-title-lh);
  text-shadow: 0 1px 8px rgba(0,0,0,0.25);
}

.profile-card .profile-meta,
.profile-card .profile-bio {
  display: none;
}

.score-badge:not(.aisle-match-pct),
.aisle-match-pill {
  display: inline-flex;
  align-items: center;
  margin-top: 8px;
  background: var(--aisle-gold) !important;
  color: var(--aisle-ink) !important;
  font-family: Outfit, "Pretendard", "Noto Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
  font-weight: 700;
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 100px;
}

.profile-items-tag,
.aisle-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.tag,
.aisle-chip {
  font-family: Outfit, "Pretendard", "Noto Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
  font-size: 11px !important;
  font-weight: 500 !important;
  color: var(--aisle-ink) !important;
  background: var(--aisle-cream) !important;
  padding: 6px 10px 6px 12px !important;
  border-radius: 2px 8px 8px 2px !important;
}

.aisle-overlap-caption {
  margin-top: 8px;
  color: rgba(255,255,255,0.82);
  font-size: 12px;
  font-weight: 500;
  font-family: Outfit, "Pretendard", "Noto Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
}

.screen.active {
  overflow-y: auto;
  min-height: 0;
}

.aisle-card-combined-label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
}

.aisle-card-overlay .aisle-card-combined-label .aisle-receipts-label {
  color: #fff;
}

.aisle-card-combined {
  margin: 12px 4px 0;
  max-height: 42vh;
  overflow-y: auto;
}

.aisle-card-wrap > .aisle-card-combined .aisle-receipts-label {
  color: var(--aisle-ink);
}

.swipe-area {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  padding: 12px 10px 8px;
  background: transparent;
}

.swipe-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: none;
  font-size: 26px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.swipe-btn.reject {
  background: var(--aisle-white) !important;
  color: var(--aisle-ink) !important;
  box-shadow: 0 6px 18px rgba(28,25,23,0.10) !important;
}

.swipe-btn.accept {
  width: 68px;
  height: 68px;
  padding: 0;
  overflow: visible;
  position: relative;
  transition: none;
  border-radius: 50%;
}

/* The v5 like mark paints its own circle, so the hit target stays clear.
   This is the Discover deck and the expanded-profile Like button. Who liked
   you match-as is a filled circle and is not included. */
.discover-deck .swipe-btn.accept,
.discover-profile-screen .swipe-btn.accept:not(.match-as-love):not(.match-as-friends) {
  background: transparent !important;
  color: transparent !important;
  box-shadow: none !important;
}

/* Legacy inline rule scales every swipe button to 0.88 on press. Like uses the flash pulse instead. */
.swipe-btn.accept:active {
  transform: none;
}

.swipe-area[data-like-hold] .swipe-btn.reject {
  pointer-events: none;
}

/* Pressed while the like request is in flight. Not a disabled control: the server still accepts a like back at the cap. */
.swipe-btn.accept[data-like-busy] {
  animation: none;
  transform: scale(0.96);
}
.swipe-btn.accept[data-like-busy] .swipe-btn-like-mark-idle {
  animation: none;
  opacity: 0;
}
.swipe-btn.accept[data-like-busy] .swipe-btn-like-mark-flash {
  animation: none;
  opacity: 1;
}

/* Ring stays hidden through the like flash. It shows only while the request is
   in flight, after the same 500ms, whichever is later. */
.swipe-btn.accept[aria-busy="true"]::before {
  content: "";
  position: absolute;
  z-index: 3;
  width: 18px;
  height: 18px;
  left: 50%;
  top: 50%;
  margin-left: -9px;
  margin-top: -9px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  opacity: 0;
  pointer-events: none;
}

.swipe-btn.accept[aria-busy="true"][data-like-busy]::before {
  animation: discover-like-spinner 0.7s linear 500ms infinite;
}

@media (prefers-reduced-motion: reduce) {
  .swipe-btn.accept[aria-busy="true"][data-like-busy]::before {
    animation: discover-like-spinner-still 0s linear 500ms forwards;
  }
}

@keyframes discover-like-spinner-still {
  to { opacity: 1; }
}

@keyframes discover-like-spinner {
  0% { opacity: 1; transform: rotate(0deg); }
  100% { opacity: 1; transform: rotate(360deg); }
}

/* v5 like: 68px circle inside a 92px canvas (shadow and glow). The circle starts
   12px in from the canvas origin, so the artwork hangs off the 68px hit target.
   Default and pressed share that box. Pressed returns after ~1s. */
.swipe-btn.accept .swipe-btn-like-fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--tomato);
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.swipe-btn.accept .swipe-btn-like-fallback svg {
  display: block;
  width: calc(28 / 68 * 100%);
  height: calc(28 / 68 * 100%);
  flex: 0 0 auto;
}

.swipe-btn.accept .swipe-btn-like-marks {
  position: absolute;
  z-index: 1;
  width: calc(92 / 68 * 100%);
  height: calc(92 / 68 * 100%);
  left: calc(-12 / 68 * 100%);
  top: calc(-12 / 68 * 100%);
  pointer-events: none;
}

/* The sheet row's Like is the 92px canvas. The card keeps the 68px hit
   target with this artwork hanging off it. */
.discover-profile-actions:has(.discover-undo-slot) .swipe-btn.accept:not(.match-as-love):not(.match-as-friends) .swipe-btn-like-marks {
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
}

.discover-profile-actions:has(.discover-undo-slot) .swipe-btn.accept:not(.match-as-love):not(.match-as-friends) .swipe-btn-like-fallback {
  width: calc(68 / 92 * 100%);
  height: calc(68 / 92 * 100%);
  left: calc(12 / 92 * 100%);
  top: calc(12 / 92 * 100%);
  inset: auto;
}

.swipe-btn.accept .swipe-btn-like-mark {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
}

.swipe-btn.accept .swipe-btn-like-mark-flash {
  opacity: 0;
}

.swipe-btn.accept[data-like-arm] {
  animation: discover-like-pulse 120ms ease-out forwards;
}

.swipe-btn.accept[data-like-arm] .swipe-btn-like-mark-idle {
  animation: discover-like-mark-idle 1000ms linear forwards;
}

.swipe-btn.accept[data-like-arm] .swipe-btn-like-mark-flash {
  animation: discover-like-mark-flash 1000ms linear forwards;
}

@keyframes discover-like-pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

@keyframes discover-like-mark-flash {
  0%, 85% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes discover-like-mark-idle {
  0%, 85% { opacity: 0; }
  100% { opacity: 1; }
}

.discover-filters {
  background: var(--aisle-white);
  border: 1px solid rgba(28,25,23,0.08);
  border-radius: 16px;
  padding: 10px 12px 8px;
  margin-bottom: 12px;
}

/* Free renders no bar. The card keeps the gap a paid card has under that bar. */
.screen.active.discover-deck > .aisle-card-wrap:first-child {
  margin-top: 12px;
}

.discover-sex-notice {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
}

.discover-sex-notice .looking-for-caption {
  margin: 0;
  flex: 1 1 auto;
}

.filter-label {
  color: var(--rt-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  font-weight: 700;
  display: block;
  margin-bottom: 6px;
}

.filter-group {
  margin-bottom: 10px;
}

.filter-row-intent-gender {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.filter-row-intent-gender > .filter-group {
  flex: 1 1 0;
  min-width: 0;
  margin-bottom: 10px;
}

.filter-row-intent-gender .filter-chips {
  gap: 6px;
}

.filter-row-intent-gender .filter-chip {
  padding: 6px 11px;
  font-size: 13px;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  border: 1.5px solid rgba(28,25,23,0.12);
  background: var(--aisle-white);
  color: var(--aisle-ink);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 700;
  font-family: Outfit, "Pretendard", "Noto Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
}

.filter-chip.on {
  background: var(--aisle-produce) !important;
  border-color: var(--aisle-produce) !important;
  color: var(--aisle-white) !important;
}

/* Plus/Premium Discover: a 36px collapsed row. The sheet holds the filters. */
.discover-filter-row {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 36px;
  margin: 0 0 8px;
  min-width: 0;
  box-sizing: border-box;
}

.discover-filter-pill {
  position: relative;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  margin: 0;
  padding: 0 14px 0 14px;
  border: 1px solid #E5DED3;
  border-radius: 18px;
  background: #fff;
  color: var(--aisle-ink);
  font-family: Outfit, "Pretendard", "Noto Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
  font-size: var(--aisle-btn-size);
  font-weight: var(--aisle-btn-weight);
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}

.discover-filter-glyph {
  display: block;
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  color: var(--aisle-ink);
}

.discover-filter-pill-label {
  color: var(--aisle-ink);
}

.discover-filter-count {
  position: absolute;
  top: -6px;
  right: -6px;
  /* Header is z-index 40 and covers the part of this circle that sits above the row. */
  z-index: 41;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--tomato);
  color: #fff;
  font-family: Outfit, "Pretendard", "Noto Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
  font-size: 11px;
  font-weight: 600;
  line-height: 18px;
  text-align: center;
}

.discover-filter-summary {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--rt-muted);
  font-family: Outfit, "Pretendard", "Noto Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 36px;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}

.discover-filter-layer {
  position: fixed;
  inset: 0;
  z-index: 130;
}

.discover-filter-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 25, 23, 0.43);
}

.discover-filter-sheet {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  max-height: calc(100% - 24px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 20px 20px 0 0;
  box-sizing: border-box;
  overflow: hidden;
}

.discover-filter-sheet-head {
  flex: 0 0 auto;
  touch-action: none;
  cursor: grab;
}

.discover-filter-grabber {
  width: 40px;
  height: 5px;
  margin: 8px auto 0;
  border-radius: 999px;
  background: #E5DED3;
}

.discover-filter-sheet-title {
  margin: 12px 16px 8px;
  font-family: Outfit, "Pretendard", "Noto Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--aisle-ink);
}

.discover-filter-sheet-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0 16px 12px;
}

.discover-filter-sheet .discover-filters {
  background: transparent;
  border: 0;
  border-radius: 0;
  margin: 0;
  padding: 0;
  width: auto;
  max-width: none;
}

.discover-filter-sheet .filter-row-intent-gender {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

.discover-filter-sheet .filter-row-intent-gender > .filter-group {
  flex: 0 0 auto;
  width: 100%;
  min-width: 0;
  margin-bottom: 10px;
}

.discover-filter-sheet .filter-group {
  margin-bottom: 10px;
}

.discover-filter-sheet .discover-filters > .filter-group:last-child {
  margin-bottom: 0;
}

.discover-filter-sheet .filter-label {
  font-family: Outfit, "Pretendard", "Noto Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
  color: var(--rt-muted);
  margin-bottom: 4px;
}

.discover-filter-sheet .filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.discover-filter-sheet .filter-chips .filter-chip {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  margin: 0;
  padding: 0 10px;
  border: 1px solid #E5DED3;
  background: #fff;
  color: var(--aisle-ink);
  font-family: Outfit, "Pretendard", "Noto Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

.discover-filter-sheet .filter-chips .filter-chip.on {
  background: #D7E6D4 !important;
  border-color: #D7E6D4 !important;
  color: var(--aisle-ink) !important;
}

.discover-distance {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.discover-distance-value {
  flex: 0 0 auto;
  min-width: 48px;
  font-family: Outfit, "Pretendard", "Noto Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--aisle-ink);
}

.discover-distance input[type="range"] {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  margin: 0;
  accent-color: #1F7A4D;
}

/* The footer runs down under the iPhone home bar: the bottom inset is added
   to its height and padding, so Show Results stays in the 90px above it.
   env() is 0 on desktop web, where the footer stays 90px. */
.discover-filter-sheet-footer {
  flex: 0 0 calc(90px + env(safe-area-inset-bottom, 0px));
  height: calc(90px + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: #fff;
  border-top: 1px solid rgba(28, 25, 23, 0.12);
}

.discover-filter-reset {
  flex: 0 0 auto;
  margin: 0;
  padding: 8px 4px;
  border: 0;
  background: transparent;
  color: var(--aisle-ink);
  font-family: Outfit, "Pretendard", "Noto Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.discover-filter-show {
  flex: 1 1 auto;
  height: 52px;
  margin: 0;
  border: 0;
  border-radius: 999px;
  background: var(--tomato);
  color: #fff;
  font-family: Outfit, "Pretendard", "Noto Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
}

.empty.discover-filter-empty {
  color: var(--aisle-ink);
}

.empty.discover-filter-empty p {
  flex: 0 0 auto;
  margin: 0 0 16px;
  font-family: Outfit, "Pretendard", "Noto Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--aisle-ink);
}

.empty.discover-filter-empty > .discover-filter-empty-edit {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: 44px;
  margin: 0;
  padding: 0 18px;
  border: 1px solid #E5DED3;
  border-radius: 22px;
  background: #fff;
  color: var(--aisle-ink);
  font-family: Outfit, "Pretendard", "Noto Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
  cursor: pointer;
}

.favorite-food-block {
  margin: 8px 0 14px;
}

.favorite-food-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.favorite-food-label-row .looking-for-label {
  display: inline;
  margin-bottom: 0;
}

.favorite-food-count {
  flex: none;
  font-family: Outfit, "Pretendard", "Noto Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: var(--rt-muted);
  letter-spacing: 0;
  text-transform: none;
}

.profile-edit-form .favorite-food-input {
  width: 100%;
  box-sizing: border-box;
  background: #fff;
  border: 1.5px solid rgba(28, 25, 23, 0.12);
  border-radius: 14px;
  padding: 12px 14px;
  font-family: Outfit, "Pretendard", "Noto Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #1C1917;
}

.profile-edit-form .favorite-food-input:focus {
  border-color: #1F7A4D;
  outline: none;
}

.favorite-food-hint {
  margin: 8px 0 0;
  font-family: Outfit, "Pretendard", "Noto Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
  font-weight: 400;
  font-size: 13px;
  line-height: 1.4;
  color: var(--rt-muted);
}

.looking-for-block {
  margin: 8px 0 14px;
}

.looking-for-label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  font-weight: 700;
  color: var(--rt-muted);
  margin-bottom: 8px;
}

.looking-for-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(28,25,23,0.03);
  border-radius: 18px;
  padding: 4px;
}

.looking-for-chip {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--rt-muted);
  font-family: Outfit, "Pretendard", "Noto Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
  font-weight: 700;
  font-size: 15px;
  padding: 12px 16px;
  border-radius: 14px;
  cursor: pointer;
}

.looking-for-chip.on {
  background: var(--aisle-white);
  color: var(--aisle-ink);
  box-shadow: 0 6px 18px rgba(28,25,23,0.08);
}

.looking-for-caption {
  margin: 8px 0 0;
  color: var(--rt-muted);
  font-size: 13px;
  line-height: 1.4;
  font-family: Outfit, "Pretendard", "Noto Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
}

.intent-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--aisle-sage);
  color: var(--aisle-produce-on-sage, #1A6B43);
  font-family: Outfit, "Pretendard", "Noto Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
  font-size: 11px;
  font-weight: 700;
}

.change-photo-btn:hover {
  background: rgba(31,122,77,0.9) !important;
}

/* Matches tab layout (design, Nov 8).
   - No page title: the "Matches" h2 stays for screen readers only, so
     "Liked You" sits where the title was, at the screen's normal top gap.
   - "Liked You" and "Matches" match the Receipts tab's "Recent Receipts"
     heading: .receipts-heading at 15px, 16px above (none at the top), 10px
     below.
   - Headings and cards share a 16px left edge. */
.screen.aisle-matches-screen {
  padding-left: 16px;
  padding-right: 16px;
}

.screen.aisle-matches-screen > .aisle-matches-title {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.aisle-matches-screen > .liked-you {
  margin: 0;
}

.aisle-matches-screen .liked-you-head {
  margin: 0 0 10px;
}

/* See All keeps its tap padding without making the heading row taller. */
.aisle-matches-screen .liked-you-see-all {
  margin: -8px 0;
}

.aisle-matches-screen .liked-you-title,
.aisle-matches-screen > .liked-you-list-title {
  font-size: var(--aisle-section-size);
  font-weight: var(--aisle-section-weight);
  line-height: normal;
  letter-spacing: var(--aisle-section-track);
  text-transform: uppercase;
  color: var(--rt-muted);
  margin: 0;
}

.aisle-matches-screen > .liked-you-list-title {
  margin: 16px 0 10px;
}

/* With no Liked You strip, "Matches" is the first heading. */
.aisle-matches-screen > .aisle-matches-title + .liked-you-list-title {
  margin-top: 0;
}

/* Recipe pairing pill on Matches rows (design, Nov 8): the chef's hat
   becomes an outline fork and spoon in a pill shaped exactly like the
   basket and ID pills (.gm-badge-pill at the Matches 18px icon size:
   2px 8px padding, full round, same shadow, so 34 by 22). Soft tan with the
   icon in #8E5F33 (4.4:1 on the tan). The markup and its tap target live
   in chat-c-patch.js and aisle-chat-c.css; these rules are one class deeper
   so they win, and the 44px hit area still centers on the pill. */
.aisle-match-top .match-recipe-hat-slot {
  width: 34px;
  height: 22px;
  flex: 0 0 auto;
  /* Centered on the name line, which the badge pills fill, so the recipe
     pill shares their top edge whatever the font's baseline. */
  align-self: center;
}

.aisle-match-top .match-recipe-hat {
  box-sizing: border-box;
  width: 34px;
  height: 22px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #F3E4C8 url("/brand/recipe-pairing.svg") center / 18px 18px no-repeat;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.aisle-match-top .match-recipe-hat img {
  display: none;
}

/* Matches card layout (design, Nov 8, follow-up to the recipe pill). The
   name gets its own line across the text column, with the time at that
   line's right end; the name wraps to two lines, then ends in an ellipsis.
   The badge pills (basket, ID) and the recipe pill sit on a row of their own
   under it, left aligned, in the same sizes and gaps as before (4px inside
   the badge pair, 8px to the recipe pill). Members only get the pills they
   have, so the recipe pill moves left when there are no badges. The Love tag,
   preview, match % and the rest stay below, unchanged.
   The markup lives in chat-c-patch.js, aisle-chat-c.css and
   member-badges.css, which load later, so these selectors carry more classes
   than theirs. The name wrapper and the badge line become display: contents,
   so the name, the badge pair, the incognito mark and the recipe pill are all
   items of one wrapping flex row, without changing the markup. A full-width,
   zero-height break after the time ends the name line, so the time's width
   never counts on the pill line. If the pills don't fit the column (three
   pills on a 320 phone), the pill line wraps instead of overflowing. */
.match-card.aisle-match-row .aisle-match-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-start;
  column-gap: 8px;
  row-gap: 0;
  min-width: 0;
}

.match-card.aisle-match-row .aisle-match-top::after {
  content: '';
  order: 3;
  flex: 0 0 100%;
  width: 100%;
  height: 0;
}

.match-card.aisle-match-row .aisle-match-top .match.name,
.match-card.aisle-match-row .aisle-match-top .match.name > .gm-badge-line {
  display: contents;
}

/* The name shrinks first, so a long name wraps and the time stays put. */
.match-card.aisle-match-row .aisle-match-top .gm-name-truncate {
  order: 1;
  flex: 1 1 0;
  align-self: flex-start;
  width: auto;
  min-width: 0;
  max-width: none;
  line-height: 20px;
  white-space: normal;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
}

.match-card.aisle-match-row .aisle-match-top .aisle-match-time {
  order: 2;
  flex: 0 0 auto;
  align-self: flex-start;
  line-height: 20px;
  padding-top: 1px;
  white-space: nowrap;
}

/* The 320 lifts in aisle-chat-c.css and #325 lined the pills up with a
   one-line name; the pills have their own line now, so they stay at 0.
   Pill row spacing (design, Nov 8, follow-up to #327; #334 only reached
   cards with badge pills): every card's pill row sits close under the name
   (about 4pt below the name's baseline, clear of descenders), and the
   Love/Friends row sits 10px under it (4px under the pills, the 2px column
   gap, 4px above the row). Every card has the recipe pill, so every card
   has a pill row. The 4px bottom margin also spaces a wrapped pill line. */
.match-card.aisle-match-row .aisle-match-top .gm-badge-pair,
.match-card.aisle-match-row .aisle-match-top .incognito-card-glyph,
.match-card.aisle-match-row .aisle-match-top .match-recipe-hat-slot {
  order: 4;
  flex: 0 0 auto;
  align-self: center;
  top: 0;
  margin: 0 0 4px;
}

.match-card.aisle-match-row .aisle-match-top + .aisle-match-sub {
  margin-top: 4px;
}

/* Matches */
.aisle-matches-title {
  font-family: Outfit, "Pretendard", "Noto Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
  font-weight: var(--aisle-title-weight);
  font-size: var(--aisle-title-size);
  line-height: var(--aisle-title-lh);
  letter-spacing: var(--aisle-title-track);
  color: var(--aisle-ink);
  padding: 4px 0 16px;
  margin: 0;
}

.match-card {
  font-family: Outfit, "Pretendard", "Noto Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
  background: var(--aisle-white);
  border-radius: 20px;
  padding: 12px !important;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 16px rgba(28,25,23,0.05);
  border-bottom: none !important;
  margin-bottom: 10px;
}

.match-card:hover {
  background: var(--aisle-white);
}

.match-card .match.name,
.match-card .match-name {
  font-family: Outfit, "Pretendard", "Noto Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
  font-weight: var(--aisle-sub-weight);
  font-size: var(--aisle-sub-size);
  letter-spacing: normal;
  text-transform: none;
  color: var(--aisle-ink);
}

.match-card .score-badge,
.match-card .aisle-match-pct {
  display: block;
  margin-top: 3px;
  background: none;
  color: var(--aisle-produce);
  font-weight: 600;
  font-size: var(--aisle-caption-size, 13px);
  padding: 0;
  border-radius: 0;
}

.chat-btn {
  background: var(--aisle-tomato) !important;
  color: var(--aisle-white) !important;
  font-family: Outfit, "Pretendard", "Noto Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
  font-weight: var(--aisle-btn-weight);
  font-size: var(--aisle-btn-size);
  text-transform: none;
  border: none;
  border-radius: 100px !important;
  padding: 10px 18px !important;
}

.chat-btn:hover {
  background: #c43328 !important;
}

.match-avatar,
img.match-avatar,
.aisle-avatar {
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

/* Profile */
.aisle-profile-name {
  font-family: Outfit, "Pretendard", "Noto Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
  font-weight: var(--aisle-title-weight);
  font-size: var(--aisle-title-size);
  letter-spacing: var(--aisle-title-track);
  line-height: var(--aisle-title-lh);
  text-transform: none;
  color: var(--aisle-ink);
  margin-top: 12px;
}

.aisle-profile-bio,
.profile-bio {
  margin-top: 4px;
  font-size: var(--aisle-body-size);
  font-weight: var(--aisle-body-weight);
  line-height: var(--aisle-body-lh);
  color: var(--aisle-ink);
  font-family: Outfit, "Pretendard", "Noto Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
}

.screen.active > div[style*="relative"] img,
.screen.active > div[style*="320px"] {
  border-radius: 24px;
}

.grocery-header,
.aisle-receipts-label {
  font-family: Outfit, "Pretendard", "Noto Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--aisle-ink);
  display: flex;
  align-items: center;
  gap: 8px;
}

.grocery-store-badge {
  background: var(--aisle-sage) !important;
  color: var(--aisle-produce) !important;
}

.aisle-tick {
  width: 18px;
  height: 18px;
  background: var(--aisle-gold);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}

.aisle-tick::after {
  content: "";
  width: 8px;
  height: 5px;
  border-left: 1.6px solid var(--aisle-ink);
  border-bottom: 1.6px solid var(--aisle-ink);
  transform: rotate(-45deg) translate(0, -1px);
}

.grocery-section,
.receipt-card {
  background: #EDE4D0;
  border: 1px solid rgba(28,25,23,0.08);
  border-radius: 4px 4px 12px 12px;
  padding: 12px 14px 10px;
  position: relative;
}

.grocery-item-row,
.grocery-item-name,
.grocery-item-price,
.receipt-store,
.receipt-items {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  color: var(--aisle-ink);
}

.receipt-store,
.aisle-receipts-label + .grocery-store-badge {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--aisle-produce);
}

.grocery-item-price,
.grocery-item-row span:last-child {
  color: var(--rt-muted);
}

.grocery-total {
  border-top: 2px solid var(--aisle-produce) !important;
  color: var(--aisle-produce) !important;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
}

.aisle-add-receipt {
  margin-top: 12px;
  width: 100%;
  min-height: 72px;
  border: 1.8px dashed var(--aisle-produce);
  background: var(--aisle-sage);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--aisle-produce-on-sage);
  font-family: Outfit, "Pretendard", "Noto Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
  font-weight: var(--aisle-btn-weight);
  font-size: var(--aisle-btn-size);
  white-space: nowrap;
  cursor: pointer;
}

.aisle-add-receipt:hover {
  background: #cfe3cc;
}

.profile-edit-form input,
.profile-edit-form select,
.profile-edit-form textarea {
  background: var(--aisle-white);
  border: 1px solid rgba(28,25,23,0.10);
  border-radius: 14px;
  font-family: Outfit, "Pretendard", "Noto Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
}

.profile-edit-saved {
  color: var(--aisle-produce);
}

/* Safety 1C: errors in Edit Profile are red, like the prompts error, and
   never the green Saved line (design, Nov 15). A refused field's line sits
   right under it, and the field is outlined until the person types there. */
.profile-edit-error {
  margin: 6px 0 10px;
  font-size: 14px;
  font-weight: 500;
  color: #A32A20;
}

.profile-edit-form .profile-edit-invalid,
.profile-edit-form .profile-edit-invalid:focus {
  border: 2px solid #A32A20 !important;
  border-color: #A32A20 !important;
  outline: none;
}

/* Sign Out is the outlined secondary button: 48pt tall, 12pt corners, Outfit,
   the same shape as the #276 Sign Out (design, Nov 9). */
.aisle-logout-btn,
button.aisle-logout-btn,
button.aisle-logout-btn:disabled {
  background: transparent !important;
  color: var(--aisle-tomato) !important;
  border: 1.5px solid var(--aisle-tomato) !important;
  box-shadow: none !important;
  margin-top: 24px;
  width: 100%;
  height: 48px;
  border-radius: 12px;
  font-family: Outfit, "Pretendard", "Noto Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
  font-weight: 600;
  font-size: 16px;
}

button.aisle-logout-btn:disabled {
  cursor: default;
}

.header {
  background: var(--aisle-cream);
  border-bottom: 1px solid rgba(28,25,23,0.06);
}

.header-title {
  font-family: Outfit, "Pretendard", "Noto Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
  font-weight: 700;
}

/* B3 sage-disc back — 44x44 hit, 32px sage disc. Kill .back-btn 22px text styles. */
button.back-btn.aisle-back-b3,
.back-btn.aisle-back-b3 {
  font-size: 0;
  line-height: 0;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  margin: 0 0 0 16px;
  background: none;
  border: none;
  border-radius: 0;
  color: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
}
button.back-btn.aisle-back-b3:hover,
.back-btn.aisle-back-b3:hover {
  background: none;
}
button.back-btn.aisle-back-b3 img,
.back-btn.aisle-back-b3 img {
  display: block;
  width: 44px;
  height: 44px;
  pointer-events: none;
}

.messages {
  background: var(--aisle-cream);
}

.msg.me {
  background: var(--aisle-produce) !important;
}

.chat-send {
  background: var(--aisle-produce) !important;
}

.ocr-area {
  border: 1.8px dashed var(--aisle-produce);
  background: var(--aisle-sage);
  border-radius: 18px;
}

/* The Matches tab's "Liked You" and "Matches" headings reuse the Receipts
   section heading; size and spacing are set with the Matches rules below. */
.receipts-heading,
.aisle-matches-screen .liked-you-title,
.aisle-matches-screen > .liked-you-list-title {
  font-family: Outfit, "Pretendard", "Noto Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
  font-size: var(--aisle-section-size);
  font-weight: var(--aisle-section-weight);
  letter-spacing: var(--aisle-section-track);
  text-transform: uppercase;
  color: var(--rt-muted);
}

/* My Receipts is the page title. Recent Receipts stays the section heading. */
h2.receipts-heading {
  font-size: var(--aisle-title-size);
  font-weight: var(--aisle-title-weight);
  line-height: var(--aisle-title-lh);
  letter-spacing: var(--aisle-title-track);
  text-transform: none;
  color: var(--aisle-ink);
}

/* Quota lines under My Receipts: one block, 8px under the title, 2px between
   lines, 16px before the Upload card. Inline title margin is 16px. */
.screen > h2:has(+ p.receipt-date[data-usage="receipt_scans"]),
.screen > h2:has(+ p.receipt-date[data-usage="recipe_suggestions"]) {
  margin-bottom: 8px !important;
}

.aisle-caption {
  font-size: var(--aisle-caption-size);
  font-weight: var(--aisle-caption-weight);
  color: var(--rt-muted);
}

.receipt-count {
  margin-left: 8px;
  flex: none;
  white-space: nowrap;
  font-size: 11px;
  font-weight: var(--aisle-caption-weight);
  color: var(--rt-muted);
}

.screen > p.receipt-date[data-usage="receipt_scans"],
.screen > p.receipt-date[data-usage="recipe_suggestions"] {
  margin: 0;
  font-family: Outfit, "Pretendard", "Noto Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
  font-weight: var(--aisle-caption-weight);
  font-size: var(--aisle-caption-size);
  line-height: 18px;
  color: var(--rt-muted);
}

.screen > p.receipt-date[data-usage="receipt_scans"] + p.receipt-date[data-usage="recipe_suggestions"],
.screen > p.receipt-date[data-usage="recipe_suggestions"] + p.receipt-date[data-usage="receipt_scans"] {
  margin-top: 2px;
}

.screen > p.receipt-date[data-usage="receipt_scans"]:not(:has(+ p.receipt-date[data-usage])),
.screen > p.receipt-date[data-usage="recipe_suggestions"]:not(:has(+ p.receipt-date[data-usage])) {
  margin-bottom: 16px;
}

.ocr-area .btn,
.ocr-area button {
  background: var(--aisle-produce) !important;
  color: var(--aisle-white) !important;
  border: none !important;
}

.upload-card {
  font-family: Outfit, "Pretendard", "Noto Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
  padding-top: 12px;
}

.upload-card-mark {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
  color: #8A837A;
}

.upload-card-title {
  margin: 0 0 8px;
  font-family: Outfit, "Pretendard", "Noto Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
  font-weight: var(--aisle-sub-weight);
  font-size: var(--aisle-sub-size);
  line-height: 22px;
  letter-spacing: normal;
  text-transform: none;
  color: var(--aisle-ink);
}

.upload-card-body {
  margin: 0 0 16px;
  font-family: Outfit, "Pretendard", "Noto Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
  font-weight: var(--aisle-body-weight);
  font-size: var(--aisle-body-size);
  line-height: var(--aisle-body-lh);
  color: var(--rt-muted);
}

.upload-card-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.upload-card-actions .btn,
.upload-card-actions label {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  font-family: Outfit, "Pretendard", "Noto Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
  font-size: var(--aisle-btn-size);
  font-weight: var(--aisle-btn-weight);
  text-transform: none;
}

.upload-card-actions .btn svg {
  color: #FFFFFF;
  flex: 0 0 auto;
}

.upload-card-actions label svg {
  color: #1F7A4D;
  flex: 0 0 auto;
}

.ocr-area label {
  color: var(--aisle-produce) !important;
  border-color: var(--aisle-produce) !important;
  background: var(--aisle-white) !important;
}

.ocr-area.upload-card .upload-card-actions label {
  box-sizing: border-box;
  height: 48px;
  padding: 0 16px;
  border: 0;
  border-radius: 30px;
  box-shadow: inset 0 0 0 1.5px #1F7A4D;
  background: var(--aisle-cream) !important;
  color: #1F7A4D !important;
}

/* In the app, camera or photo access is off (public/native-photo.js): a
   plain line, not an error, and an outlined Open Settings like Gallery. */
.upload-camera-off {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

.upload-camera-off-copy {
  margin: 0;
  font-family: Outfit, "Pretendard", "Noto Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
  font-size: 15px;
  font-weight: var(--aisle-body-weight);
  line-height: 1.4;
  color: var(--aisle-ink);
  text-align: center;
}

.ocr-area.upload-card .upload-camera-settings {
  box-sizing: border-box;
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 0;
  border-radius: 30px;
  box-shadow: inset 0 0 0 1.5px #1F7A4D;
  /* .ocr-area button fills every button green with !important. */
  background: var(--aisle-cream) !important;
  color: #1F7A4D !important;
  font-family: Outfit, "Pretendard", "Noto Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
  font-size: var(--aisle-btn-size);
  font-weight: var(--aisle-btn-weight);
  cursor: pointer;
}

.ocr-area.upload-card .upload-camera-settings:focus-visible {
  outline: 2px solid #1F7A4D;
  outline-offset: 2px;
}

.empty,
.empty h3,
.empty p {
  font-family: Outfit, "Pretendard", "Noto Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
}
.empty h3 {
  font-family: Outfit, "Pretendard", "Noto Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
  font-weight: var(--aisle-sub-weight);
  font-size: var(--aisle-sub-size);
  color: var(--aisle-ink);
}

.liked-you-list-title + .empty {
  text-align: center;
}

.liked-you-list-title + .empty h3 {
  font-family: Outfit, "Pretendard", "Noto Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
  font-weight: var(--aisle-sub-weight);
  font-size: var(--aisle-sub-size);
  line-height: 1.2;
  color: var(--aisle-ink);
}

.liked-you-list-title + .empty p {
  font-family: Outfit, "Pretendard", "Noto Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
  font-weight: var(--aisle-caption-weight);
  font-size: var(--aisle-caption-size);
  line-height: 1.35;
  color: var(--rt-muted);
}

/* Kill leftover pink / purple dating palette */
[style*="#e91e63"],
[style*="#e53935"] {
  /* inline leftovers restyled where we can reach via classes above */
}

.crop-apply-btn,
.crop-handle {
  background: var(--aisle-produce);
  border-color: var(--aisle-produce);
}


/* Matches: stack name over % match */
.aisle-match-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  min-width: 0;
  flex: 1;
}
.aisle-match-info .match.name,
.aisle-match-info .match-name {
  display: block;
}
.aisle-match-info .score-badge,
.aisle-match-info .aisle-match-pct {
  display: block;
  margin-top: 0;
  background: none;
  color: var(--aisle-produce);
  font-weight: 600;
  font-size: var(--aisle-caption-size, 13px);
  padding: 0;
  border-radius: 0;
}

/* Edit profile control */
.aisle-edit-profile,
#aisle-edit-profile {
  margin-top: 8px;
  text-align: center;
  font-size: var(--aisle-caption-size);
  font-weight: var(--aisle-caption-weight);
  color: var(--rt-muted);
  background: none;
  border: none;
  width: 100%;
  cursor: pointer;
  font-family: Outfit, "Pretendard", "Noto Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
  display: block;
  padding: 8px 0 4px;
}

/* Combined Receipts — stacked scalloped cards */
.aisle-combined-wrap {
  margin-top: 14px;
}
.aisle-receipts,
.receipts {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.receipt,
.aisle-receipt-card {
  background: #EDE4D0;
  border: 1px solid rgba(28,25,23,0.08);
  border-radius: 4px 4px 12px 12px;
  padding: 12px 14px 10px;
  position: relative;
}
.receipt::before,
.aisle-receipt-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -6px;
  height: 12px;
  background: radial-gradient(circle at 9px 6px, var(--aisle-cream) 4.2px, #EDE4D0 4.4px) 0 0 / 18px 12px repeat-x;
}
.receipt .store,
.aisle-receipt-card .store {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--aisle-produce);
  margin-bottom: 4px;
}
.receipt .item,
.aisle-receipt-card .item {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  color: var(--aisle-ink);
  display: flex;
  justify-content: space-between;
  line-height: 1.4;
}
.receipt .item span:last-child,
.aisle-receipt-card .item span:last-child {
  color: var(--aisle-muted);
}

.receipt-store,
.receipt .store,
.aisle-receipt-card .store {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.receipt .store > span:not(.receipt-count),
.receipt-store > span:not(.receipt-count),
.aisle-receipt-card .store > span:not(.receipt-count) {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.receipt-delete-btn {
  flex-shrink: 0;
  border: none;
  background: transparent;
  color: var(--aisle-tomato);
  font-family: Outfit, "Pretendard", "Noto Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
  font-size: var(--aisle-btn-size);
  font-weight: var(--aisle-btn-weight);
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
  cursor: pointer;
  padding: 4px 8px;
  margin: 0;
  border-radius: 999px;
}

.receipt-delete-btn:hover {
  background: rgba(201, 54, 42, 0.12);
}

.receipt-delete-btn:disabled {
  opacity: 0.5;
  cursor: default;
}

/* Recipe suggestion card — locked artwork. Scoped so app chrome stays as it is. */
.recipe-card {
  position: relative;
  margin-top: 18px;
  background: #FFFFFF;
  border-radius: 22px;
  padding: 20px 18px 16px;
  box-shadow: 0 8px 24px rgba(28, 25, 23, 0.05);
  text-align: left;
  color: #1C1917;
  font-family: Outfit, "Pretendard", "Noto Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
}

.recipe-card .recipe-photo {
  position: relative;
  margin: -20px -18px 16px;
  aspect-ratio: 16 / 9;
  background: #D7E6D4;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  overflow: hidden;
}

.recipe-card.recipe-card-shared .recipe-photo {
  margin-top: -18px;
}

.recipe-card .recipe-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 150ms ease;
}

.recipe-card .recipe-photo.is-loaded img {
  opacity: 1;
}

.recipe-card .recipe-photo:not(.is-loaded):not(.recipe-photo-empty)::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, #D7E6D4 0%, #eef6ec 42%, #D7E6D4 84%);
  background-size: 220% 100%;
  animation: recipe-photo-shimmer 1.15s ease-in-out infinite;
}

@keyframes recipe-photo-shimmer {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}

.recipe-load-photo {
  position: relative;
  aspect-ratio: 16 / 9;
  margin: 0 0 12px;
  background: #D7E6D4;
  border-radius: 16px;
  overflow: hidden;
}

.recipe-load-photo::before,
.recipe-shimmer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, #D7E6D4 0%, #eef6ec 42%, #D7E6D4 84%);
  background-size: 220% 100%;
  animation: recipe-photo-shimmer 1.15s ease-in-out infinite;
}

.recipe-shimmer {
  position: relative;
  display: block;
  overflow: hidden;
  background: #D7E6D4;
  border-radius: 6px;
}

.recipe-load-photo-empty {
  display: flex;
  align-items: center;
  justify-content: center;
}

.recipe-load-photo-empty::before {
  display: none;
  animation: none;
}

.recipe-load-photo-empty svg {
  width: 32px;
  height: 32px;
  display: block;
}

.recipe-load-status {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  z-index: 1;
  margin: 0;
  padding: 0 16px;
  transform: translateY(-50%);
  text-align: center;
  color: #1C1917;
  font-family: Outfit, "Pretendard", "Noto Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 22px;
}

.recipe-load-line {
  display: inline-block;
  max-width: 280px;
  height: 22px;
  overflow: hidden;
  vertical-align: top;
  line-height: 22px;
  animation: recipe-load-line-in 300ms ease;
}

@keyframes recipe-load-line-in {
  0% { opacity: 0; }
  50% { opacity: 0; }
  100% { opacity: 1; }
}

.recipe-card.is-skeleton-in,
.discover-recipe.is-skeleton-in {
  animation: recipe-skeleton-in 200ms ease-out;
}

@keyframes recipe-skeleton-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.recipe-swap {
  position: relative;
}

.recipe-card.is-revealing > :not(.recipe-photo):not(.close):not(.pair):not(.note):not(.recipe-load-live),
.discover-recipe.is-revealing > :not(.discover-recipe-title):not(.discover-recipe-image):not(.recipe-load-photo) {
  animation: recipe-reveal-in 200ms ease-out;
}

.recipe-card.is-bars-out,
.discover-recipe.is-bars-out {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  margin: 0;
  z-index: 1;
  pointer-events: none;
  animation: recipe-bars-out 120ms ease-out forwards;
}

.recipe-card.is-bars-out .recipe-photo,
.recipe-card.is-bars-out .close,
.recipe-card.is-bars-out .pair,
.recipe-card.is-bars-out .note,
.recipe-card.is-bars-out .recipe-load-live,
.discover-recipe.is-bars-out .recipe-load-photo,
.discover-recipe.is-bars-out .discover-recipe-title {
  visibility: hidden;
}

@keyframes recipe-reveal-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes recipe-bars-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

.recipe-load-live {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.recipe-load-credit {
  height: 62px;
}

.recipe-load-note {
  margin: 10px 0 12px;
  font-family: Outfit, "Pretendard", "Noto Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  color: #5F5A54;
}

.recipe-card .btn.recipe-load-another:disabled {
  opacity: 0.5;
}

.recipe-card .btn.recipe-load-retry,
.discover-recipe .btn.recipe-load-retry {
  background: var(--aisle-sage, #D7E6D4) !important;
  color: var(--aisle-produce, #1F7A4D) !important;
  border: 2px solid var(--aisle-produce, #1F7A4D) !important;
  font-size: 16px;
  font-weight: 600;
}

.recipe-card .btn.recipe-load-retry,
.discover-recipe .btn.recipe-load-retry {
  margin-top: 16px;
}

@media (prefers-reduced-motion: reduce) {
  .recipe-card .recipe-photo:not(.is-loaded):not(.recipe-photo-empty)::before,
  .recipe-load-photo::before,
  .recipe-shimmer::before {
    animation: none;
    background: #D7E6D4;
  }

  .recipe-card .recipe-photo img {
    transition: none;
  }

  .recipe-load-line,
  .recipe-card.is-skeleton-in,
  .discover-recipe.is-skeleton-in,
  .recipe-card.is-revealing > :not(.recipe-photo):not(.close):not(.pair):not(.note):not(.recipe-load-live),
  .discover-recipe.is-revealing > :not(.discover-recipe-title):not(.discover-recipe-image):not(.recipe-load-photo),
  .recipe-card.is-bars-out,
  .discover-recipe.is-bars-out {
    animation: none;
  }

  .recipe-load-slot {
    transition: none;
  }
}

.recipe-card .recipe-photo-empty {
  display: flex;
  align-items: center;
  justify-content: center;
}

.recipe-card .recipe-photo-empty svg {
  width: 32px;
  height: 32px;
  display: block;
}

.recipe-card .close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1C1917;
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  box-shadow: none;
}

.recipe-card h1,
.recipe-card .recipe-dish {
  font-family: Outfit, "Pretendard", "Noto Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
  font-size: var(--aisle-title-sm-size);
  font-weight: var(--aisle-title-sm-weight);
  letter-spacing: -0.03em;
  line-height: 1.2;
  padding-right: 28px;
  max-width: 16em;
  margin: 0;
  color: #1C1917;
}

.recipe-card .recipe-waiting-title,
.discover-recipe .recipe-waiting-title {
  max-width: none;
  padding-right: 0;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: anywhere;
}

.recipe-card a.recipe,
.recipe-card a.recipe:link,
.recipe-card a.recipe:visited {
  display: inline-block;
  margin-top: 8px;
  font-family: Outfit, "Pretendard", "Noto Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--aisle-produce, #1F7A4D);
  text-decoration: none;
}

.recipe-card .note {
  margin-top: 10px;
  font-family: Outfit, "Pretendard", "Noto Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
  font-size: var(--aisle-caption-size);
  font-weight: var(--aisle-caption-weight);
  line-height: 1.4;
  color: var(--rt-muted);
  max-width: 28em;
}

.recipe-card .block {
  margin-top: 16px;
}

.recipe-card .block h2,
.recipe-card .missing h2,
.recipe-section-label,
.recipe-block-label {
  font-family: Outfit, "Pretendard", "Noto Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
  font-size: var(--aisle-section-size);
  font-weight: var(--aisle-section-weight);
  letter-spacing: var(--aisle-section-track);
  text-transform: uppercase;
  color: var(--rt-muted);
  margin: 0;
}

.recipe-card .block ul,
.recipe-card .cols ul {
  list-style: none;
  margin: 7px 0 0;
  padding: 0;
}

.recipe-card .block li {
  font-size: var(--aisle-body-size);
  font-weight: var(--aisle-body-weight);
  line-height: var(--aisle-body-lh);
  display: block;
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  overflow: visible;
  overflow-wrap: anywhere;
  color: #1C1917;
}

.recipe-card .block li + li {
  margin-top: 5px;
}

.recipe-back {
  position: absolute;
  left: 16px;
  top: 8px;
  width: 44px;
  height: 44px;
  border-radius: 0;
  background: #D7E6D4;
  /* Square 44px hit. The sage disc is paint only, so the corners stay tappable. */
  background-color: transparent;
  background-image: radial-gradient(circle 16px at center, #D7E6D4 99%, transparent 100%);
  border: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: none;
  z-index: 2;
}

.screen.recipe-opened {
  position: relative;
  padding: 68px 20px 140px;
}

/* Pairing heading uses the profile name size. Padding keeps the Matches title gap. */
.screen.recipe-opened > h2.aisle-profile-name {
  margin: 0;
  padding: 2px 0 12px;
}

.recipe-card .pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(28, 25, 23, 0.08);
}

.recipe-card .person {
  display: flex;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.recipe-card .avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #D7E6D4;
  color: #1C1917;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 32px;
}

.recipe-card .person .name {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.15;
  color: #1C1917;
}

.recipe-card .person .store {
  margin-top: 2px;
  font-size: var(--aisle-caption-size);
  font-weight: var(--aisle-caption-weight);
  color: var(--rt-muted);
  line-height: 1.2;
}

.recipe-card .cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 12px;
}

.recipe-card .cols li {
  font-size: var(--aisle-body-size);
  font-weight: var(--aisle-body-weight);
  line-height: var(--aisle-body-lh);
  color: #1C1917;
}

.recipe-card .cols li + li {
  margin-top: 7px;
}

.recipe-card .missing {
  margin-top: 16px;
  background: #F7F1E6;
  border-radius: 14px;
  padding: 12px 14px 13px;
}

.recipe-card .missing p {
  margin-top: 5px;
  font-size: var(--aisle-body-size);
  font-weight: var(--aisle-body-weight);
  line-height: var(--aisle-body-lh);
  color: #1C1917;
  white-space: normal;
  overflow: visible;
  overflow-wrap: anywhere;
  max-height: none;
}

.recipe-card .qual {
  display: block;
  margin-top: 1px;
  font-size: var(--aisle-caption-size);
  font-weight: var(--aisle-caption-weight);
  color: var(--rt-muted);
}

.recipe-card .from-receipt li .receipt-en,
.recipe-card .from-receipt li .receipt-ko {
  font-family: Outfit, "Pretendard", "Noto Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
  font-size: var(--aisle-body-size);
  font-weight: var(--aisle-body-weight);
  color: var(--aisle-ink);
}

.recipe-card .from-receipt li .receipt-muted,
.recipe-card .from-receipt li .receipt-sep {
  font-family: Outfit, "Pretendard", "Noto Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
  font-size: var(--aisle-body-size);
  font-weight: var(--aisle-body-weight);
  color: var(--rt-muted);
}

.recipe-card .from-receipt li .receipt-sep {
  white-space: pre;
  flex: 0 0 auto;
}

.recipe-card.recipe-card-shared {
  margin-top: 0;
  padding-top: 18px;
}

.recipe-card.recipe-card-shared h1 {
  padding-right: 0;
  font-size: var(--aisle-title-sm-size);
}

/* Edamam attribution sits under the card copy, caption-sized and muted.
   View Recipe is produce, not tomato. The profile pairing card is
   section.discover-recipe (Matches and Discover). The element in that
   selector outranks .discover-profile-screen .discover-section a,
   which would otherwise paint the source link tomato. */
.recipe-card .edamam-attribution,
section.discover-recipe .edamam-attribution {
  margin-top: 16px;
  text-align: left;
}

.recipe-card .edamam-attribution .edamam-badge,
section.discover-recipe .edamam-attribution .edamam-badge {
  display: inline-block;
  line-height: 0;
  text-decoration: none;
}

.recipe-card .edamam-attribution .edamam-badge img,
section.discover-recipe .edamam-attribution .edamam-badge img {
  display: block;
  height: 24px;
  width: auto;
  /* Official transparent.svg artwork starts inset; pull it flush with the card text. */
  margin-left: -6px;
}

.recipe-card .edamam-source,
section.discover-recipe .edamam-source {
  margin: 6px 0 0;
  max-width: 100%;
  font-family: Outfit, "Pretendard", "Noto Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
  font-size: var(--aisle-caption-size);
  font-weight: var(--aisle-caption-weight);
  line-height: 18px;
  color: var(--rt-muted);
  white-space: normal;
  overflow: visible;
  overflow-wrap: anywhere;
}

.recipe-card .edamam-source a,
.recipe-card .edamam-source a:visited,
section.discover-recipe .edamam-source a,
section.discover-recipe .edamam-source a:visited {
  color: var(--rt-muted);
  text-decoration: underline;
  text-decoration-color: var(--rt-muted);
  text-underline-offset: 2px;
  white-space: normal;
  overflow-wrap: anywhere;
}

/* Solo recipe card: 16px from the source line to Another one, then 16px
   (the card's bottom padding) to the border. The shared .btn margin sits
   under the button otherwise. Pairing cards have no following button. */
.recipe-card > .btn,
.recipe-card .btn {
  margin-bottom: 0;
  font-family: Outfit, "Pretendard", "Noto Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
  font-weight: var(--aisle-btn-weight);
  font-size: var(--aisle-btn-size);
  line-height: 1.2;
  text-transform: none;
  white-space: nowrap;
  color: #1F7A4D !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none;
}

.recipe-card > .btn:disabled,
.recipe-card .btn:disabled {
  color: var(--rt-muted) !important;
  font-family: Outfit, "Pretendard", "Noto Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
  font-weight: var(--aisle-btn-weight);
}

.recipe-card .edamam-attribution + .btn {
  margin-top: 16px;
}

/* Phone Discover (Franz option C). The filter row stays in flow. The photo
   fills whatever is left: viewport minus the 44px header, the filter row,
   the 85px tab bar, a 12px gap, and the home-indicator inset. Taller phones
   get a taller photo. No scroll. Desktop and the extended profile are
   outside this query. */
.aisle-card-store {
  display: none;
}

@media (max-width: 480px) {
  body:not(.discover-profile-open):has(.app > .screen.active.discover-deck) {
    overflow: hidden;
    height: 100vh;
    height: 100dvh;
  }

  body:not(.discover-profile-open) .app:has(.screen.active.discover-deck) {
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    min-height: 0;
    overflow: hidden;
  }

  body:not(.discover-profile-open) .screen.active.discover-deck {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    /* clip on x only. hidden or auto on x computes overflow-y to auto and
       cuts the count badge, which hangs 6px above the pill. */
    overflow-x: clip;
    overflow-y: visible;
    /* 20px sides keep the card inset. The bottom padding is the tab bar plus
       the 12px gap, so the photo ends above the bar. */
    padding: 0 20px calc(85px + 12px + env(safe-area-inset-bottom, 0px));
  }

  body:not(.discover-profile-open) .screen.active.discover-deck > .discover-filters {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    z-index: auto;
    flex: 0 0 auto;
    width: calc(100% + 40px);
    max-width: none;
    margin: 0 -20px 8px;
    border-radius: 0;
  }

  body:not(.discover-profile-open) .screen.active.discover-deck > .discover-filter-row {
    flex: 0 0 auto;
    width: calc(100% + 40px);
    max-width: none;
    margin: 0 -20px 8px;
    padding: 0 16px;
  }

  body:not(.discover-profile-open) .screen.active.discover-deck > .empty.discover-filter-empty {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 8px 32px;
  }

  body:not(.discover-profile-open) .screen.active.discover-deck > .aisle-card-wrap {
    position: relative;
    flex: 1 1 auto;
    width: 100%;
    height: auto;
    min-height: 0;
  }

  body:not(.discover-profile-open) .screen.active.discover-deck > .aisle-card-wrap:first-child {
    margin-top: 8px;
  }

  body:not(.discover-profile-open) .screen.active.discover-deck > .aisle-card-wrap > .gm-card-stack {
    position: absolute;
    inset: 0;
    height: auto;
  }

  body:not(.discover-profile-open) .screen.active.discover-deck .gm-card-stack,
  body:not(.discover-profile-open) .screen.active.discover-deck .gm-card-control,
  body:not(.discover-profile-open) .screen.active.discover-deck .photo-frame,
  body:not(.discover-profile-open) .screen.active.discover-deck .photo-strip,
  body:not(.discover-profile-open) .screen.active.discover-deck .profile-card .profile-img,
  body:not(.discover-profile-open) .screen.active.discover-deck .profile-card .video-wrapper,
  body:not(.discover-profile-open) .screen.active.discover-deck .gm-hero-placeholder {
    height: 100%;
    min-height: 0;
    max-height: none;
  }

  body:not(.discover-profile-open) .screen.active.discover-deck .profile-card .profile-img,
  body:not(.discover-profile-open) .screen.active.discover-deck .profile-card .video-wrapper video {
    object-fit: cover;
    object-position: 50% 30%;
  }

  body:not(.discover-profile-open) .screen.active.discover-deck .photo-frame,
  body:not(.discover-profile-open) .screen.active.discover-deck .gm-card-control,
  body:not(.discover-profile-open) .screen.active.discover-deck .gm-card-stack.profile-card {
    border-radius: 24px;
  }

  body:not(.discover-profile-open) .screen.active.discover-deck .aisle-hero-card .aisle-card-scrim {
    height: 176px;
    border-radius: 0 0 24px 24px;
    background: linear-gradient(to top, rgba(28, 25, 23, 0.55), transparent);
  }

  /* Button centers sit 52px above the photo bottom. The row is 68px tall
     (the Like target); shifting it down by half its height lands the center
     on that line. X is 56px and shares the center. The row itself does not
     catch drags; only the buttons do. */
  body:not(.discover-profile-open) .screen.active.discover-deck .aisle-card-wrap > .swipe-area {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 52px;
    height: 68px;
    margin: 0;
    padding: 0;
    gap: 14px;
    transform: translateY(50%);
    justify-content: center;
    align-items: center;
    z-index: 4;
    pointer-events: none;
    overflow: visible;
    background: transparent;
  }

  body:not(.discover-profile-open) .screen.active.discover-deck .aisle-card-wrap > .swipe-area .swipe-btn {
    pointer-events: auto;
    touch-action: manipulation;
    flex: 0 0 auto;
  }

  body:not(.discover-profile-open) .screen.active.discover-deck .swipe-btn.reject {
    width: 56px;
    height: 56px;
    padding: 0;
    border: 1.5px solid #8A837A;
    border-radius: 50%;
    background: #fff !important;
    box-shadow: none !important;
    color: transparent !important;
    font-size: 0 !important;
    line-height: 0;
    position: relative;
  }

  body:not(.discover-profile-open) .screen.active.discover-deck .swipe-btn.reject::before {
    content: "";
    width: 22px;
    height: 22px;
    background: center / 22px 22px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 22 22' fill='none'%3E%3Cpath d='M1.25 1.25 L20.75 20.75 M20.75 1.25 L1.25 20.75' stroke='%231C1917' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E");
  }

  body:not(.discover-profile-open) .screen.active.discover-deck .swipe-btn.reject:active {
    background: #1C1917 !important;
    border-color: #1C1917;
    transform: none;
  }

  body:not(.discover-profile-open) .screen.active.discover-deck .swipe-btn.reject:active::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 22 22' fill='none'%3E%3Cpath d='M1.25 1.25 L20.75 20.75 M20.75 1.25 L1.25 20.75' stroke='%23FFFFFF' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E");
  }

  /* Name, store, and the match line sit inside the scrim. The block's
     bottom stays 12px above the button row (row top is 86px above the
     photo: 52px center + 34px Like radius). */
  body:not(.discover-profile-open) .screen.active.discover-deck .gm-card-stack > .aisle-card-overlay {
    left: 16px;
    right: 16px;
    bottom: 98px;
    padding: 0;
    z-index: 3;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 8px;
  }

  /* The row is full width. The name inside .gm-badge-line is not: a 100%
     basis there leaves no room for the tier mark, which then paints past
     the card and gets clipped. A bare name (no badge line) still takes
     the row. The mark stays where member-badges.css puts it. */
  body:not(.discover-profile-open) .screen.active.discover-deck .gm-badge-line,
  body:not(.discover-profile-open) .screen.active.discover-deck .aisle-card-overlay > .aisle-card-name {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  body:not(.discover-profile-open) .screen.active.discover-deck .gm-badge-line,
  body:not(.discover-profile-open) .screen.active.discover-deck .aisle-card-name {
    margin: 0;
    font-family: Outfit, "Pretendard", "Noto Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
    font-weight: var(--aisle-title-sm-weight);
    font-size: var(--aisle-title-sm-size);
    line-height: var(--aisle-title-lh);
    letter-spacing: var(--aisle-title-track);
    color: #fff;
    text-shadow: none;
  }

  /* iPhone SE (320x568). The ••• control owns the right 44px. The name
     ellipsizes before the badges move, so the marks stay clear of it.
     Discover uses .discover-deck so Free cards, which have no filter bar, get the same clearance. */
  @media (max-width: 320px) {
    body:not(.discover-profile-open) .screen.active.discover-deck .gm-card-stack > .aisle-card-overlay > .gm-badge-line,
    .discover-profile-hero > .aisle-card-overlay > .gm-badge-line {
      box-sizing: border-box;
      padding-right: 44px;
    }
  }

  body:not(.discover-profile-open) .screen.active.discover-deck .aisle-card-store {
    display: block;
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-top: 2px;
    font-family: Outfit, "Pretendard", "Noto Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 18px;
    color: var(--rt-muted);
    text-shadow: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body:not(.discover-profile-open) .screen.active.discover-deck .aisle-card-overlay > .aisle-card-pills {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    margin: 6px 0 0;
    max-width: 100%;
  }

  body:not(.discover-profile-open) .screen.active.discover-deck .aisle-card-overlay > .aisle-overlap-caption {
    display: block;
    flex: 1 1 0;
    min-width: 0;
    margin: 6px 0 0;
    font-family: Outfit, "Pretendard", "Noto Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
    font-weight: 400;
    font-size: 13px;
    line-height: 22px;
    color: #fff;
    text-shadow: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body:not(.discover-profile-open) .screen.active.discover-deck .gm-card-stack:has(.is-photo-placeholder) .aisle-card-name,
  body:not(.discover-profile-open) .screen.active.discover-deck .gm-card-stack:has(.is-photo-placeholder) .aisle-overlap-caption {
    color: #1C1917;
  }

  body:not(.discover-profile-open) .screen.active.discover-deck .aisle-card-bio,
  body:not(.discover-profile-open) .screen.active.discover-deck .aisle-chips,
  body:not(.discover-profile-open) .screen.active.discover-deck .profile-items-tag,
  body:not(.discover-profile-open) .screen.active.discover-deck .aisle-match-reason,
  body:not(.discover-profile-open) .screen.active.discover-deck .profile-meta {
    display: none !important;
  }

  body:not(.discover-profile-open) .screen.active.discover-deck .profile-card > .aisle-header-menu.aisle-header-menu {
    top: 8px;
    right: 8px;
    left: auto;
    z-index: 8;
  }

  body:not(.discover-profile-open) .screen.active.discover-deck .aisle-city-pill {
    top: 14px;
    left: 14px;
    right: auto;
    z-index: 6;
    max-width: calc(100% - 78px);
  }

  body:not(.discover-profile-open) .screen.active.discover-deck .photo-dots {
    z-index: 6;
  }

  /* The 12px gap under the photo holds the likes line when it fits.
     It is out of flow so it cannot make the screen scroll. */
  body:not(.discover-profile-open) .screen.active.discover-deck > .receipt-date[data-usage="likes"] {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: calc(85px + env(safe-area-inset-bottom, 0px));
    height: 12px;
    margin: 0;
    padding: 0;
    font-size: 11px;
    line-height: 12px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    z-index: 2;
  }
}

/* Caught-up screen on a short portrait phone (iPhone SE 375x667 and
   smaller). The still is about 210px, so See people again lands under
   the tab bar. The still keeps only the height left above the bar.
   390px-wide portrait and up do not match, and neither do landscape
   or short desktop. Under 500px tall, the query at the end of this
   file hides the still instead. */
@media (max-width: 375px) and (max-height: 667px) {
  body:not(.discover-profile-open) .screen.active.discover-deck > .empty {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  body:not(.discover-profile-open) .screen.active.discover-deck > .empty .empty-profiles-still {
    flex: 1 1 0;
    min-height: 0;
    width: 100% !important;
    max-width: 100% !important;
    height: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    object-fit: contain;
  }

  body:not(.discover-profile-open) .screen.active.discover-deck > .empty > h3,
  body:not(.discover-profile-open) .screen.active.discover-deck > .empty > p,
  body:not(.discover-profile-open) .screen.active.discover-deck > .empty > .btn {
    flex: 0 0 auto;
  }
}

/* Landscape phones are wider than 480px, so the phone rules above miss
   them. Same no-scroll frame: one filter line, photo fills what is left,
   Like and X on the photo above the tab bar. The scrim keeps the name
   and the store line only. Portrait (max-width 480) and desktop
   (height above 500px) do not match. */
@media (max-height: 500px) and (min-width: 481px) {
  body:not(.discover-profile-open):has(.app > .screen.active.discover-deck) {
    overflow: hidden;
    height: 100vh;
    height: 100dvh;
  }

  body:not(.discover-profile-open) .app:has(.screen.active.discover-deck) {
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    min-height: 0;
    overflow: hidden;
  }

  body:not(.discover-profile-open) .screen.active.discover-deck {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow-x: clip;
    overflow-y: visible;
    padding: 0 20px calc(85px + 12px + env(safe-area-inset-bottom, 0px));
  }

  body:not(.discover-profile-open) .screen.active.discover-deck > .discover-filters {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    z-index: auto;
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    width: calc(100% + 40px);
    max-width: none;
    margin: 0 -20px 4px;
    padding: 3px 12px;
    border-radius: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
  }

  body:not(.discover-profile-open) .screen.active.discover-deck > .discover-filters::-webkit-scrollbar {
    display: none;
  }

  body:not(.discover-profile-open) .screen.active.discover-deck > .discover-filters .filter-label {
    display: none;
  }

  body:not(.discover-profile-open) .screen.active.discover-deck > .discover-filters .filter-row-intent-gender {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    width: max-content;
    min-width: max-content;
  }

  body:not(.discover-profile-open) .screen.active.discover-deck > .discover-filters .filter-group,
  body:not(.discover-profile-open) .screen.active.discover-deck > .discover-filters .filter-row-intent-gender > .filter-group {
    flex: 0 0 auto;
    width: auto;
    min-width: max-content;
    margin: 0;
  }

  body:not(.discover-profile-open) .screen.active.discover-deck > .discover-filters .filter-chips {
    flex-wrap: nowrap;
    gap: 6px;
    width: max-content;
  }

  body:not(.discover-profile-open) .screen.active.discover-deck > .discover-filters .filter-chip {
    padding: 1px 8px;
    font-size: 12px;
    line-height: 16px;
    border-width: 1px;
  }

  body:not(.discover-profile-open) .screen.active.discover-deck > .aisle-card-wrap {
    position: relative;
    flex: 1 1 auto;
    width: 100%;
    height: auto;
    min-height: 0;
  }

  body:not(.discover-profile-open) .screen.active.discover-deck > .aisle-card-wrap:first-child {
    margin-top: 4px;
  }

  body:not(.discover-profile-open) .screen.active.discover-deck > .aisle-card-wrap {
    display: flex;
    flex-direction: column;
  }

  body:not(.discover-profile-open) .screen.active.discover-deck > .aisle-card-wrap > .gm-card-stack {
    position: relative;
    inset: auto;
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
    overflow: hidden;
    border-radius: 24px;
    container-type: size;
    container-name: gm-land-card;
  }

  body:not(.discover-profile-open) .screen.active.discover-deck .gm-card-control,
  body:not(.discover-profile-open) .screen.active.discover-deck .photo-frame,
  body:not(.discover-profile-open) .screen.active.discover-deck .photo-strip,
  body:not(.discover-profile-open) .screen.active.discover-deck .profile-card .profile-img,
  body:not(.discover-profile-open) .screen.active.discover-deck .profile-card .video-wrapper,
  body:not(.discover-profile-open) .screen.active.discover-deck .gm-hero-placeholder {
    height: 100%;
    min-height: 0;
    max-height: none;
  }

  body:not(.discover-profile-open) .screen.active.discover-deck .profile-card .profile-img,
  body:not(.discover-profile-open) .screen.active.discover-deck .profile-card .video-wrapper video {
    object-fit: cover;
    object-position: 50% 30%;
  }

  body:not(.discover-profile-open) .screen.active.discover-deck .photo-frame,
  body:not(.discover-profile-open) .screen.active.discover-deck .gm-card-control,
  body:not(.discover-profile-open) .screen.active.discover-deck .gm-card-stack.profile-card {
    border-radius: 24px;
  }

  /* The caption covers the middle of this short photo and already has
     touch-action: none, so the browser will not pan the strip. The strip
     uses the same rule so a finger or mouse drag is handled in script. */
  body:not(.discover-profile-open) .screen.active.discover-deck .photo-strip {
    touch-action: none;
  }

  body:not(.discover-profile-open) .screen.active.discover-deck .aisle-hero-card .aisle-card-scrim {
    height: 150px;
    border-radius: 0 0 24px 24px;
    background: linear-gradient(to top, rgba(28, 25, 23, 0.55), transparent);
  }

  body:not(.discover-profile-open) .screen.active.discover-deck .aisle-card-wrap > .swipe-area {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    height: 56px;
    margin: 8px 0 0;
    padding: 0;
    gap: 14px;
    transform: none;
    justify-content: center;
    align-items: center;
    z-index: 4;
    pointer-events: none;
    overflow: visible;
    background: transparent;
  }

  body:not(.discover-profile-open) .screen.active.discover-deck .aisle-card-wrap > .swipe-area .swipe-btn {
    pointer-events: auto;
    touch-action: manipulation;
    flex: 0 0 auto;
    width: 56px;
    height: 56px;
  }

  body:not(.discover-profile-open) .screen.active.discover-deck .swipe-btn.reject {
    width: 56px;
    height: 56px;
    padding: 0;
    border: 1.5px solid #8A837A;
    border-radius: 50%;
    background: #fff !important;
    box-shadow: none !important;
    color: transparent !important;
    font-size: 0 !important;
    line-height: 0;
    position: relative;
  }

  body:not(.discover-profile-open) .screen.active.discover-deck .swipe-btn.reject::before {
    content: "";
    width: 22px;
    height: 22px;
    background: center / 22px 22px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 22 22' fill='none'%3E%3Cpath d='M1.25 1.25 L20.75 20.75 M20.75 1.25 L1.25 20.75' stroke='%231C1917' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E");
  }

  body:not(.discover-profile-open) .screen.active.discover-deck .gm-card-stack > .aisle-card-overlay {
    left: 16px;
    right: 16px;
    bottom: 98px;
    padding: 0;
    z-index: 3;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 8px;
    max-height: 44px;
    overflow: hidden;
  }

  body:not(.discover-profile-open) .screen.active.discover-deck .gm-badge-line,
  body:not(.discover-profile-open) .screen.active.discover-deck .aisle-card-overlay > .aisle-card-name {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  body:not(.discover-profile-open) .screen.active.discover-deck .gm-badge-line,
  body:not(.discover-profile-open) .screen.active.discover-deck .aisle-card-name {
    margin: 0;
    font-family: Outfit, "Pretendard", "Noto Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
    font-weight: var(--aisle-title-sm-weight);
    font-size: var(--aisle-title-sm-size);
    line-height: var(--aisle-title-lh);
    letter-spacing: var(--aisle-title-track);
    color: #fff;
    text-shadow: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body:not(.discover-profile-open) .screen.active.discover-deck .aisle-card-store {
    display: block;
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-top: 2px;
    font-family: Outfit, "Pretendard", "Noto Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 14px;
    color: #fff;
    text-shadow: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body:not(.discover-profile-open) .screen.active.discover-deck .aisle-card-bio,
  body:not(.discover-profile-open) .screen.active.discover-deck .profile-bio,
  body:not(.discover-profile-open) .screen.active.discover-deck .aisle-chips,
  body:not(.discover-profile-open) .screen.active.discover-deck .profile-items-tag,
  body:not(.discover-profile-open) .screen.active.discover-deck .aisle-match-reason,
  body:not(.discover-profile-open) .screen.active.discover-deck .profile-meta,
  body:not(.discover-profile-open) .screen.active.discover-deck .aisle-card-overlay > .aisle-match-pill,
  body:not(.discover-profile-open) .screen.active.discover-deck .aisle-card-overlay > .score-badge,
  body:not(.discover-profile-open) .screen.active.discover-deck .aisle-card-overlay > .aisle-overlap-caption {
    display: none !important;
  }

  body:not(.discover-profile-open) .screen.active.discover-deck .profile-card > .aisle-header-menu.aisle-header-menu {
    top: 8px;
    right: 8px;
    left: auto;
    z-index: 8;
  }

  body:not(.discover-profile-open) .screen.active.discover-deck .aisle-city-pill {
    top: 14px;
    left: 14px;
    right: auto;
    z-index: 6;
    max-width: calc(100% - 78px);
  }

  body:not(.discover-profile-open) .screen.active.discover-deck .photo-dots {
    z-index: 6;
  }

  body:not(.discover-profile-open) .screen.active.discover-deck > .receipt-date[data-usage="likes"] {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: calc(85px + env(safe-area-inset-bottom, 0px));
    height: 12px;
    margin: 0;
    padding: 0;
    font-size: 11px;
    line-height: 12px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    z-index: 2;
  }

  /* Caught-up copy sits under a 270px still. That still is taller than the
     space above the tab bar, so the heading and the lines under it land
     on the bar. At 500px tall the still takes only the leftover height.
     Under 500px the query at the end of this file hides the still instead.
     The photo card above is a different element and keeps its size. */
  body:not(.discover-profile-open) .screen.active.discover-deck > .empty {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  body:not(.discover-profile-open) .screen.active.discover-deck > .empty .empty-profiles-still {
    flex: 1 1 0;
    min-height: 0;
    width: 100% !important;
    max-width: 100% !important;
    height: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    object-fit: contain;
  }

  body:not(.discover-profile-open) .screen.active.discover-deck > .empty > h3,
  body:not(.discover-profile-open) .screen.active.discover-deck > .empty > p,
  body:not(.discover-profile-open) .screen.active.discover-deck > .empty > .btn {
    flex: 0 0 auto;
  }

  /* The tier mark leaves the name row and sits at the photo's top-right,
     clear of the centered initials. The overlay is that mark's containing
     block, so the overlay and the name line drop their boxes. The name and
     the store stay where this query already pinned them. */
  body:not(.discover-profile-open) .screen.active.discover-deck .gm-card-stack > .aisle-card-overlay,
  .discover-profile-hero > .aisle-card-overlay,
  body:not(.discover-profile-open) .screen.active.discover-deck .gm-card-stack > .aisle-card-overlay > .gm-badge-line,
  .discover-profile-hero > .aisle-card-overlay > .gm-badge-line {
    display: contents;
  }

  body:not(.discover-profile-open) .screen.active.discover-deck .gm-card-stack .aisle-card-name,
  .discover-profile-hero .aisle-card-name {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 58px;
    z-index: 3;
    margin: 0;
    width: auto;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body:not(.discover-profile-open) .screen.active.discover-deck .gm-card-stack .aisle-card-store,
  .discover-profile-hero .aisle-card-store {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 40px;
    z-index: 3;
    margin-top: 0;
    width: auto;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--rt-muted);
    font-weight: 400;
    font-size: 14px;
    line-height: 14px;
  }

  body:not(.discover-profile-open) .screen.active.discover-deck .gm-card-stack .aisle-card-pills,
  .discover-profile-hero .aisle-card-pills {
    position: absolute;
    left: 16px;
    right: auto;
    bottom: 8px;
    z-index: 3;
    display: inline-flex !important;
    margin: 0;
  }

  body:not(.discover-profile-open) .screen.active.discover-deck .gm-hero-initials {
    top: 8px;
    bottom: 90px;
    height: auto;
    font-size: 32px;
    line-height: 1;
    overflow: hidden;
    align-items: flex-end;
  }

  .discover-profile-hero .liked-you-meta-row {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 18px;
    z-index: 3;
    margin-top: 0;
  }

  body:not(.discover-profile-open) .screen.active.discover-deck .gm-card-stack .gm-badge-pair,
  .discover-profile-hero .gm-badge-pair {
    position: absolute;
    top: 12px;
    right: 60px;
    left: auto;
    margin-left: 0;
    z-index: 8;
  }

  /* A card shorter than the caption offset puts the name through the
     top-right mark. Ellipsize the caption before that mark. */
  @container gm-land-card (max-height: 174px) {
    body:not(.discover-profile-open) .screen.active.discover-deck .gm-card-stack .aisle-card-name,
    body:not(.discover-profile-open) .screen.active.discover-deck .gm-card-stack .aisle-card-store {
      right: 112px;
    }
  }

  /* Docking the X under the photo on a very short card leaves about 90px.
     The 24px name plus the store and the 26px pill cannot also leave 8px
     under the initials at the offsets above. Sit the caption lower and
     keep that 8px. Taller landscape cards stay on the offsets above. */
  @container gm-land-card (max-height: 120px) {
    body:not(.discover-profile-open) .screen.active.discover-deck .gm-card-stack .aisle-card-name {
      bottom: 46px;
      font-size: 18px;
      line-height: 18px;
    }

    body:not(.discover-profile-open) .screen.active.discover-deck .gm-card-stack .aisle-card-store {
      bottom: 30px;
    }

    body:not(.discover-profile-open) .screen.active.discover-deck .gm-card-stack .aisle-card-pills {
      bottom: 2px;
    }

    body:not(.discover-profile-open) .screen.active.discover-deck .gm-hero-initials {
      top: 2px;
      bottom: 72px;
      font-size: 16px;
      line-height: 1;
      align-items: center;
    }
  }

  /* A card under ~124px puts the top-left city pill through the name.
     The caption row already owns the bottom band, so the pill sits there,
     on the right, clear of the name and the Love pill. */
  @container gm-land-card (max-height: 130px) {
    body:not(.discover-profile-open) .screen.active.discover-deck .aisle-city-pill {
      top: auto;
      bottom: 2px;
      left: auto;
      right: 12px;
      max-width: calc(50% - 16px);
    }
  }
}

/* 320px-tall landscape. The 12px under the buttons and the filter's 8px
   margin are the photo's only spare pixels once the X is docked below the
   card. The 85px tab bar stays. Taller landscape keeps the 12px gap. */
@media (max-height: 360px) and (min-width: 481px) {
  body:not(.discover-profile-open) .screen.active.discover-deck {
    padding-bottom: calc(85px + env(safe-area-inset-bottom, 0px));
  }

  body:not(.discover-profile-open) .screen.active.discover-deck > .discover-filter-row {
    margin-bottom: 0;
  }
}

/* Short desktop Discover. Wider than a phone and taller than a landscape
   phone, but under 890px the 52vh photo (min 380) pushes the Like and X
   row through the 85px tab bar. Photo top is 252px and the buttons end
   78px under the photo, so height = viewport - 427px leaves 12px between
   the button bottoms and the bar (252 + 78 + 85 + 12). 900px and up keep
   the 52vh brand size. Phone portrait and landscape do not match. */
@media (min-width: 481px) and (min-height: 501px) and (max-height: 889px) {
  body:not(.discover-profile-open) .screen.active.discover-deck .photo-strip,
  body:not(.discover-profile-open) .screen.active.discover-deck .profile-card .profile-img,
  body:not(.discover-profile-open) .screen.active.discover-deck .profile-card .video-wrapper,
  body:not(.discover-profile-open) .screen.active.discover-deck .gm-hero-placeholder {
    height: calc(100vh - 427px);
    min-height: 0;
    max-height: calc(100dvh - var(--header-block) - 85px - 16px);
  }

  /* Caught-up on a short desktop (1024x768). The screen is 100vh under a
     44px header, so it runs through the 85px tab bar. See people again
     ends just above that bar and the likes line sits in the hidden scroll.
     The screen stops at the header, and 16px of padding under the likes
     line clears the bar. The still takes only the leftover height. The
     photo card above is a different element and keeps its size. Phone
     portrait and landscape do not match. */
  body:not(.discover-profile-open) .screen.active.discover-deck:has(> .empty) {
    height: calc(100vh - var(--header-block));
    max-height: calc(100vh - var(--header-block));
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding-bottom: calc(85px + 16px + env(safe-area-inset-bottom, 0px));
  }

  body:not(.discover-profile-open) .screen.active.discover-deck:has(> .empty) > .discover-filters,
  body:not(.discover-profile-open) .screen.active.discover-deck:has(> .empty) > .discover-filter-row,
  body:not(.discover-profile-open) .screen.active.discover-deck:has(> .empty) > .receipt-date[data-usage="likes"] {
    flex: 0 0 auto;
  }

  body:not(.discover-profile-open) .screen.active.discover-deck > .empty {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  body:not(.discover-profile-open) .screen.active.discover-deck > .empty .empty-profiles-still {
    flex: 1 1 0;
    min-height: 0;
    width: 100% !important;
    max-width: 100% !important;
    height: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    object-fit: contain;
  }

  body:not(.discover-profile-open) .screen.active.discover-deck > .empty > h3,
  body:not(.discover-profile-open) .screen.active.discover-deck > .empty > p,
  body:not(.discover-profile-open) .screen.active.discover-deck > .empty > .btn {
    flex: 0 0 auto;
  }
}

/* Caught-up under 500px tall. The still is hidden, not given a leftover
   height. The heading, the line under it, and See people again sit in
   the middle of the space above the tab bar. The button keeps its
   padding and stays at least 44px tall. 500px and taller keep the still
   and the layout they already have. */
@media (max-height: 499px) {
  body:not(.discover-profile-open) .screen.active.discover-deck > .empty:has(> .empty-profiles-still) {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    padding-top: 0;
  }

  body:not(.discover-profile-open) .screen.active.discover-deck > .empty:has(> .empty-profiles-still) > .empty-profiles-still {
    display: none !important;
    flex: 0 0 auto;
    width: 100vw !important;
    max-width: 480px !important;
    height: auto !important;
    min-height: 0;
    margin-left: calc(50% - min(50vw, 240px)) !important;
    margin-right: 0 !important;
  }

  body:not(.discover-profile-open) .screen.active.discover-deck > .empty:has(> .empty-profiles-still) > h3,
  body:not(.discover-profile-open) .screen.active.discover-deck > .empty:has(> .empty-profiles-still) > p,
  body:not(.discover-profile-open) .screen.active.discover-deck > .empty:has(> .empty-profiles-still) > .btn {
    flex: 0 0 auto;
  }

  body:not(.discover-profile-open) .screen.active.discover-deck > .empty:has(> .empty-profiles-still) > .btn {
    min-height: 44px;
    margin-bottom: 0;
  }
}

/* Desktop Discover. Wider than a phone and taller than a landscape phone.
   The 44px header plus a 100vh screen is the page scroll. The card's
   ceiling is the viewport minus that header, the 85px tab bar, and 16px.
   The photo also shrinks inside the screen so the filters and the buttons
   stay on screen. */
@media (min-width: 481px) and (min-height: 501px) {
  body:not(.discover-profile-open):has(.app > .screen.active.discover-deck) {
    overflow: hidden;
    height: 100vh;
    height: 100dvh;
  }

  body:not(.discover-profile-open) .app:has(.screen.active.discover-deck) {
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    min-height: 0;
    overflow: hidden;
  }

  body:not(.discover-profile-open) .screen.active.discover-deck {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow: hidden;
    padding-bottom: calc(85px + 16px + env(safe-area-inset-bottom, 0px));
  }

  body:not(.discover-profile-open) .screen.active.discover-deck > .discover-filters,
  body:not(.discover-profile-open) .screen.active.discover-deck > .discover-filter-row,
  body:not(.discover-profile-open) .screen.active.discover-deck > .receipt-date[data-usage="likes"] {
    flex: 0 0 auto;
  }

  body:not(.discover-profile-open) .screen.active.discover-deck > .aisle-card-wrap {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
  }

  body:not(.discover-profile-open) .screen.active.discover-deck > .aisle-card-wrap > .gm-card-stack {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 88px;
    height: auto;
    max-height: calc(100dvh - var(--header-block) - 85px - 16px);
    min-height: 0;
    overflow: hidden;
  }

  body:not(.discover-profile-open) .screen.active.discover-deck .gm-card-control,
  body:not(.discover-profile-open) .screen.active.discover-deck .photo-frame,
  body:not(.discover-profile-open) .screen.active.discover-deck .photo-strip,
  body:not(.discover-profile-open) .screen.active.discover-deck .profile-card .profile-img,
  body:not(.discover-profile-open) .screen.active.discover-deck .profile-card .video-wrapper,
  body:not(.discover-profile-open) .screen.active.discover-deck .gm-hero-placeholder {
    height: 100%;
    min-height: 0;
    max-height: none;
  }

  body:not(.discover-profile-open) .screen.active.discover-deck > .aisle-card-wrap > .swipe-area {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 88px;
    margin: 0;
  }

  body:not(.discover-profile-open) .screen.active.discover-deck .aisle-card-store {
    display: block;
    margin-top: 4px;
    font-family: Outfit, "Pretendard", "Noto Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 18px;
    color: var(--rt-muted);
  }
}

/* Discover Undo. 44pt rewind sits left of Pass. Locked states use the aisle tokens. */
.discover-undo-slot {
  position: relative;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  pointer-events: none;
}

.discover-undo-btn {
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
  color: var(--aisle-ink, #1C1917);
  background: var(--aisle-white, #FFFFFF);
  box-shadow: 0 3px 8px rgba(28, 25, 23, 0.2);
}

.discover-undo-btn[data-undo="empty"],
.discover-undo-btn[data-undo="matched"] {
  background: #EFE8DC;
  color: #BDB4A7;
  box-shadow: none;
}

.discover-undo-btn[data-undo="locked"] {
  color: var(--aisle-muted, #8A837A);
}

.discover-undo-btn svg {
  display: block;
  width: 22px;
  height: 22px;
}

.discover-undo-lock {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--aisle-ink, #1C1917);
  border: 2px solid var(--aisle-cream, #F7F1E6);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.discover-undo-lock svg {
  width: 12px;
  height: 12px;
}

.discover-undo-tip {
  position: absolute;
  /* 16px under the control. A web browser has no home-indicator inset, so
     that hang crosses the tab bar; keep the full 16px when the inset is
     already clearing it (iPhone) and pull the bubble up when it is not. */
  top: calc(100% + 16px - max(0px, 12px - env(safe-area-inset-bottom, 0px)));
  left: 0;
  z-index: 6;
  max-width: 240px;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--aisle-ink, #1C1917);
  color: var(--aisle-cream, #F7F1E6);
  font-family: Outfit, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
  pointer-events: none;
}

.discover-undo-tip::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 16px;
  border-width: 0 6px 6px;
  border-style: solid;
  border-color: transparent transparent var(--aisle-ink, #1C1917);
}

/* Wide web. The 88px row's bottom is the deck padding: the 85px tab bar,
   a 16px gap, and the home-indicator inset. A bubble under the 44px
   control falls through that gap and the bar (z-index 100) covers it.
   Start the bubble at the control's bottom edge so it stays above the
   bar and the inset, and paint it above the bar if a subpixel remains.
   The phone row is outside this query. */
@media (min-width: 481px) {
  body:not(.discover-profile-open) .screen.active.discover-deck .discover-undo-tip {
    top: 100%;
    z-index: 110;
  }
}

/* Phone. Since the tab bar runs down under the home bar (190b5e6, Nov 7),
   its white background covers the inset the bubble used to hang into, so
   a bubble under the control sits behind the bar (z-index 100) and only
   its arrow shows. The row is only about 25pt above the bar, too little
   for the bubble, so it opens above the control instead, over the card's
   bottom edge, with its arrow pointing down at the button. */
@media (max-width: 480px) {
  body:not(.discover-profile-open) .screen.active.discover-deck .discover-undo-tip {
    top: auto;
    bottom: calc(100% + 10px);
    box-shadow: 0 2px 8px rgba(28, 25, 23, 0.3);
  }

  body:not(.discover-profile-open) .screen.active.discover-deck .discover-undo-tip::before {
    top: auto;
    bottom: -6px;
    border-width: 6px 6px 0;
    border-color: var(--aisle-ink, #1C1917) transparent transparent;
  }
}

.swipe-area[data-like-hold] .discover-undo-btn {
  pointer-events: none;
}

body:not(.discover-profile-open) .screen.active.discover-deck .aisle-card-wrap > .swipe-area .discover-undo-btn {
  pointer-events: auto;
}

.discover-undo-sheet-mark {
  width: 64px;
  height: 64px;
  margin: 4px auto 0;
  border-radius: 50%;
  background: var(--aisle-white, #FFFFFF);
  color: var(--aisle-ink, #1C1917);
  box-shadow: 0 3px 8px rgba(28, 25, 23, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.discover-undo-sheet-mark svg {
  width: 32px;
  height: 32px;
}

.discover-undo-eyebrow {
  margin: 10px 0 0;
  text-align: center;
  font-family: Outfit, system-ui, sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--aisle-produce, #1F7A4D);
}

.discover-undo-sub {
  margin: 6px 8px 14px;
  text-align: center;
  font-family: Outfit, "Pretendard", "Noto Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
  font-weight: var(--aisle-body-weight);
  font-size: var(--aisle-body-size);
  line-height: var(--aisle-body-lh);
  color: var(--rt-muted);
}

.discover-undo-benefits {
  list-style: none;
  margin: 0 0 4px;
  padding: 14px 16px 4px;
  background: var(--aisle-white, #FFFFFF);
  border-radius: 16px;
}

.discover-undo-benefits li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  font-family: Outfit, system-ui, sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: var(--aisle-ink, #1C1917);
}

.discover-undo-check {
  flex: 0 0 auto;
  color: var(--aisle-produce, #1F7A4D);
}

.gm-card-stack.discover-undo-return {
  animation: discover-undo-in 450ms ease-out;
}

@keyframes discover-undo-in {
  from { transform: translateX(-36%) rotate(-7deg); }
  to { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .gm-card-stack.discover-undo-return { animation: none; }
}

/* Invite A Friend on Discover's empty screens (launch gate PR 1). An ink
   outlined button under See People Again, the same height as the buttons
   above it, so it reads as the second choice. Copy Link appears when the
   share sheet can't open. The status line is always there, empty until
   it fills, so VoiceOver reads "Link Copied". */
.screen.discover-deck .discover-invite {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
}

.screen.discover-deck .btn.discover-invite-btn {
  min-height: 48px;
  margin: 0 0 10px;
  background: transparent !important;
  color: var(--aisle-ink) !important;
  border: 1.5px solid var(--aisle-ink) !important;
  font-family: Outfit, "Pretendard", "Noto Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
  font-size: var(--aisle-btn-size);
  font-weight: var(--aisle-btn-weight);
}

.screen.discover-deck .btn.discover-invite-btn:focus-visible {
  outline: 2px solid #1F7A4D;
  outline-offset: 2px;
}

.screen.discover-deck .discover-invite-status {
  margin: 0;
  color: var(--aisle-ink);
  font-size: 15px;
  font-weight: 600;
  text-align: center;
}

.screen.discover-deck .discover-invite-link {
  margin: 4px 0 0;
  color: var(--aisle-ink);
  font-size: 15px;
  text-align: center;
  overflow-wrap: anywhere;
  -webkit-user-select: text;
  user-select: text;
}

/* Short screens (the caught-up layout under 500px tall): the invite keeps
   its own height like the buttons above it. */
@media (max-height: 499px) {
  body:not(.discover-profile-open) .screen.active.discover-deck > .empty > .discover-invite {
    flex: 0 0 auto;
    margin-top: 10px;
  }

  /* After a failed share, Copy Link and the link line can be taller than
     the space above the tab bar: the column scrolls instead of cutting off
     the heading. safe center centers it while it fits and starts it at
     the top once it doesn't; a browser without safe keeps flex-start. */
  body:not(.discover-profile-open) .screen.active.discover-deck > .empty:has(> .discover-invite) {
    overflow-y: auto;
    justify-content: flex-start;
    justify-content: safe center;
  }
}
