.dashboard-page .client-weekly-activity { grid-column: 1 / -1; width: 100%; max-width: 680px; justify-self: center; min-width: 0; }
.dashboard-page .client-gym-name-field { display: grid; gap: 6px; margin: 12px 0 10px; font-size: 13px; font-weight: 800; }
.dashboard-page .client-gym-name-field[hidden] { display: none; }
.dashboard-page .client-gym-name-field small { color: #65685e; font-weight: 500; }
.dashboard-page .client-gym-name-field input { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid var(--line, #dedfd7); border-radius: 11px; background: #fff; color: #080908; font: inherit; }
.dashboard-page .client-gym-checkin { display: flex; width: 100%; min-height: 50px; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 14px; background: var(--lime, #d6ff26); color: #080908; font-size: 15px; font-weight: 800; }
.dashboard-page .client-gym-checkin-icon { display: grid; width: 28px; height: 28px; flex: 0 0 28px; place-items: center; border: 2px solid currentColor; border-radius: 50%; }
.dashboard-page .client-gym-checkin-icon svg { width: 18px; height: 18px; }
.dashboard-page .client-gym-checkin:disabled { opacity: .7; cursor: default; }
.dashboard-page .client-weekly-caption { margin: 9px 0 18px; color: #65685e; font-size: 12px; line-height: 1.5; text-align: center; }
.dashboard-page .client-weekly-caption:empty { display: none; }
.dashboard-page .client-weekly-summary { padding: 22px; border: 1px solid var(--line, #dedfd7); border-radius: 18px; background: #fff; color: #080908; }
.dashboard-page .client-weekly-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dashboard-page .client-weekly-header h3 { margin: 0; font-size: 20px; line-height: 1.25; text-transform: none; letter-spacing: -.3px; }
.dashboard-page .client-weekly-header p { margin: 5px 0 0; font-size: 12px; color: #65685e; }
.dashboard-page .client-weekly-navigation { display: flex; gap: 4px; }
.dashboard-page .client-weekly-navigation button { width: 44px; height: 44px; flex-shrink: 0; border: 1px solid var(--line, #dedfd7); border-radius: 50%; background: transparent; color: inherit; font-size: 24px; cursor: pointer; }
.dashboard-page .client-weekly-navigation button:disabled { opacity: .3; cursor: default; }
.dashboard-page .client-weekly-totals { display: grid; grid-template-columns: 1fr 1fr; margin: 22px 0; }
.dashboard-page .client-weekly-totals > div { display: flex; flex-direction: column; gap: 3px; }
.dashboard-page .client-weekly-totals > div + div { border-left: 1px solid var(--line, #dedfd7); padding-left: 20px; }
.dashboard-page .client-weekly-totals strong { font-size: 52px; line-height: 1.15; font-weight: 800; letter-spacing: -2px; }
.dashboard-page .client-weekly-totals span { font-size: 14px; font-weight: 700; }
.dashboard-page .client-weekly-totals small { font-size: 12px; color: #65685e; }
.dashboard-page .client-weekly-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; border-top: 1px solid var(--line, #dedfd7); padding-top: 18px; }
.dashboard-page .client-weekly-day { display: flex; flex-direction: column; gap: 8px; text-align: center; font-size: 12px; color: #65685e; }
.dashboard-page .client-weekly-mark { position: relative; display: grid; place-items: center; min-height: 34px; border-radius: 8px; background: #f4f5f1; }
.dashboard-page .client-weekly-mark.has-workout { background: var(--lime, #d6ff26); color: #080908; }
.dashboard-page .client-weekly-mark.has-checkin { background: #151710; color: #fff; }
.dashboard-page .client-weekly-mark.has-workout.has-checkin { background: var(--lime, #d6ff26); color: #080908; box-shadow: inset 0 -7px #151710; }
.dashboard-page .client-weekly-legend { display: flex; flex-wrap: wrap; gap: 16px; margin: 12px 0 18px; font-size: 11px; color: #65685e; }
.dashboard-page .client-weekly-legend span:first-child::first-letter { color: #728d00; }
.dashboard-page .client-weekly-details { border-top: 1px solid var(--line, #dedfd7); padding-top: 10px; }
.dashboard-page .client-weekly-details summary { padding: 10px 0; min-height: 44px; font-size: 13px; font-weight: 700; cursor: pointer; }
.dashboard-page .client-weekly-details ul { list-style: none; padding: 0; margin: 0; }
.dashboard-page .client-weekly-details li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; font-size: 12px; }
.dashboard-page .client-weekly-details li span:first-child { overflow-wrap: anywhere; }
.dashboard-page .client-weekly-details li span:last-child { flex-shrink: 0; color: #65685e; }
.dashboard-page .client-weekly-retry { display: block; min-height: 44px; margin: 8px auto 0; border: 0; background: transparent; color: #65685e; font: inherit; font-size: 12px; text-decoration: underline; cursor: pointer; }
@media (max-width: 420px) { .dashboard-page .client-weekly-summary { padding: 16px; } .dashboard-page .client-weekly-totals > div + div { padding-left: 12px; } }
/* Override the dashboard's broad mobile form-control sizing. */
body.client-dashboard-page .client-weekly-header > div:first-child { min-width: 0; flex: 1 1 auto; }
body.client-dashboard-page .client-weekly-navigation { flex: 0 0 auto; }
body.client-dashboard-page .client-weekly-navigation button { display: grid !important; place-items: center; width: 44px !important; inline-size: 44px !important; min-width: 44px !important; min-inline-size: 44px !important; max-width: 44px !important; max-inline-size: 44px !important; height: 44px !important; flex: 0 0 44px !important; padding: 0 !important; border-radius: 50% !important; font-size: 24px !important; line-height: 1 !important; }

.dashboard-page .client-weekly-activity.is-checkin-celebrating .client-gym-checkin { animation: client-checkin-button-pulse .65s cubic-bezier(.2, .8, .2, 1); }
.dashboard-page .client-weekly-activity.is-checkin-celebrating .client-gym-checkin-icon { animation: client-checkin-icon-pulse .8s cubic-bezier(.2, .8, .2, 1); }
.dashboard-page .client-weekly-activity.is-checkin-celebrating #client-weekly-checkins { animation: client-checkin-count-pop .5s cubic-bezier(.2, .9, .2, 1.25); }
.dashboard-page .client-weekly-activity.is-checkin-celebrating #client-gym-checkin-status { animation: client-checkin-message-in .45s .32s ease-out both; }
.dashboard-page .client-weekly-activity.is-checkin-celebrating .client-weekly-day.is-today .client-weekly-mark.has-checkin { animation: client-checkin-mark-pop .65s cubic-bezier(.2, .9, .2, 1.3) both; }
.dashboard-page .client-weekly-activity.is-checkin-celebrating .client-weekly-day.is-today .client-weekly-mark.has-checkin::after { content: ""; position: absolute; inset: 0; border: 3px solid var(--lime, #d6ff26); border-radius: inherit; pointer-events: none; animation: client-checkin-halo 1s ease-out; }

@keyframes client-checkin-button-pulse { 0%, 100% { transform: scale(1); } 38% { transform: scale(.98); } 70% { transform: scale(1.012); } }
@keyframes client-checkin-icon-pulse { 0%, 100% { transform: scale(1) rotate(0); } 34% { transform: scale(1.16) rotate(-5deg); } 68% { transform: scale(1.05) rotate(3deg); } }
@keyframes client-checkin-count-pop { 0%, 100% { transform: translateY(0) scale(1); } 45% { transform: translateY(-7px) scale(1.18); color: #557b00; } }
@keyframes client-checkin-message-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@keyframes client-checkin-mark-pop { 0% { opacity: 0; transform: scale(.35) rotate(-16deg); } 62% { opacity: 1; transform: scale(1.18) rotate(4deg); } 100% { opacity: 1; transform: scale(1) rotate(0); } }
@keyframes client-checkin-halo { from { opacity: .9; transform: scale(.8); } to { opacity: 0; transform: scale(1.9); } }

@media (prefers-reduced-motion: reduce) {
  .dashboard-page .client-weekly-activity.is-checkin-celebrating :is(.client-gym-checkin, .client-gym-checkin-icon, #client-weekly-checkins, #client-gym-checkin-status, .client-weekly-mark.has-checkin),
  .dashboard-page .client-weekly-activity.is-checkin-celebrating .client-weekly-mark.has-checkin::after { animation: none !important; }
}
