/* Sterling V12.79 generated performance bundle. Source files preserved unchanged. */

/* ===== student-theme-v2.css ===== */
/* Sterling Student Portal unified responsive design v2.0.0 */
:root{--sc-navy:#0b2b67;--sc-blue:#1767d9;--sc-violet:#6547e8;--sc-green:#11986a;--sc-gold:#e6a51b;--sc-orange:#f47b35;--sc-ink:#102a5d;--sc-muted:#718099;--sc-line:#dbe6f5;--sc-bg:#f4f8ff;--sc-card:#fff;--sc-radius:22px;--sc-shadow:0 12px 34px rgba(20,55,110,.08)}
.portal-body.is-authenticated{background:linear-gradient(180deg,#f5f8ff 0,#eef4fc 100%);color:var(--sc-ink)}
.portal-body.is-authenticated .page{width:min(1180px,calc(100% - 36px));margin:0 auto;padding-top:24px;padding-bottom:72px}
.portal-body.is-authenticated .top-shell{background:rgba(255,255,255,.96);border-bottom:1px solid var(--sc-line);box-shadow:0 4px 18px rgba(15,42,92,.05)}
.portal-body.is-authenticated .hero-card{border:0;border-radius:28px;background:linear-gradient(135deg,#092c70 0%,#1269d8 56%,#6949e7 100%);box-shadow:0 16px 38px rgba(26,76,166,.18);color:#fff;overflow:hidden;position:relative}
.portal-body.is-authenticated .hero-card:after{content:"";position:absolute;width:260px;height:260px;border:1px solid rgba(255,255,255,.13);border-radius:50%;right:-75px;top:-90px;box-shadow:0 0 0 45px rgba(255,255,255,.035)}
.portal-body.is-authenticated .hero-card h1,.portal-body.is-authenticated .hero-card h2,.portal-body.is-authenticated .hero-card p,.portal-body.is-authenticated .hero-card .eyebrow{color:#fff;position:relative;z-index:1}
.portal-body.is-authenticated .hero-card .hero-meta{position:relative;z-index:1}
.portal-body.is-authenticated .section{border:1px solid var(--sc-line);border-radius:var(--sc-radius);background:rgba(255,255,255,.97);box-shadow:var(--sc-shadow)}
.portal-body.is-authenticated .section h2,.portal-body.is-authenticated .section h3{color:var(--sc-ink)}
.portal-body.is-authenticated .btn{border-radius:13px;font-weight:850;transition:transform .15s ease,box-shadow .15s ease}
.portal-body.is-authenticated .btn.primary{background:linear-gradient(135deg,var(--sc-navy),var(--sc-blue));box-shadow:0 7px 16px rgba(23,103,217,.16)}
.portal-body.is-authenticated .btn:hover{transform:translateY(-1px)}
.portal-body.is-authenticated input,.portal-body.is-authenticated select,.portal-body.is-authenticated textarea{border:1px solid #cfddf0;border-radius:13px;background:#fff;color:var(--sc-ink)}
.portal-body.is-authenticated input:focus,.portal-body.is-authenticated select:focus,.portal-body.is-authenticated textarea:focus{outline:0;border-color:#4386e7;box-shadow:0 0 0 3px rgba(67,134,231,.12)}
.portal-body.is-authenticated .pill{border-radius:999px}
.portal-body.is-authenticated .alert{border-radius:15px}
/* Library */
.portal-body .subject-card,.portal-body .chapter-link,.portal-body .notes-panel{border-color:var(--sc-line);box-shadow:var(--sc-shadow)}
.portal-body .subject-card:nth-child(4n+1){border-top:5px solid var(--sc-blue)}.portal-body .subject-card:nth-child(4n+2){border-top:5px solid var(--sc-violet)}.portal-body .subject-card:nth-child(4n+3){border-top:5px solid var(--sc-green)}.portal-body .subject-card:nth-child(4n){border-top:5px solid var(--sc-gold)}
.portal-body .chapter-link{transition:.15s ease}.portal-body .chapter-link:hover{transform:translateY(-2px);border-color:#9fc2f1}
/* Tests */
.portal-body .tp-builder,.portal-body .tp-stat,.portal-body .tp-recharge,.portal-body .tp-test-card{box-shadow:var(--sc-shadow)!important}
.portal-body .tp-test-card:nth-child(3n+1){border-top:4px solid var(--sc-violet)}.portal-body .tp-test-card:nth-child(3n+2){border-top:4px solid var(--sc-blue)}.portal-body .tp-test-card:nth-child(3n){border-top:4px solid var(--sc-green)}
/* Profile */
.portal-body .profile-grid{gap:16px}.portal-body .info-row{border-radius:14px;background:linear-gradient(135deg,#fbfdff,#f4f8ff);border:1px solid #e2eaf6;padding:13px 15px;margin-bottom:9px}.portal-body .info-row span{color:var(--sc-muted)}.portal-body .info-row strong{color:var(--sc-ink)}
/* Reader / test runner / results */
.portal-body .reader-header,.portal-body .smart-reader,.portal-body .test-run,.portal-body .question,.portal-body .result-card{border-radius:var(--sc-radius);box-shadow:var(--sc-shadow)}
.portal-body .smart-reader{border:1px solid #dbe5f4}.portal-body .reader-primary{background:linear-gradient(135deg,var(--sc-navy),var(--sc-blue))!important}
/* Referral / Offers */
.portal-body .share-hero,.portal-body .offers-hero{background:linear-gradient(135deg,#092c70,#1767d9 58%,#6547e8);border-radius:28px;box-shadow:0 16px 38px rgba(26,76,166,.18)}
.portal-body .offer-card,.portal-body .step,.portal-body .stat{border-radius:18px;box-shadow:var(--sc-shadow)}
.portal-body .offer-card:nth-child(4n+1){border-top:5px solid var(--sc-orange)}.portal-body .offer-card:nth-child(4n+2){border-top:5px solid var(--sc-violet)}.portal-body .offer-card:nth-child(4n+3){border-top:5px solid var(--sc-green)}.portal-body .offer-card:nth-child(4n){border-top:5px solid var(--sc-gold)}
/* Desktop: same pattern, wider layout */
@media(min-width:901px){.portal-body.is-authenticated .page{padding-top:32px}.portal-body.is-authenticated .section{padding:26px}.portal-body.is-authenticated .hero-card{padding:34px 38px}.portal-body.is-authenticated .hero-card h1{font-size:40px}.portal-body .profile-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.portal-body .subject-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
/* Tablet */
@media(min-width:621px) and (max-width:900px){.portal-body.is-authenticated .page{width:min(100% - 28px,820px)}.portal-body .subject-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Mobile / Android WebView: master visual pattern */
@media(max-width:620px){
 .portal-body.is-authenticated{background:#f3f7fd}.portal-body.is-authenticated .page{width:100%;padding:14px 16px 96px}
 .portal-body.is-authenticated .top-shell{min-height:78px;padding:10px 16px;position:sticky;top:0;z-index:90}.portal-body.is-authenticated .brand-lockup img{width:54px;height:54px}.portal-body.is-authenticated .brand-lockup strong{font-size:16px;letter-spacing:2px}.portal-body.is-authenticated .brand-lockup small{font-size:9px;letter-spacing:2.3px}.portal-body.is-authenticated .student-chip>span:not(.student-avatar),.portal-body.is-authenticated .student-chip>a{display:none}.portal-body.is-authenticated .student-avatar{width:48px;height:48px;border-radius:15px;background:linear-gradient(135deg,#0d347d,#2473df)}
 .portal-body.is-authenticated .hero-card{border-radius:22px;padding:22px!important;margin-bottom:14px}.portal-body.is-authenticated .hero-card h1{font-size:29px!important;line-height:1.12;margin:5px 0 8px}.portal-body.is-authenticated .hero-card p{font-size:14px;line-height:1.55}.portal-body.is-authenticated .section{border-radius:20px;padding:18px!important;margin-bottom:14px}.portal-body.is-authenticated .section-head h2{font-size:23px}
 .portal-body.is-authenticated .mobile-nav{background:rgba(255,255,255,.97);backdrop-filter:blur(12px);border-top:1px solid #dfe8f5;box-shadow:0 -8px 25px rgba(20,48,95,.07)}.portal-body.is-authenticated .mobile-nav a{border-radius:13px}.portal-body.is-authenticated .mobile-nav a.active{color:var(--sc-blue);background:#f0f5ff}
 .portal-body .subject-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}.portal-body .subject-card{min-height:132px!important;padding:14px!important;border-radius:17px!important}.portal-body .subject-card h3{font-size:15px!important}.portal-body .subject-meta{font-size:10px!important}.portal-body .subject-icon{width:38px!important;height:38px!important;margin-bottom:9px!important}.portal-body .chapter-list{grid-template-columns:1fr!important}.portal-body .chapter-link{padding:13px!important;border-radius:16px!important}.portal-body .note-library-row{min-height:72px}
 .portal-body .profile-grid{grid-template-columns:1fr!important}.portal-body .info-row{padding:12px 13px;margin-bottom:8px}.portal-body .info-row span,.portal-body .info-row strong{font-size:13px}
 .portal-body .test-run,.portal-body .question,.portal-body .result-card{border-radius:18px}.portal-body .question{padding:16px!important}.portal-body .option{border-radius:13px!important}
 .portal-body .share-wrap,.portal-body .offers-wrap{padding-left:16px!important;padding-right:16px!important}.portal-body .share-hero,.portal-body .offers-hero{border-radius:22px}.portal-body .offers-grid{grid-template-columns:1fr!important}
}
@media(max-width:390px){.portal-body .subject-grid{grid-template-columns:1fr!important}}

/* v2.0.1 — Academic names must always be shown in full.
   Font sizes are intentionally unchanged; only truncation/wrapping is corrected. */
.portal-body.is-authenticated .md4-type,
.portal-body.is-authenticated .md4-copy h3,
.portal-body.is-authenticated .md4-copy p,
.portal-body.is-authenticated .md4-missing .md4-type,
.portal-body.is-authenticated .md4-missing .md4-copy h3,
.portal-body.is-authenticated .md4-missing .md4-copy p{
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
  -webkit-line-clamp:unset!important;
  line-clamp:unset!important;
  min-height:0!important;
  overflow-wrap:anywhere;
  word-break:normal;
}
.portal-body.is-authenticated .md4-missing .md4-copy h3{display:block!important}
.portal-body.is-authenticated .md4-card{height:auto!important;min-height:0}

/* v2.1.0 — Student Portal visual refresh: richer colour, clearer hierarchy, compact mobile UI */
.portal-body.is-authenticated{background:
 radial-gradient(circle at 8% 5%,rgba(44,115,232,.10),transparent 24%),
 radial-gradient(circle at 92% 18%,rgba(105,73,231,.09),transparent 23%),
 linear-gradient(180deg,#f7faff 0%,#edf4ff 100%)}
.portal-body.is-authenticated .top-shell{border-bottom-color:#d6e3f5;box-shadow:0 8px 26px rgba(11,43,103,.07)}
.portal-body.is-authenticated .desktop-nav a{border-radius:12px;padding:10px 13px;transition:.16s ease}
.portal-body.is-authenticated .desktop-nav a:hover{background:#f1f6ff;color:#145ec7}.portal-body.is-authenticated .desktop-nav a.active{background:linear-gradient(135deg,#edf4ff,#f2efff);color:#1767d9;box-shadow:inset 0 0 0 1px #dce8fb}
.portal-body.is-authenticated .student-avatar{box-shadow:0 8px 18px rgba(23,103,217,.22)}
.portal-body.is-authenticated .section{background:linear-gradient(145deg,rgba(255,255,255,.99),rgba(248,251,255,.98));box-shadow:0 14px 36px rgba(20,55,110,.09)}
.portal-body.is-authenticated .stat-card,.portal-body.is-authenticated .command-stat,.portal-body.is-authenticated .pro-metric{border:1px solid #dce7f5!important;border-radius:18px!important;box-shadow:0 10px 24px rgba(20,55,110,.07)!important;background:linear-gradient(145deg,#fff,#f3f7ff)!important}
.portal-body.is-authenticated .stats-grid>*:nth-child(4n+1),.portal-body.is-authenticated .pro-overview-stats>*:nth-child(4n+1){border-top:4px solid var(--sc-blue)!important}
.portal-body.is-authenticated .stats-grid>*:nth-child(4n+2),.portal-body.is-authenticated .pro-overview-stats>*:nth-child(4n+2){border-top:4px solid var(--sc-violet)!important}
.portal-body.is-authenticated .stats-grid>*:nth-child(4n+3),.portal-body.is-authenticated .pro-overview-stats>*:nth-child(4n+3){border-top:4px solid var(--sc-green)!important}
.portal-body.is-authenticated .stats-grid>*:nth-child(4n),.portal-body.is-authenticated .pro-overview-stats>*:nth-child(4n){border-top:4px solid var(--sc-gold)!important}
/* Library: stronger course-first visual hierarchy */
.portal-body .library-shell{gap:20px}.portal-body .library-toolbar{padding:14px;border:1px solid #dce7f5;border-radius:18px;background:linear-gradient(135deg,#fff,#f5f8ff);box-shadow:0 9px 24px rgba(20,55,110,.06)}
.portal-body .library-title-row{padding:3px 2px 8px}.portal-body .subject-grid{gap:16px}
.portal-body .subject-card{min-height:178px;border:0!important;border-top:5px solid var(--sc-blue)!important;box-shadow:0 13px 30px rgba(20,55,110,.10)!important;isolation:isolate}
.portal-body .subject-card:nth-child(4n+1){background:linear-gradient(145deg,#ffffff 50%,#e9f3ff)!important}.portal-body .subject-card:nth-child(4n+2){background:linear-gradient(145deg,#ffffff 50%,#f0eaff)!important;border-top-color:var(--sc-violet)!important}.portal-body .subject-card:nth-child(4n+3){background:linear-gradient(145deg,#ffffff 50%,#e7fbf4)!important;border-top-color:var(--sc-green)!important}.portal-body .subject-card:nth-child(4n){background:linear-gradient(145deg,#ffffff 50%,#fff3db)!important;border-top-color:var(--sc-gold)!important}
.portal-body .subject-card:after{z-index:-1;background:rgba(255,255,255,.55)!important}.portal-body .subject-icon{box-shadow:0 8px 18px rgba(23,103,217,.22)}
.portal-body .subject-open{display:inline-flex;align-items:center;width:max-content;padding:8px 11px;margin-top:auto;border-radius:10px;background:#edf4ff;color:#1259bd!important}
.portal-body .library-support{border:0!important;border-left:5px solid #2671df!important;border-radius:24px!important;background:linear-gradient(135deg,#fff 0%,#f7f9ff 60%,#f3efff 100%)!important;box-shadow:0 14px 34px rgba(20,55,110,.09)!important}
.portal-body .library-support-head h2{font-size:28px!important}.portal-body .library-support-toggle{border-radius:14px!important;background:linear-gradient(135deg,#0b3c8d,#246fe0)!important;color:#fff!important;box-shadow:0 8px 18px rgba(23,103,217,.18)}
.portal-body .request-status-row{border:1px solid #e0e8f4!important;border-left:4px solid #2b73dd!important;border-radius:15px!important;background:#fff!important;box-shadow:0 6px 16px rgba(20,55,110,.045)}
.portal-body .request-view{border-radius:10px!important;background:linear-gradient(135deg,#0e4ca8,#2475e3)!important;color:#fff!important}
/* Dashboard cards */
.portal-body .md4-card,.portal-body .pro-subject-card,.portal-body .next-study-card,.portal-body .learning-service{border:1px solid #dce7f5!important;border-radius:20px!important;box-shadow:0 11px 27px rgba(20,55,110,.08)!important;transition:transform .16s ease,box-shadow .16s ease}
.portal-body .md4-card:hover,.portal-body .pro-subject-card:hover,.portal-body .next-study-card:hover,.portal-body .learning-service:hover{transform:translateY(-2px);box-shadow:0 16px 32px rgba(20,55,110,.12)!important}
.portal-body .md4-quick .md4-card:nth-child(3n+1){background:linear-gradient(145deg,#fff,#eaf4ff)!important}.portal-body .md4-quick .md4-card:nth-child(3n+2){background:linear-gradient(145deg,#fff,#f1ebff)!important}.portal-body .md4-quick .md4-card:nth-child(3n){background:linear-gradient(145deg,#fff,#e9faf3)!important}
/* History, progress, tests, points and profile */
.portal-body .rh-row,.portal-body .history-row,.portal-body .tp-test-card,.portal-body .info-row{box-shadow:0 7px 18px rgba(20,55,110,.055)!important;border-color:#dde7f4!important}
.portal-body .rh-row:nth-child(4n+1),.portal-body .history-row:nth-child(4n+1){border-left:4px solid var(--sc-blue)!important}.portal-body .rh-row:nth-child(4n+2),.portal-body .history-row:nth-child(4n+2){border-left:4px solid var(--sc-violet)!important}.portal-body .rh-row:nth-child(4n+3),.portal-body .history-row:nth-child(4n+3){border-left:4px solid var(--sc-green)!important}.portal-body .rh-row:nth-child(4n),.portal-body .history-row:nth-child(4n){border-left:4px solid var(--sc-gold)!important}
.portal-body .points-scroll{border-radius:18px;overflow:hidden;border:1px solid #dce7f5;background:#fff}.portal-body .progress-bar{border-radius:999px;overflow:hidden}
@media(max-width:620px){
 .portal-body.is-authenticated .page{padding-left:12px;padding-right:12px}.portal-body.is-authenticated .section{padding:15px!important}.portal-body.is-authenticated .hero-card{padding:20px!important}
 .portal-body .library-toolbar{padding:10px;border-radius:16px}.portal-body .subject-grid{gap:9px!important}.portal-body .subject-card{min-height:142px!important;padding:13px!important;border-radius:17px!important}.portal-body .subject-open{padding:6px 8px!important}
 .portal-body .library-support{border-radius:19px!important}.portal-body .library-support-head h2{font-size:23px!important}.portal-body .request-status-row{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:7px 9px!important;padding:12px!important}.portal-body .request-view,.portal-body .request-date{grid-column:2}.portal-body .request-date{font-size:9px!important}
 .portal-body .md4-card,.portal-body .pro-subject-card,.portal-body .next-study-card,.portal-body .learning-service{border-radius:17px!important}
}


/* ===== student-android-v5.css ===== */
/* Sterling Classes Android/mobile application shell v5.0.0
   Presentation-only override: no business logic changes. */
@media (max-width:700px){
 html{background:#eef4ff;scroll-behavior:smooth;-webkit-text-size-adjust:100%}
 body.portal-body.is-authenticated{margin:0;background:linear-gradient(180deg,#edf4ff 0,#f8fbff 34%,#f3f7ff 100%);overflow-x:hidden;padding-bottom:env(safe-area-inset-bottom)}
 .portal-body.is-authenticated *{box-sizing:border-box}
 .portal-body.is-authenticated .page{width:100%!important;max-width:none!important;margin:0!important;padding:12px 12px calc(94px + env(safe-area-inset-bottom))!important;overflow:hidden}
 .portal-body.is-authenticated .top-shell{position:sticky!important;top:0!important;z-index:100!important;min-height:64px!important;padding:7px 12px!important;background:rgba(255,255,255,.96)!important;backdrop-filter:none;-webkit-backdrop-filter:none;border-bottom:1px solid #dce8f8!important;box-shadow:0 5px 20px rgba(11,43,103,.08)!important;padding-top:max(7px,env(safe-area-inset-top))!important}
 .portal-body.is-authenticated .brand-lockup{gap:8px!important}.portal-body.is-authenticated .brand-lockup img{width:44px!important;height:44px!important}.portal-body.is-authenticated .brand-lockup strong{font-size:14px!important;letter-spacing:1.4px!important}.portal-body.is-authenticated .brand-lockup small{font-size:8px!important;letter-spacing:1.4px!important}
 .portal-body.is-authenticated .student-avatar{width:42px!important;height:42px!important;border-radius:14px!important;box-shadow:0 5px 13px rgba(23,103,217,.22)}
 .portal-body.is-authenticated .hero-card{padding:18px!important;border-radius:22px!important;margin:0 0 12px!important;background:linear-gradient(135deg,#092d72 0%,#1767d9 48%,#6b45e8 100%)!important;box-shadow:0 13px 28px rgba(26,76,166,.2)!important}.portal-body.is-authenticated .hero-card h1{font-size:25px!important;line-height:1.12!important}.portal-body.is-authenticated .hero-card h2{font-size:20px!important}.portal-body.is-authenticated .hero-card p{font-size:13px!important;line-height:1.45!important}
 .portal-body.is-authenticated .section,.portal-body .sc-card,.portal-body .pro-overview,.portal-body .tracker-shell,.portal-body .pro-request-center{padding:15px!important;border-radius:19px!important;margin-bottom:12px!important;border:1px solid #dbe7f7!important;background:#fff!important;box-shadow:0 8px 22px rgba(22,66,130,.07)!important}
 .portal-body.is-authenticated .section-head{gap:8px!important;margin-bottom:12px!important}.portal-body.is-authenticated .section-head h2{font-size:20px!important;line-height:1.18!important}.portal-body.is-authenticated h3{line-height:1.25}
 .portal-body.is-authenticated .btn,.portal-body.is-authenticated button,.portal-body.is-authenticated select,.portal-body.is-authenticated input{min-height:44px}.portal-body.is-authenticated .btn,.portal-body.is-authenticated button{border-radius:13px!important;font-weight:900!important}.portal-body.is-authenticated select,.portal-body.is-authenticated input,.portal-body.is-authenticated textarea{font-size:16px!important;border-radius:13px!important}
 /* Dashboard: app-like cards and touch targets */
 .portal-body .sc-dashboard{width:100%!important;margin:0!important}.portal-body .sc-dashboard .command-main{padding:18px!important;border-radius:21px!important}.portal-body .sc-dashboard .command-side{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}.portal-body .sc-dashboard .command-stat{min-height:72px!important;padding:10px!important;border-radius:15px!important}
 .portal-body .md4-grid,.portal-body .sc-lesson-grid{grid-template-columns:1fr!important;gap:9px!important}.portal-body .md4-card,.portal-body .sc-lesson{min-height:0!important;padding:13px!important;border-radius:16px!important}.portal-body .md4-card:nth-child(4n+1),.portal-body .sc-lesson:nth-child(4n+1){background:linear-gradient(135deg,#f5f9ff,#eef4ff)!important}.portal-body .md4-card:nth-child(4n+2),.portal-body .sc-lesson:nth-child(4n+2){background:linear-gradient(135deg,#fbf7ff,#f4efff)!important}.portal-body .md4-card:nth-child(4n+3),.portal-body .sc-lesson:nth-child(4n+3){background:linear-gradient(135deg,#f2fcf8,#eaf9f3)!important}.portal-body .md4-card:nth-child(4n),.portal-body .sc-lesson:nth-child(4n){background:linear-gradient(135deg,#fffaf0,#fff4dc)!important}
 /* Library: two-column subject app grid, one column on very narrow devices */
 .portal-body .subject-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}.portal-body .subject-card{min-width:0!important;min-height:138px!important;padding:13px!important;border-radius:17px!important;overflow:hidden!important}.portal-body .subject-card h3{font-size:14px!important;overflow-wrap:anywhere}.portal-body .subject-card .btn,.portal-body .subject-card button{min-height:38px!important;font-size:10px!important;padding:7px 9px!important}.portal-body .chapter-list{grid-template-columns:1fr!important;gap:8px!important}.portal-body .chapter-link{padding:13px!important;border-radius:15px!important}
 /* Tests, AI teacher, history and profile */
 .portal-body .tp-builder,.portal-body .tp-stat,.portal-body .tp-recharge,.portal-body .tp-test-card,.portal-body .test-run,.portal-body .question,.portal-body .result-card,.portal-body .info-row{border-radius:16px!important}.portal-body .question{padding:14px!important}.portal-body .option{min-height:46px!important;padding:11px!important}.portal-body .profile-grid,.portal-body .request-options,.portal-body .tracker-grid,.portal-body .pro-request-toolbar,.portal-body .pro-request-form{grid-template-columns:1fr!important}
 /* Only one fixed app navigation. Dashboard's duplicate quick nav becomes normal content. */
 .portal-body.is-authenticated .mobile-nav{position:fixed!important;left:8px!important;right:8px!important;bottom:max(7px,env(safe-area-inset-bottom))!important;z-index:110!important;display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:3px!important;padding:6px!important;border:1px solid #d9e5f5!important;border-radius:20px!important;background:rgba(255,255,255,.97)!important;backdrop-filter:none;-webkit-backdrop-filter:none;box-shadow:0 -5px 24px rgba(15,48,102,.13)!important}.portal-body.is-authenticated .mobile-nav a{min-width:0!important;min-height:50px!important;padding:5px 2px!important;border-radius:13px!important;font-size:9px!important;font-weight:900!important;text-align:center!important}.portal-body.is-authenticated .mobile-nav a.active{background:linear-gradient(135deg,#e8f1ff,#f1ecff)!important;color:#155dcc!important}
 .portal-body .mobile-quick-nav{position:static!important;bottom:auto!important;box-shadow:none!important;margin:10px 0!important;background:linear-gradient(135deg,#f7faff,#fff)!important}
 /* Reader / lesson: compact, readable, no controls behind Android nav */
 .portal-body .reader-header,.portal-body .smart-reader{border-radius:17px!important}.portal-body .smart-reader{padding:10px!important}.portal-body .reader-controls{gap:6px!important;flex-wrap:wrap!important}.portal-body .reader-controls button{min-height:40px!important}.portal-body .lesson-content,.portal-body .lesson-body{font-size:16px!important;line-height:1.7!important;overflow-wrap:anywhere}.portal-body table{display:block;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
 img,video,iframe{max-width:100%!important;height:auto}
}
@media(max-width:374px){.portal-body .subject-grid{grid-template-columns:1fr!important}.portal-body.is-authenticated .page{padding-left:10px!important;padding-right:10px!important}.portal-body.is-authenticated .mobile-nav{left:5px!important;right:5px!important}}


/* V12.37 Android/WebView typography sync — presentation only */
@media(max-width:700px){
 .portal-body.is-authenticated{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif!important;font-size:14px!important;color:#536a87!important}
 .portal-body.is-authenticated p,.portal-body.is-authenticated li{font-size:14px!important;line-height:1.55!important}
 .portal-body.is-authenticated label{font-size:12px!important;color:#405a7c!important}
 .portal-body.is-authenticated h1{font-size:28px!important;color:#163562}
 .portal-body.is-authenticated h2{font-size:20px!important;color:#163562}
 .portal-body.is-authenticated h3{font-size:15px!important;color:#163562}
 .portal-body.is-authenticated .btn,.portal-body.is-authenticated button{font-size:12px!important}
 .portal-body.is-authenticated .top-shell,.portal-body.is-authenticated .mobile-nav{backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
}


/* ===== student-experience-v6.css ===== */
/* Sterling Student Experience v6 — shared desktop/mobile/WebView polish. */
:root{--sc-student-ad-h:72px;--sc-student-nav-h:72px}
.portal-body.is-authenticated{padding-bottom:110px}
.sc-bottom-ad{position:fixed;z-index:104;left:50%;bottom:12px;transform:translateX(-50%);width:min(760px,calc(100% - 28px));min-height:64px;display:grid;grid-template-columns:62px minmax(0,1fr) auto;align-items:center;gap:12px;padding:8px 10px;border:1px solid #d7e3f2;border-radius:18px;background:rgba(255,255,255,.97);backdrop-filter:blur(18px);box-shadow:0 14px 40px rgba(12,42,92,.20)}
.sc-bottom-ad img{width:62px;height:52px;border-radius:12px;object-fit:cover;background:#edf3fb}.sc-bottom-ad-copy{min-width:0}.sc-bottom-ad-copy small{display:block;color:#426da8;font-size:8px;font-weight:950;letter-spacing:1.2px;text-transform:uppercase}.sc-bottom-ad-copy strong{display:block;color:#102e61;font-size:13px;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:2px 0}.sc-bottom-ad-copy span{display:block;color:#758399;font-size:9.5px;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sc-bottom-ad-btn{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:0 13px;border-radius:11px;background:linear-gradient(135deg,#0d438f,#246fd7);color:#fff!important;text-decoration:none;font-size:9px;font-weight:950;white-space:nowrap}
/* Dashboard reorder controls */
.sdv2-customize-row{display:flex;justify-content:flex-end;gap:8px;margin:-7px 2px 12px}.sdv2-customize-toggle,.sdv2-customize-reset{border:1px solid #d8e3f1;border-radius:999px;background:#fff;color:#315b91;min-height:34px;padding:0 11px;font-size:9px;font-weight:950;letter-spacing:.4px;cursor:pointer}.sdv2-customize-reset{display:none}.sdv2.is-customizing .sdv2-customize-reset{display:inline-flex;align-items:center}.sdv2-move-controls{display:none;align-items:center;gap:4px;margin-left:auto}.sdv2.is-customizing .sdv2-move-controls{display:flex}.sdv2.is-customizing [data-dashboard-section]{outline:1px dashed #98afd0;outline-offset:4px;border-radius:18px}.sdv2-move-btn{width:30px;height:30px;display:grid;place-items:center;border:1px solid #d7e2f0;border-radius:9px;background:#f8fbff;color:#315b91;font-weight:950;cursor:pointer}.sdv2-move-btn[disabled]{opacity:.28;cursor:not-allowed}.sdv2-move-grip{cursor:grab}.sdv2-save-state{font-size:9px;color:#718097;align-self:center}.sdv2-save-state.ok{color:#168353}.sdv2-save-state.err{color:#b42318}
/* Better meaning on shared dashboard */
.sdv2-section[data-dashboard-section="unread"] .sdv2-head h2:after{content:""}
@media(max-width:760px){
 :root{--sc-student-ad-h:68px;--sc-student-nav-h:70px}
 .portal-body.is-authenticated{padding-bottom:168px!important}
 .sc-bottom-ad{left:7px;right:7px;bottom:76px;transform:none;width:auto;min-height:62px;grid-template-columns:52px minmax(0,1fr) auto;gap:8px;padding:7px 8px;border-radius:16px}
 .sc-bottom-ad img{width:52px;height:48px;border-radius:10px}.sc-bottom-ad-copy strong{font-size:11px}.sc-bottom-ad-copy span{font-size:8.5px}.sc-bottom-ad-btn{min-height:36px;padding:0 9px;font-size:8px;border-radius:10px}
 .sdv2-customize-row{margin:-5px 2px 10px;justify-content:space-between}.sdv2-customize-toggle,.sdv2-customize-reset{min-height:32px;padding:0 10px;font-size:8.5px}.sdv2-move-btn{width:31px;height:31px}
}
@media(max-width:390px){.sc-bottom-ad{grid-template-columns:46px minmax(0,1fr) auto}.sc-bottom-ad img{width:46px;height:44px}.sc-bottom-ad-copy span{display:none}.sc-bottom-ad-btn{padding:0 7px}.sc-bottom-ad-copy strong{font-size:10px}}


/* ===== student-experience-v7.css ===== */
/* Sterling Student Experience v7 — bottom stack + cross-page mobile polish. */
:root{--sc7-nav-h:62px;--sc7-ad-h:62px;--sc7-stack-gap:6px}
.portal-body.is-authenticated{padding-bottom:96px}
.portal-body.is-authenticated .top-shell{isolation:isolate}
.portal-body.is-authenticated .page{scroll-margin-top:82px}

/* Desktop: advertisement remains a compact fixed footer, nav remains desktop header. */
.sc-student-bottom-stack{display:contents}
.sc-student-bottom-stack .sc-bottom-ad{position:fixed;z-index:104;left:50%;bottom:12px;transform:translateX(-50%);width:min(760px,calc(100% - 28px));min-height:64px;display:grid;grid-template-columns:62px minmax(0,1fr) auto;align-items:center;gap:12px;padding:8px 10px;border:1px solid #d7e3f2;border-radius:18px;background:rgba(255,255,255,.98);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);box-shadow:0 14px 40px rgba(12,42,92,.20)}
.sc-student-bottom-stack .sc-bottom-ad img{width:62px;height:52px;border-radius:12px;object-fit:contain;background:#f4f7fc}
.sc-student-bottom-stack .sc-bottom-ad-copy{min-width:0}
.sc-student-bottom-stack .sc-bottom-ad-copy small{display:block;color:#426da8;font-size:8px;font-weight:950;letter-spacing:1.1px;text-transform:uppercase}
.sc-student-bottom-stack .sc-bottom-ad-copy strong{display:block;color:#102e61;font-size:13px;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:2px 0}
.sc-student-bottom-stack .sc-bottom-ad-copy span{display:block;color:#758399;font-size:9.5px;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sc-student-bottom-stack .sc-bottom-ad-btn{display:inline-flex;align-items:center;justify-content:center;gap:4px;min-height:38px;padding:0 13px;border-radius:11px;background:linear-gradient(135deg,#0d438f,#246fd7);color:#fff!important;text-decoration:none;font-size:9px;font-weight:950;white-space:nowrap}

/* Dashboard customization is discoverable without cluttering normal study mode. */
.sdv2-customize-row{align-items:center;flex-wrap:wrap}
.sdv2-customize-help{display:none;flex:1 1 100%;padding:8px 10px;border-radius:11px;background:#edf5ff;color:#49627e;font-size:9px;line-height:1.4}
.sdv2-customize-help.show{display:block}
.sdv2-move-trigger{display:inline-grid!important;place-items:center!important;width:30px!important;height:30px!important;min-height:30px!important;padding:0!important;margin-left:2px!important;border:1px solid #dbe5f2!important;border-radius:9px!important;background:#f8fbff!important;color:#5b7190!important;font-size:15px!important;box-shadow:none!important;cursor:pointer}
.sdv2.is-customizing .sdv2-move-trigger{display:none!important}
.sdv2-move-controls{margin-left:auto}
.sdv2-move-grip{display:grid;place-items:center;width:24px;height:30px;color:#7890af;font-size:15px}
.sdv2.is-customizing [data-dashboard-section]{background:linear-gradient(180deg,rgba(248,251,255,.9),rgba(255,255,255,.98));padding:8px;border:1px dashed #9bb2d0;border-radius:18px}

/* Cross-page usability: consistent cards, touch targets and readable typography. */
.portal-body.is-authenticated .section,.portal-body.is-authenticated .library-group,.portal-body.is-authenticated .library-support,.portal-body.is-authenticated .tracker-shell,.portal-body.is-authenticated .pro-overview,.portal-body.is-authenticated .pro-request-center,.portal-body.is-authenticated .tp-builder,.portal-body.is-authenticated .tp-recharge,.portal-body.is-authenticated .tp-stat,.portal-body.is-authenticated .tp-test-card,.portal-body.is-authenticated .ait-card,.portal-body.is-authenticated .result-card{border-color:#dce7f5;box-shadow:0 9px 24px rgba(22,66,130,.07)}
.portal-body.is-authenticated input,.portal-body.is-authenticated select,.portal-body.is-authenticated textarea{max-width:100%}
.portal-body.is-authenticated a,.portal-body.is-authenticated button{-webkit-tap-highlight-color:transparent}

@media(max-width:760px){
  html{scroll-padding-bottom:170px}
  body.portal-body.is-authenticated{padding-bottom:calc(86px + env(safe-area-inset-bottom))!important}
  body.portal-body.is-authenticated.has-student-bottom-ad{padding-bottom:calc(156px + env(safe-area-inset-bottom))!important}
  .portal-body.is-authenticated .page{padding:12px 12px 14px!important;margin:0!important;width:100%!important;max-width:none!important;overflow:visible!important}
  .portal-body.is-authenticated .top-shell{min-height:68px!important;height:auto!important;padding:7px 12px!important;padding-top:max(7px,env(safe-area-inset-top))!important}
  .portal-body.is-authenticated .brand-lockup img{width:44px!important;height:44px!important}
  .portal-body.is-authenticated .brand-lockup strong{font-size:14px!important}.portal-body.is-authenticated .brand-lockup small{font-size:8px!important}
  .portal-body.is-authenticated .student-avatar{width:40px!important;height:40px!important;border-radius:13px!important}

  /* One physical fixed stack: ad + nav can no longer drift apart on iPhone/WebView. */
  .sc-student-bottom-stack{position:fixed;left:7px;right:7px;bottom:max(7px,env(safe-area-inset-bottom));z-index:120;display:grid;gap:var(--sc7-stack-gap);pointer-events:none}
  .sc-student-bottom-stack>*{pointer-events:auto}
  .sc-student-bottom-stack .sc-bottom-ad{position:static!important;left:auto!important;right:auto!important;bottom:auto!important;transform:none!important;width:100%!important;min-height:58px!important;grid-template-columns:52px minmax(0,1fr) auto!important;gap:8px!important;padding:6px 7px!important;border-radius:15px!important;box-shadow:0 7px 22px rgba(10,41,96,.13)!important}
  .sc-student-bottom-stack .sc-bottom-ad img{width:52px!important;height:46px!important;border-radius:10px!important;object-fit:contain!important}
  .sc-student-bottom-stack .sc-bottom-ad-copy small{font-size:7.5px!important;letter-spacing:.7px!important}
  .sc-student-bottom-stack .sc-bottom-ad-copy strong{font-size:11.5px!important;margin:1px 0!important}
  .sc-student-bottom-stack .sc-bottom-ad-copy span{display:none!important}
  .sc-student-bottom-stack .sc-bottom-ad-btn{min-height:38px!important;padding:0 10px!important;border-radius:10px!important;font-size:8.5px!important;max-width:112px!important}
  .sc-student-bottom-stack .mobile-nav{position:static!important;left:auto!important;right:auto!important;bottom:auto!important;z-index:auto!important;display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:3px!important;width:100%!important;padding:5px!important;border:1px solid #d9e5f5!important;border-radius:18px!important;background:rgba(255,255,255,.985)!important;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);box-shadow:0 6px 24px rgba(15,48,102,.13)!important}
  .sc-student-bottom-stack .mobile-nav a{min-width:0!important;min-height:50px!important;padding:5px 2px!important;border-radius:12px!important;display:grid!important;place-items:center!important;gap:2px!important;text-decoration:none!important;color:#69788e!important}
  .sc-student-bottom-stack .mobile-nav a.active{background:linear-gradient(135deg,#e8f1ff,#f1ecff)!important;color:#155dcc!important}
  .sc-student-bottom-stack .mobile-nav span{font-size:19px!important;line-height:1!important}.sc-student-bottom-stack .mobile-nav small{font-size:9px!important;font-weight:900!important}

  /* Dashboard: cleaner hierarchy and exactly four Quick Access cards. */
  main.sc-dashboard{padding-bottom:14px!important}
  .sdv2-top{margin-bottom:10px!important;padding:17px 16px!important;border-radius:20px!important}
  .sdv2-top h1{font-size:22px!important}.sdv2-top p{font-size:11.5px!important;line-height:1.45!important}
  .sdv2-customize-row{margin:0 2px 12px!important;justify-content:flex-start!important;gap:6px!important}
  .sdv2-customize-toggle,.sdv2-customize-reset{min-height:34px!important;font-size:9px!important;padding:0 11px!important}
  .sdv2-section{margin-bottom:15px!important}
  .sdv2-head{margin-bottom:8px!important}.sdv2-head h2{font-size:18px!important}
  .sdv2-quick{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}
  .sdv2-quick>a{min-height:112px!important;padding:13px!important;border-radius:18px!important}
  .sdv2-quick b{font-size:13.5px!important}.sdv2-quick small{font-size:9.5px!important}
  .sdv2-missing{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}

  /* All student pages: readable cards and no iOS form zoom. */
  .portal-body.is-authenticated .hero-card{border-radius:20px!important;padding:20px 17px!important;margin-bottom:12px!important}
  .portal-body.is-authenticated .hero-card h1{font-size:26px!important;line-height:1.15!important}
  .portal-body.is-authenticated .section,.portal-body.is-authenticated .library-group,.portal-body.is-authenticated .library-support,.portal-body.is-authenticated .tracker-shell,.portal-body.is-authenticated .pro-overview,.portal-body.is-authenticated .pro-request-center,.portal-body.is-authenticated .tp-builder,.portal-body.is-authenticated .tp-recharge,.portal-body.is-authenticated .tp-stat,.portal-body.is-authenticated .tp-test-card,.portal-body.is-authenticated .ait-card,.portal-body.is-authenticated .result-card{border-radius:18px!important;padding:15px!important;margin:12px 0!important}
  .portal-body.is-authenticated .section-head h2{font-size:19px!important}
  .portal-body.is-authenticated input,.portal-body.is-authenticated select,.portal-body.is-authenticated textarea{font-size:16px!important;min-height:44px!important}
  .portal-body.is-authenticated .btn,.portal-body.is-authenticated button{min-height:44px}
  .portal-body.is-authenticated .subject-grid{gap:9px!important}
  .portal-body.is-authenticated .subject-card{border-radius:17px!important}
  .portal-body.is-authenticated table{max-width:100%;overflow-x:auto}
}
@media(max-width:390px){
  .sc-student-bottom-stack{left:5px;right:5px}
  .sc-student-bottom-stack .sc-bottom-ad{grid-template-columns:45px minmax(0,1fr) auto!important}
  .sc-student-bottom-stack .sc-bottom-ad img{width:45px!important;height:42px!important}
  .sc-student-bottom-stack .sc-bottom-ad-copy small{display:none!important}
  .sc-student-bottom-stack .sc-bottom-ad-copy strong{font-size:10.5px!important}
  .sc-student-bottom-stack .sc-bottom-ad-btn{max-width:88px!important;padding:0 7px!important;font-size:8px!important}
}


/* ===== student-professional-v8.css ===== */
/* Sterling Classes Student Portal — Professional Colour System v8.0.0
   Presentation-only layer. Loaded last so it can safely unify older student UI versions. */
:root{
  --sp8-navy:#0b285f;
  --sp8-blue:#1665d8;
  --sp8-blue2:#2d83ef;
  --sp8-violet:#6b4be2;
  --sp8-teal:#0e9b85;
  --sp8-green:#159562;
  --sp8-amber:#e9a11b;
  --sp8-rose:#d84f8f;
  --sp8-ink:#132a4f;
  --sp8-muted:#6c7e98;
  --sp8-line:#dce7f5;
  --sp8-surface:#ffffff;
  --sp8-soft:#f5f8fd;
  --sp8-shadow:0 14px 34px rgba(22,55,105,.09);
}

body.portal-body.is-authenticated{
  color:var(--sp8-ink);
  background:
    radial-gradient(circle at 7% 7%,rgba(45,131,239,.11),transparent 23%),
    radial-gradient(circle at 94% 18%,rgba(107,75,226,.09),transparent 24%),
    linear-gradient(180deg,#f5f9ff 0%,#fbfdff 42%,#f5f8fd 100%);
}
body.portal-body.is-authenticated:before{
  content:"";position:fixed;inset:0;pointer-events:none;z-index:-1;
  background:linear-gradient(120deg,rgba(255,255,255,.42),transparent 35%,rgba(255,255,255,.28));
}

/* Header + navigation */
body.is-authenticated .top-shell{
  height:76px;padding:9px clamp(16px,3vw,42px);gap:22px;
  border-bottom:1px solid rgba(207,222,242,.9);
  background:rgba(255,255,255,.92);backdrop-filter:blur(18px) saturate(135%);
  box-shadow:0 8px 28px rgba(13,47,102,.07);
}
body.is-authenticated .brand-lockup img{border-radius:14px;box-shadow:0 6px 16px rgba(15,67,145,.15)}
body.is-authenticated .brand-lockup strong{color:#102e67;font-weight:950}
body.is-authenticated .desktop-nav{gap:5px}
body.is-authenticated .desktop-nav a{position:relative;padding:10px 13px;border-radius:12px;font-weight:850;color:#52647f;transition:.18s ease}
body.is-authenticated .desktop-nav a:hover{background:#f2f6fc;color:#164f9f;transform:translateY(-1px)}
body.is-authenticated .desktop-nav a.active{color:#fff;background:linear-gradient(135deg,var(--sp8-blue),var(--sp8-violet));box-shadow:0 7px 16px rgba(42,93,190,.18)}
body.is-authenticated .student-chip{padding:5px 7px 5px 5px;border:1px solid #e2eaf5;border-radius:16px;background:#fff;box-shadow:0 5px 16px rgba(20,50,95,.05)}
body.is-authenticated .student-avatar{border-radius:12px;background:linear-gradient(135deg,#103c8f,#2677e6 58%,#6747df);box-shadow:0 7px 16px rgba(23,79,168,.20)}
body.is-authenticated .student-chip>a{padding:7px 8px;border-radius:9px;background:#f4f7fc}

body.is-authenticated .page{width:min(1180px,calc(100% - 28px));margin:24px auto 38px}
body.is-authenticated .section{
  border:1px solid var(--sp8-line);border-radius:22px;background:rgba(255,255,255,.94);
  box-shadow:var(--sp8-shadow);overflow:hidden;
}
body.is-authenticated .section-head h2{color:#102e63;letter-spacing:-.25px}
body.is-authenticated .eyebrow{color:#3069bb;letter-spacing:1.7px}
body.is-authenticated .btn{border-radius:12px;transition:.18s ease}
body.is-authenticated .btn:hover{transform:translateY(-1px)}
body.is-authenticated .btn.primary{background:linear-gradient(135deg,#0f4fae,#2478e4 62%,#6249dc);box-shadow:0 9px 20px rgba(22,89,191,.18)}
body.is-authenticated input:not([type=checkbox]):not([type=radio]),body.is-authenticated select,body.is-authenticated textarea{
  border:1px solid #ccd9eb!important;border-radius:12px!important;background:#fff!important;color:#17345f!important;
  box-shadow:inset 0 1px 0 rgba(18,52,95,.02);outline:none;
}
body.is-authenticated input:focus,body.is-authenticated select:focus,body.is-authenticated textarea:focus{border-color:#6d9fea!important;box-shadow:0 0 0 4px rgba(31,105,216,.09)!important}
body.is-authenticated input[type=checkbox],body.is-authenticated input[type=radio]{accent-color:var(--sp8-blue)}

/* Generic page hero colours */
body.is-authenticated .hero-card{
  border:1px solid rgba(255,255,255,.22);border-radius:26px;
  background:radial-gradient(circle at 90% 5%,rgba(255,255,255,.17),transparent 23%),linear-gradient(125deg,#0a347e 0%,#176bd5 54%,#6845df 100%);
  box-shadow:0 20px 44px rgba(24,74,155,.18);
}
body.page-lessons .hero-card{background:radial-gradient(circle at 90% 5%,rgba(255,255,255,.15),transparent 24%),linear-gradient(125deg,#073f77,#087fb4 54%,#3d5ed7)}
body.page-courses .hero-card,body.page-courses .rh-hero{background:radial-gradient(circle at 90% 5%,rgba(255,255,255,.15),transparent 24%),linear-gradient(125deg,#382777,#6541c8 54%,#9b54d5)!important}
body.page-tests .hero-card,body.page-tests .tp-hero{background:radial-gradient(circle at 90% 5%,rgba(255,255,255,.15),transparent 24%),linear-gradient(125deg,#442677,#7350d8 54%,#d0609b)!important}
body.page-progress .hero-card{background:radial-gradient(circle at 90% 5%,rgba(255,255,255,.15),transparent 24%),linear-gradient(125deg,#075b75,#079b9b 54%,#246fd8)!important}
body.page-profile .hero-card{background:radial-gradient(circle at 90% 5%,rgba(255,255,255,.15),transparent 24%),linear-gradient(125deg,#8a4e08,#d28b13 48%,#3e6bce)!important}

/* Dashboard — one compact dashboard only on every screen */
body.page-dashboard main.sc-dashboard{display:block!important;width:min(1180px,calc(100% - 28px))!important;max-width:1180px!important;margin:22px auto 38px!important;padding:0!important;background:transparent!important}
body.page-dashboard main.sc-dashboard>*:not(.mobile-dashboard-v4){display:none!important}
body.page-dashboard main.sc-dashboard>.mobile-dashboard-v4{display:block!important}
body.page-dashboard .sdv2-compact{padding:0!important}
body.page-dashboard .sdv2-section{
  margin:0 0 14px!important;padding:17px 18px;border:1px solid #dfe8f5;border-radius:21px;background:#fff;
  box-shadow:0 9px 24px rgba(24,55,105,.065);
}
body.page-dashboard .sdv2-head{margin:0 0 11px!important}
body.page-dashboard .sdv2-head h2{font-size:19px!important;color:#102f67!important;letter-spacing:-.25px}
body.page-dashboard .sdv2-head span,body.page-dashboard .sdv2-head a{background:rgba(255,255,255,.80)!important;border-color:#dbe6f3!important;color:#57708f!important}
body.page-dashboard .sdv2-study-today{background:linear-gradient(135deg,#edf5ff,#fff 54%,#f1efff);border-color:#cfe0f6}
body.page-dashboard #dashboard-current-lessons{background:linear-gradient(135deg,#f8fbff,#fff 55%,#eef8ff);border-left:4px solid var(--sp8-blue)}
body.page-dashboard #dashboard-time-to-revise{background:linear-gradient(135deg,#fbf8ff,#fff 55%,#f4edff);border-left:4px solid var(--sp8-violet)}
body.page-dashboard #dashboard-quick-library{background:linear-gradient(135deg,#f4fbff,#fff 55%,#effcf8);border-left:4px solid var(--sp8-teal)}
body.page-dashboard #dashboard-quick-access{background:linear-gradient(135deg,#fffaf0,#fff 55%,#f8f3ff);border-left:4px solid var(--sp8-amber)}
body.page-dashboard #dashboard-progress{background:linear-gradient(135deg,#f0fbf7,#fff 55%,#eef5ff);border-left:4px solid var(--sp8-green)}
body.page-dashboard #dashboard-advertisement{background:linear-gradient(135deg,#fff8ec,#fff 55%,#fff1f7);border-left:4px solid var(--sp8-rose);margin-bottom:0!important}
body.page-dashboard .sdv2-study-main{border-radius:17px!important;background:linear-gradient(135deg,#0f4ca7,#2174df 65%,#5b4ddd)!important;box-shadow:0 11px 24px rgba(27,91,185,.16)!important}
body.page-dashboard .sdv2-stat{border-radius:16px!important;border-color:#dce6f3!important;box-shadow:none!important;background:rgba(255,255,255,.88)!important}
body.page-dashboard .sdv2-card{border-radius:15px!important;margin-bottom:7px!important;padding:12px 14px!important;box-shadow:none!important;background:rgba(255,255,255,.91)!important}
body.page-dashboard .sdv2-card:last-child{margin-bottom:0!important}
body.page-dashboard .sdv2-text-card .sdv2-copy{padding-left:0!important}
body.page-dashboard .sdv2-library{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:9px!important}
body.page-dashboard .sdv2-library-card{min-height:126px!important;border-radius:16px!important;padding:14px!important;border:1px solid #dce8f4!important;background:linear-gradient(145deg,#fff,#f3f9ff)!important;box-shadow:none!important}
body.page-dashboard .sdv2-library-card:nth-child(2){background:linear-gradient(145deg,#fff,#f5f0ff)!important}
body.page-dashboard .sdv2-library-card:nth-child(3){background:linear-gradient(145deg,#fff,#eefaf6)!important}
body.page-dashboard .sdv2-library-card:nth-child(4){background:linear-gradient(145deg,#fff,#fff6e9)!important}
body.page-dashboard .sdv2-quick{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:9px!important}
body.page-dashboard .sdv2-quick a{min-height:92px!important;border-radius:16px!important;padding:14px!important;border-width:1px!important;box-shadow:none!important}
body.page-dashboard .sdv2-quick a:nth-child(1){border-color:#ead998!important;background:linear-gradient(145deg,#fff8dc,#fff)!important}
body.page-dashboard .sdv2-quick a:nth-child(2){border-color:#d8cff8!important;background:linear-gradient(145deg,#f1edff,#fff)!important}
body.page-dashboard .sdv2-quick a:nth-child(3){border-color:#c7e0f6!important;background:linear-gradient(145deg,#eaf6ff,#fff)!important}
body.page-dashboard .sdv2-quick a:nth-child(4){border-color:#c5eadc!important;background:linear-gradient(145deg,#eafaf3,#fff)!important}
body.page-dashboard .sdv2-progress{gap:9px!important}
body.page-dashboard .sdv2-progress-main{border-radius:16px!important;box-shadow:none!important;background:rgba(255,255,255,.91)!important}
body.page-dashboard .sdv2-bar span{background:linear-gradient(90deg,#0f69d8,#6b4be2,#10a282)!important}
body.page-dashboard .sdv2-dashboard-ad{border-radius:17px!important;border:1px solid #ecdde5!important;box-shadow:none!important;background:#fff!important}

/* Library */
body.page-lessons .library-shell{border:1px solid #d7e5f4!important;background:rgba(255,255,255,.94)!important;box-shadow:var(--sp8-shadow)!important}
body.page-lessons .library-toolbar{background:linear-gradient(135deg,#f3f9ff,#fbfdff)!important;border:1px solid #dce8f5!important;border-radius:16px!important}
body.page-lessons .subject-card{border-radius:18px!important;border-color:#dce7f3!important;box-shadow:0 8px 22px rgba(24,55,105,.06)!important;transition:.18s ease}
body.page-lessons .subject-card:hover{transform:translateY(-2px);box-shadow:0 14px 28px rgba(24,55,105,.10)!important}
body.page-lessons .subject-grid .subject-card:nth-child(4n+1){border-top:4px solid #2679df!important;background:linear-gradient(145deg,#fff 54%,#edf6ff)!important}
body.page-lessons .subject-grid .subject-card:nth-child(4n+2){border-top:4px solid #7250dc!important;background:linear-gradient(145deg,#fff 54%,#f4efff)!important}
body.page-lessons .subject-grid .subject-card:nth-child(4n+3){border-top:4px solid #11a080!important;background:linear-gradient(145deg,#fff 54%,#ecfaf5)!important}
body.page-lessons .subject-grid .subject-card:nth-child(4n){border-top:4px solid #e7a525!important;background:linear-gradient(145deg,#fff 54%,#fff7e8)!important}
body.page-lessons .chapter-link{transition:.18s ease;border-color:#dce6f2!important}
body.page-lessons .chapter-link:hover{transform:translateX(2px);border-color:#b9d2f3!important;background:#f9fcff!important}
body.page-lessons .notes-panel{border:1px solid #d6e4f4!important;box-shadow:0 10px 28px rgba(23,62,126,.07)!important}
body.page-lessons .notes-head{background:linear-gradient(135deg,#ecf6ff,#f8fbff 50%,#f5efff)!important}
body.page-lessons .note-library-row{transition:.16s ease}
body.page-lessons .note-library-row:hover{background:#f7fbff}
body.page-lessons .library-support{border-left-width:4px!important;box-shadow:0 10px 26px rgba(24,55,105,.06)!important}
body.page-lessons #request-study-support{border-left-color:#7350db!important;background:linear-gradient(135deg,#faf7ff,#fff)!important}
body.page-lessons #request-learning-material{border-left-color:#0f9e83!important;background:linear-gradient(135deg,#f1fbf8,#fff)!important}

/* Reading history */
body.page-courses .rh-hero{border-radius:26px!important;padding:30px 34px!important;box-shadow:0 20px 44px rgba(78,50,150,.16)!important}
body.page-courses .rh-stats{gap:10px!important}
body.page-courses .rh-stat{position:relative;overflow:hidden;border-radius:18px!important;border-color:#e3def4!important;box-shadow:0 8px 22px rgba(61,47,121,.06)!important}
body.page-courses .rh-stat:nth-child(1){background:linear-gradient(145deg,#fff,#eef5ff)}
body.page-courses .rh-stat:nth-child(2){background:linear-gradient(145deg,#fff,#f4efff)}
body.page-courses .rh-stat:nth-child(3){background:linear-gradient(145deg,#fff,#ecfaf4)}
body.page-courses .rh-stat:nth-child(4){background:linear-gradient(145deg,#fff,#fff5e5)}
body.page-courses .rh-panel{border-radius:22px!important;border-color:#e2def1!important;box-shadow:var(--sp8-shadow)!important}
body.page-courses .rh-row{background:#fff!important;border-color:#e7e3f2!important;transition:.16s ease}
body.page-courses .rh-row:hover{background:#fbf9ff!important;border-color:#d6c8f0!important}

/* Tests */
body.page-tests .tp-wallet{gap:10px!important}
body.page-tests .tp-stat,body.page-tests .tp-recharge{border-radius:17px!important;border-color:#e1dcf3!important;box-shadow:0 8px 22px rgba(77,54,145,.06)!important}
body.page-tests .tp-stat:nth-child(1){background:linear-gradient(145deg,#fff,#f3efff)!important}
body.page-tests .tp-stat:nth-child(2){background:linear-gradient(145deg,#fff,#eef7ff)!important}
body.page-tests .tp-recharge{background:linear-gradient(145deg,#fff,#fff6ea)!important}
body.page-tests .tp-builder{border-radius:21px!important;border-color:#ded9f1!important;box-shadow:0 12px 30px rgba(68,46,128,.08)!important}
body.page-tests .tp-builder-head{background:linear-gradient(135deg,#f8f5ff,#f6faff)!important}
body.page-tests .tp-num{background:linear-gradient(135deg,#5e3db9,#7a58df)!important}
body.page-tests .tp-plan:has(input:checked){border-color:#7655df!important;background:#f5f1ff!important}
body.page-tests .tp-test-card{border-radius:18px!important;border-color:#e0dcef!important;box-shadow:0 8px 22px rgba(71,49,137,.06)!important}
body.page-tests .tp-test-grid .tp-test-card:nth-child(3n+1){border-top:4px solid #7350db!important}
body.page-tests .tp-test-grid .tp-test-card:nth-child(3n+2){border-top:4px solid #2678df!important}
body.page-tests .tp-test-grid .tp-test-card:nth-child(3n){border-top:4px solid #e5a12a!important}

/* Progress */
body.page-progress .stats-grid{gap:10px!important}
body.page-progress .stat-card{border-radius:18px!important;border-color:#d7e8ea!important;box-shadow:0 8px 22px rgba(11,102,117,.06)!important}
body.page-progress .stat-card:nth-child(1){background:linear-gradient(145deg,#fff,#eaf8ff)!important}
body.page-progress .stat-card:nth-child(2){background:linear-gradient(145deg,#fff,#ebfaf5)!important}
body.page-progress .stat-card:nth-child(3){background:linear-gradient(145deg,#fff,#f2efff)!important}
body.page-progress .stat-card:nth-child(4){background:linear-gradient(145deg,#fff,#fff5e8)!important}
body.page-progress .section:nth-of-type(2){border-left:4px solid var(--sp8-teal)}
body.page-progress .section:nth-of-type(3){border-left:4px solid var(--sp8-blue)}
body.page-progress .section:nth-of-type(4){border-left:4px solid var(--sp8-violet)}
body.page-progress .progress-bar{height:13px!important;background:#e8f0f3!important}
body.page-progress .progress-bar>span{background:linear-gradient(90deg,#0d9b82,#1a80db,#6a4be0)!important}
body.page-progress .history-row{padding:13px 12px!important;border:1px solid #e2ebf2!important;border-radius:13px!important;background:#fbfdff!important}

/* Profile */
body.page-profile .section{position:relative}
body.page-profile .section:nth-of-type(2){border-left:4px solid #2a78df}
body.page-profile .section:nth-of-type(3){border-left:4px solid #7250db}
body.page-profile #my-subjects{border-left:4px solid #0f9b82}
body.page-profile .section:nth-of-type(5){border-left:4px solid #d49a25}
body.page-profile #commission-bank{border-left:4px solid #d7538f;background:linear-gradient(145deg,#fff,#fff8fb)}
body.page-profile .profile-grid{gap:14px!important}
body.page-profile .info-row{padding:12px 13px!important;border:1px solid #e3eaf4!important;border-radius:13px!important;background:#fbfdff!important;margin-bottom:8px}
body.page-profile .info-row:last-child{border-bottom:1px solid #e3eaf4!important}
body.page-profile .info-row label{color:#37506f;font-weight:750}
body.page-profile #commission-bank input{min-height:46px!important}
body.page-profile #commission-bank button{border-radius:12px!important;background:linear-gradient(135deg,#a83370,#d65391)!important;box-shadow:0 8px 18px rgba(190,66,126,.18)}

/* Lesson reader */
body.page-lessons .reader-page{width:min(980px,calc(100% - 24px));margin-top:20px}
body.page-lessons .reader-header{border-radius:24px!important;background:radial-gradient(circle at 90% 7%,rgba(255,255,255,.15),transparent 22%),linear-gradient(125deg,#073b7f,#1769d3 56%,#5f49d7)!important;box-shadow:0 18px 38px rgba(22,77,162,.16)}
body.page-lessons .reader-panel{border-color:#cfe0f2!important;border-radius:17px!important;box-shadow:0 12px 30px rgba(21,55,105,.10)!important}
body.page-lessons .lesson-content{border-color:#dbe5f1!important;border-radius:21px!important;box-shadow:0 14px 34px rgba(24,55,105,.08)!important}
body.page-lessons .feedback-box,body.page-lessons .note-ai-test-cta,body.page-lessons .ai-teacher-lesson-card{border-radius:18px!important;box-shadow:0 12px 28px rgba(24,55,105,.10)}
/* Keep strong contrast: these cards use white text, so never replace them with a pale background. */
body.page-lessons .note-ai-test-cta{background:linear-gradient(135deg,#082e73 0%,#1261c9 62%,#4f64e8 100%)!important;border:1px solid rgba(255,255,255,.18)!important;color:#fff!important}
body.page-lessons .note-ai-test-cta .note-ai-test-kicker,body.page-lessons .note-ai-test-cta h2,body.page-lessons .note-ai-test-cta p,body.page-lessons .note-ai-test-cta .note-ai-test-meta span{color:#fff!important}
body.page-lessons .ai-teacher-lesson-card{background:linear-gradient(135deg,#4c1d95 0%,#6d28d9 46%,#2563eb 100%)!important;border:1px solid rgba(255,255,255,.18)!important;color:#fff!important}
body.page-lessons .ai-teacher-lesson-card .ai-teacher-kicker,body.page-lessons .ai-teacher-lesson-card h2,body.page-lessons .ai-teacher-lesson-card p,body.page-lessons .ai-teacher-lesson-card strong,body.page-lessons .ai-teacher-lesson-card .ai-teacher-tags span{color:#fff!important}
body.page-lessons .lesson-nav a{border-radius:15px!important;background:linear-gradient(145deg,#fff,#f7faff)!important}

/* Sterling Points wallet/history */
body.page-dashboard .page>.hero-card:first-child{background:radial-gradient(circle at 90% 5%,rgba(255,255,255,.15),transparent 24%),linear-gradient(125deg,#8a5a00,#d69316 48%,#6b4be1)!important}
body.page-dashboard .points-scroll table,body.page-dashboard .section table{border-collapse:separate!important;border-spacing:0!important;width:100%}
body.page-dashboard .section table th{background:#f5f8fd;color:#536b88;font-size:11px;text-transform:uppercase;letter-spacing:.04em}
body.page-dashboard .section table th,body.page-dashboard .section table td{padding:12px 11px!important;border-bottom:1px solid #e7edf5!important}
body.page-dashboard .section table tbody tr:nth-child(even){background:#fbfdff}

/* AI Teacher */
body.page-dashboard .ait-wrap{width:min(1080px,calc(100% - 28px))!important;margin:24px auto 38px!important}
body.page-dashboard .ait-hero{border-radius:26px!important;background:radial-gradient(circle at 90% 4%,rgba(255,255,255,.14),transparent 24%),linear-gradient(125deg,#0a4d7f,#137e9f 48%,#6548d4)!important;box-shadow:0 20px 44px rgba(17,92,137,.16)!important}
body.page-dashboard .ait-card,body.page-dashboard .ait-security,body.page-dashboard .ait-answer-card,body.page-dashboard .ait-history{border-radius:20px!important;border-color:#dce7f2!important;box-shadow:0 10px 26px rgba(22,55,105,.065)!important}
body.page-dashboard .ait-grid>.ait-card:nth-child(1){border-top:4px solid #2478df!important}
body.page-dashboard .ait-grid>.ait-card:nth-child(2){border-top:4px solid #6e4edb!important}
body.page-dashboard .ait-grid>.ait-card:nth-child(3){border-top:4px solid #11a080!important}

/* Note AI test */
body.page-tests .nat-wrap>.hero-card{background:radial-gradient(circle at 90% 5%,rgba(255,255,255,.15),transparent 24%),linear-gradient(125deg,#4c2b83,#7350d8 50%,#d05a93)!important}
body.page-tests .nat-card,body.page-tests .nat-status,body.page-tests .nat-help{border-radius:19px!important;box-shadow:0 9px 24px rgba(74,52,140,.065)!important}

/* Share & Earn */
body.page-dashboard .share-wrap{width:min(1080px,calc(100% - 28px))!important;margin:24px auto 38px!important}
body.page-dashboard .share-hero{border-radius:26px!important;background:radial-gradient(circle at 90% 5%,rgba(255,255,255,.16),transparent 24%),linear-gradient(125deg,#7a4b08,#d89516 48%,#6647d6)!important;box-shadow:0 20px 44px rgba(138,89,20,.16)!important}
body.page-dashboard .share-wrap .card{border-radius:20px!important;border-color:#e7dfcf!important;box-shadow:0 9px 24px rgba(104,70,25,.06)!important}

/* Quick recharge */
body.page-dashboard .quick-recharge{width:min(760px,100%)!important;margin:0 auto}
body.page-dashboard .quick-hero{border-radius:24px!important;background:linear-gradient(125deg,#7d5308,#d5981a 50%,#6749d9)!important;box-shadow:0 18px 40px rgba(126,83,15,.15)!important}
body.page-dashboard .quick-card{border-radius:20px!important;border-color:#eadfca!important;box-shadow:var(--sp8-shadow)!important}

/* Tables, alerts and empty states across student pages */
body.is-authenticated .empty-state{border-radius:18px!important;background:linear-gradient(145deg,#fbfdff,#f7f9fd)!important;border-color:#cad9eb!important}
body.is-authenticated .flash,body.is-authenticated .alert{border-radius:13px!important;box-shadow:0 7px 18px rgba(28,55,95,.05)}
body.is-authenticated table{font-size:13px}
body.is-authenticated table th{color:#4b637f;font-weight:850}

/* Mobile: compact, colourful, no horizontal overflow */
@media(max-width:1050px){
  body.is-authenticated .top-shell{height:68px!important;padding:8px 13px!important}
  body.is-authenticated .student-chip{border:0;background:transparent;box-shadow:none;padding:0}
}
@media(max-width:760px){
  body.portal-body.is-authenticated{padding-bottom:86px!important}
  body.is-authenticated .page{width:calc(100% - 16px)!important;margin:12px auto 24px!important}
  body.is-authenticated .hero-card{border-radius:20px!important;padding:20px 17px!important}
  body.is-authenticated .section{border-radius:18px!important;padding:15px!important;margin:11px 0!important}
  body.is-authenticated .section-head{gap:9px!important;margin-bottom:13px!important}
  body.is-authenticated .mobile-nav{
    left:8px!important;right:8px!important;bottom:8px!important;border:1px solid #dce6f2!important;border-radius:18px!important;
    padding:7px 5px max(7px,env(safe-area-inset-bottom))!important;background:rgba(255,255,255,.97)!important;
    box-shadow:0 10px 30px rgba(18,40,78,.16)!important;
  }
  body.is-authenticated .mobile-nav a{border-radius:12px!important;padding:4px 2px!important}
  body.is-authenticated .mobile-nav a.active{background:linear-gradient(135deg,#eef5ff,#f4efff)!important;color:#245fbf!important}
  body.is-authenticated .mobile-nav span{font-size:18px!important}
  body.is-authenticated .mobile-nav small{font-size:8.5px!important}

  body.page-dashboard main.sc-dashboard{width:calc(100% - 16px)!important;margin:11px auto 22px!important;padding:0!important}
  body.page-dashboard .sdv2-section{padding:14px!important;border-radius:18px!important;margin-bottom:10px!important}
  body.page-dashboard .sdv2-head h2{font-size:17px!important}
  body.page-dashboard .sdv2-study{gap:7px!important}
  body.page-dashboard .sdv2-study-main{grid-column:1/-1!important;min-height:94px!important;padding:13px!important}
  body.page-dashboard .sdv2-stat{padding:10px 6px!important}
  body.page-dashboard .sdv2-library{grid-template-columns:1fr 1fr!important;gap:7px!important}
  body.page-dashboard .sdv2-library-card{min-height:112px!important;padding:11px!important}
  body.page-dashboard .sdv2-quick{grid-template-columns:1fr 1fr!important;gap:7px!important}
  body.page-dashboard .sdv2-quick a{min-height:82px!important;padding:11px!important}
  body.page-dashboard .sdv2-progress{grid-template-columns:repeat(3,1fr)!important;gap:7px!important}
  body.page-dashboard .sdv2-progress-main{grid-column:1/-1!important;padding:13px!important}

  body.page-courses .rh-hero{padding:21px 18px!important;border-radius:20px!important}
  body.page-courses .rh-stats{grid-template-columns:1fr 1fr!important;gap:7px!important}
  body.page-courses .rh-stat{padding:13px!important;border-radius:15px!important}
  body.page-courses .rh-stat strong{font-size:22px!important}
  body.page-courses .rh-panel{padding:14px!important;border-radius:18px!important}

  body.page-tests .tp-wallet{grid-template-columns:1fr!important}
  body.page-tests .tp-builder{border-radius:18px!important}
  body.page-tests .tp-test-grid{grid-template-columns:1fr!important}
  body.page-tests .tp-chapters{grid-template-columns:1fr!important}
  body.page-tests .tp-confirm{grid-template-columns:1fr!important}
  body.page-tests .tp-summary{grid-template-columns:1fr 1fr!important}

  body.page-profile .profile-grid{grid-template-columns:1fr!important}
  body.page-profile .info-row{grid-template-columns:115px minmax(0,1fr)!important;gap:9px!important;padding:10px 11px!important}
  body.page-profile #commission-bank button{width:100%}

  body.page-lessons .reader-page{width:calc(100% - 12px)!important;margin:9px auto 92px!important}
  body.page-lessons .reader-header{border-radius:18px!important;padding:18px!important}
  body.page-lessons .lesson-content{border-radius:17px!important;padding:19px 15px!important}
  body.page-dashboard .ait-wrap,body.page-dashboard .share-wrap{width:calc(100% - 16px)!important;margin:12px auto 94px!important}
}
@media(max-width:430px){
  body.is-authenticated .brand-lockup small{letter-spacing:1px!important}
  body.page-dashboard .sdv2-library{grid-template-columns:1fr!important}
  body.page-dashboard .sdv2-library-card{min-height:auto!important}
  body.page-profile .info-row{grid-template-columns:1fr!important;gap:3px!important}
  body.page-progress .stats-grid{grid-template-columns:1fr 1fr!important}
}


/* ===== student-ui-v9.css ===== */
/* Sterling Student UI v9 — consistent typography, study mood, easy subject selection, easier movable icons */
:root{
  --sc-blue:#155fd0;--sc-blue-2:#2879e7;--sc-purple:#7048df;--sc-green:#0b9d7b;--sc-gold:#f2ae2f;
  --sc-ink:#102f66;--sc-text:#415674;--sc-muted:#74849a;--sc-line:#dce7f4;--sc-card:#fff;
  --sc-radius:20px;--sc-shadow:0 12px 30px rgba(22,55,105,.08);
  --sc-body-size:14px;--sc-small-size:11px;--sc-btn-size:11px;
}
html{font-size:16px}
body.portal-body{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;font-size:var(--sc-body-size)!important;line-height:1.55;color:var(--sc-text);background:linear-gradient(180deg,#eef6ff 0%,#f7f5ff 46%,#fffaf0 100%) fixed!important}
body.portal-body button,body.portal-body input,body.portal-body select,body.portal-body textarea{font:inherit!important;font-size:13px!important}
body.portal-body p,body.portal-body li,body.portal-body label{font-size:13px;line-height:1.55}
body.portal-body small,.small-note{font-size:var(--sc-small-size)!important;line-height:1.45}
body.portal-body h1{font-size:clamp(28px,3.4vw,38px)!important;line-height:1.12;letter-spacing:-.6px}
body.portal-body h2{font-size:22px!important;line-height:1.18;letter-spacing:-.25px}
body.portal-body h3{font-size:16px!important;line-height:1.28}
body.portal-body .btn,body.portal-body button,.profile-btn,.library-setup-btn{font-size:var(--sc-btn-size)!important;font-weight:900;letter-spacing:.1px}
body.portal-body .page{max-width:1180px;margin-left:auto;margin-right:auto}
body.portal-body .section,body.portal-body .sc-card,body.portal-body .profile-card,body.portal-body .library-shell{border-color:var(--sc-line)!important;box-shadow:var(--sc-shadow)!important}
body.portal-body .section{background:linear-gradient(145deg,#fff 0%,#fbfdff 62%,#fffaf1 100%);border-radius:var(--sc-radius)!important}
body.portal-body .eyebrow{font-size:10px!important;letter-spacing:1.2px!important;font-weight:950!important}

/* More polished global student header/navigation */
.top-shell{backdrop-filter:blur(15px);background:rgba(255,255,255,.93)!important;border-bottom:1px solid #dfe8f4!important;box-shadow:0 7px 24px rgba(22,50,92,.06)}
.desktop-nav a{border-radius:12px!important;padding:10px 13px!important;font-size:11px!important;font-weight:850!important}
.desktop-nav a.active{background:linear-gradient(135deg,#eaf3ff,#eee9ff)!important;color:#155bc2!important}
.student-chip{border-radius:16px!important;background:linear-gradient(135deg,#f8fbff,#f7f3ff)!important;border:1px solid #dfe8f5!important}
.mobile-nav{background:rgba(255,255,255,.96)!important;backdrop-filter:blur(16px);box-shadow:0 -10px 28px rgba(18,49,94,.10)!important}
.mobile-nav a{font-weight:850!important}.mobile-nav a.active{color:#155fd0!important}

/* Dashboard: make FREE subjects impossible to miss */
.sc-free-subject-cta{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:16px;padding:18px 20px;border:1px solid #d8d6fb;border-radius:22px;background:linear-gradient(120deg,#fff8dc 0%,#f3f7ff 43%,#f2edff 100%);box-shadow:0 14px 30px rgba(46,70,145,.10);position:relative;overflow:hidden;margin-bottom:16px}
.sc-free-subject-cta:after{content:"";position:absolute;width:180px;height:180px;border-radius:50%;right:-75px;top:-90px;background:rgba(104,71,217,.08)}
.sc-free-subject-icon{position:relative;z-index:1;width:58px;height:58px;border-radius:18px;display:grid;place-items:center;font-size:29px;background:linear-gradient(135deg,#ffe58c,#ffd252);box-shadow:0 10px 24px rgba(188,133,0,.17)}
.sc-free-subject-copy{position:relative;z-index:1;min-width:0}.sc-free-subject-copy>small{display:block;color:#5b4ac4;font-weight:950;letter-spacing:1.1px}.sc-free-subject-copy h2{margin:3px 0 4px!important;color:#102e68!important}.sc-free-subject-copy p{margin:0 0 8px!important;color:#63748c!important}.sc-free-subject-copy>b{display:block;margin-top:6px;color:#235397;font-size:10px}.sc-free-subject-progress{width:min(330px,100%);height:8px;border-radius:999px;background:#e3e9f4;overflow:hidden}.sc-free-subject-progress span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#16a077,#2d7be6,#7350de)}
.sc-free-subject-button{position:relative;z-index:1;display:inline-flex;min-height:46px;align-items:center;justify-content:center;padding:0 17px;border-radius:14px;background:linear-gradient(135deg,#155fd0,#7049df);color:#fff!important;text-decoration:none;font-size:10px;font-weight:950;white-space:nowrap;box-shadow:0 10px 22px rgba(42,87,190,.20)}

/* Dashboard movable icons: visible, larger MOVE handle; direct handle drag works without hunting for Arrange */
.sdv2-dashboard-icon{overflow:visible!important}.sdv2-drag-corner{opacity:1!important;width:auto!important;min-width:43px!important;height:24px!important;padding:0 7px!important;border-radius:999px!important;top:6px!important;right:6px!important;background:#edf4ff!important;color:#205db1!important;border:1px solid #d2e2f5!important;font-size:7px!important;letter-spacing:.55px!important;cursor:grab!important;box-shadow:0 4px 10px rgba(20,70,150,.07)}
.sdv2-drag-corner:active{cursor:grabbing!important}.sdv2-icon-section.is-arranging .sdv2-drag-corner{background:#155fd0!important;color:#fff!important;border-color:#155fd0!important}.sdv2-launcher-actions button{min-height:36px!important;padding:8px 13px!important;font-size:9px!important}.sdv2-launcher-note{font-size:10px!important}
.sdv2-icon-badge{box-shadow:0 10px 22px rgba(36,86,184,.22)!important}.sdv2-dashboard-icon:nth-child(4n+1){background:linear-gradient(145deg,#fff,#f1f7ff)!important}.sdv2-dashboard-icon:nth-child(4n+2){background:linear-gradient(145deg,#fff,#f6f1ff)!important}.sdv2-dashboard-icon:nth-child(4n+3){background:linear-gradient(145deg,#fff,#eefbf6)!important}.sdv2-dashboard-icon:nth-child(4n){background:linear-gradient(145deg,#fff,#fff7e7)!important}

/* Profile: FREE subject selector gets priority */
#my-subjects{scroll-margin-top:92px;background:linear-gradient(145deg,#fff,#f8fbff 58%,#fff8e8)!important;border:1px solid #d9e6f5!important}
.profile-free-subject-cta{display:grid;grid-template-columns:auto 1fr;gap:12px;align-items:center;margin:14px 0 4px;padding:14px 16px;border-radius:16px;background:linear-gradient(120deg,#fff7d8,#eef6ff 56%,#f1edff);border:1px solid #ead98d}
.profile-free-subject-cta .gift{width:44px;height:44px;border-radius:14px;display:grid;place-items:center;background:#fff2ac;font-size:22px}.profile-free-subject-cta small{display:block;color:#6e56bf;font-weight:950;letter-spacing:.9px}.profile-free-subject-cta strong{display:block;color:#15366d;font-size:15px}.profile-free-subject-cta p{margin:2px 0 0!important;color:#66768d!important;font-size:11px!important}
.subject-buy-drawer[open]{border-color:#cabdf4!important;background:linear-gradient(145deg,#fbf9ff,#f6faff)!important;box-shadow:0 10px 24px rgba(79,64,150,.07)}
.subject-buy-drawer>summary{font-size:12px!important}.subject-row{border-radius:11px;margin:4px 0;padding:10px!important}.subject-row:hover{background:#f2f7ff}.subject-row input[type=checkbox]{width:20px;height:20px;accent-color:#155fd0;margin-top:2px}.subject-summary{font-size:12px!important}

/* Library: movable professional subject cards */
.library-move-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:10px;margin:2px 0 10px;padding:11px 13px;border-radius:15px;background:linear-gradient(135deg,#eef6ff,#f7f2ff);border:1px solid #d8e5f4}.library-move-toolbar b{display:block;color:#18396f;font-size:12px}.library-move-toolbar small{display:block;margin-top:2px;color:#6e8098;font-size:9px!important}.library-move-toolbar button{border:0;border-radius:11px;padding:9px 12px;background:linear-gradient(135deg,#155fd0,#6c4add);color:#fff;font-size:9px!important;font-weight:950;cursor:pointer}.library-move-toolbar em{font-style:normal;color:#14804a;font-size:9px;font-weight:900;min-width:58px;text-align:right}
.subject-card-manage{overflow:visible!important;position:relative}.library-subject-move{position:absolute;z-index:6;right:8px;top:8px;border:1px solid #d1e0f2;border-radius:999px;min-width:45px;height:25px;padding:0 8px;background:#edf5ff;color:#1c5db4;font-size:7px!important;font-weight:950;letter-spacing:.55px;cursor:grab;touch-action:none;box-shadow:0 4px 10px rgba(23,74,145,.07)}.library-subject-move:active{cursor:grabbing}.subject-grid.library-arranging .subject-card-manage{border-style:dashed!important;border-color:#9db9e1!important;animation:scLibraryWiggle .34s ease-in-out infinite alternate;cursor:grab}.subject-grid.library-arranging .subject-card-manage:nth-child(even){animation-direction:alternate-reverse}.subject-grid.library-arranging .library-subject-move{background:#155fd0;color:#fff;border-color:#155fd0}.subject-card-manage.library-dragging{opacity:.35!important;transform:scale(.96)!important;animation:none!important}.subject-card-manage.library-drag-over{box-shadow:0 0 0 3px rgba(30,105,210,.16),0 15px 28px rgba(24,55,105,.10)!important}.subject-main-link{border-radius:inherit}@keyframes scLibraryWiggle{from{transform:rotate(-.35deg)}to{transform:rotate(.35deg)}}

/* Colorful but calm study sections */
.sdv2-section,.library-group,.profile-card{transition:box-shadow .16s ease,transform .16s ease}.sdv2-section:nth-of-type(4n+1){background:linear-gradient(145deg,#fff,#f3f8ff)!important}.sdv2-section:nth-of-type(4n+2){background:linear-gradient(145deg,#fff,#f7f2ff)!important}.sdv2-section:nth-of-type(4n+3){background:linear-gradient(145deg,#fff,#f0fbf6)!important}.sdv2-section:nth-of-type(4n){background:linear-gradient(145deg,#fff,#fff8e9)!important}

@media(max-width:760px){
  body.portal-body{font-size:13px!important}.top-shell{min-height:68px!important}.page{padding-left:10px!important;padding-right:10px!important}
  .sc-free-subject-cta{grid-template-columns:auto minmax(0,1fr);gap:11px;padding:15px;border-radius:18px}.sc-free-subject-icon{width:48px;height:48px;border-radius:15px;font-size:24px}.sc-free-subject-button{grid-column:1/-1;width:100%;min-height:43px}.sc-free-subject-copy h2{font-size:18px!important}.sc-free-subject-copy p{font-size:11px!important}
  .sdv2-dashboard-icons{grid-template-columns:repeat(3,minmax(0,1fr))!important}.sdv2-dashboard-icon,.sdv2-icon-open{min-height:104px!important}.sdv2-drag-corner{min-width:38px!important;height:22px!important;font-size:6.5px!important}
  .library-move-toolbar{grid-template-columns:1fr auto}.library-move-toolbar em{grid-column:1/-1;text-align:left}.library-move-toolbar small{max-width:240px}
  .library-subject-move{right:6px;top:6px}.profile-free-subject-cta{grid-template-columns:auto 1fr;padding:12px}
}
@media(max-width:390px){.sdv2-dashboard-icons{grid-template-columns:repeat(3,minmax(0,1fr))!important}.library-move-toolbar{grid-template-columns:1fr}.library-move-toolbar button{width:100%}}


/* Sterling V12.37 — cross-device visual consistency (CSS only; no business logic) */
:root{
  --sc-ink:#163562;
  --sc-text:#536a87;
  --sc-muted:#74849a;
  --sc-line:#dce7f4;
  --sc-body-size:14px;
  --sc-small-size:11px;
  --sc-btn-size:12px;
}
body.portal-body{
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif!important;
  font-size:14px!important;
  line-height:1.55!important;
  color:var(--sc-text)!important;
  background:linear-gradient(180deg,#eef6ff 0%,#f7f5ff 46%,#fffaf0 100%)!important;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
body.portal-body p,body.portal-body li{font-size:14px!important;line-height:1.55!important;color:var(--sc-text)}
body.portal-body label{font-size:12px;line-height:1.45;color:#405a7c}
body.portal-body small,body.portal-body .small-note{font-size:11px!important;line-height:1.4!important;color:var(--sc-muted)}
body.portal-body h1{font-size:clamp(28px,3vw,34px)!important;line-height:1.15!important;color:var(--sc-ink)}
body.portal-body h2{font-size:22px!important;line-height:1.2!important;color:var(--sc-ink)}
body.portal-body h3{font-size:16px!important;line-height:1.3!important;color:var(--sc-ink)}
body.portal-body h4{font-size:14px!important;line-height:1.35!important;color:var(--sc-ink)}
body.portal-body .btn,body.portal-body button,.profile-btn,.library-setup-btn{font-size:12px!important;line-height:1.25!important}
body.portal-body input,body.portal-body select,body.portal-body textarea{font-family:inherit!important;color:#17345f!important}
.desktop-nav a{font-size:12px!important;color:#405673!important}
.student-chip strong{font-size:12px!important;color:#17345f!important}.student-chip small{font-size:10px!important;color:#74849a!important}
.mobile-nav small{font-size:9px!important}.mobile-nav a{color:#566b87!important}.mobile-nav a.active{color:#155fd0!important}

/* Keep touch/WebView rendering lighter without changing layout or functionality. */
@media(max-width:700px){
  body.portal-body{font-size:14px!important;background:linear-gradient(180deg,#eef6ff 0%,#f7f5ff 52%,#fffaf0 100%)!important}
  body.portal-body p,body.portal-body li{font-size:14px!important}
  body.portal-body label{font-size:12px!important}
  body.portal-body h1{font-size:28px!important}
  body.portal-body h2{font-size:20px!important}
  body.portal-body h3{font-size:15px!important}
  .top-shell,.mobile-nav{backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
  .top-shell{box-shadow:0 4px 14px rgba(22,50,92,.055)!important}
  .mobile-nav{box-shadow:0 -4px 16px rgba(18,49,94,.08)!important}
  body.portal-body .section,body.portal-body .sc-card,body.portal-body .profile-card,body.portal-body .library-shell{box-shadow:0 6px 18px rgba(22,55,105,.055)!important}
}
@media(hover:none){
  body.portal-body .btn,body.portal-body button,.quick-card,.subject-card,.chapter-link,.sdv2-section,.library-group,.profile-card{transition:none!important}
  body.portal-body .btn:hover,body.portal-body button:hover,.quick-card:hover,.subject-card:hover,.chapter-link:hover{transform:none!important}
}

/* V12.47.5 Student readability hotfix — presentation only */
:root{
  --stu-text:#16345f;
  --stu-sub:#627892;
  --stu-soft:#7a8ea8;
  --stu-card:#ffffff;
  --stu-line:#d7e3f2;
  --stu-blue:#155dce;
  --stu-blue-dark:#0f3c86;
}
body.portal-body,
body.portal-body .page,
body.portal-body .section,
body.portal-body .profile-card,
body.portal-body .sdv2-section{color:var(--stu-text)}
body.portal-body p,
body.portal-body small,
body.portal-body .muted,
body.portal-body .info-row span,
body.portal-body .student-chip small,
body.portal-body .history-row small,
body.portal-body .lesson-card p,
body.portal-body .course-card p{color:var(--stu-sub)!important}
body.portal-body h1,
body.portal-body h2,
body.portal-body h3,
body.portal-body h4,
body.portal-body strong,
body.portal-body b{color:var(--stu-text)}
body.portal-body .btn.primary,
body.portal-body .btn.primary *{color:#fff!important}
body.portal-body .btn.secondary{color:var(--stu-blue)!important}
body.portal-body input,
body.portal-body select,
body.portal-body textarea{color:var(--stu-text)!important;background:#fff!important}
body.portal-body .section,
body.portal-body .profile-card,
body.portal-body .lesson-card,
body.portal-body .course-card{background:#fff!important;border-color:var(--stu-line)!important}
body.portal-body .pill,
body.portal-body .status-pill{color:var(--stu-blue-dark)!important}

/* V12.49 Gradient hero contrast repair across Student Portal */
body.portal-body .hero-card>h1,body.portal-body .hero-card>h2,body.portal-body .hero-card>p,body.portal-body .hero-card>.eyebrow.light,body.portal-body .hero-card .hero-meta span{color:#fff!important}
body.portal-body .hero-card>p{color:#eaf2ff!important}
body.portal-body .hero-card .eyebrow.light{color:#dceaff!important}
body.portal-body.page-lessons .library-hero h1,body.portal-body.page-lessons .library-hero p,body.portal-body.page-lessons .library-hero .eyebrow.light,body.portal-body.page-lessons .library-hero .hero-meta span{color:#fff!important}
body.portal-body.page-lessons .library-hero p{color:#e8f1ff!important}
body.portal-body.page-courses .hero-card h1,body.portal-body.page-courses .hero-card p,body.portal-body.page-courses .hero-card .eyebrow,body.portal-body.page-tests .hero-card h1,body.portal-body.page-tests .hero-card p,body.portal-body.page-tests .hero-card .eyebrow,body.portal-body.page-progress .hero-card h1,body.portal-body.page-progress .hero-card p,body.portal-body.page-progress .hero-card .eyebrow{color:#fff!important}

