:root{--sh-ink:#192a49;--sh-muted:#687890;--sh-blue:#1261dc;--sh-border:#e5ecf8;--sh-card:#fff;--sh-bg:#f5f8ff;--sh-shadow:0 12px 32px rgba(36,70,128,.065)}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
.student-home-body{margin:0;background:var(--sh-bg);color:var(--sh-ink);font-family:system-ui,-apple-system,"Segoe UI",Tahoma,sans-serif;font-size:14px}
.student-home-body a{text-decoration:none;color:inherit}
.student-home-body button,.student-home-body input{font:inherit}
.student-home-body :focus-visible{outline:3px solid #578cef;outline-offset:3px}
.sh-app{display:grid;grid-template-columns:210px minmax(0,1fr);grid-template-rows:68px minmax(calc(100vh - 68px),auto);min-height:100vh}
.sh-topbar{grid-column:1/-1;display:flex;align-items:center;gap:26px;padding:0 26px;background:#fff;border-bottom:1px solid var(--sh-border);position:relative;z-index:50}
.sh-brand{display:flex;align-items:center;gap:10px;min-width:184px;white-space:nowrap}
.sh-brand-icon{display:grid;place-items:center;background:#e9efff;color:#1d3f85;width:33px;height:33px;border-radius:11px;font-size:22px}
.sh-brand strong,.sh-brand small{display:block}
.sh-brand strong{font-size:17px;line-height:1.1}
.sh-brand small{color:var(--sh-muted);font-size:9px;letter-spacing:.045em;margin-top:4px}
.sh-search{display:flex;align-items:center;gap:12px;background:#f3f6ff;border:1px solid #edf1fa;border-radius:11px;padding:0 15px;max-width:490px;width:100%;height:39px;color:#6d81a7}
.sh-search input{border:0;outline:0;background:transparent;width:100%;color:var(--sh-ink);font-size:13px;min-width:0}
.sh-search input::placeholder{color:#8b99af}
.sh-top-actions{margin-inline-start:auto;display:flex;align-items:center;gap:18px}
.sh-icon-link{position:relative;font-size:19px;display:grid;place-items:center;width:42px;height:42px;color:#48638d!important}
.sh-notification-count{position:absolute;top:0;inset-inline-end:0;display:grid;place-items:center;min-width:17px;height:17px;border-radius:100px;background:#ef4d5d;color:#fff;font-size:10px;padding:2px 4px}
.sh-notification-menu{position:relative}
.sh-notification-menu summary{list-style:none;cursor:pointer;border-radius:10px}
.sh-notification-menu summary::-webkit-details-marker{display:none}
.sh-notification-menu[open] summary,.sh-notification-menu summary:hover{background:#eef4ff;color:#135dd2!important}
.sh-notification-panel{position:absolute;top:calc(100% + 11px);inset-inline-end:0;width:min(370px,calc(100vw - 24px));background:#fff;border:1px solid var(--sh-border);border-radius:15px;box-shadow:0 18px 44px rgba(24,52,105,.18);z-index:30;overflow:hidden;transform-origin:top center}
.sh-notification-head{display:flex;justify-content:space-between;align-items:center;padding:16px 17px;font-size:15px;border-bottom:1px solid var(--sh-border)}
.sh-notification-head span{color:#1466e1;background:#edf4ff;border-radius:99px;padding:3px 8px;font-size:11px}
.sh-notification-list{max-height:min(380px,55dvh);overflow-y:auto;overscroll-behavior:contain}
.sh-notification-item{display:flex;align-items:flex-start;gap:11px;padding:13px 15px;border-bottom:1px solid #edf1f8;color:var(--sh-ink)!important}
.sh-notification-item:hover{background:#f5f8ff}
.sh-notification-item.is-unread{background:#f3f7ff}
.sh-notification-icon{display:grid;place-items:center;flex:none;width:35px;height:35px;border-radius:50%;background:#eaf1ff;color:#2164be}
.sh-notification-copy{display:grid;gap:4px;min-width:0;flex:1;line-height:1.35}
.sh-notification-copy strong{font-size:12px;overflow-wrap:anywhere}
.sh-notification-copy>span{color:#62728b;font-size:11px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere}
.sh-notification-copy small{color:#8492a8;font-size:10px}
.sh-unread-dot{width:7px;height:7px;flex:none;border-radius:50%;background:#1668e5;margin-top:6px}
.sh-notification-empty{min-height:135px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:9px;color:#74839d;font-size:12px}
.sh-notification-empty i{font-size:24px;color:#9db3d7}
.sh-notification-foot{display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:9px;border-top:1px solid var(--sh-border)}
.sh-notification-foot a{justify-content:center;padding:9px 5px;border-radius:9px;color:#2161bc!important;font-size:11px;font-weight:650}
.sh-notification-foot a:hover{background:#eef4ff}
.sh-header-user{display:flex;align-items:center;gap:10px;padding-inline-start:17px;border-inline-start:1px solid var(--sh-border);font-weight:650;white-space:nowrap;max-width:240px}
.sh-header-user span{overflow:hidden;text-overflow:ellipsis}
.sh-header-user img{width:36px;height:36px;object-fit:cover;border-radius:50%}
.sh-header-user i{font-size:17px;color:#7489a6}
.sh-user-menu{position:relative}
.sh-user-menu summary{list-style:none;cursor:pointer}
.sh-user-menu summary::-webkit-details-marker{display:none}
.sh-user-menu[open] .sh-header-user>i{transform:rotate(180deg)}
.sh-user-menu nav{position:absolute;top:calc(100% + 12px);inset-inline-end:0;width:205px;padding:7px;background:#fff;border:1px solid var(--sh-border);border-radius:13px;box-shadow:0 18px 42px rgba(24,52,105,.17);z-index:30}
.sh-user-menu nav a,.sh-user-menu nav button{display:flex;width:100%;min-height:42px;align-items:center;padding:9px 11px;border:0;border-radius:8px;background:none;color:#405b82!important;text-align:start;cursor:pointer;font-weight:600}
.sh-user-menu nav a:hover,.sh-user-menu nav button:hover{background:#eef4ff;color:#135dd2!important}
.sh-user-menu nav form{border-top:1px solid var(--sh-border);margin-top:4px;padding-top:4px}
.sh-user-menu nav form button{color:#b54552!important}
.sh-dialog{inset:0;margin:auto;width:min(420px,calc(100vw - 28px));max-height:calc(100dvh - 28px);overflow:auto;border:1px solid #e5ecf8;border-radius:18px;padding:0;color:var(--sh-ink);box-shadow:0 24px 70px rgba(25,48,89,.24)}
.sh-dialog::backdrop{background:rgba(19,34,60,.48)}
.sh-dialog-inner{padding:24px;text-align:center}
.sh-dialog h2{font-size:19px;font-weight:750;margin:5px 0 8px}
.sh-dialog p{font-size:13px;color:var(--sh-muted);margin:0 0 19px}
.sh-dialog-icon{display:inline-grid;place-items:center;width:48px;height:48px;border-radius:50%;background:#fff0f1;color:#bc4351;font-size:23px}
.sh-dialog-actions{display:flex;justify-content:center;gap:10px;margin-top:20px}
.sh-dialog-actions button{min-height:40px;cursor:pointer}
.sh-secondary{background:#f1f5fb;color:#425b7a;border:0;border-radius:9px;padding:8px 17px;font-weight:650}
#sh-crop-canvas{display:block;width:min(300px,100%);height:auto;aspect-ratio:1;border-radius:50%;margin:0 auto 15px;touch-action:none;cursor:grab;background:#e8eef9}
#sh-crop-canvas:active{cursor:grabbing}
.sh-zoom-label{display:block;font-size:12px;color:var(--sh-muted);margin-bottom:5px}
#sh-crop-zoom{width:min(300px,100%);accent-color:#1466e1}
.sh-dialog .sh-crop-error{color:#b42338;margin:10px 0 0}
.sh-sidebar{background:#fff;border-inline-end:1px solid #e9edf7;padding:23px 12px;display:flex;flex-direction:column;gap:24px}
.sh-side-toggle,.sh-mobile-nav-trigger{display:none;border:0;background:#eef4ff;color:#235aab;border-radius:10px;cursor:pointer;align-items:center;justify-content:center;min-width:44px;min-height:44px}
.sh-side-toggle{gap:12px;align-self:stretch;font-weight:650}
.sh-side-toggle .sh-toggle-close{display:none}
.sh-sidebar-backdrop{display:none}
.sh-sidebar-backdrop[hidden]{display:none}
.sh-side-links{display:grid;gap:5px}
.sh-side-links a,.sh-side-links button,.sh-side-back{display:flex;align-items:center;gap:14px;min-height:43px;padding:8px 13px;border-radius:11px;color:#556c90!important;font-weight:550;transition:background .15s,color .15s}
.sh-side-links button{width:100%;border:0;background:none;text-align:start;cursor:pointer}
.sh-side-links a:hover,.sh-side-links button:hover,.sh-side-back:hover{background:#eef4ff;color:#135dd2!important}
.sh-side-links a.is-active{background:#e6efff;color:#135ccf!important;font-weight:720}
.sh-side-links i,.sh-side-back i{width:20px;font-size:17px;text-align:center}
.sh-side-back{margin-top:auto;font-size:12px}
.sh-mobile-menu{display:none}
.sh-main{min-width:0;padding:18px 24px 40px;max-width:1560px;width:100%;margin-inline:auto}
.sh-hero{min-height:267px;background:radial-gradient(ellipse at 75% 5%,#dcefff 0,transparent 38%),linear-gradient(118deg,#e7e2ff 0%,#e1efff 59%,#ffeaee 100%);border:1px solid #dedfff;position:relative;isolation:isolate;overflow:hidden;border-radius:18px;box-shadow:var(--sh-shadow);padding:28px 28px 23px;display:grid;grid-template-columns:minmax(0,1fr) 152px;gap:20px}
.sh-hero-art{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:-1}
.sh-hero-art span:first-child{position:absolute;border-radius:50%;width:380px;height:380px;background:rgba(255,255,255,.30);top:-230px;inset-inline-start:23%}
.sh-hero-art span:last-child{position:absolute;border-radius:42%;width:235px;height:235px;background:rgba(255,205,217,.62);top:-124px;inset-inline-end:-44px}
.sh-hero-content{display:flex;flex-direction:column;justify-content:space-between;gap:25px}
.sh-identity{display:flex;align-items:center;gap:24px;min-width:0}
.sh-avatar{position:relative;display:block;flex:none;width:120px;height:120px;border-radius:50%;border:5px solid #fff;box-shadow:0 8px 28px rgba(37,67,123,.15)}
.sh-avatar{padding:0;background:#fff;cursor:pointer}
.sh-avatar:focus-visible{outline:3px solid #1461d9;outline-offset:3px}
.sh-avatar:disabled{opacity:.65;cursor:wait}
.sh-photo-status{align-self:center;color:#285c9c;font-size:12px}
.sh-avatar img{width:100%;height:100%;object-fit:cover;border-radius:50%}
.sh-avatar span{position:absolute;bottom:1px;inset-inline-end:0;display:grid;place-items:center;width:30px;height:30px;background:#fff;color:#1461d9;border-radius:50%;box-shadow:0 3px 12px rgba(30,65,117,.15)}
.sh-identity-copy{min-width:0}
.sh-name-line{display:flex;align-items:center;flex-wrap:wrap;gap:10px 16px}
.sh-name-line small{display:block;color:#587198;font-size:12px;margin-bottom:5px}
.sh-name-line h1{font-size:clamp(21px,2.25vw,30px);line-height:1.2;letter-spacing:-.025em;margin:0;font-weight:760;overflow-wrap:anywhere}
.sh-state{display:inline-flex;align-items:center;gap:6px;background:#dcf7e9;color:#158454;border-radius:100px;padding:6px 9px;font-size:11px;font-weight:700;white-space:nowrap}
.sh-id{color:#46638e;margin-top:10px;font-size:13px;font-weight:650;display:inline-flex}
.sh-identity-copy p{color:#4e6284;margin:11px 0 0;font-size:13px;line-height:1.6}
.sh-hero-stats{display:flex;align-items:stretch;gap:12px;max-width:690px}
.sh-stat{display:flex;align-items:center;gap:11px;flex:1;min-width:0;border-radius:12px;background:rgba(255,255,255,.66);padding:10px 13px;border:1px solid rgba(255,255,255,.65)}
.sh-stat>i{display:grid;place-items:center;width:33px;height:33px;border-radius:10px;font-size:18px;flex:none}
.sh-stat strong,.sh-stat small{display:block;white-space:nowrap}
.sh-stat strong{font-size:17px;line-height:1.1}
.sh-stat small{font-size:10px;color:#60718f;margin-top:3px;overflow:hidden;text-overflow:ellipsis}
.sh-stat-blue>i{background:#e2f0ff;color:#1970dc}
.sh-stat-purple>i{background:#f1e9ff;color:#784ada}
.sh-stat-cyan>i{background:#e6f7fb;color:#15a6b8}
.sh-pass{align-self:center;display:flex;flex-direction:column;align-items:center;gap:5px;justify-content:center;background:#fff;border:1px solid #edf0fb;border-radius:15px;box-shadow:0 9px 26px rgba(39,73,131,.09);padding:11px 9px;text-align:center;min-height:172px;max-width:152px}
.sh-pass{cursor:pointer;font:inherit;color:inherit;transition:transform .15s,box-shadow .15s}
.sh-pass:hover{transform:translateY(-2px);box-shadow:0 13px 32px rgba(39,73,131,.16)}
.sh-pass strong{font-size:11px;color:#24519a}
.sh-pass small{font-size:10px;color:#687890;line-height:1.3}
.sh-pass-qr{display:grid;place-items:center;width:106px;height:106px}
.sh-pass-qr svg{max-width:100%;max-height:100%}
.sh-pass-dialog{width:min(460px,calc(100vw - 24px));background:#f2f6ff}
.sh-pass-dialog-top{display:flex;align-items:center;justify-content:space-between;background:linear-gradient(125deg,#164aab,#277ce6);color:#fff;padding:16px 20px}
.sh-pass-dialog-brand{display:inline-flex;align-items:center;gap:8px;font-size:15px;font-weight:750}
.sh-pass-dialog-brand i{font-size:22px}
.sh-pass-close{display:grid;place-items:center;width:35px;height:35px;border:0;border-radius:9px;background:rgba(255,255,255,.18);color:#fff;cursor:pointer;font-size:18px}
.sh-pass-dialog-body{text-align:center;margin:18px 18px 0;padding:21px 18px 15px;border-radius:16px;background:#fff;box-shadow:0 8px 25px rgba(39,73,131,.08)}
.sh-pass-dialog-label{display:inline-block;color:#245ba9;background:#edf4ff;border-radius:99px;padding:6px 13px;font-size:12px;font-weight:750}
.sh-pass-dialog h2{margin:13px 0 3px;font-size:21px;overflow-wrap:anywhere}
.sh-pass-dialog-id{display:block;color:#5b7194;font-size:13px;font-weight:650}
.sh-pass-dialog-qr{display:grid;place-items:center;margin:18px auto 13px;width:min(225px,100%);aspect-ratio:1;background:#fff}
.sh-pass-dialog-qr svg{width:100%;height:100%}
.sh-pass-dialog-body p{margin:0;color:#627793;font-size:12px;line-height:1.5}
.sh-pass-dialog-foot{display:flex;flex-wrap:wrap;justify-content:center;gap:9px;padding:16px 18px 20px}
.sh-pass-dialog-foot button,.sh-pass-dialog-foot a{min-height:40px;cursor:pointer}
.sh-pass-dialog-foot button:disabled{opacity:.55;cursor:wait}
.sh-pass-dialog-foot [role="status"]{flex:0 0 100%;margin:0;color:#b42338;text-align:center;font-size:12px}
.sh-tabs{display:flex;align-items:center;gap:10px;overflow-x:auto;border-bottom:1px solid #e0e8f6;margin:15px 0 17px;scrollbar-width:thin}
.sh-tabs a{flex:none;display:grid;place-items:center;padding:13px 15px;border-bottom:2px solid transparent;color:#5d6e8a;font-weight:600;white-space:nowrap}
.sh-tabs a.is-active,.sh-tabs a:hover{border-color:#1266e3;color:#125bc9}
.sh-card{min-width:0;background:var(--sh-card);border:1px solid var(--sh-border);border-radius:17px;padding:20px;box-shadow:var(--sh-shadow)}
.sh-card-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:18px}
.sh-card-head h2{font-size:17px;font-weight:750;letter-spacing:-.012em;margin:0}
.sh-card-head a{color:#1263d8!important;font-size:12px;font-weight:670;white-space:nowrap}
.sh-center-carousel{touch-action:pan-y pinch-zoom;user-select:none;-webkit-user-select:none}
.sh-center-slide[hidden]{display:none!important}
.sh-center-slide-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px;min-width:0}
.sh-center-slide-head strong{min-width:0;color:#375781;font-size:12px;overflow-wrap:anywhere}
.sh-center-slide-head a{color:#1263d8!important;font-size:12px;font-weight:670;white-space:nowrap}
.sh-center-dots{display:flex;justify-content:center;gap:7px;margin-top:15px}
.sh-center-dots span{width:7px;height:7px;border-radius:50%;background:#cddbf0;transition:width .2s,background .2s}
.sh-center-dots span.is-active{width:20px;border-radius:99px;background:#1768dc}
.sh-center-swipe-hint{display:block;text-align:center;color:#7c8da7;font-size:10px;margin-top:5px}
.sh-feature-grid,.sh-info-grid,.sh-bottom-grid,.sh-last-grid{display:grid;gap:14px;margin-bottom:14px}
.sh-feature-grid{grid-template-columns:minmax(0,1.55fr) minmax(290px,1fr)}
.sh-info-grid{grid-template-columns:repeat(auto-fit,minmax(270px,1fr))}
.sh-bottom-grid{grid-template-columns:1.5fr 1fr}
.sh-bottom-grid:has(> :only-child){grid-template-columns:1fr}
.sh-last-grid{grid-template-columns:1fr .9fr}
.sh-course-feature{display:grid;grid-template-columns:minmax(155px,36%) minmax(0,1fr);gap:17px;background:#f8faff;padding:9px;border-radius:14px;min-height:195px}
.sh-course-image{min-height:180px;overflow:hidden;border-radius:11px;background:#e9edfa}
.sh-course-image img{width:100%;height:100%;object-fit:cover;display:block}
.sh-course-info{display:flex;flex-direction:column;align-items:stretch;min-width:0;padding:5px 2px}
.sh-pill{align-self:flex-start;padding:4px 8px;border-radius:6px;background:#e5efff;color:#2666bc;font-size:10px;font-weight:650}
.sh-course-info h3{font-size:16px;font-weight:730;line-height:1.35;margin:6px 0 5px;overflow-wrap:anywhere}
.sh-teacher{display:flex;align-items:center;gap:7px;color:#61708a;font-size:11px;margin:0 0 10px}
.sh-teacher img{width:21px;height:21px;border-radius:50%;object-fit:cover}
.sh-progress-caption{display:flex;align-items:center;justify-content:space-between;gap:7px;color:#476386;font-size:11px;font-weight:600}
.sh-progress-caption strong{color:#18385d}
.sh-progress{height:8px;border-radius:99px;overflow:hidden;background:#dce5f4;margin:6px 0 10px}
.sh-progress span,.sh-mini-bar span{display:block;height:100%;background:linear-gradient(90deg,#48a4f8,#1761d8);border-radius:inherit}
.sh-primary{border:0;border-radius:9px;background:#1466e1;color:#fff!important;min-height:38px;padding:8px 16px;font-size:12px;font-weight:720;box-shadow:0 7px 15px rgba(31,109,223,.17);transition:background .15s,transform .15s}
.sh-primary:hover{background:#084eba;transform:translateY(-1px)}
.sh-primary i{font-size:17px}
.sh-course-empty{min-height:186px;background:#f6f9ff;border-radius:13px;padding:23px;display:flex;gap:16px;align-items:center;flex-wrap:wrap}
.sh-course-empty>div{flex:1;min-width:170px}
.sh-course-empty h3{font-size:17px;font-weight:700}
.sh-course-empty p{color:var(--sh-muted);line-height:1.6;margin:0}
.sh-empty-icon{display:grid;place-items:center;width:61px;height:61px;border-radius:17px;background:#e8efff;color:#236bd5;font-size:28px}
.sh-target-icon{display:grid;place-items:center;width:37px;height:37px;background:#f3ecff;border-radius:50%;color:#7a4add;font-size:19px}
.sh-next-item{display:flex;align-items:center;gap:14px;background:#f7faff;border-radius:14px;padding:15px;margin-bottom:10px;min-height:120px}
.sh-next-icon{width:68px;height:68px;flex:none;display:grid;place-items:center;background:#e6f3ff;color:#1466d1;border-radius:12px;font-size:27px}
.sh-next-item>div{flex:1;min-width:0}
.sh-next-item small{color:#657b9b;font-size:11px}
.sh-next-item h3{font-size:15px;font-weight:720;margin:4px 0;overflow-wrap:anywhere}
.sh-next-item p{font-size:11px;color:var(--sh-muted);margin:0}
.sh-round-link{display:grid;place-items:center;width:33px;height:33px;border-radius:50%;background:#fff;color:#1266d8!important;box-shadow:0 2px 8px rgba(34,85,143,.14);font-size:19px;flex:none}
.sh-next-empty{min-height:120px;text-align:center;background:#f8faff;border-radius:13px;display:flex;align-items:center;justify-content:center;gap:9px;flex-wrap:wrap;padding:22px;color:#60718f}
.sh-next-empty i{font-size:25px;color:#7896cb}
.sh-next-empty p{margin:0}
.sh-next-empty a{color:#1266d8!important;font-weight:700}
.sh-next-shortcuts{display:flex;gap:8px}
.sh-next-shortcuts a{display:flex;align-items:center;gap:7px;min-width:0;flex:1;background:#f4f7fe;padding:9px;border-radius:9px;color:#4b6182!important;font-size:10px;line-height:1.2}
.sh-next-shortcuts i{color:#2278cf;font-size:17px;flex:none}
.sh-ring,.sh-attendance-ring{display:grid;place-items:center;border-radius:50%;background:conic-gradient(#37bf7c var(--value),#e4eef5 0)}
.sh-ring{width:140px;height:140px;margin:4px auto 19px}
.sh-ring>div{width:119px;height:119px;background:#fff;border-radius:50%;display:grid;place-content:center;text-align:center}
.sh-ring strong{font-size:23px}
.sh-ring small{color:var(--sh-muted);font-size:11px}
.sh-mini-courses{display:grid;gap:10px}
.sh-mini-courses>div{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:4px 10px;font-size:11px}
.sh-mini-courses span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sh-mini-courses strong{font-size:11px}
.sh-mini-bar{grid-column:1/-1;height:6px;border-radius:99px;background:#e7ecf5;overflow:hidden}
.sh-results,.sh-progress-card,.sh-attendance{min-height:305px}
.sh-result-row{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid #edf1f9}
.sh-result-row:last-child{border:0}
.sh-result-icon{display:grid;place-items:center;width:37px;height:37px;flex:none;border-radius:10px;color:#29a981;background:#e9f9f0;font-size:17px}
.sh-result-row>div{min-width:0;flex:1}
.sh-result-row strong,.sh-result-row small{display:block}
.sh-result-row strong{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sh-result-row small{font-size:10px;color:var(--sh-muted);margin-top:4px}
.sh-result-row b{font-size:12px;color:#149869;white-space:nowrap}
.sh-card-empty{min-height:170px;display:grid;align-content:center;justify-items:center;text-align:center;gap:11px;color:#6b7991}
.sh-card-empty i{font-size:29px;color:#80a3d9}
.sh-card-empty p{max-width:260px;margin:0;line-height:1.6}
.sh-attendance-content{display:flex;align-items:center;gap:19px}
.sh-calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;flex:1;min-width:0}
.sh-calendar-day{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;border-radius:8px;background:#f5f8fd;height:33px;font-size:10px;color:#6c7993}
.sh-calendar-dots{display:flex;gap:2px}
.sh-calendar-dots i,.sh-attendance-overview li i{width:7px;height:7px;display:block;border-radius:50%;background:#cdd8e6}
.sh-calendar-dots i.is-present,.sh-attendance-overview li i.is-present{background:#39bf7e}
.sh-calendar-dots i.is-absent,.sh-attendance-overview li i.is-absent{background:#f36c77}
.sh-calendar-dots i.is-late,.sh-attendance-overview li i.is-late{background:#f4be48}
.sh-calendar-dots i.is-excused,.sh-attendance-overview li i.is-excused{background:#53a5e5}
.sh-attendance-overview{width:90px;flex:none;text-align:center}
.sh-attendance-ring{width:78px;height:78px;margin:auto}
.sh-attendance-ring strong{display:grid;place-items:center;width:65px;height:65px;background:#fff;border-radius:50%;font-size:17px}
.sh-attendance-overview>small{display:block;font-size:10px;color:var(--sh-muted);margin:7px 0}
.sh-attendance-overview ul{list-style:none;margin:0;padding:0;text-align:start}
.sh-attendance-overview li{display:flex;align-items:center;gap:5px;font-size:10px;margin:5px 0}
.sh-attendance-overview li b{margin-inline-start:auto}
.sh-journey-track{display:flex;position:relative;justify-content:space-between;gap:10px;padding-top:7px}
.sh-journey-track:before{content:"";position:absolute;top:24px;inset-inline:25px;height:2px;background:#d9e8f7}
.sh-journey-step{z-index:1;display:flex;flex:1;flex-direction:column;align-items:flex-start;gap:6px;min-width:0}
.sh-journey-step>span{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:#e6f7ed;color:#24ad70;border:4px solid #fff;font-size:15px}
.sh-journey-step:nth-child(2)>span{color:#2676d5;background:#e6efff}
.sh-journey-step:nth-child(3)>span{color:#7849d9;background:#f2edff}
.sh-journey-step:nth-child(4)>span{color:#e99045;background:#fff2e9}
.sh-journey-step strong{font-size:11px;line-height:1.4}
.sh-journey-step small{font-size:10px;color:var(--sh-muted)}
.sh-payment-row{display:flex;justify-content:space-between;gap:12px;border-bottom:1px solid #eff2f8;padding:12px 0;font-size:12px}
.sh-payment-row b{font-size:12px}
.sh-payment-total{border:0;color:#136ac2;font-weight:750}
.sh-payment-pay{display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:7px 12px;border:0;border-radius:9px;background:#1768dc;color:#fff!important;font:inherit;font-weight:750;text-decoration:none;white-space:nowrap;touch-action:manipulation;cursor:pointer}
.sh-payment-pay:hover,.sh-payment-pay:focus-visible{background:#1256b7;color:#fff!important}
.sh-payment-pay i{flex-shrink:0}
.sh-payment-actions{display:grid;gap:9px;margin-top:12px}
.sh-payment-action{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.sh-payment-action>span{font-size:12px;color:#375781;overflow-wrap:anywhere}
.sh-payment-action form{margin:0}
.sh-payment-pending{font-size:12px;color:#8a5a00;text-decoration:underline}
.sh-activity-row{display:flex;align-items:center;gap:11px;padding:10px 0;border-bottom:1px solid #edf1f8}
.sh-activity-row:last-child{border:0}
.sh-activity-row>span:nth-child(2){flex:1;min-width:0}
.sh-activity-row strong,.sh-activity-row small{display:block}
.sh-activity-row strong{font-size:11px}
.sh-activity-row small{font-size:11px;color:var(--sh-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sh-activity-row time{font-size:10px;color:#7d91ad;white-space:nowrap}
.sh-activity-icon{display:grid;place-items:center;border-radius:10px;background:#e8f8ee;color:#2da96b;width:35px;height:35px;flex:none}
.sh-activity-icon.is-quiz{background:#fff5e7;color:#e9a835}
.sh-activity-icon.is-attendance{background:#edeaff;color:#7956d7}
.sh-activity-icon.is-assignment{background:#e6efff;color:#397ddd}
.sh-inspiration{position:relative;overflow:hidden;border:1px solid #e2eafb;border-radius:17px;background:linear-gradient(130deg,#f4f9ff,#e2ecff);padding:28px;box-shadow:var(--sh-shadow);min-height:218px}
.sh-inspiration h2,.sh-inspiration p,.sh-inspiration a{position:relative;z-index:1}
.sh-inspiration h2{font-size:20px;font-weight:750}
.sh-inspiration p{font-size:13px;color:#5f7290;max-width:240px;line-height:1.6}
.sh-inspiration .sh-primary{margin-top:8px}
.sh-sun{position:absolute;inset-inline-end:15%;top:25px;width:48px;height:48px;border-radius:50%;background:#fff9e7;box-shadow:0 0 0 20px rgba(255,255,255,.3)}
.sh-mountain{position:absolute;inset-inline-end:-5%;bottom:-25px;width:82%;height:76%;background:linear-gradient(135deg,#a4bde7,#d9e5ff);clip-path:polygon(0 100%,17% 67%,28% 79%,51% 23%,67% 68%,80% 42%,100% 83%,100% 100%)}

@media(max-width:1150px){.sh-app{grid-template-columns:74px minmax(0,1fr)}
.sh-sidebar{padding-inline:9px;transition:width .32s cubic-bezier(.22,1,.36,1)}
.sh-side-toggle{display:flex}
.sh-side-toggle span{display:none}
.sh-side-links a,.sh-side-links button,.sh-side-back,.sh-side-more>summary{justify-content:center;padding-inline:8px}
.sh-side-links a,.sh-side-links button,.sh-side-back,.sh-side-more>summary{width:44px;min-width:44px;max-width:44px;min-height:44px;margin-inline:auto;gap:0}
.sh-side-links a span,.sh-side-links button span,.sh-side-back span,.sh-side-more>summary span,.sh-side-more-chevron{display:none}
.sh-side-links i,.sh-side-back i,.sh-side-more>summary>i:first-child{width:20px;min-width:20px;margin:0!important;text-align:center;font-size:18px;line-height:1}
.sh-side-links form{display:grid;place-items:center}
.sh-side-more{display:grid;place-items:center}
.sh-side-more[open] .sh-side-more-items{display:none}
.sh-app.sh-nav-open .sh-sidebar{width:245px;z-index:22;box-shadow:12px 18px 30px rgba(27,52,94,.14)}
.sh-app.sh-nav-open .sh-side-toggle{justify-content:flex-start;padding-inline:13px}
.sh-app.sh-nav-open .sh-side-toggle span,.sh-app.sh-nav-open .sh-side-links a span,.sh-app.sh-nav-open .sh-side-links button span,.sh-app.sh-nav-open .sh-side-back span,.sh-app.sh-nav-open .sh-side-more>summary span,.sh-app.sh-nav-open .sh-side-more-chevron{display:inline}
.sh-app.sh-nav-open .sh-side-toggle .sh-toggle-open{display:none}
.sh-app.sh-nav-open .sh-side-toggle .sh-toggle-close{display:inline}
.sh-app.sh-nav-open .sh-side-links a,.sh-app.sh-nav-open .sh-side-links button,.sh-app.sh-nav-open .sh-side-back,.sh-app.sh-nav-open .sh-side-more>summary{justify-content:flex-start;width:100%;max-width:none;padding-inline:13px;gap:14px;margin-inline:0}
.sh-app.sh-nav-open .sh-side-more{display:block}
.sh-app.sh-nav-open .sh-side-more[open] .sh-side-more-items{display:grid}
.sh-sidebar-backdrop:not([hidden]){display:block;position:fixed;inset:68px 0 0;z-index:21;width:100%;border:0;background:rgba(20,38,70,.35);cursor:pointer;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .38s ease,visibility .38s}
.sh-app.sh-nav-open .sh-sidebar-backdrop{opacity:1;visibility:visible;pointer-events:auto}
.sh-main{padding-inline:17px}
.sh-hero{padding:23px}
.sh-hero-stats{max-width:590px}
.sh-feature-grid{grid-template-columns:1.3fr 1fr}
.sh-course-feature{grid-template-columns:minmax(0,1fr)}
.sh-course-image{position:relative;min-height:0;aspect-ratio:16/9}
.sh-course-image img{position:absolute;inset:0;object-fit:cover}
.sh-attendance-content{flex-direction:column}
.sh-calendar{width:100%}
.sh-attendance-overview{display:flex;align-items:center;justify-content:space-between;width:100%;gap:7px}
.sh-attendance-ring{margin:0}
.sh-attendance-overview ul{min-width:95px}
}

@media (max-width:820px), (max-width:1024px) and (max-height:500px) and (orientation:landscape) and (hover:none){
.sh-notification-panel{position:fixed;top:70px;inset-inline:12px;width:auto;max-height:calc(100dvh - 82px);z-index:80}
.sh-notification-list{max-height:calc(100dvh - 190px)}
.sh-app{display:block}
.sh-topbar{height:62px;padding:0 15px;gap:10px}
.sh-mobile-nav-trigger{display:flex;flex:none}
.sh-sidebar{position:fixed;top:0;bottom:0;inset-inline-start:0;z-index:71;width:min(285px,85vw)!important;overflow-y:auto;visibility:hidden;pointer-events:none;transform:translateX(-110%);transition:transform .44s cubic-bezier(.2,.8,.2,1),visibility .44s;box-shadow:12px 0 35px rgba(27,52,94,.15)}
[dir="rtl"] .sh-sidebar{transform:translateX(110%)}
.sh-app.sh-nav-open .sh-sidebar{visibility:visible;pointer-events:auto;transform:translateX(0);z-index:71}
.sh-app.sh-nav-open .sh-side-toggle span,.sh-side-links a span,.sh-side-links button span,.sh-side-back span{display:inline}
.sh-side-toggle{justify-content:flex-start;padding-inline:13px}
.sh-side-toggle span{display:inline}
.sh-side-links a,.sh-side-links button,.sh-side-back{justify-content:flex-start;padding-inline:13px}
.sh-sidebar-backdrop:not([hidden]){inset:0;z-index:70}
.student-home-body.sh-nav-scroll-lock{overflow:hidden}
.sh-brand{min-width:0}
.sh-brand small{display:none}
.sh-search{max-width:none;flex:1;min-width:50px}
.sh-header-user span,.sh-header-user i{display:none}
.sh-header-user{border:0;padding:0}
.sh-top-actions{gap:4px;margin:0}
.sh-main{padding:14px}
.sh-feature-grid,.sh-info-grid,.sh-bottom-grid,.sh-last-grid{grid-template-columns:minmax(0,1fr)}
.sh-hero{grid-template-columns:minmax(0,1fr)}
.sh-pass{max-width:none;width:100%;min-height:0;display:grid;grid-template-columns:80px minmax(0,1fr);grid-template-rows:auto auto;gap:3px 12px;justify-content:start;text-align:start;padding:10px 14px}
.sh-pass strong{align-self:end;font-size:13px}
.sh-pass small{grid-column:2;align-self:start;font-size:11px}
.sh-pass-qr{grid-row:1/3;width:80px;height:80px}
.sh-pass-qr svg{width:80px;height:80px}
.sh-identity{gap:12px}
.sh-avatar{width:92px;height:92px}
.sh-hero-stats{gap:7px}
.sh-stat{padding:8px}
.sh-stat>i{width:28px;height:28px}
}

@media(max-width:650px){.sh-topbar{height:auto;min-height:60px;flex-wrap:wrap;padding-block:9px;gap:8px}
.sh-brand{flex:1}
.sh-brand strong{font-size:14px}
.sh-brand-icon{width:30px;height:30px;font-size:19px}
.sh-search{order:3;flex:0 0 100%;height:40px;min-width:0}
.sh-search input{font-size:13px}
.sh-icon-link{width:34px}
.sh-user-menu{display:none}
.sh-main{padding:10px 11px 28px}
.sh-hero{min-height:0;grid-template-columns:1fr;gap:14px;padding:18px 16px 16px;border-radius:17px}
.sh-hero-content{gap:16px}
.sh-identity{align-items:flex-start}
.sh-avatar{width:80px;height:80px;border-width:3px}
.sh-name-line{gap:7px}
.sh-name-line h1{font-size:19px}
.sh-name-line small{font-size:10px}
.sh-identity-copy p{font-size:11px;margin-top:6px}
.sh-state{font-size:10px;padding:4px 6px}
.sh-id{margin-top:5px;font-size:11px}
.sh-hero-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.sh-hero-stats .sh-stat:last-child{grid-column:1/-1}
.sh-stat{gap:5px;min-width:0;padding:7px}
.sh-stat>i{width:24px;height:24px;font-size:14px}
.sh-stat strong{font-size:14px}
.sh-stat small{font-size:11px;white-space:normal;line-height:1.2}
.sh-tabs{margin:7px 0 12px;gap:0;max-width:100%;-webkit-overflow-scrolling:touch}
.sh-tabs a{padding:12px 14px;font-size:14px;min-height:44px}
.sh-feature-grid,.sh-info-grid,.sh-bottom-grid,.sh-last-grid{grid-template-columns:1fr;gap:11px;margin-bottom:11px}
.sh-card{padding:16px;border-radius:15px}
.sh-card-head{margin-bottom:13px}
.sh-card-head h2{font-size:16px}
.sh-course-feature{gap:11px;min-height:0}
.sh-course-info h3{font-size:14px}
.sh-primary{min-height:44px}
.sh-next-shortcuts a{min-height:44px}
.sh-round-link{width:44px;height:44px}
.sh-next-item{min-height:0}
.sh-next-shortcuts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
.sh-next-shortcuts a:last-child{grid-column:1/-1}
.sh-results,.sh-progress-card,.sh-attendance{min-height:0}
.sh-attendance-content{flex-direction:column}
.sh-calendar{width:100%}
.sh-attendance-overview{display:flex;align-items:center;justify-content:space-between;width:100%;gap:8px}
.sh-attendance-ring{margin:0}
.sh-attendance-overview ul{min-width:0}
.sh-journey-track{flex-wrap:wrap}
.sh-journey-track:before{display:none}
.sh-journey-step{flex:0 0 calc(50% - 8px)}
}

@media(max-width:390px){
.sh-identity-copy p{display:none}
.sh-course-info{padding:2px}
}

@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}
.sh-primary{transition:none}
}

/* Shared student pages */
.sh-page{padding-top:26px}
.sh-page-header{display:flex;align-items:center;gap:15px;margin-bottom:22px;padding:23px 25px;border:1px solid #e7e7ff;border-radius:18px;background:linear-gradient(115deg,#f0eeff,#eef7ff 65%,#fff3f2);box-shadow:var(--sh-shadow)}
.sh-page-header>div{flex:1;min-width:0}
.sh-page-header h1{margin:0;font-size:24px;font-weight:750;overflow-wrap:anywhere}
.sh-page-header p{margin:5px 0 0;color:var(--sh-muted);font-size:13px}
.sh-page-icon,.sh-center-card-icon{display:grid;place-items:center;flex:none;width:48px;height:48px;border-radius:13px;background:#e5efff;color:#1765d5;font-size:22px}
.sh-page-header .center-attendance-shortcut{margin-inline-start:auto;flex:none}
.sh-page-empty{display:flex;min-height:290px;align-items:center;justify-content:center;flex-direction:column;gap:12px;text-align:center}
.sh-page-empty h2{font-size:20px;margin:0}
.sh-page-empty p{margin:0 0 5px;color:var(--sh-muted)}
.sh-learning-grid,.sh-centers-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,290px),1fr));gap:17px}
.sh-learning-card{padding:9px;display:flex;flex-direction:column;overflow:hidden}
.sh-learning-card:hover{border-color:#8bb5f7;box-shadow:0 14px 30px rgba(36,70,128,.16)}
.sh-learning-card:focus-visible{outline:3px solid #578cef;outline-offset:3px}
.sh-learning-image{display:block;aspect-ratio:16/9;border-radius:12px;overflow:hidden;background:#f3f6ff}
.sh-learning-image img{width:100%;height:100%;object-fit:cover}
.sh-learning-body{padding:15px 9px 9px;display:flex;flex-direction:column;flex:1;min-width:0}
.sh-learning-teacher{display:flex;align-items:center;gap:8px;color:var(--sh-muted);font-size:11px}
.sh-learning-teacher img{width:24px;height:24px;object-fit:cover;border-radius:50%}
.sh-learning-body h2,.sh-center-card h2{font-size:17px;line-height:1.4;overflow-wrap:anywhere;margin:12px 0 18px}
.sh-learning-expiry{margin:4px 0 17px;color:var(--sh-muted);font-size:12px}
.sh-center-card .sh-primary{margin-top:12px;align-self:stretch}
.sh-page-pagination{margin-top:22px}
.sh-center-card{display:flex;flex-direction:column;align-items:flex-start;min-height:230px}
.sh-center-card-status{margin:10px 0 0;padding:4px 10px;border-radius:99px;background:#f1f5f9;color:#64748b;font-size:11px}
.sh-center-card-status.is-active{background:#eaf8f0;color:#18754a}
.sh-center-card h2{margin:13px 0 8px}
.sh-center-card p{margin:0 0 9px;color:var(--sh-muted);font-size:12px}
.sh-center-card .sh-primary{margin-top:12px}
.sh-page.center-portal{min-width:0}
.sh-page.center-portal .center-portal-column{min-width:0}
.sh-page.center-portal .center-portal__header{margin-top:5px}
.sh-page.center-portal .center-portal__content .card{border-radius:16px}
.sh-page.center-portal .g-title{font-size:22px;font-weight:750}
@media(max-width:767px){.sh-page-header{padding:17px;gap:11px}.sh-page-header h1{font-size:19px}.sh-page-icon{width:40px;height:40px;font-size:19px}.sh-page.center-portal .center-portal__mobile-hero{padding-top:5px}.sh-page.center-portal .center-portal__mobile-hero::before{border-radius:18px;left:0;width:100%;transform:none}.sh-page.center-portal .center-portal-column{padding:0!important}}


/* Student shell theme + shared account-page surfaces */
.sh-theme-toggle{border:0;background:transparent;cursor:pointer;border-radius:10px}
.sh-theme-light-icon{display:none}
[data-theme="dark"] .sh-theme-dark-icon{display:none}
[data-theme="dark"] .sh-theme-light-icon{display:inline-block}
.sh-page-card{background:var(--sh-card);border:1px solid var(--sh-border);border-radius:16px;box-shadow:var(--sh-shadow);padding:22px}
.sh-page-card+.sh-page-card{margin-top:18px}
.sh-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px}
.sh-form-grid .sh-span-2{grid-column:1/-1}
.sh-form-field label{display:block;font-size:12px;font-weight:700;margin-bottom:7px;color:var(--sh-ink)}
.sh-form-field .form-control,.sh-page-card .form-control{background:var(--sh-card);color:var(--sh-ink);border:1px solid var(--sh-border);border-radius:10px;min-height:43px}
.sh-form-field .form-control:focus,.sh-page-card .form-control:focus{background:var(--sh-card);color:var(--sh-ink);border-color:#6b98e6;box-shadow:0 0 0 3px rgba(18,97,220,.12)}
.sh-page-card .text-muted,.sh-page .text-muted{color:var(--sh-muted)!important}
.sh-page-card .card{background:var(--sh-card);color:var(--sh-ink);border-color:var(--sh-border)!important}
.sh-page-card .border,.sh-page-card .border-start{border-color:var(--sh-border)!important}
.sh-page-card .btn-light{background:#f1f5fb;border-color:var(--sh-border);color:#425b7a}
.sh-section-title{font-size:17px;font-weight:750;margin:0 0 18px}
.sh-section-subtitle{color:var(--sh-muted);font-size:12px;margin:-10px 0 18px}
.sh-primary-button{border:0;border-radius:10px;background:#1261dc;color:#fff;padding:10px 17px;font-weight:700;min-height:42px}
.sh-primary-button:hover{background:#0f55c3;color:#fff}
.sh-message-layout{display:grid;grid-template-columns:minmax(220px,290px) minmax(0,1fr);min-height:560px;overflow:hidden;padding:0}
.sh-message-sidebar{border-inline-end:1px solid var(--sh-border);padding:16px}
.sh-message-content{padding:18px;min-width:0}
.sh-quiz-choice{background:var(--sh-card);border-color:var(--sh-border)!important;color:var(--sh-ink)}
.sh-quiz-choice:has(input:checked){border-color:#7aa4eb!important;background:#edf4ff}

[data-theme="dark"]{
    color-scheme:dark;--sh-ink:#e7edf8;--sh-muted:#9caac0;--sh-blue:#6ea1ff;--sh-border:#273650;--sh-card:#172238;--sh-bg:#0e1728;--sh-shadow:0 12px 32px rgba(0,0,0,.22)
}
[data-theme="dark"] .sh-topbar,[data-theme="dark"] .sh-sidebar{background:#121d31;border-color:var(--sh-border)}
[data-theme="dark"] .sh-brand-icon{background:#1c3155;color:#9dc0ff}
[data-theme="dark"] .sh-search{background:#18263e;border-color:#263753}
[data-theme="dark"] .sh-search input{color:var(--sh-ink)}
[data-theme="dark"] .sh-icon-link,[data-theme="dark"] .sh-header-user{color:#afc0dc!important}
[data-theme="dark"] .sh-notification-panel,[data-theme="dark"] .sh-user-menu nav,[data-theme="dark"] .sh-dialog{background:#172238;border-color:var(--sh-border);color:var(--sh-ink)}
[data-theme="dark"] .sh-notification-item{border-color:var(--sh-border);color:var(--sh-ink)!important}
[data-theme="dark"] .sh-notification-item:hover,[data-theme="dark"] .sh-notification-item.is-unread,[data-theme="dark"] .sh-user-menu nav a:hover,[data-theme="dark"] .sh-user-menu nav button:hover{background:#1d2d49}
[data-theme="dark"] .sh-notification-icon,[data-theme="dark"] .sh-side-links a.is-active{background:#1d3760;color:#91b8ff!important}
[data-theme="dark"] .sh-side-links a:hover,[data-theme="dark"] .sh-side-links button:hover,[data-theme="dark"] .sh-side-back:hover{background:#1a2b47;color:#9fc1ff!important}
[data-theme="dark"] .sh-side-links a,[data-theme="dark"] .sh-side-links button,[data-theme="dark"] .sh-side-back{color:#a7b7d0!important}
[data-theme="dark"] .sh-main{background:var(--sh-bg)}
[data-theme="dark"] .sh-page-card .btn-light{background:#22314a;color:#dbe6f6;border-color:#31425e}
[data-theme="dark"] .sh-page-card .btn-outline-primary{color:#8eb5ff;border-color:#4d77b8}
[data-theme="dark"] .sh-page-card .alert-secondary{background:#202c41;color:#c1ccdc;border-color:#314058}
[data-theme="dark"] .sh-page-card .alert-info{background:#17354a;color:#b8e1fa;border-color:#24536f}
[data-theme="dark"] .sh-page-card .alert-warning{background:#493b1c;color:#ffe2a0;border-color:#665224}
[data-theme="dark"] .sh-page-card .notification-preferences-header,[data-theme="dark"] .sh-page-card .notification-contact-card,[data-theme="dark"] .sh-page-card .notification-toggle{background:#172238!important;border-color:var(--sh-border)!important;color:var(--sh-ink)}
[data-theme="dark"] .sh-page-card .notification-language-options{background:#101a2c!important;border-color:var(--sh-border)!important}
[data-theme="dark"] .sh-page-card .notification-language-option{color:#b2bfd2}
[data-theme="dark"] .sh-page-card .notification-language-input:checked+.notification-language-option{background:#223451!important;color:#bcd2ff;border-color:#4f70aa}
[data-theme="dark"] .sh-page-card .notification-language-label{color:var(--sh-ink)}
[data-theme="dark"] .sh-quiz-choice:has(input:checked){background:#1b365d}

@media (max-width:820px), (max-width:1024px) and (max-height:500px) and (orientation:landscape) and (hover:none){
    .sh-form-grid,.sh-message-layout{grid-template-columns:1fr}
    .sh-form-grid .sh-span-2{grid-column:auto}
    .sh-message-sidebar{border-inline-end:0;border-bottom:1px solid var(--sh-border)}
    .sh-theme-toggle{width:38px;height:38px}
}


/* Messages inside the student shell */
.sh-message-sidebar .search-box{position:relative}
.sh-message-sidebar .Esearch_entry{display:flex;position:relative;margin-bottom:14px}
.sh-message-sidebar .Esearch_entry .form-control{padding-inline-end:42px}
.sh-message-sidebar .Esearch_entry button{position:absolute;inset-inline-end:5px;top:5px;width:34px;height:34px;border:0;border-radius:8px;background:transparent;color:var(--sh-muted)}
#msg-search-list{position:absolute;z-index:20;inset-inline:0;top:calc(100% + 4px);list-style:none;margin:0;padding:8px;background:var(--sh-card);border:1px solid var(--sh-border);border-radius:10px;box-shadow:var(--sh-shadow);visibility:hidden;opacity:0}
#msg-search-list.active{visibility:visible;opacity:1}
.msg-sidebar .contacts{height:520px;overflow:auto;display:flex;gap:7px!important;padding-inline-end:4px}
.message-left .contact{display:block;padding:10px;border:1px solid transparent!important;border-radius:11px;color:var(--sh-ink)!important}
.message-left .contact:hover,.message-left .contact.active{background:#edf4ff;border-color:#dbe8fb!important}
.ins-nav,.ins-left{display:flex;align-items:center;gap:10px}
.ins-nav{justify-content:space-between}
.ins-nav .ins-left img,.header-image img{width:40px;height:40px;border-radius:50%;object-fit:cover}
.ins-figure{min-width:0}
.ins-figure h4{font-size:13px;margin:0 0 3px;color:var(--sh-ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ins-figure p,.ins-figure small{font-size:11px;color:var(--sh-muted);margin:0}
.message-right{height:100%}
.message-header{padding-bottom:12px;border-bottom:1px solid var(--sh-border);margin-bottom:10px}
.custome-height{height:430px;overflow-y:auto;background:#f5f8ff;padding:16px;border-radius:12px 12px 0 0}
.message-body,.message-list,.ic-control{list-style:none;padding:0;margin:0}
.message{margin-bottom:12px}
.message-text{max-width:min(78%,620px)}
.message-list li p{display:inline-block;margin:0;padding:9px 12px;background:var(--sh-card);border:1px solid var(--sh-border);border-radius:12px 12px 12px 3px;color:var(--sh-ink);line-height:1.45}
.message-for-me .message-list{text-align:end}
.message-for-me .message-list li p{background:#1261dc;color:#fff;border-color:#1261dc;border-radius:12px 12px 3px 12px}
.fz-13-m-grayish{font-size:10px;color:var(--sh-muted);margin:4px 5px 0}
.message-upload-images img{max-width:180px;max-height:180px;object-fit:cover;border-radius:10px;margin-top:5px}
.message-send-option{display:flex;gap:10px;background:#f5f8ff;padding:12px;border-radius:0 0 12px 12px}
.message-input{flex:1;background:var(--sh-card);border:1px solid var(--sh-border);border-radius:10px;padding:7px 10px}
.message-input form{display:flex;align-items:center}
.message-input form>div{flex:1}
.message-input textarea.form-control{border:0;box-shadow:none;min-height:34px;height:34px;resize:none;padding:6px;background:transparent}
.ic-control{display:flex;align-items:center;gap:8px}
.ic-control label{cursor:pointer}
.send_message_btn{flex:none;width:43px;height:43px;border:0;border-radius:10px;background:#1261dc;display:grid;place-items:center}
.count-files{position:absolute;bottom:70px;inset-inline-end:12px;background:var(--sh-card);border:1px solid var(--sh-border);border-radius:9px;padding:7px 10px;box-shadow:var(--sh-shadow)}
.sh-message-empty{min-height:500px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:var(--sh-muted)}
.sh-message-empty strong{font-size:17px;color:var(--sh-ink)}
.sh-message-empty p{margin:4px 0 0}
.sh-message-empty-icon{display:grid;place-items:center;width:58px;height:58px;border-radius:50%;background:#eaf1ff;color:#2164be;font-size:25px;margin-bottom:12px}
[data-theme="dark"] .message-left .contact:hover,[data-theme="dark"] .message-left .contact.active{background:#1d2f4c;border-color:#30496f!important}
[data-theme="dark"] .custome-height,[data-theme="dark"] .message-send-option{background:#111c30}
[data-theme="dark"] .sh-message-empty-icon{background:#1d3760;color:#91b8ff}
[data-theme="dark"] .sh-page-card .text-dark{color:var(--sh-ink)!important}
[data-theme="dark"] .nl-phone-control{background:#172238!important;border-color:var(--sh-border)!important}
[data-theme="dark"] .nl-phone-control .nl-country{border-color:var(--sh-border)!important}
[data-theme="dark"] .nl-country-summary{color:var(--sh-ink)!important}
[data-theme="dark"] .nl-country-arrow{color:var(--sh-muted)!important}
[data-theme="dark"] .nl-phone-number{color:var(--sh-ink)!important}

@media (max-width:820px), (max-width:1024px) and (max-height:500px) and (orientation:landscape) and (hover:none){
    .sh-message-content{padding:14px}
    .msg-sidebar .contacts{height:auto;max-height:280px}
    .custome-height{height:48dvh;min-height:300px}
    .sh-message-empty{min-height:280px}
}


/* Dark mode polish: home dashboard and shared shell */
[data-theme="dark"] .student-home-body{background:var(--sh-bg);color:var(--sh-ink)}
[data-theme="dark"] .sh-side-toggle,[data-theme="dark"] .sh-mobile-nav-trigger{background:#1b2942!important;border-color:#30405d!important;color:#a9c4ef!important}
[data-theme="dark"] .sh-theme-toggle:hover,[data-theme="dark"] .sh-icon-link:hover{background:#1b2942}
[data-theme="dark"] .sh-search input::placeholder{color:#7f90aa}

[data-theme="dark"] .sh-hero{
    background:
        radial-gradient(ellipse at 75% 5%,rgba(40,91,139,.24) 0,transparent 40%),
        linear-gradient(118deg,#18243c 0%,#16263c 58%,#2b202c 100%);
    border-color:#30405d;
}
[data-theme="dark"] .sh-hero-art span:first-child{background:rgba(112,149,206,.07)}
[data-theme="dark"] .sh-hero-art span:last-child{background:rgba(195,111,132,.08)}
[data-theme="dark"] .sh-name-line h1,[data-theme="dark"] .sh-id{color:#f1f5fc}
[data-theme="dark"] .sh-name-line small,[data-theme="dark"] .sh-identity-copy p{color:#a9b8cf}
[data-theme="dark"] .sh-avatar{border-color:#dbe5f4;background:#dbe5f4}
[data-theme="dark"] .sh-avatar span{background:#eaf1fb;color:#1764d1}
[data-theme="dark"] .sh-state{background:#183d35;color:#72d8aa}
[data-theme="dark"] .sh-stat{background:rgba(23,34,56,.82);border-color:#34435d}
[data-theme="dark"] .sh-stat strong{color:#f0f4fb}
[data-theme="dark"] .sh-stat small{color:#a2b1c8}
[data-theme="dark"] .sh-stat-blue>i{background:#17365c;color:#75adff}
[data-theme="dark"] .sh-stat-purple>i{background:#32274d;color:#bd9cff}
[data-theme="dark"] .sh-stat-cyan>i{background:#173a43;color:#69cfdd}
[data-theme="dark"] .sh-pass{background:#172238;border-color:#34435d}
[data-theme="dark"] .sh-pass strong{color:#b9d1ff}
[data-theme="dark"] .sh-pass small{color:#9cabc1}
[data-theme="dark"] .sh-pass-qr{background:#fff;border-radius:8px;padding:4px}

[data-theme="dark"] .sh-tabs{border-color:#2b3a55}
[data-theme="dark"] .sh-tabs a{color:#8e9db4}
[data-theme="dark"] .sh-tabs a.is-active,[data-theme="dark"] .sh-tabs a:hover{color:#70a6ff;border-color:#5596ff}

[data-theme="dark"] .sh-card{background:#172238;border-color:#2d3c57;color:var(--sh-ink)}
[data-theme="dark"] .sh-card-head h2,[data-theme="dark"] .sh-course-info h3{color:#edf3fc}
[data-theme="dark"] .sh-card-head a{color:#6fa8ff!important}
[data-theme="dark"] .sh-course-feature,[data-theme="dark"] .sh-next-item,[data-theme="dark"] .sh-next-empty,[data-theme="dark"] .sh-course-empty{background:#111c30}
[data-theme="dark"] .sh-course-image{background:#0e1728}
[data-theme="dark"] .sh-pill{background:#1b365d;color:#91b8ff}
[data-theme="dark"] .sh-teacher,[data-theme="dark"] .sh-progress-caption{color:#a0b0c8}
[data-theme="dark"] .sh-progress-caption strong{color:#d9e6fa}
[data-theme="dark"] .sh-progress,[data-theme="dark"] .sh-mini-bar{background:#2b3a53}
[data-theme="dark"] .sh-target-icon{background:#32274d;color:#bd9cff}
[data-theme="dark"] .sh-next-icon{background:#17365c;color:#75adff}
[data-theme="dark"] .sh-next-item small,[data-theme="dark"] .sh-next-item p{color:#91a2bb}
[data-theme="dark"] .sh-next-item h3{color:#edf3fc}
[data-theme="dark"] .sh-round-link{background:#22314a;color:#8bb6ff!important;box-shadow:none}
[data-theme="dark"] .sh-next-shortcuts a{background:#111c30;color:#b0bfd4!important}
[data-theme="dark"] .sh-next-shortcuts i{color:#74a9fa}
[data-theme="dark"] .sh-empty-icon{background:#1b365d;color:#91b8ff}
[data-theme="dark"] .sh-card-empty{color:#9cabc1}

[data-theme="dark"] .sh-result-row,[data-theme="dark"] .sh-payment-row,[data-theme="dark"] .sh-activity-row{border-color:#2b3952}
[data-theme="dark"] .sh-result-icon{background:#183d35;color:#72d8aa}
[data-theme="dark"] .sh-result-row b{color:#6dd6a8}
[data-theme="dark"] .sh-calendar-day{background:#111c30;color:#a2b1c8}
[data-theme="dark"] .sh-attendance-ring strong{background:#172238;color:#eef3fb}
[data-theme="dark"] .sh-journey-track:before{background:#30415d}
[data-theme="dark"] .sh-journey-step>span{border-color:#172238;background:#183d35}
[data-theme="dark"] .sh-journey-step:nth-child(2)>span{background:#17365c}
[data-theme="dark"] .sh-journey-step:nth-child(3)>span{background:#32274d}
[data-theme="dark"] .sh-journey-step:nth-child(4)>span{background:#493522}
[data-theme="dark"] .sh-payment-total{color:#75adff}
[data-theme="dark"] .sh-payment-action>span{color:#afc0d8}
[data-theme="dark"] .sh-payment-pending{color:#f0c875}
[data-theme="dark"] .sh-activity-row time{color:#8799b3}
[data-theme="dark"] .sh-activity-icon{background:#183d35;color:#72d8aa}
[data-theme="dark"] .sh-activity-icon.is-quiz{background:#493b1c;color:#f0c875}
[data-theme="dark"] .sh-activity-icon.is-attendance{background:#32274d;color:#bd9cff}
[data-theme="dark"] .sh-activity-icon.is-assignment{background:#17365c;color:#75adff}
[data-theme="dark"] .sh-inspiration{background:linear-gradient(130deg,#17243a,#1b2b47);border-color:#2d3c57}
[data-theme="dark"] .sh-inspiration h2{color:#edf3fc}
[data-theme="dark"] .sh-inspiration p{color:#a4b4cb}
[data-theme="dark"] .sh-sun{background:#584c2a;box-shadow:0 0 0 20px rgba(111,92,40,.12)}
[data-theme="dark"] .sh-mountain{background:linear-gradient(135deg,#29436a,#1d2e4b)}

[data-theme="dark"] .sh-page-header{
    background:linear-gradient(115deg,#19253e,#172941 65%,#2a202d);
    border-color:#30405d;
}
[data-theme="dark"] .sh-page-header h1{color:#edf3fc}
[data-theme="dark"] .sh-page-icon,[data-theme="dark"] .sh-center-card-icon{background:#1b365d;color:#91b8ff}


/* Keep the scannable student pass itself light and readable in dark mode. */
[data-theme="dark"] .sh-pass-dialog{background:#172238;border-color:#31425e;color:#e7edf8}
[data-theme="dark"] .sh-pass-dialog-body{background:#fff;color:#17233a}
[data-theme="dark"] .sh-pass-dialog-body h2{color:#17233a!important}
[data-theme="dark"] .sh-pass-dialog-label{background:#edf4ff;color:#245ba9}
[data-theme="dark"] .sh-pass-dialog-id{color:#5b7194}
[data-theme="dark"] .sh-pass-dialog-body p{color:#627793}
[data-theme="dark"] .sh-pass-dialog .sh-secondary{
    background:#f1f5fb!important;
    color:#425b7a!important;
    border:0!important;
}
[data-theme="dark"] .sh-pass-dialog .sh-secondary i,
[data-theme="dark"] .sh-pass-dialog .sh-secondary span{color:#425b7a!important}
[data-theme="dark"] .sh-pass-dialog-foot{background:#172238}


/* User menu contrast in dark mode */
[data-theme="dark"] .sh-user-menu nav a,
[data-theme="dark"] .sh-user-menu nav button{
    color:#c4d2e7!important;
}
[data-theme="dark"] .sh-user-menu nav a i,
[data-theme="dark"] .sh-user-menu nav button i{
    color:#91b8ff;
}
[data-theme="dark"] .sh-user-menu nav a:hover,
[data-theme="dark"] .sh-user-menu nav a:focus-visible,
[data-theme="dark"] .sh-user-menu nav button:hover,
[data-theme="dark"] .sh-user-menu nav button:focus-visible{
    background:#1d2d49;
    color:#eef4ff!important;
}
[data-theme="dark"] .sh-user-menu nav form{
    border-color:#2b3a55;
}
[data-theme="dark"] .sh-user-menu nav form button,
[data-theme="dark"] .sh-user-menu nav form button i{
    color:#f07d87!important;
}
[data-theme="dark"] .sh-user-menu nav form button:hover,
[data-theme="dark"] .sh-user-menu nav form button:focus-visible{
    background:#382331;
    color:#ff9ca5!important;
}


/* Keep dashboard progress rings native to the dark surface. */
[data-theme="dark"] .sh-ring,
[data-theme="dark"] .sh-attendance-ring{
    background:conic-gradient(#37bf7c var(--value),#2b3952 0);
}
[data-theme="dark"] .sh-ring>div,
[data-theme="dark"] .sh-attendance-ring strong{
    background:#172238;
    color:#eef3fb;
}
[data-theme="dark"] .sh-ring small{
    color:#a4b4cb;
}
[data-theme="dark"] .sh-mini-bar{
    background:#2b3952;
}


/* Student language switcher */
.sh-language-menu{position:relative}
.sh-language-menu>summary{list-style:none;cursor:pointer}
.sh-language-menu>summary::-webkit-details-marker{display:none}
.sh-language-panel{position:absolute;top:calc(100% + 12px);inset-inline-end:0;z-index:80;min-width:170px;padding:10px;background:#fff;border:1px solid #e3e9f3;border-radius:14px;box-shadow:0 16px 40px rgba(22,41,75,.14);display:grid;gap:4px;text-align:center}
.sh-language-panel strong{padding:7px 10px;color:#17233d;font-size:.84rem}
.sh-language-panel a{display:flex;align-items:center;justify-content:center;padding:9px 10px;border-radius:9px;color:#60708a;text-decoration:none;font-weight:600;text-align:center}
.sh-language-panel a:hover,.sh-language-panel a.is-active{background:#edf4ff;color:#1769e0}
[data-theme="dark"] .sh-language-panel{background:#172238;border-color:#2b3a56;box-shadow:0 16px 40px rgba(0,0,0,.3)}
[data-theme="dark"] .sh-language-panel strong{color:#eef3fb}
[data-theme="dark"] .sh-language-panel a{color:#a9b7cc}
[data-theme="dark"] .sh-language-panel a:hover,[data-theme="dark"] .sh-language-panel a.is-active{background:#21365b;color:#8ebcff}

/* Shared attendance month menu for calendar headings. Uses native details for touch and keyboard. */
.sh-card-head .sh-attendance-month-picker{position:relative;display:block;width:max-content;max-width:100%;min-width:0}
.sh-card-head .sh-attendance-month-picker__trigger{display:inline-flex;max-width:100%;min-height:44px;align-items:center;padding:5px 8px;margin-inline-start:0;border:1px solid transparent;border-radius:9px;background:transparent;color:var(--sh-ink);text-align:start;cursor:pointer;list-style:none}
.sh-attendance-month-picker__trigger::-webkit-details-marker{display:none}
.sh-attendance-month-picker__trigger::marker{content:""}
.sh-card-head .sh-attendance-month-picker__trigger h2{display:inline-flex;align-items:center;gap:8px;margin:0;white-space:nowrap}
.sh-attendance-month-picker__trigger:hover{background:#edf4ff;color:#1759bc}
.sh-attendance-month-picker__trigger:focus-visible{outline:2px solid #337fe8;outline-offset:2px}
.sh-attendance-month-picker__menu{position:absolute;z-index:1050;inset-block-start:calc(100% + 4px);inset-inline-start:0;display:none;width:100%;min-width:min(190px,calc(100vw - 32px));max-width:min(260px,calc(100vw - 32px));max-height:min(340px,60vh);overflow-y:auto;margin:0;padding:6px;list-style:none;border:1px solid var(--sh-border);border-radius:12px;background:var(--sh-card);box-shadow:var(--sh-shadow)}
.sh-attendance-month-picker[open] > .sh-attendance-month-picker__menu{display:block}
.sh-card-head .sh-attendance-month-picker .dropdown-item{padding:10px 12px;border-radius:8px;color:var(--sh-ink)!important;font-size:14px;font-weight:600;white-space:normal}
.sh-card-head .sh-attendance-month-picker .dropdown-item:hover,.sh-card-head .sh-attendance-month-picker .dropdown-item:focus{background:#edf4ff;color:#1759bc!important}
.sh-card-head .sh-attendance-month-picker .dropdown-item.active{background:#1766d6;color:#fff!important}
[data-theme="dark"] .sh-attendance-month-picker__trigger{color:var(--sh-ink)}
[data-theme="dark"] .sh-attendance-month-picker__trigger:hover{background:#1d3152;color:#aecbff}
[data-theme="dark"] .sh-attendance-month-picker__menu{background:#172238;border-color:#31425e;box-shadow:0 16px 36px rgba(0,0,0,.35)}
[data-theme="dark"] .sh-card-head .sh-attendance-month-picker .dropdown-item{color:#e7edf8!important}
[data-theme="dark"] .sh-card-head .sh-attendance-month-picker .dropdown-item:hover,[data-theme="dark"] .sh-card-head .sh-attendance-month-picker .dropdown-item:focus{background:#263b5d;color:#e7edf8!important}
[data-theme="dark"] .sh-card-head .sh-attendance-month-picker .dropdown-item.active{background:#326bd5;color:#fff!important}

/* Reusable student center switcher: scoped so other Bootstrap menus keep their own style. */
.sh-center-switcher .dropdown-menu{
    min-width:max(100%,220px);
    max-width:min(340px,calc(100vw - 24px));
    max-height:min(340px,60vh);
    overflow-y:auto;
    padding:6px;
    background:var(--sh-card);
    color:var(--sh-ink);
    border:1px solid var(--sh-border);
    border-radius:12px;
    box-shadow:0 14px 32px rgba(24,52,105,.16)
}
.sh-center-switcher .dropdown-item{
    padding:9px 11px;
    color:var(--sh-ink);
    border-radius:8px;
    white-space:normal;
    overflow-wrap:anywhere
}
.sh-center-switcher .dropdown-item:hover,.sh-center-switcher .dropdown-item:focus{
    color:#174eab;
    background:#eaf2ff
}
.sh-center-switcher .dropdown-item.active,.sh-center-switcher .dropdown-item:active{
    color:#fff;
    background:#1766d6
}
[data-theme="dark"] .sh-center-switcher .dropdown-menu{
    background:#172238;
    color:#e7edf8;
    border-color:#31425e;
    box-shadow:0 16px 36px rgba(0,0,0,.35)
}
[data-theme="dark"] .sh-center-switcher .dropdown-item{color:#e7edf8}
[data-theme="dark"] .sh-center-switcher .dropdown-item:hover,
[data-theme="dark"] .sh-center-switcher .dropdown-item:focus{
    color:#e7edf8;
    background:#263b5d
}
[data-theme="dark"] .sh-center-switcher .dropdown-item.active,
[data-theme="dark"] .sh-center-switcher .dropdown-item:active{
    color:#fff;
    background:#2f69d4
}

/* Course artwork uses the full content width on phone and compact tablet layouts. */
@media(max-width:1100px){.sh-learning-grid{grid-template-columns:minmax(0,1fr)}.sh-learning-card{padding:0}.sh-learning-image{border-radius:15px 15px 0 0}.sh-learning-body{padding:13px 16px 15px}.sh-learning-body h2{margin:10px 0 12px}.sh-learning-expiry{margin-bottom:0}}


/* Compact student search and enrolled-course discovery */
.sh-search-menu{position:relative;display:grid;place-items:center}
.sh-search-trigger,.sh-theme-toggle{border:0;background:transparent;cursor:pointer;border-radius:10px}
.sh-search-trigger:hover,.sh-search-trigger[aria-expanded="true"],.sh-theme-toggle:hover{background:#edf3ff}
.sh-search-panel{position:absolute;top:calc(100% + 11px);inset-inline-end:0;z-index:25;width:min(340px,calc(100vw - 24px));max-width:none;box-shadow:0 14px 35px rgba(27,52,94,.16)}
.sh-search-panel[hidden]{display:none!important}
.sh-search-panel:focus-within{border-color:#5897ea;box-shadow:0 14px 35px rgba(27,52,94,.16),0 0 0 3px rgba(39,111,218,.14)}
.sh-search-panel button{border:0;background:transparent;color:#48638d;display:grid;place-items:center;cursor:pointer;font-size:19px;padding:3px}
.sh-learning-filters{display:flex;align-items:center;gap:9px;overflow-x:auto;scrollbar-width:none;white-space:nowrap;padding:0 0 15px;margin:0 0 3px;overscroll-behavior-inline:contain}
.sh-learning-filters::-webkit-scrollbar{display:none}
.sh-learning-filters a{flex:none;padding:9px 15px;border-radius:11px;background:#fff;border:1px solid var(--sh-border);color:var(--sh-ink);font-size:13px;font-weight:600;text-decoration:none;max-width:220px;overflow:hidden;text-overflow:ellipsis}
.sh-learning-filters a:hover{border-color:#80a8e9;color:#2263bc}
.sh-learning-filters a.is-active{background:#1d67d2;color:#fff;border-color:#1d67d2}
.sh-learning-image{position:relative}
.sh-learning-image-progress{position:absolute;bottom:0;inset-inline:0;height:3px;background:rgba(255,255,255,.45);overflow:hidden}
.sh-learning-image-progress>span{display:block;height:100%;background:#4c9dff;border-radius:0 3px 3px 0}
[data-learning-region][aria-busy="true"]{opacity:.67;transition:opacity .16s ease}
[data-theme="dark"] .sh-search-trigger:hover,[data-theme="dark"] .sh-search-trigger[aria-expanded="true"]{background:#1b2942}
[data-theme="dark"] .sh-search-panel{background:#18263e;border-color:#344762}
[data-theme="dark"] .sh-search-panel button{color:#afc0dc}
[data-theme="dark"] .sh-learning-filters a{background:#1b2942;color:#e4eaf6;border-color:#344762}
[data-theme="dark"] .sh-learning-filters a:hover{border-color:#729de2}
[data-theme="dark"] .sh-learning-filters a.is-active{background:#3178df;border-color:#3178df;color:#fff}
@media (max-width:820px), (max-width:1024px) and (max-height:500px) and (orientation:landscape) and (hover:none){.sh-search-menu{position:static}.sh-search-panel{position:fixed;top:67px;inset-inline:12px;width:auto;max-width:none;z-index:35}}
@media(max-width:650px){.sh-topbar{flex-wrap:nowrap}.sh-search-panel{order:initial;flex:none;height:42px;min-width:0}.sh-search-panel input{font-size:14px}}

/* An open search gets its own row on phones instead of covering category chips. */
@media (max-width:820px), (max-width:1024px) and (max-height:500px) and (orientation:landscape) and (hover:none){
  .sh-topbar.sh-search-open{height:122px;align-items:flex-start;padding-top:10px;transition:height .18s ease}
  .sh-search-panel{position:absolute;top:70px;inset-inline:12px;width:auto;max-width:none}
}
@media(max-width:650px){.sh-topbar.sh-search-open{min-height:122px}}
@media(prefers-reduced-motion:reduce){.sh-topbar.sh-search-open{transition:none}}

/* Keep input text at 16px even when iPhone Safari requests a desktop viewport. */
.sh-search-panel input{font-size:16px;line-height:1.3}
.sh-learning-match{display:flex;align-items:center;gap:7px;min-width:0;color:#2563bb;font-size:12px;line-height:1.4;margin:-9px 0 12px}
.sh-learning-match>i{flex:none}
.sh-learning-match>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
[data-theme="dark"] .sh-learning-match{color:#9dc0ff}

/* Search results keep the course shelf compact while making ownership explicit. */
.sh-learning-results{margin:0 0 28px}
.sh-learning-results>h1,.sh-learning-results>h2{font-size:1.1rem;font-weight:700;margin:0 0 14px;color:var(--sh-text,#263448)}
.sh-learning-results>p{margin:-8px 0 16px;color:var(--sh-muted,#8491a5)}
.sh-learning-results .sh-learning-grid{margin-bottom:14px}
.sh-video-result .sh-learning-body{display:grid;grid-template-columns:28px minmax(0,1fr);align-items:start;gap:8px;padding:11px 14px}
.sh-learning-avatar img{display:block;width:28px;height:28px;object-fit:cover;border-radius:50%}
.sh-learning-copy{display:flex;flex-direction:column;gap:5px;min-width:0;text-align:start}
.sh-video-result h2,.sh-video-result h3{font-size:1rem;line-height:1.4;margin:8px 0}
.sh-video-result .sh-learning-image{aspect-ratio:16/9}
.sh-video-result .sh-learning-teacher{font-size:.8rem}
/* Search cards keep the lesson, its course, and the whole-course price distinct. */
.sh-video-result h2,.sh-video-result h3{margin:0;overflow-wrap:anywhere}
.sh-video-result .sh-learning-meta{display:flex;align-items:center;flex-wrap:wrap;gap:3px 0;min-width:0;color:var(--sh-muted);font-size:12px;line-height:1.5}
.sh-video-result .sh-learning-meta-author,.sh-video-result .sh-learning-meta-item{min-width:0;overflow-wrap:anywhere}
.sh-video-result .sh-learning-meta-item::before{content:"·";margin-inline:4px;color:var(--sh-muted)}
.sh-learning-price{display:flex;align-items:baseline;justify-content:flex-start;flex-wrap:wrap;gap:4px 6px;width:100%;min-width:0;margin-top:0;text-align:start;font-size:13px;font-weight:700;color:var(--sh-ink);line-height:1.5}
.sh-learning-price bdi{unicode-bidi:isolate;white-space:nowrap;color:#1a65c5}
[data-theme="dark"] .sh-learning-price bdi{color:#9dc0ff}
.sh-learning-discovery{padding-top:22px;border-top:1px solid var(--sh-border,#dde5f1)}

/* A rotated phone is wider than the portrait breakpoint but still needs the phone shell. */
@media (max-width:1024px) and (max-height:500px) and (orientation:landscape) and (hover:none){
    .sh-topbar{height:58px}
    .sh-topbar.sh-search-open{height:108px}
    .sh-search-panel{top:60px}
    .sh-main{padding:12px 16px 24px}
    .sh-page{padding-top:12px}
    .sh-page-header{padding:12px 16px;gap:12px;margin-bottom:12px;border-radius:14px}
    .sh-page-header>div{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 16px}
    .sh-page-header h1{font-size:20px}
    .sh-page-header p{margin:0}
    .sh-page-icon{width:40px;height:40px;font-size:19px}
    .sh-page-card{padding:16px}
}

.sh-video-result .sh-learning-context,.sh-video-result .sh-learning-access,.sh-video-result .sh-learning-validity{color:var(--sh-muted);font-size:12px;line-height:1.5;overflow-wrap:anywhere}
.sh-video-result .sh-learning-context-section::before{content:"·";margin-inline:4px;color:var(--sh-muted)}
.sh-video-result .sh-learning-access time{unicode-bidi:isolate;white-space:nowrap}

/* My Courses feed: compact category row and edge-to-edge video artwork on phones. */
.sh-my-courses .sh-learning-filters{padding-bottom:7px;margin-bottom:2px}
.sh-my-courses .sh-learning-grid{gap:10px}
.sh-my-courses .sh-learning-results{margin-bottom:14px}
.sh-my-courses .sh-learning-results>h1,.sh-my-courses .sh-learning-results>h2{margin-bottom:9px}
.sh-my-courses .sh-learning-results .sh-learning-grid{margin-bottom:0}
@media(max-width:820px){
    .sh-my-courses.sh-main{padding-inline:0}
    .sh-my-courses.sh-page{padding-top:4px}
    .sh-my-courses .sh-learning-filters{padding:4px 12px 7px;margin:0}
    .sh-my-courses .sh-learning-grid{gap:0}
    .sh-my-courses .sh-learning-card{border:0;border-radius:0;box-shadow:none;padding:0;border-bottom:1px solid var(--sh-border)}
    .sh-my-courses .sh-learning-card:hover{box-shadow:none}
    .sh-my-courses .sh-learning-image{border-radius:0}
    .sh-my-courses .sh-learning-results>h1,.sh-my-courses .sh-learning-results>h2,.sh-my-courses .sh-learning-results>p{padding-inline:12px}
    .sh-my-courses .sh-learning-discovery{padding-top:10px}
    .sh-my-courses .sh-page-empty{margin-inline:12px}
    .sh-my-courses .sh-page-pagination{padding-inline:12px}
}

.sh-my-courses .sh-learning-price .sh-learning-validity{color:var(--sh-muted);font-size:12px;font-weight:400;white-space:nowrap}
.sh-my-courses .sh-learning-price{gap:4px 10px}

/* Continue Learning: let the cover reach the card edges on phones. */
.sh-continue .sh-course-image{border-radius:0}
@media(max-width:650px){
    .sh-continue .sh-course-feature{margin-inline:-16px;padding:0;border-radius:0}
    .sh-continue .sh-course-info{padding:10px 16px 16px}
}

/* Student header and account preferences */
.sh-cart-link{flex:none;border-radius:10px}
.sh-cart-link:hover,.sh-cart-link[aria-current="page"]{background:#eef4ff;color:#135dd2!important}
.sh-cart-count{position:absolute;top:0;inset-inline-end:0;display:grid;place-items:center;min-width:17px;height:17px;border-radius:20px;background:#1261dc;color:#fff;font-size:10px;line-height:1;padding:2px 4px;font-weight:700;direction:ltr}
.sh-settings-nav{display:flex;gap:4px;overflow-x:auto;margin-bottom:18px;border-bottom:1px solid var(--sh-border);scrollbar-width:thin}
.sh-settings-nav a{flex:none;min-height:44px;padding:11px 16px;color:var(--sh-muted);font-weight:700;border-bottom:2px solid transparent}
.sh-settings-nav a:hover,.sh-settings-nav a:focus-visible{color:var(--sh-blue);border-bottom-color:var(--sh-blue)}
.sh-settings-section{scroll-margin-top:20px}
.sh-settings-section:target{border-color:#8fb4f5}
.sh-settings-options{display:flex;flex-wrap:wrap;gap:10px}
.sh-settings-choice{display:inline-flex;align-items:center;gap:10px;min-height:46px;padding:10px 14px;border:1px solid var(--sh-border);border-radius:11px;color:var(--sh-ink)!important;background:var(--sh-card);cursor:pointer;font-weight:650;white-space:nowrap}
.sh-settings-choice input{accent-color:var(--sh-blue);margin:0}
.sh-settings-choice i{flex:none;color:var(--sh-blue)}
.sh-settings-choice.is-selected,.sh-settings-choice:has(input:checked){border-color:#5991ec;background:#edf4ff}
[data-theme="dark"] .sh-cart-link:hover,[data-theme="dark"] .sh-cart-link[aria-current="page"]{background:#1b2942;color:#8ebcff!important}
[data-theme="dark"] .sh-settings-choice.is-selected,[data-theme="dark"] .sh-settings-choice:has(input:checked){background:#223451;border-color:#4f70aa}
@media(max-width:390px){
    .sh-topbar{padding-inline:10px;gap:5px}
    .sh-top-actions{gap:1px;flex:none}
    .sh-icon-link{width:31px}
    .sh-brand{min-width:0}
    .sh-brand strong{font-size:12px}
    .sh-brand-icon{width:28px;height:28px}
    .sh-settings-options{display:grid;grid-template-columns:1fr}
}


/* Unified NourLearn shell: public authentication actions use the same header/sidebar language. */
.sh-guest-actions{display:flex;align-items:center;gap:8px}
.sh-auth-link{min-height:38px;padding:0 12px;border:1px solid var(--sh-border);border-radius:10px;color:#405b82!important;font-size:12px;font-weight:700;background:var(--sh-card);transition:background .15s,border-color .15s,color .15s}
.sh-auth-link:hover{background:#eef4ff;border-color:#b9cff1;color:#135dd2!important}
.sh-auth-register{background:#1261dc;color:#fff!important;border-color:#1261dc}
.sh-auth-register:hover{background:#0f55c3;color:#fff!important;border-color:#0f55c3}
.sh-side-auth{display:grid;gap:5px;margin-top:8px;padding-top:8px;border-top:1px solid var(--sh-border)}
.sh-side-auth .sh-side-auth-register{background:#e6efff;color:#135ccf!important;font-weight:720}
[data-theme="dark"] .sh-auth-link{background:#172238;border-color:#34445f;color:#d9e4f5!important}
[data-theme="dark"] .sh-auth-link:hover{background:#223451;border-color:#4f70aa;color:#9fc2ff!important}
[data-theme="dark"] .sh-auth-register{background:#356fd1;border-color:#356fd1;color:#fff!important}
[data-theme="dark"] .sh-side-auth{border-color:#34445f}
[data-theme="dark"] .sh-side-auth .sh-side-auth-register{background:#223451;color:#9fc2ff!important}
@media(max-width:650px){
    .sh-guest-actions{gap:3px}
    .sh-auth-link{width:36px;height:36px;min-height:36px;padding:0;border-radius:10px}
    .sh-auth-link span{display:none}
}

/* Keep the menu comfortable for motion-sensitive visitors. */
@media(prefers-reduced-motion:reduce){.sh-sidebar,.sh-sidebar-backdrop:not([hidden]){transition:none!important}}

/* Student center links share one navigation row with an independent submenu toggle. */
.sh-side-centers-row{display:flex;align-items:center;min-width:0}
.sh-side-centers-row>a{flex:1;min-width:0}
.sh-side-links .sh-side-centers-toggle{flex:none;width:32px;min-width:32px;max-width:32px;min-height:38px;padding:0;justify-content:center;margin-inline-start:2px;border-radius:9px}
.sh-side-centers-toggle i{transition:transform .28s ease}
.sh-side-centers.is-open .sh-side-centers-toggle i{transform:rotate(180deg)}
.sh-side-centers-items{display:grid;grid-template-rows:0fr;opacity:0;visibility:hidden;pointer-events:none;transition:grid-template-rows .3s ease,opacity .25s ease,visibility .3s}
.sh-side-centers.is-open .sh-side-centers-items{grid-template-rows:1fr;opacity:1;visibility:visible;pointer-events:auto}
.sh-side-centers-inner{display:grid;gap:3px;min-height:0;overflow:hidden;padding-inline-start:15px;border-inline-start:1px solid var(--sh-border)}
.sh-side-centers-inner>a{min-height:40px;font-size:13px}
[data-theme="dark"] .sh-side-centers-toggle{color:#a7b7d0}
@media(max-width:1150px){
    .sh-side-centers-row>a{flex:none}
    .sh-side-links .sh-side-centers-toggle,.sh-side-centers-items{display:none}
    .sh-app.sh-nav-open .sh-side-centers-row>a{flex:1}
    .sh-app.sh-nav-open .sh-side-links .sh-side-centers-toggle{display:flex;width:32px;min-width:32px;max-width:32px;justify-content:center;padding:0;gap:0;margin-inline-start:2px}
    .sh-app.sh-nav-open .sh-side-centers-items{display:grid}
}
@media(prefers-reduced-motion:reduce){
    .sh-side-centers-toggle i,.sh-side-centers-items{transition:none!important}
}

/* One readable notification layout for the bell panel and full page. */
.sh-notice{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px 16px;padding:15px;border-bottom:1px solid var(--sh-border);min-width:0}
.sh-notice:last-child{border-bottom:0}
.sh-notice.is-read{opacity:.8}
.sh-notice.is-unread{background:rgba(42,105,220,.04)}
.sh-notice-main{display:flex;align-items:flex-start;gap:12px;min-width:0;color:var(--sh-ink)}
.sh-notice-main:hover{color:var(--sh-ink)}
.sh-notice-copy{display:grid;gap:5px;min-width:0;flex:1;line-height:1.5}
.sh-notice-heading{display:flex;justify-content:space-between;align-items:baseline;flex-wrap:wrap;gap:4px 12px}
.sh-notice-heading strong{font-size:14px;color:var(--sh-ink)}
.sh-notice-heading small{font-size:11px;color:var(--sh-muted,#74839d);white-space:nowrap}
.sh-notice-instructor{font-size:14px;font-weight:700;color:var(--sh-ink);overflow-wrap:anywhere}
.sh-notice-group{display:flex;align-items:center;gap:9px;min-width:0}
.sh-notice-group-copy{display:grid;gap:2px;min-width:0}
.sh-notice-group-copy>strong{font-size:13px;color:var(--sh-ink);overflow-wrap:anywhere}
.sh-notice-grade{display:inline-flex;align-items:center;gap:5px;font-size:12px;color:var(--sh-muted,#667892);overflow-wrap:anywhere}
.sh-notice-period,.sh-notice-preview{font-size:13px;color:var(--sh-muted,#667892);overflow-wrap:break-word}
.sh-notice-amount{font-size:13px;color:var(--sh-ink)}
.sh-notice-amount strong{color:#246acb;unicode-bidi:isolate}
.sh-notice-separator{padding-inline:4px}
.sh-notice-pay{min-height:38px;padding:8px 12px;border-radius:10px;background:#eaf2ff;color:#145dbd;text-decoration:none;font-size:12px;font-weight:700;white-space:nowrap}
.sh-notice-pay:hover,.sh-notice-pay:focus-visible{background:#2168d1;color:#fff}
.sh-notice-compact{grid-template-columns:minmax(0,1fr);gap:8px;padding:12px 15px}
.sh-notice-compact .sh-notification-icon{width:34px;height:34px}
.sh-notice-compact .sh-notice-heading strong{font-size:12px}
.sh-notice-compact .sh-notice-instructor,.sh-notice-compact .sh-notice-group-copy>strong,.sh-notice-compact .sh-notice-grade,.sh-notice-compact .sh-notice-period,.sh-notice-compact .sh-notice-preview,.sh-notice-compact .sh-notice-amount{font-size:11px}
.sh-notice-compact .sh-notice-pay{justify-self:start;min-height:34px;margin-inline-start:46px}
[data-theme="dark"] .sh-notice.is-unread{background:#1d2d49}
[data-theme="dark"] .sh-notice-pay{background:#263f67;color:#afccff}
[data-theme="dark"] .sh-notice-pay:hover,[data-theme="dark"] .sh-notice-pay:focus-visible{background:#3178df;color:#fff}
[data-theme="dark"] .sh-notice-amount strong{color:#9fc4ff}
@media(max-width:575.98px){.sh-notice{grid-template-columns:minmax(0,1fr);gap:9px}.sh-notice-pay{justify-self:start;margin-inline-start:46px}.sh-notice-heading small{font-size:10px}}

.sh-pass-print-sheet{display:none}
@media print{
    body.sh-pass-printing{margin:0!important;padding:0!important;overflow:visible!important;background:#fff!important;color:#17233a!important}
    body.sh-pass-printing > :not(.sh-pass-print-sheet){display:none!important}
    body.sh-pass-printing dialog::backdrop{display:none!important}
    body.sh-pass-printing > .sh-pass-print-sheet{display:block!important;width:80mm;max-width:100%;margin:0 auto;padding:5mm;box-sizing:border-box;font-family:system-ui,sans-serif;break-inside:avoid}
    .sh-pass-print-sheet .sh-pass-dialog-body{margin:0;padding:0;border:0;border-radius:0;box-shadow:none;background:#fff!important;color:#17233a!important;text-align:center}
    .sh-pass-print-sheet h2{font-size:18pt;margin:5mm 0 2mm;color:#17233a!important;overflow-wrap:anywhere}
    .sh-pass-print-sheet .sh-pass-dialog-id{color:#17233a!important}
    .sh-pass-print-sheet .sh-pass-dialog-qr{width:60mm;max-width:100%;margin:5mm auto;background:#fff!important}
    .sh-pass-print-sheet .sh-pass-dialog-qr svg{display:block;width:100%;height:auto}
    .sh-pass-print-sheet .sh-pass-dialog-label,.sh-pass-print-sheet p{color:#17233a!important}
}
