:root {
  --recipe-bg: #f4f6fa;
  --recipe-surface: #ffffff;
  --recipe-text: #0e1422;
  --recipe-muted: #7e899b;
  --recipe-line: #e6ebf2;
  --recipe-blue: #1668e3;
  --recipe-blue-dark: #0e4fae;
  --recipe-blue-soft: #edf4ff;
  --recipe-green: #17845b;
  --recipe-green-soft: #eaf7f1;
  --recipe-gold: #a66d14;
  --recipe-gold-soft: #fff5e4;
  --recipe-purple: #6559b7;
  --recipe-shadow: 0 14px 34px -24px rgba(19, 39, 76, .42);
}

@keyframes recipeToastIn {
  from { opacity: 0; transform: translate(-50%, 12px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

@keyframes recipeSpin {
  to { transform: rotate(360deg); }
}

@keyframes glBob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, -2px); }
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html {
  height: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  background: var(--recipe-bg);
  color: var(--recipe-text);
  font-family: 'Onest', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.has-recipe-layer { overflow: hidden; }

button,
input,
select {
  font: inherit;
}

button { color: inherit; }

button,
[onclick] {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
[onclick]:focus-visible {
  outline: 3px solid rgba(22, 104, 227, .25);
  outline-offset: 2px;
}

.gl-scroll {
  scrollbar-width: none;
}

.gl-scroll::-webkit-scrollbar,
.hsc::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.hsc {
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.frame {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 390px;
  max-width: 100%;
  height: 100vh;
  height: 100dvh;
  margin: 0 auto;
  overflow: hidden;
  background: var(--recipe-bg);
}

.recipe-header {
  position: relative;
  z-index: 15;
  flex: none;
  padding: calc(12px + env(safe-area-inset-top)) 14px 10px;
  border-bottom: 1px solid var(--recipe-line);
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 8px 24px -22px rgba(15, 29, 55, .72);
}

.recipe-header__top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-button {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--recipe-line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}

.icon-button:active { transform: scale(.97); }

.recipe-heading {
  min-width: 0;
  flex: 1;
}

.recipe-heading h1 {
  margin: 0;
  font-family: 'Unbounded', 'Onest', sans-serif;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.02em;
}

.recipe-heading p {
  margin: 3px 0 0;
  overflow: hidden;
  color: var(--recipe-muted);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.create-button {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 40px;
  height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--recipe-blue), #3188f5);
  color: #fff;
  font-size: 12.5px;
  font-weight: 800;
  box-shadow: 0 9px 20px -13px rgba(22, 104, 227, .95);
  cursor: pointer;
}

.create-button:active { transform: translateY(1px); }

.scope-tabs {
  display: grid;
  grid-template-columns: 1.25fr .8fr 1.15fr;
  gap: 4px;
  margin-top: 11px;
  padding: 4px;
  border-radius: 13px;
  background: #f1f4f8;
}

.scope-tab {
  min-width: 0;
  height: 34px;
  padding: 0 8px;
  overflow: hidden;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #687386;
  font-size: 11.5px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.scope-tab span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 19px;
  margin-left: 3px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(22, 104, 227, .1);
  color: var(--recipe-blue);
  font-size: 9.5px;
}

.scope-tab.is-active {
  background: #fff;
  color: var(--recipe-text);
  box-shadow: 0 2px 8px rgba(30, 48, 79, .08);
}

.recipe-scroll {
  min-height: 0;
  flex: 1;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.catalog-shell {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 14px 24px;
}

.search-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
}

.recipe-search {
  display: flex;
  min-width: 0;
  height: 46px;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  border: 1px solid #e3e9f1;
  border-radius: 14px;
  background: #fff;
  color: #929cad;
  box-shadow: 0 8px 24px -22px rgba(18, 38, 75, .6);
  transition: border-color .18s ease, box-shadow .18s ease;
}

.recipe-search:focus-within {
  border-color: rgba(22, 104, 227, .45);
  box-shadow: 0 0 0 3px rgba(22, 104, 227, .08);
}

.recipe-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--recipe-text);
  font-size: 13.5px;
  font-weight: 600;
}

.recipe-search input::placeholder {
  color: #9ba5b4;
  font-weight: 500;
}

.search-clear {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: #f0f3f7;
  color: #7a8494;
  cursor: pointer;
}

.filter-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 46px;
  padding: 0 13px;
  border: 1px solid #dfe6ef;
  border-radius: 14px;
  background: #fff;
  color: #3f4b5e;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
}

.filter-button b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--recipe-blue);
  color: #fff;
  font-size: 10px;
}

.quick-meals,
.active-filters {
  display: flex;
  width: calc(100% + 28px);
  gap: 7px;
  margin-left: -14px;
  padding: 12px 14px 2px;
  overflow-x: auto;
}

.active-filters {
  padding-top: 8px;
  padding-bottom: 0;
}

.quick-chip,
.active-chip {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid #e1e7ef;
  border-radius: 999px;
  background: #fff;
  color: #5c687a;
  font-size: 11.5px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

.quick-chip.is-active {
  border-color: var(--recipe-blue);
  background: var(--recipe-blue);
  color: #fff;
  box-shadow: 0 7px 18px -12px rgba(22, 104, 227, .9);
}

.active-chip {
  min-height: 30px;
  padding: 0 10px;
  border-color: #cfe0fb;
  background: var(--recipe-blue-soft);
  color: var(--recipe-blue-dark);
  font-size: 10.5px;
}

.catalog-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0 12px;
}

.catalog-toolbar h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -.015em;
}

.catalog-toolbar p {
  margin: 3px 0 0;
  color: var(--recipe-muted);
  font-size: 11.5px;
  font-weight: 600;
}

.sort-control {
  position: relative;
  display: inline-flex;
  flex: none;
  align-items: center;
}

.sort-control span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.sort-control select {
  max-width: 142px;
  height: 36px;
  padding: 0 29px 0 11px;
  border: 1px solid #e1e7ef;
  border-radius: 11px;
  background: #fff;
  color: #5b6677;
  font-size: 10.5px;
  font-weight: 800;
  cursor: pointer;
}

.recipe-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.recipe-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e5eaf1;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--recipe-shadow);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.recipe-card:active { transform: scale(.99); }

.recipe-card__open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.recipe-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(145deg, #dfeaf9, #f4f7fb);
}

.recipe-card__media img,
.recipe-card__media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .28s ease;
}

.recipe-card:hover .recipe-card__media img,
.recipe-card:hover .recipe-card__media video { transform: scale(1.025); }

.recipe-card__media.is-missing img,
.recipe-card__media.is-missing video,
.recipe-card__media.is-missing .recipe-card__play { display: none; }

.recipe-card__play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background: rgba(11, 20, 35, .55);
  box-shadow: 0 8px 24px rgba(11, 20, 35, .22);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.recipe-card__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, .85);
  background: linear-gradient(145deg, #315b94, #173866);
}

.recipe-card__time,
.recipe-card__source {
  position: absolute;
  top: 8px;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  color: #fff;
  font-size: 9.5px;
  font-weight: 800;
  line-height: 1;
  backdrop-filter: blur(6px);
}

.recipe-card__time {
  left: 8px;
  background: rgba(11, 20, 35, .52);
}

.recipe-card__source {
  right: 46px;
  background: rgba(22, 104, 227, .88);
}

.recipe-card__favorite {
  position: absolute;
  z-index: 3;
  top: 8px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 31px;
  height: 31px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, .94);
  color: #dd536d;
  box-shadow: 0 5px 14px rgba(18, 32, 57, .14);
  cursor: pointer;
}

.recipe-card__body {
  padding: 11px 11px 12px;
}

.recipe-card__body h3 {
  display: -webkit-box;
  min-height: 36px;
  margin: 0;
  overflow: hidden;
  color: var(--recipe-text);
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1.32;
  letter-spacing: -.01em;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.recipe-card__subtitle {
  display: none;
  margin: 5px 0 0;
  overflow: hidden;
  color: var(--recipe-muted);
  font-size: 11.5px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recipe-card__tags {
  display: flex;
  min-height: 22px;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  overflow: hidden;
}

.recipe-card__tag {
  display: inline-flex;
  flex: none;
  align-items: center;
  min-height: 22px;
  padding: 0 7px;
  border-radius: 7px;
  background: var(--recipe-green-soft);
  color: #126847;
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
}

.recipe-card__nutrition {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px solid #edf0f4;
  color: #667184;
  font-size: 9.5px;
  font-weight: 700;
}

.recipe-card__nutrition b {
  color: var(--recipe-blue-dark);
  font-size: 10px;
}

.catalog-empty {
  margin: 26px 0 10px;
  padding: 34px 20px;
  border: 2px dashed #dfe5ee;
  border-radius: 20px;
  background: rgba(255, 255, 255, .55);
  text-align: center;
}

.catalog-empty__icon {
  display: flex;
  width: 56px;
  height: 56px;
  align-items: center;
  justify-content: center;
  margin: 0 auto 13px;
  border-radius: 17px;
  background: #edf2f8;
  color: #9aa5b5;
}

.catalog-empty h3 {
  margin: 0;
  font-size: 15px;
}

.catalog-empty p {
  max-width: 340px;
  margin: 6px auto 0;
  color: var(--recipe-muted);
  font-size: 12.5px;
  line-height: 1.5;
}

.catalog-empty button,
.load-more {
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  background: var(--recipe-blue-soft);
  color: var(--recipe-blue-dark);
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
}

.catalog-empty button { margin-top: 16px; }

.load-more {
  display: block;
  width: 100%;
  margin: 16px 0 0;
  border: 1px solid #d8e5f8;
  background: #fff;
}

.catalog-source {
  margin: 18px 8px 2px;
  color: #9aa4b2;
  font-size: 10.5px;
  line-height: 1.5;
  text-align: center;
}

.tabbar {
  position: relative;
  z-index: 10;
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-around;
  padding: 9px 4px calc(9px + min(env(safe-area-inset-bottom), 25px));
  border-top: 1px solid #e9edf3;
  background: rgba(255, 255, 255, .96);
  color: #929daf;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.tabbar__item {
  display: flex;
  min-width: 50px;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: inherit;
  cursor: pointer;
}

.tabbar__item > span {
  font-size: 9.5px;
  font-weight: 600;
}

.tabbar__icon { position: relative; }

#cartBadge {
  position: absolute;
  top: -6px;
  right: -9px;
  display: none;
  min-width: 15px;
  height: 15px;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 1.5px solid #fff;
  border-radius: 999px;
  background: var(--recipe-blue);
  color: #fff;
  font-size: 8.5px;
  font-weight: 800;
}

.glBonusPill {
  position: absolute;
  top: -13px;
  left: 50%;
  display: none;
  padding: 2.5px 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f0d17e, #c39c45);
  color: #4a3705;
  box-shadow: 0 3px 8px rgba(195, 156, 69, .4);
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
  animation: glBob 2.4s ease-in-out infinite;
}

.toast {
  position: fixed;
  z-index: 180;
  bottom: calc(28px + env(safe-area-inset-bottom));
  left: 50%;
  display: none;
  max-width: calc(100% - 32px);
  align-items: center;
  padding: 12px 18px;
  border-radius: 13px;
  background: #0e1422;
  color: #fff;
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .5);
  font-size: 12.5px;
  font-weight: 700;
  text-align: center;
  transform: translateX(-50%);
}

.toast.is-visible {
  display: flex;
  animation: recipeToastIn .2s ease both;
}

.layer {
  position: fixed;
  z-index: 120;
  inset: 0;
  visibility: hidden;
  pointer-events: none;
}

.layer.is-open {
  visibility: visible;
  pointer-events: auto;
}

.layer__scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: rgba(8, 16, 30, .52);
  opacity: 0;
  cursor: pointer;
  transition: opacity .2s ease;
}

.layer.is-open .layer__scrim { opacity: 1; }

.filter-sheet,
.detail-sheet {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  width: 100%;
  max-height: 92vh;
  max-height: 92dvh;
  flex-direction: column;
  overflow: hidden;
  border-radius: 24px 24px 0 0;
  background: #fff;
  box-shadow: 0 -20px 60px rgba(8, 19, 39, .22);
  transform: translateY(104%);
  transition: transform .24s cubic-bezier(.2, .8, .2, 1);
}

.layer.is-open .filter-sheet,
.layer.is-open .detail-sheet { transform: translateY(0); }

.sheet-header {
  display: flex;
  flex: none;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--recipe-line);
}

.sheet-header h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -.02em;
}

.sheet-header p {
  margin: 4px 0 0;
  color: var(--recipe-muted);
  font-size: 11.5px;
  font-weight: 600;
}

.filter-sheet__body,
.detail-sheet__body {
  min-height: 0;
  flex: 1;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.filter-sheet__body { padding: 0 18px 24px; }

.nutrition-filter {
  padding: 19px 0 15px;
  border-bottom: 1px solid var(--recipe-line);
}

.nutrition-filter h3,
.facet-group summary {
  color: #364255;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .01em;
}

.nutrition-filter h3 { margin: 0 0 15px; }

.nutrition-filter label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 13px;
  color: #687386;
  font-size: 11.5px;
  font-weight: 600;
}

.nutrition-filter label b {
  color: var(--recipe-blue-dark);
  font-size: 11.5px;
}

.nutrition-filter input[type='range'] {
  width: 100%;
  margin: 8px 0 0;
  accent-color: var(--recipe-blue);
}

.facet-group {
  border-bottom: 1px solid var(--recipe-line);
}

.facet-group summary {
  position: relative;
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  list-style: none;
  cursor: pointer;
}

.facet-group summary::-webkit-details-marker { display: none; }

.facet-group summary::after {
  width: 8px;
  height: 8px;
  margin-right: 4px;
  border-right: 2px solid #9ba5b3;
  border-bottom: 2px solid #9ba5b3;
  content: '';
  transform: rotate(45deg) translateY(-2px);
  transition: transform .18s ease;
}

.facet-group[open] summary::after { transform: rotate(225deg) translate(-2px, -2px); }

.facet-group summary span {
  display: inline-flex;
  min-width: 20px;
  height: 20px;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--recipe-blue-soft);
  color: var(--recipe-blue-dark);
  font-size: 9.5px;
}

.facet-options {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 0 0 15px;
}

.facet-option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid #dde4ed;
  border-radius: 10px;
  background: #fff;
  color: #596577;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.facet-option em {
  color: #9ca6b4;
  font-size: 9.5px;
  font-style: normal;
}

.facet-option.is-active {
  border-color: var(--recipe-blue);
  background: var(--recipe-blue-soft);
  color: var(--recipe-blue-dark);
}

.facet-option.is-active em { color: var(--recipe-blue); }
.facet-option:disabled { opacity: .4; cursor: default; }

.sheet-footer {
  display: grid;
  flex: none;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--recipe-line);
  background: rgba(255, 255, 255, .98);
}

.sheet-footer button {
  min-height: 46px;
  padding: 0 17px;
  border: 0;
  border-radius: 13px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.sheet-reset {
  background: #f0f3f7;
  color: #596577;
}

.sheet-apply {
  background: var(--recipe-blue);
  color: #fff;
}

.detail-sheet { max-height: 96vh; max-height: 96dvh; }

.detail-sheet__header {
  align-items: flex-start;
  padding-top: calc(16px + env(safe-area-inset-top));
}

.detail-sheet__header > div { min-width: 0; }

.detail-sheet__header h2 {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.detail-eyebrow {
  margin: 0 0 4px !important;
  color: var(--recipe-blue) !important;
  font-size: 9.5px !important;
  font-weight: 800 !important;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.detail-hero {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e9eef5;
}

.detail-hero img,
.detail-hero video {
  display: block;
  width: 100%;
  height: 100%;
}

.detail-hero img {
  object-fit: cover;
}

.detail-hero video {
  object-fit: contain;
  background: #07111f;
}

.detail-hero--placeholder {
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, .82);
  background: linear-gradient(145deg, #315b94, #173866);
}

.detail-content { padding: 18px 18px 30px; }

.detail-lede {
  margin: 0;
  color: #536073;
  font-size: 13.5px;
  line-height: 1.6;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 13px;
}

.detail-tag {
  display: inline-flex;
  min-height: 27px;
  align-items: center;
  padding: 0 9px;
  border-radius: 8px;
  background: #f0f3f7;
  color: #5c687a;
  font-size: 10.5px;
  font-weight: 750;
}

.detail-tag.is-accent {
  background: var(--recipe-green-soft);
  color: #126847;
}

.detail-section { margin-top: 23px; }

.detail-section h3 {
  margin: 0 0 12px;
  color: #202b3c;
  font-size: 14.5px;
  font-weight: 800;
}

.nutrition-table-wrap {
  overflow: hidden;
  border: 1px solid var(--recipe-line);
  border-radius: 14px;
}

.nutrition-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 10.5px;
  text-align: right;
}

.nutrition-table th,
.nutrition-table td {
  padding: 10px 7px;
  border-bottom: 1px solid #edf0f4;
}

.nutrition-table tr:last-child td { border-bottom: 0; }

.nutrition-table th {
  background: #f6f8fb;
  color: #8791a1;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.nutrition-table th:first-child,
.nutrition-table td:first-child {
  text-align: left;
}

.nutrition-table td { color: #354154; font-weight: 700; }

.ingredient-group + .ingredient-group { margin-top: 15px; }

.ingredient-group h4 {
  margin: 0 0 7px;
  color: #929dad;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ingredient-list {
  margin: 0;
  padding: 0;
  border: 1px solid var(--recipe-line);
  border-radius: 13px;
  list-style: none;
}

.ingredient-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px;
  border-bottom: 1px solid #edf0f4;
  color: #354154;
  font-size: 12px;
  line-height: 1.4;
}

.ingredient-list li:last-child { border-bottom: 0; }

.ingredient-list em {
  flex: none;
  color: #7d8899;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  text-align: right;
}

.recipe-steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.recipe-step {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.recipe-step__content { min-width: 0; }

.recipe-step__number {
  display: flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--recipe-blue-soft);
  color: var(--recipe-blue-dark);
  font-size: 11px;
  font-weight: 800;
}

.recipe-step p {
  margin: 2px 0 0;
  color: #3d495c;
  font-size: 12.5px;
  line-height: 1.55;
}

.recipe-step small {
  display: block;
  margin-bottom: 3px;
  color: var(--recipe-green);
  font-size: 10px;
  font-weight: 800;
}

.recipe-step__media {
  display: block;
  width: 100%;
  max-height: 320px;
  margin-top: 10px;
  border-radius: 12px;
  background: #07111f;
  object-fit: contain;
}

.detail-primary-action {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 16px;
  padding: 0 15px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: var(--recipe-blue);
  font-size: 11.5px;
  font-weight: 800;
  text-decoration: none;
}

.detail-status {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 34px 22px;
  color: var(--recipe-muted);
  text-align: center;
}

.detail-status h3,
.detail-status p { margin: 0; }

.detail-status h3 {
  color: var(--recipe-text);
  font-size: 16px;
}

.detail-status p {
  max-width: 290px;
  font-size: 12.5px;
  line-height: 1.5;
}

.detail-status__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 5px;
}

.detail-status button,
.detail-status__actions a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 11px;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.detail-status button {
  border: 0;
  color: #fff;
  background: var(--recipe-blue);
  cursor: pointer;
}

.detail-status__actions a {
  border: 1px solid #d7e4f7;
  color: var(--recipe-blue-dark);
  background: #fff;
}

.detail-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid #dce6f4;
  border-top-color: var(--recipe-blue);
  border-radius: 50%;
  animation: detail-spin .7s linear infinite;
}

@keyframes detail-spin { to { transform: rotate(360deg); } }

.loading-card {
  min-height: 220px;
  border: 1px solid #e6ebf2;
  border-radius: 16px;
  background: linear-gradient(110deg, #fff 20%, #f2f5f8 40%, #fff 60%);
  background-size: 220% 100%;
  animation: recipeSkeleton 1.25s linear infinite;
}

@keyframes recipeSkeleton {
  to { background-position-x: -220%; }
}

@media (max-width: 350px) {
  .recipe-grid { grid-template-columns: 1fr; }
  .recipe-card__media { aspect-ratio: 16 / 10; }
  .recipe-card__subtitle { display: block; }
  .create-button span { display: none; }
  .scope-tab { font-size: 10.5px; }
}

@media (min-width: 700px) and (max-width: 1023px) {
  .frame { width: 760px; }
  .catalog-shell { padding: 20px 22px 30px; }
  .recipe-header { padding-right: 22px; padding-left: 22px; }
  .recipe-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .recipe-card__subtitle { display: block; }
  .quick-meals,
  .active-filters { width: calc(100% + 44px); margin-left: -22px; padding-right: 22px; padding-left: 22px; }
}

@media (min-width: 1024px) {
  .recipe-header {
    padding: 20px 28px 14px;
    border-radius: 22px 22px 0 0;
  }

  .recipe-header__top { gap: 13px; }
  .recipe-heading h1 { font-size: 23px; }
  .recipe-heading p { font-size: 12.5px; }
  .create-button { height: 42px; padding: 0 17px; font-size: 13px; }
  .scope-tabs { width: 430px; margin: 14px 0 0 51px; }
  .recipe-scroll { overflow: visible; }
  .catalog-shell { padding: 26px 28px 38px; }
  .search-tools { grid-template-columns: minmax(360px, 1fr) auto; gap: 12px; }
  .recipe-search { height: 50px; }
  .filter-button { height: 50px; padding: 0 18px; font-size: 13px; }
  .quick-meals,
  .active-filters { width: 100%; margin-left: 0; padding-right: 0; padding-left: 0; }
  .catalog-toolbar { margin-top: 24px; }
  .catalog-toolbar h2 { font-size: 19px; }
  .catalog-toolbar p { font-size: 12.5px; }
  .sort-control select { max-width: none; min-width: 174px; height: 40px; font-size: 11.5px; }
  .recipe-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .recipe-card { border-radius: 18px; }
  .recipe-card:hover { border-color: #d5deeb; box-shadow: 0 20px 42px -25px rgba(19, 39, 76, .52); transform: translateY(-2px); }
  .recipe-card__media { aspect-ratio: 16 / 10; }
  .recipe-card__body { padding: 14px 15px 15px; }
  .recipe-card__body h3 { min-height: auto; font-size: 15px; }
  .recipe-card__subtitle { display: block; }
  .recipe-card__tag { font-size: 9.5px; }
  .recipe-card__nutrition { font-size: 10.5px; }
  .recipe-card__nutrition b { font-size: 11px; }
  .load-more { width: 320px; margin: 22px auto 0; }
  .tabbar { display: none !important; }

  .filter-sheet,
  .detail-sheet {
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: min(450px, 100%);
    max-height: none;
    border-radius: 22px 0 0 22px;
    transform: translateX(104%);
  }

  .detail-sheet { width: min(610px, 100%); }
  .layer.is-open .filter-sheet,
  .layer.is-open .detail-sheet { transform: translateX(0); }
  .detail-content { padding: 22px 26px 38px; }
  .detail-lede { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
