/* Home workout widget: movement-led card with two clear actions. */
.home-screen-mode .home-dashboard-v2 > .home-workout-widget {
  padding: 20px;
  border: 1px solid rgba(183, 255, 0, .34);
  border-radius: 24px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, .22), inset 0 1px 0 rgba(255, 255, 255, .08);
  overflow: hidden;
  background-image: linear-gradient(112deg, rgba(5, 11, 14, .96), rgba(10, 22, 28, .78)), url("https://nutriguru.cloud/active1.jpg");
  background-position: center;
  background-size: cover;
}

.home-screen-mode .home-workout-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.home-screen-mode .home-workout-head > div {
  min-width: 0;
  width: 100%;
}

.home-screen-mode .home-workout-widget .home-eyebrow {
  text-transform: none;
  letter-spacing: .03em;
  font-size: 14px;
}

.home-screen-mode .home-workout-icon {
  display: grid;
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  place-items: center;
  margin: 0;
  position: relative;
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 22px;
  color: #ffd08a;
  background: linear-gradient(145deg, rgba(255, 184, 82, .25), rgba(255, 255, 255, .07));
  -webkit-backdrop-filter: blur(18px) saturate(155%);
  backdrop-filter: blur(18px) saturate(155%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35),
    inset 0 -1px 0 rgba(0, 0, 0, .24),
    0 0 0 1px rgba(255, 173, 50, .13),
    0 12px 30px rgba(255, 138, 0, .18),
    0 0 28px rgba(255, 190, 100, .12);
  font-size: 32px;
  line-height: 1;
}

.home-screen-mode .home-workout-icon::after {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 17px;
  pointer-events: none;
}

.home-screen-mode .home-workout-icon i {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 8px rgba(255, 191, 107, .4));
}

/* The legacy achievements card adds a trophy through ::before. The workout
   card has its own accessible Font Awesome movement icon instead. */
.home-screen-mode .home-workout-widget h2::before {
  content: none;
}

.home-screen-mode .home-workout-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  max-width: 420px;
  margin-inline: auto;
  margin-top: 20px;
}

.home-screen-mode .home-workout-action {
  display: inline-flex;
  min-width: 0;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 17px;
  color: #f8fafc;
  background: linear-gradient(145deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .045));
  -webkit-backdrop-filter: blur(16px) saturate(145%);
  backdrop-filter: blur(16px) saturate(145%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18),
    inset 0 -1px 0 rgba(0, 0, 0, .2),
    0 8px 22px rgba(0, 0, 0, .16);
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.home-screen-mode .home-workout-action-add {
  color: #ffe3b7;
  border-color: rgba(255, 182, 88, .46);
  background: linear-gradient(145deg, rgba(255, 170, 48, .3), rgba(255, 255, 255, .06));
}

.home-screen-mode .home-workout-action-create {
  color: #e5ffad;
  border-color: rgba(183, 255, 0, .42);
  background: linear-gradient(145deg, rgba(183, 255, 0, .2), rgba(255, 255, 255, .05));
}

.home-screen-mode .home-workout-action i {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 9px;
  background: rgba(255, 255, 255, .1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 0 12px rgba(255, 255, 255, .07);
  font-size: 12px;
}

.home-screen-mode .home-workout-action:hover,
.home-screen-mode .home-workout-action:focus-visible {
  outline: none;
  border-color: rgba(255, 255, 255, .7);
  transform: translateY(-1px);
}

@media (min-width: 761px) {
  .home-screen-mode .home-dashboard-v2 > .home-workout-widget {
    grid-column: 2;
    margin-top: 0;
  }
}

@media (max-width: 760px) {
  .home-screen-mode .home-dashboard-v2 > .home-workout-widget {
    padding: 16px;
  }
}

@media (max-width: 390px) {
  .home-screen-mode .home-workout-head { gap: 10px; }
  .home-screen-mode .home-workout-icon { flex-basis: 60px; width: 60px; height: 60px; border-radius: 19px; font-size: 27px; }
  .home-screen-mode .home-workout-icon::after { inset: 5px; border-radius: 14px; }
  .home-screen-mode .home-workout-actions { gap: 8px; }
  .home-screen-mode .home-workout-action { padding-inline: 8px; font-size: 13px; }
}

/* Fuchsia fury palette: vivid color while keeping the liquid-glass depth. */
.home-screen-mode .home-dashboard-v2 > .home-workout-widget {
  position: relative;
  border-color: rgba(255, 68, 190, .62);
  background-image:
    linear-gradient(112deg, rgba(10, 7, 18, .97), rgba(25, 10, 34, .82)),
    url("https://nutriguru.cloud/active1.jpg");
  box-shadow:
    inset 0 1px 0 rgba(255, 220, 250, .16),
    0 12px 30px rgba(0, 0, 0, .24);
}

.home-screen-mode .home-dashboard-v2 > .home-workout-widget::before {
  content: '';
  position: absolute;
  inset: 1px;
  border: 1px solid rgba(255, 147, 224, .22);
  border-radius: 23px;
  pointer-events: none;
}

.home-screen-mode .home-workout-widget .home-eyebrow {
  color: #ff4fc3;
  text-shadow: none;
}

.home-screen-mode .home-workout-icon {
  border-color: rgba(255, 176, 235, .58);
  color: #ffb2e9;
  background: linear-gradient(145deg, rgba(255, 61, 190, .28), rgba(117, 51, 161, .2));
  box-shadow:
    inset 0 1px 0 rgba(255, 240, 252, .42),
    inset 0 -1px 0 rgba(20, 4, 29, .3),
    0 10px 24px rgba(0, 0, 0, .22);
}

.home-screen-mode .home-workout-icon::after {
  border-color: rgba(255, 205, 243, .28);
}

.home-screen-mode .home-workout-icon i {
  color: #ffc1ed;
  filter: none;
}

.home-screen-mode .home-workout-action-add,
.home-screen-mode .home-workout-action-create {
  border-color: rgba(255, 116, 211, .5);
  background: linear-gradient(145deg, rgba(255, 54, 187, .23), rgba(116, 45, 153, .13));
  box-shadow:
    inset 0 1px 0 rgba(255, 226, 250, .22),
    0 9px 25px rgba(0, 0, 0, .2);
}

.home-screen-mode .home-workout-action-add { color: #ffd2f3; }
.home-screen-mode .home-workout-action-create { color: #ffc0ed; }

.home-screen-mode .home-workout-action i {
  border-color: rgba(255, 215, 246, .32);
  background: rgba(255, 83, 201, .14);
  box-shadow: inset 0 1px 0 rgba(255, 238, 252, .28);
}

/* Match both activity actions to the fasting widget CTA dimensions. */
.home-screen-mode .home-dashboard-v2 > .home-workout-widget .home-workout-actions {
  grid-template-columns: 1fr;
  width: min(220px, 100%);
  max-width: 220px;
  gap: 10px;
}

.home-screen-mode .home-dashboard-v2 > .home-workout-widget .home-workout-action-add,
.home-screen-mode .home-dashboard-v2 > .home-workout-widget .home-workout-action-create {
  width: 100% !important;
  max-width: none !important;
  height: 54px !important;
  min-height: 54px !important;
  margin-inline: 0 !important;
  border-radius: 18px;
  padding: 12px 20px;
  font-size: 15px;
}

@media (max-width: 600px) {
  .home-screen-mode .home-dashboard-v2 > .home-workout-widget .home-workout-actions {
    width: min(210px, 100%);
    max-width: 210px;
  }

  .home-screen-mode .home-dashboard-v2 > .home-workout-widget .home-workout-action-add,
  .home-screen-mode .home-dashboard-v2 > .home-workout-widget .home-workout-action-create {
    height: 52px !important;
    min-height: 52px !important;
    font-size: 14px;
  }
}

