/* Client and preview-shell additions. The approved visual theme remains in style.css. */
.preview-toolbar{position:sticky;top:0;z-index:35;background:#edf3e9f7;border-bottom:1px solid #cadbc5;backdrop-filter:blur(14px);color:var(--text);padding:10px 24px}.preview-toolbar-inner{max-width:1052px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;gap:14px}.preview-description{display:flex;align-items:center;gap:9px;font-size:14px;color:#667e65}.preview-description strong{font-size:12px;line-height:1;border:1px solid #b8cdb2;border-radius:5px;padding:5px 7px;color:#526c4e;font-weight:750}.preview-role{display:flex;align-items:center;gap:10px;font-size:14px}.preview-role>span{color:#60775a}.role-switch{display:flex;gap:3px;padding:3px;border:1px solid #b9cfb3;border-radius:10px;background:#f8fbf5}.role-switch button{min-height:38px;border:0;border-radius:7px;background:transparent;padding:8px 13px;font-size:14px;font-weight:700;color:#5d7659}.role-switch button[aria-pressed="true"]{background:#dcead4;color:#214c32;box-shadow:0 1px 3px #344c2110}.role-switch button:hover{background:#e8f1e2}.header-identity{display:flex;gap:12px;align-items:center}.role-label{font-size:14px;color:#688064;font-weight:600}.booking-window-note,.client-role-info,.migration-notice{display:flex;align-items:flex-start;gap:9px;padding:14px 0;color:#6b8165;font-size:14px;line-height:1.6}.booking-window-note .icon,.client-role-info .icon,.migration-notice .icon{width:17px;height:17px;margin-top:3px;flex-shrink:0}.booking-window-note+.filter-list{margin-top:5px}.day.is-today>span{font-size:12px;letter-spacing:-.02em}.day.is-today:not(.selected){border-color:#9bb693}.workout-bottom>.locked-button{font-size:14px;max-width:100%;line-height:1.45;text-align:center;padding:10px 13px;opacity:1;color:#78866f;background:#eef3e7;border-color:#dbe5d2}.workout-bottom>.locked-button .icon{width:15px;height:15px}.workout-card.is-locked .workout-top{opacity:.82}.workout-card.is-locked .capacity{color:#89957f}.client-report-note{margin:0 20px 17px;color:#648266;background:#e8f0df;border-radius:8px;display:flex;gap:8px;align-items:flex-start;padding:11px 12px;font-size:14px;line-height:1.6}.client-report-note .icon{width:16px;height:16px;margin-top:3px}.section-description{font-size:16px;line-height:1.7;margin:-12px 0 20px}.after-workout-list{margin-bottom:28px}.detailed-history{align-items:flex-start}.detailed-history .history-check{margin-top:3px}.history-row.detailed-history>div:nth-child(2){gap:6px}.history-row.detailed-history span{font-size:14px;line-height:1.55}.history-row .attendance-status{font-size:14px;font-weight:700;line-height:1.55;color:#37664b;margin-top:5px}.history-row.pending .attendance-status{color:#8a723f}.history-row.pending .history-check{color:#a18a55;background:#f4efdf}.history-row.missed .attendance-status{color:#92785a}.history-row.missed .history-check{background:#f1ede4;color:#a38b67}.balance-title{font-size:18px;margin:26px 0 0}.balance-title+.balance-grid{margin-top:14px}.unpaid{background:#eee5d3!important;color:#8e723e!important}.other-memberships{background:#f9fbf4;border:1px solid var(--line);border-radius:12px;margin:22px 0;padding:16px 19px;font-size:14px}.other-memberships summary{min-height:30px;font-weight:750;cursor:pointer}.other-memberships>div{display:flex;flex-direction:column;gap:5px;padding-top:16px;margin-top:13px;border-top:1px solid var(--line)}.other-memberships>div>span{color:var(--muted);font-size:14px}.aggregator-mini{display:flex!important;flex-direction:column;gap:13px;align-items:flex-start!important}.aggregator-mini>strong{font-size:20px;letter-spacing:-.03em}.aggregator-mini>span:last-child{font-size:14px;line-height:1.6;color:var(--muted)}.client-role-info{padding:18px;background:#f3f7ec;border:1px solid #d5e0cb;border-radius:12px;margin:22px 0}.client-role-info p{font-size:14px;line-height:1.8}.demo-reset-area{border-top:1px solid var(--line);padding-top:21px;margin-top:32px}.demo-reset-area p{font-size:13px;line-height:1.75;color:#8a9880}.demo-reset-area .text-button{font-size:14px}.migration-notice{padding:14px 18px;background:#f6f7e8;border:1px solid #dbe2c6;border-radius:12px;margin-bottom:25px}.migration-notice p{font-size:14px;line-height:1.7;color:#788269}.modal-actions .full-width+.full-width{margin-top:10px}.profile-card .icon-button{min-width:44px;min-height:44px}.field-label{font-size:14px!important}.field-label input{font-size:16px!important;min-height:48px}.topbar{scroll-margin-top:85px}.studio-panel{top:100px!important}.history-list>.empty{font-size:16px;line-height:1.7}.client-role-info+.demo-reset-area{margin-top:28px}body[data-role="admin"] .preview-toolbar{background:#edf4f0f7;border-color:#cddfd5}body[data-role="admin"] .role-switch button[aria-pressed="true"]{background:#dceee4;color:#255743}body[data-role="admin"] .role-label{color:#668579}
@media(max-width:650px){.preview-toolbar{padding:9px 13px}.preview-toolbar-inner{max-width:454px;display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px}.preview-description{font-size:12px;gap:7px;width:100%;justify-content:center}.preview-description strong{font-size:10px;padding:4px 6px}.preview-role{width:100%;justify-content:center;gap:8px;font-size:13px}.role-switch button{min-height:36px;font-size:14px;padding:7px 12px}.role-switch{padding:2px;border-radius:9px}.role-switch button{border-radius:6px}.topbar{height:82px;margin-bottom:23px}.header-identity{gap:7px}.role-label{font-size:12px;max-width:90px;line-height:1.4;text-align:right}.brand img{width:42px;height:42px}.brand{gap:8px}.brand-text{font-size:.95rem}.brand-text small{font-size:.45rem;letter-spacing:.13em}.profile-button{width:38px;height:38px;font-size:13px}.hero h1{font-size:29px;max-width:310px}.hero .eyebrow{font-size:11px}.hero{margin-bottom:20px}.membership-mini{margin-bottom:24px}.day-picker{gap:4px}.day{height:78px}.day>span{font-size:13px}.day.is-today>span{font-size:10px}.day>strong{font-size:18px}.booking-window-note{font-size:13px;gap:7px;padding:13px 0;line-height:1.6}.booking-window-note .icon{width:15px;height:15px}.workout-bottom>.locked-button{width:100%;font-size:14px;min-height:44px}.workout-card.is-locked .workout-bottom{gap:11px}.workout-bottom>[data-action="report-attendance"]{width:100%;font-size:14px;min-height:46px}.workout-card .workout-bottom{gap:12px;flex-wrap:wrap}.client-report-note{font-size:14px;margin:0 17px 17px;gap:7px;padding:10px 12px}.detailed-history{padding:17px 15px;gap:10px}.history-row.detailed-history span{font-size:14px}.history-row .attendance-status{font-size:14px}.section-description{font-size:16px;line-height:1.7}.page-heading p{font-size:16px}.balance-grid span{font-size:13px}.detail-table>div{font-size:14px;gap:12px}.detail-table>div>span{flex-shrink:1}.detail-table>div>strong{max-width:55%}.profile-links button>span{font-size:14px}.profile-links button>b{font-size:13px}.demo-reset-area p{font-size:13px}.role-switch button:focus-visible{outline-offset:1px}.nav-item{font-size:12px!important}.profile-card h2{font-size:18px}.client-role-info p{font-size:14px}.balance-title{font-size:18px;margin-top:23px}}
@media(max-width:360px){.role-label{font-size:11px;max-width:76px}.header-identity{gap:5px}.brand-text small{display:none}.brand-text{font-size:.91rem}.day.is-today>span{font-size:9px}.preview-role>span{font-size:12px}.role-switch button{font-size:13px}.topbar .profile-button{width:35px;height:35px}}
@media(prefers-reduced-motion:reduce){.preview-toolbar{backdrop-filter:none}}
.notification-demo{border:1px solid #d5e0cb;background:#f2f7ec;border-radius:12px;padding:17px;margin:18px 0}.notification-demo strong{display:block;font-size:14px;color:#527249;margin-bottom:10px}.notification-demo p{font-size:16px;line-height:1.75;color:#31573b;white-space:pre-line}.notification-demo span{display:block;font-size:14px;color:#718469;line-height:1.7;margin-top:12px}
.role-switch button,.topbar .profile-button{min-width:44px;min-height:44px}.bottom-nav:not(.admin-bottom-nav) .nav-item{font-size:14px!important}.day-picker{grid-template-columns:minmax(54px,1.2fr) repeat(6,minmax(44px,1fr));overflow-x:auto;max-width:100%;padding-bottom:2px}.day.is-today>span{font-size:14px;letter-spacing:-.04em}.day>span{font-size:14px}
.history-row.late-pending,.history-row.late-charged,.history-row.late-unpenalized{background:#fff5f1;border-left:3px solid #bc5a4c;padding-left:19px}.history-row.late-pending .history-check,.history-row.late-charged .history-check,.history-row.late-unpenalized .history-check{background:#f6ddd5;color:#a8483d}.history-row.late-pending .attendance-status,.history-row.late-charged .attendance-status,.history-row.late-unpenalized .attendance-status{color:#a34237}.history-row.late-waived .attendance-status{color:#477353}.history-row.late-waived .history-check{background:#e8f0df;color:#6b8d5d}.history-row .waiver-reason{color:#627b5c;font-style:normal}.workout-card.is-late-cancel{border-color:#d6a496;background:#fff9f5}.workout-card.is-late-cancel [data-action="booking-detail"]{border-color:#d4a396;background:#fff1eb;color:#9f483c}.workout-card.is-late-waived [data-action="booking-detail"]{border-color:#bfd2b9;color:#507747;background:#f2f7ec}.late-penalty-notice{display:flex;align-items:flex-start;gap:11px;background:#fff3ec;border:1px solid #e6bca9;border-radius:12px;padding:17px;margin:17px 0;color:#9a4938}.late-penalty-notice>.icon{width:20px;height:20px;flex-shrink:0;margin-top:3px}.late-penalty-notice strong{font-size:16px;line-height:1.55}.late-penalty-notice p{font-size:14px;line-height:1.8;color:#9a6453;margin-top:7px}.notification-demo.late-notification{border-color:#ddb8aa;background:#fff5ef}.notification-demo.late-notification strong{color:#a05240}.notification-demo.late-notification p{color:#8e493c}.notification-demo.late-notification span{color:#986d5c}.history-row .penalty-status{font-weight:600}.late-waiver-detail{font-size:14px;line-height:1.8;color:#5d7b55;padding:13px 15px;border:1px solid #cbdcc2;background:#f1f6e9;border-radius:10px;margin:16px 0}
@media(max-width:650px){.history-row.late-pending,.history-row.late-charged,.history-row.late-unpenalized{padding-left:12px}.late-penalty-notice{padding:15px;gap:9px}.late-penalty-notice strong{font-size:16px}.workout-card.is-late-cancel [data-action="booking-detail"],.workout-card.is-late-waived [data-action="booking-detail"]{max-width:100%;white-space:normal;text-align:center}}

/* Server-backed cabinet: launch, registration, received payments. */
[hidden]{display:none!important}.authorized-role-bar{max-width:1052px;margin:12px auto 0;display:flex;justify-content:flex-end;align-items:center;gap:12px;padding:0 24px;color:var(--muted);font-size:14px}.launch-state{max-width:500px;margin:12vh auto;padding:30px;background:var(--surface,#f8faf2);border:1px solid var(--line);border-radius:16px;text-align:center}.launch-state h1{font-size:28px}.launch-state p{margin:18px 0 25px;line-height:1.75}.launch-state a,.launch-state button{display:flex;justify-content:center;align-items:center;min-height:48px;margin-top:12px;text-decoration:none}.registration-form{display:grid;grid-template-columns:1fr;gap:20px;align-items:stretch}.registration-form .field-label{display:flex;flex-direction:column;gap:9px}.registration-form input{width:100%;padding:13px;border:1px solid var(--line);border-radius:9px;background:#fff}.client-finance{margin:22px 0 26px;background:#f8faf2;border:1px solid var(--line);border-radius:14px;padding:22px}.client-finance h2{font-size:20px;margin-bottom:16px}.client-finance p{font-size:14px;line-height:1.7;margin-top:15px;color:var(--muted)}.finance-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px}.finance-grid>div{display:flex;flex-direction:column;gap:7px;padding:15px;border:1px solid #d5e0cb;border-radius:10px;background:#f1f6e9}.finance-grid span{font-size:14px}.finance-grid strong{font-size:22px;color:#285b40}.finance-grid .has-due{background:#fff5e9;border-color:#e6cfae}.finance-grid .has-due strong,.payment-due{color:#995438!important}.membership-payment-lines,.ad-payment-details{display:flex;flex-direction:column;gap:8px;font-size:14px;line-height:1.6;margin:16px 0;padding:16px;border:1px solid var(--line);border-radius:10px}.membership-payment-lines>span,.ad-payment-details>span{display:flex;justify-content:space-between;gap:14px}.membership-payment-lines strong,.ad-payment-details strong{white-space:nowrap}.ad-telegram-contact{display:inline-flex;align-items:center;min-height:44px;color:#226249;font-size:14px;font-weight:650;text-decoration:underline;text-underline-offset:3px}.ad-contact-unlinked{display:inline-flex;align-items:center;min-height:35px;font-size:14px;color:#7b8870}.ad-roster-person .ad-telegram-contact{width:fit-content}.refresh-data{min-height:44px;font-size:14px;padding:5px 8px}body[data-saving="true"]{cursor:progress}body[data-saving="true"] button[type="submit"],body[data-saving="true"] .modal-actions button{opacity:.6;pointer-events:none}.ad-issued .ad-payment-details{margin:0;min-width:190px}.ad-payment-details strong{font-size:14px}.ad-payment-details span{font-size:14px}
@media(max-width:650px){.authorized-role-bar{justify-content:center;padding:0 13px}.launch-state{margin:10vh auto;padding:23px}.client-finance{padding:18px}.finance-grid{gap:9px}.finance-grid>div{padding:12px}.finance-grid strong{font-size:19px}.topbar .header-identity{gap:4px}.refresh-data{font-size:12px;padding:4px}.topbar .role-label{max-width:70px}.ad-issued .ad-payment-details{width:100%;min-width:0}.membership-payment-lines{padding:13px}}

.guest-selector{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:17px 0}.guest-selector button{min-height:48px;padding:12px 8px;border:1px solid #bacfb2;border-radius:10px;background:#f8faf2;color:#426440;font-size:16px;font-weight:650}.guest-selector button[aria-pressed="true"]{background:#e2efd9;color:#235333;border-color:#789d6c}.guest-capacity-message{padding:13px;border:1px solid #e0b99d;background:#fff2e5;border-radius:10px;color:#98583d;font-size:14px;line-height:1.6}.booking-guests{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:12px 20px;font-size:14px;color:#4d7047;line-height:1.6}.booking-guests span{flex-basis:100%;font-size:14px;color:var(--muted)}.booking-guests .icon{width:18px;height:18px}.ad-guest-attendance{grid-column:1/-1;width:100%;display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding:9px 0;font-size:14px}.ad-guest-attendance input{width:85px;min-height:44px;border:1px solid var(--line);border-radius:8px;padding:10px;background:white}

/* Shared header baseline and date-first session hierarchy. */
.header-identity{align-items:center;flex-shrink:0}.header-identity .refresh-data,.header-identity .role-label{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:auto;height:44px;min-height:44px;max-width:none;margin:0;padding:0 6px;font-size:14px;line-height:20px;white-space:nowrap;box-sizing:border-box}.header-identity .role-label{padding:0;font-weight:600}.booking-date.booking-date-top{border-top:0;border-bottom:1px solid #e1e9da;padding:12px 22px;background:#f4f8ee;font-size:14px;font-weight:650;line-height:1.5}.booking-date-top time{white-space:normal}.session-date{display:block;color:#718469;font-size:14px;line-height:1.5;font-weight:600;margin:0 0 7px}.session-heading{display:flex;align-items:baseline;gap:12px;min-width:0}.session-heading .session-start{font-size:16px;line-height:1.45;font-weight:700;color:#315d3c;white-space:nowrap;flex-shrink:0}.session-heading>strong{min-width:0;overflow-wrap:anywhere;line-height:1.45}.history-row.detailed-history .session-date{margin:0 0 3px}.history-row.detailed-history .session-heading{gap:12px}.ad-workout-date{margin:0 0 12px}.ad-workout-main .ad-time{padding-top:2px}.ad-history-item .session-heading{margin-top:5px}.modal-workout .session-date{margin-bottom:5px}.modal-workout>div{min-width:0}.modal-workout h3{overflow-wrap:anywhere}
@media(max-width:650px){.header-identity .refresh-data,.header-identity .role-label{font-size:12px;line-height:18px;height:44px;min-height:44px;padding:0 4px}.header-identity .role-label{padding:0}.booking-date.booking-date-top{padding:11px 17px;font-size:14px}.session-heading{gap:10px}.session-heading .session-start{font-size:15px}.session-heading>strong{font-size:15px}.ad-workout-date{margin-bottom:10px}.ad-history-item .session-heading{flex-wrap:wrap;gap:4px 10px}}
@media(max-width:360px){.topbar{flex-wrap:wrap;height:auto;min-height:82px;padding:13px 0;gap:8px}.topbar .header-identity{margin-left:auto}.header-identity .refresh-data,.header-identity .role-label{font-size:12px}.session-heading{gap:8px}}

/* Seven visible dates, with enough space for today's label. */
.day-picker{grid-template-columns:minmax(0,1.6fr) repeat(6,minmax(0,1fr));min-width:0;width:100%;max-width:100%;overflow:visible}.day-picker .day{min-width:0;max-width:100%;box-sizing:border-box;padding-left:1px;padding-right:1px;min-height:44px}.day-picker .day>span{display:block;max-width:100%;white-space:nowrap;line-height:1.3;letter-spacing:0}.day-picker .day.is-today>span{font-size:13px;letter-spacing:-.02em}.day-picker .day[aria-pressed="true"]{background:#dfeeda;border:2px solid #347956;box-shadow:none;color:#245c3e}.day-picker .day[aria-pressed="true"]>strong{color:#245c3e}.day-picker .day[aria-pressed="true"]>i{background:#347956}
@media(max-width:650px){.day-picker{gap:4px}.day-picker .day>span,.day-picker .day.is-today>span{font-size:11px;letter-spacing:-.015em}.day-picker .day>strong{font-size:18px}}
@media(max-width:480px){.topbar{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;flex-wrap:nowrap;gap:12px;width:100%;min-width:0;height:auto;min-height:0;padding:16px 0;margin-bottom:24px}.topbar .brand{align-self:flex-start;min-width:0;max-width:100%;margin:0}.topbar .header-identity{display:flex;align-items:center;justify-content:space-between;flex-wrap:nowrap;gap:12px;width:100%;min-width:0;margin:0}.header-identity .refresh-data{flex:0 1 auto;min-width:0;margin:0;padding:0 4px;font-size:14px;line-height:20px;height:44px;min-height:44px}.header-identity .role-label{flex:1 1 auto;min-width:0;max-width:none;padding:0;text-align:center;justify-content:center;white-space:nowrap;font-size:14px;line-height:20px;height:44px;min-height:44px}.topbar .profile-button{flex:0 0 44px;width:44px;min-width:44px;height:44px;min-height:44px}.authorized-role-bar{display:flex;flex-direction:column;align-items:stretch;gap:7px;min-width:0;width:100%;max-width:480px;padding:0 13px;margin:12px auto 0}.authorized-role-bar>span{text-align:center;font-size:14px;line-height:20px}.authorized-role-bar .role-switch{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));min-width:0;width:100%;max-width:100%;box-sizing:border-box}.authorized-role-bar .role-switch button{min-width:0;width:100%;padding:8px 4px;min-height:44px;font-size:14px;line-height:20px;white-space:nowrap}}
@media(max-width:360px){.day-picker{gap:3px}.day-picker .day.is-today>span{font-size:11px}.topbar .header-identity{gap:8px}}

/* A programmatic page target is not an interactive focus ring. */
#app:focus,#app:focus-visible{outline:none!important}button,a,input,select,textarea,summary{-webkit-tap-highlight-color:transparent}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:2px solid #347956;outline-offset:3px}.role-switch button:focus-visible{outline-offset:1px}
@media(max-width:650px){.bottom-nav.admin-bottom-nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));align-items:stretch;gap:2px;min-width:0;width:100%;padding:7px max(4px,env(safe-area-inset-right,0px)) calc(7px + env(safe-area-inset-bottom,0px)) max(4px,env(safe-area-inset-left,0px));box-sizing:border-box}.bottom-nav.admin-bottom-nav .nav-item{min-width:0;max-width:none;width:100%;min-height:62px;padding:8px 1px;gap:6px;font-size:clamp(10px,2.8vw,11px)!important;letter-spacing:-.02em;line-height:1.3}.bottom-nav.admin-bottom-nav .nav-item>span{display:block;min-width:0;max-width:100%;font-size:inherit;line-height:1.3;white-space:nowrap}.bottom-nav.admin-bottom-nav .nav-item .icon{width:20px;height:20px;flex-shrink:0}}

/* Membership attention is separate from monetary debt. */
.ad-client-card.ad-client-attention{background:#fff1f0;border-color:#e4bbb7}.ad-client-card.ad-client-attention:hover{background:#ffebe8;border-color:#cc9991}.ad-client-attention .ad-avatar{background:#f5dcda;color:#98554e}.ad-attention-badges{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px;min-width:0}.ad-attention-badge{display:inline-flex!important;align-items:center;min-height:28px;max-width:100%;margin:0!important;padding:5px 8px;border:1px solid #e1b5b0;border-radius:7px;background:#ffe5e1;color:#9b4d43!important;font-size:12px!important;font-weight:700;line-height:1.45!important;white-space:normal;overflow-wrap:anywhere}.ad-attention-banner{padding:18px 20px;margin:0 0 20px;border:1px solid #e4bbb7;background:#fff1f0;border-radius:13px;color:#99554c}.ad-attention-banner>strong{font-size:16px;line-height:1.6}.ad-attention-banner .ad-attention-badge{font-size:14px!important}.ad-client-attention .payment-due{color:#8e6034!important}
.finance-correction{color:#655f42}.membership-payment-lines>span{min-width:0;align-items:baseline;line-height:1.55}.membership-payment-lines>span>strong{flex-shrink:0}.pass-tag{min-width:0;max-width:100%;overflow-wrap:anywhere}.pass-top{flex-wrap:wrap;gap:10px}
@media(max-width:480px){.membership-payment-lines>span{flex-wrap:wrap;gap:4px 12px}.membership-payment-lines .finance-correction{font-size:14px}.client-finance .other-memberships{padding:14px 12px}.client-finance .membership-payment-lines{padding:12px}}

.membership-page .balance-grid{grid-template-columns:repeat(3,minmax(0,1fr));min-width:0;max-width:100%}.membership-page .balance-grid>div{min-width:0;max-width:100%}.membership-page .balance-grid span,.membership-page .balance-grid strong{min-width:0;max-width:100%;overflow-wrap:anywhere}.client-finance .finance-grid{grid-template-columns:repeat(2,minmax(0,1fr));min-width:0;max-width:100%}.client-finance .finance-grid>div{min-width:0;max-width:100%}.client-finance .finance-grid strong,.client-finance .finance-grid span{min-width:0;max-width:100%;overflow-wrap:anywhere}
.booking-card-actions{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px 12px;width:100%;min-width:0}.booking-confirmed-status{display:inline-flex;align-items:center;gap:7px;min-height:44px;font-size:14px;font-weight:650;line-height:1.45;color:#2e6948;min-width:0}.booking-confirmed-status .icon{width:18px;height:18px}.workout-bottom .booking-cancel-button,.workout-bottom .booking-add-guest-button{min-height:44px;min-width:0;max-width:100%;padding:11px 13px;font-size:14px;line-height:1.45;white-space:normal;flex:0 1 auto}.booking-guests>.booking-guest-chip{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;min-width:44px;max-width:100%;flex-basis:auto;padding:8px 13px;border:1px solid #a9c8a4;border-radius:999px;background:#e1efda;color:#2d6645;font-size:14px;font-weight:650;line-height:1.4}.booking-guests .booking-guest-chip>span{flex-basis:auto;color:inherit;font:inherit}.booking-guests>button.booking-guest-chip:hover{background:#d4e8cc;border-color:#76a773}.booking-guests>.booking-guest-note{flex-basis:100%;min-width:0;overflow-wrap:anywhere}.booking-guest-choice{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:20px 0;min-width:0}.booking-guest-choice button{min-width:0;min-height:48px;padding:10px 6px;font-size:14px;line-height:1.4;border:1px solid #bccfb3;border-radius:10px;background:#f8faf2;color:#45683d}.booking-guest-choice button[aria-pressed="true"]{border:2px solid #347956;background:#e1efda;color:#245c3e;font-weight:650}
.booking-card-buttons{display:grid;gap:6px;max-width:100%;min-width:0;margin-inline-start:auto}
@media(max-width:360px){.booking-card-buttons{width:100%}.workout-bottom .booking-cancel-button{width:100%;flex-basis:100%}.booking-card-actions{gap:6px}.booking-guests{margin-left:17px;margin-right:17px}.booking-guest-choice{grid-template-columns:minmax(0,1fr)}.booking-guest-choice button{min-height:44px}}

.schedule-main .filter-list { flex-wrap:wrap; max-width:100%; overflow:visible; }
.schedule-main .filter { min-width:0; max-width:100%; white-space:normal; overflow-wrap:anywhere; }
.workout-details .category { overflow-wrap:anywhere; }
.profile-card.profile-identity { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:10px 12px; }
.profile-photo { position:relative; overflow:hidden; }
.profile-photo img { position:absolute; inset:0; height:100%; width:100%; object-fit:cover; }
.topbar .profile-button { position:relative; overflow:hidden; }
.header-profile-photo { position:absolute; inset:0; height:100%; width:100%; object-fit:cover; pointer-events:none; }
img[data-client-photo]:not([data-photo-loaded]), img[data-roster-photo-booking]:not([data-photo-loaded]) { opacity:0; }
.profile-photo-trigger { border:0; padding:0; cursor:pointer; }
.profile-photo-trigger:disabled { opacity:.65; cursor:progress; }
.profile-photo-editor { display:flex; flex-wrap:wrap; align-items:center; gap:4px 12px; margin-bottom:16px; }
.editor-photo-actions { display:flex; flex-wrap:wrap; align-items:center; gap:0 12px; min-width:0; flex:1 1 11rem; }
.editor-photo-actions .text-button { min-height:44px; margin:0; padding:4px 0; text-align:left; }

.workout-card-rules { display:flex; flex:0 0 100%; flex-wrap:wrap; gap:8px; min-width:0; }
.workout-card-rules > button { min-height:44px; max-width:100%; padding:8px 12px; font-size:.875rem; line-height:1.4; background:transparent; color:var(--accent); border-color:var(--accent); }
.workout-card-rules > button:hover { background:var(--mint); }
.workout-popup-copy, .profile-rules-copy { white-space:pre-wrap; overflow-wrap:anywhere; }
.workout-info-copy { display:grid; gap:12px; }
.workout-info-copy p { margin:0; font-size:1rem; line-height:1.55; }
.workout-preparation { margin-top:4px; padding-top:12px; border-top:1px solid var(--line); }
.workout-preparation h3 { margin:0 0 6px; font-size:1rem; line-height:1.35; }

.schedule-main .section-heading h1{font-size:clamp(1.55rem,4vw,2rem);line-height:1.2}
.workout-details{min-width:0}.workout-details h3,.modal-workout h3{overflow-wrap:anywhere;letter-spacing:-.025em}
.booking-window-note,.schedule-footnote{line-height:1.5}
@media(max-width:480px){
 .topbar{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;padding:12px 0;margin-bottom:16px}
 .topbar .brand{align-self:center;gap:7px}.brand img{width:36px;height:36px}.brand-text{font-size:.87rem}.brand-text small{display:none}
 .topbar .header-identity{width:auto;gap:5px}.topbar .header-identity .refresh-data{font-size:.81rem}
 .topbar .role-label{display:none}.topbar .profile-button{width:44px;height:44px}
 .authorized-role-bar{margin-top:8px}.authorized-role-bar>span{display:none}
 .studio-panel .membership-mini{margin-bottom:20px}
}

.topbar .header-identity .refresh-data{flex:none;padding-inline:12px;background:var(--mint);border-color:var(--line-strong)}
.topbar .header-identity .refresh-data:hover:not(:disabled),
.topbar .header-identity .refresh-data:active:not(:disabled){background:var(--mint-deep);border-color:var(--accent)}
.header-client-name{display:grid;min-width:0;max-inline-size:min(40vw,16rem);gap:2px;color:var(--text);font-size:clamp(.8rem,3.8vw,.94rem);font-weight:750;line-height:1.15;text-align:right}
.header-client-name>span{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

.membership-mini.pass-last-unit,.pass-card.pass-last-unit{background:#ffefeb;border-color:#d6a098;color:#642b29}
.membership-mini.pass-last-unit:hover{border-color:#b76860}
.pass-last-unit .mini-label .icon,.pass-last-unit .mini-balance>span,.pass-last-unit .mini-footer,.pass-last-unit .pass-footer,.pass-last-unit .pass-balance span,.pass-last-unit .pass-footer strong,.pass-last-unit .pass-footer>.icon{color:#78423b}
.pass-last-unit .mini-progress,.pass-last-unit .pass-dots span.used{background:#ebc8c0}
.pass-last-unit .mini-progress>span,.pass-last-unit .pass-dots span{background:#a85046}
.membership-mini .mini-footer{min-width:0;gap:6px 12px;flex-wrap:wrap}
.mini-term{min-width:0;line-height:1.45}
.mini-term time{white-space:nowrap}
.mini-unit-composition{white-space:nowrap}
.pass-allocation{position:relative;font-size:.875rem}
.pass-balance+.pass-allocation{margin-top:12px}
.pass-allocation strong{margin-inline-start:.35em;white-space:nowrap}
@media(max-width:650px){
 .membership-mini:not(.aggregator-mini){grid-template-columns:minmax(0,1fr) auto}
 .membership-mini .mini-balance{grid-row:1}
 .membership-mini .mini-footer{grid-column:1/-1;grid-row:2;margin-top:8px}
}
.pass-last-unit .pass-footer{border-color:#e1b5ac}
.pass-card.pass-last-unit:before{border-color:#e8c1b9;box-shadow:0 0 0 22px transparent,0 0 0 23px #efd1ca,0 0 0 46px transparent,0 0 0 47px #f4dcd5}
.pass-visits{min-width:0;margin:18px 0 22px}
.pass-visits h2,.pass-visits summary{font-weight:700;font-size:17px;line-height:1.45;color:#234d42}
.pass-visits ul{display:grid;list-style:none;padding:0;margin:8px 0 0}
.pass-visits li{display:flex;align-items:baseline;gap:14px;padding:10px 0;border-bottom:1px solid #d5e0d3;min-width:0}
.pass-visits li time,.pass-visits p{color:#516c5e;font-size:14px;line-height:1.5}
.pass-visits li time{flex:none}
.pass-visits li strong{font-size:15px;line-height:1.5;overflow-wrap:anywhere}
.pass-visits p{margin:8px 0}
.pass-visits-compact summary{min-height:44px;padding:10px 0;cursor:pointer;font-size:14px}
.pass-visits-compact{margin:0 0 16px}
.pass-visits-compact li{display:grid;gap:1px}
.studio-panel .membership-mini:has(+.pass-visits-compact){margin-bottom:0}
@media(max-width:480px){.pass-visits li{display:grid;gap:2px}.pass-visits li time{font-size:13px}}

.cancel-notice{display:flex;align-items:flex-start;gap:10px;min-width:0;margin:16px 0;padding:13px 15px;border:1px solid #c5d8ca;border-radius:11px;background:#eff5ef;color:#335d48}
.cancel-notice>.icon{flex:none;width:19px;height:19px;margin-top:2px}
.cancel-notice>div{min-width:0}
.cancel-notice strong{font-size:15px;line-height:1.45;overflow-wrap:anywhere}
.cancel-notice p,.rules-list .cancel-notice p{margin:4px 0 0;padding:0;border:0;color:inherit;font-size:14px;line-height:1.5}
.cancel-notice-fee{border-color:#dba7a0;background:#fff0ec;color:#852e28}
.cancel-notice-reason>summary{min-height:44px;padding:12px 0 6px;cursor:pointer;font-size:14px;font-weight:650;line-height:1.45}
.cancel-notice-reason>summary:focus-visible{outline:2px solid currentColor;outline-offset:2px;border-radius:4px}
.cancel-notice .cancel-notice-reason>p{margin-top:0}
body[data-role="client"] :is([data-action="cancel-booking"], [data-action="confirm-cancel"]) { color:#883b32; background:#fff3f0; border-color:#dfb9b1; }
body[data-role="client"] :is([data-action="cancel-booking"], [data-action="confirm-cancel"]):hover:not(:disabled) { background:#f9e6e1; border-color:#c99589; }
body[data-role="client"] :is([data-action="cancel-booking"], [data-action="confirm-cancel"]):focus-visible { outline-color:#a6584c; }
body[data-role="client"] [data-action="confirm-cancel"].cancel-with-fee { color:#762d27; background:#f9e4df; border-color:#c4877e; }
#toast[data-tone="fee"]{background:#893930;color:white}

.workout-heading { display:grid; grid-template-columns:max-content minmax(0,1fr); align-items:baseline; gap:3px 12px; min-width:0; }
.workout-heading.workout-top { align-items:baseline; gap:3px 12px; }
.workout-heading > h3 { margin:0; font-size:clamp(1.05rem,3vw,1.18rem); line-height:1.3; overflow-wrap:anywhere; }
.workout-heading .workout-start { font-size:1.08rem; line-height:1.3; font-weight:800; font-variant-numeric:tabular-nums; white-space:nowrap; }
.workout-heading .workout-duration, .visit-workout-facts .workout-duration { color:var(--muted); font-size:.875rem; line-height:1.45; white-space:nowrap; }
.workout-heading .workout-trainer, .visit-workout-facts .workout-trainer { color:#405f53; font-size:.875rem; line-height:1.45; margin:0; overflow-wrap:anywhere; }
.workout-trainer strong { color:inherit; font-weight:750; }
.modal-workout-facts { min-width:0; flex:1; }
.modal-workout-facts > .session-date { margin-bottom:5px; }
.visit-workout-facts { display:grid; grid-template-columns:5ch minmax(0,1fr); align-items:baseline; gap:10px; }
.visit-workout-facts + .workout-card-rules { margin:4px 0; }

.visit-history { display:grid; gap:18px; }
.visit-day {
  --visit-inset: 14px;
  min-width:0;
  display:grid;
  gap:6px;
}
.visit-day > h3 {
  margin:0 0 2px;
  color:#496959;
  font-size:14px;
  line-height:1.4;
  font-weight:650;
}
.visit-detail { min-width:0; border:1px solid #d5e0d5; border-radius:12px; background:#fff; }
.visit-detail > summary, .profile-history > summary {
  list-style:none;
  cursor:pointer;
  min-height:46px;
  align-items:center;
  gap:10px;
  padding:10px var(--visit-inset, 16px);
}
.visit-detail > summary::-webkit-details-marker, .profile-history > summary::-webkit-details-marker { display:none; }
.visit-detail > summary { display:grid; grid-template-columns:5ch minmax(0,1fr) 16px; }
.visit-detail.individual-visit-detail > summary { grid-template-columns:minmax(0,1fr) 16px; }
.visit-detail summary time { color:#436658; font-size:14px; font-variant-numeric:tabular-nums; }
.visit-detail summary strong { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; font-size:15px; }
.visit-detail[open] summary strong { white-space:normal; overflow-wrap:anywhere; }
.visit-detail summary .icon, .profile-history > summary .icon { width:16px; height:16px; }
.visit-detail[open] > summary .icon, .profile-history[open] > summary .icon { transform:rotate(90deg); }
.visit-detail-body { display:grid; gap:5px; margin:0 var(--visit-inset); padding:10px 0 12px; border-top:1px solid #e3ebe1; color:#4a665a; font-size:14px; }
.visit-detail-body p { margin:0; }
.visit-detail-body > .rebook-button { justify-self:start; max-width:100%; margin-top:5px; }
.visit-detail.missed .visit-detail-body b, .visit-detail.late-charged .visit-detail-body b, .visit-detail.late-pending .visit-detail-body b { color:#993e35; }
.profile-history { margin-top:14px; }
.profile-history > summary { display:flex; justify-content:space-between; font-weight:700; background:#fff; border:1px solid #d5e0d5; border-radius:12px; }
.profile-history > .visit-day { margin-top:16px; }
.profile-history > .empty { margin:0 16px 12px; }
.profile-links b.profile-last-unit{background:#f9e3dd;color:#9e3c30;border-radius:8px;padding:3px 7px}

.workout-card .capacity.capacity-low,.workout-card .capacity.capacity-low .icon{color:#9e352b}.workout-card .capacity.capacity-low{font-weight:650}.workout-card button.booking-ended:disabled,.workout-card .booking-missed{color:#963429;background:#faeae5;border-color:#e4b7ac;opacity:1}
.workout-card button.booking-daily-conflict{color:#963429;background:#faeae5;border-color:#e4b7ac}
.workout-card button.booking-daily-conflict:hover{background:#f6ddd5}
.booking-card-actions .booking-status-tag{min-height:44px;padding:8px 12px;border:1px solid #bddcc8;border-radius:12px;background:#e6f2e9;color:#2e6948;font-size:14px;font-weight:700;line-height:1.45}
.booking-card-actions .booking-reserve-tag{border-color:#e4c693;background:#fff2d9;color:#71501c}
.booking-card-actions .booking-reserve-tag:hover{background:#f9e7c2}
.guest-price-note{color:#315c41;font-weight:650}
#modal-content>#guest-book-price{font-size:.8125rem;margin:8px 0 12px}
#modal-content>#guest-book-price:not(.guest-price-payment){font-weight:550;line-height:1.45}
#modal-content>.guest-price-payment{color:#963429;font-weight:400;line-height:1.35}

.day-picker.day-picker-long{display:grid;grid-template-columns:minmax(64px,1fr);grid-auto-flow:column;grid-auto-columns:minmax(44px,1fr);overflow-x:auto;overscroll-behavior-x:contain}

.profile-links .profile-pass-status{display:block;color:#42675a;font-size:.78rem;font-weight:600;line-height:1.45}

.visit-detail.auto-missed{color:#8e342b;background:#fff0eb;border-color:#e8beb3}
.pass-visits li.pass-missed,.missed-booking-note{color:#8e342b;background:#fff0eb;border:1px solid #e8beb3;border-radius:12px}
.visit-detail.auto-missed summary,.visit-detail.auto-missed summary time,.visit-detail.auto-missed summary strong,.visit-detail.auto-missed .visit-detail-body,.pass-visits .pass-missed time,.pass-visits .pass-missed strong{color:inherit}
.pass-visits li.pass-missed,.missed-booking-note{padding:10px 12px}.pass-visits .pass-missed span{font-size:.82rem;font-weight:650}
.visit-outcome{display:flex;align-items:flex-start;gap:8px;min-width:0;font-size:14px;font-weight:550;line-height:20px;overflow-wrap:anywhere}
.visit-outcome-icon{display:inline-grid;flex:0 0 18px;place-items:center;width:18px;height:18px;margin-top:1px;border-radius:5px;background:var(--outcome-bg)}
.visit-outcome-icon .icon{width:13px;height:13px;stroke-width:2.3}
.visit-outcome-positive{--outcome-bg:#deeee1;color:#246246}
.visit-outcome-negative{--outcome-bg:#f8e3df;color:#903b34}
.visit-outcome-pending{--outcome-bg:#edf1ee;color:#52675b}
.visit-summary-status{display:block;color:#903b34;font-size:.75rem;font-weight:650;white-space:normal}
.visit-detail[open] > summary .visit-summary-status{display:none}

.workout-participants { min-width:0; border-top:1px solid #dce5d8; color:#305747; text-align:left; }
.workout-card > .workout-participants { margin:0 clamp(16px,4vw,24px); }
.workout-participants > summary { display:flex; align-items:center; justify-content:space-between; gap:10px; min-height:44px; cursor:pointer; list-style:none; color:#305747; font-size:14px; font-weight:650; }
.workout-participants > summary::-webkit-details-marker { display:none; }
.workout-participants > summary .icon { width:16px; height:16px; flex:none; }
.workout-participants[open] > summary .icon { transform:rotate(90deg); }
.workout-participants .participant-group-title { margin:0 0 6px; color:#486355; font-size:13px; font-weight:650; line-height:1.45; }
.workout-participants ul, .workout-participants ol { display:grid; gap:7px; padding:0 0 12px; margin:0; list-style:none; }
.workout-participants li { display:flex; align-items:center; gap:7px; min-width:0; font-size:14px; }
.workout-participants .participant-avatar { display:grid; place-items:center; position:relative; flex:0 0 28px; width:28px; height:28px; border-radius:var(--avatar-radius); overflow:hidden; background:#e5eee4; color:#365c49; font-size:11px; font-weight:700; line-height:1; }
.participant-avatar img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.participant-avatar img:not([data-photo-loaded]) { opacity:0; }
.participant-avatar .icon { width:16px; height:16px; }
.workout-participants .participant-identity { display:grid; gap:1px; min-width:0; overflow-wrap:anywhere; }
.workout-participants .participant-identity .participant-booked-time { color:#65756d; font-size:12px; line-height:1.45; font-weight:400; font-variant-numeric:tabular-nums; }
.workout-participants > p { margin:0; padding:0 0 12px; font-size:14px; color:#53695f; }
.workout-participants .participant-guests { flex:none; border-radius:12px; padding:1px 6px; background:#e9f1e4; color:#315d48; font-size:12px; font-weight:650; }

.pass-validity { display:grid; min-width:0; gap:3px; line-height:1.45; }
.pass-validity-label,.pass-validity small { font-size:.8rem; font-weight:400; }
.pass-validity-period { font-size:.925rem; font-weight:650; text-wrap:balance; }
.pass-validity time { white-space:nowrap; font-variant-numeric:tabular-nums; }
.pass-footer > .icon { flex:none; }

.reserve-times { display:grid; gap:2px; min-width:0; color:#576b60; font-size:12px; line-height:1.45; font-variant-numeric:tabular-nums; }
.workout-card > .reserve-times { margin:0 clamp(16px,4vw,24px) 12px; }
.workout-card .workout-bottom { flex-wrap:wrap; }
.workout-card .workout-bottom > button { max-width:100%; }
.workout-card .capacity { min-width:0; max-width:100%; }
.workout-card .capacity .icon, .workout-time { flex:none; }
.workout-card .seat-count, .workout-time > span, .booking-date-top time,
.schedule-main .list-heading time, .schedule-main .list-heading > span:last-child,
.pass-visits time, .pass-footer strong { white-space:nowrap; }
.schedule-main .list-heading { align-items:baseline; flex-wrap:wrap; }
.workout-details h3, .pass-title, .modal-workout h3 { overflow-wrap:anywhere; }
.modal-workout > div, .registration-form > label { min-width:0; }
.client-finance .finance-grid { display:flex; flex-wrap:wrap; }
.client-finance .finance-grid > div { flex:1 1 9rem; min-width:min-content; }
.client-finance .finance-grid strong { white-space:nowrap; font-variant-numeric:tabular-nums; }
.membership-payment-lines > span { flex-wrap:wrap; }
.membership-payment-lines > span > strong { white-space:nowrap; font-variant-numeric:tabular-nums; }
body[data-role="client"] .field-label input { min-width:0; max-width:100%; }
.profile-links button > span { min-width:0; }

@media (max-width:480px) {
  .membership-page .balance-grid { grid-template-columns:minmax(0,1fr); gap:0; background:#fff; border:1px solid var(--line); border-radius:12px; }
  .membership-page .balance-grid > div { flex-direction:row-reverse; justify-content:space-between; align-items:baseline; gap:12px; padding:10px 14px; border:0; border-radius:0; background:transparent; }
  .membership-page .balance-grid > div + div { border-top:1px solid var(--line); }
  .membership-page .balance-grid span { text-align:left; overflow-wrap:normal; }
  .membership-page .balance-grid strong { font-size:1.13rem; }
  .profile-links button > b { text-align:right; text-wrap:balance; }
  .guest-selector { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .guest-selector button { min-width:0; }
  .bottom-nav:not(.admin-bottom-nav) { gap:2px; }
  .bottom-nav:not(.admin-bottom-nav) .nav-item { min-width:0; padding-inline:1px; font-size:clamp(11px,3.2vw,14px)!important; }
  .bottom-nav:not(.admin-bottom-nav) .nav-item > span { white-space:nowrap; }
}

.booking-outcomes, .pass-visit-outcomes { display:grid; gap:5px; min-width:0; }
.workout-card > .booking-outcomes { margin:0 clamp(16px,4vw,24px) 14px; }
.pass-visits > ul > li { display:grid; grid-template-columns:max-content minmax(0,1fr); gap:5px 12px; }
.pass-visits .pass-visit-outcomes { grid-column:1/-1; }
.pass-visits .pass-missed .visit-outcome { font-size:14px; }
@media (max-width:480px) {
  .pass-visits > ul > li { grid-template-columns:minmax(0,1fr); }
}

.client-preview-notice { margin:0 0 20px; }
.client-preview-notice p { margin:0; }
.client-preview-notice strong { color:var(--text); }

.schedule-date-nav {
  position:sticky;
  top:0;
  z-index:10;
  padding-block:3px 6px;
  background:var(--bg);
}
.schedule-day { scroll-margin-block-start:112px; }
.schedule-day + .schedule-day {
  margin-top:22px;
  padding-top:16px;
  border-top:1px solid var(--line);
}
.schedule-day .list-heading > h2 {
  color:#4a665d;
  font:inherit;
  font-weight:750;
  text-transform:capitalize;
}

.profile-telegram-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #f4f8ef;
}
.profile-telegram-card > .icon { width: 21px; height: 21px; color: var(--accent); margin-top: 1px; }
.profile-telegram-card h2 { font-size: 1rem; line-height: 1.35; }
.profile-telegram-card p { margin: 6px 0 12px; font-size: .85rem; line-height: 1.5; }
.profile-telegram-card .button-secondary { min-height: 44px; padding: 8px 12px; font-size: .82rem; }
.profile-telegram-card form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.profile-telegram-card input {
  width: 100%; min-width: 0; min-height: 44px; padding: 8px 10px;
  border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; color: var(--text);
  font: inherit; font-size: 16px; outline-offset: 2px;
}
