/* One app at every size. Keep fixed controls aligned with the content on PC. */
body.maxprogress-app .home-calendar-range { color: #999; font-size: .75rem; margin: 0 0 12px; }
body.maxprogress-app .activity-calendar-weekday { color: #888; font-size: .65rem; }
body.maxprogress-app .home-calendar-week .calendar-day-link { height: 96px !important; min-height: 96px !important; }
body.maxprogress-app .home-calendar-month { margin-top: 12px; }
body.maxprogress-app .home-calendar-month > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; color: #aaa; font-size: .75rem; cursor: pointer; list-style: none; }
body.maxprogress-app .home-calendar-month > summary::-webkit-details-marker { display: none; }
body.maxprogress-app .home-calendar-month > summary .ui-icon { width: 16px; height: 16px; transform: rotate(90deg); }
body.maxprogress-app .home-calendar-month[open] > summary .ui-icon { transform: rotate(-90deg); }
body.maxprogress-app .home-calendar-collapse-label { display: none; }
body.maxprogress-app .home-calendar-month[open] .home-calendar-collapse-label { display: inline; }
body.maxprogress-app .home-calendar-month[open] .home-calendar-expand-label,
body.maxprogress-app .trainer-analysis-attendance:has(.home-calendar-month[open]) .home-calendar-week { display: none; }
body.maxprogress-app .client-dashboard-calendar-section .trainer-analysis-attendance { background: transparent !important; padding: 0 !important; border-radius: 0; }
body.maxprogress-app .client-dashboard-calendar-section .mobile-calendar-summary { margin: 0 0 18px; }
body.maxprogress-app .client-dashboard-calendar-section .client-activity-calendar-weekdays { gap: 0; margin: 0; padding: 12px 0; color: #888; }
body.maxprogress-app .client-dashboard-calendar-section .client-activity-calendar-grid { gap: 0 !important; padding: 0; border-top: 1px solid #303030; }
body.maxprogress-app .client-dashboard-calendar-section .calendar-day-link,
body.maxprogress-app .client-dashboard-calendar-section .client-activity-calendar-blank { width: 100% !important; height: 72px !important; min-height: 72px !important; margin: 0; padding: 8px 2px; border: 0; border-bottom: 1px solid #252525; border-radius: 0; background: transparent !important; }
body.maxprogress-app .client-dashboard-calendar-section .calendar-day-link { display: flex; flex-direction: column; justify-content: flex-start; align-items: center; gap: 6px; color: #ddd !important; outline: none; }
body.maxprogress-app .client-dashboard-calendar-section .calendar-day-link,
body.maxprogress-app .client-dashboard-calendar-section .client-activity-calendar-blank { border-bottom: 1px solid #252525 !important; }
body.maxprogress-app .activity-calendar-date { display: grid; place-items: center; height: 24px; min-width: 24px; font-size: .78rem; border-radius: 50%; }
body.maxprogress-app .calendar-day-link.is-today .activity-calendar-date { background: #fc4c02; color: #fff; font-weight: 750; }
body.maxprogress-app .activity-calendar-marks { display: flex; align-items: center; justify-content: center; gap: 3px; min-height: 20px; }
body.maxprogress-app .activity-calendar-mark { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #fc4c02; }
body.maxprogress-app .activity-calendar-mark img.sport-icon { width: 13px !important; height: 13px !important; filter: invert(1); }
body.maxprogress-app .client-dashboard-calendar-section .calendar-day-link { height: auto !important; overflow: visible; }
body.maxprogress-app .client-dashboard-calendar-section .client-activity-calendar-grid .calendar-day-link.has-workout { background: transparent !important; color: #ddd !important; }
body.maxprogress-app .client-dashboard-calendar-section .client-activity-calendar-grid .calendar-day-link.is-selected { background: #232323 !important; color: #fff !important; }
body.maxprogress-app .client-dashboard-calendar-section .home-calendar-week .calendar-day-link { min-height: 100px !important; }
body.maxprogress-app .activity-calendar-date,
body.maxprogress-app .activity-calendar-weekday { flex-shrink: 0; }
body.maxprogress-app .activity-calendar-marks { flex-wrap: wrap; flex-shrink: 0; gap: 3px; width: 100%; padding-bottom: 4px; }
body.maxprogress-app .activity-calendar-mark { flex: 0 0 20px; width: 20px; height: 20px; }
body.maxprogress-app .activity-calendar-mark img.sport-icon { width: 16px !important; height: 16px !important; object-fit: contain; filter: brightness(0) invert(1); }
@media (min-width: 700px) {
    body.maxprogress-app .activity-calendar-mark { flex-basis: 26px; width: 26px; height: 26px; }
    body.maxprogress-app .activity-calendar-mark img.sport-icon { width: 20px !important; height: 20px !important; }
}
body.maxprogress-app .activity-calendar-extra { color: #fc4c02; font-size: .6rem; }
body.maxprogress-app .client-dashboard-calendar-section .calendar-day-link:hover,
body.maxprogress-app .client-dashboard-calendar-section .calendar-day-link.is-selected { background: #232323 !important; color: #fff !important; outline: none; box-shadow: inset 0 -2px #fc4c02; }
body.maxprogress-app .client-dashboard-calendar-section .calendar-day-link:focus-visible { outline: 2px solid #fc4c02; outline-offset: -2px; }
body.maxprogress-app .activity-calendar-legend { display: flex; justify-content: space-between; gap: 8px; padding-top: 14px; color: #888; font-size: .65rem; }
body.maxprogress-app .activity-calendar-legend > span:first-child { display: inline-flex; align-items: center; gap: 6px; }
body.maxprogress-app .activity-calendar-legend i { width: 6px; height: 6px; background: #fc4c02; border-radius: 50%; }
body.maxprogress-app .home-compact-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0 20px; border-bottom: 1px solid #252525; }
body.maxprogress-app .home-compact-header h1 { margin: 0 0 7px; font-size: 1.7rem; letter-spacing: -.04em; }
body.maxprogress-app .home-compact-header p { margin: 0; color: #888; font-size: .78rem; line-height: 1.5; }
body.maxprogress-app .home-compact-start { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 12px 16px; border-radius: 14px; background: #f5f5f5; color: #101010; font-size: .8rem; font-weight: 750; text-decoration: none; flex-shrink: 0; }
body.maxprogress-app .home-compact-start .ui-icon { width: 19px; height: 19px; }
body.maxprogress-app .home-plan-preview { display: grid; gap: 10px; padding: 20px 4px; margin-top: 18px; border-top: 1px solid #292929; text-decoration: none; color: #fff; }
body.maxprogress-app .home-plan-label { color: #888; font-size: .72rem; }
body.maxprogress-app .home-plan-preview strong { font-size: .95rem; overflow-wrap: anywhere; }
body.maxprogress-app .home-plan-preview > span:last-child { display: flex; align-items: center; justify-content: space-between; color: #999; font-size: .75rem; }
body.maxprogress-app .home-compact-start:focus-visible, body.maxprogress-app .home-plan-preview:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
@media (max-width: 420px) {
    body.maxprogress-app .home-compact-header { align-items: flex-start; gap: 10px; }
    body.maxprogress-app .home-compact-header p { max-width: 160px; }
    body.maxprogress-app .home-compact-start { padding-inline: 12px; font-size: .73rem; }
}
body.maxprogress-app .home-recent-section { min-width: 0; }
body.maxprogress-app .home-recent-section .minimal-section-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
body.maxprogress-app .home-recent-section .minimal-section-head a { font-size: .75rem; color: #aaa; white-space: nowrap; }
body.maxprogress-app .home-recent-list { border: 1px solid #292929; border-radius: 20px; background: #151515; overflow: hidden; }
body.maxprogress-app .home-recent-item { display: flex; gap: 12px; align-items: center; padding: 18px 16px; color: #fff; text-decoration: none; }
body.maxprogress-app .home-recent-item + .home-recent-item { border-top: 1px solid #292929; }
body.maxprogress-app .home-recent-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: #292929; flex-shrink: 0; }
body.maxprogress-app .home-recent-copy { display: grid; gap: 6px; flex: 1; min-width: 0; }
body.maxprogress-app .home-recent-copy strong { font-size: .9rem; overflow-wrap: anywhere; }
body.maxprogress-app .home-recent-copy > span { color: #999; font-size: .73rem; line-height: 1.5; }
body.maxprogress-app .home-empty-state { display: grid; justify-items: start; gap: 12px; padding: 24px; }
body.maxprogress-app .home-empty-state > .ui-icon { width: 30px; height: 30px; color: #aaa; }
body.maxprogress-app .home-empty-state p { margin: 0; color: #999; font-size: .85rem; line-height: 1.65; }
body.maxprogress-app .home-empty-state a { font-size: .8rem; color: #fff; padding-block: 10px; }
body.maxprogress-app.portal-role .workout-clean-shell .workout-row-delete-btn { right: 8px; }
body.maxprogress-app.portal-role .workout-clean-shell .workout-log-row.is-delete-open { padding-right: 52px; }
body.maxprogress-app .workout-log-row .workout-row-delete-btn { visibility: hidden; }
body.maxprogress-app .workout-log-row.is-delete-open .workout-row-delete-btn { visibility: visible; }
body.maxprogress-app.shell-nav-present.trainer-role .mobile-app-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media screen and (min-width: 700px) {
    body.maxprogress-app .minimal-dashboard-portal .client-dashboard-primary-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; }
}
@media screen and (min-width: 901px) {
    body.maxprogress-app.shell-nav-present {
        --app-desktop-width: 1040px;
    }

    body.maxprogress-app.shell-nav-present .app-shell,
    body.maxprogress-app.shell-nav-present.portal-role .app-shell {
        width: 100%;
        max-width: var(--app-desktop-width);
        margin-inline: auto;
        border-inline: 1px solid #202020;
    }

    body.maxprogress-app.shell-nav-present .mobile-app-tabs,
    body.maxprogress-app.shell-nav-present .shell-menu-header,
    body.maxprogress-app.shell-nav-present .dashboard-home-shell .shell-menu-header,
    body.maxprogress-app.portal-role .workout-clean-shell .workout-clean-bottom {
        left: 50%;
        right: auto;
        width: var(--app-desktop-width);
        max-width: 100%;
        transform: translateX(-50%);
    }

    body.maxprogress-app.shell-nav-present .shell-mobile-drawer {
        left: 50%;
        right: auto;
        width: calc(var(--app-desktop-width) - 16px);
        max-width: calc(100% - 16px);
        transform: translate(-50%, 110%);
    }

    body.maxprogress-app.shell-nav-present .shell-mobile-drawer.is-open {
        transform: translate(-50%, 0);
    }

    body.maxprogress-app.shell-nav-present .mobile-app-tab:hover {
        color: #fff;
        background: #242424;
    }

    body.maxprogress-app.shell-nav-present .mobile-app-tab-start:hover {
        background: transparent;
    }

    body.maxprogress-app.shell-nav-present.trainer-role .mobile-app-tabs {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
