
#schedule:has(.calendar-views button:not(:first-child)[aria-pressed=true]) { box-sizing:border-box; height:100vh; height:100svh; padding-block:8px; }
#schedule:has(.calendar-views button:not(:first-child)[aria-pressed=true]) > .wrap { display:flex; flex-direction:column; height:100%; min-height:0; gap:5px; }
#schedule:has(.calendar-views button:not(:first-child)[aria-pressed=true]) .section-heading { margin:0; align-items:center; }
#schedule:has(.calendar-views button:not(:first-child)[aria-pressed=true]) .section-heading h2 { margin:0; font-size:clamp(20px,3vw,29px); line-height:1.15; }
#schedule:has(.calendar-views button:not(:first-child)[aria-pressed=true]) :is(.section-heading p,.schedule-note,.section-heading .refresh,.calendar-summary) { display:none; }
#schedule:has(.calendar-views button:not(:first-child)[aria-pressed=true]) #past-booking-check { margin:0; max-height:33%; flex-shrink:0; overflow:auto; }
#schedule:has(.calendar-views button:not(:first-child)[aria-pressed=true]) #past-booking-check summary { min-height:32px; padding:5px 12px; }
#schedule:has(.calendar-views button:not(:first-child)[aria-pressed=true]) .calendar { flex:1; min-height:0; display:flex; flex-direction:column; gap:4px; }
#schedule:has(.calendar-views button:not(:first-child)[aria-pressed=true]) .calendar-controls { flex:none; margin:0; padding:6px 10px; gap:4px 8px; }
#schedule:has(.calendar-views button:not(:first-child)[aria-pressed=true]) .calendar-scroll { flex:1; min-height:0; overflow:auto; }
#schedule:has(.calendar-views button:not(:first-child)[aria-pressed=true]) .schedule-footer { margin:0; padding:0; min-height:0; font-size:12px; }
#schedule:has(.calendar-views button:not(:first-child)[aria-pressed=true]) .schedule-footer button { min-height:28px; padding:2px 6px; }
#schedule .calendar-scroll:has(.month-grid) { overflow:hidden; }
#schedule .month-grid { height:100%; min-height:0; min-width:0; grid-template-columns:repeat(7,minmax(0,1fr)); grid-template-rows:22px repeat(6,minmax(0,1fr)); }
#schedule .month-grid .month-head { padding:0; font-size:12px; }
#schedule .month-grid .month-cell { box-sizing:border-box; min-width:0; min-height:0; padding:2px 4px; gap:1px; }
#schedule .month-grid .month-day-btn { align-self:start; min-height:0; line-height:18px; padding:0 2px; }
#schedule .month-grid .month-chip { min-height:0; padding:1px 4px; }
#schedule .month-grid .chip-plate { flex-wrap:nowrap; }
#schedule .month-grid .chip-car { display:none; }
#schedule .month-grid .month-more { min-height:0; padding:0 3px; line-height:16px; }
#schedule .month-count { display:none; }
#schedule .calendar-details { flex:none; margin:0; }
@media(max-width:700px),(max-height:680px){
 #schedule .month-grid .month-chip,#schedule .month-grid .month-more { display:none; }
 #schedule .month-grid .month-count { display:block; border:0; background:#245c88; color:white; border-radius:4px; font:600 13px/1.2 sans-serif; min-height:22px; padding:1px 2px; cursor:pointer; }
 #schedule .month-grid .month-cell { padding:2px; }
 #schedule:has(.calendar-views button:not(:first-child)[aria-pressed=true]) .schedule-footer span { display:none; }
}
@media(max-width:600px){
 #schedule:has(.calendar-views button:not(:first-child)[aria-pressed=true]) .calendar-controls { grid-template-areas:"period period" "nav date" "views views" "book book"; }
 #schedule:has(.calendar-views button:not(:first-child)[aria-pressed=true]) .calendar-title { font-size:20px; }
 #schedule:has(.calendar-views button:not(:first-child)[aria-pressed=true]) .calendar-controls :is(button,input) { min-height:32px; height:32px; padding-block:0; }
}

#schedule .calendar .week-grid.single { width:100%; min-width:0; grid-template-columns:40px minmax(0,1fr); }
