/* Client-only training dashboard; shared staff views keep their existing layout. */
.client-shell { min-width: 0; }
.client-shell [data-routine-panel][hidden] { display: none; }
.cp-welcome { display: flex; align-items: center; gap: 20px; padding: 0 0 26px; }
.cp-welcome > div { min-width: 0; flex: 1; }
.cp-welcome h1 { font-size: 28px; overflow-wrap: anywhere; margin: 6px 0; }
.cp-welcome .eyebrow { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.cp-welcome time { color: var(--gym-dim); }
.cp-fullname { color: var(--gym-dim); font-size: 13px; margin: 0; overflow-wrap: anywhere; }
.cp-avatar-link { flex: 0 0 88px; position: relative; color: var(--gym-dim); }
.cp-avatar { width: 88px; height: 88px; display: grid; place-items: center; border: 1px solid var(--gym-line); border-radius: 8px; overflow: hidden; background: var(--gym-panel); color: var(--gym-dim); }
.cp-avatar > .lucide { width: 48px; height: 48px; stroke-width: 1.4; }
.cp-avatar img { width: 100%; height: 100%; object-fit: cover; }
.cp-camera { position: absolute; right: -4px; bottom: -4px; width: 28px; height: 28px; display: grid; place-items: center; background: var(--primary); color: #111; border-radius: 5px; }
.cp-camera .lucide { width: 16px; height: 16px; }
.cp-membership { display: grid; grid-template-columns: minmax(210px, 1fr) minmax(0, 1.8fr); gap: 26px; padding: 24px 0; border-block: 1px solid var(--gym-line); }
.cp-plan { min-width: 0; border-left: 3px solid var(--primary); padding-left: 18px; }
.cp-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12px; color: var(--gym-dim); }
.cp-kicker > .lucide { width: 18px; color: var(--gym-accent-ink); }
.cp-plan h2 { font-size: 20px; line-height: 1.4; margin: 10px 0 5px; overflow-wrap: anywhere; }
.cp-plan p { font-size: 12px; margin: 0; color: var(--gym-dim); overflow-wrap: anywhere; }
.cp-contract-facts { margin: 0; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; align-items: center; }
.cp-contract-facts > div { border-left: 1px solid var(--gym-line); padding-left: 16px; min-width: 0; }
.cp-contract-facts dt { color: var(--gym-dim); font-size: 12px; line-height: 1.5; }
.cp-contract-facts dd { margin: 8px 0 0; font-size: 16px; font-weight: 700; line-height: 1.5; overflow-wrap: anywhere; }
.cp-contract-facts .cp-link { margin-top: 6px; }
.cp-link { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--gym-accent-ink); text-decoration: none; min-height: 30px; }
.cp-link:hover { text-decoration: underline; }
.cp-link .lucide { width: 16px; height: 16px; flex-shrink: 0; }
.cp-dashboard-grid { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(0,1fr); gap: 32px; padding: 28px 0; }
.cp-dashboard-grid > section { min-width: 0; }
.cp-measurements { border-left: 1px solid var(--gym-line); padding-left: 32px; }
.cp-section-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.cp-section-head h2 { display: flex; align-items: center; gap: 9px; margin: 0; font-size: 17px; }
.cp-section-head h2 > .lucide { width: 20px; height: 20px; color: var(--gym-accent-ink); }
.cp-week { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 6px; }
.cp-week a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; height: 54px; border-bottom: 2px solid var(--gym-line); color: var(--gym-dim); background: var(--gym-panel); text-decoration: none; font-size: 12px; }
.cp-week a[aria-current] { border-color: var(--primary); color: var(--gym-accent-ink); background: var(--gym-head); font-weight: 700; }
.cp-week i { width: 4px; height: 4px; background: transparent; border-radius: 50%; }
.cp-week i.has-routine { background: var(--gym-positive); }
.cp-routine-content { min-height: 170px; padding: 20px 0 10px; }
.cp-routine-day { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.cp-routine-day span { color: var(--gym-access); font-size: 11px; font-weight: 700; }
.cp-routine-content [data-routine-panel] > p { font-size: 14px; line-height: 1.8; overflow-wrap: anywhere; }
.cp-empty { display: flex; gap: 12px; align-items: center; padding: 20px 0; color: var(--gym-dim); font-size: 13px; line-height: 1.6; }
.cp-empty > .lucide { flex-shrink: 0; width: 24px; }
.cp-attendance { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--gym-line); padding-top: 16px; }
.cp-attendance > div { display: flex; align-items: center; gap: 10px; font-size: 12px; }
.cp-attendance > div > .lucide { width: 18px; color: var(--gym-access); flex-shrink: 0; }
.cp-attendance strong { font-size: 22px; color: var(--ink); font-variant-numeric: tabular-nums; }
.cp-attendance p { flex-basis: 100%; margin: 0; font-size: 12px; color: var(--gym-dim); }
.cp-caption { color: var(--gym-dim); font-size: 12px; line-height: 1.6; margin: 0 0 12px; }
.cp-sample-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 24px; margin: 0 0 10px; }
.cp-sample-grid > div { position: relative; min-width: 0; padding: 18px 0; border-bottom: 1px solid var(--gym-line); }
.cp-sample-grid .lucide { width: 16px; height: 16px; color: var(--gym-access); margin-bottom: 8px; }
.cp-sample-grid dt { color: var(--gym-dim); font-size: 12px; }
.cp-sample-grid dd { font-size: 25px; font-weight: 750; font-variant-numeric: tabular-nums; margin: 8px 0 0; overflow-wrap: anywhere; }
.cp-sample-grid small { font-size: 12px; font-weight: 500; color: var(--gym-dim); margin-left: 5px; }
.cp-sample-history { margin-top: 14px; }
.cp-sample-history h3 { font-size: 12px; margin: 0 0 6px; color: var(--gym-dim); font-weight: 500; }
.cp-sample-history ul { list-style: none; margin: 0; padding: 0; }
.cp-sample-history li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 12px; padding: 7px 0; }
.cp-sample-history time { color: var(--gym-dim); }
.cp-benefits { border-top: 1px solid var(--gym-line); padding-top: 24px; }
.cp-benefits ul { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 22px; }
.cp-benefits li { min-width: 0; }
.cp-benefits li > .lucide { color: var(--gym-positive); width: 26px; height: 26px; margin-bottom: 12px; }
.cp-benefits strong { font-size: 13px; line-height: 1.5; }
.cp-benefits p { font-size: 12px; color: var(--gym-dim); line-height: 1.6; margin: 5px 0 0; overflow-wrap: anywhere; }
.cp-benefits [data-included="0"] > .lucide { color: var(--gym-dim); }
.cp-benefits [data-included="0"] p { color: var(--gym-warning); }
.cp-bottom-links { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px; border-top: 1px solid var(--gym-line); margin-top: 26px; padding-top: 20px; }
.cp-bottom-links a { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 13px; color: var(--ink); min-width: 0; }
.cp-bottom-links .lucide { color: var(--gym-accent-ink); width: 20px; height: 20px; flex-shrink: 0; }
.cp-bottom-links .lucide:last-child { margin-left: auto; width: 16px; }
.cp-photo-editor { padding: 0 0 28px; margin-bottom: 28px; border-bottom: 1px solid var(--gym-line); }
.cp-photo-editor form { display: flex; align-items: start; gap: 26px; max-width: 700px; }
.cp-photo-preview { flex: 0 0 120px; }
.cp-photo-preview .cp-avatar { width: 120px; height: 120px; }
.cp-photo-fields { flex: 1; min-width: 0; }
.cp-photo-fields label { display: grid; gap: 8px; font-size: 13px; }
.cp-photo-fields input { max-width: 100%; width: 100%; min-width: 0; }
.cp-photo-fields .cp-caption { margin-top: 8px; }
.cp-photo-fields [data-photo-status]:empty { display: none; }
[data-client-photo][aria-busy="true"] button { opacity: .6; }
@media (max-width: 1000px) {
    .cp-membership { grid-template-columns: minmax(0,1fr); gap: 20px; }
    .cp-contract-facts > div:first-child { border: 0; padding: 0; }
    .cp-benefits ul { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 700px) {
    .client-header { min-height: 64px; }
    .client-nav { scrollbar-width: thin; }
    .client-nav a { min-height: 44px; }
    .cp-welcome { gap: 14px; flex-wrap: wrap; }
    .cp-welcome h1 { font-size: 23px; }
    .cp-avatar-link { flex-basis: 72px; }
    .cp-avatar { width: 72px; height: 72px; }
    .cp-profile-link { display: none; }
    .cp-contract-facts { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px 12px; }
    .cp-contract-facts > div:last-child { grid-column: 1/-1; border-left: 0; border-top: 1px solid var(--gym-line); padding: 14px 0 0; }
    .cp-dashboard-grid { grid-template-columns: minmax(0,1fr); gap: 26px; }
    .cp-measurements { border-left: 0; padding: 24px 0 0; border-top: 1px solid var(--gym-line); }
    .cp-routine-content { min-height: 130px; }
    .cp-benefits ul { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px 18px; }
    .cp-photo-editor form { flex-wrap: wrap; gap: 20px; }
    .cp-photo-fields { flex-basis: 100%; }
    .cp-bottom-links { gap: 16px; }
    .cp-bottom-links a { align-items: start; line-height: 1.6; }
}
