@font-face {
  font-family: 'Druk Wide';
  src: url('../../fonts/Druk Wide-Medium-Web.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: block;
}

:root {
    --Text-primary: black;
    --Text-white: white;
    --Text-secondary: #7E7E7E;
    --background-dark: #F4F5F0;
    --background-white: white;
    --background-white-60: rgba(255, 255, 255, 0.60);
    --background-stroke: rgba(204, 204, 202, 0.30);
    --Button-primary: #FFF066;
    --Button-secondary: black;
    --Icons-black: black;
    --Icons-white: white;
}

* {
  box-sizing: border-box; margin: 0; padding: 0;
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}

*::-webkit-scrollbar {
  width: 4px;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 2px;
  transition: background 0.3s;
}

.scrolling::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
}

.scrolling {
  scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

html, body {
  overflow-x: hidden;
  max-width: 100%;
}

body {
  background: #F4F5F0;
}

/* Tablet header (640px+) */
.tablet-header {
  display: none;
  width: 100%;
  padding: 24px 60px 0;
  box-sizing: border-box;
  align-items: center;
  justify-content: space-between;
}

.tablet-header-logo {
  color: black;
  font-size: 26px;
  font-family: 'Druk Wide', sans-serif;
  font-weight: 700;
  text-decoration: none;
  flex: 1;
}

.tablet-header-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex: 1;
}

.tablet-header-nav a {
  color: #888;
  font-size: 16px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}

.tablet-header-nav a:hover {
  color: black;
}

.tablet-header-nav a.active {
  color: black;
}

.tablet-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex: 1;
}

.tablet-header-avatar {
  width: 34px;
  height: 34px;
  border-radius: 9999px;
  background: #E5E6DF;
  cursor: pointer;
  margin-right: 10px;
}

.tablet-header-appstore {
  height: 48px;
  width: auto;
}

@media (max-width: 1200px) {
  .tablet-header { padding: 24px 40px 0; }
}

@media (max-width: 960px) {
  .tablet-header { padding: 24px 20px 0; }
}

/* Tablet footer (640px+) */
.tablet-footer {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 30px 20px 100px;
  text-align: center;
}

.tablet-footer-brand {
  color: black;
  font-size: 22px;
  font-family: 'Druk Wide', sans-serif;
  font-weight: 500;
  text-decoration: none;
}

.tablet-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.tablet-footer-link {
  color: #888;
  font-size: 16px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  text-decoration: none;
  transition: opacity 0.2s;
  cursor: pointer;
}

.tablet-footer-link:hover {
  opacity: 0.7;
}

/* Try Pro */
/* Avatar */
/* Greeting */
/* Name — hidden */
/* Hero banner wrapper (flex at 640+) */
/* Card */
/* Button */
/* History */
/* Ingredient pills (shared: home + browse) */
.home-ing-pill {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 3px 5px 3px 3px;
  background: #F4F5F0;
  border-radius: 8px;
}

.home-ing-pill-img {
  width: 24px;
  height: 24px;
  border-radius: 5px;
  object-fit: cover;
  display: block;
}

.home-ing-pill span {
  color: black;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  line-height: 18px;
}

/* Recipe cards */
/* Browse page */
/* Recipe cards — copied from recipes.css */
.mobile-only .rcard {
  width: 100%;
  background: white;
  border-radius: 20px;
  padding: 0 20px 22px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  text-decoration: none;
  color: inherit;
  flex: none;
  transform: none !important;
  animation: none;
  transition: none;
}

.rcard-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 2;
  padding-top: 20px;
}

.rcard-time {
  display: flex;
  align-items: center;
  gap: 6px;
}

.rcard-time-icon-img {
  width: 20px; height: 20px;
}

.rcard-time-text {
  color: #7E7E7E;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  line-height: 15px;
}

.rcard-ingredients {
  display: flex;
  align-items: center;
  gap: 4px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  cursor: pointer;
}

.rcard-ingredient-thumb {
  width: 20px; height: 20px;
  background: #F4F5F0;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rcard-ingredient-thumb img {
  width: 16px; height: 16px;
  object-fit: contain;
  border-radius: 4px;
}

.rcard-ingredient-more {
  width: 18px; height: 18px;
  background: #FFF066;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  line-height: 11px;
  color: black;
}

.rcard-save {
  width: 20px; height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rcard-save img {
  width: 20px; height: 20px;
}

.rcard-img-wrap {
  position: relative;
  align-self: center;
  margin-top: -10px;
  width: 200px;
  height: 200px;
  flex-shrink: 0;
  overflow: visible;
}

.rcard-img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  display: block;
}

.rcard-heat {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 18px;
}

.rcard-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 1px;
}

.rcard-meta {
  text-align: center;
  color: #7E7E7E;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  line-height: 15px;
}

.rcard-name {
  text-align: center;
  color: black;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  line-height: 19px;
  min-height: 38px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

/* Browse footer popup */
/* Recent bottom sheet */
/* Saved page */
.rcard-remove {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.rcard-remove img {
  width: 20px;
  height: 20px;
}

.rcard-save.saved {
  opacity: 1;
}

/* Plan page */
/* Plan result */
/* Plan Chat FAB */
/* Plan Chat Overlay — bottom sheet popover */
@keyframes planSwipePeek {
  0% { transform: translateX(0); }
  30% { transform: translateX(-60px); }
  70% { transform: translateX(-60px); }
  100% { transform: translateX(0); }
}

@keyframes planChatSlideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

@keyframes planChatFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes planChatBounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

/* Basket page */
/* Bottom nav — iOS 26 Liquid Glass style */
.bottom-nav {
  position: fixed;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.bottom-nav.hidden {
  transform: translateX(-50%) translateY(calc(100% + 20px));
}

.bottom-nav-inner {
  position: relative;
  display: flex;
  gap: 0;
  padding: 8px 6px;
  background: #FFFFFF;
  border-radius: 22px;
  border: none;
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: padding 0.3s ease, border-radius 0.3s ease;
  overflow: hidden;
}

.bottom-nav-inner::before {
  display: none;
}

.bottom-nav-inner::after {
  display: none;
}

.bottom-nav-inner.compact {
  padding: 6px 4px;
  border-radius: 18px;
}

.bottom-nav-inner.compact::after {
  border-radius: 18px 18px 50% 50%;
}

.bottom-nav-search {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #FFF066;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  flex-shrink: 0;
  overflow: hidden;
}

.bottom-nav-search::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  border-radius: 50%;
  filter: url(#glass-distort);
  background: transparent;
  pointer-events: none;
  z-index: 0;
}

.bottom-nav-search::after {
  display: none;
}

.bottom-nav-search img,
  .bottom-nav-search svg {
  opacity: 1; filter: none; position: relative; top: 0;
}

.bottom-nav-search.active {
  background: #FFF066;
}

.bottom-nav-inner.compact ~ .bottom-nav-search {
  width: 48px;
  height: 48px;
}

.bottom-nav-item {
  width: 52px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 16px;
  transition: background 0.2s ease, transform 0.3s ease;
  position: relative;
}

.basket-count-badge {
  position: absolute;
  top: 2px;
  right: 4px;
  min-width: 16px;
  height: 16px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--Button-primary);
  color: #000;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  pointer-events: none;
}

.bottom-nav-inner.compact .bottom-nav-item {
  width: 42px;
  height: 36px;
  border-radius: 12px;
}

.bottom-nav-item img,
  .bottom-nav-item svg {
  opacity: 0.35; transition: opacity 0.2s ease, transform 0.3s ease; filter: brightness(0);
}

.bottom-nav-inner.compact .bottom-nav-item img,
  .bottom-nav-inner.compact .bottom-nav-item svg {
  transform: scale(0.75);
}

.bottom-nav-item.active {
  background: rgba(255, 255, 255, 0.35); box-shadow: 0 2px 8px rgba(31, 38, 135, 0.1);
}

.bottom-nav-item.active img,
  .bottom-nav-item.active svg {
  opacity: 1;
}

.bottom-nav-safe {
  display: none;
}

/* Settings overlay */
.settings-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  overflow: hidden;
}

.settings-overlay.open {
  display: block;
}

.settings-blur-bg {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
}

.settings-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.7) 5%, rgba(255, 255, 255, 0) 50%);
}

.settings-content {
  position: relative;
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-bottom: 100px;
  pointer-events: none;
}

.settings-content > * {
  pointer-events: auto;
}

/* Avatar in settings */
.settings-avatar-wrap {
  padding: 0 16px;
}

.settings-avatar-box {
  position: relative;
  width: 53px;
  height: 53px;
  border-radius: 9999px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
}

.settings-avatar-circle {
  width: 53px;
  height: 53px;
  background: #E5E6DF;
  border-radius: 9999px;
  overflow: hidden;
}

.settings-avatar-plus {
  position: absolute;
  inset: -2px 0 2px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 300;
  color: #999;
  pointer-events: none;
}

.settings-avatar-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 9999px;
}

.settings-avatar-box .avatar-emoji {
  font-size: 26px;
  line-height: 1;
}

/* Avatar picker sheet */
.avatar-picker-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 3000;
}

.avatar-picker-overlay.open {
  display: block;
}

.avatar-picker-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-radius: 20px 20px 0 0;
  padding: 8px 16px 40px;
  z-index: 3001;
}

.avatar-picker-handle {
  width: 36px;
  height: 4px;
  background: #D9D9D9;
  border-radius: 2px;
  margin: 0 auto 20px;
}

.avatar-picker-options {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.avatar-picker-opt {
  flex: 1;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #E5E6DF;
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}

.avatar-picker-opt:active {
  background: #F4F5F0;
}

.avatar-emoji-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-top: 16px;
}

.avatar-emoji-cell {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  padding-top: 2px;
  cursor: pointer;
}

.avatar-emoji-cell:active {
  transform: scale(0.9);
}

/* Settings rows */
.settings-rows {
  display: flex;
  flex-direction: column;
}

.settings-user-name {
  padding: 6px 16px;
  padding-bottom: 34px;
  color: black;
  font-size: 20px;
  font-family: 'Druk Wide', sans-serif;
  font-weight: 500;
  line-height: 20px;
  background: none;
  border: none;
  outline: none;
  width: 100%;
  caret-color: black;
}

.settings-user-name::placeholder {
  color: #999;
}

.settings-row {
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.settings-row-label {
  flex: 1;
  color: black;
  font-size: 20px;
  font-family: 'Druk Wide', sans-serif;
  font-weight: 500;
  line-height: 20px;
}

/* Toggle */
.settings-toggle {
  width: 50px;
  height: 24px;
  background: #CCCCCA;
  border-radius: 100px;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.3s ease;
}

.settings-toggle.active {
  background: black;
}

.settings-toggle-knob {
  width: 24px;
  height: 20px;
  background: white;
  border-radius: 100px;
  position: absolute;
  top: 2px;
  left: 3px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}

.settings-toggle.active .settings-toggle-knob {
  transform: translateX(21px);
}

/* Units segmented control */
.settings-units {
  height: 28px;
  padding: 2px;
  background: rgba(118, 118, 128, 0.12);
  border-radius: 7px;
  display: flex;
  flex-shrink: 0;
}

.settings-unit-opt {
  padding: 3px 8px;
  font-size: 11px;
  font-family: -apple-system, 'SF Pro', sans-serif;
  font-weight: 400;
  line-height: 16px;
  color: black;
  display: flex;
  align-items: center;
  border-radius: 5px;
  cursor: pointer;
}

.settings-unit-opt.active {
  background: white;
  font-weight: 590;
  box-shadow: 0px 3px 1px rgba(0,0,0,0.04), 0px 3px 8px rgba(0,0,0,0.12);
}

/* Language value */
.settings-lang-value {
  color: black;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  line-height: 20px;
}

/* Language popover */
.lang-sheet-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.3);
  z-index: 2000;
  display: none;
}

.lang-sheet-overlay.visible {
  display: block;
}

.lang-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(100% - 40px);
  background: white;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  z-index: 2010;
  display: none;
  flex-direction: column;
  padding-top: 6px;
}

.lang-sheet-items {
  flex: 1;
  overflow-y: auto;
}

.lang-sheet.visible {
  display: flex;
}

.lang-sheet-handle {
  display: flex;
  justify-content: center;
  padding: 0 0 6px;
}

.lang-sheet-handle-bar {
  width: 36px;
  height: 5px;
  background: #CCCCCA;
  border-radius: 2.5px;
}

.lang-sheet-item {
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: black;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  line-height: 24px;
}

/* Filter popover */
.filter-sheet-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.3);
  z-index: 2000;
  display: none;
}

.filter-sheet-overlay.visible {
  display: block;
}

.filter-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(100% - 40px);
  background: white;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  z-index: 2010;
  display: none;
  flex-direction: column;
  padding-top: 6px;
  overscroll-behavior: none;
}

.filter-sheet.visible {
  display: flex;
}

.filter-sheet-handle {
  display: flex;
  justify-content: center;
  padding: 0 0 10px;
  cursor: grab;
}

.filter-sheet-handle-bar {
  width: 36px;
  height: 5px;
  background: #CCCCCA;
  border-radius: 2.5px;
}

.filter-sheet-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 0 20px 80px;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.filter-sheet-title {
  text-align: center;
  color: black;
  font-size: 26px;
  font-family: 'Druk Wide', sans-serif;
  font-weight: 500;
  line-height: 30px;
  padding: 16px 0 12px;
}

.filter-sheet-subtitle {
  text-align: center;
  color: #A1A09F;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  line-height: 20px;
  padding-bottom: 24px;
}

.filter-section-title {
  text-align: center;
  color: black;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  line-height: 22px;
  padding: 30px 0 30px;
  position: relative;
}

.filter-section-title::before {
  display: none;
}

.filter-section-sublabel {
  font-size: 12px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  color: #7E7E7E;
  padding: 12px 0 8px;
}

.filter-accordion {
  border-top: 1px solid #CCCCCA;
  margin: 0 -20px;
  margin-top: 0;
}

.filter-accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 70px;
  cursor: pointer;
}

.filter-accordion-header span {
  color: #7E7E7E;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  line-height: 22px;
}

.filter-accordion-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.filter-accordion-selected {
  display: none;
  height: 36px;
  padding: 0 10px;
  background: #ECECE5;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  color: black;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  line-height: 22px;
  white-space: nowrap;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.filter-accordion.collapsed .filter-accordion-selected.has-value {
  display: flex;
}

.filter-accordion-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.filter-accordion.collapsed .filter-accordion-chevron {
  transform: rotate(-90deg);
}

.filter-accordion-body {
  padding: 0 20px 32px;
}

.filter-accordion.collapsed .filter-accordion-body {
  display: none;
}

.filter-accordion.collapsed {
  height: 70px;
  overflow: hidden;
}

.filter-accordion:last-child {
  border-bottom: none;
  margin-bottom: 20px;
}

.filter-sheet-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px 20px 20px;
  background: transparent;
  z-index: 1;
}

.filter-show-btn {
  width: 100%;
  height: 52px;
  background: #D9D9D3;
  border: none;
  border-radius: 16px;
  color: white;
  font-size: 16px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  line-height: 16px;
  cursor: pointer;
}

.filter-show-btn.active {
  background: black;
}

.filter-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
}

.filter-card {
  width: calc((100% - 20px) / 3);
  aspect-ratio: 1;
  border-radius: 20px;
  border: none;
  outline: 1px solid #CCCCCA;
  outline-offset: -1px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 10px 15px;
  position: relative;
  cursor: pointer;
  box-sizing: border-box;
}

.filter-card.selected {
  outline: 1px solid black;
}

.filter-card.allergy-card {
  border-radius: 20px;
  border: none;
  outline: 1px solid #CCCCCA;
  outline-offset: -1px;
  padding: 10px 6px;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  overflow: hidden;
}

.filter-card.allergy-card .allergy-number {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 18px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  line-height: 1;
  color: black;
  z-index: 1;
}

.filter-card.allergy-card.selected {
  outline: 1px solid black;
}

.filter-card.allergy-card .allergy-circle {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 41px;
  height: 41px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  color: transparent;
  z-index: 0;
}


.filter-card.allergy-card .filter-card-label {
  font-size: 14px;
  line-height: 14px;
}

.filter-card.allergy-card.selected .allergy-circle {
  display: flex;
}

.filter-card-img {
  width: 65px;
  height: 65px;
  position: absolute;
  top: 9px;
  left: 50%;
  transform: translateX(-50%);
  z-index: -1;
}

.filter-card-emoji {
  font-size: clamp(45px, 14vw, 60px);
  line-height: 1;
  position: absolute;
  top: 46%;
  left: 50%;
  transform: translate(-50%, -50%);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.filter-card[style*="background"] {
  outline: none;
}

.filter-card[style*="background"] .filter-card-label {
  font-size: 10px;
  line-height: 12px;
  color: #000;
  white-space: nowrap;
}

.filter-card[style*="background"].selected {
  outline: 2px solid black;
}

.filter-card-label {
  color: #7E7E7E;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  line-height: 12px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.restrictions-overlay .filter-card-label,
.restrictions-overlay .filter-card[style*="background"] .filter-card-label,
.restrictions-overlay .filter-card.allergy-card .filter-card-label {
  font-size: 14px !important;
  line-height: 14px !important;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 4px 0 12px;
}

.filter-chip {
  height: 34px;
  padding: 0 10px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: black;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  line-height: 22px;
}

.filter-chip.selected {
  background: #ECECE5;
}

.settings-logout {
  padding: 14px 16px;
  margin-top: 24px;
  color: black;
  font-size: 16px;
  font-family: 'Druk Wide', sans-serif;
  font-weight: 500;
  line-height: 16px;
  cursor: pointer;
}

/* Settings bottom toolbar */
.settings-toolbar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 2001;
  padding: 0 16px 28px;
  display: flex;
  justify-content: flex-end;
}

.settings-home-btn {
  width: 66px;
  height: 48px;
  background: black;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.settings-home-btn svg {
  width: 20px;
  height: 20px;
  stroke: white;
  stroke-width: 2;
  fill: none;
}

/* Recipe Detail Page */
/* Benefits sheet */
/* Cooking sheet */
.scroll-top-btn {
  position: fixed;
  bottom: 84px;
  right: 16px;
  width: 34px;
  height: 34px;
  background: black;
  border-radius: 50%;
  border: none;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 50;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.scroll-top-btn.visible {
  display: flex;
}

.scroll-top-btn svg {
  width: 14px;
  height: 14px;
}

/* Community: Comments & Gallery */
/* Info pages (Privacy, Terms, Contact, Collaboration) */
/* Founder section */
/* Collab feature cards */
/* Settings links (Contact, Collaboration) */
.settings-links {
  display: flex;
  flex-direction: column;
}

.settings-link-item {
  padding: 12px 16px;
  font-family: 'Druk Wide', sans-serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 20px;
  color: black;
  cursor: pointer;
}

/* Legal section */
.settings-legal {
  margin-top: 24px;
  padding: 0 16px;
}

.settings-legal-label {
  font-family: 'Druk Wide', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: black;
  margin-bottom: 8px;
}

.settings-legal-item {
  font-family: 'Druk Wide', sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 16px;
  color: black;
  padding: 10px 0;
  cursor: pointer;
}

/* Camera overlay */
.cam-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: black;
  z-index: 3000;
  display: none;
  flex-direction: column;
}

.cam-overlay.open {
  display: flex;
}

.cam-viewfinder {
  flex: 1;
  object-fit: cover;
  width: 100%;
  background: #111;
}

.cam-analyzing {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 600;
}

.cam-bottom {
  background: black;
  padding: 16px 20px 34px;
}

.cam-label {
  text-align: center;
  color: #999;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 16px;
}

.cam-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.cam-shutter {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 3px solid white;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.cam-shutter-inner {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: white;
}

.cam-ctrl-btn {
  width: 44px;
  height: 44px;
  border: none;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.cam-close {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(0,0,0,0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1;
}

/* Voice overlay — 1:1 клон .browse-shape (white sheet top:0 → bottom:82px, rounded bottom 20px) */
.voice-overlay {
  display: none;
  background: white;
  border-radius: 0 0 20px 20px;
  overflow-y: auto;
  overflow-x: hidden;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 82px;
  z-index: 3600;
}
.voice-overlay.open { display: block; }

.voice-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
}

.voice-close {
  width: 24px;
  height: 24px;
  cursor: pointer;
}

.voice-content {
  flex: 1;
  overflow-y: auto;
  padding: 0 20px;
}

.voice-prompt {
  text-align: center;
  padding: 60px 20px 40px;
}

.voice-prompt-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.voice-prompt-title {
  font-family: 'Druk Wide', sans-serif;
  font-size: 22px;
  font-weight: 500;
  color: black;
  margin-bottom: 8px;
}

.voice-prompt-sub {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #7E7E7E;
  line-height: 20px;
}

.voice-status {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #7E7E7E;
  min-height: 18px;
  margin-top: 10px;
  text-align: center;
  padding: 0 20px;
}

.voice-stack {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 8px;
  padding: 20px 20px 8px;
  min-height: 60px;
}

.voice-pill-in {
  animation: voice-pill-in 220ms ease-out;
}

@keyframes voice-pill-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.voice-mic-wrap {
  display: flex;
  justify-content: center;
  padding: 40px 0;
}

.voice-mic-btn {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: none;
  background: black;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.voice-mic-btn.recording {
  animation: mic-pulse 1.1s ease-in-out infinite;
}

@keyframes mic-pulse {
  0%, 100% { transform: scale(1); background: black; }
  50%      { transform: scale(1.12); background: #FF3B30; }
}

.browse-voice-icon-lines { display: none; }
.browse-footer-icon.recording .browse-voice-icon-mic { display: none; }
.browse-footer-icon.recording .browse-voice-icon-lines { display: block; }

.browse-voice-icon-lines .fv-bar {
  transform-box: fill-box;
  transform-origin: center;
  animation: voice-bar 1s ease-in-out infinite;
}
.browse-voice-icon-lines .fv-1 { animation-delay: 0s; }
.browse-voice-icon-lines .fv-2 { animation-delay: 0.1s; }
.browse-voice-icon-lines .fv-3 { animation-delay: 0.2s; }
.browse-voice-icon-lines .fv-4 { animation-delay: 0.3s; }
.browse-voice-icon-lines .fv-5 { animation-delay: 0.4s; }
.browse-voice-icon-lines .fv-6 { animation-delay: 0.5s; }

@keyframes voice-bar {
  0%, 100% { transform: scaleY(0.4); }
  50%      { transform: scaleY(1.3); }
}

.voice-bottom {
  background: white;
  padding: 12px 20px 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

/* Auth gate sheet */
.auth-gate-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.3);
  z-index: 4000;
  display: none;
}

.auth-gate-overlay.visible {
  display: block;
}

.auth-gate-sheet {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: white;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  z-index: 4010;
  display: none;
  flex-direction: column;
  padding: 6px 20px 34px;
}

.auth-gate-sheet.visible {
  display: flex;
}

.auth-gate-handle {
  display: flex;
  justify-content: center;
  padding: 0 0 16px;
}

.auth-gate-handle-bar {
  width: 36px;
  height: 5px;
  background: #CCCCCA;
  border-radius: 2.5px;
}

.auth-gate-icon {
  text-align: center;
  font-size: 40px;
  margin-bottom: 12px;
}

.auth-gate-title {
  text-align: center;
  font-family: 'Druk Wide', sans-serif;
  font-size: 20px;
  font-weight: 500;
  color: black;
  margin-bottom: 8px;
}

.auth-gate-text {
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #7E7E7E;
  line-height: 20px;
  margin-bottom: 24px;
}

.auth-gate-btn {
  width: 100%;
  height: 54px;
  background: black;
  border: none;
  border-radius: 20px;
  color: white;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 10px;
}

.auth-gate-skip {
  width: 100%;
  height: 44px;
  background: none;
  border: none;
  color: #7E7E7E;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

/* Paywall sheet */
.paywall-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.3);
  z-index: 4000;
  display: none;
}

.paywall-overlay.visible {
  display: block;
}

.paywall-sheet {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: white;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  z-index: 4010;
  display: none;
  flex-direction: column;
  padding: 6px 20px 34px;
}

.paywall-sheet.visible {
  display: flex;
}

.paywall-handle {
  display: flex;
  justify-content: center;
  padding: 0 0 16px;
}

.paywall-handle-bar {
  width: 36px;
  height: 5px;
  background: #CCCCCA;
  border-radius: 2.5px;
}

.paywall-icon {
  text-align: center;
  font-size: 40px;
  margin-bottom: 12px;
}

.paywall-title {
  text-align: center;
  font-family: 'Druk Wide', sans-serif;
  font-size: 20px;
  font-weight: 500;
  color: black;
  margin-bottom: 8px;
}

.paywall-text {
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #7E7E7E;
  line-height: 20px;
  margin-bottom: 8px;
}

.paywall-uses {
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #A1A09F;
  margin-bottom: 20px;
}

.paywall-btn {
  width: 100%;
  height: 54px;
  background: black;
  border: none;
  border-radius: 20px;
  color: white;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 10px;
}

.paywall-stores-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.paywall-store-btn {
  flex: 1;
  height: 54px;
  background: black;
  border: none;
  border-radius: 20px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.paywall-store-btn svg {
  width: 32px;
  height: 32px;
  fill: white;
  flex-shrink: 0;
}

.paywall-later {
  width: 100%;
  height: 44px;
  background: none;
  border: none;
  color: #7E7E7E;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

/* Restrictions overlay */
.restrictions-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #FFFFFF;
  z-index: 9999;
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.restrictions-overlay.visible {
  display: flex;
}

.restrictions-header {
  display: flex;
  justify-content: flex-end;
  padding: 16px 20px 0;
}

.restrictions-skip {
  background: none;
  border: none;
  color: #7E7E7E;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  line-height: 22px;
  cursor: pointer;
  padding: 0;
}

.restrictions-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 0 20px 120px;
}

.restrictions-icon {
  display: flex;
  justify-content: center;
  padding: 24px 0 16px;
  font-size: 48px;
  line-height: 1;
}

.restrictions-title {
  text-align: center;
  color: black;
  font-size: 30px;
  font-family: 'Druk Wide', sans-serif;
  font-weight: 500;
  line-height: 34px;
  padding-bottom: 8px;
}

.restrictions-subtitle {
  text-align: center;
  color: #A1A09F;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  line-height: 20px;
  padding-bottom: 24px;
}

.restrictions-overlay .filter-card-img {
  width: 43px;
  height: 43px;
}

.restrictions-section-title {
  color: black;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  line-height: 22px;
  padding: 20px 0 12px;
  text-align: center;
}

.restrictions-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 20px 34px;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, #FFFFFF 30%);
  z-index: 10000;
}

.restrictions-continue-btn {
  width: 100%;
  height: 60px;
  background: black;
  border: none;
  border-radius: 20px;
  color: white;
  font-size: 16px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  line-height: 18px;
  cursor: pointer;
}

/* Icon scaling per Apple device widths */
/* 375px — iPhone 8/SE3: 22px */
@media (min-width: 375px) {
  .rcard-time-icon-img { width: 22px; height: 22px; }
  .rcard-save { width: 22px; height: 22px; }
  .rcard-save img { width: 22px; height: 22px; }
  .rcard-ingredient-thumb { width: 24px; height: 24px; }
  .rcard-ingredient-thumb img { width: 20px; height: 20px; }
  .rcard-ingredient-more { width: 18px; height: 18px; }
  .rcard-heat { width: 22px; height: 22px; }
}
/* 390px+ — iPhone 12/13/14/15/Pro Max/Plus: 24px */
@media (min-width: 390px) {
  .rcard-time-icon-img { width: 24px; height: 24px; }
  .rcard-save { width: 24px; height: 24px; }
  .rcard-save img { width: 24px; height: 24px; }
  .rcard-ingredient-thumb { width: 26px; height: 26px; }
  .rcard-ingredient-thumb img { width: 22px; height: 22px; }
  .rcard-ingredient-more { width: 18px; height: 18px; }
  .rcard-heat { width: 24px; height: 24px; }
}

.rcard-ingredients .rcard-ingredient-more,
.rcard-list-ings .rcard-ingredient-more {
  width: 18px !important;
  min-width: 18px !important;
  max-width: 18px !important;
  height: 18px !important;
  min-height: 18px !important;
  max-height: 18px !important;
  flex: 0 0 18px !important;
  font-size: 10px !important;
  line-height: 11px !important;
  font-family: 'Inter', sans-serif !important;
  font-weight: 400 !important;
}

/* Recipe ingredients bottom sheet */
@media (min-width: 375px) {
  .rcard-time-text,
  .rcard-meta,
  .rcard-name,
  .avatar-picker-opt,
  .settings-lang-value,
  .lang-sheet-item,
  .filter-sheet-subtitle,
  .filter-section-title,
  .filter-accordion-header span,
  .filter-accordion-selected,
  .filter-show-btn,
  .filter-card.allergy-card .allergy-number,
  .filter-card.allergy-card .allergy-circle,
  .filter-chip,
  .voice-prompt-sub,
  .auth-gate-text,
  .auth-gate-skip,
  .paywall-text,
  .paywall-later,
  .restrictions-skip,
  .restrictions-subtitle,
  .restrictions-section-title,
  .recipe-ing-sheet-name,
  .home-ing-pill span {
    font-size: 16px;
  }
}

/* 375px: recipe-ing-sheet-qty 12→14 */
@media (min-width: 375px) {
  .recipe-ing-sheet-qty {
    font-size: 14px;
  }
}

/* 440px breakpoint: all fonts +2px */
@media (min-width: 393px) {
  .rcard-img-wrap {
    margin-top: 15px; margin-bottom: 35px;
  }
}

@media (min-width: 440px) {
  .settings-unit-opt {
    font-size: 13px;
  }

  .filter-card-label {
    font-size: 14px;
  }

  .cam-label,
  .paywall-uses {
    font-size: 15px;
  }

  .rcard-time-text,
  .rcard-meta,
  .rcard-name,
  .avatar-picker-opt,
  .settings-lang-value,
  .lang-sheet-item,
  .filter-sheet-subtitle,
  .filter-section-title,
  .filter-accordion-header span,
  .filter-accordion-selected,
  .filter-show-btn,
  .filter-card.allergy-card .allergy-number,
  .filter-card.allergy-card .allergy-circle,
  .filter-chip,
  .voice-prompt-sub,
  .auth-gate-text,
  .auth-gate-skip,
  .paywall-text,
  .paywall-later,
  .restrictions-skip,
  .restrictions-subtitle,
  .restrictions-section-title,
  .recipe-ing-sheet-name {
    font-size: 16px;
  }

  .settings-logout,
  .settings-legal-label,
  .settings-legal-item,
  .auth-gate-btn,
  .paywall-btn,
  .restrictions-continue-btn {
    font-size: 18px;
  }

  .cam-analyzing {
    font-size: 20px;
  }

  .settings-user-name,
  .settings-row-label,
  .settings-link-item,
  .auth-gate-title,
  .paywall-title {
    font-size: 22px;
  }

  .voice-prompt-title {
    font-size: 24px;
  }

  .recipe-ing-sheet-title {
    font-size: 32px;
  }

  .filter-sheet-title {
    font-size: 32px;
  }

  .avatar-emoji-cell {
    font-size: 30px;
  }

  .restrictions-title {
    font-size: 32px;
  }

  .settings-avatar-box .avatar-emoji {
    font-size: 38px;
  }

  .auth-gate-icon,
  .paywall-icon {
    font-size: 42px;
  }

  .voice-prompt-icon,
  .restrictions-icon {
    font-size: 50px;
  }

  .settings-avatar-wrap {
    padding: 0 20px;
  }

  .settings-user-name {
    padding: 6px 20px 34px;
  }

  .settings-row {
    padding: 12px 20px;
  }

  .settings-logout {
    padding: 14px 20px;
  }

  .settings-toolbar {
    padding: 0 20px 28px;
  }

  .settings-link-item {
    padding: 12px 20px;
  }

  .settings-legal {
    padding: 0 20px;
  }
}

@media (min-width: 640px) {
  .tablet-header {
    display: flex;
  }

  .tablet-footer {
    display: flex;
  }

  .filter-sheet {
    border-radius: 20px 20px 0 0;
  }

  .filter-accordion:last-child {
    border-bottom: none;
  }

  .filter-sheet-footer {
    bottom: 0;
    padding: 16px 20px;
    left: 0;
    right: 0;
    background: white;
  }

  .filter-sheet-scroll {
    padding-bottom: 80px;
  }

  .filter-sheet .filter-card {
    width: calc((100% - 50px) / 6);
    padding: 8px 4px;
  }

  .filter-sheet .filter-card-img {
    width: 56px;
    height: 56px;
  }

  .filter-sheet .filter-card-label {
    font-size: 10px;
  }

  .restrictions-overlay .filter-card {
    width: calc((100% - 50px) / 6);
    padding: 8px 4px;
  }

  .restrictions-overlay .filter-card-img {
    width: 56px;
    height: 56px;
  }

  .restrictions-overlay .filter-card.allergy-card {
    padding: 8px 4px;
  }

  .restrictions-overlay .filter-card-label {
    font-size: 14px !important;
    line-height: 14px !important;
  }

  .restrictions-overlay .filter-card.allergy-card .allergy-number {
    font-size: 12px;
  }
}

/* Recipe ingredients bottom sheet (from rcard-ingredients click) */
.recipe-ing-sheet-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.3);
  z-index: 300;
  display: none;
}
.recipe-ing-sheet-overlay.open { display: block; }
.recipe-ing-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(100% - 40px);
  background: white;
  border-radius: 20px 20px 0 0;
  z-index: 301;
  display: none;
  flex-direction: column;
  padding: 0 0 20px;
}
.recipe-ing-sheet.open { display: flex; }
.recipe-ing-sheet-handle {
  display: flex;
  justify-content: center;
  padding: 10px 0 10px;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}
.recipe-ing-sheet-handle::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: -10px;
  height: 10px;
  background: linear-gradient(180deg, white 0%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}
.recipe-ing-sheet-handle-bar {
  width: 36px;
  height: 4px;
  background: #CCCCCA;
  border-radius: 2px;
}
.recipe-ing-sheet-title {
  text-align: center;
  font-family: 'Druk Wide', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: black;
  margin-top: 10px;
  margin-bottom: 16px;
}
.recipe-ing-sheet-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  scrollbar-width: none;
  padding-bottom: 68px;
}
.recipe-ing-sheet-list::-webkit-scrollbar { display: none; }
.recipe-ing-sheet-row {
  display: flex;
  align-items: center;
  padding: 9px 20px;
  gap: 14px;
  transition: background 0.2s;
}
.recipe-ing-sheet-row.selected {
  background: #F4F5F0;
}
.recipe-ing-sheet-check {
  width: 22px;
  height: 22px;
  border: 1.5px solid #D9D9D3;
  border-radius: 50%;
  flex-shrink: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.recipe-ing-sheet-check.checked {
  background: black;
  border-color: black;
}
.recipe-ing-sheet-check.checked::after {
  content: '';
  width: 20px;
  height: 20px;
  background: url('/images/Icons/done.svg') no-repeat center;
  background-size: contain;
  filter: invert(1);
}
.recipe-ing-sheet-img {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: #F4F5F0;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.recipe-ing-sheet-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.recipe-ing-sheet-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.recipe-ing-sheet-name {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: black;
}
.recipe-ing-sheet-qty {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: #999;
}
.home-btn {
  width: 100%;
  height: 48px;
  background: black;
  color: white;
  border: none;
  border-radius: 16px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  line-height: 15.6px;
  cursor: pointer;
  text-align: center;
}
.recipe-ing-sheet .home-btn {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  width: auto;
}

/* Cookie banner — mobile layout override (inline styles set by analytics.js) */
@media (max-width: 640px) {
  .cookie-banner {
    left: 10px !important;
    right: 10px !important;
    max-width: none !important;
    padding: 20px !important;
    gap: 10px !important;
  }
  .cookie-banner > div {
    font-size: 13px !important;
    line-height: 18px !important;
    margin-bottom: 4px !important;
  }
  .cookie-banner > button {
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
  }
  .cookie-banner > button:nth-of-type(1) { order: 2; }
  .cookie-banner > button:nth-of-type(2) { order: 1; }
}

/* ========== Mild Spinner — universal yellow ring ========== */
@keyframes mildSpinRotate {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}
@keyframes mildSpinRotateEl {
  to { transform: rotate(360deg); }
}

/* Splash removed — was permanently white because nothing toggled body.mild-ready,
   leaving every page covered by an opaque overlay. Per-image .mild-img-pending
   spinners handle the loading hint. */

/* Inline spinner element — usable anywhere via <span class="mild-spin"></span> */
.mild-spin {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(255, 240, 102, 0.25);
  border-top-color: #FFF066;
  border-radius: 50%;
  animation: mildSpinRotateEl 0.9s linear infinite;
  display: inline-block;
  box-sizing: border-box;
}

/* Per-image loading — replaces placehold.co placeholders + any pending <img> with yellow spinner.
   Keep original width/height so the spinner sits in the CENTER of the card media box,
   not squashed into a 40x40 top-left corner. Blank pixel src + yellow spinner as background. */
img.mild-img-pending {
  background-color: transparent !important;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'><circle cx='20' cy='20' r='17' fill='none' stroke='%23FFF066' stroke-opacity='0.25' stroke-width='3'/><path d='M20 3 A17 17 0 0 1 37 20' fill='none' stroke='%23FFF066' stroke-width='3' stroke-linecap='round'><animateTransform attributeName='transform' type='rotate' from='0 20 20' to='360 20 20' dur='0.9s' repeatCount='indefinite'/></path></svg>") !important;
  background-repeat: no-repeat !important;
  background-size: 40px 40px !important;
  background-position: center !important;
  object-fit: cover !important;
  border: none !important;
  padding: 0 !important;
}
.rcard-ingredient-thumb img.mild-img-pending,
.rcard-time img.mild-img-pending,
.rcard-save img.mild-img-pending,
.rcard-remove img.mild-img-pending,
.rcard-heat-badge img.mild-img-pending,
.home-ing-pill img.mild-img-pending,
.recipe-header-ing-thumb img.mild-img-pending,
.cooking-header-ing-thumb img.mild-img-pending,
img.recipe-ing-sheet-img.mild-img-pending,
.basket-ing-icon img.mild-img-pending,
.browse-ing-thumb img.mild-img-pending,
.plan-ing-thumb img.mild-img-pending,
.ing-tag img.mild-img-pending {
  background-size: 16px 16px !important;
}

/* List-level loading state — vertically + horizontally centered spinner.
   Used while a recipe-card grid is fetching its data. */
.mild-list-loading {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
  width: 100%;
}

/* ===== Mobile sheet sweep — full-screen, no handle bar, X-close button ===== */
/* 1. Hide every drag-handle bar across all sheets */
.lang-sheet-handle, .lang-sheet-handle-bar,
.filter-sheet-handle, .filter-sheet-handle-bar,
.recipe-ing-sheet-handle, .recipe-ing-sheet-handle-bar,
.auth-gate-handle, .auth-gate-handle-bar,
.paywall-handle, .paywall-handle-bar,
.cooking-handle, .cooking-handle-bar,
.benefits-handle, .benefits-handle-bar,
.recent-sheet-handle, .recent-sheet-handle-bar,
.avatar-picker-handle,
.plan-chat-handle {
  display: none !important;
}

/* 2. Lift sheets to full viewport — kill the dark backdrop gap and rounded top */
.lang-sheet, .filter-sheet, .recipe-ing-sheet,
.cooking-sheet, .benefits-sheet,
.auth-gate-sheet, .paywall-sheet,
.recent-sheet, .avatar-picker-sheet {
  top: 0 !important;
  height: 100% !important;
  max-height: 100% !important;
  border-top-left-radius: 0 !important;
  border-top-right-radius: 0 !important;
  padding-top: 0 !important;
}

/* 3. Universal close-X button — same blurry-white circle as .browse-close-circle.
   Position: top-RIGHT everywhere. Cooking-sheet is the only exception — it has
   its own save sticky pinned at top-right inside the sheet, so X flips to top-LEFT
   there to avoid collision. */
.mild-sheet-close {
  position: absolute;
  top: 16px;
  right: 16px;
  left: auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10000;
  padding: 0;
}
.cooking-sheet > .mild-sheet-close {
  right: auto;
  left: 16px;
}
.mild-sheet-close svg { width: 22px; height: 22px; }
