/*
 * Лендинг «Список продуктов для блюда, рецепты и шаблоны»
 * (landings/grocery_list_by_dish_and_set.html).
 *
 * Каркас — стили главной (home.css): .hero, .product-story, .template-teaser,
 * .more-tools / .tool-card, .family-statement, .start-card, .site-footer.
 * Здесь только то, чего на главной нет:
 *   .dish-photo-fragment, .dish-servings-card — герой;
 *   .dsh-teaser, .dsh-steps                   — блоки с анимацией;
 *   .dsh-screen и всё внутри                  — экраны в корпусе .jl-phone с главной;
 *   .dsh-ed, .dsh-target, .dsh-overlay        — экраны выбора позиций по виджетам приложения;
 *   .dsh-tool*, .dsh-float-card               — карточки «Ещё возможности»;
 *   .dsh-start                                — финальный блок с фото.
 *
 * Сценарии анимаций — scripts/dish-live.js. Состояние в HTML по умолчанию —
 * итоговый кадр каждого сценария (без JS и при prefers-reduced-motion).
 */

/* ===================== Герой ===================== */

.dish-photo-fragment {
  background: #eef1f6;
}

.dish-photo-fragment img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 55%;
}

.dish-photo-fragment::after {
  height: 120px;
}

.dish-story .voice-added strong {
  font-size: 10px;
}

.dish-story .voice-added small {
  font-size: 8px;
}

.dish-servings-card {
  position: absolute;
  z-index: 7;
  right: 14px;
  bottom: 40px;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  width: min(330px, 46%);
  gap: 12px;
  padding: 14px 16px 14px 12px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 48px rgba(18, 27, 52, 0.17);
  font-family: "Inter", sans-serif;
  transform: rotate(-2deg);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.dish-servings-card > img {
  width: 64px;
  height: 64px;
  filter: drop-shadow(0 8px 12px rgba(18, 27, 52, 0.16));
}

.dish-servings-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.dish-servings-copy small {
  color: #c27a00;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dish-servings-copy strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dish-servings-row {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
}

.dish-servings-qty {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: 14px;
  background: var(--yellow-soft);
  color: #6f5200;
  font-size: 12px;
  font-weight: 600;
}

.dish-servings-swap {
  position: relative;
  display: inline-grid;
  min-width: 26px;
  height: 22px;
  padding: 0 6px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--blue-100);
  color: var(--blue-700);
  font-size: 12px;
  font-weight: 750;
  text-align: center;
}

.dish-servings-qty .dish-servings-swap {
  min-width: 58px;
  background: rgba(255, 255, 255, 0.8);
  color: #6f5200;
}

.dish-servings-swap i {
  grid-area: 1 / 1;
  font-style: normal;
  line-height: 22px;
}

.dish-servings-swap i:first-child {
  opacity: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .dish-servings-card {
    animation: dish-card-float 6.6s ease-in-out infinite;
  }

  .dish-servings-swap i {
    animation: dish-swap-in 6s ease-in-out infinite;
  }

  .dish-servings-swap i:first-child {
    animation-name: dish-swap-out;
  }
}

@keyframes dish-card-float {
  0%,
  100% {
    transform: rotate(-2deg) translateY(0);
  }
  50% {
    transform: rotate(-1.4deg) translateY(-6px);
  }
}

/* «2 → 4 порции»: первая цифра видна 0–40%, вторая 50–95% */
@keyframes dish-swap-out {
  0%,
  40% {
    opacity: 1;
    transform: translateY(0);
  }
  48%,
  96% {
    opacity: 0;
    transform: translateY(-100%);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes dish-swap-in {
  0%,
  40% {
    opacity: 0;
    transform: translateY(100%);
  }
  48%,
  94% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(100%);
  }
}

/* ===================== Блоки с анимацией ===================== */

.dsh-teaser {
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  cursor: default;
}

/* Блок — не ссылка: без стрелки и подъёма карточки главной */
.dsh-teaser::after {
  display: none;
}

.dsh-teaser:hover {
  border-color: rgba(47, 107, 255, 0.12);
  box-shadow: 0 18px 54px rgba(28, 39, 70, 0.07);
  transform: none;
}

.dsh-teaser--recipe {
  grid-template-columns: minmax(420px, 1.08fr) minmax(0, 0.92fr);
  background:
    radial-gradient(circle at 0 0, rgba(255, 207, 74, 0.26), transparent 30rem),
    radial-gradient(circle at 100% 100%, rgba(47, 107, 255, 0.1), transparent 26rem),
    #fbfaf6;
}

.dsh-teaser--recipe .template-teaser-copy {
  order: 2;
}

.dsh-teaser--template {
  background:
    radial-gradient(circle at 100% 0, rgba(136, 169, 149, 0.24), transparent 30rem),
    radial-gradient(circle at 0 100%, rgba(47, 107, 255, 0.1), transparent 24rem),
    #fbfaf6;
}

.dsh-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  color: var(--blue-700);
  font-size: 12px;
  font-weight: 720;
}

.dsh-more i {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-100);
  font-style: normal;
  transition: transform 180ms ease;
}

.dsh-more:hover i {
  transform: translateX(3px);
}

.dsh-more:focus-visible {
  border-radius: 6px;
  outline: 3px solid rgba(47, 107, 255, 0.28);
  outline-offset: 4px;
}

/* ---------- Шаги рядом с анимацией ---------- */

.dsh-steps {
  display: grid;
  gap: 10px;
  max-width: 560px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.dsh-step {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 13px 16px 15px 13px;
  overflow: hidden;
  border: 1px solid rgba(47, 107, 255, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
  transition:
    opacity 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease,
    background 0.35s ease;
}

.dsh-step > b {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 12px;
  background: var(--blue-100);
  color: var(--blue-700);
  font-size: 14px;
  font-weight: 760;
}

.dsh-step > span {
  display: grid;
  gap: 3px;
}

.dsh-step strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 680;
}

.dsh-step small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.dsh-step-progress {
  position: absolute;
  right: 16px;
  bottom: 0;
  left: 16px;
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  opacity: 0;
}

.dsh-step-progress i {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue-700), var(--blue-500));
  transform: scaleX(0);
  transform-origin: left center;
}

.dsh-steps.is-running .dsh-step {
  opacity: 0.55;
}

.dsh-steps.is-running .dsh-step.is-active {
  border-color: rgba(47, 107, 255, 0.24);
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(28, 39, 70, 0.08);
  opacity: 1;
}

.dsh-steps.is-running .dsh-step.is-active > b {
  background: var(--blue-600);
  color: #ffffff;
}

.dsh-steps.is-running .dsh-step.is-active .dsh-step-progress {
  opacity: 1;
}

.dsh-steps.is-running .dsh-step.is-active .dsh-step-progress i {
  transform: scaleX(1);
  transition: transform var(--dsh-step-ms, 4000ms) linear;
}

/* ---------- Сцена: плашка персонажа + телефон ---------- */

.dsh-art {
  --dsh-blue: #007aff;
  --dsh-label: #1c1c1e;
  --dsh-secondary: #6e6e73;
  --dsh-sep: rgba(60, 60, 67, 0.12);
  --dsh-fill: #f2f2f7;
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 18px;
  min-width: 0;
  color: var(--dsh-label);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Плашка персонажа и корпус телефона — классы главной (journey-live.css:
   .jl-person, .jl-chip, .jl-phone, .jl-screen). Экраны быстрого списка и
   рецепта свёрстаны в 296×642 и вписываются в .jl-screen масштабом,
   экраны списка и шаблонов — в нативных 393×852 (.jl-app). */
.dsh-art.journey-live {
  --jl-s: 0.66;
  align-self: center;
  justify-self: center;
  width: 100%;
  max-width: 560px;
  padding: 30px 28px 56px;
}

.dsh-art .jl-chip {
  min-width: 236px;
}

.dsh-art .jl-screen > .dsh-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 296px;
  height: 642px;
  overflow: hidden;
  background: #ffffff;
  font-size: 13px;
  line-height: 1.3;
  transform: scale(calc(393 * var(--jl-s) / 296));
  transform-origin: 0 0;
  isolation: isolate;
}

.dsh-statusbar {
  position: relative;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 40px;
  padding: 4px 23px 0 33px;
  background: rgba(255, 255, 255, 0.9);
  font-size: 12.8px;
  font-weight: 600;
}

.dsh-statusbar svg {
  width: 57px;
  height: 10.5px;
  fill: currentColor;
}

.dsh-scene {
  position: absolute;
  z-index: 1;
  top: 40px;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  opacity: 0;
  visibility: hidden;
  transform: translateX(16px);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease,
    visibility 0s linear 0.35s;
}

.dsh-scene.is-on {
  z-index: 2;
  opacity: 1;
  visibility: visible;
  transform: none;
  transition:
    opacity 0.35s ease,
    transform 0.35s ease,
    visibility 0s;
}

.dsh-nav {
  display: grid;
  flex: none;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 42px;
  padding: 0 14px;
  color: var(--dsh-blue);
}

.dsh-nav strong {
  max-width: 190px;
  overflow: hidden;
  color: var(--dsh-label);
  font-size: 15px;
  font-weight: 650;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dsh-nav-back {
  font-size: 13px;
  font-weight: 500;
}

.dsh-nav > span:first-child:not(:empty).dsh-nav-back {
  font-size: 22px;
  line-height: 1;
}

.dsh-nav-back:not(:empty) + strong {
  justify-self: center;
}

[data-scene="picker"] .dsh-nav-back {
  font-size: 13px !important;
}

.dsh-nav-act {
  justify-self: end;
  font-size: 17px;
}

.dsh-pad {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 8px 14px 14px;
  overflow: hidden;
}

/* ---------- Плитки списков и рецептов ---------- */

.dsh-list-tile,
.dsh-recipe-tile {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 11px 12px;
  border: 1px solid var(--dsh-sep);
  border-radius: 18px;
  background: linear-gradient(135deg, #ffffff, #f5f6f8);
  transition:
    opacity 0.4s ease,
    transform 0.4s ease,
    box-shadow 0.5s ease;
}

.dsh-list-tile img {
  width: 40px;
  height: 40px;
}

.dsh-list-tile span,
.dsh-recipe-tile span {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.dsh-list-tile b,
.dsh-recipe-tile b {
  overflow: hidden;
  font-size: 14px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dsh-list-tile small,
.dsh-recipe-tile small {
  color: var(--dsh-secondary);
  font-size: 11px;
}

.dsh-list-tile em {
  color: #c4c4c9;
  font-size: 20px;
  font-style: normal;
}

.dsh-list-tile--flat {
  background: var(--dsh-fill);
}

.dsh-recipe-tile {
  grid-template-columns: 56px minmax(0, 1fr);
}

.dsh-recipe-tile img {
  width: 56px;
  height: 56px;
  padding: 6px;
  border-radius: 14px;
  background: #fff6dc;
}

.dsh-list-tile--new,
.dsh-recipe-tile--new {
  border-color: rgba(0, 122, 255, 0.35);
  box-shadow: 0 6px 22px rgba(0, 122, 255, 0.18);
}

.is-hidden-item {
  opacity: 0 !important;
  transform: translateY(10px) scale(0.98) !important;
}

.dsh-quick-btn {
  position: absolute;
  right: 16px;
  bottom: 20px;
  left: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  border-radius: 16px;
  background: linear-gradient(135deg, #245ef2, #3e7bff);
  color: #ffffff;
  font-size: 14px;
  font-weight: 650;
  box-shadow: 0 12px 24px rgba(47, 107, 255, 0.3);
  transition: transform 0.15s ease;
}

.dsh-quick-btn span {
  font-size: 15px;
}

/* ---------- Список с категориями ---------- */

.dsh-progress {
  display: flex;
  flex: none;
  align-items: center;
  gap: 8px;
  padding: 0 16px 6px;
}

.dsh-progress i {
  position: relative;
  flex: 1;
  height: 5px;
  border-radius: 999px;
  background: var(--dsh-fill);
}

.dsh-progress small {
  color: var(--dsh-secondary);
  font-size: 10px;
}

.dsh-items {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 2px 12px 80px;
  overflow: hidden;
}

.dsh-cat {
  display: flex;
  justify-content: space-between;
  padding: 8px 6px 0;
  color: var(--dsh-secondary);
  font-size: 11px;
  font-weight: 550;
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
}

.dsh-item {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 40px;
  align-items: center;
  gap: 10px;
  padding: 7px 8px 7px 12px;
  border: 1px solid rgba(216, 218, 222, 0.82);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(240, 242, 244, 0.94));
  transition:
    opacity 0.4s ease,
    transform 0.4s ease,
    box-shadow 0.6s ease;
}

.dsh-item::before {
  width: 20px;
  height: 20px;
  border: 2px solid #c7c7cc;
  border-radius: 50%;
  content: "";
}

.dsh-item img {
  grid-column: 3;
  grid-row: 1;
  width: 38px;
  height: 38px;
}

.dsh-item span {
  display: grid;
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  gap: 1px;
}

.dsh-item b {
  overflow: hidden;
  font-size: 13px;
  font-weight: 620;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dsh-item small {
  color: var(--dsh-secondary);
  font-size: 10.5px;
}

.dsh-item.is-flash {
  box-shadow: 0 4px 20px rgba(0, 122, 255, 0.24);
}

/* ---------- Шиты, тосты, пуши, диалог ---------- */

.dsh-sheet {
  position: absolute;
  z-index: 10;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 10px 16px 22px;
  border-radius: 26px 26px 0 0;
  background: rgba(252, 252, 253, 0.98);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.08);
  transform: translateY(105%);
  transition:
    transform 0.42s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.42s ease;
}

.dsh-sheet.is-open {
  box-shadow:
    0 -10px 30px rgba(0, 0, 0, 0.08),
    0 0 0 999px rgba(15, 20, 35, 0.22);
  transform: translateY(0);
}

.dsh-sheet--tall {
  top: 70px;
}

.dsh-grabber {
  justify-self: center;
  width: 38px;
  height: 5px;
  border-radius: 999px;
  background: rgba(60, 60, 67, 0.22);
}

.dsh-sheet-title {
  font-size: 17px;
  font-weight: 700;
  text-align: center;
}

.dsh-sheet-hint {
  margin: 0;
  color: var(--dsh-secondary);
  font-size: 11.5px;
  line-height: 1.4;
  text-align: center;
}

.dsh-sheet-hint--left {
  text-align: left;
}

.dsh-sheet-status {
  color: var(--dsh-secondary);
  font-size: 11.5px;
  text-align: center;
}

.dsh-wave {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 40px;
  padding: 8px 12px;
  border: 1px solid rgba(216, 218, 222, 0.78);
  border-radius: 16px;
  background: #ffffff;
}

.dsh-wave i {
  width: 3px;
  height: 30%;
  border-radius: 999px;
  background: #ff3b30;
  opacity: 0.85;
}

.dsh-wave i:nth-child(3n) {
  height: 55%;
}

.dsh-wave i:nth-child(4n + 1) {
  height: 75%;
}

.dsh-sheet.is-listening .dsh-wave i {
  animation: dsh-wave 0.9s ease-in-out infinite;
}

.dsh-wave i:nth-child(2n) {
  animation-delay: -0.3s !important;
}

.dsh-wave i:nth-child(3n) {
  animation-delay: -0.55s !important;
}

@keyframes dsh-wave {
  0%,
  100% {
    transform: scaleY(0.45);
  }
  50% {
    transform: scaleY(1.15);
  }
}

.dsh-recognized,
.dsh-field {
  min-height: 46px;
  padding: 12px 14px;
  border: 1px solid rgba(216, 218, 222, 0.85);
  border-radius: 16px;
  background: #ffffff;
  font-size: 14px;
  line-height: 1.35;
}

.dsh-field {
  display: grid;
  gap: 3px;
  padding: 9px 12px;
}

.dsh-field small {
  color: var(--dsh-secondary);
  font-size: 10px;
}

.dsh-field span {
  overflow: hidden;
  color: var(--dsh-blue);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dsh-caret {
  display: inline-block;
  width: 1.5px;
  height: 1.05em;
  margin-left: 1px;
  background: var(--dsh-blue);
  vertical-align: -0.15em;
  animation: dsh-caret 0.9s steps(1) infinite;
}

@keyframes dsh-caret {
  50% {
    opacity: 0;
  }
}

.dsh-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  border-radius: 14px;
  background: var(--dsh-blue);
  color: #ffffff;
  font-size: 14px;
  font-weight: 650;
  transition:
    transform 0.15s ease,
    opacity 0.3s ease;
}

.dsh-text-btn {
  color: var(--dsh-blue);
  font-size: 13px;
  font-weight: 550;
  text-align: center;
}

.dsh-queue {
  margin: 0;
  padding: 9px 11px;
  border-radius: 12px;
  background: rgba(255, 207, 74, 0.2);
  color: #6f5200;
  font-size: 11px;
  line-height: 1.4;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.dsh-sheet.is-queued .dsh-queue {
  opacity: 1;
}

.dsh-sheet.is-queued .dsh-primary {
  opacity: 0.5;
}

.dsh-choice {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  padding: 11px 12px;
  border: 1px solid var(--dsh-sep);
  border-radius: 16px;
  background: #ffffff;
  transition:
    border-color 0.25s ease,
    background 0.25s ease;
}

.dsh-choice span:last-child {
  display: grid;
  gap: 2px;
}

.dsh-choice b {
  font-size: 13.5px;
  font-weight: 650;
}

.dsh-choice small {
  color: var(--dsh-secondary);
  font-size: 11px;
  line-height: 1.35;
}

.dsh-choice.is-picked {
  border-color: rgba(0, 122, 255, 0.5);
  background: rgba(0, 122, 255, 0.06);
}

.dsh-letter {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: #e9e9ee;
  color: #3a3a3c;
  font-size: 15px;
  font-weight: 700;
}

.dsh-letter--family {
  background: linear-gradient(135deg, #ffcf4a, #ffb21e);
  color: #5a3d00;
}

.dsh-segment {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 2px;
  border-radius: 10px;
  background: rgba(118, 118, 128, 0.12);
}

.dsh-segment span {
  padding: 6px 0;
  border-radius: 8px;
  color: var(--dsh-label);
  font-size: 12px;
  font-weight: 550;
  text-align: center;
}

.dsh-segment .is-on {
  background: #ffffff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
}

.dsh-toast {
  position: absolute;
  z-index: 12;
  right: 14px;
  bottom: 84px;
  left: 14px;
  display: grid;
  gap: 3px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(28, 28, 30, 0.92);
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
  pointer-events: none;
}

.dsh-toast b {
  font-size: 13px;
  font-weight: 650;
}

.dsh-toast span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 11.5px;
  line-height: 1.35;
}

.dsh-toast--ok b {
  color: #7ee2a0;
}

.dsh-toast.is-on {
  opacity: 1;
  transform: none;
}

.dsh-push {
  position: absolute;
  z-index: 14;
  top: 46px;
  right: 10px;
  left: 10px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 20px;
  background: rgba(245, 245, 247, 0.96);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
  opacity: 0;
  transform: translateY(-130%);
  transition:
    opacity 0.35s ease,
    transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.dsh-push.is-on {
  opacity: 1;
  transform: none;
}

.dsh-push img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.dsh-push > span {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.dsh-push small {
  display: flex;
  justify-content: space-between;
  color: var(--dsh-secondary);
  font-size: 9.5px;
}

.dsh-push small b {
  font-weight: 600;
}

.dsh-push small i {
  font-style: normal;
}

.dsh-push > span > b {
  font-size: 12.5px;
  font-weight: 650;
}

.dsh-push em {
  overflow: hidden;
  color: #3a3a3c;
  font-size: 11.5px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dsh-dialog {
  position: absolute;
  z-index: 13;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(15, 20, 35, 0.28);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0s linear 0.3s;
}

.dsh-dialog.is-on {
  opacity: 1;
  visibility: visible;
  transition:
    opacity 0.3s ease,
    visibility 0s;
}

.dsh-popup {
  display: grid;
  width: 236px;
  gap: 6px;
  padding: 18px 0 0;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(250, 250, 252, 0.97);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.22);
  text-align: center;
  transform: scale(1.08);
  transition: transform 0.3s ease;
}

.dsh-dialog.is-on .dsh-popup {
  transform: scale(1);
}

.dsh-popup > b {
  font-size: 15px;
  font-weight: 700;
}

.dsh-popup p {
  margin: 0 16px 10px;
  color: #3a3a3c;
  font-size: 12.5px;
  line-height: 1.4;
}

.dsh-popup-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--dsh-sep);
}

.dsh-popup-actions span {
  padding: 11px 0;
  color: var(--dsh-blue);
  font-size: 14px;
}

.dsh-popup-actions span + span {
  border-left: 1px solid var(--dsh-sep);
}

.dsh-popup-actions .is-main {
  font-weight: 650;
}

/* ---------- Рецепт ---------- */

.dsh-recipe {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 0 14px 80px;
  overflow: hidden;
}

.dsh-recipe-cover {
  position: relative;
  display: grid;
  height: 104px;
  place-items: center;
  border-radius: 20px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.7), transparent 60%),
    linear-gradient(135deg, #ffe7a3, #ffc76a);
}

.dsh-recipe-cover img {
  width: 92px;
  height: 92px;
  filter: drop-shadow(0 10px 14px rgba(120, 70, 0, 0.25));
}

.dsh-badge-family,
.dsh-badge-personal {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 207, 74, 0.28);
  color: #7a5a00;
  font-size: 10px;
  font-weight: 650;
  white-space: nowrap;
}

.dsh-badge-personal {
  background: rgba(118, 118, 128, 0.12);
  color: #3a3a3c;
}

.dsh-recipe-cover .dsh-badge-family {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(255, 255, 255, 0.85);
}

.dsh-recipe-title {
  font-size: 17px;
  font-weight: 720;
  letter-spacing: -0.01em;
}

.dsh-recipe-meta {
  display: flex;
  gap: 6px;
}

.dsh-recipe-meta span {
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--dsh-fill);
  color: #3a3a3c;
  font-size: 10.5px;
}

.dsh-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 8px 8px 12px;
  border-radius: 14px;
  background: rgba(0, 122, 255, 0.08);
  color: var(--dsh-blue);
  font-size: 12.5px;
  font-weight: 650;
}

.dsh-stepper-ctrl {
  display: flex;
  align-items: center;
  gap: 4px;
}

.dsh-stepper-ctrl i,
.dsh-stepper-ctrl b {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 9px;
  font-style: normal;
}

.dsh-stepper-ctrl i {
  background: #ffffff;
  font-size: 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.dsh-stepper-ctrl b {
  color: var(--dsh-label);
  font-size: 14px;
  font-weight: 700;
}

.dsh-ing-title {
  margin-top: 2px;
  color: var(--dsh-secondary);
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dsh-ings {
  display: grid;
  border-radius: 14px;
  background: var(--dsh-fill);
}

.dsh-ing {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 6px 10px;
}

.dsh-ing + .dsh-ing {
  border-top: 1px solid var(--dsh-sep);
}

.dsh-ing img {
  width: 24px;
  height: 24px;
}

.dsh-ing span {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dsh-ing b {
  padding: 2px 6px;
  border-radius: 7px;
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
  font-weight: 650;
  transition:
    background 0.4s ease,
    color 0.4s ease;
}

.dsh-ing b.is-flash {
  background: rgba(255, 207, 74, 0.55);
  color: #5a3d00;
}

/* ---------- Касание ---------- */

.dsh-tap {
  position: absolute;
  z-index: 30;
  width: 58px;
  height: 58px;
  margin: -29px 0 0 -29px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 1) 0 12%,
    rgba(111, 206, 255, 0.9) 26%,
    rgba(47, 107, 255, 0.6) 48%,
    rgba(47, 107, 255, 0) 72%
  );
  pointer-events: none;
  animation: dsh-tap 0.62s ease-out forwards;
}

@keyframes dsh-tap {
  0% {
    opacity: 0;
    transform: scale(0.4);
  }
  30% {
    opacity: 1;
    transform: scale(0.9);
  }
  100% {
    opacity: 0;
    transform: scale(1.5);
  }
}

.dsh-art .is-pressed {
  transform: scale(0.96);
}

/* ===================== «Ещё возможности» ===================== */

.dsh-tool--save::before {
  right: -90px;
  bottom: -140px;
  width: 470px;
  height: 470px;
  background: rgba(136, 169, 149, 0.2);
}

.dsh-tool--remind::before {
  right: -100px;
  bottom: -130px;
  width: 480px;
  height: 480px;
  background: rgba(255, 207, 74, 0.22);
}

.tool-card.dsh-tool--wide {
  grid-column: 1 / -1;
  min-height: 380px;
}

.dsh-tool--wide::before {
  right: 6%;
  bottom: -190px;
  width: 520px;
  height: 520px;
  background: rgba(47, 107, 255, 0.12);
}

.dsh-tool--wide .tool-copy {
  max-width: 480px;
  padding-bottom: 34px;
}

.dsh-tool-art--wide {
  top: 0;
  left: 44%;
  height: auto;
}

.dsh-tool-art--wide::before {
  mask-image: linear-gradient(to right, transparent, #000 35%);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 35%);
}

.dsh-float-card {
  position: absolute;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 24px 48px rgba(18, 27, 52, 0.15);
  font-family: "Inter", sans-serif;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.dsh-float-card--menu {
  top: 60px;
  left: 34px;
  display: grid;
  width: min(270px, 62%);
  padding: 8px;
  transform: rotate(-2.4deg);
}

.dsh-float-card--menu span {
  padding: 11px 12px;
  border-radius: 12px;
  color: var(--ink-soft);
  font-size: 13px;
}

.dsh-float-card--menu span + span {
  border-top: 1px solid rgba(21, 23, 28, 0.06);
}

.dsh-float-card--menu .is-hl {
  border-top-color: transparent;
  background: var(--blue-100);
  color: var(--blue-700);
  font-weight: 650;
}

.dsh-float-card--menu .is-hl + span {
  border-top-color: transparent;
}

.dsh-float-card--popup {
  right: 30px;
  bottom: 34px;
  display: grid;
  width: min(250px, 58%);
  gap: 8px;
  padding: 18px;
  text-align: center;
  transform: rotate(2.6deg);
}

.dsh-float-card--popup b {
  font-size: 16px;
}

.dsh-float-card--popup small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.dsh-float-btn {
  margin-top: 4px;
  padding: 10px;
  border-radius: 12px;
  background: var(--blue-600);
  color: #ffffff;
  font-size: 13px;
  font-weight: 650;
}

.dsh-float-card--push {
  top: 96px;
  right: 30px;
  left: 30px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 11px;
  padding: 14px;
  background: rgba(245, 245, 247, 0.96);
  transform: rotate(-1.6deg);
}

.dsh-float-card--push img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.dsh-float-card--push > span {
  display: grid;
  gap: 3px;
}

.dsh-float-card--push small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
}

.dsh-float-card--push b {
  font-size: 13px;
  line-height: 1.35;
}

.dsh-float-card--push em {
  color: var(--ink-soft);
  font-size: 12px;
  font-style: normal;
}

.dsh-float-card--repeat {
  right: 44px;
  bottom: 40px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px 13px 13px;
  transform: rotate(2deg);
}

.dsh-repeat-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  background: var(--yellow-soft);
  color: #8a6100;
  font-size: 20px;
  font-weight: 700;
}

.dsh-float-card--repeat span:last-child {
  display: grid;
  gap: 2px;
}

.dsh-float-card--repeat b {
  font-size: 14px;
}

.dsh-float-card--repeat small {
  color: var(--muted);
  font-size: 11px;
}

.dsh-float-card--note {
  top: 56px;
  left: 6%;
  display: grid;
  width: min(280px, 52%);
  gap: 8px;
  padding: 16px 18px;
  transform: rotate(-2deg);
}

.dsh-float-card--note small {
  color: var(--blue-700);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dsh-float-card--note p {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
}

.dsh-float-card--create {
  right: 30px;
  bottom: 40px;
  display: grid;
  width: min(300px, 56%);
  gap: 12px;
  padding: 16px;
  transform: rotate(2deg);
}

.dsh-float-card--create b {
  font-size: 14px;
}

.dsh-create-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.dsh-create-grid span {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 10px 4px;
  border: 1px solid rgba(21, 23, 28, 0.06);
  border-radius: 14px;
  background: #f7f7f9;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 600;
}

.dsh-create-grid img {
  width: 32px;
  height: 32px;
}

.dsh-create-grid .is-hl {
  border-color: rgba(47, 107, 255, 0.3);
  background: var(--blue-100);
  color: var(--blue-700);
}

@media (prefers-reduced-motion: no-preference) {
  .dsh-float-card {
    animation: dsh-card-bob 6.4s ease-in-out infinite;
  }

  .dsh-float-card:nth-child(2) {
    animation-delay: -3.2s;
  }
}

@keyframes dsh-card-bob {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -6px;
  }
}

/* ===================== Финальный блок ===================== */

.dsh-start {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.dsh-start-photo {
  position: relative;
  z-index: 1;
  width: 168px;
  height: 168px;
  overflow: hidden;
  border: 4px solid #ffffff;
  border-radius: 30px;
  box-shadow: 0 18px 40px rgba(28, 39, 70, 0.16);
  transform: rotate(-3deg);
}

.dsh-start-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dsh-start .start-copy a {
  color: var(--blue-700);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ===================== Адаптив ===================== */

@media (max-width: 1180px) {
  .dsh-teaser,
  .dsh-teaser--recipe {
    grid-template-columns: 1fr;
  }

  .dsh-teaser--recipe .template-teaser-copy {
    order: 0;
  }

  .dsh-steps {
    max-width: none;
  }
}

@media (max-width: 1180px) and (min-width: 821px) {
  .dsh-tool--wide .tool-copy {
    max-width: 44%;
  }

  .dsh-tool-art--wide {
    left: 46%;
  }

  .dsh-float-card--note {
    left: 2%;
    width: 240px;
  }

  .dsh-float-card--create {
    right: 16px;
    width: 260px;
  }
}

@media (max-width: 820px) {
  .dish-servings-card {
    right: 8px;
    bottom: 24px;
    width: min(300px, 62%);
  }

  .tool-card.dsh-tool--wide {
    min-height: 680px;
  }

  .dsh-tool--wide .tool-copy {
    max-width: 400px;
    padding-bottom: 0;
  }

  .dsh-tool-art--wide {
    top: auto;
    left: 0;
    height: 340px;
  }

  .dsh-tool-art--wide::before {
    mask-image: linear-gradient(to bottom, transparent, #000 30%);
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 30%);
  }

  .dsh-float-card--note {
    top: 30px;
    left: 20px;
    width: min(280px, 72%);
  }

  .dsh-float-card--create {
    right: 16px;
    bottom: 24px;
    width: min(300px, 78%);
  }

  .dsh-start {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .dsh-start-photo {
    width: 132px;
    height: 132px;
    border-radius: 26px;
  }
}

@media (max-width: 580px) {
  .dish-servings-card {
    bottom: 300px;
    grid-template-columns: 48px minmax(0, 1fr);
    width: 74%;
    gap: 9px;
    padding: 10px 12px 10px 10px;
    border-radius: 18px;
  }

  .dish-servings-card > img {
    width: 48px;
    height: 48px;
  }

  .dish-servings-copy strong {
    font-size: 13px;
  }

  .dsh-teaser {
    padding: 40px 18px 34px;
  }

  .dsh-art.journey-live {
    --jl-s: 0.7;
    margin: 0 -8px;
    padding: 20px 8px 40px;
    border-radius: 24px;
  }

  .dsh-art .jl-chip {
    min-width: 0;
  }

  .dsh-step {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 11px;
    padding: 11px 12px 13px 11px;
  }

  .dsh-step > b {
    width: 30px;
    height: 30px;
    border-radius: 10px;
  }

  .dsh-tools .dsh-tool {
    min-height: 0;
  }

  .dsh-tool .dsh-tool-art {
    position: relative;
    inset: auto;
    display: grid;
    gap: 18px;
    height: auto;
    padding: 24px 20px;
  }

  .dsh-tool-art .dsh-float-card {
    position: relative;
    inset: auto;
    justify-self: start;
    width: fit-content;
    max-width: min(100%, 300px);
  }

  .dsh-tool-art .dsh-float-card:nth-child(2) {
    justify-self: end;
  }
}

@media (max-width: 360px) {
  .dsh-art.journey-live {
    --jl-s: 0.62;
  }
}

/* ===================== Экраны по виджетам приложения ===================== */

/* DetailActionsBar на странице рецепта: «Удалить» · «В список покупок» · «Редактировать» */
.dsh-detail-bar {
  position: absolute;
  right: 12px;
  bottom: 16px;
  left: 12px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 36px;
  align-items: center;
  gap: 10px;
  padding: 6px;
  border: 1px solid #e3e5e8;
  border-radius: 40px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(28, 39, 70, 0.1);
}

.dsh-round {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: rgba(118, 118, 128, 0.1);
  color: var(--dsh-blue);
  font-size: 14px;
}

.dsh-round--red {
  color: #ff3b30;
}

.dsh-detail-center {
  padding: 8px 0;
  border-radius: 999px;
  color: var(--dsh-blue);
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  transition: background 0.2s ease;
}

.dsh-detail-center.is-pressed {
  background: rgba(0, 122, 255, 0.1);
}

/* Слой нативных экранов поверх экрана рецепта */
.dsh-overlay.jl-app {
  z-index: 5;
  background: transparent;
  pointer-events: none;
}

.dsh-list-page {
  position: absolute;
  inset: 0;
  background: #ffffff;
  transform: translateX(104%);
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.dsh-art.is-result .dsh-list-page {
  transform: none;
}

/* _TargetListPickerSheet: showCupertinoModalPopup, высота 94% экрана */
.dsh-target {
  position: absolute;
  z-index: 3;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.35s ease;
}

.dsh-art.is-target .dsh-target {
  background: rgba(0, 0, 0, 0.2);
}

.dsh-target-sheet {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  height: 94%;
  padding: 12px 16px 16px;
  border-radius: 22px 22px 0 0;
  background: #f2f2f7;
  transform: translateY(102%);
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.dsh-art.is-target .dsh-target-sheet {
  transform: none;
}

.dsh-target-grabber {
  align-self: center;
  width: 42px;
  height: 5px;
  border-radius: 999px;
  background: #c7c7cc;
}

.dsh-target-title {
  margin-top: 12px;
  font-size: 20px;
  font-weight: 700;
  text-align: center;
}

.dsh-target-sub {
  margin: 6px 0 0;
  color: #999999;
  font-size: 13px;
  text-align: center;
}

/* CupertinoSearchTextField */
.dsh-target-search {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  margin: 14px 8px 0;
  padding: 0 8px;
  border-radius: 10px;
  background: rgba(118, 118, 128, 0.12);
  color: rgba(60, 60, 67, 0.6);
  font-size: 17px;
}

.dsh-target-search svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.2;
}

/* ListsFamilyFilterBar + кнопка даты */
.dsh-target-filter {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 12px 8px 0;
  padding: 2px;
  border: 0.6px solid rgba(255, 255, 255, 0.25);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.5);
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.08),
    0 2px 6px rgba(0, 0, 0, 0.04);
}

.dsh-target-seg {
  display: grid;
  flex: 1;
  grid-template-columns: 1fr 1fr;
  padding: 2px;
  border: 0.6px solid rgba(60, 60, 67, 0.05);
  border-radius: 16px;
  background: rgba(242, 242, 247, 0.6);
}

.dsh-target-seg span {
  margin: 0 2px;
  padding: 10px 0;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
}

.dsh-target-seg .is-family {
  border: 0.6px solid rgba(255, 207, 74, 0.28);
  background: rgba(255, 207, 74, 0.18);
  color: #ffcf4a;
}

.dsh-target-seg .is-personal {
  border: 0.6px solid rgba(0, 122, 255, 0.28);
  background: rgba(0, 122, 255, 0.18);
  color: #007aff;
}

.dsh-target-filter > i {
  width: 1px;
  height: 22px;
  background: rgba(60, 60, 67, 0.12);
}

.dsh-target-cal {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #007aff;
  font-size: 20px;
}

.dsh-target-create {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 22px 4px;
  color: #007aff;
  font-size: 16px;
  font-weight: 500;
}

.dsh-target-create svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.2;
}

.dsh-target-list {
  display: grid;
  flex: 1;
  align-content: start;
  gap: 3.33px;
}

/* ListTile обычного списка: collectionSurfaceDecoration */
.dsh-target-tile.tpl-tile {
  border-color: rgba(216, 218, 222, 0.82);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(240, 242, 244, 0.92));
  transition: box-shadow 0.4s ease;
}

.dsh-target-tile.is-pressed {
  box-shadow: 0 4px 22px 1px rgba(0, 122, 255, 0.22);
}

.dsh-target-cancel {
  padding: 14px 0 20px;
  color: #007aff;
  font-size: 17px;
  text-align: center;
}

/* _TemplateItemsEditorSheet «Выбор позиций из шаблона» (CupertinoPageRoute):
   фон AppPageBackground.aquaCoral, карточки SettingsPagePalette.cardDecoration,
   CupertinoSwitch с activeTrackColor = SettingsPagePalette.accent (#2F6BFF). */
.dsh-ed {
  position: absolute;
  z-index: 12;
  inset: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: linear-gradient(135deg, #dfeaff 0%, #eff4ff 52%, #d6e4ff 100%);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.12);
  transform: translateX(104%);
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
  isolation: isolate;
}

.dsh-ed::before,
.dsh-ed::after {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  content: "";
}

.dsh-ed::before {
  top: 92px;
  left: -118px;
  width: 286px;
  height: 286px;
  background: rgba(86, 214, 210, 0.22);
}

.dsh-ed::after {
  top: 470px;
  right: -76px;
  width: 184px;
  height: 184px;
  background: rgba(255, 142, 122, 0.21);
}

.dsh-art.is-editor .dsh-ed {
  transform: none;
}

.dsh-ed .jl-statusbar,
.dsh-ed .tpl-picker-nav {
  background: #dfeaff;
}

.dsh-ed .tpl-picker-nav strong {
  max-width: 230px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dsh-ed-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  padding: 12px 16px 34px;
}

.dsh-ed-title {
  color: #000000;
  font-size: 20px;
  font-weight: 700;
}

.dsh-ed-count {
  margin-top: 12px;
  color: rgba(60, 60, 67, 0.6);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.dsh-ed-list {
  display: grid;
  flex: 1;
  align-content: start;
  gap: 10px;
  min-height: 0;
  margin-top: 12px;
  overflow: hidden;
}

.dsh-ed-card {
  display: grid;
  grid-template-columns: 51px minmax(0, 1fr) 36px;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(247, 250, 255, 0.86));
  box-shadow:
    0 14px 28px rgba(47, 107, 255, 0.1),
    0 2px 6px rgba(23, 62, 159, 0.04);
}

.dsh-ed-text {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.dsh-ed-text b {
  overflow: hidden;
  color: #000000;
  font-size: 16px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dsh-ed-text small {
  color: rgba(60, 60, 67, 0.6);
  font-size: 12px;
}

.dsh-ed-pencil {
  justify-self: center;
  width: 22px;
  height: 22px;
  color: #2f6bff;
  stroke-width: 1.8;
}

/* CupertinoSwitch 51×31 */
.dsh-cswitch {
  position: relative;
  width: 51px;
  height: 31px;
  border-radius: 999px;
  background: rgba(120, 120, 128, 0.16);
  transition: background 0.25s ease;
}

.dsh-cswitch::after {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow:
    0 3px 8px rgba(0, 0, 0, 0.15),
    0 3px 1px rgba(0, 0, 0, 0.06);
  content: "";
  transition: transform 0.25s ease;
}

.dsh-cswitch.is-on {
  background: #2f6bff;
}

.dsh-cswitch.is-on::after {
  transform: translateX(20px);
}

.dsh-ed-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  margin-top: 10px;
  border-radius: 12px;
  background: #2f6bff;
  color: #ffffff;
  font-size: 17px;
  font-weight: 600;
  transition: transform 0.15s ease;
}

.dsh-ed-cancel {
  margin-top: 6px;
  padding: 14px 0;
  color: #2f6bff;
  font-size: 17px;
  text-align: center;
}

