/* APEX Portal Clean Layout v2.1.2
   Loaded after app.css to guarantee a stable, simple portal layout. */
:root{
  --clean-navy:#071f46;
  --clean-navy-2:#0d376f;
  --clean-gold:#d89b16;
  --clean-bg:#f3f6fa;
  --clean-card:#ffffff;
  --clean-text:#17233b;
  --clean-muted:#6b778c;
  --clean-line:#dfe5ed;
  --clean-success:#178744;
  --clean-danger:#cf3b32;
  --clean-shadow:0 7px 22px rgba(7,31,70,.06);
}

/* Foundation */
body.portal-body.apex-portal{margin:0!important;background:var(--clean-bg)!important;color:var(--clean-text)!important;font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif!important;overflow-x:hidden}
.apex-portal *{box-sizing:border-box}
.apex-portal img{max-width:100%;height:auto}
.apex-portal h1,.apex-portal h2,.apex-portal h3,.apex-portal p{overflow-wrap:anywhere}

/* Desktop shell */
.apex-portal .portal-shell{display:grid!important;grid-template-columns:250px minmax(0,1fr)!important;min-height:100vh!important;width:100%!important}
.apex-portal .sidebar{position:fixed!important;inset:0 auto 0 0!important;width:250px!important;height:100vh!important;display:flex!important;flex-direction:column!important;padding:18px 14px!important;background:var(--clean-navy)!important;color:#dce5f0!important;border:0!important;box-shadow:none!important;z-index:100!important;overflow:hidden!important}
.apex-portal .portal-main{grid-column:2!important;min-width:0!important;width:100%!important}

/* Sidebar */
.apex-portal .portal-brand{display:flex!important;align-items:center!important;gap:10px!important;padding:4px 6px 17px!important;color:#fff!important;border-bottom:1px solid rgba(255,255,255,.13)!important;background:transparent!important}
.apex-portal .portal-brand img{width:54px!important;height:54px!important;flex:0 0 54px!important;object-fit:contain!important;border-radius:13px!important;background:#fff!important;padding:2px!important}
.apex-portal .portal-brand span{display:block!important;min-width:0!important}
.apex-portal .portal-brand strong{display:block!important;font-family:Georgia,"Times New Roman",serif!important;font-size:1rem!important;line-height:1.15!important;color:#fff!important}
.apex-portal .portal-brand small{display:block!important;margin-top:4px!important;color:#e6bd57!important;font-size:.58rem!important;line-height:1.25!important;text-transform:uppercase!important;letter-spacing:.07em!important}
.apex-portal .sidebar nav{display:flex!important;flex:1!important;flex-direction:column!important;gap:3px!important;margin:14px 0 0!important;padding:0!important;overflow-y:auto!important;scrollbar-width:thin!important}
.apex-portal .sidebar nav a{display:flex!important;align-items:center!important;gap:11px!important;min-height:42px!important;padding:10px 12px!important;margin:0!important;border-radius:8px!important;color:#d5dfeb!important;background:transparent!important;font-size:.88rem!important;font-weight:600!important;box-shadow:none!important}
.apex-portal .sidebar nav a b{display:grid!important;place-items:center!important;width:22px!important;min-width:22px!important;color:#e4b649!important;font-size:.95rem!important}
.apex-portal .sidebar nav a:hover,.apex-portal .sidebar nav a.active{background:rgba(255,255,255,.11)!important;color:#fff!important;box-shadow:inset 3px 0 0 var(--clean-gold)!important}
.apex-portal .sidebar-motto{margin:12px 2px 8px!important;padding:12px!important;border:1px solid rgba(255,255,255,.12)!important;border-radius:9px!important;background:rgba(255,255,255,.055)!important;color:#fff!important;box-shadow:none!important}
.apex-portal .sidebar-motto strong,.apex-portal .sidebar-motto span,.apex-portal .sidebar-motto small{display:block!important}
.apex-portal .sidebar-motto strong{font-family:inherit!important;font-size:.78rem!important}
.apex-portal .sidebar-motto span{margin:2px 0 5px!important;color:#e8b848!important;font-size:.72rem!important;font-weight:700!important}
.apex-portal .sidebar-motto small{color:#bdc9d6!important;font-size:.66rem!important}
.apex-portal .logout{display:block!important;margin-top:0!important;padding:9px 12px!important;color:#ffb4ad!important;font-size:.82rem!important}

/* Header */
.apex-portal .topbar{position:sticky!important;top:0!important;z-index:80!important;height:70px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:14px!important;padding:0 24px!important;background:#fff!important;border-bottom:1px solid var(--clean-line)!important;box-shadow:0 2px 10px rgba(7,31,70,.025)!important}
.apex-portal .top-title{display:flex!important;flex-direction:column!important;min-width:0!important}
.apex-portal .top-title strong{font-family:inherit!important;font-size:1rem!important;color:var(--clean-navy)!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.apex-portal .top-title small{margin-top:2px!important;color:var(--clean-muted)!important;font-size:.7rem!important}
.apex-portal .top-actions{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-end!important;gap:8px!important;margin-left:auto!important;min-width:0!important}
.apex-portal .top-icon{position:relative!important;display:grid!important;place-items:center!important;width:37px!important;height:37px!important;padding:0!important;border:1px solid var(--clean-line)!important;border-radius:9px!important;background:#fff!important;color:var(--clean-navy)!important;box-shadow:none!important;font-size:.82rem!important}
.apex-portal .top-icon i{position:absolute!important;right:-5px!important;top:-6px!important;min-width:18px!important;height:18px!important;display:grid!important;place-items:center!important;border-radius:50%!important;background:var(--clean-gold)!important;color:#fff!important;font-size:.62rem!important;font-style:normal!important}
.apex-portal .user-chip{height:42px!important;display:flex!important;align-items:center!important;gap:8px!important;padding:4px 9px 4px 5px!important;border:1px solid var(--clean-line)!important;border-radius:10px!important;background:#fff!important;color:var(--clean-text)!important;box-shadow:none!important}
.apex-portal .user-chip img,.apex-portal .user-chip>span{width:32px!important;height:32px!important;display:grid!important;place-items:center!important;border-radius:8px!important;object-fit:cover!important;background:#f5e5b8!important;color:var(--clean-navy)!important}
.apex-portal .user-chip b{display:flex!important;flex-direction:column!important;max-width:155px!important;text-align:left!important;line-height:1.15!important;font-size:.78rem!important}
.apex-portal .user-chip b small{margin-top:3px!important;color:var(--clean-muted)!important;font-size:.62rem!important;font-weight:500!important}
.apex-portal .profile-menu{position:relative!important;flex:0 0 auto!important}
.apex-portal .user-chip:focus-visible{outline:3px solid rgba(216,155,22,.28)!important;outline-offset:2px!important}
.apex-portal .user-chip[aria-expanded="true"]{border-color:var(--clean-gold)!important;background:#fffaf0!important}
.apex-portal .user-chip[aria-expanded="true"] em{transform:rotate(180deg)!important}
.apex-portal .user-chip em{font-style:normal!important;line-height:1!important;transition:transform .18s ease!important}
.apex-portal .profile-popup[hidden]{display:none!important}
.apex-portal .profile-popup{position:absolute!important;right:0!important;top:calc(100% + 9px)!important;width:290px!important;max-width:calc(100vw - 24px)!important;padding:7px!important;border:1px solid var(--clean-line)!important;border-radius:12px!important;background:#fff!important;box-shadow:0 18px 48px rgba(7,31,70,.18)!important;z-index:1000!important}
.apex-portal .profile-popup.open{display:block!important;animation:apexProfileIn .15s ease-out!important}
@keyframes apexProfileIn{from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}
.apex-portal .profile-popup-head{display:flex!important;align-items:center!important;gap:10px!important;padding:10px!important;margin:0 0 5px!important;border-bottom:1px solid var(--clean-line)!important}
.apex-portal .profile-popup-head>img,.apex-portal .profile-popup-head>span{width:42px!important;height:42px!important;flex:0 0 42px!important;display:grid!important;place-items:center!important;border-radius:10px!important;object-fit:cover!important;background:#f5e5b8!important;color:var(--clean-navy)!important;font-weight:800!important}
.apex-portal .profile-popup-head>div{min-width:0!important}
.apex-portal .profile-popup strong,.apex-portal .profile-popup small{display:block!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
.apex-portal .profile-popup strong{color:var(--clean-navy)!important;font-size:.86rem!important}
.apex-portal .profile-popup small{margin-top:2px!important;color:var(--clean-muted)!important;font-size:.67rem!important;font-weight:500!important}
.apex-portal .profile-popup a{display:block!important;padding:9px 10px!important;border-radius:8px!important;color:var(--clean-text)!important}
.apex-portal .profile-popup a b,.apex-portal .profile-popup a small{display:block!important}
.apex-portal .profile-popup a b{font-size:.78rem!important}
.apex-portal .profile-popup a:hover,.apex-portal .profile-popup a:focus-visible{background:#f2f5f8!important;outline:none!important}
.apex-portal .profile-popup .profile-signout{margin-top:4px!important;border-top:1px solid var(--clean-line)!important;border-radius:0 0 8px 8px!important;color:var(--clean-danger)!important}
.apex-portal .menu-button,.apex-portal .mobile-brand{display:none!important}

/* Main content */
.apex-portal .content{width:100%!important;max-width:1480px!important;margin:0 auto!important;padding:24px!important}
.apex-portal .alert{margin:0 0 16px!important}

/* Simple dashboard banner — no giant mock-up */
.apex-portal .portal-welcome{position:relative!important;min-height:150px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;overflow:hidden!important;padding:0!important;border:0!important;border-radius:14px!important;background:linear-gradient(120deg,var(--clean-navy),var(--clean-navy-2))!important;color:#fff!important;box-shadow:var(--clean-shadow)!important}
.apex-portal .portal-welcome:after{content:"A"!important;position:absolute!important;right:28px!important;top:50%!important;transform:translateY(-50%)!important;width:88px!important;height:88px!important;display:grid!important;place-items:center!important;border:2px solid rgba(216,155,22,.65)!important;border-radius:18px!important;color:#fff!important;font-family:Georgia,"Times New Roman",serif!important;font-size:3.2rem!important;font-weight:700!important;background:rgba(255,255,255,.06)!important}
.apex-portal .portal-welcome>div{position:relative!important;z-index:2!important;padding:25px 130px 25px 28px!important}
.apex-portal .portal-welcome>img{display:none!important}
.apex-portal .portal-welcome span{display:block!important;color:#f0c566!important;font-size:.78rem!important;font-weight:700!important;text-transform:uppercase!important;letter-spacing:.08em!important}
.apex-portal .portal-welcome h1{margin:4px 0 6px!important;color:#fff!important;font-family:inherit!important;font-size:1.85rem!important;line-height:1.2!important}
.apex-portal .portal-welcome p{margin:0!important;max-width:650px!important;color:#dce6f1!important;font-size:.9rem!important}
.apex-portal .portal-welcome>div>b{display:inline-block!important;margin-top:13px!important;padding:7px 11px!important;border:1px solid rgba(240,197,102,.5)!important;border-radius:7px!important;background:rgba(255,255,255,.07)!important;color:#fff!important;font-size:.72rem!important}

/* Dashboard cards */
.apex-portal .dashboard-stat-grid,.apex-portal .stat-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:13px!important;margin:16px 0!important}
.apex-portal .dashboard-stat-grid article,.apex-portal .stat-grid article{min-width:0!important;display:flex!important;align-items:center!important;gap:12px!important;padding:17px!important;margin:0!important;border:1px solid var(--clean-line)!important;border-radius:12px!important;background:#fff!important;box-shadow:var(--clean-shadow)!important}
.apex-portal .dashboard-stat-grid article>b{width:42px!important;height:42px!important;min-width:42px!important;display:grid!important;place-items:center!important;border-radius:9px!important;background:#edf2f8!important;color:var(--clean-navy)!important;font-size:1rem!important}
.apex-portal .dashboard-stat-grid small,.apex-portal .dashboard-stat-grid strong,.apex-portal .dashboard-stat-grid span,.apex-portal .stat-grid small,.apex-portal .stat-grid strong,.apex-portal .stat-grid span{display:block!important}
.apex-portal .dashboard-stat-grid small,.apex-portal .stat-grid small{color:var(--clean-muted)!important;font-size:.7rem!important}
.apex-portal .dashboard-stat-grid strong,.apex-portal .stat-grid strong{margin:2px 0!important;color:var(--clean-navy)!important;font-size:1.45rem!important;line-height:1.1!important}
.apex-portal .dashboard-stat-grid span,.apex-portal .stat-grid span{color:#8a95a5!important;font-size:.66rem!important}
.apex-portal .quick-actions{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:11px!important;margin:0 0 22px!important}
.apex-portal .quick-actions a{display:flex!important;align-items:center!important;gap:10px!important;padding:13px!important;border:1px solid var(--clean-line)!important;border-radius:10px!important;background:#fff!important;color:var(--clean-navy)!important;font-size:.8rem!important;font-weight:700!important;box-shadow:none!important}
.apex-portal .quick-actions a:hover{border-color:#d9b24b!important;background:#fffdf8!important}
.apex-portal .quick-actions b{width:32px!important;height:32px!important;display:grid!important;place-items:center!important;border-radius:8px!important;background:#fff1cc!important;color:var(--clean-navy)!important}

/* Headings and sections */
.apex-portal .page-title,.apex-portal .panel-head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:15px!important;flex-wrap:wrap!important}
.apex-portal .page-title{margin:20px 0 13px!important}
.apex-portal .page-title>div>span,.apex-portal .dashboard-title span{display:block!important;color:#a36f00!important;font-size:.65rem!important;font-weight:800!important;text-transform:uppercase!important;letter-spacing:.1em!important}
.apex-portal .page-title h1,.apex-portal .dashboard-title h1{margin:3px 0!important;color:var(--clean-navy)!important;font-family:inherit!important;font-size:1.55rem!important;line-height:1.25!important}
.apex-portal .page-title p{margin:4px 0 0!important;color:var(--clean-muted)!important;font-size:.82rem!important}
.apex-portal .panel{padding:19px!important;margin:0 0 17px!important;border:1px solid var(--clean-line)!important;border-radius:12px!important;background:#fff!important;box-shadow:var(--clean-shadow)!important}
.apex-portal .panel h2{color:var(--clean-navy)!important;font-family:inherit!important}
.apex-portal .panel-head{margin-bottom:13px!important}
.apex-portal .panel-head h2{margin:0!important;font-size:1rem!important}

/* Classes */
.apex-portal .class-grid,.apex-portal .test-grid,.apex-portal .material-grid,.apex-portal .result-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:13px!important}
.apex-portal .class-grid.compact{grid-template-columns:repeat(4,minmax(0,1fr))!important}
.apex-portal .class-card,.apex-portal .test-card,.apex-portal .material-card,.apex-portal .result-card{display:block!important;min-width:0!important;padding:18px!important;border:1px solid var(--clean-line)!important;border-radius:12px!important;background:#fff!important;color:var(--clean-text)!important;box-shadow:var(--clean-shadow)!important;transition:border-color .15s,transform .15s!important}
.apex-portal .class-card:hover,.apex-portal .test-card:hover,.apex-portal .material-card:hover,.apex-portal .result-card:hover{transform:translateY(-2px)!important;border-color:#d7b253!important}
.apex-portal .class-card>div,.apex-portal .test-card>div,.apex-portal .material-card>div,.apex-portal .result-card>div{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important}
.apex-portal .class-card>div span,.apex-portal .test-card>div span,.apex-portal .material-card>div span,.apex-portal .result-card>div span{color:var(--clean-muted)!important;font-size:.64rem!important;font-weight:700!important;text-transform:uppercase!important;letter-spacing:.07em!important}
.apex-portal .class-card>div b{width:31px!important;height:31px!important;display:grid!important;place-items:center!important;border-radius:8px!important;background:#eef2f7!important;color:var(--clean-navy)!important}
.apex-portal .class-card h2,.apex-portal .test-card h2,.apex-portal .material-card h2,.apex-portal .result-card h2{margin:11px 0 6px!important;color:var(--clean-navy)!important;font-family:inherit!important;font-size:1.05rem!important}
.apex-portal .class-card p,.apex-portal .test-card p,.apex-portal .material-card p,.apex-portal .result-card p{margin:0!important;color:var(--clean-muted)!important;font-size:.78rem!important;line-height:1.5!important}
.apex-portal .class-card i{display:block!important;margin-top:12px!important;color:#9a6b00!important;font-size:.74rem!important;font-style:normal!important;font-weight:700!important}

/* Class detail */
.apex-portal .class-hero{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:20px!important;padding:22px!important;margin-bottom:11px!important;border:0!important;border-radius:12px!important;background:linear-gradient(120deg,var(--clean-navy),var(--clean-navy-2))!important;color:#fff!important;box-shadow:var(--clean-shadow)!important}
.apex-portal .class-hero a{color:#e8c269!important;font-size:.74rem!important}
.apex-portal .class-hero span{display:block!important;margin-top:8px!important;color:#cbd7e5!important;font-size:.67rem!important;text-transform:uppercase!important;letter-spacing:.08em!important}
.apex-portal .class-hero h1{margin:3px 0!important;color:#fff!important;font-family:inherit!important;font-size:1.7rem!important}
.apex-portal .class-hero p{margin:4px 0 0!important;color:#d9e2ec!important;font-size:.8rem!important}
.apex-portal .class-hero>b{min-width:52px!important;height:52px!important;display:grid!important;place-items:center!important;border:1px solid rgba(255,255,255,.25)!important;border-radius:11px!important;background:rgba(255,255,255,.08)!important;color:#f0c566!important;font-size:1.2rem!important}
.apex-portal .class-tabs{display:flex!important;gap:5px!important;margin:0 0 17px!important;padding:5px!important;overflow-x:auto!important;border:1px solid var(--clean-line)!important;border-radius:10px!important;background:#fff!important}
.apex-portal .class-tabs a{white-space:nowrap!important;padding:8px 11px!important;border-radius:7px!important;color:#56657a!important;font-size:.75rem!important;font-weight:700!important}
.apex-portal .class-tabs a.active,.apex-portal .class-tabs a:hover{background:var(--clean-navy)!important;color:#fff!important}

/* Forms, filters, buttons */
.apex-portal .btn{min-height:36px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;padding:8px 13px!important;border-radius:8px!important;font-size:.78rem!important;font-weight:700!important;box-shadow:none!important;transform:none!important}
.apex-portal .btn.primary,.apex-portal .btn.gold{border:1px solid var(--clean-navy)!important;background:var(--clean-navy)!important;color:#fff!important}
.apex-portal .btn.secondary{border:1px solid var(--clean-line)!important;background:#f7f9fb!important;color:var(--clean-navy)!important}
.apex-portal .btn.danger{border:1px solid #f2c3bf!important;background:#fff4f3!important;color:var(--clean-danger)!important}
.apex-portal label{gap:5px!important;color:#3c4b61!important;font-size:.75rem!important;font-weight:700!important}
.apex-portal input,.apex-portal select,.apex-portal textarea{min-height:39px!important;padding:8px 10px!important;border:1px solid #ced7e2!important;border-radius:8px!important;background:#fff!important;color:var(--clean-text)!important;font-size:.8rem!important}
.apex-portal textarea{min-height:90px!important}
.apex-portal input:focus,.apex-portal select:focus,.apex-portal textarea:focus{border-color:#c9a347!important;box-shadow:0 0 0 3px rgba(216,155,22,.12)!important;outline:0!important}
.apex-portal .form-grid,.apex-portal .filter-bar{gap:12px!important}

/* Tables */
.apex-portal .table-wrap{width:100%!important;overflow:auto!important;border:1px solid var(--clean-line)!important;border-radius:9px!important}
.apex-portal table{width:100%!important;min-width:720px!important;border-collapse:collapse!important;background:#fff!important}
.apex-portal th{padding:10px 11px!important;background:#f5f7fa!important;border-bottom:1px solid var(--clean-line)!important;color:#5d6b7e!important;font-size:.66rem!important;text-align:left!important;text-transform:uppercase!important;letter-spacing:.04em!important}
.apex-portal td{padding:11px!important;border-bottom:1px solid #edf1f5!important;color:#334158!important;font-size:.76rem!important;vertical-align:middle!important}
.apex-portal tbody tr:last-child td{border-bottom:0!important}
.apex-portal tbody tr:hover td{background:#fbfcfd!important}

/* Other grids */
.apex-portal .dashboard-grid,.apex-portal .two-col{display:grid!important;grid-template-columns:minmax(0,1.4fr) minmax(280px,.8fr)!important;gap:15px!important}
.apex-portal .toggle-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
.apex-portal .feature-toggle{padding:15px!important;border:1px solid var(--clean-line)!important;border-radius:10px!important;background:#fff!important;box-shadow:var(--clean-shadow)!important}
.apex-portal .notification-list article,.apex-portal .message-list>a{padding:14px!important;border-bottom:1px solid var(--clean-line)!important}
.apex-portal .empty{padding:30px!important;border:1px dashed #cbd5e1!important;border-radius:10px!important;background:#fafbfd!important;color:var(--clean-muted)!important;text-align:center!important}
.apex-portal .badge{display:inline-flex!important;align-items:center!important;padding:4px 7px!important;border-radius:999px!important;background:#eef2f6!important;color:#526176!important;font-size:.66rem!important;font-weight:700!important}

/* Mobile bottom navigation */
.apex-portal .mobile-bottom-nav{display:none!important}

@media (max-width:1180px){
  .apex-portal .dashboard-stat-grid,.apex-portal .stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .apex-portal .class-grid,.apex-portal .test-grid,.apex-portal .material-grid,.apex-portal .result-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .apex-portal .class-grid.compact{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}

@media (max-width:920px){
  .apex-portal .portal-shell{display:block!important}
  .apex-portal .portal-main{width:100%!important}
  .apex-portal .sidebar{left:-270px!important;transition:left .2s ease!important;box-shadow:10px 0 30px rgba(7,31,70,.2)!important}
  .apex-portal .sidebar.open{left:0!important}
  .apex-portal .topbar{height:64px!important;padding:0 12px!important}
  .apex-portal .menu-button{display:grid!important;place-items:center!important;width:37px!important;height:37px!important;border:0!important;border-radius:8px!important;background:#eef2f7!important;color:var(--clean-navy)!important;font-size:1.1rem!important}
  .apex-portal .mobile-brand{display:flex!important;align-items:center!important;gap:7px!important;margin-right:auto!important;color:var(--clean-navy)!important;font-family:Georgia,"Times New Roman",serif!important;font-size:1rem!important}
  .apex-portal .mobile-brand img{width:36px!important;height:36px!important;border-radius:8px!important;object-fit:contain!important}
  .apex-portal .mobile-brand span{display:flex!important;flex-direction:column!important;line-height:1!important}
  .apex-portal .mobile-brand small{margin-top:3px!important;color:#a67100!important;font-family:inherit!important;font-size:.49rem!important;text-transform:uppercase!important;letter-spacing:.1em!important}
  .apex-portal .top-title{display:none!important}
  .apex-portal .content{padding:15px 15px 82px!important}
  .apex-portal .mobile-bottom-nav{position:fixed!important;left:0!important;right:0!important;bottom:0!important;z-index:90!important;display:grid!important;grid-template-columns:repeat(5,1fr)!important;padding:6px 4px calc(6px + env(safe-area-inset-bottom))!important;border-top:1px solid var(--clean-line)!important;background:#fff!important;box-shadow:0 -6px 22px rgba(7,31,70,.09)!important}
  .apex-portal .mobile-bottom-nav a{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:1px!important;color:#66758a!important;font-size:.63rem!important}
  .apex-portal .mobile-bottom-nav a b{font-size:1rem!important}
  .apex-portal .mobile-bottom-nav a.active{color:#b67c00!important}
  .apex-portal .dashboard-grid,.apex-portal .two-col{grid-template-columns:1fr!important}
  .apex-portal .quick-actions{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}

@media (max-width:620px){
  .apex-portal .content{padding:12px 11px 82px!important}
  .apex-portal .top-icon{display:none!important}
  .apex-portal .user-chip{padding-right:5px!important}
  .apex-portal .user-chip b,.apex-portal .user-chip em{display:none!important}
  .apex-portal .portal-welcome{min-height:135px!important;border-radius:11px!important}
  .apex-portal .portal-welcome:after{right:18px!important;width:64px!important;height:64px!important;border-radius:13px!important;font-size:2.35rem!important}
  .apex-portal .portal-welcome>div{padding:20px 90px 20px 19px!important}
  .apex-portal .portal-welcome h1{font-size:1.45rem!important}
  .apex-portal .portal-welcome p{font-size:.76rem!important;line-height:1.45!important}
  .apex-portal .portal-welcome>div>b{margin-top:9px!important;padding:5px 8px!important;font-size:.64rem!important}
  .apex-portal .dashboard-stat-grid,.apex-portal .stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;margin:11px 0!important}
  .apex-portal .dashboard-stat-grid article,.apex-portal .stat-grid article{display:block!important;padding:12px!important}
  .apex-portal .dashboard-stat-grid article>b{width:31px!important;height:31px!important;margin-bottom:8px!important}
  .apex-portal .dashboard-stat-grid strong,.apex-portal .stat-grid strong{font-size:1.15rem!important}
  .apex-portal .quick-actions{gap:8px!important;margin-bottom:16px!important}
  .apex-portal .quick-actions a{padding:10px!important;font-size:.72rem!important}
  .apex-portal .page-title{margin:15px 0 10px!important}
  .apex-portal .page-title h1,.apex-portal .dashboard-title h1{font-size:1.3rem!important}
  .apex-portal .class-grid,.apex-portal .class-grid.compact,.apex-portal .test-grid,.apex-portal .material-grid,.apex-portal .result-grid,.apex-portal .toggle-grid{grid-template-columns:1fr!important;gap:9px!important}
  .apex-portal .class-card,.apex-portal .test-card,.apex-portal .material-card,.apex-portal .result-card,.apex-portal .panel{padding:14px!important;border-radius:10px!important}
  .apex-portal .class-hero{padding:17px!important;border-radius:10px!important}
  .apex-portal .class-hero h1{font-size:1.35rem!important}
  .apex-portal .class-hero>b{display:none!important}
  .apex-portal .profile-popup{position:fixed!important;right:10px!important;top:72px!important;left:auto!important;width:min(310px,calc(100vw - 20px))!important;max-height:calc(100vh - 92px)!important;overflow:auto!important}
}
