.dashboard-page .client-home-panel {
  --home-today-width: 680px;
}

.dashboard-page .client-home-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.dashboard-page .client-home-grid > * {
  width: min(100%, var(--home-today-width));
  min-width: 0;
  box-sizing: border-box;
}

.dashboard-page .client-home-panel > .panel-heading {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dashboard-page .client-home-panel > .panel-heading > div:first-child {
  flex: 1 1 auto;
  min-width: 0;
}

.dashboard-page .client-home-today-workout {
  order: 1;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.dashboard-page .client-home-workout-button {
  width: 100%;
  min-height: 64px;
  border: 2px solid var(--lime);
  border-radius: 18px;
  color: var(--black);
  background: var(--lime);
  font-size: 1.08rem;
  font-weight: 900;
}

.dashboard-page :is(.client-home-message-button, .client-home-settings-button) {
  position: relative;
  display: grid !important;
  flex: 0 0 48px;
  width: 48px !important;
  inline-size: 48px !important;
  min-width: 48px !important;
  min-inline-size: 48px !important;
  max-width: 48px !important;
  max-inline-size: 48px !important;
  height: 48px !important;
  min-height: 48px !important;
  padding: 0 !important;
  margin: 0 !important;
  place-items: center;
  border: 1px solid var(--black);
  border-radius: 50%;
  color: var(--lime);
  background: var(--black);
  cursor: pointer;
  overflow: visible !important;
  text-overflow: clip !important;
}

.dashboard-page :is(.client-home-message-button, .client-home-settings-button) svg {
  width: 25px;
  height: 25px;
}

.dashboard-page .client-home-message-button:disabled {
  cursor: wait;
  opacity: .5;
}

.dashboard-page :is(.client-home-message-button, .client-home-settings-button):focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.dashboard-page .client-home-message-button .fwb-message-badge {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 22px;
  padding: 3px 6px;
  border: 2px solid #f2f2ed;
}

.dashboard-page .client-home-settings-button {
  position: relative;
  display: grid;
  flex: 0 0 54px;
  width: 54px !important;
  height: 54px !important;
  padding: 3px !important;
  overflow: visible;
  place-items: center;
  color: var(--black);
  background: var(--paper);
  border: 2px solid rgba(55, 61, 54, .2);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(28, 34, 27, .14);
}

.dashboard-page .client-home-settings-button img,
.dashboard-page .client-home-settings-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.dashboard-page .client-home-settings-button img {
  display: block;
  object-fit: cover;
}

.dashboard-page .client-home-settings-button img[hidden],
.dashboard-page .client-home-settings-placeholder[hidden] {
  display: none;
}

.dashboard-page .client-home-settings-placeholder {
  display: grid;
  place-items: center;
  color: #263000;
  background: rgba(255, 255, 255, .42);
}

.dashboard-page .client-home-settings-placeholder svg {
  width: 28px;
  height: 28px;
}

.dashboard-page .client-home-settings-badge {
  position: absolute;
  right: -4px;
  bottom: -4px;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: var(--black);
  background: var(--lime);
  border: 2px solid #f7f8f5;
  border-radius: 50%;
}

.dashboard-page .client-home-settings-badge svg {
  width: 14px;
  height: 14px;
}

.dashboard-page .client-home-settings-button .client-dashboard-nav-unread {
  top: -7px;
  right: -7px;
}

.dashboard-page .client-home-resume-card {
  order: 0;
}

.dashboard-page .client-weekly-activity {
  order: 2;
}

.dashboard-page .client-home-coach-note {
  order: 3;
  gap: 22px;
  padding: clamp(20px, 4vw, 28px);
  border-radius: 20px;
  background: #e8e8e3;
}

.dashboard-page .client-home-coach-note h3 {
  font-size: clamp(1.55rem, 5vw, 2.65rem);
}

.dashboard-page .client-home-coach-note .fwb-message-launch {
  margin: 0;
  background: rgba(255, 255, 255, .56);
}

.dashboard-page .client-home-more {
  order: 4;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
}

.dashboard-page .client-home-more > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 16px;
  padding: 0 22px;
  font-size: .9rem;
  font-weight: 900;
  letter-spacing: .04em;
  list-style: none;
  text-transform: uppercase;
  cursor: pointer;
}

.dashboard-page .client-home-more > summary::-webkit-details-marker {
  display: none;
}

.dashboard-page .client-home-more > summary:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: -3px;
}

.dashboard-page .client-home-more-icon {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--paper);
  background: var(--black);
  font-size: 1.35rem;
  line-height: 1;
  transition: transform .2s ease;
}

.dashboard-page .client-home-more[open] .client-home-more-icon {
  transform: rotate(45deg);
}

.dashboard-page .client-home-more-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0 12px 12px;
  border-top: 1px solid var(--line);
}

.dashboard-page .client-home-more-grid > * {
  min-width: 0;
  margin-top: 12px;
}

.dashboard-page .client-home-more-grid > .client-home-snapshot-section,
.dashboard-page .client-home-more-grid > .client-home-monthly-report-card,
.dashboard-page .client-home-more-grid > .client-home-card-mood,
.dashboard-page .client-home-more-grid > .client-home-program-card,
.dashboard-page .client-home-more-grid > .client-home-card-checklist,
.dashboard-page .client-home-more-grid > .client-achievements-home {
  grid-column: 1 / -1;
}

.dashboard-page .client-home-more-grid .client-home-card {
  min-height: 170px;
}

@media (max-width: 720px) {
  .dashboard-page .client-home-grid {
    gap: 12px;
  }

  .dashboard-page .client-home-today-workout {
    min-height: 0;
  }

  .dashboard-page .client-home-more-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .dashboard-page .client-home-more-grid > * {
    grid-column: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dashboard-page .client-home-more-icon {
    transition: none;
  }
}
