/* Premium recipe widget pass: centered composition, food photography and
   compact glass actions. The existing button handlers remain untouched. */
.home-screen-mode .home-dashboard-v2 > .home-recipe-card {
  position: relative;
  display: flex;
  min-height: 342px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 24px 24px;
  overflow: hidden;
  border: 2px solid rgba(183, 255, 0, .72);
  border-radius: 30px;
  background-image:
    linear-gradient(180deg, rgba(4, 10, 15, .62) 0%, rgba(4, 10, 15, .5) 42%, rgba(4, 10, 15, .82) 100%),
    url("https://www.nutriguru.cloud/food.jpg");
  background-position: center;
  background-size: cover;
  box-shadow:
    0 22px 48px rgba(0, 0, 0, .32),
    0 0 30px rgba(183, 255, 0, .14),
    inset 0 1px 0 rgba(255, 255, 255, .18),
    inset 0 -1px 0 rgba(0, 0, 0, .35);
}

.home-screen-mode .home-recipe-card::before {
  position: absolute;
  inset: 1px;
  z-index: 0;
  content: '';
  border-radius: 29px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .1), transparent 30%, transparent 68%, rgba(107, 217, 255, .08));
  pointer-events: none;
}

.home-screen-mode .home-recipe-card > .home-card-head {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(100%, 820px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  text-align: center;
}

.home-screen-mode .home-recipe-card > .home-card-head > div {
  width: 100%;
  text-align: center;
}

.home-screen-mode .home-recipe-card .home-card-head h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(29px, 4.8vw, 42px);
  font-weight: 950;
  letter-spacing: -.05em;
  line-height: 1;
  text-align: center;
  text-shadow: 0 3px 18px rgba(0, 0, 0, .48);
}

.home-screen-mode .home-recipe-card .home-card-head p {
  width: min(100%, 700px);
  margin: 13px auto 0;
  color: rgba(241, 247, 249, .9);
  font-size: clamp(15px, 2.1vw, 19px);
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
  text-wrap: balance;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .58);
}

.home-screen-mode .home-recipe-card .home-recipe-actions {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(100%, 620px);
  min-width: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0 auto;
}

/* Compact two-line controls: the label area stays flexible so long Russian
   strings wrap cleanly rather than overflowing on narrow screens. */
.home-screen-mode .home-recipe-card .home-recipe-action {
  display: grid;
  width: 100%;
  min-width: 0;
  min-height: 62px;
  grid-template-columns: 38px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 8px;
  padding: 7px 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 231, 191, .7);
  border-radius: 19px;
  color: #171006 !important;
  background: linear-gradient(145deg, rgba(255, 180, 62, .84), rgba(255, 130, 0, .62));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .4),
    inset 0 -1px 0 rgba(102, 42, 0, .2),
    0 10px 24px rgba(0, 0, 0, .24);
  -webkit-backdrop-filter: blur(16px) saturate(145%);
  backdrop-filter: blur(16px) saturate(145%);
  text-align: center;
  transition: transform .18s ease, filter .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.home-screen-mode .home-recipe-card .home-recipe-action:nth-child(2) {
  border-color: rgba(225, 255, 150, .84);
  color: #101500 !important;
  background: linear-gradient(145deg, rgba(207, 255, 35, .88), rgba(142, 222, 0, .62));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .46),
    inset 0 -1px 0 rgba(48, 93, 0, .2),
    0 10px 24px rgba(0, 0, 0, .24);
}

.home-screen-mode .home-recipe-card .home-recipe-action > i {
  position: relative;
  display: grid;
  width: 34px;
  height: 34px;
  grid-row: 1 / span 2;
  align-items: center;
  justify-content: center;
  justify-self: center;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, .62);
  border-radius: 10px;
  color: #0d1013 !important;
  background: rgba(255, 255, 255, .42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .68), inset 0 -1px 0 rgba(0, 0, 0, .12), 0 5px 12px rgba(0, 0, 0, .16);
  font-size: 14px;
  line-height: 1;
  text-shadow: none;
}

.home-screen-mode .home-recipe-card .home-recipe-action > i::after {
  display: none;
}

.home-screen-mode .home-recipe-card .home-recipe-action strong,
.home-screen-mode .home-recipe-card .home-recipe-action span {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  text-align: center;
  text-shadow: none;
}

.home-screen-mode .home-recipe-card .home-recipe-action strong {
  color: #171006 !important;
  font-size: clamp(13px, 1.65vw, 15px);
  font-weight: 950;
  line-height: 1.12;
}

.home-screen-mode .home-recipe-card .home-recipe-action span {
  margin-top: 3px;
  color: rgba(23, 16, 6, .78) !important;
  font-size: clamp(10px, 1.3vw, 12px);
  font-weight: 650;
  line-height: 1.18;
}

.home-screen-mode .home-recipe-card .home-recipe-action:nth-child(2) strong {
  color: #101500 !important;
}

.home-screen-mode .home-recipe-card .home-recipe-action:nth-child(2) span {
  color: rgba(16, 21, 0, .76) !important;
}

.home-screen-mode .home-recipe-card .home-recipe-action:hover,
.home-screen-mode .home-recipe-card .home-recipe-action:focus-visible {
  border-color: rgba(255, 247, 221, .98);
  filter: brightness(1.06) saturate(1.04);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .52),
    0 14px 30px rgba(0, 0, 0, .3);
  transform: translateY(-1px);
}

.home-screen-mode .home-recipe-card .home-recipe-action:active {
  filter: brightness(.98);
  transform: translateY(1px) scale(.99);
}

@media (max-width: 760px) {
  .home-screen-mode .home-dashboard-v2 > .home-recipe-card {
    min-height: 0;
    padding: 26px 18px 20px;
    border-radius: 26px;
  }

  .home-screen-mode .home-recipe-card::before { border-radius: 25px; }

  .home-screen-mode .home-recipe-card .home-card-head {
    margin-bottom: 17px;
  }

  .home-screen-mode .home-recipe-card .home-card-head h2 {
    font-size: clamp(28px, 8vw, 36px);
  }

  .home-screen-mode .home-recipe-card .home-card-head p {
    width: min(100%, 440px);
    margin-top: 11px;
    font-size: 16px;
    line-height: 1.38;
  }

  .home-screen-mode .home-recipe-card .home-recipe-actions {
    width: min(100%, 360px);
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .home-screen-mode .home-recipe-card .home-recipe-action {
    min-height: 58px;
    grid-template-columns: 36px minmax(0, 1fr);
    column-gap: 8px;
    padding: 7px 10px;
    border-radius: 15px;
  }

  .home-screen-mode .home-recipe-card .home-recipe-action > i {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    font-size: 14px;
  }

  .home-screen-mode .home-recipe-card .home-recipe-action strong {
    font-size: 14px;
  }

  .home-screen-mode .home-recipe-card .home-recipe-action span {
    font-size: 11px;
  }
}

@media (max-width: 390px) {
  .home-screen-mode .home-dashboard-v2 > .home-recipe-card {
    padding-right: 16px;
    padding-left: 16px;
  }

  .home-screen-mode .home-recipe-card .home-card-head p {
    font-size: 15px;
  }

  .home-screen-mode .home-recipe-card .home-recipe-action {
    min-height: 54px;
    grid-template-columns: 34px minmax(0, 1fr);
    column-gap: 7px;
    padding-right: 8px;
    padding-left: 8px;
  }

  .home-screen-mode .home-recipe-card .home-recipe-action > i {
    width: 30px;
    height: 30px;
    font-size: 13px;
  }

  .home-screen-mode .home-recipe-card .home-recipe-action strong {
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-screen-mode .home-recipe-card .home-recipe-action { transition: none; }
}

/* Keep the primary actions on the Home screen compact and aligned. Every
   widget CTA uses one shared footprint; recipe labels still have enough room
   for their two-line descriptions. */
.home-screen-mode .home-dashboard-v2 {
  --home-action-width: min(100%, 260px);
  --home-action-height: 62px;
}

.home-screen-mode .home-plan-card .home-plan-button,
.home-screen-mode .home-recipe-card .home-recipe-action,
.home-screen-mode .home-meals-card .home-meals-cta,
.home-screen-mode .home-coach-card .home-coach-action,
.home-screen-mode .home-workout-widget .home-workout-action,
.home-screen-mode .home-dashboard-v2 .fasting-cta,
.home-screen-mode .home-dashboard-v2 .fasting-link,
.home-screen-mode .home-dashboard-v2 .fasting-outline-button {
  box-sizing: border-box;
  width: var(--home-action-width);
  height: var(--home-action-height);
  min-height: var(--home-action-height);
  max-width: 100%;
}

.home-screen-mode .home-plan-card .home-plan-button,
.home-screen-mode .home-meals-card .home-meals-cta,
.home-screen-mode .home-coach-card .home-coach-action {
  margin-right: auto;
  margin-left: auto;
}

.home-screen-mode .home-recipe-card .home-recipe-actions {
  width: var(--home-action-width);
  max-width: 100%;
  grid-template-columns: 1fr;
  justify-items: center;
}

.home-screen-mode .home-recipe-card .home-recipe-action {
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-rows: auto auto;
  padding: 6px 9px;
  border-radius: 17px;
}

.home-screen-mode .home-recipe-card .home-recipe-action > i {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  font-size: 13px;
}

.home-screen-mode .home-recipe-card .home-recipe-action strong {
  font-size: 14px;
  line-height: 1.1;
}

.home-screen-mode .home-recipe-card .home-recipe-action span {
  margin-top: 2px;
  font-size: 11px;
  line-height: 1.15;
}

.home-screen-mode .home-workout-actions {
  width: min(100%, 620px);
  max-width: 100%;
  grid-template-columns: 1fr;
  justify-items: center;
}

.home-screen-mode .home-workout-action {
  width: var(--home-action-width);
  height: var(--home-action-height);
  min-height: var(--home-action-height);
  max-width: 100%;
  margin-inline: auto;
}

@media (max-width: 390px) {
  .home-screen-mode .home-dashboard-v2 {
    --home-action-width: min(100%, 248px);
    --home-action-height: 58px;
  }

  .home-screen-mode .home-recipe-card .home-recipe-action {
    padding-right: 8px;
    padding-left: 8px;
  }
}

/* NG Coach: neon glass treatment. Keep the content dark and calm while the
   lime/cyan edge makes this widget feel like the app's AI gateway. */
.home-screen-mode .home-dashboard-v2 > .home-coach-card {
  border: 1.5px solid rgba(190, 255, 42, .86) !important;
  background-image:
    radial-gradient(circle at 8% 8%, rgba(187, 255, 0, .13), transparent 31%),
    radial-gradient(circle at 92% 88%, rgba(0, 224, 255, .11), transparent 34%),
    linear-gradient(145deg, rgba(5, 18, 24, .96), rgba(6, 12, 20, .9)) !important;
  box-shadow:
    0 0 0 1px rgba(187, 255, 0, .18),
    0 0 18px rgba(187, 255, 0, .26),
    0 0 46px rgba(0, 224, 255, .1),
    inset 0 1px 0 rgba(222, 255, 160, .2),
    inset 0 -1px 0 rgba(0, 0, 0, .38) !important;
}

.home-screen-mode .home-dashboard-v2 > .home-coach-card::before {
  inset: 1px !important;
  border: 1px solid rgba(0, 238, 255, .24) !important;
  border-radius: 25px !important;
  background: linear-gradient(135deg, rgba(198, 255, 52, .1), transparent 34%, rgba(0, 214, 255, .06) 78%, transparent) !important;
  box-shadow: inset 0 0 24px rgba(157, 255, 0, .05) !important;
}

.home-screen-mode .home-coach-content .home-eyebrow,
.home-screen-mode .home-coach-content h2 {
  text-shadow: 0 0 16px rgba(190, 255, 42, .16);
}

.home-screen-mode .home-coach-content .home-eyebrow {
  color: #c7ff35 !important;
}

.home-screen-mode .home-coach-context,
.home-screen-mode .home-coach-capabilities li i,
.home-screen-mode .home-coach-example,
.home-screen-mode .home-coach-tip {
  border-color: rgba(184, 255, 91, .34) !important;
  background: linear-gradient(135deg, rgba(139, 255, 52, .1), rgba(255, 255, 255, .045)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 0 14px rgba(138, 255, 44, .06) !important;
}

.home-screen-mode .home-coach-context {
  color: #dbff9a !important;
}

.home-screen-mode .home-coach-context > i,
.home-screen-mode .home-coach-capabilities li i,
.home-screen-mode .home-coach-example i {
  color: #c7ff35 !important;
  text-shadow: 0 0 10px rgba(199, 255, 53, .58);
}

.home-screen-mode .home-coach-capabilities li {
  color: #e1edef;
}

.home-screen-mode .home-coach-action {
  width: var(--home-action-width) !important;
  height: var(--home-action-height) !important;
  min-height: var(--home-action-height) !important;
  border: 1px solid rgba(200, 255, 70, .72) !important;
  border-radius: 17px !important;
  color: #eaffba !important;
  background: linear-gradient(135deg, rgba(157, 255, 36, .18), rgba(0, 207, 230, .11)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .24),
    inset 0 -1px 0 rgba(0, 0, 0, .25),
    0 0 14px rgba(187, 255, 0, .15),
    0 10px 24px rgba(0, 0, 0, .22) !important;
  text-shadow: 0 0 10px rgba(215, 255, 135, .24);
}

.home-screen-mode .home-coach-action > i {
  color: #d2ff55 !important;
  filter: drop-shadow(0 0 7px rgba(210, 255, 85, .58));
}

.home-screen-mode .home-coach-example {
  color: #e4f5f4 !important;
}

.home-screen-mode .home-coach-action:hover,
.home-screen-mode .home-coach-action:focus-visible,
.home-screen-mode .home-coach-example:hover,
.home-screen-mode .home-coach-example:focus-visible {
  border-color: rgba(220, 255, 116, .95) !important;
  background: linear-gradient(135deg, rgba(174, 255, 52, .25), rgba(0, 219, 239, .17)) !important;
  box-shadow: 0 0 20px rgba(187, 255, 0, .22), inset 0 1px 0 rgba(255, 255, 255, .26) !important;
}

@media (max-width: 760px) {
  .home-screen-mode .home-dashboard-v2 > .home-coach-card {
    box-shadow:
      0 0 0 1px rgba(187, 255, 0, .16),
      0 0 14px rgba(187, 255, 0, .22),
      0 0 32px rgba(0, 224, 255, .08),
      inset 0 1px 0 rgba(222, 255, 160, .2),
      inset 0 -1px 0 rgba(0, 0, 0, .38) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-screen-mode .home-coach-card,
  .home-screen-mode .home-coach-action,
  .home-screen-mode .home-coach-example { transition: none; }
}

/* Final NG Coach pass: purple neon outline with calm glass controls. The
   shared action token keeps the primary CTA aligned with the other Home
   widgets, while the example prompts use one predictable touch target. */
.home-screen-mode .home-dashboard-v2 > .home-coach-card {
  border-color: rgba(216, 180, 254, .9) !important;
  background-image:
    radial-gradient(circle at 8% 8%, rgba(168, 85, 247, .18), transparent 32%),
    radial-gradient(circle at 92% 88%, rgba(124, 58, 237, .16), transparent 38%),
    linear-gradient(145deg, rgba(12, 8, 24, .97), rgba(8, 11, 22, .93)) !important;
  box-shadow:
    0 0 0 1px rgba(168, 85, 247, .25),
    0 0 18px rgba(168, 85, 247, .34),
    0 0 48px rgba(124, 58, 237, .18),
    inset 0 1px 0 rgba(244, 232, 255, .2),
    inset 0 -1px 0 rgba(0, 0, 0, .42) !important;
}

.home-screen-mode .home-dashboard-v2 > .home-coach-card::before {
  inset: 1px !important;
  border-color: rgba(216, 180, 254, .42) !important;
  background: linear-gradient(135deg, rgba(192, 132, 252, .12), transparent 38%, rgba(124, 58, 237, .1) 82%, transparent) !important;
  box-shadow: inset 0 0 26px rgba(168, 85, 247, .09) !important;
}

.home-screen-mode .home-coach-content .home-eyebrow {
  color: #e9c7ff !important;
  text-shadow: 0 0 16px rgba(192, 132, 252, .42);
}

.home-screen-mode .home-coach-context,
.home-screen-mode .home-coach-capabilities li i,
.home-screen-mode .home-coach-example,
.home-screen-mode .home-coach-tip {
  border-color: rgba(216, 180, 254, .36) !important;
  background: linear-gradient(135deg, rgba(168, 85, 247, .14), rgba(255, 255, 255, .045)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 0 16px rgba(168, 85, 247, .1) !important;
  -webkit-backdrop-filter: blur(16px) saturate(145%);
  backdrop-filter: blur(16px) saturate(145%);
}

.home-screen-mode .home-coach-context,
.home-screen-mode .home-coach-context > i,
.home-screen-mode .home-coach-capabilities li i,
.home-screen-mode .home-coach-example i {
  color: #d8a8ff !important;
  text-shadow: 0 0 11px rgba(192, 132, 252, .62);
}

/* Predictable alignment: icon / centered label / trailing affordance. */
.home-screen-mode .home-coach-action {
  display: grid !important;
  grid-template-columns: 24px minmax(0, 1fr) 24px;
  align-items: center;
  justify-items: center;
  gap: 8px;
  width: var(--home-action-width) !important;
  height: var(--home-action-height) !important;
  min-height: var(--home-action-height) !important;
  margin-inline: auto !important;
  padding: 8px 12px;
  border: 1px solid rgba(255, 222, 164, .88) !important;
  border-radius: 16px !important;
  color: #241403 !important;
  background: linear-gradient(135deg, #ffc04b 0%, #ff9e16 52%, #f47b00 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .5),
    inset 0 -1px 0 rgba(116, 48, 0, .24),
    0 0 18px rgba(255, 153, 30, .2),
    0 10px 24px rgba(0, 0, 0, .24) !important;
  -webkit-backdrop-filter: blur(18px) saturate(155%);
  backdrop-filter: blur(18px) saturate(155%);
  text-align: center;
}

.home-screen-mode .home-coach-action > i {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  color: #241403 !important;
  font-size: 12px;
  filter: none;
}

.home-screen-mode .home-coach-action > span {
  min-width: 0;
  width: 100%;
  color: #241403 !important;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.2;
  text-align: center;
}

.home-screen-mode .home-coach-example-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
}

.home-screen-mode .home-coach-example {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-height: 44px;
  padding: 9px 12px;
  border-radius: 13px;
  text-align: left;
}

.home-screen-mode .home-coach-example span {
  min-width: 0;
  max-width: 100%;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.01em;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
}

.home-screen-mode .home-coach-action:hover,
.home-screen-mode .home-coach-action:focus-visible,
.home-screen-mode .home-coach-example:hover,
.home-screen-mode .home-coach-example:focus-visible {
  border-color: rgba(233, 213, 255, .98) !important;
  background: linear-gradient(135deg, rgba(192, 132, 252, .32), rgba(124, 58, 237, .18)) !important;
  box-shadow: 0 0 24px rgba(168, 85, 247, .32), inset 0 1px 0 rgba(255, 255, 255, .28) !important;
  outline: none;
}

@media (max-width: 760px) {
  .home-screen-mode .home-coach-action {
    align-self: center !important;
  }
}

@media (max-width: 390px) {
  .home-screen-mode .home-coach-action {
    grid-template-columns: 22px minmax(0, 1fr) 22px;
    gap: 6px;
  }
}

/* Prevent glass prompt buttons from growing past the Coach card. The nested
   mobile grid has its own padding, so every sizing layer must participate in
   the same border-box width calculation. */
.home-screen-mode .home-coach-side,
.home-screen-mode .home-coach-examples,
.home-screen-mode .home-coach-example-list {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.home-screen-mode .home-coach-example {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.home-screen-mode .home-coach-example span {
  min-width: 0;
  overflow-wrap: anywhere;
}

