.home-hero {
  display: grid;
  gap: 14px;
  margin-bottom: 28px;
}

.home-hero__plate {
  position: relative;
  display: block;
  min-height: 280px;
  overflow: hidden;
  color: #f4f7f0;
  background: #243322;
  border-radius: var(--hrum-radius-expressive);
}

.home-hero__plate:hover {
  color: #f4f7f0;
}

.home-hero__plate img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  max-height: 420px;
  object-fit: cover;
}

.home-hero__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 22px 20px;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, #1e2a1c 88%, transparent));
}

.home-hero__caption h1 {
  max-width: 18ch;
  margin-bottom: 8px;
  color: #f4f7f0;
}

.home-hero__text {
  max-width: 48ch;
  margin-bottom: 10px;
  color: color-mix(in srgb, #f4f7f0 82%, transparent);
  font-size: 1rem;
}

.home-hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 0;
  margin: 0;
  color: color-mix(in srgb, #f4f7f0 78%, transparent);
  font-size: 0.88rem;
}

.home-hero__facts span {
  padding-right: 14px;
}

.home-hero__facts span + span {
  padding-left: 14px;
  border-left: 1px solid color-mix(in srgb, #f4f7f0 28%, transparent);
}

.home-hero__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.home-hero__empty {
  padding: 28px 0 8px;
}
.home-hero__empty .home-hero__text {
  color: color-mix(in srgb, var(--hrum-color-on-background) 72%, transparent);
}

.section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 8px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--hrum-border-subtle);
}

.section-title span {
  color: color-mix(in srgb, var(--hrum-color-on-background) 48%, transparent);
  font-size: .9rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.search-panel {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
  padding: 12px;
  border: 1px solid var(--hrum-border-subtle);
  border-radius: var(--hrum-radius-xl);
  background: var(--hrum-surface-muted);
  box-shadow: none;
}

.filter-row {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(150px, 1fr) auto;
  align-items: center;
  width: 100%;
  gap: 10px;
}
.filter-row select { width: 100%; }
.filter-row .segmented {
  justify-self: end;
}

.recipe-editor {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.recipe-compose {
  display: grid;
  gap: 18px;
  max-width: 760px;
  margin: 0 auto;
}

.recipe-compose__intro {
  display: grid;
  gap: 8px;
}

.recipe-compose__lead {
  margin: 0;
  color: color-mix(in srgb, var(--hrum-color-on-background) 62%, transparent);
  line-height: 1.5;
}

.recipe-compose__form {
  display: grid;
  gap: 14px;
}

.recipe-compose__card {
  padding: 18px;
  border: 1px solid var(--hrum-border-subtle);
  border-radius: var(--hrum-radius-xl);
  background: var(--hrum-surface-panel);
  box-shadow: var(--hrum-elevation-1);
}

.recipe-compose__card--cover {
  padding: 18px;
  border: 1px solid var(--hrum-border-subtle);
  border-radius: var(--hrum-radius-expressive);
  background: var(--hrum-surface-panel);
  box-shadow: var(--hrum-elevation-1);
}

.recipe-compose__card--main {
  border-color: var(--hrum-border-subtle);
}

.recipe-compose__card--meta {
  background: var(--hrum-surface-panel);
}

.recipe-compose__card--ingredients {
  background: var(--hrum-surface-panel);
  border-color: var(--hrum-border-subtle);
}

.recipe-compose__card--steps {
  background: var(--hrum-surface-panel);
  border-color: var(--hrum-border-subtle);
}

.recipe-compose__title {
  margin: 0 0 14px;
  font-family: var(--hrum-font-display);
  font-size: 1.08rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.recipe-compose__stack {
  display: grid;
  gap: 14px;
}

.recipe-compose__section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.recipe-compose__section-head .recipe-compose__title {
  margin: 0;
}

.recipe-compose__trash {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  min-width: 40px;
  max-width: 40px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  color: var(--hrum-color-error, #b42318);
  background: color-mix(in srgb, var(--hrum-color-error, #b42318) 12%, var(--hrum-color-surface));
  box-shadow: none;
  cursor: pointer;
  transition:
    color var(--hrum-motion-fast, .15s) var(--hrum-ease-emphasized, ease),
    background var(--hrum-motion-fast, .15s) var(--hrum-ease-emphasized, ease),
    transform var(--hrum-motion-fast, .15s) var(--hrum-ease-emphasized, ease);
}

.recipe-compose__trash--danger,
.recipe-compose__trash.recipe-compose__trash--danger {
  color: var(--hrum-color-error, #b42318);
  background: color-mix(in srgb, var(--hrum-color-error, #b42318) 14%, var(--hrum-color-surface));
}

.recipe-compose__trash:hover,
.recipe-compose__trash:focus-visible {
  color: #fff;
  background: var(--hrum-color-error, #b42318);
  outline: none;
}

.recipe-compose__trash:active {
  transform: scale(0.96);
}

.recipe-compose__trash-icon {
  font-size: 22px;
  line-height: 1;
  color: inherit;
  pointer-events: none;
}

.recipe-compose__trash--section {
  margin-top: -2px;
}

.recipe-compose__add {
  width: 100%;
  margin-top: 12px;
}

.recipe-compose .ingredient-row {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--hrum-color-outline) 18%, transparent);
  border-radius: var(--hrum-radius-expressive);
  background: color-mix(in srgb, var(--hrum-color-surface) 92%, transparent);
}

.recipe-compose .ingredient-row__group {
  width: 100%;
  min-width: 0;
}

.recipe-compose .ingredient-row__fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(72px, 0.7fr) minmax(96px, 0.85fr) 40px;
  gap: 8px;
  align-items: center;
}

.recipe-compose .ingredient-row__remove {
  position: static;
  justify-self: end;
}

@media (max-width: 639px) {
  .recipe-compose .ingredient-row__fields {
    grid-template-columns: minmax(0, 1fr) minmax(64px, 0.7fr) minmax(88px, 0.85fr) 40px;
  }
}

.home-sidebar__search,
.home-suggest,
.home-suggest__list,
.home-main__head,
.home-main__title,
.home-main__count {
  display: none !important;
}

.home-browse {
  display: grid;
  gap: 16px;
  align-items: start;
}

.home-filters {
  display: flex;
  align-items: end;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--hrum-border-subtle);
  border-radius: var(--hrum-radius-bento);
  background: var(--hrum-surface-panel);
  box-shadow: var(--hrum-elevation-1);
}

.home-filters__heading {
  display: inline-flex;
  align-items: center;
  align-self: center;
  gap: 8px;
  min-width: max-content;
  font-weight: 760;
}

.home-filters__heading .material-symbols-outlined {
  color: var(--hrum-color-primary);
}

.home-filters__controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: 10px;
  width: 100%;
  min-width: 0;
}

.home-filter-field {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.home-filter-field > span {
  padding-left: 4px;
  font-size: 0.72rem;
  font-weight: 760;
  color: color-mix(in srgb, var(--hrum-color-on-surface) 60%, transparent);
}

.home-filter-field select {
  min-width: 0;
  min-height: 42px;
  padding-block: 8px;
  border-radius: var(--hrum-radius-pill);
  background-color: var(--hrum-color-background);
}

.home-sidebar {
  display: grid;
  gap: 18px;
  padding: 14px;
  border: 1px solid var(--hrum-border-subtle);
  border-radius: var(--hrum-radius-bento);
  background: var(--hrum-surface-panel);
  box-shadow: var(--hrum-elevation-1);
}

.home-sidebar__block {
  display: grid;
  gap: 8px;
}

.home-sidebar__label {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 860;
  letter-spacing: 0;
  color: color-mix(in srgb, var(--hrum-color-on-surface) 58%, transparent);
}

.home-sidebar__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.home-chip,
.home-cat {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: var(--hrum-radius-pill);
  border: 1px solid var(--hrum-border-subtle);
  background: transparent;
  color: var(--hrum-color-on-surface);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 760;
  cursor: pointer;
}

.home-chip.is-active,
.home-cat.is-active {
  background: var(--hrum-color-primary);
  border-color: transparent;
  color: var(--hrum-color-on-primary);
}

.home-sidebar__cats {
  display: grid;
  gap: 6px;
}

.home-cat {
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  text-align: left;
  border-radius: var(--hrum-radius-md);
}

.home-cat__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-cat__count {
  flex: 0 0 auto;
  font-size: 0.78rem;
  font-weight: 760;
  font-variant-numeric: tabular-nums;
  color: color-mix(in srgb, var(--hrum-color-on-surface) 55%, transparent);
}

.home-cat.is-active .home-cat__count {
  color: color-mix(in srgb, var(--hrum-color-on-primary) 82%, transparent);
}

.home-main {
  min-width: 0;
  display: grid;
  gap: 14px;
}

.home-category {
  display: grid;
  gap: 12px;
  margin-bottom: 28px;
}

.home-category .section-title {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.home-category .section-title h2 {
  margin: 0;
  font-family: var(--hrum-font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 700;
}

.home-category .section-title span {
  display: none;
}

.home-category__more {
  justify-self: start;
}

.home-empty {
  margin: 0;
  color: color-mix(in srgb, var(--hrum-color-on-surface) 62%, transparent);
  font-weight: 720;
  grid-column: 1 / -1;
  padding: 28px 8px;
}

.not-found {
  display: grid;
  grid-template-columns: minmax(120px, 0.55fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 6vw, 72px);
  min-height: min(620px, calc(100vh - var(--hrum-topbar-offset, 72px) - 80px));
  padding: clamp(28px, 6vw, 72px);
  border-left: 8px solid var(--hrum-color-primary);
  background: var(--hrum-surface-panel);
}

.not-found__code {
  margin: 0;
  max-width: none;
  color: var(--hrum-color-primary);
  font-family: var(--hrum-font-display);
  font-size: clamp(4.8rem, 15vw, 11rem);
  font-weight: 700;
  letter-spacing: -0.09em;
  line-height: 0.85;
}

.not-found__copy p {
  color: color-mix(in srgb, var(--hrum-color-on-surface) 66%, transparent);
}

.not-found__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 620px) {
  .not-found {
    grid-template-columns: 1fr;
    align-content: center;
    min-height: calc(100vh - var(--hrum-topbar-offset, 125px) - 110px);
    padding: 28px 20px;
  }

  .not-found__actions {
    display: grid;
  }
}

.recipe-grid--home {
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 560px) {
  .recipe-grid--home {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .recipe-grid--home {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }
}

@media (min-width: 900px) {
  .home-browse {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-sidebar {
    position: sticky;
    top: var(--hrum-topbar-offset, 84px);
    align-self: start;
    height: calc(100vh - var(--hrum-topbar-offset, 84px));
    max-height: calc(100vh - var(--hrum-topbar-offset, 84px));
    overflow: auto;
    overscroll-behavior: contain;
    border-radius: 0;
    border: 0;
    border-right: 1px solid var(--hrum-border-subtle);
    box-shadow: none;
    padding: 20px 16px 28px;
    background: var(--hrum-surface-panel);
  }

  .home-main {
    padding: 4px 0 40px;
  }
}

@media (max-width: 899px) {
  .home-browse {
    grid-template-columns: 1fr;
  }

  .home-sidebar {
    position: relative;
    top: auto;
    height: auto;
    max-height: none;
    gap: 12px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .home-sidebar__block {
    gap: 6px;
    min-width: 0;
  }

  .home-sidebar__chips,
  .home-sidebar__cats {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    margin-inline: -4px;
    padding: 2px 4px 8px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline proximity;
    scrollbar-width: none;
  }

  .home-sidebar__chips::-webkit-scrollbar,
  .home-sidebar__cats::-webkit-scrollbar {
    display: none;
  }

  .home-chip,
  .home-cat {
    flex: 0 0 auto;
    width: auto;
    max-width: 100%;
    min-height: 44px;
    scroll-snap-align: start;
  }

  .home-main {
    padding: 4px 0 24px;
  }

  .recipe-grid--home {
    gap: 14px;
  }
}

@media (max-width: 700px) {
  .home-filters {
    display: grid;
    align-items: stretch;
    gap: 10px;
    padding: 12px;
  }

  .home-filters__heading {
    justify-content: flex-start;
  }

  .home-filters__controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-filter-field--category {
    grid-column: 1 / -1;
  }
}

.feed-density {
  display: none;
}

@media (max-width: 559px) {
  .recipe-grid--home {
    grid-template-columns: 1fr;
  }

  .feed-density {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 12px;
  }

  .feed-density__label {
    font-size: 0.82rem;
    font-weight: 780;
    color: color-mix(in srgb, var(--hrum-color-on-surface) 62%, transparent);
  }

  .feed-density__switch {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px;
    border: 1px solid var(--hrum-border-subtle);
    border-radius: var(--hrum-radius-pill);
    background: var(--hrum-color-surface);
  }

  .feed-density__btn {
    display: grid;
    place-items: center;
    width: 36px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: var(--hrum-radius-pill);
    background: transparent;
    color: color-mix(in srgb, var(--hrum-color-on-surface) 62%, transparent);
    cursor: pointer;
  }

  .feed-density__btn .material-symbols-outlined {
    font-size: 20px;
    width: 20px;
    height: 20px;
  }

  .feed-density__btn.is-active {
    background: var(--hrum-color-primary);
    color: var(--hrum-color-on-primary);
  }

  [data-home-feed][data-cols="2"] .recipe-grid--home {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  [data-home-feed][data-cols="2"] .recipe-card__media {
    height: 120px;
  }

  [data-home-feed][data-cols="2"] .recipe-card__body {
    gap: 6px;
    padding: 10px 10px 8px;
  }

  [data-home-feed][data-cols="2"] .recipe-card__title {
    min-height: 0;
    font-size: 0.92rem;
  }

  [data-home-feed][data-cols="2"] .recipe-card__desc {
    display: none;
  }

  .recipe-card__media {
    height: 200px;
  }

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

  .recipe-card__desc {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-clamp: 3;
  }
}

.recipe-card__author-row {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  height: 44px;
  min-height: 44px;
}

.recipe-card__author-row .recipe-card__author {
  flex: 1 1 auto;
  min-width: 0;
  height: 44px;
}

.recipe-card__author-row .recipe-card__reactions {
  flex: 0 0 auto;
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 2px;
  height: 44px;
}

.recipe-card__author-row .recipe-card__like,
.recipe-card__author-row .recipe-card__fav {
  height: 44px;
  min-height: 44px;
  max-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none;
}

.recipe-card__author-row .recipe-card__like.is-liked {
  color: #e53935;
}

.recipe-card__author-row .recipe-card__fav.is-active {
  color: #f4a261;
}

.recipe-card__author-row .recipe-card__like-icon {
  width: 24px;
  height: 24px;
  font-size: 24px;
}

.recipe-grid.is-search-results:not([hidden]) {
  display: grid;
}

.recipe-compose .step-row {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 14px 52px 14px 14px;
  border: 1px solid color-mix(in srgb, var(--hrum-color-tertiary) 14%, transparent);
  border-radius: var(--hrum-radius-expressive);
  background: color-mix(in srgb, var(--hrum-color-surface) 88%, transparent);
}

.recipe-compose .step-row > .recipe-compose__trash {
  position: absolute;
  top: 10px;
  right: 10px;
}

.recipe-compose__meta-grid {
  display: grid;
  gap: 12px;
}

.recipe-compose__baking {
  display: grid;
  gap: 12px;
  grid-column: 1 / -1;
  padding: 12px 14px;
  border: 1px dashed color-mix(in srgb, var(--hrum-color-tertiary) 22%, transparent);
  border-radius: var(--hrum-radius-md);
  background: color-mix(in srgb, var(--hrum-color-primary-container) 35%, transparent);
}

.recipe-compose .is-hidden {
  display: none !important;
}

.recipe-compose__private {
  align-self: end;
  min-height: 44px;
}

.recipe-compose__rows {
  display: grid;
  gap: 10px;
}

.recipe-compose .step-row textarea {
  min-height: 108px;
  resize: vertical;
}

.recipe-compose .step-row__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.recipe-compose .step-row__head-main {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.recipe-compose .step-row__num {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: var(--hrum-color-tertiary);
  color: #fffaf2;
  font-size: .82rem;
  font-weight: 900;
  line-height: 1;
}

.recipe-compose .step-row__label {
  font-size: .88rem;
  font-weight: 850;
  color: color-mix(in srgb, var(--hrum-color-on-surface) 68%, transparent);
}

.recipe-compose .step-row__file {
  margin: 0;
}

.recipe-compose__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 4px;
}

.form-head, .profile-head, .recipe-hero, .editor-main, .editor-side, .editor-block {
  padding: 18px;
  border: 1px solid var(--hrum-border-subtle);
  border-radius: var(--hrum-radius-xl);
  background: var(--hrum-surface-panel);
  box-shadow: var(--hrum-elevation-1);
}
.editor-main { display: grid; gap: 14px; }
.editor-side { display: grid; align-content: start; gap: 14px; }
.block-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.triple-row, .step-row { display: grid; gap: 10px; margin-top: 10px; }
.editor-submit { justify-self: start; }

.recipe-hero {
  display: grid;
  gap: 18px;
  margin-bottom: 18px;
}

.recipe-hero__media {
  width: 100%;
  height: var(--hrum-recipe-cover-height, 280px);
  overflow: hidden;
  border-radius: var(--hrum-radius-expressive);
  background: var(--hrum-color-primary-container);
}

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

.recipe-photo-open {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  cursor: zoom-in;
  background: transparent;
  text-align: inherit;
  font: inherit;
}

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

.recipe-photo-open__hint {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 820;
  color: #fff;
  background: color-mix(in srgb, #000 55%, transparent);
  pointer-events: none;
}

/* ——— Recipe view (cook mode) ——— */
.recipe-page--view {
  display: grid;
  gap: 20px;
  max-width: 980px;
  margin: 0 auto;
}

.recipe-page-shell {
  display: grid;
  gap: 22px;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}

.recipe-page-shell__main {
  min-width: 0;
  display: grid;
  gap: 22px;
}

.recipe-page-shell .recipe-page--view {
  max-width: none;
  margin: 0;
}

.recipe-cover-banner__like-wrap,
.recipe-cover-banner__stat {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  width: auto;
  min-height: 0;
  flex-wrap: nowrap;
}

.recipe-cover-banner__overlay .recipe-cover-banner__title-row {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap;
  align-items: center;
}

.recipe-cover-banner__like-count,
.recipe-cover-banner__stat-count {
  display: inline-block;
  min-width: 1.5ch;
  font-size: 0.78rem;
  font-weight: 820;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  text-align: left;
  color: #fff;
  text-shadow: 0 1px 8px color-mix(in srgb, #000 45%, transparent);
  white-space: nowrap;
}

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  user-select: none;
}

.material-symbols-outlined--filled {
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.recipe-toolbar-symbol {
  font-size: 22px;
  line-height: 1;
}

.recipe-cover-banner__icon-btn.is-active .recipe-toolbar-symbol {
  color: color-mix(in srgb, #c8e6ff 92%, #fff);
}

.recipe-cover-banner__icon-btn.is-active .material-symbols-outlined--filled {
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.ingredient-group {
  display: grid;
  gap: 6px;
}

.ingredient-group + .ingredient-group {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed color-mix(in srgb, var(--hrum-color-primary) 18%, transparent);
}

.ingredient-group__title {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 880;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--hrum-color-on-surface) 62%, transparent);
}

.recipe-process-stack {
  display: grid;
  gap: 22px;
  min-width: 0;
}

.recipe-shop-list__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.recipe-shop-list__actions .button,
.recipe-shop-list__actions .recipe-cook-reset {
  width: 100%;
  min-width: 0;
  margin-top: 0;
  white-space: normal;
  text-align: center;
  line-height: 1.25;
  padding-inline: 10px;
}

.recipe-page-cook-row {
  display: grid;
  gap: 18px;
  align-items: start;
  min-width: 0;
}

.recipe-page-cook-row .recipe-cook-layout {
  min-width: 0;
}

.recipe-popular-ribbon {
  display: none;
  min-width: 0;
}

.recipe-popular-ribbon__title {
  margin: 0 0 12px;
  font-size: 0.92rem;
  font-weight: 900;
  line-height: 1.25;
}

.recipe-popular-ribbon__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.recipe-popular-ribbon__item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 8px;
  border-radius: var(--hrum-radius-md);
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--hrum-border-subtle);
  background: var(--hrum-surface-panel);
  transition: background var(--hrum-motion-fast), border-color var(--hrum-motion-fast);
}

.recipe-popular-ribbon__item:hover {
  border-color: color-mix(in srgb, var(--hrum-color-primary) 28%, transparent);
  background: color-mix(in srgb, var(--hrum-color-primary-container) 35%, var(--hrum-color-surface));
}

.recipe-popular-ribbon__thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: var(--hrum-radius-sm);
}

.recipe-popular-ribbon__text {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.recipe-popular-ribbon__name {
  font-size: 0.86rem;
  font-weight: 820;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.recipe-popular-ribbon__meta {
  font-size: 0.74rem;
  font-weight: 700;
  color: color-mix(in srgb, var(--hrum-color-on-surface) 55%, transparent);
}

.recipe-comments {
  padding: 20px 22px;
  border: 1px solid var(--hrum-border-subtle);
  border-radius: var(--hrum-radius-bento);
  background: var(--hrum-surface-panel);
  box-shadow: var(--hrum-elevation-1);
}

.recipe-comments__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}

.recipe-comments__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 920;
}

.recipe-comments__count {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 760;
  color: color-mix(in srgb, var(--hrum-color-on-surface) 58%, transparent);
}

.recipe-comments__form {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.comment-emoji {
  display: grid;
  gap: 6px;
}

.comment-emoji__label {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 820;
  color: color-mix(in srgb, var(--hrum-color-on-surface) 58%, transparent);
}

.comment-emoji__row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.comment-emoji__btn,
.recipe-comment__body {
  font-family: "Noto Color Emoji", "Golos Text", sans-serif;
}

.comment-emoji__btn {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--hrum-border-subtle);
  border-radius: 10px;
  background: color-mix(in srgb, var(--hrum-color-surface) 88%, transparent);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
}

.comment-emoji__btn:hover {
  border-color: color-mix(in srgb, var(--hrum-color-primary) 40%, transparent);
  background: color-mix(in srgb, var(--hrum-color-primary) 10%, transparent);
}

.recipe-comment__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.recipe-comment__delete {
  margin: 0;
}

.recipe-comment__delete-btn {
  border: 0;
  background: transparent;
  color: color-mix(in srgb, var(--hrum-color-error, #b3261e) 88%, transparent);
  font-size: 0.8rem;
  font-weight: 760;
  cursor: pointer;
  padding: 4px 0;
}

.recipe-comment__delete-btn:hover {
  text-decoration: underline;
}

.recipe-comments__login-hint {
  margin: 0 0 16px;
  font-size: 0.9rem;
}

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

.recipe-comment {
  padding-top: 12px;
  border-top: 1px solid var(--hrum-border-subtle);
}

.recipe-comment:first-child {
  border-top: 0;
  padding-top: 0;
}

.recipe-comment__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 0 0 6px;
  font-size: 0.84rem;
  color: color-mix(in srgb, var(--hrum-color-on-surface) 58%, transparent);
}

.recipe-comment__meta strong {
  color: var(--hrum-color-on-surface);
}

.recipe-comment__body {
  margin: 0;
  line-height: 1.55;
  font-size: 0.94rem;
}

.recipe-compose__section-hint {
  margin: -4px 0 12px;
  font-size: 0.84rem;
  font-weight: 650;
  line-height: 1.45;
  color: color-mix(in srgb, var(--hrum-color-on-surface) 58%, transparent);
}

.recipe-compose__alcohol {
  align-self: end;
  min-height: 44px;
}

.recipe-cover-banner {
  position: relative;
  display: grid;
  align-content: end;
  width: 100%;
  min-height: clamp(420px, 58vh, 580px);
  overflow: hidden;
  border-radius: var(--hrum-radius-bento);
  box-shadow: var(--hrum-elevation-1);
  isolation: isolate;
}

.recipe-cover-banner__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--hrum-color-primary-container);
}

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

.recipe-cover-banner__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, #000 52%, transparent) 0%,
    color-mix(in srgb, #000 12%, transparent) 28%,
    color-mix(in srgb, #000 18%, transparent) 55%,
    color-mix(in srgb, #000 82%, transparent) 100%
  );
}

.recipe-cover-banner__top {
  position: absolute;
  inset: 0 0 auto;
  z-index: 3;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px 0;
  pointer-events: none;
  min-width: 0;
}

.recipe-cover-banner__chips {
  display: grid;
  gap: 8px;
  max-width: min(72%, 520px);
  min-width: 0;
  pointer-events: none;
}

.recipe-cover-banner__toolbar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: 100%;
  pointer-events: auto;
}

.recipe-cover-banner__toolbar form {
  margin: 0;
}

.recipe-cover-banner__icon-btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  color: #fff;
  background: color-mix(in srgb, #000 45%, transparent);
  border: 1px solid color-mix(in srgb, #fff 22%, transparent);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 18px color-mix(in srgb, #000 28%, transparent);
  cursor: pointer;
  text-decoration: none;
}

.recipe-cover-banner__icon-btn:hover {
  background: color-mix(in srgb, #000 58%, transparent);
}

.recipe-cover-banner__icon-btn.is-active {
  color: color-mix(in srgb, #ffb4ab 92%, #fff);
  border-color: color-mix(in srgb, #ffb4ab 45%, transparent);
}

.recipe-cover-banner__icon-btn--danger:hover {
  color: #ffdad6;
  border-color: color-mix(in srgb, var(--hrum-color-error) 55%, transparent);
  background: color-mix(in srgb, var(--hrum-color-error) 42%, #000);
}

.recipe-cover-banner__overlay {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 10px;
  padding: 22px 20px 24px;
  color: #fff;
}

.recipe-cover-banner .recipe-meta-chips {
  gap: 8px;
}

.recipe-cover-banner .recipe-chip {
  color: #fff;
  background: color-mix(in srgb, #fff 16%, transparent);
  border-color: color-mix(in srgb, #fff 28%, transparent);
  backdrop-filter: blur(6px);
}

.recipe-cover-banner .recipe-chip--muted {
  color: color-mix(in srgb, #fff 88%, transparent);
  background: color-mix(in srgb, #000 28%, transparent);
  border-color: color-mix(in srgb, #fff 18%, transparent);
}

.recipe-cover-banner .recipe-chip--allergen {
  color: #ffdad6;
  background: color-mix(in srgb, var(--hrum-color-error) 38%, transparent);
  border-color: color-mix(in srgb, #ffb4ab 42%, transparent);
}

.recipe-meta-chips--allergens {
  gap: 6px;
}

.recipe-cover-banner__author {
  margin: 0;
  display: inline-flex;
  align-items: center;
  font-size: 0.88rem;
  font-weight: 780;
  color: color-mix(in srgb, #fff 78%, transparent);
  text-decoration: none;
}

a.recipe-cover-banner__author:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.recipe-cover-banner__title-row {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: max-content;
  max-width: 100%;
  min-width: 0;
}

.recipe-cover-banner__title {
  margin: 0;
  display: flex;
  align-items: center;
  flex: 0 1 auto;
  width: auto;
  max-width: min(100%, 22ch);
  min-height: 40px;
  font-size: clamp(1.65rem, 4.5vw, 2.35rem);
  font-weight: 950;
  line-height: 1;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 18px color-mix(in srgb, #000 45%, transparent);
}

.recipe-cover-banner__title-text {
  display: block;
  line-height: 1;
}

.recipe-cover-banner__reactions {
  display: inline-flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap;
  align-items: center;
  align-self: center;
  gap: 8px;
  flex: 0 0 auto;
  height: 40px;
  pointer-events: auto;
}

.recipe-cover-banner__react {
  margin: 0;
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center;
  height: 40px;
}

.recipe-cover-banner__react-btn {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-sizing: border-box;
  min-height: 40px;
  height: 40px;
  width: auto;
  padding: 0 12px 0 10px;
  border-radius: var(--hrum-radius-pill);
  color: #fff;
  background: color-mix(in srgb, #000 45%, transparent);
  border: 1px solid color-mix(in srgb, #fff 22%, transparent);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 18px color-mix(in srgb, #000 28%, transparent);
  cursor: pointer;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}

.recipe-cover-banner__react-btn:hover {
  background: color-mix(in srgb, #000 58%, transparent);
  color: #fff;
  text-decoration: none;
}

.recipe-cover-banner__react-btn.is-active {
  color: color-mix(in srgb, #ffb4ab 92%, #fff);
  border-color: color-mix(in srgb, #ffb4ab 45%, transparent);
}

.recipe-cover-banner__react-btn.is-liked .recipe-toolbar-symbol,
.recipe-cover-banner__react-btn.is-liked .material-symbols-outlined {
  color: #ff6b6b;
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24 !important;
}

.recipe-cover-banner__react-btn.is-active .recipe-toolbar-symbol,
.recipe-cover-banner__react-btn.is-active .material-symbols-outlined {
  color: #ffb347;
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24 !important;
}

.recipe-cover-banner__react-count {
  font-size: 0.9rem;
  font-weight: 780;
  font-variant-numeric: tabular-nums;
}

.recipe-cover-banner__share {
  width: 40px;
  padding: 0;
}

@media (min-width: 860px) {
  .recipe-cover-banner__share {
    display: none !important;
  }
}

.recipe-cover-banner__desc {
  margin: 0;
  max-width: 62ch;
  line-height: 1.55;
  font-size: 0.96rem;
  color: color-mix(in srgb, #fff 90%, transparent);
  text-shadow: 0 1px 10px color-mix(in srgb, #000 35%, transparent);
}

.recipe-compose__allergens {
  margin: 16px 0 0;
  padding: 0;
  border: 0;
  min-inline-size: 0;
}

.recipe-compose__allergens-legend {
  padding: 0;
  font-size: 0.92rem;
  font-weight: 850;
  color: color-mix(in srgb, var(--hrum-color-on-surface) 78%, transparent);
}

.recipe-compose__allergens-hint {
  margin: 6px 0 10px;
  font-size: 0.84rem;
  font-weight: 650;
  line-height: 1.45;
  color: color-mix(in srgb, var(--hrum-color-on-surface) 58%, transparent);
}

.recipe-compose__check-grid {
  display: grid;
  gap: 8px 14px;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
}

.recipe-compose__check-item {
  min-height: 40px;
  font-size: 0.86rem;
  font-weight: 760;
}

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

.recipe-chip {
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 820;
  color: var(--hrum-color-on-primary-container);
  background: color-mix(in srgb, var(--hrum-color-primary-container) 88%, var(--hrum-color-surface));
  border: 1px solid color-mix(in srgb, var(--hrum-color-primary) 16%, transparent);
}

.recipe-chip--muted {
  color: color-mix(in srgb, var(--hrum-color-on-surface) 72%, transparent);
  background: color-mix(in srgb, var(--hrum-color-surface-variant) 40%, transparent);
  border-color: var(--hrum-border-subtle);
}

.recipe-cook-layout {
  display: grid;
  gap: 18px;
  align-items: start;
}

.recipe-shop-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: 18px;
  border: 1px solid color-mix(in srgb, var(--hrum-color-primary) 22%, var(--hrum-border-subtle));
  border-radius: var(--hrum-radius-bento);
  background: linear-gradient(
    165deg,
    color-mix(in srgb, var(--hrum-color-primary-container) 72%, var(--hrum-color-surface)),
    color-mix(in srgb, var(--hrum-color-primary-container) 24%, var(--hrum-color-surface))
  );
  box-shadow: var(--hrum-elevation-1);
  align-self: start;
}

@media (max-width: 859px) {
  .recipe-shop-list,
  .ingredient-panel.recipe-bento__panel {
    position: static;
    top: auto;
    max-height: none;
    overflow: visible;
    overscroll-behavior: auto;
    z-index: auto;
  }
}

.recipe-shop-list__head {
  display: grid;
  gap: 4px;
}

.recipe-shop-list__title {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 900;
  color: var(--hrum-color-on-primary-container);
}

.recipe-shop-list__progress {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 780;
  color: color-mix(in srgb, var(--hrum-color-on-primary-container) 70%, transparent);
}

.recipe-shop-list__hint {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: color-mix(in srgb, var(--hrum-color-on-primary-container) 62%, transparent);
}

.recipe-process {
  display: grid;
  gap: 16px;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--hrum-border-subtle);
  border-radius: var(--hrum-radius-bento);
  background: var(--hrum-surface-panel);
  box-shadow: var(--hrum-elevation-1);
}

.recipe-process__head {
  display: grid;
  gap: 10px;
}

.recipe-process__title {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 900;
}

.recipe-process__progress {
  margin: 4px 0 0;
  font-size: 0.84rem;
  font-weight: 760;
  color: color-mix(in srgb, var(--hrum-color-on-surface) 62%, transparent);
}

.recipe-progress-bar {
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
  background: color-mix(in srgb, var(--hrum-color-primary) 12%, var(--hrum-color-surface-variant));
}

.recipe-progress-bar__fill {
  height: 100%;
  border-radius: inherit;
  background: var(--hrum-color-primary);
  transition: width 0.2s ease;
}

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

.recipe-timeline__item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  padding: 0 0 22px;
}

.recipe-timeline__item:last-child {
  padding-bottom: 0;
}

.recipe-timeline__rail {
  position: relative;
  display: flex;
  justify-content: center;
}

.recipe-timeline__rail::after {
  content: '';
  position: absolute;
  top: 36px;
  bottom: -6px;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: color-mix(in srgb, var(--hrum-color-tertiary) 28%, transparent);
}

.recipe-timeline__item:last-child .recipe-timeline__rail::after {
  display: none;
}

.recipe-timeline__dot {
  position: relative;
  z-index: 1;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  font-size: 0.92rem;
  font-weight: 900;
  color: #fffaf2;
  background: var(--hrum-color-tertiary);
  transition: background 0.15s ease, transform 0.15s ease;
}

.recipe-timeline__item.is-done .recipe-timeline__dot {
  background: var(--hrum-color-primary);
}

.recipe-timeline__content {
  display: grid;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--hrum-radius-md);
  border: 1px solid color-mix(in srgb, var(--hrum-color-tertiary) 14%, transparent);
  background: color-mix(in srgb, var(--hrum-color-surface) 90%, transparent);
  transition: border-color 0.15s ease, opacity 0.15s ease, padding 0.15s ease;
}

.recipe-timeline__body {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.recipe-timeline__lead {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--hrum-color-tertiary) 72%, var(--hrum-color-on-background));
}

.recipe-timeline__text {
  line-height: 1.58;
  color: var(--hrum-color-on-surface);
}

.recipe-timeline__photo {
  position: relative;
  display: block;
  width: 100%;
  max-width: 420px;
  height: 180px;
  padding: 0;
  border: 0;
  border-radius: var(--hrum-radius-xl);
  overflow: hidden;
  cursor: zoom-in;
  background: var(--hrum-color-primary-container);
}

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

/* Collapse MUST come after base photo/text rules so display:none wins. */
.recipe-timeline__item.is-done .recipe-timeline__content,
.recipe-timeline__item[data-collapsed="1"] .recipe-timeline__content {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: stretch;
  gap: 0;
  padding: 10px 12px;
  border-color: color-mix(in srgb, var(--hrum-color-primary) 28%, transparent);
  opacity: 0.92;
}

.recipe-timeline__item.is-done .recipe-timeline__body,
.recipe-timeline__item[data-collapsed="1"] .recipe-timeline__body,
.recipe-timeline__item.is-done .recipe-timeline__lead,
.recipe-timeline__item.is-done .recipe-timeline__text,
.recipe-timeline__item.is-done .recipe-timeline__photo,
.recipe-timeline__item[data-collapsed="1"] .recipe-timeline__lead,
.recipe-timeline__item[data-collapsed="1"] .recipe-timeline__text,
.recipe-timeline__item[data-collapsed="1"] .recipe-timeline__photo,
.recipe-timeline__body[hidden],
.recipe-timeline__lead[hidden],
.recipe-timeline__text[hidden],
.recipe-timeline__photo[hidden] {
  display: none !important;
  height: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
}

.recipe-timeline__item.is-done .recipe-step-toggle,
.recipe-timeline__item[data-collapsed="1"] .recipe-step-toggle {
  margin: 0;
  width: 100%;
  justify-self: stretch;
  justify-content: center;
  text-align: center;
  white-space: normal;
}

.recipe-step-toggle {
  justify-self: start;
  margin-top: 2px;
}

.recipe-step-toggle--done {
  color: var(--hrum-color-on-primary);
  background: var(--hrum-color-primary);
  border-color: transparent;
}

.recipe-bento {
  display: grid;
  gap: 18px;
  align-items: start;
}

.recipe-bento__panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--hrum-border-subtle);
  border-radius: var(--hrum-radius-bento);
  background: var(--hrum-surface-panel);
  box-shadow: var(--hrum-elevation-1);
}

.ingredient-panel.recipe-bento__panel {
  align-self: start;
  background: linear-gradient(
    165deg,
    color-mix(in srgb, var(--hrum-color-primary-container) 72%, var(--hrum-color-surface)),
    color-mix(in srgb, var(--hrum-color-primary-container) 28%, var(--hrum-color-surface))
  );
  border-color: color-mix(in srgb, var(--hrum-color-primary) 24%, var(--hrum-border-subtle));
}

.steps-panel.recipe-bento__panel {
  background: linear-gradient(
    165deg,
    color-mix(in srgb, var(--hrum-color-tertiary) 14%, var(--hrum-color-surface)),
    color-mix(in srgb, var(--hrum-color-tertiary) 6%, var(--hrum-color-surface))
  );
  border-color: color-mix(in srgb, var(--hrum-color-tertiary) 26%, var(--hrum-border-subtle));
}

.recipe-bento__title {
  margin: 0;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--hrum-border-subtle);
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0;
}

.ingredient-panel .recipe-bento__title {
  color: var(--hrum-color-on-primary-container);
  border-bottom-color: color-mix(in srgb, var(--hrum-color-primary) 28%, transparent);
}

.steps-panel .recipe-bento__title {
  color: color-mix(in srgb, var(--hrum-color-tertiary) 78%, var(--hrum-color-on-background));
  border-bottom-color: color-mix(in srgb, var(--hrum-color-tertiary) 32%, transparent);
}

.recipe-bento__panel-head {
  display: grid;
  gap: 6px;
}

.recipe-cook-progress {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 760;
  line-height: 1.35;
  color: color-mix(in srgb, var(--hrum-color-on-primary-container) 72%, transparent);
}

.recipe-cook-reset {
  width: 100%;
  margin-top: 4px;
}

.ingredient-checklist {
  display: grid;
  gap: 0;
  padding: 0;
  margin: 0;
  list-style: none;
  flex: 1;
}

.ingredient-item {
  border-bottom: 1px solid color-mix(in srgb, var(--hrum-color-primary) 14%, transparent);
}

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

.ingredient-item__label {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  cursor: pointer;
  font-size: 0.96rem;
  line-height: 1.35;
}

.ingredient-item__check {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--hrum-color-primary);
}

.ingredient-item__text {
  min-width: 0;
}

.ingredient-item__qty {
  font-weight: 850;
  white-space: nowrap;
  color: var(--hrum-color-primary);
}

.ingredient-item.is-done .ingredient-item__text,
.ingredient-item.is-done .ingredient-item__qty {
  opacity: 0.55;
  text-decoration: line-through;
  text-decoration-color: color-mix(in srgb, var(--hrum-color-primary) 45%, transparent);
}

.ingredient-panel ul {
  display: grid;
  gap: 0;
  padding: 0;
  margin: 0;
  list-style: none;
  flex: 1;
}

.steps-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cook-step {
  display: grid;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--hrum-radius-md);
  background: color-mix(in srgb, var(--hrum-color-surface) 82%, transparent);
  border: 1px solid color-mix(in srgb, var(--hrum-color-tertiary) 12%, transparent);
  transition: opacity 0.15s ease, border-color 0.15s ease;
}

.cook-step.is-done {
  opacity: 0.72;
  border-color: color-mix(in srgb, var(--hrum-color-primary) 22%, transparent);
}

.cook-step__media {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: var(--hrum-radius-xl);
  background: var(--hrum-color-primary-container);
  padding: 0;
  border: 0;
  cursor: zoom-in;
  text-align: inherit;
  font: inherit;
}

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

.cook-step__body {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
}

.cook-step__check {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  cursor: pointer;
}

.cook-step__check input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.cook-step__num {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--hrum-color-tertiary);
  color: #fffaf2;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
  transition: background 0.15s ease, transform 0.15s ease;
}

.cook-step__check input:checked + .cook-step__num {
  background: var(--hrum-color-primary);
  transform: scale(0.94);
}

.cook-step__check input:focus-visible + .cook-step__num {
  outline: 2px solid var(--hrum-color-primary);
  outline-offset: 2px;
}

.cook-step.is-done p {
  text-decoration: line-through;
  text-decoration-color: color-mix(in srgb, var(--hrum-color-on-surface) 35%, transparent);
}

.cook-step p {
  margin: 0;
  line-height: 1.55;
}

.recipe-lightbox {
  width: min(96vw, 1100px);
  max-width: 96vw;
  max-height: 92vh;
  padding: 0;
  border: 0;
  border-radius: var(--hrum-radius-expressive);
  background: transparent;
}

.recipe-lightbox::backdrop {
  background: color-mix(in srgb, #000 72%, transparent);
  backdrop-filter: blur(4px);
}

.recipe-lightbox__inner {
  position: relative;
  display: grid;
  gap: 0;
  max-height: 92vh;
  padding: 12px;
  border-radius: var(--hrum-radius-xl);
  background: color-mix(in srgb, var(--hrum-color-surface) 96%, #000);
  box-shadow: var(--hrum-elevation-2, 0 24px 48px rgba(0, 0, 0, 0.28));
}

.recipe-lightbox__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: #fff;
  background: color-mix(in srgb, #000 55%, transparent);
}

.recipe-lightbox__figure {
  margin: 0;
  display: grid;
  gap: 10px;
  max-height: calc(92vh - 24px);
}

.recipe-lightbox__img {
  display: block;
  width: 100%;
  max-height: calc(92vh - 64px);
  object-fit: contain;
  border-radius: var(--hrum-radius-md);
  background: #101410;
}

.recipe-lightbox__caption {
  margin: 0;
  padding-inline: 4px;
  font-size: 0.9rem;
  font-weight: 760;
  color: color-mix(in srgb, var(--hrum-color-on-surface) 78%, transparent);
}

.profile-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin: 8px 0 28px;
  padding: 4px 0 0;
}

.profile-head__identity {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
  flex: 1 1 auto;
}

.profile-head__text {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.profile-head__text h1 {
  margin: 0;
  max-width: none;
  font-size: clamp(1.45rem, 3.2vw, 2rem);
  line-height: 1.15;
}

.profile-head__text p {
  margin: 0;
  color: color-mix(in srgb, var(--hrum-color-on-surface) 62%, transparent);
}

.profile-head__city {
  font-size: 0.92rem;
  font-weight: 650;
}

.profile-head__actions {
  flex: 0 0 auto;
  margin-left: auto;
  padding-top: 6px;
}

.profile-head__stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin: 8px 0 0;
  font-size: 0.88rem;
}

.settings-panel {
  display: grid;
  gap: 18px;
  width: min(100%, 620px);
  max-width: 620px;
  margin: 8px 0 40px;
  min-width: 0;
}

.settings-panel h1 {
  margin: 0;
  max-width: none;
  font-size: clamp(1.45rem, 3vw, 1.9rem);
}

.settings-panel__intro {
  margin: -8px 0 2px;
  color: color-mix(in srgb, var(--hrum-color-on-surface) 64%, transparent);
}

.settings-panel__avatar-preview {
  display: flex;
  align-items: center;
  gap: 14px;
}

.settings-panel__avatar-preview .avatar {
  width: 72px;
  height: 72px;
  font-size: 1.6rem;
}

.settings-panel .stack {
  gap: 14px;
  min-width: 0;
}

.settings-panel .field,
.settings-panel input,
.settings-panel select,
.settings-panel button {
  min-width: 0;
  max-width: 100%;
}

.settings-avatar-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px 14px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--hrum-border-subtle);
  border-radius: var(--hrum-radius-xl);
  background: color-mix(in srgb, var(--hrum-color-primary-container) 24%, var(--hrum-color-surface));
}

.settings-avatar-card .avatar {
  grid-row: 1 / span 2;
  width: 72px;
  height: 72px;
  font-size: 1.6rem;
}

.settings-avatar-card__copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.settings-avatar-card__copy strong {
  font-size: 0.95rem;
}

.settings-avatar-card__copy span,
.settings-file-name {
  overflow: hidden;
  color: color-mix(in srgb, var(--hrum-color-on-surface) 58%, transparent);
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.settings-file-button {
  grid-column: 3;
  grid-row: 1;
}

.settings-file-name {
  grid-column: 2 / -1;
}

.settings-file-input:focus-visible + .settings-file-button {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--hrum-color-primary) 55%, transparent);
}

.profile-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(290px, 0.8fr) auto;
  align-items: center;
  gap: clamp(18px, 4vw, 44px);
  overflow: hidden;
  margin: 8px 0 18px;
  padding: clamp(20px, 4vw, 38px);
  border: 1px solid color-mix(in srgb, var(--hrum-color-primary) 20%, var(--hrum-border-subtle));
  border-radius: var(--hrum-radius-expressive);
  background:
    radial-gradient(circle at 8% 0%, color-mix(in srgb, var(--hrum-color-primary-container) 76%, transparent), transparent 42%),
    var(--hrum-surface-panel);
  box-shadow: var(--hrum-elevation-1);
}

.profile-hero::after {
  content: '';
  position: absolute;
  right: -54px;
  bottom: -72px;
  width: 190px;
  height: 190px;
  border: 34px solid color-mix(in srgb, var(--hrum-color-primary) 8%, transparent);
  border-radius: 50%;
  pointer-events: none;
}

.profile-hero__main,
.profile-hero__identity,
.profile-hero__stats,
.profile-hero__actions {
  position: relative;
  z-index: 1;
}

.profile-hero__main {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.avatar.profile-hero__avatar {
  width: clamp(84px, 10vw, 112px);
  height: clamp(84px, 10vw, 112px);
  border: 5px solid color-mix(in srgb, var(--hrum-color-surface) 84%, transparent);
  border-radius: 32px;
  box-shadow: var(--hrum-elevation-2);
  font-size: clamp(2rem, 5vw, 3rem);
}

.profile-hero__identity {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.profile-hero__identity h1 {
  overflow-wrap: anywhere;
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 2.7rem);
}

.profile-hero__eyebrow,
.profile-hero__city {
  margin: 0;
  color: color-mix(in srgb, var(--hrum-color-on-surface) 62%, transparent);
}

.profile-hero__eyebrow {
  font-weight: 720;
}

.profile-hero__city {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.9rem;
}

.profile-hero__city .material-symbols-outlined {
  width: 18px;
  height: 18px;
  font-size: 18px;
}

.profile-hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--hrum-border-subtle);
  border-radius: var(--hrum-radius-xl);
  background: color-mix(in srgb, var(--hrum-color-surface) 74%, transparent);
}

.profile-stat {
  display: grid;
  gap: 3px;
  padding: 14px 12px;
  text-align: center;
}

.profile-stat + .profile-stat {
  border-left: 1px solid var(--hrum-border-subtle);
}

.profile-stat strong {
  font-family: var(--hrum-font-display);
  font-size: 1.35rem;
}

.profile-stat span {
  color: color-mix(in srgb, var(--hrum-color-on-surface) 58%, transparent);
  font-size: 0.72rem;
  font-weight: 680;
}

.profile-hero__actions {
  justify-self: end;
}

.profile-tabs {
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--hrum-border-subtle);
  border-radius: var(--hrum-radius-pill);
  background: var(--hrum-surface-panel);
}

.profile-tabs a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: var(--hrum-radius-pill);
}

.profile-tabs a.is-active {
  color: var(--hrum-color-on-primary-container);
  background: var(--hrum-color-primary-container);
}

.profile-tabs .material-symbols-outlined {
  width: 19px;
  height: 19px;
  font-size: 19px;
}

@media (max-width: 1000px) {
  .profile-hero {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .profile-hero__stats {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

.profile-head__stat {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.profile-head__stat-icon {
  font-size: 18px;
  line-height: 1;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 18px;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--hrum-border-subtle);
}

.tabs a {
  font-weight: 760;
  text-decoration: none;
  color: color-mix(in srgb, var(--hrum-color-on-surface) 72%, transparent);
}

.tabs a:hover,
.tabs a:focus-visible {
  color: var(--hrum-color-on-surface);
}

#public,
#favorites {
  scroll-margin-top: calc(var(--hrum-topbar-offset, 84px) + 56px);
}

.profile-grid {
  position: relative;
  z-index: 0;
  gap: 16px;
}

.profile-grid + h2,
h2#favorites {
  margin: 28px 0 14px;
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
}
.avatar {
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: var(--hrum-radius-xl);
  background: var(--hrum-color-on-background);
  color: var(--hrum-color-surface);
  font-size: 2rem;
  font-weight: 900;
}
.avatar.avatar--img {
  display: block;
  object-fit: cover;
  background: var(--hrum-color-surface-muted, #e8e8e8);
}
.metric strong { display: block; margin-top: 8px; font-size: 1.5rem; }

@media (min-width: 760px) {
  .home-hero__plate img {
    min-height: 380px;
    max-height: 480px;
  }
  .home-hero__caption {
    padding: 40px 28px 24px;
  }
  .search-panel { grid-template-columns: 1fr; align-items: end; padding: 14px; }
}

@media (min-width: 720px) {
  .recipe-compose__meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: end;
  }
  .recipe-compose__private {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1100px) {
  .recipe-page-cook-row {
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 22px;
  }

  .recipe-popular-ribbon {
    display: block;
    position: sticky;
    top: calc(var(--hrum-topbar-offset, 84px) + 14px);
    max-height: calc(100vh - var(--hrum-topbar-offset, 84px) - 28px);
    overflow: auto;
    padding: 14px 12px;
    border: 1px solid var(--hrum-border-subtle);
    border-radius: var(--hrum-radius-bento);
    background: var(--hrum-surface-panel);
    box-shadow: var(--hrum-elevation-1);
  }
}

@media (min-width: 860px) {
  .recipe-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .recipe-hero__media { height: 300px; }
  .recipe-cook-layout {
    grid-template-columns: minmax(260px, 300px) minmax(0, 1fr);
  }
  .recipe-shop-list,
  .ingredient-panel.recipe-bento__panel {
    position: sticky;
    top: calc(var(--hrum-topbar-offset, 84px) + 14px);
    z-index: 2;
    max-height: calc(100vh - var(--hrum-topbar-offset, 84px) - 28px);
    overflow: auto;
    overscroll-behavior: contain;
  }
  .recipe-bento {
    grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
    align-items: start;
  }
}

@media (max-width: 520px) {
  .home-hero {
    gap: 12px;
  }
  .home-hero__plate img {
    min-height: 240px;
    max-height: 320px;
  }
  .home-hero__caption {
    padding: 22px 16px 16px;
  }
  .home-hero__text { margin-bottom: 10px; font-size: .92rem; line-height: 1.48; }
  .home-hero__actions { display: none; }
  .recipe-compose .ingredient-row__fields {
    grid-template-columns: minmax(0, 1fr) minmax(92px, 0.7fr) 40px;
  }

  .recipe-compose .ingredient-row__fields > :first-child {
    grid-column: 1 / -1;
  }

  .recipe-compose__card,
  .recipe-compose__card--cover {
    padding: 14px;
  }

  .recipe-compose .ingredient-row {
    padding: 10px;
  }

  .recipe-comments {
    padding: 16px 14px;
  }

  .recipe-compose__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .recipe-compose__actions .button {
    width: 100%;
  }

  .section-title { align-items: start; flex-direction: column; gap: 4px; }
  .profile-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .settings-panel {
    gap: 14px;
    width: 100%;
    padding: 18px 14px;
    border-radius: var(--hrum-radius-xl);
  }

  .settings-panel h1 {
    font-size: 1.55rem;
  }

  .settings-avatar-card {
    grid-template-columns: auto minmax(0, 1fr);
    padding: 12px;
  }

  .settings-avatar-card .avatar {
    grid-row: 1 / span 2;
    width: 64px;
    height: 64px;
  }

  .settings-file-button {
    grid-column: 1 / -1;
    grid-row: auto;
    width: 100%;
  }

  .settings-file-name {
    grid-column: 1 / -1;
    text-align: center;
  }

  .settings-panel form > .button[type="submit"] {
    width: 100%;
  }

  .profile-hero {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 20px 16px;
  }

  .profile-hero__main {
    align-items: flex-start;
  }

  .avatar.profile-hero__avatar {
    width: 82px;
    height: 82px;
    border-radius: 26px;
  }

  .profile-hero__stats {
    grid-column: auto;
    grid-row: auto;
    width: 100%;
  }

  .profile-stat {
    padding: 12px 6px;
  }

  .profile-stat span {
    font-size: 0.66rem;
  }

  .profile-hero__actions,
  .profile-hero__actions .button,
  .profile-hero__actions form {
    width: 100%;
  }

  .profile-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-radius: var(--hrum-radius-xl);
  }

  .profile-tabs a {
    justify-content: center;
  }

  .recipe-cover-banner__top {
    flex-wrap: wrap;
    gap: 10px;
  }

  .recipe-cover-banner__chips {
    max-width: 100%;
    width: 100%;
  }

  .recipe-cover-banner__toolbar {
    width: 100%;
    justify-content: flex-end;
  }

  .recipe-page-shell,
  .recipe-page-shell__main,
  .recipe-cover-banner {
    min-width: 0;
    max-width: 100%;
  }

  .profile-head__actions {
    width: 100%;
    margin-left: 0;
  }

  .profile-head__actions .button {
    width: 100%;
  }
}

.likes-inbox {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.likes-inbox__row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 56px;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  padding: 10px 12px;
  border: 1px solid var(--hrum-border-subtle);
  border-radius: var(--hrum-radius-xl);
  background: var(--hrum-surface-panel);
  box-shadow: var(--hrum-elevation-1);
  color: inherit;
  text-decoration: none;
}

.likes-inbox__row:hover {
  color: inherit;
  border-color: color-mix(in srgb, var(--hrum-color-primary) 28%, var(--hrum-border-subtle));
}

.likes-inbox__avatar {
  width: 44px;
  height: 44px;
  font-size: 1.1rem;
  border-radius: var(--hrum-radius-lg);
}

.likes-inbox__copy {
  display: grid;
  gap: 2px;
  min-width: 0;
  font-size: 0.94rem;
  line-height: 1.35;
}

.likes-inbox__copy em {
  font-style: normal;
  font-weight: 700;
  color: var(--hrum-color-primary);
}

.likes-inbox__copy time {
  color: color-mix(in srgb, var(--hrum-color-on-surface) 52%, transparent);
  font-size: 0.78rem;
  font-weight: 500;
}

.likes-inbox__row.is-unread {
  border-color: color-mix(in srgb, var(--hrum-color-primary) 36%, var(--hrum-border-subtle));
  background: color-mix(in srgb, var(--hrum-color-primary-container) 42%, var(--hrum-surface-panel));
}

.likes-inbox__snippet {
  color: color-mix(in srgb, var(--hrum-color-on-surface) 68%, transparent);
  font-size: 0.86rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.likes-inbox__icon {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: var(--hrum-radius-md);
  background: color-mix(in srgb, var(--hrum-color-primary) 12%, var(--hrum-surface-panel));
  color: var(--hrum-color-primary);
  font-size: 1.4rem;
}

.likes-inbox__cover {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: var(--hrum-radius-md);
  background: var(--hrum-color-primary-container);
}
