/* Member portal: touch-first, responsive across phone, tablet and desktop. */
body:not(.admin-mode):not(.kiosk-mode){height:100dvh;display:flex;flex-direction:column;overflow:hidden}
body:not(.admin-mode):not(.kiosk-mode) .prototype-bar{width:100%;max-width:1280px;flex-shrink:0;flex-wrap:wrap;padding:12px max(16px,env(safe-area-inset-right)) 12px max(16px,env(safe-area-inset-left))}
body:not(.admin-mode):not(.kiosk-mode) .shell{display:flex;flex:1;min-height:0;width:100%;max-width:1280px;margin:0 auto;padding:0 20px 20px}
body:not(.admin-mode):not(.kiosk-mode) .guide,body:not(.admin-mode):not(.kiosk-mode) .statusbar{display:none}
body:not(.admin-mode):not(.kiosk-mode) .mobile-controls{display:block}
body:not(.admin-mode):not(.kiosk-mode) .phone{width:100%;height:100%;min-height:0;max-height:none;border-radius:16px}
.member-page{min-height:0;padding:28px clamp(20px,4vw,48px);overflow:auto;overflow-wrap:anywhere}
.member-page>*{min-width:0}
.member-page .input{font-size:16px}
.member-page .avatar{width:44px;height:44px}
.member-page .text-button,.member-page .filters button,.member-page .chip-button{min-height:44px}
.member-page .badge{white-space:normal}
.member-page .row{flex-wrap:wrap}
.member-page .grow{min-width:0}
.member-page .next-class{margin-top:0}
.member-dashboard{display:grid;gap:24px;margin-top:24px;align-items:start}
.member-dashboard .section-title:first-child{margin-top:0}
.member-calendar{display:grid;gap:24px;align-items:start}
.member-calendar section{min-width:0}
.member-page:not(.member-page-home):not(.member-page-calendar):not(.member-page-progress):not(.member-page-attendance){width:100%;max-width:620px;margin:0 auto}
body:not(.admin-mode):not(.kiosk-mode) .bottom-nav{padding-bottom:max(10px,env(safe-area-inset-bottom))}
body:not(.admin-mode):not(.kiosk-mode) .toast{position:fixed;bottom:100px;left:50%;right:auto;transform:translateX(-50%);width:min(520px,calc(100% - 32px))}
@media(min-width:768px){
 .member-dashboard{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:28px}
 .member-page .week-grid,.member-page .month-grid{gap:6px}
 .member-page .month-grid .day-button{min-height:54px}
 .member-page-progress,.member-page-attendance{max-width:900px;width:100%;margin:auto}
 body:not(.admin-mode):not(.kiosk-mode) .bottom-nav{order:-1;border-top:0;border-bottom:1px solid var(--line);padding:8px 20px}
 body:not(.admin-mode):not(.kiosk-mode) .nav-button{flex-direction:row;gap:10px;font-size:.9375rem;min-height:48px}
}
@media(min-width:1100px){.member-calendar{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:36px}.member-calendar .day-actions{margin-top:20px}.member-page .month-grid .day-button{min-height:64px}}
@media(max-width:767px){
 body:not(.admin-mode):not(.kiosk-mode) .shell{padding:0}
 body:not(.admin-mode):not(.kiosk-mode) .phone{border:0;border-radius:0;box-shadow:none}
 body:not(.admin-mode):not(.kiosk-mode) .prototype-brand{display:none}
 .member-page{padding:20px max(20px,env(safe-area-inset-right)) 24px max(20px,env(safe-area-inset-left))}
 .member-calendar{gap:8px}
 .member-page .day-button{min-height:48px}
}
@media(max-width:359px){.member-page{padding-left:12px;padding-right:12px}.member-page .section-title{flex-wrap:wrap}.member-page .calendar-title{font-size:1rem}}
@media print{body:not(.admin-mode):not(.kiosk-mode) .shell{display:none!important}}
/* Consistent technique, session-count and chevron columns across every row. */
.member-page .progress-row{display:grid;grid-template-columns:minmax(0,1fr) 5rem 22px;gap:14px;align-items:center}
.member-page .progress-row>span:first-child{min-width:0;overflow-wrap:anywhere;text-align:left}
.member-page .progress-count{width:100%;min-width:0;text-align:center;font-variant-numeric:tabular-nums}
.member-page .progress-count>span{display:block}
.member-page .progress-row>svg{justify-self:end}
