/* start navbar css */
.cv-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(255, 252, 247, 0.96);
  border-bottom: 1px solid #e4dccd;
  backdrop-filter: blur(12px);
}

.cv-topbar {
  padding: 8px 16px 6px;
}

.cv-topbar > .cv-nav {
  width: 100%;
}

.cv-nav {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.cv-nav-top {
  display: contents;
}

.cv-nav-top .cv-logo {
  grid-column: 1;
  grid-row: 1;
}

.cv-nav-top .cv-nav-right {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  align-self: center;
  padding: 0;
}

.cv-burger-wrap {
  position: relative;
  flex: 0 0 auto;
}

.cv-logo {
  font-weight: 900;
  font-size: 20px;
  text-decoration: none;
  color: #183229;
  white-space: nowrap;
}

.cv-burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid #d7c9af;
  border-radius: 14px;
  cursor: pointer;
  padding: 0 14px;
  margin: 0;
  box-shadow: 0 10px 22px rgba(74, 55, 26, 0.08);
}

.cv-account-toggle {
  gap: 10px;
  justify-content: space-between;
  min-width: 140px;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.2;
  color: #183229;
}

.cv-account-name {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cv-account-arrow {
  font-size: 0.85rem;
  transition: transform 0.18s ease;
}

.cv-burger[aria-expanded="true"] .cv-account-arrow {
  transform: rotate(180deg);
}

.cv-burger-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  left: auto;
  min-width: 240px;
  background: #fffdf8;
  border: 1px solid #e4dccd;
  border-radius: 18px;
  padding: 8px;
  box-shadow: 0 18px 42px rgba(74, 55, 26, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  z-index: 1000;
}

.cv-burger-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.cv-burger-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  color: #183229;
  font-weight: 700;
}

.cv-burger-menu a:hover,
.cv-burger-menu a:focus-visible {
  background: #f3ecde;
  outline: none;
}

.cv-nav-bottom {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  flex-wrap: nowrap;
  position: relative;
  min-width: 0;
  padding: 0 0 2px;
  width: 100%;
}

.cv-nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  min-width: 0;
  flex: 1 1 auto;
}

.cv-nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  justify-content: flex-end;
  width: auto;
}

.cv-nav-top .cv-navlink.cv-cta {
  padding: 7px 12px;
  min-height: 40px;
}

.cv-navlink {
  text-decoration: none;
  color: #183229;
  font-weight: 800;
  padding: 8px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.18s ease, color 0.18s ease;
}

.cv-navlink:hover,
.cv-navlink:focus-visible,
.cv-dropbtn[aria-expanded="true"],
.cv-dropdown:hover > .cv-dropbtn,
.cv-dropdown:focus-within > .cv-dropbtn,
.cv-burger[aria-expanded="true"] {
  background: #efe7d7;
  outline: none;
}

.cv-cta {
  border: 1px solid #d9c9a5;
  background: #fff7e8;
}

.cv-search {
  position: static;
  top: auto;
  right: auto;
  flex: 0 1 340px;
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(340px, 100%);
  max-width: 340px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  z-index: auto;
}

.cv-mobile-search-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  width: 44px;
  min-width: 44px;
  padding: 0;
  border-radius: 999px;
  flex: 0 0 44px;
}

.cv-mobile-search-icon {
  font-size: 1rem;
  line-height: 1;
}

.cv-search-input {
  width: 100%;
}

.cv-search-btn {
  white-space: nowrap;
}

.cv-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.cv-dropdown::after {
  content: "";
  position: absolute;
  left: 0;
  top: 100%;
  width: 100%;
  height: 14px;
}

.cv-dropbtn {
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.cv-dropmenu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 220px;
  background: #fffdf8;
  border: 1px solid #e4dccd;
  border-radius: 18px;
  padding: 8px;
  box-shadow: 0 18px 42px rgba(74, 55, 26, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  z-index: 1000;
}

.cv-dropmenu a {
  display: block;
  padding: 10px 10px;
  border-radius: 12px;
  text-decoration: none;
  color: #183229;
  font-weight: 700;
}

.cv-dropmenu a:hover,
.cv-dropmenu a:focus-visible {
  background: #f3ecde;
  outline: none;
}

@media (min-width: 901px) {
  .cv-dropdown:hover .cv-dropmenu,
  .cv-dropdown:focus-within .cv-dropmenu,
  .cv-dropdown.is-open .cv-dropmenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }
}

@media (max-width: 900px) {
  .cv-topbar {
    padding: 6px 12px 4px;
  }

  .cv-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .cv-nav-top,
  .cv-nav-bottom {
    padding-left: 0;
    padding-right: 0;
  }

  .cv-nav-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 8px;
    flex: 0 0 auto;
  }

  .cv-nav-top .cv-logo,
  .cv-nav-top .cv-nav-right,
  .cv-nav-bottom {
    grid-column: auto;
  }

  .cv-nav-right {
    width: auto;
    justify-self: end;
    justify-content: flex-end;
  }

  .cv-nav-top .cv-navlink.cv-cta {
    margin-top: 0;
    padding: 6px 11px;
    min-height: 36px;
  }

  .cv-account-wrap {
    width: auto;
  }

  .cv-account-toggle {
    width: auto;
    min-height: 36px;
  }

  .cv-search {
    position: static;
    max-width: none;
    margin: 0;
    width: 100%;
    flex: 1 1 100%;
    order: 3;
    display: none;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .cv-search.is-open {
    display: flex;
  }

  .cv-nav-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    overflow-x: visible;
    overflow-y: visible;
    padding-bottom: 1px;
    scrollbar-width: none;
    width: 100%;
    margin: 0;
  }

  .cv-nav-bottom::-webkit-scrollbar {
    display: none;
  }

  .cv-nav-left {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: nowrap;
    width: auto;
    flex: 1 1 auto;
    justify-content: flex-start;
    margin-right: 0;
    min-width: 0;
  }

  .cv-nav-left > * {
    flex: 0 0 auto;
  }

  .cv-dropdown {
    display: inline-flex;
  }

  .cv-dropdown::after {
    display: none;
  }

  .cv-dropmenu {
    position: absolute;
    margin-top: 0;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.12);
    border-radius: 14px;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
  }

  .cv-dropdown.is-open .cv-dropmenu {
    display: block;
  }

  .cv-navlink,
  .cv-dropbtn,
  .cv-mobile-search-toggle {
    min-height: 38px;
    padding: 6px 9px;
    font-size: 0.92rem;
  }

  .cv-mobile-search-toggle {
    display: inline-flex;
    width: 38px;
    min-width: 38px;
    flex: 0 0 38px;
    margin-left: auto;
  }

  .cv-search.is-open {
    display: flex;
    margin-top: 6px;
  }
}
/* end navbar css */

/* start shared css */
:root {
  --cv-bg: #f7f1e5;
  --cv-surface: #fffdf8;
  --cv-surface-strong: #fff7e8;
  --cv-border: #e4dccd;
  --cv-border-strong: #d7c9af;
  --cv-text: #183229;
  --cv-text-soft: #5b6d61;
  --cv-accent: #2f6f57;
  --cv-accent-strong: #1e5541;
  --cv-danger: #b64646;
  --cv-danger-soft: #fff2f0;
  --cv-success: #2d6a4f;
  --cv-success-soft: #f0faf4;
  --cv-shadow: 0 20px 45px rgba(68, 51, 24, 0.08);
  --cv-radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.7), transparent 32%),
    linear-gradient(180deg, #fbf7ef 0%, var(--cv-bg) 100%);
  color: var(--cv-text);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--cv-accent-strong);
}

a:hover,
a:focus-visible {
  color: #173f32;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
.cv-button,
.cv-search-btn {
  border: 1px solid var(--cv-border-strong);
  background: linear-gradient(180deg, #fff7ea 0%, #f3e5c9 100%);
  color: var(--cv-text);
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.15s ease, box-shadow 0.18s ease, filter 0.18s ease;
  box-shadow: 0 8px 18px rgba(109, 81, 33, 0.08);
}

button:hover,
.cv-button:hover,
.cv-search-btn:hover,
button:focus-visible,
.cv-button:focus-visible,
.cv-search-btn:focus-visible {
  transform: translateY(-1px);
  filter: brightness(0.99);
  outline: none;
}

button[disabled],
.cv-button[disabled] {
  opacity: 0.5;
  cursor: default;
  transform: none;
  box-shadow: none;
}

input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
  width: 100%;
  border: 1px solid var(--cv-border-strong);
  background: rgba(255, 255, 255, 0.92);
  color: var(--cv-text);
  padding: 11px 13px;
  border-radius: 16px;
  box-shadow: inset 0 1px 2px rgba(63, 45, 16, 0.04);
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(47, 111, 87, 0.18);
  border-color: var(--cv-accent);
}

hr {
  border: 0;
  border-top: 1px solid var(--cv-border);
  margin: 24px 0;
}

.cv-page,
.index-page {
  padding: 24px 16px 56px;
  max-width: 1120px;
  margin: 0 auto;
}

.cv-page--narrow {
  max-width: 920px;
}

.cv-page--auth {
  max-width: 1020px;
  min-height: calc(100vh - 40px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cv-page-header {
  margin-bottom: 24px;
}

.cv-page-title,
.index-hero-title {
  margin: 0 0 8px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  color: #163326;
}

.cv-page-subtitle,
.index-hero-copy,
.index-section-copy {
  margin: 0;
  color: var(--cv-text-soft);
  max-width: 70ch;
}

.cv-card,
.index-empty-card,
.recipe-carousel-card {
  background: var(--cv-surface);
  border: 1px solid var(--cv-border);
  border-radius: var(--cv-radius);
  box-shadow: var(--cv-shadow);
}

.cv-panel {
  padding: 20px;
}

.cv-card-title {
  margin: 0 0 8px;
}

.cv-alert {
  border-radius: 18px;
  padding: 14px 16px;
  margin-bottom: 18px;
  border: 1px solid var(--cv-border);
}

.cv-alert p {
  margin: 0;
}

.cv-alert p + p {
  margin-top: 8px;
}

.cv-alert--error {
  border-color: #e5b8b1;
  background: var(--cv-danger-soft);
  color: #843838;
}

.cv-alert--success {
  border-color: #b8d8c7;
  background: var(--cv-success-soft);
  color: #245740;
}

.cv-link-reset,
.index-link-reset,
.recipe-card-link-reset {
  text-decoration: none;
  color: inherit;
}

.cv-cta-link,
.index-cta-link,
.recipe-card-link {
  font-weight: 700;
  text-decoration: none;
}

.cv-empty-text,
.index-empty-copy {
  margin: 0;
  color: var(--cv-text-soft);
}

.cv-stack-sm > * + * {
  margin-top: 10px;
}

.cv-stack-md > * + * {
  margin-top: 16px;
}

.cv-stack-lg > * + * {
  margin-top: 24px;
}

.cv-section + .cv-section {
  margin-top: 22px;
}

.cv-section-title,
.index-section-title {
  margin: 0 0 8px;
}

.cv-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.cv-inline-form {
  display: inline;
}

.cv-inline-form-flex {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.cv-field {
  display: grid;
  gap: 6px;
}

.cv-form-grid {
  display: grid;
  gap: 16px;
}

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

.cv-form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-start;
}

.cv-help-text,
.cv-muted,
.index-recipe-meta,
.recipe-card-meta {
  color: var(--cv-text-soft);
}

.cv-table-wrap {
  overflow: auto;
  border: 1px solid var(--cv-border);
  border-radius: var(--cv-radius);
  background: var(--cv-surface);
  box-shadow: var(--cv-shadow);
}

.cv-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
}

.cv-table th,
.cv-table td {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid #eee7db;
  vertical-align: top;
}

.cv-table th {
  color: var(--cv-text);
  background: rgba(241, 233, 217, 0.55);
}

.cv-table tbody tr:hover {
  background: rgba(255, 247, 232, 0.68);
}

.recipe-list,
.recipes-list {
  display: grid;
  gap: 16px;
}

.recipe-card {
  padding: 18px;
}

.recipe-card--no-image {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.recipe-card-image-link {
  display: block;
  margin: -18px -18px 14px;
}

.recipe-card-image {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 20px 20px 0 0;
  border-bottom: 1px solid rgba(181, 202, 236, 0.5);
}

.recipe-card-title {
  margin: 0 0 6px;
}

.recipe-card--no-image .recipe-card-title,
.recipe-card--no-image .index-recipe-title,
.recipe-card--no-image .recipe-card-copy,
.recipe-card--no-image .index-recipe-copy,
.recipe-card--no-image .recipe-card-meta,
.recipe-card--no-image .index-recipe-meta,
.recipe-card--no-image .index-recipe-badge {
  text-align: center;
}

.recipe-card--no-image .recipe-card-actions {
  justify-content: center;
}

.recipe-card--no-image .index-cta-link {
  align-self: center;
}

.recipe-card-copy,
.index-recipe-copy {
  margin: 0 0 10px;
  color: #334a41;
}

.recipe-card-meta,
.index-recipe-meta {
  margin: 0 0 10px;
}

.ing-suggest,
.cv-suggest-box {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: #fffdf8;
  border: 1px solid var(--cv-border);
  border-radius: 16px;
  padding: 8px;
  z-index: 50;
  min-width: 240px;
  max-width: 360px;
  box-shadow: 0 18px 32px rgba(67, 48, 18, 0.12);
}

.ing-suggest.is-visible,
.cv-suggest-box.is-visible {
  display: block;
}

.cv-suggest-title {
  padding: 6px 8px;
  font-weight: 700;
  color: var(--cv-text-soft);
}

.ing-item,
.cv-suggest-item {
  padding: 8px;
  border-radius: 10px;
  cursor: pointer;
}

.ing-item:hover,
.cv-suggest-item:hover,
.ing-item:focus-visible,
.cv-suggest-item:focus-visible {
  background: #f4edde;
  outline: none;
}

.cv-suggest-item--highlight {
  background: #f7f1e4;
  margin: 4px 0;
}

.cv-suggest-divider {
  border: 0;
  border-top: 1px solid #eee7db;
  margin: 6px 0;
}

.cv-suggest-empty {
  padding: 8px;
  color: var(--cv-text-soft);
}

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

@media (max-width: 760px) {
  .cv-form-grid-2 {
    grid-template-columns: 1fr;
  }

  .cv-page,
  .index-page {
    padding-top: 18px;
  }

  .cv-table {
    min-width: 680px;
  }
}
/* end shared css */

/* start index css */
.index-hero {
  margin-bottom: 24px;
}

.index-section {
  margin-bottom: 28px;
}

.index-section-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.index-section-head-tight {
  margin-bottom: 0;
}

.index-stack-top {
  margin-top: 14px;
}

.index-recipe-badge {
  margin: 0 0 8px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--cv-success);
}

.recipe-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 320px);
  gap: 14px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scroll-padding-left: 2px;
  padding: 2px 2px 12px;
  scrollbar-width: thin;
  scrollbar-color: #c9c9c9 #f3f3f3;
  scroll-behavior: smooth;
}

.recipe-carousel::-webkit-scrollbar {
  height: 10px;
}

.recipe-carousel::-webkit-scrollbar-track {
  background: #f3f3f3;
  border-radius: 999px;
}

.recipe-carousel::-webkit-scrollbar-thumb {
  background: #c9c9c9;
  border-radius: 999px;
}

.recipe-carousel-shell {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.recipe-carousel-card {
  scroll-snap-align: start;
  min-height: 100%;
}

.recipe-carousel-btn {
  width: 42px;
  height: 42px;
  border-radius: 999px;
}

@media (max-width: 700px) {
  .recipe-carousel {
    grid-auto-columns: minmax(84vw, 84vw);
  }

  .recipe-carousel-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .recipe-carousel-btn {
    display: none;
  }
}
/* end index css */

/* start login css */
.login-page {
  display: grid;
  grid-template-columns: 1fr, 1fr;
  gap: 20px;
  align-items: stretch;
}

.login-form-card {
  padding: 24px;
}

.login-form-card h2 {
  margin-top: 0;
}

.login-divider {
  border: 0;
  border-top: 1px solid var(--cv-border);
  margin: 18px 0;
}

@media (max-width: 980px) {
  .login-page {
    grid-template-columns: 1fr;
  }
}
/* end login css */

/* start create_recipe css */
.create-page .cv-panel + .cv-panel {
  margin-top: 18px;
}

.create-ingredient-row,
.create-step-row {
  position: relative;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.create-ingredient-name-wrap {
  position: relative;
  flex: 1 1 260px;
}

.create-ingredient-input {
  min-width: 240px;
}

.create-step-row textarea {
  flex: 1 1 100%;
}

.create-category-fieldset {
  border: 1px solid var(--cv-border);
  border-radius: 18px;
  padding: 12px;
  margin-bottom: 12px;
}

.create-category-fieldset legend {
  padding: 0 8px;
  color: var(--cv-text-soft);
  font-weight: 700;
}

.create-category-option {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin: 0 12px 10px 0;
}
/* end create_recipe css */

/* start recipes css */
.recipes-filter-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 14px 0 20px;
  position: relative;
  z-index: 30;
  overflow: visible;
}

.recipes-filter-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  width: 100%;
}

.recipes-filter-row-search > * {
  flex: 1 1 100%;
  width: 100%;
}

.recipes-filter-row-dropdowns > * {
  flex: 1 1 180px;
}

.recipes-filter-row-actions {
  justify-content: flex-start;
}

.recipes-filter-row-actions > * {
  flex: 0 0 auto;
}

.recipes-filter-row-actions .recipes-quick-label {
  margin-right: auto;
}

.recipes-filter-row-actions .recipes-reset-link {
  margin-left: 0;
}

@media (max-width: 760px) {
  .recipes-filter-row-actions {
    justify-content: flex-start;
  }
}

.recipes-quick-label {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.recipes-reset-link {
  align-self: center;
  font-weight: 700;
}

.recipes-filter-dropdown {
  position: relative;
  flex: 1 1 220px;
  margin: 0;
  z-index: 60;
}

.recipes-filter-dropdown summary {
  list-style: none;
  border: 1px solid var(--cv-border-strong);
  background: rgba(248, 251, 255, 0.95);
  color: var(--cv-text);
  padding: 11px 13px;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03);
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.recipes-filter-dropdown summary::-webkit-details-marker {
  display: none;
}

.recipes-filter-dropdown summary::after {
  content: "▾";
  color: var(--cv-text-soft);
  margin-left: 12px;
  flex: 0 0 auto;
}

.recipes-filter-dropdown[open] summary {
  border-color: #7aa3ff;
  outline: 2px solid rgba(91, 140, 255, 0.18);
}

.recipes-filter-dropdown[open] {
  z-index: 80;
}

.recipes-filter-checklist {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 100;
  width: 100%;
  min-width: 220px;
  max-height: 260px;
  overflow: auto;
  padding: 10px;
  border: 1px solid var(--cv-border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.12);
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
}

.recipes-filter-check {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 8px 6px;
  border-radius: 10px;
  white-space: nowrap;
}

.recipes-filter-check:hover {
  background: rgba(231, 240, 255, 0.64);
}

.recipes-filter-check input {
  width: auto;
  margin: 0;
  flex: 0 0 auto;
}

.recipes-filter-check span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.recipes-list,
.recipe-card {
  position: relative;
  z-index: 1;
}

@media (max-width: 760px) {
  .recipes-filter-checklist {
    position: static;
    margin-top: 8px;
    max-height: 220px;
  }
}
/* end recipes css */

/* start recipe css */
.recipe-page {
  max-width: 960px;
}

.recipe-back-link {
  display: inline-block;
  margin-bottom: 10px;
  font-weight: 700;
  text-decoration: none;
}

.recipe-flash-link {
  margin-top: 8px;
}

.recipe-action-block {
  margin: 14px 0 18px;
}

.recipe-action-form + .recipe-action-form {
  margin-top: 10px;
}

.recipe-action-row {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.recipe-toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.recipe-modified-fields {
  border: 1px solid var(--cv-border);
  border-radius: 18px;
  padding: 14px;
  background: #fbf8f1;
  margin-top: 10px;
}

.recipe-modified-fields h3,
.recipe-modified-fields p {
  margin-top: 0;
}

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

.recipe-adjust-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 140px auto;
  gap: 10px;
  align-items: center;
}

.recipe-meta {
  margin: 0 0 12px;
}

.recipe-section {
  margin: 18px 0;
}

.recipe-media-grid {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.recipe-media-image {
  max-width: 320px;
  border-radius: 16px;
  border: 1px solid var(--cv-border);
}

.recipe-video {
  width: 100%;
  min-height: 315px;
  border: 0;
  border-radius: 18px;
}

@media (max-width: 760px) {
  .recipe-adjust-row {
    grid-template-columns: 1fr;
  }
}
/* end recipe css */

/* start pantry css */
.pantry-page,
.shopping-page {
  max-width: 1160px;
}

.pantry-add-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.pantry-add-form > * {
  flex: 1 1 160px;
}

.pantry-ingredient-wrap {
  position: relative;
  flex: 1 1 280px;
}

.pantry-unit-note {
  margin-top: 12px;
  font-size: 0.95rem;
}

.pantry-list-section {
  margin-top: 18px;
}

.pantry-fixed-label,
.pantry-display-label {
  color: var(--cv-text-soft);
}

.pantry-inline-form {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.pantry-qty-input,
.shopping-qty-input {
  width: 110px !important;
}
/* end pantry css */

/* start shopping_list css */
.shopping-toolbar {
  margin-bottom: 18px;
}

.shopping-bulk-actions {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
/* end shopping_list css */

/* start shared polish css */
:root {
  --cv-bg: #f4efe6;
  --cv-bg-warm: #fbf7f1;
  --cv-paper: rgba(255, 252, 247, 0.92);
  --cv-ink: #163229;
  --cv-ink-soft: #55695f;
  --cv-gold: #c9a86a;
  --cv-gold-deep: #a88447;
  --cv-green: #2f6f57;
  --cv-green-deep: #214d3c;
  --cv-line: #e5dccd;
  --cv-line-strong: #d7c7ae;
  --cv-shadow-soft: 0 18px 38px rgba(57, 43, 22, 0.08);
  --cv-shadow-lift: 0 22px 54px rgba(57, 43, 22, 0.14);
}

body {
  background:
    radial-gradient(circle at top right, rgba(201, 168, 106, 0.12), transparent 26%),
    radial-gradient(circle at top left, rgba(47, 111, 87, 0.08), transparent 22%),
    linear-gradient(180deg, #fcf9f4 0%, #f4efe6 100%);
  color: var(--cv-ink);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.16;
}

h1,
h2,
h3,
h4,
.cv-logo {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -0.02em;
}

.cv-page-title,
.index-hero-title {
  max-width: 12ch;
}

.cv-card,
.index-empty-card,
.recipe-carousel-card {
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.96) 0%, rgba(255, 249, 239, 0.92) 100%);
  box-shadow: var(--cv-shadow-soft);
}

.cv-card,
.recipe-carousel-card,
.cv-table-wrap,
.cv-alert {
  backdrop-filter: blur(10px);
}

.cv-card:hover,
.recipe-carousel-card:hover,
.recipe-card:hover {
  box-shadow: var(--cv-shadow-lift);
}

button,
.cv-button,
.cv-search-btn {
  background: linear-gradient(180deg, #f9edd3 0%, #ebd4a2 100%);
  border-color: #d8be8f;
}

button:hover,
.cv-button:hover,
.cv-search-btn:hover,
button:focus-visible,
.cv-button:focus-visible,
.cv-search-btn:focus-visible {
  box-shadow: 0 16px 28px rgba(120, 92, 39, 0.18);
}

input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 14px;
}

.cv-page-header {
  position: relative;
  padding-bottom: 14px;
}

.cv-page-header::after {
  content: "";
  display: block;
  width: 92px;
  height: 4px;
  margin-top: 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cv-green) 0%, var(--cv-gold) 100%);
}

.cv-alert {
  box-shadow: 0 12px 24px rgba(51, 39, 17, 0.08);
}

.cv-table thead th {
  font-size: 0.94rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cv-table tbody tr:nth-child(even) {
  background: rgba(255, 250, 242, 0.5);
}

.cv-empty-text,
.cv-help-text,
.cv-muted {
  line-height: 1.55;
}
/* end shared polish css */

/* start index polish css */
.index-hero {
  padding: 8px 0 4px;
}

.index-section-head {
  align-items: end;
}

.index-recipe-badge {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.76rem;
}

.recipe-carousel-card {
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.recipe-carousel-card:hover {
  transform: translateY(-3px);
  border-color: var(--cv-line-strong);
}

.recipe-carousel-btn {
  background: linear-gradient(180deg, #fff8eb 0%, #f1dfbc 100%);
}
/* end index polish css */

/* start login polish css */
.login-brand-card {
  border: 0;
  box-shadow: 0 26px 58px rgba(27, 54, 43, 0.24);
}

.login-brand-card .cv-page-title {
  color: #fffdf8;
}

.login-form-card {
  min-height: 100%;
}
/* end login polish css */

/* start create_recipe polish css */
.create-page .cv-card {
  border-radius: 24px;
}

.create-category-fieldset {
  background: rgba(255, 255, 255, 0.45);
}

.create-category-option {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(244, 237, 222, 0.7);
}
/* end create_recipe polish css */

/* start recipes polish css */
.recipes-filter-form {
  border-radius: 24px;
  align-items: center;
}

.recipes-list {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.recipe-card {
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.recipe-card:hover {
  transform: translateY(-2px);
  border-color: var(--cv-line-strong);
}
/* end recipes polish css */

/* start recipe polish css */
.recipe-page .cv-page-header {
  margin-bottom: 16px;
}

.recipe-back-link {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 249, 238, 0.88);
  border: 1px solid var(--cv-line);
}

.recipe-section.cv-card,
.recipe-action-block.cv-card {
  overflow: hidden;
}
/* end recipe polish css */

/* start pantry polish css */
.pantry-page .cv-card,
.shopping-page .cv-card {
  border-radius: 24px;
}

.pantry-add-form,
.shopping-bulk-actions {
  align-items: center;
}
/* end pantry polish css */

/* start shopping_list polish css */
.shopping-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
/* end shopping_list polish css */

/* start modern app refresh css */
:root {
  --cv-bg: #eef3f8;
  --cv-bg-warm: #f7fafc;
  --cv-paper: rgba(255, 255, 255, 0.9);
  --cv-ink: #122033;
  --cv-ink-soft: #607086;
  --cv-gold: #5b8cff;
  --cv-gold-deep: #3f6ee8;
  --cv-green: #1f8f72;
  --cv-green-deep: #176d57;
  --cv-line: #d9e3f0;
  --cv-line-strong: #c1d0e4;
  --cv-shadow-soft: 0 18px 40px rgba(16, 24, 40, 0.08);
  --cv-shadow-lift: 0 26px 60px rgba(16, 24, 40, 0.14);
}

body {
  font-family: "Segoe UI", Inter, "Helvetica Neue", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(91, 140, 255, 0.14), transparent 24%),
    radial-gradient(circle at top right, rgba(31, 143, 114, 0.1), transparent 22%),
    linear-gradient(180deg, #f8fbff 0%, #eef3f8 100%);
}

body::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.34) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.34) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.22;
}

h1,
h2,
h3,
h4,
.cv-logo {
  font-family: "Segoe UI", Inter, "Helvetica Neue", sans-serif;
  letter-spacing: -0.03em;
}

.cv-header {
  background: rgba(248, 251, 255, 0.82);
  border-bottom-color: rgba(193, 208, 228, 0.9);
  backdrop-filter: blur(18px);
}

.cv-navlink,
.cv-dropmenu a,
.recipe-back-link,
.index-cta-link,
.cv-cta-link,
.recipe-card-link {
  color: var(--cv-ink);
}

.cv-navlink:hover,
.cv-navlink:focus-visible,
.cv-dropbtn[aria-expanded="true"],
.cv-dropdown:hover > .cv-dropbtn,
.cv-dropdown:focus-within > .cv-dropbtn {
  background: rgba(91, 140, 255, 0.1);
}

.cv-dropmenu {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(193, 208, 228, 0.92);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
}

.cv-page-title,
.index-hero-title {
  letter-spacing: -0.045em;
}

.cv-page-header::after {
  height: 3px;
  width: 84px;
  background: linear-gradient(90deg, #5b8cff 0%, #1f8f72 100%);
}

.cv-card,
.index-empty-card,
.recipe-carousel-card,
.cv-table-wrap,
.cv-alert {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(193, 208, 228, 0.88);
  box-shadow: var(--cv-shadow-soft);
  backdrop-filter: blur(20px);
}

.cv-panel,
.recipe-card {
  border-radius: 20px;
}

button,
.cv-button,
.cv-search-btn {
  background: linear-gradient(180deg, #ffffff 0%, #edf4ff 100%);
  border-color: #c9d9f3;
  color: #173156;
  box-shadow: 0 10px 24px rgba(29, 78, 216, 0.1);
}

button:hover,
.cv-button:hover,
.cv-search-btn:hover,
button:focus-visible,
.cv-button:focus-visible,
.cv-search-btn:focus-visible {
  box-shadow: 0 16px 30px rgba(29, 78, 216, 0.16);
}

.cv-cta {
  background: linear-gradient(180deg, #eaf1ff 0%, #dfeaff 100%);
  border-color: #b9cbef;
}

input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
  background: rgba(248, 251, 255, 0.95);
  border-color: #cdd9ea;
  border-radius: 12px;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03);
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(91, 140, 255, 0.18);
  border-color: #7aa3ff;
}

.cv-table th {
  background: rgba(236, 243, 252, 0.95);
  color: #324154;
}

.cv-table tbody tr:nth-child(even) {
  background: rgba(245, 249, 255, 0.68);
}

.cv-table tbody tr:hover {
  background: rgba(231, 240, 255, 0.84);
}

.recipe-card,
.recipe-carousel-card {
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.recipe-card:hover,
.recipe-carousel-card:hover {
  transform: translateY(-3px);
  border-color: #b5caec;
}

.recipe-carousel-btn {
  background: linear-gradient(180deg, #ffffff 0%, #eaf1ff 100%);
  border-color: #c7d8f3;
}

.login-brand-card {
  background: linear-gradient(145deg, #14213d 0%, #2550b8 55%, #1f8f72 100%);
}

.login-form-card,
.cv-card,
.index-empty-card,
.recipe-carousel-card {
  border-radius: 24px;
}

.create-category-option {
  background: rgba(238, 244, 255, 0.82);
}

.recipe-back-link {
  background: rgba(255, 255, 255, 0.82);
  border-color: #cfdaea;
}

.pantry-fixed-label,
.pantry-display-label,
.cv-muted,
.cv-help-text,
.recipe-card-meta,
.index-recipe-meta {
  color: #697b92;
}
/* end modern app refresh css */

/* start create_recipe servings css */
.cv-form-grid-3 {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 760px) {
  .cv-form-grid-3 {
    grid-template-columns: 1fr;
  }
}
/* end create_recipe servings css */

/* start recipe servings css */
.recipe-save-form {
  margin-bottom: 10px;
}

.recipe-header-card {
  margin-bottom: 18px;
}

.recipe-header-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.recipe-serving-badge {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--cv-border);
  color: var(--cv-text);
  font-weight: 700;
  white-space: nowrap;
}

.recipe-serving-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
  margin-top: 14px;
}

.recipe-serving-field {
  min-width: 180px;
}

.recipe-serving-reset {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.recipe-serving-copy {
  margin: 10px 0 0;
}

.recipe-section-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  flex-wrap: wrap;
}

.recipe-section-header p {
  margin: 0;
}

.recipe-ingredient-list {
  margin: 0;
  padding-left: 20px;
}

.recipe-ingredient-list li + li {
  margin-top: 8px;
}

.recipe-rating-form {
  display: grid;
  gap: 10px;
  margin: 12px 0 4px;
}

.recipe-rating-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.recipe-rating-label {
  font-weight: 700;
  color: var(--cv-ink);
}

.recipe-rating-stars {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.recipe-rating-star {
  min-width: 48px;
  min-height: 48px;
  padding: 0;
  border-radius: 999px;
  font-size: 1.35rem;
  line-height: 1;
  color: #b5bfd3;
  background: #f6f8fc;
  border: 1px solid #d8e0ef;
}

.recipe-rating-star:hover,
.recipe-rating-star:focus-visible,
.recipe-rating-star.is-selected {
  color: #f0b429;
  background: #fff8e8;
  border-color: #f0d28a;
}

@media (max-width: 760px) {
  .recipe-serving-form {
    align-items: stretch;
  }

  .recipe-serving-form > * {
    width: 100%;
  }

  .recipe-serving-badge {
    white-space: normal;
  }
}
/* end recipe servings css */

/* start login redesign css */
.cv-page--auth {
  max-width: none;
  width: 100%;
  padding-left: 24px;
  padding-right: 24px;
}

.login-page {
  width: min(1200px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  gap: 32px;
}

.login-form-card {
  width: 100%;
  min-width: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  padding: 32px;
  border: 1px solid rgba(193, 208, 228, 0.92);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 36px rgba(26, 50, 93, 0.12);
}

.login-form-card h2 {
  margin: 0 0 10px;
  font-size: 1.45rem;
}

.login-form-card .cv-page-subtitle {
  max-width: none;
}

.login-form-card form {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.login-form-card button[type="submit"] {
  width: 100%;
  justify-content: center;
  margin-top: auto;
}

.login-divider {
  margin: 16px 0 18px;
  border-top-color: rgba(193, 208, 228, 0.9);
}

@media (max-width: 980px) {
  .cv-page--auth {
    padding-left: 16px;
    padding-right: 16px;
  }

  .login-page {
    width: min(560px, 100%);
    grid-template-columns: 1fr;
  }
}
/* end login redesign css */









/* start saved_recipes css */
.saved-recipes-page {
  max-width: 1120px;
}

.saved-recipes-empty {
  display: grid;
  gap: 12px;
  justify-items: start;
}

.saved-recipes-list {
  margin-top: 10px;
}

.recipe-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.recipe-save-button {
  border-radius: 999px;
  padding: 10px 16px;
}

.recipe-save-button--saved {
  background: linear-gradient(180deg, #eaf7f1 0%, #d4ecdf 100%);
  border-color: #9fcab1;
  color: #214c39;
}
/* end saved_recipes css */

/* start recipe photo css */
.create-recipe-image-preview {
  width: min(100%, 320px);
  border-radius: 16px;
  border: 1px solid var(--cv-border);
  box-shadow: 0 10px 24px rgba(26, 50, 93, 0.12);
}
/* end recipe photo css */

/* start admin css */
.admin-page {
  max-width: 1180px;
}

.admin-action-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-action-group .cv-inline-form,
.admin-action-group form {
  margin: 0;
}
/* end admin css */

/* start mobile optimization css */
@media (max-width: 900px) {
  .cv-page,
  .index-page {
    padding: 18px 12px 40px;
  }

  .cv-panel,
  .recipe-card,
  .index-empty-card {
    padding: 16px;
  }

  .cv-page-title,
  .index-hero-title {
    max-width: none;
  }

  .cv-actions,
  .recipe-action-row,
  .recipe-card-actions,
  .shopping-toolbar,
  .shopping-bulk-actions,
  .admin-action-group,
  .recipe-header-top,
  .index-section-head {
    align-items: stretch;
  }

  .cv-actions > *,
  .recipe-action-row > *,
  .shopping-bulk-actions > * {
    width: 100%;
  }

  .cv-inline-form,
  .cv-inline-form form,
  .recipe-action-form,
  .recipe-action-form button,
  .recipe-card-actions .cv-inline-form,
  .recipe-card-actions .cv-inline-form button,
  .recipe-card-actions .recipe-card-link,
  .recipe-card-actions .cv-button {
    width: 100%;
  }

  .recipe-card-actions {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
  }

  .recipe-card-image-link {
    margin: -16px -16px 12px;
  }

  .recipe-card-image {
    height: 190px;
    border-radius: 18px 18px 0 0;
  }

  .index-section {
    margin-bottom: 22px;
  }

  .recipe-carousel {
    padding-bottom: 10px;
  }

  .pantry-add-form > *,
  .shopping-bulk-actions > *,
  .pantry-inline-form > *,
  .recipe-serving-form > *,
  .recipe-adjust-row > *,
  .create-ingredient-row > *,
  .create-step-row > *,
  .cv-form-row > * {
    width: 100%;
  }

  .pantry-ingredient-wrap,
  .create-ingredient-name-wrap {
    flex-basis: 100%;
  }

  .pantry-inline-form,
  .create-ingredient-row,
  .create-step-row,
  .cv-form-row {
    gap: 8px;
  }

  .pantry-qty-input,
  .shopping-qty-input {
    width: 100% !important;
  }

  .recipe-media-grid {
    flex-direction: column;
  }

  .recipe-media-image {
    max-width: 100%;
    width: 100%;
  }

  .recipe-video {
    min-height: 220px;
  }

  .cv-table {
    min-width: 620px;
  }

  .cv-table th,
  .cv-table td {
    padding: 10px;
  }

  .recipes-filter-row-dropdowns > * {
    flex: 1 1 calc(50% - 10px);
  }

  .recipes-filter-checklist {
    max-height: 220px;
  }

  .login-page {
    gap: 20px;
  }

  .login-form-card {
    padding: 22px;
  }
}

@media (max-width: 640px) {
  .cv-logo {
    font-size: 18px;
  }

  .cv-navlink,
  .cv-dropbtn,
  .cv-mobile-search-toggle,
  .cv-account-toggle,
  .cv-search-btn,
  button,
  .cv-button {
    min-height: 46px;
  }

  .cv-burger-menu,
  .cv-dropmenu {
    min-width: 0;
    width: max-content;
    max-width: min(280px, calc(100vw - 24px));
  }

  .cv-mobile-search-toggle {
    margin-left: 0;
  }

  .cv-search.is-open {
    flex-direction: column;
  }

  .cv-search.is-open > * {
    width: 100%;
  }

  .cv-page,
  .index-page {
    padding: 16px 10px 34px;
  }

  .cv-panel,
  .recipe-card,
  .index-empty-card {
    padding: 14px;
    border-radius: 18px;
  }

  .recipe-card-image-link {
    margin: -14px -14px 12px;
  }

  .recipe-card-image {
    height: 170px;
    border-radius: 16px 16px 0 0;
  }

  .recipes-filter-row-dropdowns > * {
    flex: 1 1 100%;
  }

  .recipes-filter-row-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .recipes-filter-row-actions .recipes-quick-label {
    margin-right: 0;
  }

  .recipes-filter-row-actions > * {
    width: 100%;
  }

  .recipes-filter-dropdown summary,
  .recipes-filter-checklist {
    width: 100%;
  }

  .recipe-rating-stars {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .recipe-rating-star {
    min-width: 0;
    width: 100%;
  }

  .recipe-serving-badge {
    width: 100%;
    text-align: center;
  }

  .recipe-ingredient-list {
    padding-left: 18px;
  }

  .index-hero,
  .cv-page-header {
    margin-bottom: 18px;
  }

  .shopping-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .cv-table {
    min-width: 540px;
  }
}
/* end mobile optimization css */
