/* Trip preparation: compact recipe prices, shared shopping, and packing. */
.meal-overlay-title {
  display: flex;
  align-items: center;
  gap: 6px;
}
.meal-overlay-title > button {
  min-width: 0;
  flex: 1;
}
.recipe-unit-price {
  margin-left: auto;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.recipe-unit-price svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}
#shoppingSection .card {
  overflow: clip;
}
#shoppingSection .card > .header,
#shoppingSection #items > .row {
  grid-template-columns:
    minmax(0, 1fr) 64px 156px minmax(140px, var(--shopping-people-width, 280px))
    116px;
  gap: 20px;
}
#shoppingSection .avatars {
  min-width: 0;
  gap: 9px;
}
#shoppingSection .person {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
}
#shoppingSection .person img {
  width: 30px;
  height: 30px;
}
#shoppingSection .item-name {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow-wrap: anywhere;
}
#shoppingSection .item-product-copy {
  min-width: 0;
}
.product-basket-link {
  appearance: none;
  display: inline;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: inherit;
  font: inherit;
  line-height: inherit;
  text-align: inherit;
  cursor: pointer;
}
.product-basket-link:hover {
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.product-basket-link:focus-visible {
  outline: 2px solid #b9b0ed;
  outline-offset: 3px;
}
.ingredient-product-field {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.ingredient-product-field > input {
  flex: 1;
  min-width: 0;
}
.ingredient-open-product {
  display: grid;
  place-items: center;
  flex: 0 0 30px;
  width: 30px;
  height: 36px;
  min-height: 36px;
  padding: 5px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #bdb8ce;
}
.ingredient-open-product:hover {
  color: #fff;
  background: #28272e;
}
.ingredient-open-product[hidden] {
  display: none;
}
.ingredient-open-product svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#shoppingSection .item-name > .owner-item-edit {
  margin: 0;
  flex-shrink: 0;
}
#shoppingSection .item-name:has(.bundle-product-checkbox) {
  grid-template-columns: auto minmax(0, 1fr) auto;
}
.item-base-details {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  white-space: nowrap;
  font-size: 12px;
  color: var(--muted);
}
#shoppingSection .item-base-details .price {
  display: inline;
  margin: 0;
}
#shoppingSection .shopping-shared .count {
  color: #e3d6ff;
}
#shoppingSection .sum small {
  display: block;
  color: var(--muted);
  font-weight: 400;
  font-size: 10px;
  white-space: nowrap;
  margin-top: 3px;
}
#productForm {
  position: sticky;
  bottom: 0;
  z-index: 25;
  background: var(--surface, #19191d);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 20px #0002;
}
.shopping-new-row {
  animation: new-shopping-row 2.8s ease-out;
  scroll-margin-top: calc(var(--header-offset, 80px) + 20px);
}
@keyframes new-shopping-row {
  from {
    background: #eee8ff60;
  }
  to {
    background: transparent;
  }
}
.packing-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.packing-panel {
  background: var(--surface);
  border-radius: 12px;
  padding: 22px;
  min-width: 0;
}
.packing-panel h3 {
  font-size: 16px;
  margin: 0 0 8px;
}
.packing-panel > p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  margin-bottom: 18px;
}
.packing-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.packing-check {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  font-size: 13px;
}
.packing-check input {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: #cfc1ec;
}
.packing-check span {
  overflow-wrap: anywhere;
}
.packing-row.is-packed .packing-check span {
  text-decoration: line-through;
  color: var(--muted);
}
.packing-carriers {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  max-width: 100px;
}
.packing-carriers img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
}
.packing-carriers img.is-packed {
  outline: 1px solid #b0d2bc;
}
.packing-add {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}
.packing-add input {
  min-width: 0;
  flex: 1;
}
.packing-delete {
  color: #dca0ab;
}
.packing-empty {
  color: var(--muted);
  font-size: 12px;
}
@media (max-width: 900px) {
  #shoppingSection .card > .header,
  #shoppingSection #items > .row {
    grid-template-columns: minmax(0, 1fr) 56px 144px minmax(100px, 150px) 90px;
    gap: 8px;
  }
}
@media (max-width: 650px) {
  .packing-columns {
    grid-template-columns: 1fr;
  }
  #shoppingSection .item-name {
    font-size: 13px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .shopping-new-row {
    animation: none;
  }
}

@media (max-width: 650px) {
  #shoppingSection #items > .row {
    grid-template-columns: minmax(0, 1fr) 40px 144px;
  }
  #shoppingSection .row .item-name {
    grid-column: 1 / -1;
    grid-row: 1;
  }
  #shoppingSection .row .product-audience-icon {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
  }
  #shoppingSection .row .counter {
    grid-column: 3;
    grid-row: 2;
  }
  #shoppingSection .row .avatars {
    grid-column: 1 / 3;
    grid-row: 3;
  }
  #shoppingSection .row .sum {
    grid-column: 3;
    grid-row: 3;
  }
  #productForm:not(:focus-within) {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 10px 12px;
    gap: 8px;
  }
  #productForm:not(:focus-within) .field:not(.product-name) {
    display: none;
  }
  #productForm:not(:focus-within) .product-name {
    grid-column: 1;
  }
  #productForm:not(:focus-within) .add {
    grid-column: 2;
    align-self: end;
    width: auto;
    min-width: 64px;
  }
  #productForm {
    bottom: 0;
  }
}

.packing-add {
  align-items: stretch;
}
.packing-add input,
.packing-add .btn {
  height: 44px;
  min-height: 44px;
}
.packing-add .btn {
  flex: 0 0 auto;
  min-width: 92px;
  padding: 0 18px;
  white-space: nowrap;
}
.packing-delete {
  width: 36px;
  height: 36px;
  min-height: 36px;
  flex: 0 0 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
}
.packing-claim {
  flex-shrink: 0;
  min-width: 78px;
  min-height: 36px;
  padding: 0 12px;
}
#productForm {
  margin-bottom: 0;
  border-radius: 0;
}
#packingDeleteDialog {
  position: fixed;

  width: min(420px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  height: fit-content;
  padding: 24px;
  background: var(--surface, #19191d);
  color: var(--text, #eee);
  border: 1px solid var(--line, #45414e);
  border-radius: 12px;
}
#packingDeleteDialog::backdrop {
  background: #000a;
  backdrop-filter: blur(4px);
}
#packingDeleteDialog h2 {
  margin: 0 0 10px;
  font-size: 18px;
}
#packingDeleteDialog p {
  color: var(--muted);
  font-size: 13px;
}
#packingDeleteDialog form {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}
#packingDeleteDialog .btn {
  min-width: 92px;
  height: 40px;
}
#packingDeleteDialog .packing-confirm-delete {
  color: #f0a0ad;
}
@media (max-width: 650px) {
  #productForm {
    z-index: 40;
  }
}

#packingDeleteDialog {
  inset: auto;
  top: 50dvh;
  left: 50vw;
  margin: 0;
  transform: translate(-50%, -50%);
}

#shoppingSection .counter {
  min-width: 0;
}
#shoppingSection .counter .btn {
  width: 38px;
  min-width: 38px;
  height: 38px;
  flex-shrink: 0;
}
#shoppingSection .counter .count {
  text-align: center;
  font-variant-numeric: tabular-nums;
}
#shoppingSection .sum {
  padding-inline: 6px;
  font-variant-numeric: tabular-nums;
}
#shoppingSection .item-base-details {
  gap: 9px;
}
@media (min-width: 901px) {
}

/* Both packing lists start on the same shared title/description tracks. */
@media (min-width: 651px) {
  .packing-columns {
    grid-template-rows: auto auto auto auto;
  }
  .packing-panel {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 4;
    align-content: start;
  }
  .packing-panel > h3 {
    margin-bottom: 8px;
  }
  .packing-panel > p {
    margin-top: 0;
  }
  .packing-panel > .packing-rows {
    align-self: start;
  }
  .packing-panel > .packing-add {
    align-self: start;
  }
}

/* Compact quantity control, with clearer separation between table columns. */
#shoppingSection .counter {
  justify-content: center;
  gap: 4px;
}
#shoppingSection .counter .count {
  min-width: 28px;
}
@media (min-width: 901px) {
  #shoppingSection .card > .header,
  #shoppingSection #items > .row {
    column-gap: 28px;
  }
}
@media (min-width: 651px) and (max-width: 900px) {
  #shoppingSection .card > .header,
  #shoppingSection #items > .row {
    column-gap: 16px;
  }
}

@media (min-width: 901px) {
  #shoppingSection .card > .header,
  #shoppingSection #items > .row {
    grid-template-columns:
      minmax(0, 0.8fr) 64px 124px minmax(140px, 0.65fr)
      116px;
  }
}

#shoppingSection > .section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
#bundleActions {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
#bundleActions #startBundle {
  min-height: 44px;
  min-width: 150px;
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  white-space: nowrap;
}
.bundle-selection-count {
  font-size: 12px;
  color: var(--muted);
  margin-right: 6px;
}
#bundleSelectionOverlay {
  position: fixed;
  inset: 0;
  background: #000b;
  z-index: 180;
}
.bundle-selecting #shoppingSection {
  position: relative;
}
#shoppingSection .bundle-table-active {
  position: relative;
  isolation: isolate;
  overflow: visible;
  border: 2px solid #ece9f3;
}
.bundle-table-active > .sfora-wms-host.is-edge {
  z-index: 40;
}
#bundleSelectionHint {
  color: #e5dcec;
  font-size: 13px;
  line-height: 1.6;
  margin: 0 0 16px;
}
.bundle-product-checkbox {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}
.bundle-product-checkbox input {
  width: 18px;
  height: 18px;
  accent-color: #cfc0ea;
  cursor: pointer;
}
#shoppingSection .bundle-product-selected {
  background: #d6c7f015;
}
.bundle-cancel {
  min-width: 38px;
  font-size: 21px;
  padding: 3px 10px;
}
@media (max-width: 650px) {
  #bundleActions {
    flex-wrap: wrap;
  }
  #bundleActions .btn {
    font-size: 12px;
  }
}

.bundle-transfer-options {
  border: 1px solid var(--line);
  padding: 16px;
  border-radius: 9px;
  margin-block: 20px;
}
.bundle-transfer-options legend {
  padding-inline: 7px;
  font-weight: 600;
}
.bundle-transfer-options .bundle-portions-label {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}
.bundle-portions-label input {
  width: 100px;
}
.bundle-keep-label,
.bundle-join-label {
  display: flex;
  flex-direction: row;
  align-items: start;
  gap: 10px;
  line-height: 1.6;
}
.bundle-keep-label input,
.bundle-join-label input {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  margin-top: 4px;
  accent-color: #cfbfe7;
}
.bundle-transfer-options p,
.bundle-notice-help {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
#bundleNotifications {
  margin-block: 20px;
}
.bundle-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 20px;
  background: var(--surface);
  border-left: 2px solid #d2c3e9;
  border-radius: 8px;
  margin-block: 8px;
}
.bundle-notice p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
}
.bundle-notice .btn {
  flex-shrink: 0;
  padding-inline: 16px;
  white-space: nowrap;
}
.bundle-notice-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(680px, calc(100vw - 32px));
  max-height: 90dvh;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface, #19191d);
  color: var(--text, #eee);
}
.bundle-notice-dialog::backdrop {
  background: #000a;
  backdrop-filter: blur(4px);
}
.bundle-notice-dialog form {
  display: flex;
  flex-direction: column;
  max-height: 90dvh;
}
.bundle-notice-dialog header,
.bundle-notice-dialog footer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
  flex: 0 0 auto;
}
.bundle-notice-dialog header {
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.bundle-notice-dialog h2 {
  margin: 0;
  font-size: 19px;
}
.bundle-notice-dialog footer {
  justify-content: flex-end;
  border-top: 1px solid var(--line);
}
.bundle-notice-content {
  overflow: auto;
  min-height: 0;
  padding: 18px 22px;
}
.bundle-notice-content > p {
  font-size: 13px;
  line-height: 1.6;
}
.bundle-join-label {
  margin-block: 18px;
}
.bundle-restore-list label {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.bundle-restore-list small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}
.bundle-restore-list input {
  width: 100px;
}
.bundle-notice-error {
  color: #e99eaa;
}
@media (max-width: 650px) {
  .bundle-notice {
    flex-direction: column;
    align-items: start;
  }
}

.bundle-transfer-preview {
  margin-top: 14px;
  border-top: 1px solid var(--line);
}
.bundle-transfer-preview p {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  padding: 9px 0;
}
.bundle-transfer-preview span {
  text-align: right;
}
.bundle-transfer-preview small {
  color: var(--muted);
}

#mealForm .bundle-keep-label {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
}
#mealForm .bundle-keep-label input {
  width: 17px;
  min-width: 17px;
  height: 17px;
  flex: 0 0 17px;
  margin: 4px 0 0;
}
.bundle-notice-dialog footer .btn {
  height: 42px;
  min-width: 110px;
  padding-inline: 16px;
}
.bundle-notice-dialog .bundle-notice-close {
  width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  font-size: 21px;
}

.bundle-notice-dialog.modal-confirming header {
  background: #472630;
  flex-wrap: wrap;
}
.bundle-notice-dialog .modal-close-question {
  color: #f3c5cd;
  font-size: 12px;
}
.bundle-notice-dialog .modal-header-confirm {
  display: flex;
  gap: 8px;
}

/* Cover the unmasked glow inside the table, keeping only the outside halo. */
#shoppingSection .bundle-table-active {
  background: transparent;
}
#shoppingSection .bundle-table-active::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--surface);
  border-radius: inherit;
  pointer-events: none;
}
#shoppingSection .bundle-table-active > .sfora-wms-host.is-outer {
  z-index: -2;
}

.bundle-selecting #privateContent,
.bundle-selecting #shoppingSection {
  overflow: visible;
}
#shoppingSection .bundle-table-active > .sfora-wms-host.is-outer {
  overflow: visible;
}

.bundle-selecting #shoppingSection > .meals-intro {
  display: none;
}
#bundleActions [data-bundle-create] {
  background: #f2eff8;
  border-color: #f2eff8;
  color: #211e27;
  min-height: 40px;
  padding: 0 18px;
  font-weight: 650;
}
#bundleActions [data-bundle-create]:hover:not(:disabled) {
  background: #fff;
  border-color: #fff;
}
#bundleActions [data-bundle-create]:disabled {
  background: #c9c5d0;
  border-color: #c9c5d0;
  color: #605b69;
  opacity: 1;
  cursor: not-allowed;
}

#bundleSelectionHint strong {
  color: #fff;
  font-weight: 700;
}
#bundleActions [data-bundle-create],
#bundleActions .bundle-cancel {
  height: 40px;
  min-height: 40px;
  box-sizing: border-box;
}
#bundleActions .bundle-cancel {
  width: 40px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#bundleTransferOptions {
  margin: 18px 0;
}

/* One spacing rhythm for the trip's main sections. */
#privateContent > .page-section {
  margin-bottom: 48px;
}
#privateContent .section-heading {
  margin-bottom: 14px;
}
#privateContent .meals-intro,
#privateContent #bundleSelectionHint {
  margin: 0 0 30px;
  line-height: 1.65;
}
#privateContent .meal-days {
  margin: 0 0 22px;
}
#mealCards,
#sidequestCards {
  padding: 60px;
  margin: -60px -60px -60px;
  scrollbar-width: none;
}
#mealCards::-webkit-scrollbar,
#sidequestCards::-webkit-scrollbar {
  display: none;
}
.recipe-scrollbar {
  height: 14px;
  margin: 14px 0 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: #5c5868 #19191e;
}
.recipe-scrollbar > div {
  height: 1px;
}
.recipe-scrollbar::-webkit-scrollbar {
  height: 6px;
}
.recipe-scrollbar::-webkit-scrollbar-thumb {
  background: #5c5868;
  border-radius: 6px;
}
.recipe-scrollbar::-webkit-scrollbar-track {
  background: #19191e;
  border-radius: 6px;
}
#mealStatus:empty,
#sidequestStatus:empty {
  display: none;
}
#shoppingSection .person {
  border-radius: 50%;
  background: transparent;
}
#shoppingSection .person img {
  border-radius: 50%;
  clip-path: circle(50%);
  object-fit: cover;
  border: 1px solid #635f70;
  background: #232329;
}
#shoppingSection .person:not(.inactive) img {
  border: 2px solid #62d69a;
  box-shadow: 0 0 0 2px rgba(98, 214, 154, 0.12);
}
#shoppingSection .shopping-everyone {
  color: var(--text, #f0f1f3);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  opacity: 1;
}
.app-navigation nav {
  align-items: center;
  gap: 10px;
}
.app-navigation .nav-shopping-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 5px 4px;
  margin-inline: -4px;
  background: #111216;
  border-radius: 13px;
}
@media (max-width: 760px) {
  #privateContent > .page-section {
    margin-bottom: 36px;
  }
  #privateContent .meals-intro,
  #privateContent #bundleSelectionHint {
    margin-bottom: 20px;
  }
  #mealCards,
  #sidequestCards {
    padding-inline: 24px;
    margin-inline: -24px;
    scroll-padding-inline: 24px;
  }
  .app-navigation nav {
    flex-direction: row;
    gap: 7px;
  }
  .app-navigation .nav-shopping-group {
    flex-direction: row;
    gap: 3px;
    padding: 4px 5px;
    margin-inline: 0;
  }
  .app-navigation .section-link {
    width: 42px;
    height: 42px;
    min-height: 42px;
  }
}

/* Section margins own vertical rhythm; avoid adding the shell grid gap again. */
#privateContent {
  row-gap: 0;
}
#privateContent > #participants:not([hidden]) {
  margin-bottom: 28px;
}

/* Lift only the selection controls and table; the backdrop covers the gaps/tools. */
.bundle-selecting #privateContent {
  transform: none;
  position: relative;
  left: calc(var(--nav-width) / 2);
}
.bundle-selecting #shoppingSection {
  z-index: auto;
}
.bundle-selecting #shoppingSection > .section-heading,
.bundle-selecting #shoppingSection > #bundleSelectionHint,
.bundle-selecting #shoppingSection > .meals-intro,
.bundle-selecting #shoppingSection > .card {
  position: relative;
  z-index: 181;
}

/* Main modules are separated more strongly than the three food/shopping sections. */
#mealsSection,
#packingLists {
  border-top: 1px solid #e8e6ef99;
  padding-top: 36px;
}

.account-trigger {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.account-chevron {
  color: #a9a5b3;
  margin-left: 3px;
}
.notification-bell {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  min-width: 40px;
  height: 40px;
  padding: 8px;
  border: 1px solid #3b3943;
  background: #1b1b20;
  border-radius: 10px;
  color: #dedbe6;
}
.notification-bell svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linejoin: round;
}
.notification-bell[hidden],
.account-menu #logoutBtn[hidden] {
  display: none;
}
.notification-count {
  position: absolute;
  right: -4px;
  top: -5px;
  padding: 1px 4px;
  min-width: 17px;
  border-radius: 10px;
  background: #d9d2ef;
  color: #17151d;
  font-size: 10px;
  font-weight: 700;
}
.account-menu,
.notifications-panel {
  position: fixed;
  inset: auto 18px auto auto;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 12px 32px rgb(0 0 0 / 28%);
  padding: 6px;
}
.account-menu {
  width: 268px;
  max-width: calc(100vw - 16px);
}
.account-menu .btn {
  display: flex;
  align-items: center;
  min-height: 44px;
  height: auto;
  width: 100%;
  padding: 11px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font-size: 13px;
  font-weight: 450;
  line-height: 1.4;
  text-align: left;
  justify-content: flex-start;
  transition:
    background 140ms ease,
    color 140ms ease;
}
.account-menu .btn:hover {
  background: var(--raised);
}
.account-menu .btn:focus-visible,
.notifications-close:focus-visible,
.notification-item:focus-visible {
  outline: 2px solid var(--muted);
  outline-offset: -2px;
}
.account-menu #logoutBtn {
  margin-top: 5px;
  border-top: 1px solid var(--line);
  border-radius: 0 0 8px 8px;
  color: var(--muted);
}
.notifications-panel {
  width: min(420px, calc(100vw - 32px));
  padding: 0;
}
.notifications-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.notifications-panel h2 {
  font-size: 16px;
  margin: 0;
}
.notifications-close {
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 24px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  line-height: 1;
  padding: 0;
}
.notifications-close:hover {
  background: var(--raised);
}
.notification-list {
  overflow-y: auto;
  max-height: min(65dvh, 500px);
  padding: 6px;
}
.notification-item {
  display: grid;
  gap: 5px;
  width: 100%;
  padding: 13px 12px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}
.notification-item strong {
  font-size: 13px;
  line-height: 1.5;
  font-weight: 500;
}
.notification-item span {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}
.notification-item.is-unread {
  border-left: 2px solid var(--muted);
  background: rgb(255 255 255 / 2%);
}
.notification-item:hover {
  background: var(--raised);
}
.notifications-empty {
  padding: 16px;
  color: var(--muted);
}
.trip-avatar {
  box-sizing: border-box !important;
  border-radius: 50% !important;
  object-fit: cover !important;
}
img.trip-avatar.is-traveling {
  border: 3px solid #62d69a !important;
  box-shadow: 0 0 0 1px #62d69a33 !important;
  opacity: 1 !important;
  filter: none !important;
}
img.trip-avatar.is-not-traveling {
  border: 3px solid #65656b !important;
  box-shadow: none !important;
  opacity: 0.42 !important;
  filter: grayscale(1) !important;
}
.person:has(.trip-avatar),
.meal-person:has(.trip-avatar),
.participant-option:has(.trip-avatar) {
  opacity: 1 !important;
}
.packing-add {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 62px auto;
  align-items: end;
}
.packing-add-quantity {
  display: grid;
  gap: 5px;
  min-width: 0;
  font-size: 11px;
  color: #bcb6c8;
}
.packing-add-quantity input {
  width: 100%;
}
.packing-add input[name="quantity"] {
  text-align: center;
  min-width: 0;
}
.packing-row.packing-public {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  padding-block: 12px;
}
.packing-public .packing-check {
  grid-column: 1 / -1;
}
.packing-check small {
  color: #aaa5b5;
  font-size: 12px;
}
.packing-check .packing-needed {
  display: block;
  color: #d4bda5;
  margin-top: 4px;
}
.packing-person {
  position: relative;
  display: inline-flex;
  width: 32px;
  height: 36px;
  margin: 3px;
}
.packing-person img {
  width: 32px;
  height: 32px;
}
.packing-person .badge {
  position: absolute;
  bottom: 0;
  right: -4px;
  padding: 1px 4px;
  border-radius: 8px;
  background: #35313d;
  color: #f1eef7;
  font-size: 10px;
}
.packing-claim-controls {
  display: flex;
  gap: 6px;
  align-items: center;
}
.packing-quantity {
  width: 52px;
  min-width: 0;
  height: 36px;
  text-align: center;
}
.packing-claim-controls .packing-claim {
  min-width: 80px;
  height: 36px;
  padding: 6px 10px;
}
.packing-unclaim {
  width: 26px;
  height: 36px;
  padding: 0;
  background: transparent;
  border: 0;
  color: #b4a9c4;
}
.bundle-restore-field {
  display: flex;
  align-items: center;
  gap: 6px;
}
.bundle-restore-field input {
  min-width: 0;
  width: 75px;
}
.bundle-restore-field small {
  color: #aaa5b5;
}

/* Packing uses the same compact icon actions and quantity controls as shopping. */
.packing-panel {
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  grid-row: auto;
}
.packing-panel > h3,
.packing-panel > p,
.packing-panel > .packing-rows,
.packing-panel > .packing-add {
  flex: 0 0 auto;
}
.packing-panel > .packing-rows,
.packing-panel > .packing-add {
  align-self: stretch;
}
@media (min-width: 651px) {
  .packing-columns {
    grid-template-rows: none;
  }
}
.packing-row.packing-public,
.packing-row.packing-private {
  display: grid;
  align-content: start;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 12px;
  row-gap: 10px;
  padding: 14px 0;
}
.packing-row > .packing-check {
  grid-column: 1 / -1;
  grid-row: 1;
  align-items: flex-start;
  padding-right: 40px;
  line-height: 1.55;
  min-height: 34px;
  align-self: start;
}
.packing-check > input {
  margin-top: 3px;
}
.packing-row > .packing-edit {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  justify-self: end;
}
.packing-row > .packing-carriers {
  grid-column: 1;
  grid-row: 2;
  display: flex;
  flex-wrap: wrap;
  min-width: 0;
  gap: 4px;
}
.packing-row > .packing-claim-controls {
  grid-column: 2;
  grid-row: 2;
  justify-self: end;
  gap: 6px;
}
.packing-stepper {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.packing-stepper .packing-quantity {
  width: 42px;
  height: 34px;
  padding: 4px 0;
  border: 1px solid transparent;
  background: transparent;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.packing-stepper .packing-quantity:focus-visible,
.packing-stepper .packing-quantity-changed {
  border-color: #a79cbc;
  background: #25232b;
}
.packing-row .packing-icon-button {
  display: inline-grid;
  place-items: center;
  width: 32px;
  min-width: 32px;
  height: 34px;
  min-height: 34px;
  padding: 6px;
  border: 1px solid #3c3943;
  border-radius: 8px;
  background: #25242a;
  color: #cdc8d8;
}
.packing-row .packing-icon-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.packing-row .packing-confirm {
  color: #72dca7;
}
.packing-row .packing-unclaim,
.packing-row .packing-cancel-edit,
.packing-row .packing-delete {
  color: #e08b9b;
}
.packing-row .packing-edit {
  background: transparent;
  border-color: transparent;
  color: #b5aec3;
}
.packing-row .packing-icon-button:hover:not(:disabled) {
  background: #34313c;
  border-color: #5d566c;
}
.packing-row .packing-icon-button:disabled {
  opacity: 0.35;
  cursor: default;
}
.packing-action-placeholder {
  width: 32px;
  height: 34px;
  flex-shrink: 0;
}
.packing-editor-form {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 60px auto;
  gap: 8px;
  align-items: end;
  width: 100%;
}
.packing-editor-form > label {
  display: grid;
  gap: 5px;
  color: #b8b1c5;
  font-size: 11px;
  min-width: 0;
}
.packing-editor-form input {
  width: 100%;
  min-width: 0;
  height: 34px;
  font-size: 13px;
  padding: 5px 7px;
}
.packing-editor-form input[name="quantity"] {
  text-align: center;
}
.packing-edit-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}
@container (max-width: 390px) {
  .packing-editor-form {
    grid-template-columns: minmax(0, 1fr) 64px;
  }
  .packing-edit-actions {
    grid-column: 1 / -1;
    justify-self: end;
  }
}
.shopping-everyone {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}
.shopping-everyone svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  flex-shrink: 0;
}
#shoppingSection .avatars .person {
  height: 43px;
  margin-right: 8px;
}
#shoppingSection .avatars .badge {
  top: auto;
  bottom: 0;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  width: max-content;
  max-width: none;
  font-size: 9px;
  line-height: 13px;
  padding: 0 4px;
  white-space: nowrap;
  border-radius: 5px;
}
#shoppingSection .card > .header,
#shoppingSection #items > .row {
  grid-template-columns: minmax(0, 0.95fr) 174px minmax(140px, 0.7fr) 116px;
}
#shoppingSection .counter .count {
  white-space: nowrap;
  min-width: 58px;
  font-size: 12px;
}
#shoppingSection .sum {
  white-space: nowrap;
}
.shopping-selection-field > div {
  display: flex;
  gap: 4px;
}
.shopping-selection-field input {
  width: 64px;
  min-width: 0;
}
.shopping-selection-field select {
  min-width: 68px;
  width: 68px;
}
#productForm {
  grid-template-columns: minmax(180px, 1fr) 110px 80px 100px 180px 138px auto;
  gap: 10px;
}
.recipe-unit-price > [role="tooltip"] {
  display: none;
}
#sfora-tooltip strong {
  display: block;
  margin-top: 7px;
  color: #eeebf7;
  font-weight: 650;
}
#sfora-tooltip .product-photo-preview {
  display: block;
  width: 180px;
  max-height: 200px;
  object-fit: contain;
  border-radius: 6px;
}
@media (max-width: 1100px) {
  #productForm {
    grid-template-columns: minmax(150px, 1fr) 105px 80px 90px;
  }
}
@media (max-width: 900px) {
  #shoppingSection .card > .header,
  #shoppingSection #items > .row {
    grid-template-columns: minmax(0, 1fr) 152px minmax(100px, 0.7fr) 88px;
  }
}
@media (max-width: 760px) {
  #shoppingSection #items > .row {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  #shoppingSection .row .item-name {
    grid-column: 1 / -1;
    grid-row: 1;
  }
  #shoppingSection .row .counter {
    grid-column: 2;
    grid-row: 2;
  }
  #shoppingSection .row .avatars {
    grid-column: 1;
    grid-row: 2;
  }
  #shoppingSection .row .sum {
    grid-column: 2;
    grid-row: 3;
  }
  #productForm {
    grid-template-columns: 1fr 1fr;
  }
  .packing-panel {
    padding: 16px;
  }
}

/* Compact packing rows with three reserved avatar slots. */
.packing-row.packing-public,
.packing-row.packing-private {
  grid-template-columns: minmax(110px, 1fr) minmax(0, auto) auto auto;
  column-gap: 10px;
  row-gap: 0;
  padding: 8px 0;
}
.packing-row > .packing-check {
  grid-column: 1;
  grid-row: 1;
  padding: 0;
  min-height: 34px;
  align-self: center;
  align-items: center;
  gap: 7px;
  line-height: 1.3;
}
.packing-check > input {
  margin-top: 0;
  flex-shrink: 0;
}
.packing-check > span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.packing-progress {
  white-space: nowrap;
  color: #aaa5b5;
  font-size: 12px;
}
.packing-progress.is-complete {
  color: #72dca7;
}
.packing-row > .packing-carriers {
  grid-column: 2;
  grid-row: 1;
  flex-wrap: nowrap;
  overflow-x: auto;
  max-width: 150px;
  gap: 4px;
  align-items: center;
  padding: 0 3px 2px;
}
.packing-row > .packing-claim-controls {
  grid-column: 3;
  grid-row: 1;
  gap: 4px;
}
.packing-row > .packing-edit {
  grid-column: 4;
  grid-row: 1;
  align-self: center;
}
.packing-person {
  position: relative;
  flex: 0 0 32px;
  margin: 0;
  height: 36px;
}
.packing-avatar-remove {
  position: absolute;
  inset: 0 0 4px;
  display: grid;
  place-items: center;
  border: 2px solid #e08b9b;
  border-radius: 50%;
  padding: 5px;
  background: #33242c;
  color: #f3a2ad;
  cursor: pointer;
  opacity: 0;
}
.packing-avatar-remove svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}
.packing-person:hover .packing-avatar-remove,
.packing-avatar-remove:focus-visible {
  opacity: 1;
}
.packing-person:has(.packing-avatar-remove):hover .badge {
  visibility: hidden;
}
@media (min-width: 1050px) {
  .packing-columns {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  }
}
@container (max-width: 460px) {
  .packing-row.packing-public {
    grid-template-columns: minmax(90px, 1fr) minmax(0, 64px) auto auto;
    column-gap: 4px;
  }
  .packing-row .packing-icon-button {
    width: 26px;
    min-width: 26px;
    padding: 4px;
  }
  .packing-stepper {
    gap: 0;
  }
  .packing-stepper .packing-quantity {
    width: 28px;
  }
  .packing-check {
    flex-wrap: wrap;
  }
}

.packing-row.packing-public {
  grid-template-columns: minmax(90px, 1fr) 104px auto;
}
.packing-row.packing-private {
  grid-template-columns: minmax(0, 1fr);
}
.packing-identity {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}
.packing-identity .packing-check {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  line-height: 1.3;
}
.packing-identity .packing-edit {
  flex-shrink: 0;
  width: 24px;
  min-width: 24px;
  height: 30px;
  min-height: 30px;
  padding: 3px;
  border: 0;
  background: transparent;
}
.packing-identity .packing-edit:hover:not(:disabled) {
  background: transparent;
  color: #f4efff;
}
.packing-identity .packing-edit svg {
  width: 17px;
  height: 17px;
}
.packing-row > .packing-carriers {
  width: 104px;
  max-width: none;
  overflow: visible;
  padding: 0;
  gap: 4px;
}
.packing-more {
  display: grid;
  place-items: center;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border: 2px solid #625b70;
  border-radius: 50%;
  background: #29262f;
  color: #e3ddea;
  font-size: 12px;
}
@container (max-width: 460px) {
  .packing-row.packing-public {
    grid-template-columns: minmax(70px, 1fr) 104px auto;
  }
  .packing-identity .packing-check {
    gap: 4px;
  }
}
@container (max-width: 460px) {
  .packing-row.packing-public {
    grid-template-columns: minmax(0, 1fr) 104px auto;
  }
  .packing-identity {
    flex-wrap: wrap;
  }
  .packing-identity .packing-check {
    flex-wrap: wrap;
  }
  .packing-identity .packing-check > span {
    overflow-wrap: anywhere;
  }
  .packing-claim-controls .packing-icon-button {
    width: 24px;
    min-width: 24px;
  }
  .packing-stepper .packing-quantity {
    width: 24px;
  }
}
/* Keep labels natural-width and editing actions aligned to the quantity stepper. */
.packing-identity {
  justify-content: flex-start;
}
.packing-identity .packing-check {
  flex: 0 1 auto;
  width: auto;
  justify-content: flex-start;
}
.packing-identity .packing-check > span {
  flex: 0 1 auto;
}
.packing-reset-slot {
  display: inline-flex;
  width: 32px;
  flex: 0 0 32px;
}
.packing-reset[hidden] {
  display: none;
}
.packing-row .packing-reset {
  color: #e08b9b;
}
.packing-editor-form {
  grid-template-columns: minmax(0, 1fr) 104px auto;
  gap: 10px;
  align-items: center;
}
.packing-editor-form > .packing-claim-controls {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
}
.packing-editor-form input[name="text"] {
  grid-column: 1;
  grid-row: 1;
}
.packing-editor-form .packing-quantity {
  width: 42px;
  padding: 4px 0;
}
.packing-editor-carriers {
  width: 104px;
}
@container (max-width: 460px) {
  .packing-editor-form {
    grid-template-columns: minmax(0, 1fr) 104px auto;
    gap: 4px;
  }
  .packing-editor-form .packing-quantity {
    width: 24px;
  }
  .packing-reset-slot {
    width: 24px;
    flex-basis: 24px;
  }
}
.packing-editor-form .packing-stepper .packing-quantity {
  border-color: #5d566c;
  background: #1b1920;
  border-radius: 8px;
}
.packing-editor-form input[name="text"] {
  grid-column: 1 / 3;
  width: 100%;
}
.packing-editor-carriers {
  display: none;
}
.owner-row-overlay .owner-item-form {
  grid-template-columns:
    minmax(120px, 1fr) 90px 70px 85px minmax(150px, 1fr)
    85px 80px auto;
  gap: 8px;
}
@media (max-width: 1000px) {
  .owner-row-overlay .owner-item-form {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .owner-row-editing {
    min-height: 150px;
  }
}

#shoppingSection .shopping-item-author {
  display: block;
  margin-top: 4px;
  color: #4c4952;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.35;
}

#shoppingSection .shopping-item-author-name {
  color: #77737f;
}

#shoppingSection .shopping-quantity-trigger {
  background: transparent;
  border: 0;
  color: inherit;
  font: inherit;
  padding: 5px 2px;
  cursor: text;
  border-radius: 6px;
}
#shoppingSection .shopping-quantity-trigger:hover {
  background: var(--raised);
}
.shopping-quantity-editor {
  position: fixed;
  inset: auto;
  margin: 0;
  width: min(350px, calc(100vw - 16px));
  padding: 16px;
  border: 1px solid #494550;
  border-radius: 12px;
  background: #1b1a20;
  color: #eeecf3;
  box-shadow: 0 14px 45px #0008;
}
.shopping-quantity-editor header,
.shopping-quantity-editor footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.shopping-quantity-editor header .btn {
  padding: 3px 8px;
}
.shopping-quantity-editor .quantity-entry {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0;
}
.shopping-quantity-editor input {
  width: 100%;
  min-width: 0;
}
.quantity-explanation > strong {
  display: block;
  font-size: 18px;
  color: #eee8ff;
}
.quantity-explanation p,
.quantity-explanation small {
  font-size: 12px;
  line-height: 1.55;
  color: #aaa4b5;
}
.quantity-purchase {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin: 12px 0;
  font-size: 12px;
}
.quantity-purchase span {
  color: #aaa4b5;
}
.quantity-error {
  font-size: 12px;
  color: #e99ba8;
}
.quantity-error:empty {
  display: none;
}
.shopping-quantity-editor footer {
  justify-content: flex-end;
  margin-top: 16px;
}
.shopping-quantity-editor footer .btn {
  min-height: 36px;
  padding: 7px 12px;
}

/* Mobile rails use native momentum and snap, without a second scrolling driver. */
@media (max-width: 760px) {
  #mealCards,
  #sidequestCards {
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 24px;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
  }
  #mealCards > .meal-card,
  #sidequestCards > .meal-card {
    flex-basis: min(278px, calc(100vw - 80px));
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }
  .recipe-scrollbar {
    display: none;
  }
}
/* The step's amount and unit stay together when the add row wraps. */
#shoppingSection > .card {
  container-type: inline-size;
}
#productForm > .field {
  min-width: 0;
}
#productForm .shopping-selection-field > div {
  display: grid;
  grid-template-columns: minmax(60px, 1fr) minmax(68px, 80px);
  gap: 6px;
  min-width: 0;
}
#productForm .shopping-selection-field input,
#productForm .shopping-selection-field select {
  width: 100%;
  min-width: 0;
}

@container (max-width: 1100px) {
  #productForm {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }
  #productForm > .field {
    grid-column: span 2;
  }
  #productForm > .product-name {
    grid-column: span 6;
  }
  #productForm > .product-sharing {
    grid-column: span 5;
  }
  #productForm > .shopping-selection-field {
    grid-column: span 4;
  }
  #productForm > #addBtn {
    grid-column: span 3;
    width: 100%;
  }
}
@media (max-width: 760px) {
  #productForm:focus-within {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }
  #productForm:focus-within > .field {
    grid-column: span 4;
  }
  #productForm:focus-within > .product-name {
    grid-column: 1 / -1;
  }
  #productForm:focus-within > .product-sharing {
    grid-column: span 6;
  }
  #productForm:focus-within > .shopping-selection-field {
    grid-column: span 6;
  }
  #productForm:focus-within > #addBtn {
    grid-column: 1 / -1;
    width: 100%;
  }
}
@media (max-width: 420px) {
  #productForm:focus-within > .product-sharing {
    grid-column: 1 / -1;
  }
  #productForm:focus-within > .shopping-selection-field {
    grid-column: span 7;
  }
  #productForm:focus-within > #addBtn {
    grid-column: span 5;
  }
}

.basket-header-search {
  margin-left: auto;
  width: min(300px, 35vw);
  min-width: 100px;
  height: 40px;
}
@media (max-width: 600px) {
  #shoppingBasketDialog .basket-modal-header {
    gap: 8px !important;
    padding: 12px !important;
  }
  #shoppingBasketDialog .basket-modal-header h2 {
    font-size: 15px !important;
  }
  .basket-header-search {
    width: 120px;
    flex: 1;
  }
}

/* Profile controls and participant settlement table. */
#accountMenu #editModeBar {
  padding: 0;
  margin: 0;
  width: 100%;
}
#accountMenu #editModeBtn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
}
#accountMenu #editModeBtn::after {
  content: "";
  flex: 0 0 32px;
  height: 18px;
  border-radius: 12px;
  background:
    radial-gradient(circle at 9px 9px, var(--muted) 0 6px, transparent 7px),
    var(--control);
}
#accountMenu #editModeBtn[aria-checked="true"]::after {
  background:
    radial-gradient(circle at 23px 9px, var(--surface) 0 6px, transparent 7px),
    var(--text);
}
#accountMenu #editParticipantsBtn {
  width: 100%;
  text-align: left;
  justify-content: flex-start;
}
#participantsDialog {
  width: min(1000px, calc(100vw - 32px));
  max-width: 1000px;
}
.participants-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  margin: 0 0 22px;
}
.participants-table-wrap {
  overflow-x: auto;
}
.participants-table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.participants-table th {
  text-align: left;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
}
.participants-table th,
.participants-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.participants-table td:nth-child(4),
.participants-table td:nth-child(6) {
  white-space: nowrap;
}
.participants-table input[data-payment] {
  width: 120px;
  min-width: 100px;
  text-align: right;
}
.participants-table input[type="checkbox"] {
  width: 18px;
  height: 18px;
}
.participants-table .avatar-sm {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid #62d69a;
  object-fit: cover;
  display: block;
}
.participants-table .avatar-sm.inactive {
  border-color: #64616b;
  filter: grayscale(1);
  opacity: 0.42;
}
.participant-overpaid {
  color: #88cba7;
}
.participants-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}
.participants-toolbar .participants-note {
  margin: 0;
  max-width: 650px;
}
.participants-add {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 10px 16px;
  white-space: nowrap;
}
.participant-avatar-button {
  display: block;
  padding: 3px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.participant-avatar-button:hover {
  background: var(--raised);
}
.participant-account {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.participant-account > span {
  margin-right: 5px;
}
.participant-account-action {
  display: grid;
  place-items: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  padding: 5px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.participant-account-action svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.participant-account-action:hover {
  color: var(--text);
  background: var(--raised);
}
.participant-delete:hover {
  color: var(--danger);
}
.participant-account-action:focus-visible,
.participant-avatar-button:focus-visible {
  outline: 2px solid var(--muted);
  outline-offset: 2px;
}
@media (max-width: 600px) {
  .participants-toolbar {
    flex-wrap: wrap;
    gap: 14px;
  }
}
.participants-status {
  color: var(--danger);
  font-size: 13px;
}

.participants-table .participant-actions-cell {
  width: 80px;
  padding-right: 6px;
}
.participant-row-actions {
  justify-content: flex-end;
}

.meal-detail-enrollment,
.meal-detail-day-choice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.meal-detail-enrollment {
  margin: 24px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--line);
  justify-content: flex-end;
}
.meal-detail-enrollment > span {
  font-weight: 500;
}
.meal-detail-day-choice {
  margin-bottom: 14px;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: nowrap;
}
.meal-detail-day-choice h3 {
  margin: 0;
}
.meal-detail-day-choice .meal-vote {
  width: auto;
  flex: 0 0 auto;
  min-height: 28px;
  height: 28px;
  padding: 4px 9px;
  font-size: 11px;
  line-height: 1.2;
  white-space: nowrap;
}
.meal-detail-choice-status {
  color: var(--danger);
  font-size: 13px;
}
.meal-detail-choice-status:empty {
  display: none;
}

.sidequest-detail-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sidequest-detail-controls > .btn {
  width: 36px;
  height: 36px;
  min-width: 36px;
  padding: 8px;
  display: grid;
  place-items: center;
}
.sidequest-detail-controls svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sidequest-detail-accept:not(:disabled) {
  color: #62d69a;
}
.sidequest-detail-controls .btn:disabled {
  opacity: 0.3;
  cursor: default;
}

.meal-detail-votes > section {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.meal-detail-votes {
  gap: 16px;
}
.meal-detail-day-choice h3 {
  min-width: 0;
}

/* Detail prices reuse the shared basket calculation shown on recipe cards. */
.recipe-detail-hero {
  position: relative;
  margin-bottom: 20px;
  border-radius: 12px;
  overflow: hidden;
}
.recipe-detail-hero .meal-detail-image {
  display: block;
  margin: 0;
}
.recipe-detail-hero::after {
  content: "";
  position: absolute;
  inset: 40% 0 0;
  background: linear-gradient(transparent, rgb(0 0 0 / 70%));
  pointer-events: none;
}
.recipe-detail-price {
  position: absolute;
  z-index: 1;
  bottom: 16px;
  right: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #f0f1f3;
}
.recipe-detail-price .recipe-unit-price {
  font-size: 24px;
  font-weight: 600;
  gap: 8px;
  text-shadow: 0 1px 6px #0008;
}
.recipe-detail-price .recipe-unit-price svg {
  width: 24px;
  height: 24px;
}
.recipe-detail-price .recipe-detail-price-help {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  padding: 0;
  border: 1px solid #d5d5ddaa;
  border-radius: 50%;
  background: rgb(20 20 23 / 60%);
  color: #e4e4eb;
  font-size: 13px;
  line-height: 1;
  cursor: help;
}
.recipe-detail-price-help > [role="tooltip"] {
  display: none;
}
.recipe-detail-hero-empty {
  min-height: 76px;
  background: var(--raised);
}
.recipe-detail-hero-empty::after {
  display: none;
}
@media (max-width: 540px) {
  .recipe-detail-price .recipe-unit-price {
    font-size: 21px;
  }
}

/* Keep Sidequest prices on the same bottom baseline, including multiline titles. */
#sidequestCards .meal-overlay-title,
#sidequestsSection .meal-card .meal-overlay-title {
  align-items: flex-end;
}
#sidequestsSection .meal-card .meal-overlay-title > .recipe-unit-price {
  align-self: flex-end;
  min-height: 23px;
  line-height: 23px;
}

.summary-amount.featured:has(.receipt-open) {
  position: relative;
  padding-right: 64px;
  min-height: 70px;
}
.receipt-open {
  position: absolute;
  right: -6px;
  top: -16px;
  transform: none;
  display: grid;
  place-items: center;
  width: 54px;
  height: 70px;
  padding: 10px 2px;
  margin: 0;
  border: 0;
  border-radius: 10px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}
.receipt-open:hover {
  background: transparent;
  color: var(--text);
}
.receipt-open svg {
  width: 50px;
  height: 50px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#personalReceiptDialog {
  width: min(850px, calc(100vw - 32px));
  max-width: 850px;
}
.receipt-description {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}
.receipt-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 12px minmax(80px, auto) 12px 95px;
  align-items: center;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.receipt-copy {
  min-width: 0;
}
.receipt-copy > small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 3px;
}
.receipt-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}
.receipt-controls .btn {
  width: 30px;
  min-width: 30px;
  height: 30px;
  padding: 0;
}
.receipt-controls > span {
  min-width: 55px;
  text-align: center;
  font-size: 12px;
  white-space: nowrap;
}
.receipt-cost {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.receipt-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--control);
  font-size: 18px;
}
.receipt-status {
  color: var(--danger);
  font-size: 13px;
}
@media (max-width: 540px) {
  .receipt-row {
    grid-template-columns: minmax(0, 1fr) 10px auto 10px auto;
    gap: 12px;
  }
  .receipt-copy {
    grid-column: 1/-1;
  }
  .receipt-controls {
    justify-self: start;
  }
}

.summary-amount.featured:has(.receipt-open) > strong {
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
}
@media (max-width: 420px) {
  .summary-amount.featured:has(.receipt-open) {
    padding-left: 10px;
  }
}

.receipt-item-title {
  display: flex;
  align-items: center;
  gap: 9px;
}
.receipt-category-icon {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.receipt-total > strong {
  margin-left: auto;
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.receipt-operator {
  font-size: 20px;
  font-weight: 500;
  color: var(--faint);
  text-align: center;
  line-height: 30px;
}
.receipt-unit-price {
  text-align: right;
  white-space: nowrap;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  line-height: 30px;
}
.receipt-cost {
  line-height: 30px;
}
@media (min-width: 541px) and (max-width: 760px) {
  .receipt-row {
    gap: 8px;
    grid-template-columns: minmax(0, 1fr) auto 10px auto 10px auto;
  }
}
@media (max-width: 540px) {
  .receipt-row {
    gap: 7px;
  }
  .receipt-unit-price {
    font-size: 11px;
  }
  .receipt-controls > span {
    min-width: 40px;
  }
}

.receipt-controls > span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  line-height: 1.3;
}
.receipt-operator,
.receipt-unit-price,
.receipt-cost {
  align-self: center;
}

.shopping-opt-out {
  opacity: 0;
  pointer-events: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--raised);
  color: var(--muted);
  font-size: 11px;
  padding: 5px 8px;
  white-space: nowrap;
  cursor: pointer;
  transition: opacity 120ms ease;
}
.avatars:has(.shopping-everyone):hover .shopping-opt-out,
.avatars:has(.shopping-everyone):focus-within .shopping-opt-out {
  opacity: 1;
  pointer-events: auto;
}
.shopping-needs-confirmation {
  background: #c7bbeb0b;
  box-shadow: inset 3px 0 #c7bbeb;
}
.shopping-confirm-choice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 11px;
  color: #d5cdee;
}
.shopping-confirm-choice > span {
  flex-basis: 100%;
}
.shopping-confirm-choice .btn {
  min-height: 28px;
  height: 28px;
  padding: 3px 8px;
  font-size: 11px;
}
@media (hover: none) {
  .shopping-opt-out {
    opacity: 1;
    pointer-events: auto;
  }
}

#shoppingSection .row.shopping-needs-confirmation {
  background: #292430;
  box-shadow: inset 3px 0 #c7bbeb;
}
#shoppingSection .shopping-needs-confirmation .avatars {
  flex-wrap: wrap;
  align-content: center;
}
#shoppingSection .avatars > .shopping-confirm-choice {
  flex: 0 0 100%;
  width: 100%;
  margin-top: 9px;
}

#shoppingSection .shopping-confirm-choice {
  justify-content: flex-end;
}
#shoppingSection .shopping-confirm-choice > strong {
  flex: 0 0 100%;
  display: block;
  font-size: 11px;
  font-weight: 650;
  color: var(--text);
}

#shoppingSection .shopping-confirm-choice .btn {
  display: grid;
  place-items: center;
  flex: 0 0 32px;
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 7px;
  border-radius: 50%;
}
#shoppingSection .shopping-confirm-choice .btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#shoppingSection .shopping-confirm-choice [data-choice-confirm="yes"] {
  background: var(--raised);
  color: #b5c7b9;
  border: 1px solid var(--control);
}
#shoppingSection .shopping-confirm-choice [data-choice-confirm="yes"] svg {
  stroke-width: 1.5;
}
#shoppingSection .shopping-confirm-choice [data-choice-confirm="yes"]:hover {
  background: #292c2b;
  color: #d1dfd5;
  border-color: #6d7d72;
}
#shoppingSection .shopping-confirm-choice [data-choice-confirm="no"] {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--control);
}
#shoppingSection .shopping-confirm-choice [data-choice-confirm="no"]:hover {
  background: var(--raised);
  color: var(--text);
}

#shoppingSection .shopping-confirm-choice [data-choice-confirm="no"] {
  line-height: 1;
}
#shoppingSection .shopping-confirm-choice [data-choice-confirm="no"] svg {
  display: block;
  margin: 0;
  transform: none;
  stroke-width: 1.5;
}
#shoppingSection .shopping-confirm-choice [data-choice-confirm="no"]:hover {
  background: #302426;
  color: #dca3a9;
  border-color: #8c6066;
}

.shopping-optout-confirm {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  width: 100%;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  text-align: left;
  color: var(--text);
}
.shopping-optout-confirm > .shopping-confirm-choice {
  margin: 0;
}
#shoppingSection .shopping-optout-confirm [data-optout-accept] {
  background: var(--raised);
  color: #b5c7b9;
  border: 1px solid var(--control);
}
#shoppingSection .shopping-optout-confirm [data-optout-accept]:hover {
  background: #292c2b;
  color: #d1dfd5;
  border-color: #6d7d72;
}
#shoppingSection .shopping-optout-confirm [data-optout-cancel] {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--control);
}
#shoppingSection .shopping-optout-confirm [data-optout-cancel]:hover {
  background: #302426;
  color: #dca3a9;
  border-color: #8c6066;
}
#shoppingSection .shopping-optout-confirm svg {
  display: block;
  margin: 0;
  stroke-width: 1.5;
}

#costDistributionBtn[hidden] {
  display: none;
}
#costDistributionDialog {
  width: min(1550px, calc(100vw - 32px));
  max-width: none;
  height: 88dvh;
}
#costDistributionDialog .modal-scroll-body {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  padding: 18px;
}
#costDistributionDialog form {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
}
.cost-distribution-content {
  overflow: auto;
  min-height: 0;
  flex: 1;
  scrollbar-gutter: stable;
}
.cost-distribution-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.cost-distribution-table th,
.cost-distribution-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  text-align: center;
  white-space: nowrap;
}
.cost-distribution-table thead th {
  padding-block: 12px;
  vertical-align: middle;
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--raised);
  font-weight: 500;
}
.cost-distribution-table th:first-child {
  position: sticky;
  left: 0;
  background: var(--surface);
  text-align: left;
  z-index: 1;
  min-width: 240px;
  max-width: 340px;
  border-right: 1px solid var(--line);
  white-space: normal;
}
.cost-distribution-table thead th:first-child {
  z-index: 3;
  background: var(--raised);
}
.cost-distribution-table tfoot th,
.cost-distribution-table tfoot td {
  position: sticky;
  bottom: 0;
  z-index: 2;
  background: var(--raised);
  border-top: 1px solid var(--control);
}
.cost-distribution-table tfoot th:first-child {
  z-index: 3;
  background: var(--raised);
}
.distribution-user {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.distribution-user img {
  width: 28px;
  height: 28px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #62d69a;
}
.distribution-quantity,
.distribution-empty {
  color: var(--faint);
  font-size: 12px;
  font-weight: 400;
}
.distribution-product {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}
.distribution-product:hover > span {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cost-distribution-table tbody tr:hover td,
.cost-distribution-table tbody tr:hover th {
  background: var(--raised);
}

.cost-distribution-table .distribution-quantity {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  line-height: 1.4;
  color: var(--faint);
}

.cost-distribution-table {
  table-layout: fixed;
}
.cost-distribution-table .distribution-user {
  display: flex;
  justify-content: center;
  min-width: 0;
}
.distribution-user img {
  flex-shrink: 0;
}
.distribution-user-name {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.cost-distribution-table .distribution-anomaly-high > strong,
.cost-distribution-table .distribution-anomaly-high .distribution-quantity {
  color: #d7af73;
}
.cost-distribution-table .distribution-anomaly-low > strong,
.cost-distribution-table .distribution-anomaly-low .distribution-quantity {
  color: #90b7dc;
}

.cost-distribution-table th,
.cost-distribution-table td {
  padding: 11px 9px;
}
.cost-distribution-table th:first-child {
  min-width: 220px;
  max-width: 220px;
}
.cost-distribution-table .distribution-user {
  flex-direction: column;
  gap: 5px;
}
.cost-distribution-table .distribution-user img {
  width: 34px;
  height: 34px;
}
.cost-distribution-table .distribution-user-name {
  max-width: 100%;
  margin: 0;
  font-size: 11px;
  line-height: 1;
  font-weight: 400;
  color: var(--faint);
}
.cost-distribution-content {
  scrollbar-width: thin;
  scrollbar-color: #66636e #141416;
  padding-bottom: 4px;
}
.cost-distribution-content::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}
.cost-distribution-content::-webkit-scrollbar-track {
  background: #141416;
  border-radius: 8px;
}
.cost-distribution-content::-webkit-scrollbar-thumb {
  background: #56535e;
  border: 2px solid #141416;
  border-radius: 8px;
}
.cost-distribution-content::-webkit-scrollbar-thumb:hover {
  background: #807b8a;
}
.cost-distribution-content::-webkit-scrollbar-corner {
  background: #141416;
}

#costDistributionDialog {
  padding: 0;
}
#costDistributionDialog .modal-scroll-body {
  padding: 16px;
}
#costDistributionDialog form {
  padding: 0;
  margin: 0;
  width: 100%;
}
.cost-distribution-content {
  padding: 0 8px 0 0;
  scrollbar-gutter: stable;
}
.cost-distribution-content::-webkit-scrollbar-track {
  margin: 3px;
}

.cost-distribution-table td[data-distribution-use] {
  cursor: pointer;
}
.cost-distribution-table.is-cell-editing th,
.cost-distribution-table.is-cell-editing td {
  opacity: 0.38;
  transition: opacity 150ms;
}
.cost-distribution-table.is-cell-editing .distribution-editing-cell {
  opacity: 1;
  background: var(--raised);
}

/* Cell editor: one compact header and one control row, with a 12px inset. */
.distribution-cell-editor {
  position: fixed;
  inset: auto;
  margin: 0;
  width: max-content;
  min-width: 0;
  height: 88px;
  min-height: 88px;
  padding: 12px;
  overflow: visible;
  border: 1px solid var(--control);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 10px 30px #0007;
}
.distribution-editor-cost {
  position: absolute;
  margin: 0;
  white-space: nowrap;
  pointer-events: none;
  font-variant-numeric: tabular-nums;
}
.distribution-editor-close {
  position: absolute;
  right: 8px;
  top: 3px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  padding: 3px;
  background: transparent;
  color: var(--muted);
  border: 0;
  border-radius: 5px;
  cursor: pointer;
}
.distribution-editor-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  margin-top: 36px;
  height: 26px;
}
.distribution-editor-controls .btn {
  display: grid;
  place-items: center;
  width: 26px;
  min-width: 26px;
  height: 26px;
  padding: 3px;
  line-height: 1;
}
.distribution-editor-controls .distribution-editor-quantity {
  display: block;
  flex: 0 0 auto;
  min-width: 0;
  padding: 0 3px;
  font-size: 13px;
  text-align: center;
  white-space: nowrap;
}
.distribution-cell-editor svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.distribution-editor-accept:not(:disabled) {
  color: #91baa0;
}
.distribution-cell-editor button:disabled {
  opacity: 0.3;
}
.distribution-cell-editor p {
  margin: 6px 0 0;
  color: var(--danger);
  font-size: 11px;
}
.distribution-cell-editor p:empty {
  display: none;
}
.distribution-cell-editor:has(p:not(:empty)) {
  height: auto;
  min-height: 88px;
}
.cost-distribution-table .distribution-readonly > strong {
  color: #b2b1ba;
}

.distribution-portion {
  color: var(--faint);
  font-size: 11px;
  font-weight: 400;
  white-space: nowrap;
}

.distribution-view-toggle {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--control);
  border-radius: 9px;
  margin-right: 16px;
}
.distribution-view-toggle .btn {
  min-height: 32px;
  padding: 6px 12px;
  border: 0;
  background: transparent;
  color: var(--muted);
  white-space: nowrap;
}
.distribution-view-toggle .btn[aria-pressed="true"] {
  background: var(--control);
  color: var(--text);
}
@media (max-width: 600px) {
  .distribution-view-toggle {
    margin-right: 5px;
  }
  .distribution-view-toggle .btn {
    padding: 5px 7px;
    font-size: 11px;
  }
}

/* Equal opt-in purchases share the quantity stepper's three-column layout. */
#shoppingSection .equal-pool-choice .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
#shoppingSection .equal-pool-choice .btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#shoppingSection .equal-decline:not(:disabled):hover { color: #ef9c9c; }
#shoppingSection .equal-accept:not(:disabled):hover { color: #6bcfa0; }


/* Fade visible edges, including mobile rails which extend past the viewport. */
#mealCards,
#sidequestCards {
  --recipe-edge-fade: 32px;
  --recipe-edge-inset: max(0px, calc((100% - 100vw) / 2));
  scroll-padding-inline: 60px;
  --recipe-edge-mask: linear-gradient(to right,
    transparent var(--recipe-edge-inset),
    #000 calc(var(--recipe-edge-inset) + var(--recipe-edge-fade)),
    #000 calc(100% - var(--recipe-edge-inset) - var(--recipe-edge-fade)),
    transparent calc(100% - var(--recipe-edge-inset)));
  -webkit-mask-image: var(--recipe-edge-mask);
  mask-image: var(--recipe-edge-mask);
}
@media (max-width: 760px) {
  #mealCards,
  #sidequestCards {
    padding-inline: 48px;
    scroll-padding-inline: 48px;
  }
}

/* A mask creates a stacking context: keep neighboring controls above its glow gutters. */
#mealsSection > :not(.meal-cards),
#sidequestsSection > :not(.meal-cards) {
  position: relative;
  z-index: 1;
}
