.mobile-tabbar,.mobile-more-sheet{display:none}
@media(max-width:760px){
  html{scroll-padding-top:90px;scroll-padding-bottom:100px}
  body.mobile-app{background:#f3f5f7;padding-bottom:calc(82px + env(safe-area-inset-bottom,0px))}
  .mobile-app .main-content{padding:0 16px 28px;margin-left:0}
  .mobile-app .topbar{position:sticky;top:0;z-index:20;min-height:68px;height:auto;margin:0 -16px 18px;padding:calc(12px + env(safe-area-inset-top,0px)) 16px 12px;background:#f3f5f7;border-bottom:1px solid #e0e6ec;gap:12px}
  .mobile-app .topbar h1{font-size:26px;line-height:1.15;letter-spacing:-.02em}.mobile-app #menuBtn,.mobile-app .sidebar{display:none}.mobile-app .topbar .btn{min-width:44px;min-height:44px;border-radius:14px}
  .mobile-tabbar{position:fixed;inset:auto 0 0;z-index:40;display:flex;justify-content:space-around;gap:2px;padding:7px max(6px,env(safe-area-inset-right,0px)) calc(7px + env(safe-area-inset-bottom,0px)) max(6px,env(safe-area-inset-left,0px));background:#fff;border-top:1px solid #dce3eb;box-shadow:0 -4px 18px rgba(7,29,65,.05)}
  .mobile-tabbar>a,.mobile-tabbar>button{display:flex;flex:1;min-width:0;min-height:54px;align-items:center;justify-content:center;flex-direction:column;gap:4px;border:0;border-radius:12px;background:transparent;color:#66758a;text-decoration:none;font:500 12px/1.25 var(--font-interface,Inter,sans-serif);padding:5px 2px;cursor:pointer}.mobile-tabbar svg{width:23px;height:23px}.mobile-tabbar [aria-current],.mobile-tabbar .is-current{background:#eef4d6;color:#203600}
  .mobile-more-sheet[open]{display:block;position:fixed;inset:auto 0 0;margin:0;width:100%;max-width:none;max-height:85dvh;padding:22px 20px calc(22px + env(safe-area-inset-bottom,0px));border:0;border-radius:24px 24px 0 0;box-sizing:border-box;overflow:auto;background:#fff;color:#071d41}.mobile-more-sheet::backdrop{background:rgba(7,29,65,.55)}.mobile-more-sheet header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.mobile-more-sheet h2{font-size:24px}.mobile-more-sheet header button{width:44px;height:44px;border:0;border-radius:12px;font-size:26px;background:#edf1f5;color:#071d41}.mobile-more-sheet nav{display:grid;gap:7px}.mobile-more-sheet nav>a,.mobile-more-sheet nav>button,.mobile-more-sheet .mobile-logout{display:block;width:100%;box-sizing:border-box;min-height:48px;padding:13px 14px;background:#f3f5f7;border:0;border-radius:12px;color:#071d41;text-decoration:none;text-align:left;font:500 15px/1.5 var(--font-interface,Inter,sans-serif);cursor:pointer}
  .mobile-app .card{border-radius:18px}.mobile-app .subscription-current{padding:16px;margin-bottom:18px}.mobile-app .subscription-grid{gap:12px}.mobile-app .subscription-plan{padding:18px}.mobile-app .subscription-plan>.btn{min-height:48px}.mobile-app .subscription-request{padding:14px 0}
  .mobile-app .modal{width:100%;max-width:none;max-height:calc(100dvh - 12px);margin:auto 0 0;border-radius:24px 24px 0 0}.mobile-app .modal-card{padding:20px 16px calc(20px + env(safe-area-inset-bottom,0px));min-width:0}.mobile-app .modal-card footer{display:flex;gap:10px;flex-wrap:wrap}.mobile-app .modal-card footer .btn{flex:1;min-height:48px}.mobile-app input:not([type=checkbox]):not([type=radio]),.mobile-app select,.mobile-app textarea{font-size:16px;min-height:46px}.mobile-app .toast{bottom:calc(90px + env(safe-area-inset-bottom,0px));max-width:calc(100% - 32px)}
  .mobile-app .admin-header,.mobile-app .portal-header,.mobile-app .games-header{padding:calc(14px + env(safe-area-inset-top,0px)) 16px 14px;gap:12px}.mobile-app .admin-header{flex-direction:row;align-items:center}.mobile-app .admin-header>div{width:auto}.mobile-app .admin-header>div>span{display:none}.mobile-app .admin-nav,.mobile-app .games-header>nav{display:none}.mobile-app .admin-header .brand strong{font-size:16px}.mobile-app .admin-header .brand small{max-width:155px;white-space:normal;line-height:1.3}.mobile-app .admin-header .brand-logo{width:38px;height:38px}.mobile-app .admin-main{padding:20px 14px}.mobile-app .admin-card{padding:16px}.mobile-app .admin-heading{margin-bottom:18px}.mobile-app .admin-heading h1{font-size:28px}.mobile-app .admin-heading>span{font-size:12px}.mobile-app .admin-form{gap:16px}.mobile-app .games-main{padding:20px 16px}.mobile-app .games-heading{gap:14px}.mobile-app .games-heading h1{font-size:28px}.mobile-app .portal-shell main{padding:0 16px 24px}.mobile-app .student-portal-hero{padding:22px 0;gap:14px}.mobile-app .portal-section{margin-top:24px}.mobile-app .portal-header>div{font-size:13px;gap:10px}.mobile-app .portal-header .brand{min-width:0}
  .login-page .login-brand{min-height:170px;padding:24px}.login-page .login-brand .brand-logo{width:60px;height:60px;top:24px;left:24px}.login-page .login-brand .eyebrow{margin-left:78px;font-size:12px}.login-page .login-brand h1{margin:8px 0 0 78px;font-size:30px;letter-spacing:-.04em}.login-page .login-card{padding:26px 22px calc(28px + env(safe-area-inset-bottom,0px));gap:20px}.login-page .login-card input{min-height:48px;font-size:16px}.login-page .login-card .btn{min-height:48px}.login-page .login-shell{min-height:100dvh}
  .checkout-layout{margin-top:18px}.checkout-header{gap:12px;padding-top:calc(14px + env(safe-area-inset-top,0px))}.checkout-form-card,.checkout-summary{padding:20px}.checkout-form-card h1{font-size:28px;margin-bottom:20px}.checkout-pay{min-height:50px}.checkout-layout{padding-bottom:calc(28px + env(safe-area-inset-bottom,0px))}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

@media(max-width:760px){.mobile-keyboard-open .mobile-tabbar{display:none}.mobile-app.mobile-keyboard-open{padding-bottom:16px}}
@media(max-width:760px){.login-page .login-brand{min-height:calc(170px + env(safe-area-inset-top,0px));padding-top:calc(24px + env(safe-area-inset-top,0px))}.login-page .login-brand .brand-logo{top:calc(24px + env(safe-area-inset-top,0px))}}

/* Espacamento do resumo de proximas aulas em todos os ecras. */
.dashboard-next{padding:24px;display:grid;gap:18px;margin-bottom:24px;min-width:0}.dashboard-next>div:first-child h2{margin-top:4px}.dashboard-next .portal-list article{gap:16px}.dashboard-next .portal-list article>div{min-width:0;overflow-wrap:anywhere}@media(max-width:760px){.dashboard-next{padding:18px;gap:14px;margin-bottom:18px}.dashboard-next .portal-list article{padding:14px}}
