/* Reference-led student home; scoped so staff and chat layouts keep their contracts. */
button,a,input,select,textarea{touch-action:manipulation}button:active:not(:disabled),a:active{filter:brightness(.94)}button:focus-visible,a:focus-visible{outline:3px solid #1596a4;outline-offset:3px}
.student-shell{max-width:760px;margin:auto;padding:18px 20px 108px;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:#f3f9f9;color:#172b3c}.student-shell .brandbar{display:flex;align-items:center;gap:14px;padding:4px 10px 10px;margin:0}.student-shell .brandbar .logo{width:185px;height:auto;max-width:52%;object-fit:contain}.student-shell .brandbar .account-shortcut{width:45px;height:45px;flex:0 0 45px;border:0;box-shadow:none}.home-alerts{margin-left:auto;background:transparent;border:0;position:relative;color:#42616f;padding:8px;min-width:44px;min-height:44px}.home-alerts svg{width:25px;height:25px}.home-alerts .unread-badge{position:absolute;top:0;right:0;background:#e54b48;color:white}.student-shell .bottom{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));max-width:720px;left:50%;transform:translateX(-50%);width:calc(100% - 28px);padding:6px 7px calc(6px + env(safe-area-inset-bottom));border-radius:19px;gap:3px;background:#ffffffed;box-shadow:0 3px 22px #1f69700a;bottom:10px;border:1px solid #e7f0f0}.student-shell .bottom .navbtn{min-width:0;min-height:56px;padding:5px 2px;font-size:12px;border-radius:14px;gap:4px}.student-shell .bottom svg{width:25px;height:25px}.student-shell .bottom .navbtn.active{background:#e5f3f4;color:#086574}.student-more>button{display:flex;align-items:center;gap:14px;width:100%;background:white;border:1px solid #e7eeee;border-radius:15px;margin:10px 0;padding:14px;text-align:left;color:#244652}.student-more>button>span:nth-child(2){flex:1}.student-more small{display:block;margin-top:5px;color:#647b86}
.student-home{display:grid;gap:12px}.home-greeting{padding:0 10px 3px}.home-greeting h1{font-family:Georgia,"Times New Roman",serif;font-size:29px;line-height:1.18;font-weight:400;letter-spacing:-.7px;margin:0 0 6px}.home-greeting p{font-size:14px;line-height:1.45;color:#3d5969;margin:0}.home-greeting p>span{margin:0 6px}.home-next{background:#00616b;background:linear-gradient(110deg,#05606b,#005a63);color:white;padding:18px 22px;border-radius:18px;box-shadow:0 5px 14px #0a677b10}.home-next-top{display:flex;justify-content:space-between;align-items:center;font-size:12px;letter-spacing:.6px;margin-bottom:9px}.home-starts{border:1px solid #ffffff2b;border-radius:20px;padding:5px 12px;text-transform:none;letter-spacing:0;color:#d7f0f2}.home-next-body{display:grid;grid-template-columns:88px 1fr auto;align-items:center;gap:22px}.home-calendar{border-radius:12px;background:white;color:#172b3c;text-align:center;display:grid;gap:2px;padding:9px 6px}.home-calendar>span{font-size:14px;color:#126775;font-weight:650}.home-calendar>b{font-size:36px;line-height:1.05}.home-calendar>small{font-size:13px}.home-lesson{min-width:0}.home-lesson h2{font-size:27px;line-height:1.1;margin:0 0 10px;font-weight:650;color:white}.home-lesson>p{display:flex;gap:8px;align-items:center;font-size:14px;margin:0 0 10px;flex-wrap:wrap;color:#deeff0}.home-lesson>p svg{width:19px;height:19px}.home-divider{opacity:.5;margin:0 3px}.home-teacher{display:flex;align-items:center;gap:8px;font-size:13px;color:#dbeced}.home-teacher .chat-avatar{width:28px;height:28px;min-width:28px;font-size:10px;box-shadow:none;border-radius:50%}.home-view-lesson{align-self:end;background:#e7f6f7;border:0;color:#126373;white-space:nowrap;border-radius:11px;padding:12px 15px;font-size:14px;font-weight:650;min-height:44px}.home-view-lesson span{margin-left:8px}.home-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));background:#fff;border-radius:17px;padding:12px 4px}.home-stats>button{display:flex;align-items:center;gap:10px;background:none;border:0;padding:3px 14px;text-align:left;min-width:0;color:inherit}.home-stats>button+button{border-left:1px solid #e0e6e8}.home-stats b{display:block;font-size:22px;line-height:1.2}.home-stats small{display:block;font-size:11px;margin-top:2px;color:#607582;white-space:nowrap}.home-icon{background:#e6f4f5;color:#116573;width:40px;height:40px;flex:0 0 40px;display:grid;place-items:center;border-radius:10px}.home-icon svg{width:23px;height:23px}.home-arrow{color:#176c79;font-size:23px;margin-left:auto;line-height:1}.home-panel{background:#ffffffed;border-radius:17px;padding:13px 16px;border:1px solid #edf4f4}.home-panel>header{display:flex;align-items:center;justify-content:space-between;gap:5px;margin-bottom:9px}.home-panel h2{font-size:16px;font-weight:650;display:flex;align-items:center;gap:10px;line-height:1.25;margin:0;color:#315565}.home-panel h2 svg{width:22px;height:22px;flex:0 0 22px;color:#076c78}.home-panel>header>button{background:none;border:0;padding:3px;color:#126473;font-size:12px;min-height:32px;white-space:nowrap;display:flex;align-items:center;gap:10px}.home-coming{background:#fffaf1;border-color:#f1eada}.home-coming h2{color:#61441f}.home-coming h2 svg{color:#795220;background:#fff0d5;padding:3px;border-radius:6px;box-sizing:content-box}.home-assignment{display:flex;align-items:center;gap:12px;text-align:left;background:#fff;border:0;border-radius:12px;padding:9px 10px;margin-top:7px;width:100%;color:inherit;min-height:58px}.home-assignment>span:nth-child(2){flex:1;min-width:0}.home-assignment b{font-size:13px;display:block}.home-assignment small{font-size:12px;color:#647983;display:block;margin-top:4px}.home-assignment em{font-style:normal;color:#31536d;background:#eef0fa;font-size:11px;padding:7px 13px;border-radius:20px}.home-empty{font-size:13px;color:#62757f;margin:12px 0;line-height:1.5}.home-continue{background:#f4fbfc;border-color:#e4f1f2}.home-continue h2{color:#116673}.home-continue-body{display:flex;align-items:center;gap:18px}.home-book{width:62px;height:80px;border-radius:6px;background:linear-gradient(95deg,#182b30,#3a4446);box-shadow:1px 3px 6px #152a3520;display:grid;place-items:center;border-left:5px solid #252c2e;flex:0 0 62px}.home-book img{width:34px;filter:sepia(1);opacity:.8}.home-continue-body>div:nth-child(2){flex:1;min-width:0}.home-continue h3{font-size:17px;margin:0 0 5px}.home-continue p{font-size:12px;color:#617b85;margin:3px 0;line-height:1.4}.home-continue p.home-arabic{font-size:18px;text-align:left}.home-continue-body>button{background:#006574;color:white;border:0;border-radius:10px;padding:12px 15px;min-height:44px;font-size:14px;font-weight:600}.home-continue-body>button span{margin-left:10px}.home-pair{display:grid;grid-template-columns:1fr 1fr;gap:10px}.home-pair .home-panel{padding:13px 15px}.home-pair h2{font-size:14px;gap:7px}.home-pair header>button{font-size:11px;gap:4px}.home-progress-row{display:flex;align-items:center;gap:12px;width:100%;text-align:left;background:none;border:0;padding:5px 0;color:inherit}.home-progress-row b{font-size:16px;display:block}.home-progress-row small{font-size:12px;color:#657a87;display:block}.home-ibadah-row{display:flex;align-items:center;gap:10px;background:none;border:0;padding:8px 0;width:100%;color:inherit;font-size:12px;text-align:left}.home-ibadah-row>small{color:#657b89;white-space:nowrap}.home-ibadah-row>.home-arrow{margin:0}.home-dots{display:flex;gap:3px;margin-left:auto}.home-dots i{display:block;width:11px;height:11px;border-radius:50%;border:1px solid #9bb0b9}.home-dots i.done{border-color:#007985;background:#007985}.home-announcements{padding-top:13px}.home-announcement{display:flex;gap:13px;padding:0 16px}.home-announcement b{font-size:13px}.home-announcement p{font-size:12px;color:#657c88;margin:3px 0;line-height:1.4}.home-announcement button{background:none;border:0;color:#076574;padding:6px 0;text-align:left}
@media(max-width:520px){.student-shell{padding:12px 14px 100px}.student-shell .brandbar{padding:2px 6px 8px}.student-shell .brandbar .logo{width:144px}.student-shell .brandbar .account-shortcut{width:36px;height:36px;flex-basis:36px}.home-greeting{padding:0 6px 2px}.home-greeting h1{font-size:22px;letter-spacing:-.6px}.home-greeting p{font-size:10px}.home-greeting p>span{margin:0 3px}.student-home{gap:9px}.home-next{padding:12px;border-radius:13px}.home-next-top{font-size:10px;margin-bottom:8px}.home-starts{padding:3px 8px}.home-next-body{grid-template-columns:53px 1fr auto;gap:12px}.home-calendar{border-radius:8px;padding:7px 4px}.home-calendar>span,.home-calendar>small{font-size:10px}.home-calendar>b{font-size:27px}.home-lesson h2{font-size:18px;margin-bottom:6px}.home-lesson>p{font-size:10px;gap:4px;margin-bottom:6px}.home-lesson>p svg{width:13px;height:13px}.home-divider{margin:0}.home-teacher{font-size:10px;gap:5px}.home-teacher .chat-avatar{width:22px;height:22px;min-width:22px;font-size:8px}.home-view-lesson{font-size:10px;padding:7px;min-height:34px;border-radius:8px}.home-view-lesson span{margin-left:3px}.home-stats{padding:9px 2px;border-radius:13px}.home-stats>button{padding:2px 8px;gap:7px}.home-icon{width:29px;height:29px;flex-basis:29px;border-radius:7px}.home-icon svg{width:19px;height:19px}.home-stats b{font-size:17px}.home-stats small{font-size:8px;white-space:normal}.home-stats .home-arrow{font-size:17px}.home-panel{padding:10px;border-radius:13px}.home-panel h2{font-size:13px;gap:7px}.home-panel h2 svg{width:18px;height:18px;flex-basis:18px}.home-panel>header{margin-bottom:7px}.home-panel>header>button{font-size:10px;gap:7px;min-height:26px}.home-assignment{padding:7px;gap:8px;min-height:45px;border-radius:8px;margin-top:5px}.home-assignment b{font-size:11px}.home-assignment small{font-size:10px;margin-top:3px}.home-assignment em{font-size:9px;padding:5px 10px}.home-empty{font-size:11px;margin:9px 0}.home-continue-body{gap:12px}.home-book{width:42px;height:55px;flex-basis:42px;border-left-width:3px}.home-book img{width:25px}.home-continue h3{font-size:13px}.home-continue p{font-size:10px}.home-continue p.home-arabic{font-size:15px}.home-continue-body>button{font-size:11px;padding:8px 12px;min-height:34px}.home-pair{gap:7px}.home-pair .home-panel{padding:10px 9px}.home-pair h2{font-size:11px;gap:5px}.home-pair header>button{font-size:8px;gap:2px}.home-pair header>button .home-arrow{font-size:14px}.home-progress-row{gap:8px;padding:4px 0}.home-progress-row b{font-size:12px}.home-progress-row small{font-size:10px}.home-progress-row .home-arrow{font-size:16px}.home-ibadah-row{font-size:10px;gap:5px;flex-wrap:wrap;min-height:40px;padding:4px 0}.home-ibadah-row .home-icon{width:26px;height:29px;flex-basis:26px}.home-dots{gap:2px}.home-dots i{width:7px;height:7px}.home-ibadah-row>small{font-size:9px}.home-ibadah-row>.home-arrow{font-size:14px}.home-announcement{padding:0 7px;gap:9px}.home-announcement b{font-size:11px}.home-announcement p{font-size:10px}.student-shell .bottom .navbtn{font-size:10px;min-height:49px}.student-shell .bottom svg{width:23px;height:23px}}
@media(max-width:360px){.home-next-body{gap:8px;grid-template-columns:47px 1fr}.home-view-lesson{grid-column:2;justify-self:end}.home-pair{grid-template-columns:1fr}.home-pair h2{font-size:13px}.home-ibadah-row{font-size:12px}.home-dots i{width:10px;height:10px}}

@media(min-width:361px) and (max-width:520px){.home-pair header h2{white-space:nowrap;font-size:10px;gap:4px}.home-pair header h2 svg{width:16px;height:16px;flex-basis:16px}}

.home-lesson-actions{align-self:end;min-width:0}.home-lesson-actions .zoom-join{width:auto;padding:0}.home-lesson-actions .zoom-join p{max-width:220px;color:#fff;font-size:12px}.home-lesson-actions .home-view-lesson:disabled{opacity:.65}.home-lesson-actions .home-view-lesson:focus-visible{outline:3px solid white;outline-offset:4px}
.zoom-join .zoom-prepared-link{color:#126780;font-weight:700;text-underline-offset:3px}.home-lesson-actions .zoom-prepared-link{color:#fff}
@media(max-width:520px){.home-lesson-actions{grid-column:2;justify-self:end}.home-next-body{grid-template-columns:53px minmax(0,1fr)}.home-lesson-actions .home-view-lesson{min-height:44px;padding:10px 14px;font-size:12px}.home-lesson-actions .zoom-join p{max-width:260px}.home-starts{font-size:10px}}
@media(max-width:350px){.student-shell .brandbar{gap:6px;padding-left:0;padding-right:0}.student-shell .brandbar .logo{width:min(120px,38vw)}}

/* Keep progress controls on one line on narrow phones. */
@media(max-width:420px){.home-pair{grid-template-columns:1fr}.home-pair header h2{font-size:13px;gap:7px}.home-pair header>button{font-size:10px}.home-ibadah-row{font-size:12px;flex-wrap:nowrap;gap:7px}.home-dots i{width:10px;height:10px}}

/* Give each small-screen statistic its full label width without changing its action. */
@media(max-width:520px){
 .home-stats>button{display:grid;grid-template-columns:29px minmax(0,1fr) auto;column-gap:4px;row-gap:5px;align-content:start}
 .home-stats>button>span:nth-child(2){display:contents}
 .home-stats .home-icon{grid-column:1;grid-row:1}
 .home-stats b{grid-column:2;grid-row:1}
 .home-stats .home-arrow{grid-column:3;grid-row:1}
 .home-stats small{grid-column:1/-1;grid-row:2;font-size:11px;line-height:1.35;overflow-wrap:normal;word-break:normal}
}

/* Maintain readable copy and full touch targets on phones. */
.student-home :is(.home-panel>header>button,.home-view-lesson,.home-continue-body>button,.home-stats>button,.home-ibadah-row,.home-progress-row){min-height:44px}
.home-panel>header{flex-wrap:wrap;gap:8px}.home-panel>header>button svg{width:18px;height:18px}.home-announcements>p{font-size:14px;line-height:1.6;color:var(--muted,#58717a);margin:4px 0}
@media(max-width:520px){.student-shell .brandbar .account-shortcut{width:44px;height:44px;flex-basis:44px}.student-home{gap:16px}.home-greeting p,.home-lesson>p,.home-teacher,.home-starts{font-size:12px;line-height:1.5}.home-panel,.home-pair .home-panel{padding:16px}.home-panel h2,.home-pair header h2{font-size:15px;white-space:normal}.home-panel>header>button,.home-pair header>button{font-size:13px}.home-assignment b,.home-continue h3{font-size:15px}.home-assignment small,.home-continue p,.home-empty,.home-progress-row small{font-size:13px;line-height:1.5}.home-assignment{padding:12px;gap:10px}.home-assignment em{font-size:12px}.home-continue-body{flex-wrap:wrap}.home-continue-body>button{min-height:44px;font-size:14px}.home-pair{grid-template-columns:1fr}.home-ibadah-row{font-size:14px}.home-ibadah-row>small{font-size:12px}.home-progress-row b{font-size:16px}}
