/* BrightBridge tablet sizing: presentation only, no booking/classroom logic changes. */
/* Covers compact Android tablets, iPad portrait and iPad landscape. */
@media (min-width:701px) and (max-width:1180px) {
  html,body{max-width:100%;overflow-x:clip}
  *,*::before,*::after{box-sizing:border-box}
  img,video,canvas,iframe{max-width:100%}
  main,section,.card,.panel,.wrap,.bb-shell,.bb-shell-content,.bb-page,
  .bb-workspace-page,.bb-cal-main,.board-panel,.board-area{min-width:0}
  input,select,textarea{max-width:100%;min-width:0}
  .bb-calendar-actionbar,.bb-calendar-toolbar,.bb-schedule-top,
  .bb-account-page-head,.bb-today-head{min-width:0;flex-wrap:wrap}
  .bb-calendar-action-buttons{flex-wrap:wrap;max-width:100%}
  .bb-calendar-action-buttons button{min-height:44px;max-width:100%}
  .bb-calendar-drawer{max-width:100vw}
  .bb-mobile-table,[class*="table-scroll"]{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
  #member,#member>section,#member>div{min-width:0}
  #member .bb-owner-kpis,#member .bb-finance-cards,#member .bb-earnings-summary{
    gap:10px;min-width:0
  }
  #member .bb-owner-kpi,#member .bb-finance-metric{min-width:0;overflow-wrap:break-word}
  #member .bb-account-form-grid,#member .bb-student-detail-grid,
  #member .bb-billing-fields{min-width:0}
  #tutorCalendar,#bbScheduleWorkspace,#bbScheduleEditor,#tutorMonthCalendar{min-width:0;max-width:100%}
  #bbScheduleEditor .bb-mode-tabs{display:flex;flex-wrap:wrap}
  #bbScheduleEditor .bb-mode-tabs button{min-width:0;flex:1 1 100px}
  #tutorMonthCalendar .bb-month-grid{min-width:0;max-width:100%;grid-template-columns:repeat(7,minmax(0,1fr))}
  #tutorMonthCalendar .bb-month-cell{min-width:0;padding:6px 3px}
  #tutorMonthCalendar .bb-date-trigger{max-width:100%;overflow:hidden;text-overflow:ellipsis}
  #tutorMonthCalendar .bb-calendar-slot{max-width:100%;overflow:hidden;text-overflow:ellipsis}
  .bb-messenger,.bb-chat-main,.bb-chat-sidebar{min-width:0;max-width:100%}
  .bb-notification-dropdown{max-width:calc(100vw - 28px)}
  body.bb-public-page .wrap,body.bb-public-page .hero .wrap{min-width:0}
  body.bb-public-page .herogrid{gap:24px;align-items:center}
  body.bb-public-page .hero-copy,body.bb-public-page .hero-visual{min-width:0}
  body.bb-public-page h1{overflow-wrap:normal}
  body.bb-public-page .stats,body.bb-public-page .cards{min-width:0}
}
@media (min-width:701px) and (max-width:1000px){
  /* Existing mobile menu behavior remains, but cards use available tablet space. */
  body.bb-mobile-authenticated>main{padding-left:22px!important;padding-right:22px!important}
  body.bb-mobile-authenticated .bb-mobile-bar{padding-left:22px;padding-right:22px}
  body.bb-mobile-authenticated .bb-mobile-bar img{width:178px;max-width:48vw}
  #member .bb-owner-kpis,#member .bb-finance-cards,#member .bb-earnings-summary{
    grid-template-columns:repeat(3,minmax(0,1fr))!important
  }
  #member .bb-owner-kpi,#member .bb-finance-metric{padding:14px!important}
  #member .bb-account-form-grid,#member .bb-billing-fields{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  #member .bb-student-detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  #bbScheduleWorkspace{grid-template-columns:minmax(0,1fr)!important}
  #bbScheduleEditor{position:static!important;max-height:none!important;overflow:visible!important}
  body.bb-public-page header nav{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body.bb-public-page .herogrid{grid-template-columns:minmax(0,1fr) minmax(0,.85fr)!important}
  body.bb-public-page .hero h1{font-size:clamp(36px,5vw,52px)!important}
}
@media (min-width:1001px) and (max-width:1180px){
  #bbScheduleWorkspace{grid-template-columns:minmax(0,1fr) minmax(260px,32%)!important;gap:12px}
  #bbScheduleEditor{padding:14px}
  #bbScheduleEditor .bb-mode-tabs button{font-size:12px;padding:10px 5px}
  body.bb-public-page .herogrid{grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr)}
}
/* Classroom only: keep the whiteboard usable on mid-size tablets. */
@media (min-width:801px) and (max-width:1050px){
 body:has(#classroom.layout) main{max-width:100%;min-width:0;padding-left:12px;padding-right:12px}
 #classroom.layout,#classroom.layout.whiteboard-focus{
   grid-template-columns:minmax(0,1fr)!important;gap:12px!important;
   width:100%;max-width:100%;min-width:0;height:auto;max-height:none
 }
 #classroom .board-panel,#classroom .board-area{width:100%;max-width:100%;min-width:0}
 #classroom .class-nav{max-width:100%;min-width:0}
 #classroom .bottom-bar{max-width:100%;min-width:0;flex-wrap:wrap}
 #classroom .bottom-bar .bottom-left,#classroom .bottom-bar .bottom-right{
   min-width:0;max-width:100%;flex-wrap:wrap;gap:7px
 }
 #classroom .tools{max-width:100%;min-width:0;flex-wrap:wrap}
 #classroom canvas,#board{max-width:100%}
}
@media (min-width:1051px) and (max-width:1180px){
 #classroom.layout{grid-template-columns:minmax(0,1fr) minmax(270px,310px);gap:12px}
 #classroom .board-panel,#classroom .board-area{min-width:0}
}
