/* Shared safeguards. Phone layouts below are shared by the local and OVH versions. */
html{-webkit-text-size-adjust:100%;scroll-padding-top:20px}img{max-width:100%}button,input,select,textarea{max-width:100%}input,select,textarea,label{min-width:0}button{white-space:normal;overflow-wrap:anywhere;touch-action:manipulation}h1,h2,h3,p,dd,blockquote{overflow-wrap:anywhere}.sidebar-header{width:100%}.mobile-header-actions{display:none}.hero>div,.person>div,.panel,.lesson-info,.timeline-content,.booking-copy,.profile-layout>*{min-width:0}.hero>.actions{max-width:45%;flex-shrink:0}.tabs{flex-wrap:wrap}.table-wrap{max-width:100%;overscroll-behavior-x:contain}.context-menu{max-height:calc(100dvh - 24px);overflow:auto;overscroll-behavior:contain}dialog{max-width:calc(100% - 24px);max-height:calc(100dvh - 24px);overflow:auto;overscroll-behavior:contain}.lesson-info .text-button,.timeline-content .text-button{max-width:100%;text-align:left;overflow-wrap:anywhere}.lesson-timeline li{min-width:0}.timeline-content h3 button{align-items:flex-start}.timeline-content h3 button svg{flex-shrink:0;margin-top:3px}input[type=file]{overflow:hidden}.profile-photo{max-width:100%}.info-grid>*{min-width:0}
@media(min-width:751px) and (max-width:1100px){.shell{grid-template-columns:195px minmax(0,1fr)}aside{padding:26px 15px;gap:30px}main{padding:28px 24px 50px}.hero{flex-wrap:wrap;gap:18px}.hero>.actions{max-width:100%;justify-content:flex-start}.hero h1{font-size:clamp(38px,5vw,60px)}.grid{grid-template-columns:repeat(auto-fit,minmax(min(250px,100%),1fr))}}
@media(max-width:750px){
body{min-width:0}.shell{display:block;min-height:100dvh}aside{position:relative;display:block;padding:10px max(16px,env(safe-area-inset-right)) 10px max(16px,env(safe-area-inset-left));height:auto;overflow:visible;background:#080808;border-bottom:1px solid #303030}.sidebar-header{display:flex;justify-content:space-between;align-items:center;gap:14px}.sidebar-header .brand{flex-shrink:0}.sidebar-header .brand-logo{width:80px;height:66px}.mobile-header-actions{display:flex;align-items:center;gap:8px}.mobile-menu-toggle{display:flex;align-items:center;gap:7px;padding:9px 13px;min-height:44px;font-size:12px}.mobile-menu-toggle svg{width:18px;height:18px;stroke:currentColor;stroke-width:1.5}.mobile-profile{padding:0;background:none;border:0;min-height:44px;min-width:44px;display:grid;place-items:center}.mobile-profile .avatar{width:36px;height:36px;font-size:14px}aside nav{display:none;overflow:visible;padding:14px 0 4px;gap:7px}aside.nav-open nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}aside nav button{min-height:46px;padding:12px;font-size:12px;white-space:normal;border-radius:9px}aside .sidebar-profile{display:none;max-width:none;margin-top:10px}aside.nav-open .sidebar-profile{display:flex;min-height:58px}.sidebar-profile span{min-width:0}main{padding:20px max(16px,env(safe-area-inset-right)) calc(35px + env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));width:100%;max-width:none}.topline{display:flex;align-items:center;justify-content:space-between;font-size:11px;gap:12px;padding-bottom:16px}.topline>span{max-width:100%;min-width:0}.topline>span:last-child{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.topline button{margin-left:0;min-height:40px}.hero{padding:24px 0;gap:18px}.hero h1{font-size:clamp(36px,9.5vw,56px);margin:8px 0 15px;line-height:1.05;letter-spacing:-.7px}.hero p{font-size:13px;line-height:1.7}.hero>.actions{width:100%;max-width:none;justify-content:flex-start;gap:10px}.hero>.actions button{flex:1 1 145px}.hero>button{width:100%}button{min-height:44px;line-height:1.4;font-size:13px;padding:11px 16px}button.small{font-size:12px;padding:10px 13px;min-height:44px}.text-button{min-height:44px;display:inline-flex;align-items:center;gap:6px;padding:4px 0;line-height:1.5}label{font-size:13px;line-height:1.5;margin-bottom:18px;gap:8px}input,select,textarea{font-size:16px;line-height:1.4;min-height:48px;width:100%;padding:12px}input[type=date],input[type=datetime-local]{display:block;max-width:100%;min-width:0;appearance:none;-webkit-appearance:none}input[type=file]{font-size:13px;padding:10px;min-height:48px}input[type=checkbox]{min-height:22px;width:22px;height:22px;max-width:22px;padding:0}.checkbox{align-items:flex-start;font-size:12px}.checkbox input{margin:1px 0 0;flex-basis:22px}textarea{min-height:120px;resize:vertical}.form-grid{grid-template-columns:1fr}.stats,.stats.four{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.stat{padding:17px 14px;min-height:120px}.stat strong{font-size:clamp(25px,7.3vw,34px);line-height:1.15;margin:16px 0 8px;letter-spacing:-1px}.stat small{font-size:11px;line-height:1.6;display:block}.student-dashboard .stat{min-height:125px}.panel{padding:20px}.grid{grid-template-columns:1fr;gap:14px}.person{gap:12px;align-items:flex-start}.person h2,.person h3{font-size:17px;line-height:1.5}.person p{font-size:12px}.avatar{width:42px;height:42px}.profile-summary .actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.profile-summary .actions button{width:100%;font-size:11px;padding:11px 9px;border-radius:10px;min-height:48px}.profile-summary .actions button:first-child{grid-column:1/-1}.tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.tabs button{font-size:12px;padding:12px 9px}.section-head{gap:14px}.hint{font-size:12px;line-height:1.7}.empty{padding:25px 18px;font-size:13px}.lesson{display:grid;grid-template-columns:54px minmax(0,1fr);align-items:start;gap:14px;padding:22px 0}.datebox{min-width:0;width:54px;font-size:22px;padding:12px 6px}.datebox small{font-size:9px}.lesson-info h3{font-size:15px;line-height:1.6}.lesson-info p{font-size:12px;line-height:1.8}.lesson-info .text-button{font-size:15px}.lesson>.actions{grid-column:1/-1;display:flex;justify-content:flex-start;max-width:100%;width:100%;padding-left:0;gap:8px}.lesson>.actions button{flex:1 1 115px;font-size:12px;border-radius:9px}.lesson:not(:has(.datebox)){grid-template-columns:minmax(0,1fr)}.badge{font-size:9px;line-height:1.5}.table-wrap{margin:18px 0 26px;overflow:visible}table,tbody{display:block;width:100%}thead{display:none}tbody{display:grid;gap:14px}tbody tr{display:block;padding:10px 16px;background:#101010;border:1px solid #363636;border-radius:12px}tbody td{display:grid;grid-template-columns:110px minmax(0,1fr);align-items:start;gap:8px 12px;padding:13px 0;min-width:0;border-bottom:1px solid #292929;line-height:1.7;overflow-wrap:anywhere;font-size:13px}tbody td:last-child{border-bottom:0}tbody td:before{content:attr(data-label);color:#929292;font-size:10px;letter-spacing:.3px;line-height:1.7;padding-top:3px}tbody td p{grid-column:2;margin:0;min-width:0;font-size:12px}tbody td>.text-button,tbody td>.badge,tbody td>.actions{grid-column:2;min-width:0;justify-self:start}tbody td>.badge{width:fit-content}tbody td>.actions{display:grid;width:100%;justify-self:stretch;grid-template-columns:1fr;gap:8px}tbody td>.actions button{width:100%;font-size:11px;border-radius:9px}.filter{max-width:none}.profile-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:18px}.profile-photo{max-width:none}.profile-photo label{margin-top:8px}.profile-photo .avatar.large{width:100px;height:100px}.info-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 14px}.info-grid dd{font-size:13px}.info-grid dt{font-size:11px}.student-info summary{font-size:13px;line-height:1.7;min-height:32px}.password-panel{padding:20px}.password-panel form{max-width:none}.password-panel button,#personal-profile>button{width:100%}dialog{width:calc(100% - 24px);max-width:560px;margin:auto;max-height:calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom));padding:23px 20px;border-radius:14px}dialog h2{font-size:21px;line-height:1.4;margin-bottom:22px}dialog .hint,dialog p{font-size:13px;line-height:1.7}dialog .form-actions{position:sticky;bottom:-23px;background:#101010;margin:20px -2px -2px;padding:15px 0 2px;display:flex;gap:10px;border-top:1px solid #333;z-index:1}dialog .form-actions button{flex:1;min-width:0;font-size:12px;min-height:46px;padding:11px 12px}.lesson-details dd{font-size:14px}.context-menu{min-width:0;width:min(290px,calc(100vw - 24px));padding:7px}.context-menu button{font-size:13px;min-height:46px}.login{padding:24px 20px;width:100%;max-width:450px;margin:2vh auto}.login h1{font-size:clamp(36px,11vw,58px);letter-spacing:-.5px}.login p{font-size:14px}.login .brand-logo{width:135px;height:120px}#toast{bottom:calc(16px + env(safe-area-inset-bottom));width:max-content;max-width:calc(100vw - 32px);font-size:13px;line-height:1.6;padding:13px 17px}.booking-banner,.online-announcement{padding:22px 18px;gap:14px}.booking-copy{flex-basis:calc(100% - 70px)}.booking-copy h2{font-size:17px}.booking-copy p,.online-announcement p{font-size:13px}.booking-banner button,.dashboard-focus.has-advice .booking-banner button{margin-left:0;width:100%;justify-content:center;font-size:13px}.online-announcement .coming-soon{margin-left:0;max-width:100%;white-space:normal}.dashboard-section-heading{gap:16px}.dashboard-section-heading button{min-height:44px;font-size:12px}.dashboard-progress,.dashboard-requests{padding:22px 18px}.next-lesson{grid-template-columns:minmax(0,1fr) 62px;padding:23px 18px}.next-lesson h2{font-size:clamp(24px,7.3vw,33px);line-height:1.15}.next-lesson button{font-size:12px;min-height:46px;max-width:100%}.next-location{align-items:flex-start;font-size:12px!important}.next-location svg{margin-top:4px}.next-date{padding-left:12px}.next-date strong{font-size:56px}.next-top{flex-wrap:wrap}.coach-advice{padding:24px 20px}.coach-advice blockquote{font-size:14px}.advice-heading h2{font-size:16px}.timeline-content h3{font-size:14px}.timeline-content p,.timeline-date{font-size:11px}.advice-footer>span{font-size:11px}.advice-footer button{min-height:44px;font-size:12px}.progress-empty{gap:14px}.progress-empty p{font-size:13px}
}
@media(max-width:360px){main{padding-left:12px;padding-right:12px}.topline>span{font-size:10px}.stat{padding:15px 11px}.stat small{font-size:10px}.stat strong{font-size:27px}.profile-summary .actions{grid-template-columns:1fr}.profile-summary .actions button:first-child{grid-column:auto}tbody td{grid-template-columns:90px minmax(0,1fr);gap:8px}.info-grid{grid-template-columns:1fr}.next-lesson{grid-template-columns:minmax(0,1fr) 49px;gap:9px}.next-date strong{font-size:45px}.next-date>span{font-size:8px}.next-date{padding-left:9px}.booking-icon{width:44px;height:44px}.booking-copy{flex-basis:calc(100% - 60px)}.mobile-menu-toggle{padding:9px 11px}.profile-summary .person{gap:9px}}
@media(max-width:750px) and (orientation:landscape){dialog{max-height:calc(100dvh - 16px);padding-top:18px;padding-bottom:18px}.login{margin:0 auto}.login .brand-logo{height:90px}}
@media(hover:none){.student-dashboard .stat:hover,.next-lesson button:hover{transform:none!important}}
[hidden] { display: none !important; }
.platform-panel { margin-bottom: 24px; }
.platform-panel h2:not(:first-child) { margin-top: 28px; }
.platform-panel .actions { flex-wrap: wrap; }
.platform-panel p { overflow-wrap: anywhere; }
