/* Shared phone layout, loaded after each page's existing styles. */
.bb-mobile-bar,.bb-mobile-shade,.bb-mobile-close{display:none}
@media(max-width:1000px){
 html{max-width:100%;-webkit-text-size-adjust:100%;scroll-padding-top:85px}body{min-width:0;margin:0}*,*::before,*::after{box-sizing:border-box}img,video,canvas{max-width:100%}input,select,textarea{font-size:16px!important;max-width:100%}button,a,input,select,textarea{touch-action:manipulation}h1,h2,h3,p,label,summary{overflow-wrap:anywhere}
 body.bb-public-page>header{position:relative!important;top:auto!important;height:auto!important;padding:12px 0!important}
 body.bb-public-page header .wrap{width:100%;padding:0 16px!important;min-width:0}
 body.bb-public-page header .top,body.bb-public-page header>.wrap{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:12px!important;min-height:0!important}
 body.bb-public-page header .brand-lockup{align-self:flex-start}
 body.bb-public-page header img{height:44px!important;width:auto!important;max-width:230px!important}
 body.bb-public-page header nav{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;width:100%!important;min-width:0}
 body.bb-public-page header nav a{display:flex!important;align-items:center;justify-content:center;min-height:44px!important;padding:9px 8px!important;font-size:14px!important;line-height:1.3;white-space:normal;text-align:center;min-width:0;order:2}
 body.bb-public-page header nav a[href*="student-signup"]{order:0}body.bb-public-page header nav a[href="portal.html"],body.bb-public-page header nav a[href="/portal"]{order:1;border:1px solid #d9ccef;border-radius:12px}
 .wrap{width:100%;max-width:100%;padding-left:16px!important;padding-right:16px!important}.herogrid,.formgrid,.filters,.cards{grid-template-columns:minmax(0,1fr)!important;min-width:0}.hero-copy,.hero-visual,.panel,.card{min-width:0;max-width:100%}.hero h1{font-size:clamp(30px,8.8vw,44px)!important;letter-spacing:-1px!important}.hero-visual{width:100%!important;min-height:0!important}.hero-visual img{height:auto!important}.stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.stat{min-width:0}.banner,.sectionhead,.cardfoot,.btnrow{flex-wrap:wrap;min-width:0}.modal,dialog{max-width:calc(100vw - 24px)!important;max-height:calc(100dvh - 32px)!important}.bb-contact-open{right:12px!important;bottom:calc(12px + env(safe-area-inset-bottom))!important;padding:12px 16px!important;font-size:14px!important}
 body.bb-mobile-authenticated>header{display:none!important}
 body.bb-mobile-authenticated>main{margin:0!important;padding:calc(78px + env(safe-area-inset-top)) 12px calc(36px + env(safe-area-inset-bottom))!important;width:100%!important;max-width:100%!important;min-width:0}
 body.bb-mobile-authenticated .bb-mobile-bar{display:flex;position:fixed;inset:0 0 auto 0;height:calc(64px + env(safe-area-inset-top));padding:env(safe-area-inset-top) 12px 0;align-items:center;justify-content:space-between;gap:12px;background:#fff;border-bottom:1px solid #e5def2;z-index:990}
 .bb-mobile-bar img{width:150px;height:auto;max-width:48vw}.bb-mobile-bar button{margin:0;min-height:44px;min-width:84px;padding:10px 14px;background:#eee8ff;color:#4b31a2;font-size:16px}
 body.bb-mobile-authenticated #member>nav.bb-nav{position:fixed!important;inset:0 auto 0 0!important;width:min(86vw,320px)!important;height:100dvh!important;max-height:100dvh!important;padding:calc(12px + env(safe-area-inset-top)) 12px calc(20px + env(safe-area-inset-bottom))!important;transform:translateX(-110%);visibility:hidden;pointer-events:none;z-index:1010!important;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain;transition:transform .18s ease,visibility .18s}
 body.bb-mobile-menu-open #member>nav.bb-nav{transform:translateX(0);visibility:visible;pointer-events:auto}
 body.bb-mobile-menu-open{overflow:hidden}body.bb-mobile-menu-open .bb-mobile-shade{display:block;position:fixed;inset:0;width:100%;height:100dvh;border:0;border-radius:0;margin:0;padding:0;background:#20163188;z-index:1000}
 #member>nav.bb-nav .bb-mobile-close{display:block;order:-10;align-self:flex-end;min-height:44px;margin:0 0 8px;padding:9px 14px;background:#eee8ff;color:#4b31a2;font-size:16px}
 #member>nav.bb-nav a,#member>nav.bb-nav #bbOwnerNav a{min-height:46px;font-size:15px;white-space:normal}
 #member,#member>section,#member>div{min-width:0;max-width:100%}#member .card{padding:16px;margin:14px 0;border-radius:15px}#member>.bb-shell-intro{flex-direction:column;align-items:stretch;gap:14px;padding:0;margin:0 0 16px}#member>.bb-shell-intro h2{font-size:27px}.bb-shell-cta{justify-content:flex-start;flex-wrap:wrap}.bb-shell-cta a{white-space:normal}
 .bb-finance-cards,.bb-owner-kpis,.bb-earnings-summary,.bb-account-form-grid,.cols,.bb-billing-fields{grid-template-columns:minmax(0,1fr)!important}.bb-finance-metric strong{font-size:25px!important}.bb-account-page-head,.bb-today-head{flex-wrap:wrap}.bb-account-section>summary{flex-wrap:wrap;gap:8px}.bb-account-section-body{padding:14px!important;min-width:0}.bb-time-row{grid-template-columns:minmax(0,1fr)!important}.bb-time-row>h4{grid-column:auto}.bb-student-detail-grid{grid-template-columns:minmax(0,1fr)!important}.bb-student-detail-grid dd{margin-left:0}
 .bb-mobile-table{max-width:100%;overflow:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}.bb-mobile-table table{width:100%;min-width:480px}.bb-mobile-table th,.bb-mobile-table td{white-space:normal;padding:8px;font-size:13px}
 .bb-messenger,.bb-chat-main,.bb-chat-sidebar{min-width:0;max-width:100%}.bb-message-thread{overflow-wrap:anywhere}.bb-chat-header{flex-wrap:wrap;gap:8px}.bb-calendar-toolbar{gap:6px;flex-wrap:wrap}.bb-calendar-toolbar button{padding:9px 10px;margin-right:0}.bb-calendar-drawer{width:100%!important;max-width:100%!important}.bb-notification-menu{position:relative}.bb-notification-dropdown{position:fixed!important;left:12px!important;right:12px!important;top:calc(72px + env(safe-area-inset-top))!important;width:auto!important;max-width:calc(100vw - 24px)!important;max-height:65dvh;overflow:auto}
 body:not(.bb-mobile-authenticated)>main{width:100%;max-width:100%;margin:16px auto;padding:0 14px 30px}body:not(.bb-mobile-authenticated)>header{height:auto;max-width:100%}#authCard{max-width:100%}
}
@media(prefers-reduced-motion:reduce){#member>nav.bb-nav{transition:none!important}}

@media(max-width:1000px){body.bb-public-page>header:not(:has(>.wrap)){padding:12px 16px!important;display:flex;flex-wrap:wrap;gap:12px}body.bb-public-page>header>a,body.bb-public-page>header>div>a{display:inline-flex;align-items:center;min-height:44px}.profile{grid-template-columns:minmax(0,1fr)!important;width:calc(100% - 24px)!important;margin:14px auto!important;height:auto!important;min-height:0!important;overflow:visible!important}.profile .portrait{height:280px;max-height:45dvh;overflow:hidden;border-radius:18px 18px 0 0}.profile .details{overflow:visible!important;padding:20px 16px!important}.plans{grid-template-columns:minmax(0,1fr)!important}.share{flex-wrap:wrap}.share input{min-width:0!important;max-width:100%}}
