/* Header wordmark: 24px aislemates srcset. Sign-in: full master at 28px in the top logo slot. Do not re-typeset or redraw. */
@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@400;500&display=swap");

:root {
  --aisle-produce: #1F7A4D;
  --aisle-cream: #F7F1E6;
  --aisle-ink: #1C1917;
  --aisle-sage: #D7E6D4;
  --aisle-tomato: #E23D2F;
  --aisle-gold: #E8B84A;
  --aisle-white: #FFFFFF;
  --aisle-muted: #8A837A;
  --aisle-pct: #C4921E;
}

html, body {
  background: var(--aisle-cream) !important;
  color: var(--aisle-ink);
  font-family: Outfit, Inter, system-ui, sans-serif;
}

.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 {
  height: 44px;
  padding: 8px 20px 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--aisle-cream);
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 40;
}

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-header-24h@1x.png?v=6");
  content: -webkit-image-set(
    url("/brand/aislemates/wordmark-header-24h@1x.png?v=6") 1x,
    url("/brand/aislemates/wordmark-header-48h@2x.png?v=6") 2x,
    url("/brand/aislemates/wordmark-header-72h@3x.png?v=6") 3x
  );
  content: image-set(
    url("/brand/aislemates/wordmark-header-24h@1x.png?v=6") 1x,
    url("/brand/aislemates/wordmark-header-48h@2x.png?v=6") 2x,
    url("/brand/aislemates/wordmark-header-72h@3x.png?v=6") 3x
  );
}

/* Sign-in wordmark only. The 24px header files are shorter than 28px CSS at 3x, so this uses the unscaled master. */
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-full.png?v=6");
}

.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;
}

.login-screen {
  background: var(--aisle-cream);
  min-height: 100vh;
  padding: 24px 20px;
}

.login-screen h2 {
  font-family: Outfit, system-ui, sans-serif;
  font-weight: 800;
  color: var(--aisle-ink);
}

.btn-primary {
  background: var(--aisle-produce) !important;
  color: var(--aisle-white) !important;
  border: none;
  font-family: Outfit, system-ui, sans-serif;
  font-weight: 700;
}

.btn-secondary {
  background: var(--aisle-sage) !important;
  color: var(--aisle-produce) !important;
  border: 2px solid var(--aisle-produce) !important;
}

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

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;
  padding: 6px 4px 18px !important;
  z-index: 100;
}

.nav-btn {
  flex: 1;
  background: none !important;
  border: none;
  color: var(--aisle-muted) !important;
  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 {
  font-family: Outfit, system-ui, sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1px;
}

.nav-btn svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
}

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

img.aisle-mark,
.nav-btn.discover img,
.nav-btn[aria-label="Discover"] img,
.nav-btn img.icon-mark {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
  filter: grayscale(1) opacity(0.42);
  content: url("/brand/gageamor/mark-tab@1x.png");
  content: -webkit-image-set(
    url("/brand/gageamor/mark-tab@1x.png") 1x,
    url("/brand/gageamor/mark-tab@2x.png") 2x,
    url("/brand/gageamor/mark-tab@3x.png") 3x
  );
  content: image-set(
    url("/brand/gageamor/mark-tab@1x.png") 1x,
    url("/brand/gageamor/mark-tab@2x.png") 2x,
    url("/brand/gageamor/mark-tab@3x.png") 3x
  );
}

.nav-btn.active img.aisle-mark,
.nav-btn.active.discover img,
.nav-btn.active[aria-label="Discover"] img,
.nav-btn.active img.icon-mark {
  filter: none;
  opacity: 1;
}

/* 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, system-ui, sans-serif;
  font-weight: 800;
  font-size: 32px;
  color: #fff !important;
  letter-spacing: -0.6px;
  line-height: 1.05;
  text-shadow: 0 1px 8px rgba(0,0,0,0.25);
}

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

.score-badge,
.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, system-ui, 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: "IBM Plex Mono", ui-monospace, monospace !important;
  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, system-ui, sans-serif;
}

.screen.active {
  overflow-y: auto;
}

.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;
}

@property --discover-like-bg {
  syntax: "<color>";
  inherits: false;
  initial-value: #E23D2F;
}

.swipe-btn.accept {
  --discover-like-bg: #E23D2F;
  background: var(--discover-like-bg) !important;
  color: var(--aisle-white) !important;
  box-shadow: 0 8px 22px rgba(226,61,47,0.35) !important;
  padding: 0;
  overflow: visible;
  position: relative;
  transition: none;
}

/* 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;
}

/* Discover like flash (Idle A cart-only → tomato heart ~1s). Skip/X unchanged.
   Franz v2.4 tight crops are 193×149 @3x (byte drop-in). Idle A’s 420px board
   paints that crop at (133,125) on a 360px circle whose origin is (30,30).
   That spot already includes the locked −1 logical px whole-mark shift.
   Both marks share one box so the crossfade does not move the cart. */
.swipe-btn.accept .swipe-btn-like-marks {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.swipe-btn.accept .swipe-btn-like-mark {
  position: absolute;
  width: calc(193 / 360 * 100%);
  height: calc(149 / 360 * 100%);
  left: calc(103 / 360 * 100%);
  top: calc(95 / 360 * 100%);
  object-fit: fill;
  pointer-events: none;
}

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

.swipe-btn.accept::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  box-shadow: 0 0 0 3px rgba(226, 61, 47, 0.45), 0 0 18px 6px rgba(226, 61, 47, 0.55);
}

.swipe-btn.accept[data-like-arm] {
  animation-name: discover-like-flash, discover-like-pulse;
  animation-duration: 1000ms, 120ms;
  animation-timing-function: linear, ease-out;
  animation-fill-mode: forwards, 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;
}

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

@keyframes discover-like-flash {
  0%, 85% { --discover-like-bg: #F05A4A; }
  100% { --discover-like-bg: #E23D2F; }
}

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

@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;
}

.filter-label {
  color: var(--aisle-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, system-ui, sans-serif;
}

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

.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(--aisle-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(--aisle-muted);
  font-family: Outfit, system-ui, 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(--aisle-muted);
  font-size: 13px;
  line-height: 1.4;
  font-family: Outfit, system-ui, 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);
  font-family: Outfit, system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
}

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

/* Matches */
.aisle-matches-title {
  font-family: Outfit, system-ui, sans-serif;
  font-weight: 800;
  font-size: 28px;
  letter-spacing: -0.7px;
  color: var(--aisle-ink);
  padding: 4px 0 16px;
  margin: 0;
}

.match-card {
  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, system-ui, sans-serif;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.3px;
  color: var(--aisle-ink);
}

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

.chat-btn {
  background: var(--aisle-tomato) !important;
  color: var(--aisle-white) !important;
  font-family: Outfit, system-ui, sans-serif;
  font-weight: 700;
  font-size: 14px;
  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, system-ui, sans-serif;
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -0.5px;
  line-height: 1.1;
  color: var(--aisle-ink);
  margin-top: 12px;
}

.aisle-profile-bio,
.profile-bio {
  margin-top: 4px;
  font-size: 15px;
  line-height: 22px;
  color: #4A4541;
  font-family: Outfit, system-ui, sans-serif;
}

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

.grocery-header,
.aisle-receipts-label {
  font-family: Outfit, system-ui, 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(--aisle-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);
  font-family: Outfit, system-ui, sans-serif;
  font-weight: 700;
  font-size: 15px;
  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, system-ui, sans-serif;
}

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

.aisle-logout-btn,
button.aisle-logout-btn,
button.aisle-logout-btn:disabled {
  background: transparent !important;
  color: var(--aisle-muted) !important;
  border: 1px solid rgba(28,25,23,0.12) !important;
  box-shadow: none !important;
  margin-top: 16px;
  font-family: Outfit, Inter, system-ui, sans-serif;
}

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, system-ui, 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;
  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;
}

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

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

.empty h3 {
  font-family: Outfit, system-ui, sans-serif;
  font-weight: 800;
  color: var(--aisle-ink);
}

/* 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);
}


/* Discover tomato mark — never Produce fill/stroke/filter */
.nav-btn.discover img,
.nav-btn.discover img.aisle-mark,
.nav-btn img.aisle-mark,
img.aisle-mark,
.aisle-mark {
  fill: none !important;
  stroke: none !important;
}
.nav-btn.discover:not(.active) img,
.nav-btn.discover:not(.active) img.aisle-mark,
.nav-btn:not(.active) img.aisle-mark {
  filter: grayscale(1) opacity(0.42);
}
.nav-btn.discover.active img,
.nav-btn.active.discover img,
.nav-btn.discover.active img.aisle-mark,
.nav-btn.active img.aisle-mark,
.nav-btn.active.discover img.aisle-mark {
  filter: none !important;
  opacity: 1;
}
.nav-btn.discover svg {
  /* Discover uses the tomato PNG, not a Produce-tinted heart */
  fill: none;
}

/* 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 !important;
  color: var(--aisle-pct) !important;
  font-weight: 700;
  font-size: 13px;
  padding: 0;
  border-radius: 0;
}

/* Edit profile control */
.aisle-edit-profile,
#aisle-edit-profile {
  margin-top: 8px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--aisle-muted);
  background: none;
  border: none;
  width: 100%;
  cursor: pointer;
  font-family: Outfit, system-ui, 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;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.receipt-delete-btn {
  flex-shrink: 0;
  border: none;
  background: transparent;
  color: var(--aisle-tomato);
  font-family: Outfit, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  cursor: pointer;
  padding: 4px 8px;
  margin: 0;
  border-radius: 999px;
}

.receipt-delete-btn:hover {
  background: rgba(226, 61, 47, 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, system-ui, sans-serif;
}

.recipe-card .close {
  position: absolute;
  top: 14px;
  right: 14px;
  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 {
  font-family: Outfit, system-ui, sans-serif;
  font-size: 26px;
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1.12;
  padding-right: 28px;
  max-width: 16em;
  margin: 0;
  color: #1C1917;
}

.recipe-card a.recipe {
  display: inline-block;
  margin-top: 8px;
  font-family: Outfit, system-ui, sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  color: #E23D2F;
  text-decoration: underline;
  text-decoration-color: #E23D2F;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.recipe-card a.recipe:visited {
  color: #E23D2F;
}

.recipe-card .note {
  margin-top: 10px;
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1.4;
  color: #8A837A;
  max-width: 28em;
}

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

.recipe-card .block h2,
.recipe-card .missing h2 {
  font-family: Outfit, system-ui, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8A837A;
  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: 15px;
  font-weight: 500;
  line-height: 1.35;
  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: 18px;
  top: 15px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #D7E6D4;
  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: 62px 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: 11.5px;
  font-weight: 450;
  color: #8A837A;
  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: 14.5px;
  font-weight: 500;
  line-height: 1.3;
  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: 15px;
  font-weight: 500;
  line-height: 1.35;
  color: #1C1917;
  white-space: normal;
  overflow: visible;
  overflow-wrap: anywhere;
  max-height: none;
}

.recipe-card .qual {
  display: block;
  margin-top: 1px;
  font-size: 12.5px;
  font-weight: 450;
  color: #8A837A;
}

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

.recipe-card.recipe-card-shared h1 {
  padding-right: 0;
  font-size: 25px;
}

/* Edamam attribution sits under the card copy, caption-sized and muted.
   The tomato color stays on the recipe title link only. */
.recipe-card .edamam-attribution {
  margin-top: 16px;
  text-align: left;
}

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

.recipe-card .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 {
  margin: 6px 0 0;
  font-family: Outfit, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  color: #8A837A;
}

.recipe-card .edamam-source a,
.recipe-card .edamam-source a:visited {
  color: #8A837A;
  text-decoration: underline;
  text-decoration-color: #8A837A;
  text-underline-offset: 2px;
}
