/* A single workspace: the time grid or chronological lesson list owns scrolling. */
body.calendar-workspace-route{overflow:hidden}
body.calendar-workspace-route .workspace{height:100dvh;min-width:0;display:flex;flex-direction:column;overflow:hidden}
body.calendar-workspace-route .topbar{flex:0 0 64px;height:64px}
body.calendar-workspace-route .main.calendar-workspace{display:flex;flex-direction:column;flex:1;min-height:0;width:100%;max-width:none;padding:18px 24px 12px;overflow:hidden}
.calendar-workspace .page-heading{display:flex!important;flex-direction:row!important;justify-content:space-between;align-items:center;margin:0 0 8px;gap:12px;flex:0 0 auto}
.calendar-workspace .page-heading h1{font-size:26px!important;margin:0!important;letter-spacing:-.5px}
.calendar-workspace .page-heading p:empty{display:none}
.calendar-workspace .calendar-admin-actions{margin-left:auto}
.calendar-workspace #calendar-delete-selected:disabled{display:none}
.calendar-workspace .calendar-toolbar{flex:0 0 auto;display:flex;align-items:flex-start;flex-wrap:wrap;gap:10px 14px;margin-bottom:10px;min-width:0}
html[data-academy-design="cuban"] .calendar-workspace .calendar-booking-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;width:auto;min-width:0;align-items:start;flex:1 1 530px}
html[data-academy-design="cuban"] .calendar-workspace .calendar-booking-actions .btn{display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:100%;min-width:0;max-width:100%;min-height:44px;padding:9px 10px;font-size:12px;line-height:1.35;flex:none;gap:6px;border-radius:10px;white-space:normal;overflow-wrap:anywhere;text-align:center}
html[data-academy-design="cuban"] .calendar-workspace .calendar-booking-actions .btn>svg{flex:0 0 19px}
html[data-academy-design="cuban"] .calendar-workspace .group-calendar-control{width:100%;max-width:none;display:flex;flex-direction:column;align-items:stretch;gap:3px;min-width:0}
html[data-academy-design="cuban"] .calendar-workspace .group-calendar-control [data-group-quota]{font-size:11px!important;line-height:1.3;color:#32664b;text-align:center;white-space:nowrap;font-variant-numeric:tabular-nums}
.calendar-workspace .calendar-toolbar>.calendar-controls:last-child{margin-left:auto;gap:7px;display:flex;align-items:center}
.calendar-workspace #timezone{min-height:38px;max-width:195px;padding:7px 9px;font-size:12px}
.calendar-workspace-body{display:grid;grid-template-columns:minmax(0,1fr) 258px;gap:18px;flex:1;min-height:0}
.calendar-primary{display:flex;flex-direction:column;min-width:0;min-height:0;overflow:hidden}
.calendar-workspace-tabs{display:flex;flex:none;gap:4px;border-bottom:1px solid #dbe5f0;margin-bottom:10px;padding-bottom:7px}
.calendar-workspace-tabs button{border:0;background:transparent;color:#526986;border-radius:8px;padding:8px 16px;font-weight:650;font-size:13px}
.calendar-workspace-tabs button.active{color:#064bb4;background:#e9f1ff}
.calendar-next-tab{display:none}
.calendar-grid-view{display:flex;flex-direction:column;min-height:0;flex:1;overflow:hidden;position:relative}
.calendar-grid-view:has(#booking-week-section:not([hidden]))>.booking-calendar-views{position:static;min-width:0}
.calendar-grid-view:has(#booking-week-section:not([hidden]))>.booking-calendar-views>span{display:none!important}
.calendar-workspace #booking-week-section>.booking-week-controls{padding-left:0;min-height:36px}
.calendar-grid-view[hidden],.calendar-list-view[hidden]{display:none!important}
.calendar-list-view{min-height:0;flex:1;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding-right:5px}
.calendar-workspace #booking-week-section{display:flex;flex:1;min-height:0;flex-direction:column;overflow:hidden}
.calendar-workspace #booking-week-section[hidden]{display:none}
html[data-academy-design="cuban"] .calendar-workspace .lesson-week-scroll{flex:1;min-height:0;max-height:none;height:auto;margin:0;overscroll-behavior:contain;border:1px solid #dce6f0;border-radius:13px;scrollbar-gutter:stable}
.calendar-workspace .lesson-week-head,.calendar-workspace .lesson-week-body{min-width:0!important;grid-template-columns:42px repeat(7,minmax(0,1fr))!important}
.calendar-workspace .lesson-week-body{height:calc(var(--calendar-row-height,42px) * 24)}
.calendar-workspace .lesson-week-head{height:48px;min-height:48px}
.calendar-workspace .lesson-week-head>div{padding:5px!important}
.calendar-workspace .lesson-week-head strong{font-size:15px}
.calendar-workspace .lesson-week-head small{font-size:10px}
.calendar-workspace .lesson-hour-axis span{font-size:10px}
.calendar-workspace .lesson-time-event{padding:3px 5px;font-size:10px}
.calendar-workspace .lesson-time-event strong{font-size:11px;line-height:1.2}
html[data-academy-design="cuban"] .calendar-workspace .booking-calendar-views{flex:none;margin:0 0 7px;gap:5px;align-items:center;flex-wrap:nowrap}
html[data-academy-design="cuban"] .calendar-workspace .booking-calendar-views>span{padding:0;margin-left:auto;max-width:40%;background:none!important;border:0!important;font-size:11px!important;font-weight:400;line-height:1.3}
.calendar-workspace .booking-week-controls{flex:none;margin:0 0 8px!important;min-height:34px}
.calendar-workspace .booking-week-controls strong{font-size:13px}
.calendar-workspace .calendar-legend{flex:none;margin:7px 0 0;font-size:10px}
.calendar-workspace .calendar-grid-view>.agenda{display:none!important}
.calendar-workspace .calendar-grid-view>.calendar:not([hidden]){overflow:auto;min-height:0;flex:1;overscroll-behavior:contain}
.calendar-workspace .availability-status{flex:none;margin:3px 0;font-size:11px;padding:5px}
.calendar-next{min-height:0;overflow-y:auto;overscroll-behavior:contain;border-left:1px solid #dbe5f0;padding-left:18px}
.calendar-next-heading{display:flex;align-items:center;justify-content:space-between;margin:3px 0 13px}
.calendar-next-heading h2{font-size:16px!important;margin:0}
.calendar-next-heading>span{display:none}
.calendar-next-card{border:1px solid #dce6f0;border-left:3px solid #cf143e;border-radius:12px;background:#fff;padding:13px;margin-bottom:10px}
.calendar-next-card.is-group{border-left-color:#098758}
.calendar-next-date{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:11px;color:#a91c3b;text-transform:capitalize}
.calendar-next-date strong{font-size:19px;color:#0653b8;letter-spacing:-.5px}
.calendar-next-title{display:block;border:0;background:none;text-align:left;padding:9px 0 5px;font-size:14px;font-weight:700;line-height:1.35;color:#172e53;overflow-wrap:anywhere}
.calendar-next-card>small{font-size:11px;color:#526986}
.calendar-next-meet{display:flex;align-items:center;gap:7px;font-size:12px;padding-top:10px;color:#064ba8}
.calendar-next-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin-top:10px;min-width:0}
.calendar-next-actions .calendar-next-meet{padding-top:0;min-height:24px}
.calendar-next-late{display:inline-flex;align-items:center;gap:5px;max-width:100%;padding:5px 8px;border:1px solid #e6b95b;border-radius:7px;background:#fff5dc;color:#784b00;font-size:11px;line-height:1.4;overflow-wrap:anywhere}
.calendar-next-late>[aria-hidden]{flex:none;font-size:16px;line-height:1}
.calendar-next-late>span:last-child{min-width:0}
.calendar-next-empty{font-size:13px;line-height:1.6;color:#62728a}
.calendar-workspace .private-bookings{padding:0;border:0;background:transparent}
.calendar-workspace .private-bookings-header{display:none}
.calendar-workspace .booking-day-heading{margin:20px 0 9px}
.calendar-workspace .booking-day-heading:first-child{margin-top:5px}
.calendar-workspace .booking-visual-row{margin-bottom:8px}
.calendar-workspace .group-session{margin:0 0 8px}
.calendar-workspace [data-group-session] .group-session-when{min-width:112px}
.calendar-workspace .calendar-list-view .booking-icon-actions{flex-wrap:wrap;gap:5px}
.calendar-workspace .calendar-connect{margin-top:16px;border:1px solid #dce6f0;border-radius:12px;background:#fff;padding:12px}
.calendar-workspace .calendar-connect>summary{font-size:12px;font-weight:650;list-style:none;display:flex;align-items:center;gap:6px;cursor:pointer}
.calendar-workspace .calendar-connect p,.calendar-workspace .calendar-connect small{font-size:12px;line-height:1.5}
.calendar-workspace .personal-calendar-account{padding:0;border:0;display:grid;gap:8px}
.calendar-workspace .personal-calendar-account h3{font-size:14px}
.calendar-mobile-days{display:none}
.calendar-workspace .editor-toolbar{padding:4px 8px!important;margin:0 0 7px!important;flex:none}
.calendar-workspace>.authoring-bar{flex:0 0 auto;padding:0!important;margin:0 0 6px!important;min-height:0;background:transparent;border:0}
.calendar-workspace>.authoring-bar>div{display:flex;align-items:stretch;gap:6px;min-width:0}
.calendar-workspace>.authoring-bar .editor-button{width:auto;min-width:0;min-height:30px;margin:0;padding:5px 8px;font-size:10px;line-height:1.3;white-space:normal}
@media (min-width:1500px){.calendar-workspace-body{grid-template-columns:minmax(0,1fr) 290px}.calendar-workspace .calendar-next-card{padding:16px}}
@media (max-width:1100px) and (min-width:701px){.calendar-workspace-body{grid-template-columns:minmax(0,1fr) 215px;gap:12px}.calendar-next{padding-left:12px}.calendar-workspace .calendar-toolbar>.calendar-controls:last-child{margin-left:0}.calendar-workspace .lesson-event-time{font-size:9px}}
@media (max-width:700px){
 body.calendar-workspace-route .topbar{height:56px;flex-basis:56px}
 body.calendar-workspace-route .main.calendar-workspace{padding:10px 10px max(8px,env(safe-area-inset-bottom));height:auto!important;max-height:none}
 .calendar-workspace .page-heading{margin:0 0 8px;gap:6px}
 .calendar-workspace .page-heading h1{font-size:22px!important}
 .calendar-workspace>.authoring-bar .editor-button{flex:1;max-width:50%}
 .calendar-workspace .calendar-settings{font-size:10px!important;padding:7px!important;min-height:32px!important;margin-left:auto;flex:none}
 .calendar-workspace .calendar-toolbar{gap:7px;margin:0 0 6px;width:100%}
 html[data-academy-design="cuban"] .calendar-workspace .calendar-booking-actions{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;width:100%;align-items:start;order:0;flex-basis:100%}
 html[data-academy-design="cuban"] .calendar-workspace .calendar-booking-actions .btn{width:100%;min-height:57px;padding:7px 5px;font-size:11px;white-space:normal;gap:4px;text-align:center;flex-direction:column}
 html[data-academy-design="cuban"] .calendar-workspace .calendar-booking-actions .btn>span[aria-hidden="true"]{line-height:19px}
 html[data-academy-design="cuban"] .calendar-workspace .group-calendar-control{width:100%;gap:3px;max-width:none}
 html[data-academy-design="cuban"] .calendar-workspace .group-calendar-control [data-group-quota]{font-size:10px!important;line-height:1.3}
 .calendar-workspace .calendar-toolbar>.calendar-controls:last-child{width:100%;justify-content:space-between;margin:0;min-width:0;overflow:visible;gap:8px}
 .calendar-workspace .calendar-toolbar>.calendar-controls:last-child>button{flex:none}
 .calendar-workspace #timezone{max-width:none;min-width:0;flex:1;min-height:36px;padding:6px 8px;font-size:12px}
 .calendar-workspace-body{display:flex;flex-direction:column;gap:0}
 .calendar-primary{flex:1}
 .calendar-next{display:none;border:0;padding:0}
 .calendar-next-tab{display:block}
 .calendar-workspace-body[data-view="next"] .calendar-primary{flex:0 0 auto}
 .calendar-workspace-body[data-view="next"] .calendar-next{display:block;flex:1}
 .calendar-workspace-tabs{margin:0 0 6px;padding-bottom:5px}
 .calendar-workspace-tabs button{flex:1;font-size:12px;padding:7px}
 html[data-academy-design="cuban"] .calendar-workspace .booking-calendar-views>span{display:none}
 .calendar-workspace .booking-calendar-views .btn{padding:7px 10px!important;min-height:34px;font-size:11px!important}
 .calendar-workspace .booking-week-controls{margin-bottom:5px!important;min-height:30px}
 .calendar-workspace #booking-week-section>.booking-week-controls{padding-left:0;gap:8px!important;min-height:34px;justify-content:center!important;flex-wrap:nowrap}
 .calendar-workspace .booking-calendar-alarm{width:27px;height:27px;padding:3px}
 .calendar-workspace .booking-week-controls .btn{width:36px;min-width:36px;min-height:34px;padding:5px!important;font-size:13px!important;flex:none}
 .calendar-workspace .booking-week-controls strong{font-size:12px;text-align:center;min-width:0}
 .calendar-mobile-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px;flex:none;margin-bottom:6px}
 .calendar-mobile-days button{border:0;border-radius:8px;background:#edf2f9;min-height:44px;min-width:0;padding:5px 0;color:#526986;font-size:10px;display:grid;gap:2px;touch-action:manipulation}
 .calendar-mobile-days button strong{font-size:13px}
 .calendar-mobile-days button[aria-pressed="true"]{background:#064bb4;color:white}
 html[data-academy-design="cuban"] .calendar-workspace .lesson-week-head,html[data-academy-design="cuban"] .calendar-workspace .lesson-week-body{min-width:0!important;grid-template-columns:42px minmax(0,1fr)!important}
 .calendar-workspace .lesson-week-head{display:none!important}
 .calendar-workspace .lesson-week-head>div{display:flex;justify-content:center;gap:8px;align-items:center}
 .calendar-workspace .lesson-time-event{font-size:12px;padding:3px 7px;gap:1px}
 .calendar-workspace .lesson-time-event strong{font-size:13px;flex-shrink:0;min-height:1.2em;-webkit-line-clamp:1}
 .calendar-workspace .lesson-time-event small{display:none}
 .calendar-workspace .calendar-legend{font-size:9px;gap:6px;flex-wrap:wrap;line-height:1.3}
 .calendar-workspace .booking-visual-row{display:grid;grid-template-columns:58px minmax(0,1fr);gap:9px;padding:12px}
 .calendar-workspace .booking-icon-actions{grid-column:1/-1;padding-top:3px}
 .calendar-workspace .booking-large-time{font-size:18px}
 .calendar-workspace .booking-row-info h3{font-size:14px}
 .calendar-workspace .group-session,.calendar-workspace [data-group-session]{display:block;padding:12px}
 .calendar-workspace .calendar-grid{min-width:0}
 .calendar-workspace .calendar-day{min-height:85px;padding:3px}
 .calendar-workspace .calendar-event,.calendar-workspace .booking-calendar-entry{font-size:9px;padding:3px;overflow:hidden;max-width:100%}
 .calendar-workspace .editor-toolbar{max-height:30px;overflow:hidden}
 .calendar-workspace .calendar-toolbar>.calendar-controls:first-child{min-width:0;max-width:100%;overflow:visible;justify-content:center}
 .calendar-workspace .calendar-toolbar>.calendar-controls:first-child h2{min-width:0;margin:0 8px!important;font-size:16px;text-align:center}
 .calendar-workspace .calendar-toolbar>.calendar-controls:first-child .btn{flex:none;min-width:36px}
 .calendar-workspace .calendar-list-view,.calendar-workspace .calendar-next{overflow-x:hidden;scrollbar-gutter:auto}
 .calendar-workspace .calendar-list-view :is(.booking-row-info,.group-session-copy,.private-bookings){min-width:0;max-width:100%;overflow-wrap:anywhere}
 html[data-academy-design="cuban"] .calendar-workspace .lesson-week-scroll{overflow-x:hidden;scrollbar-gutter:auto;touch-action:pan-y}
}
@media (max-width:360px){
 .topbar .account-controls .academy-language-menu>summary{min-width:60px;padding:4px;gap:3px}
 .topbar .account-controls .booking-credit-link{padding:5px 6px;font-size:10px;white-space:nowrap;min-width:0}
}
