.mobile-app-header,.mobile-page-heading{display:none}
.mobile-menu-header{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:16px}
.mobile-menu-header>div{min-width:0}.mobile-menu-header small{overflow-wrap:anywhere}
.mobile-menu-account{display:flex;align-items:center;gap:12px;color:#183b36;text-decoration:none;margin-bottom:16px}
.mobile-menu-account>span:nth-child(2){min-width:0;flex:1}.mobile-menu-account strong,.mobile-menu-account small{display:block;overflow-wrap:anywhere}.mobile-menu-account small{font-size:12px;color:#6b7c79;margin-top:2px}
.mobile-menu-search{display:flex;align-items:center;gap:10px;background:#fff;border:1px solid #dae5e2;border-radius:8px;padding:0 12px;min-height:46px;margin-bottom:16px;color:#667d77}
.mobile-menu-search input{border:0;outline:none;background:transparent;min-width:0;width:100%;font-size:16px;padding:10px 0;color:#203d36}.mobile-menu-search:focus-within{outline:2px solid #128a76;outline-offset:1px}
.mobile-menu-empty{padding:24px 0;text-align:center;color:#667d77}.mobile-menu-items [hidden]{display:none!important}
@media(min-width:768px) and (max-width:991px){
 .app-shell:not(.exam-shell) .sidebar{display:block!important;transform:none;width:220px}.app-shell:not(.exam-shell) .main-content{margin-left:220px}.app-shell .mobile-header-back{display:none}
}
@media(max-width:767px){
 .app-shell:not(.exam-shell){background:#f2f7f5;color:#173b34}
 .app-shell:not(.exam-shell) .sidebar,.app-shell:not(.exam-shell) .topbar{display:none!important}
 .app-shell:not(.exam-shell) .main-content,.student-shell:not(.exam-shell) .main-content{margin:0;max-width:none;width:100%;padding:0 14px calc(94px + env(safe-area-inset-bottom))}
 .mobile-app-header{display:block;background:linear-gradient(120deg,#096c59,#0a8e88);color:#fff;margin:0 -14px;padding:calc(15px + env(safe-area-inset-top)) 18px 22px;border-radius:0 0 8px 8px}
 .mobile-school-line{display:flex;align-items:center;gap:8px;font-size:12px;margin-bottom:20px}.mobile-school-line>span:nth-child(2){flex:1;min-width:0;overflow-wrap:anywhere;line-height:1.4}
 .mobile-school-mark{flex:0 0 28px;width:28px;height:28px;display:grid;place-items:center;background:rgba(255,255,255,.14);border-radius:6px}.mobile-school-mark img{width:24px;height:24px;object-fit:contain}.mobile-school-mark i{font-size:18px}
 .mobile-role-badge{background:rgba(255,255,255,.16);padding:5px 8px;border-radius:6px;font-size:10px;max-width:100px;overflow-wrap:anywhere}
 .mobile-account-row{display:flex;align-items:center;gap:12px}.mobile-account-avatar{display:flex;align-items:center;justify-content:center;flex:0 0 50px;width:50px;height:50px;background:#fff;color:#087c68;border:2px solid rgba(255,255,255,.45);border-radius:50%;font-size:18px;font-weight:700;text-decoration:none}
 .mobile-account-name{min-width:0;flex:1}.mobile-account-name>span{display:block;font-size:12px;color:#d3f6e9;margin-bottom:3px}.mobile-account-name>a{display:block;font-size:18px;font-weight:700;line-height:1.3;color:#fff;text-decoration:none;overflow-wrap:anywhere}.mobile-account-name small{display:block;font-size:11px;color:#d3f6e9;margin-top:5px;overflow-wrap:anywhere}
 .mobile-header-menu{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;border:1px solid rgba(255,255,255,.3);border-radius:8px;background:rgba(255,255,255,.12);color:#fff;font-size:20px}
 .mobile-page-heading{display:flex;align-items:center;gap:8px;margin:18px 0 14px;min-height:36px}.mobile-page-heading h1{font-size:19px;line-height:1.3;margin:0;min-width:0;overflow-wrap:anywhere}.mobile-page-heading>a{width:40px;min-height:40px;flex:0 0 40px;display:grid;place-items:center;color:#146b5b;text-decoration:none;background:#e1eee9;border-radius:8px}
 .app-shell:not(.exam-shell) .premium-form,.app-shell:not(.exam-shell) .mini-card{padding:16px}.app-shell:not(.exam-shell) .premium-form h2{font-size:18px}
 .app-shell:not(.exam-shell) .btn{min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:6px;max-width:100%;white-space:normal}.app-shell:not(.exam-shell) .form-control,.app-shell:not(.exam-shell) .form-select{min-height:44px;border-color:#d6e3de;border-radius:8px}
 .app-shell:not(.exam-shell) .table-responsive,.app-shell:not(.exam-shell) .table-wrap{border-radius:8px}.app-shell:not(.exam-shell) .premium-table th{background:#edf5f1}
 .app-shell:not(.exam-shell) .dashboard-section{padding:20px 0}.app-shell:not(.exam-shell) .dashboard-section h2{font-size:17px}.app-shell:not(.exam-shell) .stat-cards{gap:10px}.app-shell:not(.exam-shell) .stat-card{padding:16px;min-width:0}
 .app-shell:not(.exam-shell) .mobile-bottom-nav,.student-shell:not(.exam-shell) .mobile-bottom-nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));max-width:none;position:fixed;inset:auto 0 0;background:#fff;border:0;border-top:1px solid #dce9e3;padding:8px 6px calc(8px + env(safe-area-inset-bottom));box-shadow:0 -3px 20px rgba(24,64,49,.06);z-index:1020}
 .app-shell .mobile-bottom-nav a,.app-shell .mobile-bottom-nav button{font-size:10px;min-height:52px;gap:4px;color:#6d7d77;line-height:1.2}.app-shell .mobile-bottom-nav i{display:grid;place-items:center;width:48px;height:28px;border-radius:8px;font-size:21px}.app-shell .mobile-bottom-nav .active{color:#066957}.app-shell .mobile-bottom-nav .active i,.app-shell .mobile-bottom-nav button[aria-expanded="true"] i{background:#d9f3e8;color:#066957}.app-shell .mobile-bottom-nav a:nth-child(2):not(.active) i{color:#1679af}.app-shell .mobile-bottom-nav a:nth-child(3):not(.active) i{color:#c08015}.app-shell .mobile-bottom-nav a:nth-child(4):not(.active) i{color:#bf5272}
 .mobile-menu-dialog[open],.student-shell .mobile-menu-dialog[open]{display:block;position:fixed;inset:0;margin:0;border:0;border-radius:0;width:100%;max-width:100%;height:100dvh;max-height:100dvh;padding:calc(18px + env(safe-area-inset-top)) 16px calc(24px + env(safe-area-inset-bottom));background:#f2f7f5;color:#173b34;overflow-y:auto;overscroll-behavior:contain}.mobile-menu-dialog::backdrop{background:rgba(15,48,36,.45)}
 .mobile-menu-header{position:sticky;top:calc(-18px - env(safe-area-inset-top));z-index:1;background:#f2f7f5;padding:8px 0}.mobile-menu-header h2{font-size:20px}.mobile-menu-header button{width:44px;height:44px;flex:0 0 44px}.mobile-menu-dialog .mobile-account-avatar{background:#d7eee3;border:0;color:#126a57}
 .mobile-menu-group{border:0;padding:12px 0}.mobile-menu-group h3{font-size:12px;padding:0;margin:0 0 10px;color:#70857c;text-transform:none}.mobile-menu-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.mobile-menu-grid>a{display:flex;gap:8px;align-items:center;min-width:0;min-height:70px;padding:10px;background:#fff;border:1px solid #e0ebe5;border-radius:8px;font-size:12px;font-weight:600;color:#294d40;text-decoration:none}.mobile-menu-grid>a>span{min-width:0;overflow-wrap:anywhere}.mobile-menu-grid>a>i{display:grid;place-items:center;flex:0 0 32px;width:32px;height:32px;border-radius:8px;background:#e0f3e9;color:#168267;font-size:18px}.mobile-menu-grid>a:nth-child(4n+2)>i{background:#e6f1ff;color:#2776b2}.mobile-menu-grid>a:nth-child(4n+3)>i{background:#fff2d7;color:#aa7415}.mobile-menu-grid>a:nth-child(4n+4)>i{background:#fce7ee;color:#b14e74}.mobile-menu-grid>a.active{border-color:#309c79;background:#eaf8f0}
 .mobile-menu-link{min-height:52px;padding:12px 2px;border-bottom:1px solid #dfe9e4;font-size:14px}.mobile-menu-link>i:first-child{width:32px;color:#087f68;font-size:19px}.mobile-menu-link.mobile-menu-logout,.mobile-menu-link.mobile-menu-logout>i:first-child{color:#b54355}.mobile-menu-account i{margin-left:auto}.app-shell .pwa-install-fab{bottom:calc(86px + env(safe-area-inset-bottom))}
}
@media print{.mobile-app-header,.mobile-page-heading{display:none!important}}
@media(max-width:767px){.mobile-app-header .pwa-install-fab{position:static!important;margin:14px 0 0 62px;min-height:40px;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.35);color:#fff;font-size:12px;padding:8px 12px}.mobile-app-header .pwa-install-fab:not(.show){display:none}.mobile-app-header .pwa-install-fab.show{display:inline-flex}}
@media(max-width:767px){
 .mobile-menu-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
 .mobile-menu-grid>a{flex-direction:column;justify-content:flex-start;text-align:center;border:0;background:transparent;min-height:96px;padding:8px 3px;gap:8px}
 .mobile-menu-grid>a>i{flex:0 0 44px;width:44px;height:44px;font-size:23px;border-radius:8px}
 .mobile-menu-grid>a>span{line-height:1.35;font-size:12px}
 .mobile-menu-grid>a.active{background:#eaf8f0}
}
