/* PINEAPPLE CLASSROOM · GREEN REFINED · November 2026
   Actual responsive HTML/CSS. All classroom data, teacher authentication,
   point calculations, floating timer, and cloud functions remain unchanged. */
:root{--ref-green:#076545;--ref-forest:#0c4e3a;--ref-ink:#153e32;--ref-cream:#fbf8ef;--ref-gold:#bdad75}
/* The landing page is an immersive canvas; the original left menu remains
   available through "All tools". On all other pages it remains normal. */
body.glass-theme.home-canvas,body.dark.glass-theme.home-canvas{
 background:radial-gradient(ellipse at 43% 4%,#fdfaf3 0%,#f3f3eb 48%,#e5ebe0 100%)!important;
}
body.home-canvas .app-shell{display:block;min-height:100vh}
body.home-canvas .main-area{width:100%!important;max-width:none!important;min-height:100vh;margin:0!important;background:transparent!important}
body.home-canvas .topbar{display:none!important}
body.glass-theme.home-canvas .main-content{
 width:min(1740px,calc(100% - 44px))!important;max-width:1740px!important;
 margin:clamp(14px,2.5vh,35px) auto 0!important;padding:0!important;
 overflow:visible!important;border:0!important;border-radius:0!important;
 background:transparent!important;box-shadow:none!important;
}
body.home-canvas .footer-note{max-width:1740px;margin:16px auto 0;padding:10px 20px 18px;text-align:center;font-size:11px}
body.home-canvas .sidebar{position:fixed!important;top:0;left:0;height:100dvh;z-index:2100;transform:translateX(-110%);transition:transform .3s cubic-bezier(.22,.8,.25,1),box-shadow .3s;width:min(290px,82vw)!important;box-shadow:none!important;visibility:hidden}
body.home-canvas .sidebar.open{transform:translateX(0);visibility:visible;box-shadow:12px 0 60px #001b1559!important}
.home-sidebar-scrim{display:none;background:transparent;border:0}
body.home-canvas:has(.sidebar.open) .home-sidebar-scrim{display:block;position:fixed;inset:0;z-index:2095;background:rgba(9,38,27,.37);backdrop-filter:blur(3px);width:100vw;height:100dvh}
body:not(.home-canvas) .home-sidebar-scrim{display:none!important}
/* Branded hero canvas */
body.glass-theme .paper-hero.atelier-hero.fern-hero.refined-hero{
 position:relative!important;isolation:isolate;box-sizing:border-box!important;
 display:flex!important;flex-direction:column!important;
 min-height:clamp(680px,77vh,810px)!important;width:100%!important;
 padding:0!important;gap:0!important;margin:0!important;
 border:1.7px solid #126e4f!important;border-radius:36px!important;overflow:hidden!important;
 background:radial-gradient(ellipse at 32% 19%,rgba(255,255,255,.9),transparent 40%),linear-gradient(115deg,#fffaf0 0%,#fdf9f0 54%,#f6f6ed 100%)!important;
 box-shadow:0 30px 60px rgba(22,51,29,.13),0 9px 17px rgba(22,51,29,.05),inset 0 1px 0 white!important;
 color:var(--ref-ink)!important;
}
body.glass-theme .refined-hero::before,body.glass-theme .refined-hero::after{content:none!important;display:none!important}
.refined-header{
 display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;
 gap:clamp(12px,2vw,36px);padding:clamp(24px,2.25vw,38px) clamp(28px,3.4vw,59px) 10px;
 z-index:5;position:relative;
}
.refined-faith{color:#0b6246;justify-self:start;font-family:'Traditional Arabic','Noto Naskh Arabic','Amiri',serif;font-size:clamp(21px,1.65vw,33px);line-height:1.4;white-space:nowrap;letter-spacing:0;}
.refined-brand{justify-self:center;white-space:nowrap;display:flex;align-items:center;gap:11px;color:#066445;font-family:Georgia,'Times New Roman',serif;font-size:clamp(19px,1.65vw,30px);font-weight:800;letter-spacing:-.9px;line-height:1.2}
.refined-brand em{font-weight:560}
.refined-brand-symbol{width:43px;height:43px;border:1.6px solid #00613f;border-radius:50%;display:grid;place-items:center;background:linear-gradient(145deg,#fdfdf9,#eaf4e8);font-size:25px;line-height:1;flex-shrink:0}
.refined-date-block{justify-self:end;display:flex;align-items:center;gap:13px;min-width:0;max-width:100%;color:#164735}
.refined-calendar-icon{width:45px;height:45px;display:grid;place-items:center;border-radius:15px;background:#e8f4dc;color:#0c6243;border:1px solid #d5e5ce;flex:none}
.refined-date-text{min-width:0;border-left:1px solid #9eaf9f;padding-left:16px;display:grid;gap:5px}
.school-date-label{font-family:'Segoe UI',Arial,sans-serif;font-size:clamp(13px,1.02vw,19px);font-weight:780;letter-spacing:-.5px;white-space:nowrap;color:#123e30}
.refined-class-picker{display:flex;align-items:center;gap:9px;color:#547566;font-size:clamp(9px,.73vw,13px);font-weight:650;letter-spacing:.3px;white-space:nowrap}
.refined-class-picker select{appearance:none;-webkit-appearance:none;min-width:0;max-width:170px;border:0;border-bottom:1px dashed #99b19f;background:transparent!important;padding:0 0 2px;color:#255b44!important;font:700 inherit;cursor:pointer;text-align:left;outline-offset:4px}
.refined-class-picker select:hover{border-bottom-color:#0d6447}
.refined-date-separator{color:#0b7b50}
.refined-all-tools{width:39px;height:39px;display:grid;place-items:center;flex:none;border:1px solid #d0e1d2;background:#fffdf6;border-radius:12px;color:#0b6245;transition:transform .18s,background .18s;cursor:pointer}
.refined-all-tools:hover{transform:translateY(-2px);background:#e9f7e7}
/* Header tabs have a visible active state and keyboard focus. */
.refined-nav{display:flex;gap:4px;align-items:center;justify-content:center;align-self:center;position:relative;z-index:5;max-width:calc(100% - 32px);min-height:58px;margin:4px auto 0;padding:6px;border:1px solid rgba(49,85,62,.075);border-radius:999px;background:rgba(255,255,255,.91);box-shadow:0 12px 26px rgba(69,67,48,.11),inset 0 1px white;overflow-x:auto;scrollbar-width:none}
.refined-nav::-webkit-scrollbar{display:none}
.refined-nav button{appearance:none;border:0;background:transparent;color:#174333;border-radius:999px;min-height:44px;padding:12px clamp(12px,1.35vw,28px);font:750 clamp(12px,.88vw,15px)/1.2 'Segoe UI',Arial,sans-serif;white-space:nowrap;cursor:pointer;transition:transform .2s ease,background .2s ease,color .2s ease}
.refined-nav button:hover,.refined-nav button:focus-visible{transform:translateY(-1px);background:#e7f4e3}
.refined-nav button.is-current{color:#fff!important;background:linear-gradient(180deg,#178960,#076044)!important;box-shadow:inset 0 1px rgba(255,255,255,.3),0 4px 9px rgba(4,80,52,.18)}
/* Main story. A wide illustration is balanced with editorial text, not centered
   in a giant empty grid, and never overlaps the words. */
.refined-hero-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.97fr);align-items:center;flex:1;gap:clamp(10px,1.3vw,22px);position:relative;z-index:3;width:100%;padding:clamp(22px,2.7vw,40px) clamp(43px,7.8vw,155px) 6px;min-height:0}
.refined-copy{min-width:0;align-self:center;z-index:4;max-width:660px;padding:0 0 21px}
.refined-eyebrow{display:flex;align-items:center;gap:11px;color:#58786a;font-size:clamp(10px,.81vw,12px);font-weight:790;letter-spacing:2.15px;white-space:normal}
.refined-eyebrow span{background:#5fb76c;width:10px;height:10px;border-radius:50%;flex-shrink:0;box-shadow:0 0 0 5px #cfebce}
body.glass-theme .paper-hero.atelier-hero.fern-hero.refined-hero h1{
 display:block!important;max-width:680px!important;margin:21px 0 14px!important;
 font-family:'Segoe UI',Arial,sans-serif!important;
 font-size:clamp(34px,3.0vw,64px)!important;font-weight:780!important;line-height:1.095!important;letter-spacing:-2.3px!important;
 color:#153e32!important;text-transform:none!important;text-shadow:none!important;overflow-wrap:break-word!important;
}
body.glass-theme .paper-hero.atelier-hero.fern-hero.refined-hero h1 span{color:#087748!important;font-weight:830!important;text-transform:none!important}
.refined-copy>p{font-size:clamp(14px,1vw,19px);line-height:1.55;color:#536c60;max-width:590px;margin:0 0 21px}
.refined-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.refined-actions button{appearance:none;border:1px solid #bddac2;min-height:53px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;gap:14px;padding:12px clamp(18px,1.5vw,30px);font-size:clamp(13px,.92vw,17px);font-weight:770;cursor:pointer;white-space:nowrap;box-shadow:0 6px 13px rgba(45,67,35,.09);transition:transform .2s,box-shadow .2s,background .2s}
.refined-actions button span{display:grid;place-items:center}
.refined-actions button:hover{transform:translateY(-3px);box-shadow:0 12px 20px #113b2c24}
.refined-primary{color:white!important;border-color:#0a6848!important;background:linear-gradient(170deg,#169868,#066544)!important}
.refined-secondary{color:#174b36!important;border-color:#b5e0be!important;background:linear-gradient(145deg,#edffeb,#d9f3da)!important}
.refined-illustration{width:100%;min-width:0;align-self:center;justify-self:center;position:relative;display:grid;place-items:center;z-index:3;pointer-events:none}
.refined-illustration img{width:min(100%,670px);height:auto;max-height:460px;object-fit:contain;display:block;mix-blend-mode:multiply;filter:drop-shadow(0 18px 16px rgba(20,62,34,.12));-webkit-mask-image:radial-gradient(ellipse 85% 80% at 50% 51%,#000 62%,transparent 100%);mask-image:radial-gradient(ellipse 85% 80% at 50% 51%,#000 62%,transparent 100%)}
/* Green landscape at the bottom, positioned behind the white tool dock. */
.refined-wave{pointer-events:none;position:absolute;left:0;right:0;bottom:0;height:165px;z-index:0}
.refined-wave-back{background:linear-gradient(90deg,#d6dfbd,#c9ddbe,#e3e7d5);clip-path:polygon(0 23%,7% 37%,16% 70%,29% 79%,43% 88%,56% 69%,72% 89%,83% 81%,91% 55%,100% 32%,100% 100%,0 100%)}
.refined-wave-front{height:105px;background:linear-gradient(100deg,#6e996f,#a3bc8c 21%,#e7e8d0 51%,#b5c89f 81%,#558862);clip-path:polygon(0 27%,9% 69%,21% 94%,38% 100%,56% 88%,76% 96%,90% 50%,100% 11%,100% 100%,0 100%);opacity:.85}
.refined-quick{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-items:center;z-index:4;position:relative;align-self:center;width:calc(100% - clamp(44px,10vw,220px));min-height:97px;margin:2px auto 0;padding:12px 13px;border-radius:999px;background:rgba(255,255,252,.89);border:1px solid rgba(255,255,255,.9);box-shadow:0 9px 32px rgba(26,79,44,.11);backdrop-filter:blur(16px)}
.refined-quick button{appearance:none;min-height:69px;min-width:0;border:0;background:transparent;border-right:1px solid #cbdacb;display:flex;align-items:center;justify-content:center;gap:14px;padding:9px 8px;color:#144d38;font:760 clamp(12px,1vw,17px)/1.2 'Segoe UI',Arial,sans-serif;cursor:pointer;transition:transform .2s,color .2s}
.refined-quick button:last-child{border-right:0}
.refined-quick button:hover{color:#07754c;transform:translateY(-3px)}
.refined-quick-icon{display:grid;place-items:center;width:51px;height:51px;flex:none;border-radius:15px;color:#0b6747;background:linear-gradient(140deg,#e0f0d8,#edf7e1);border:1px solid #d8eace;transition:transform .24s,background .24s}
.refined-quick button:hover .refined-quick-icon{transform:rotate(-6deg) scale(1.065);background:#cbf0d2}
.refined-quick-icon svg{display:block;margin:auto;flex-shrink:0}
.refined-metrics{display:flex;align-items:center;justify-content:center;gap:12px;font-size:11px;font-weight:720;letter-spacing:1px;text-transform:uppercase;color:#39624b;position:relative;z-index:3;min-height:40px;margin:4px 0 4px}
.refined-metrics span+span:before{content:'•';padding-right:12px;color:#789d78}
/* The editor, floating focus, student pages, and point transfers retain their
   legacy panels and functionality. Date remains available there too. */
body.glass-theme:not(.home-canvas) .topbar-school-date{font-size:11px;font-weight:730;color:#245d43;margin-left:15px;white-space:nowrap}
body.home-canvas .topbar-school-date{display:none!important}
/* Modern projector screens / large displays */
@media(min-width:1760px){body.glass-theme.home-canvas .main-content{width:min(1740px,calc(100% - 64px))!important}.refined-hero-layout{padding-left:clamp(90px,7.5vw,155px);padding-right:clamp(90px,7.5vw,155px)}}
/* Laptop */
@media(max-width:1400px){
 .refined-header{padding:25px 33px 7px;gap:15px}
 .refined-brand{font-size:21px;gap:7px}.refined-brand-symbol{width:35px;height:35px;font-size:19px}
 .refined-faith{font-size:23px}.refined-calendar-icon{width:37px;height:37px}
 .school-date-label{font-size:13px}.refined-date-text{padding-left:10px}.refined-date-block{gap:9px}
 .refined-class-picker{font-size:10px}
 .refined-hero-layout{padding:25px 64px 5px}
 body.glass-theme .paper-hero.atelier-hero.fern-hero.refined-hero h1{font-size:clamp(36px,3.9vw,53px)!important;letter-spacing:-1.75px!important}
 .refined-illustration img{max-height:390px}
 .refined-quick{width:calc(100% - 90px)}
}
/* Tablet: preserve Bismillah, date and navigation without collisions */
@media(max-width:1040px){
 .refined-header{grid-template-columns:1fr auto;grid-template-areas:'brand date' 'faith faith';gap:7px 15px;padding:20px 23px 8px}
 .refined-brand{grid-area:brand;justify-self:start;font-size:clamp(16px,2.4vw,24px)}
 .refined-date-block{grid-area:date;justify-self:end}
 .refined-faith{grid-area:faith;justify-self:center;font-size:24px;line-height:1.3}
 .refined-nav{min-height:51px;margin:8px auto 0}.refined-nav button{font-size:12px;min-height:39px;padding:10px 14px}
 .refined-hero-layout{gap:8px;padding:34px 35px 20px}
 body.glass-theme .paper-hero.atelier-hero.fern-hero.refined-hero h1{font-size:clamp(33px,4.3vw,46px)!important}
 .refined-illustration img{max-height:340px}
 .refined-quick{width:calc(100% - 44px)}
 .refined-quick button{gap:7px;font-size:12px}.refined-quick-icon{width:40px;height:40px}.refined-quick-icon svg{width:22px;height:22px}
}
@media(max-width:760px){
 body.glass-theme.home-canvas .main-content{width:calc(100% - 20px)!important;margin:10px auto 0!important}
 body.glass-theme .paper-hero.atelier-hero.fern-hero.refined-hero{min-height:0!important;border-radius:23px!important}
 .refined-header{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:'brand menu' 'faith faith' 'date date';gap:10px;padding:18px 17px 6px}
 .refined-brand{grid-area:brand;justify-self:start;white-space:normal;font-size:clamp(17px,4.5vw,23px);letter-spacing:-.7px}
 .refined-brand-symbol{width:32px;height:32px;font-size:19px}
 .refined-all-tools{grid-area:menu;justify-self:end;width:37px;height:37px}
 .refined-faith{font-size:clamp(20px,5.8vw,27px);justify-self:center}
 .refined-date-block{grid-area:date;justify-self:stretch;display:flex;justify-content:center;border:1px solid #e1e9dc;background:#fffdf7b8;border-radius:14px;padding:8px}
 .refined-calendar-icon{width:35px;height:35px}.refined-date-text{padding-left:10px}
 .school-date-label{font-size:13px}.refined-class-picker{font-size:10px}
 .refined-nav{width:calc(100% - 24px);max-width:none;justify-content:flex-start;min-height:46px;margin:10px 12px 0;padding:4px;gap:0;overflow-x:auto}
 .refined-nav button{min-height:37px;padding:9px 14px;font-size:12px;flex:none}
 .refined-hero-layout{grid-template-columns:1fr;gap:0;padding:30px 21px 12px;text-align:center}
 .refined-copy{max-width:520px;justify-self:center;padding:0 0 8px}
 .refined-eyebrow{justify-content:center;font-size:9px;letter-spacing:1.4px}
 body.glass-theme .paper-hero.atelier-hero.fern-hero.refined-hero h1{font-size:clamp(31px,7.8vw,49px)!important;line-height:1.1!important;letter-spacing:-1.45px!important;margin:15px auto 12px!important}
 .refined-copy>p{font-size:13px;line-height:1.5;max-width:425px;margin:0 auto 17px}
 .refined-actions{justify-content:center;gap:9px}.refined-actions button{min-height:43px;padding:11px 16px;font-size:12px}
 .refined-illustration{max-width:470px;justify-self:center}.refined-illustration img{max-height:260px}
 .refined-wave{height:115px}.refined-wave-front{height:70px}
 .refined-quick{width:calc(100% - 26px);border-radius:22px;gap:0;padding:7px 4px;min-height:75px;margin:0 auto 0}
 .refined-quick button{flex-direction:column;gap:6px;min-height:73px;font-size:10px;line-height:1.15;padding:5px 4px}
 .refined-quick-icon{width:32px;height:32px;border-radius:10px}.refined-quick-icon svg{width:18px;height:18px}
 .refined-metrics{flex-wrap:wrap;font-size:9px;gap:7px;min-height:35px;padding:3px 10px 8px}
 body.glass-theme:not(.home-canvas) .topbar-school-date{display:none}
}
@media(max-width:410px){
 .refined-brand{font-size:16px}.refined-brand-symbol{width:28px;height:28px;font-size:17px}
 .refined-header{padding:16px 11px 5px}.refined-date-block{padding:7px 3px}
 .refined-nav{width:calc(100% - 14px);margin:8px 7px 0}
 .refined-hero-layout{padding:24px 14px 5px}
 body.glass-theme .paper-hero.atelier-hero.fern-hero.refined-hero h1{font-size:clamp(29px,7.7vw,34px)!important}
 .refined-illustration img{max-height:217px}
 .refined-actions button{padding:10px 11px;font-size:11px;gap:6px}
 .refined-metrics{font-size:8px}
}
@media(prefers-reduced-motion:reduce){.refined-nav button,.refined-actions button,.refined-quick button,.refined-quick-icon,.refined-all-tools,body.home-canvas .sidebar{transition:none!important}}
/* Short landscape smart boards: keep the complete main landing panel visible
   without making the type microscopic. */
@media (min-width:1280px) and (max-height:800px){
 body.glass-theme.home-canvas .main-content{margin:12px auto 0!important}
 body.glass-theme .paper-hero.atelier-hero.fern-hero.refined-hero{min-height:650px!important}
 .refined-header{padding-top:17px;padding-bottom:3px}
 .refined-nav{min-height:48px;padding:4px;margin-top:2px}
 .refined-nav button{min-height:39px;padding-top:10px;padding-bottom:10px}
 .refined-hero-layout{padding-top:12px;padding-bottom:1px;min-height:0}
 body.glass-theme .paper-hero.atelier-hero.fern-hero.refined-hero h1{font-size:clamp(39px,2.35vw,53px)!important;line-height:1.09!important;margin:10px 0!important}
 .refined-copy{padding-bottom:7px}.refined-copy>p{margin:7px 0 13px;font-size:15px}
 .refined-actions button{min-height:46px;padding:9px 18px}
 .refined-illustration img{max-height:310px}
 .refined-quick{min-height:78px;padding:8px}.refined-quick button{min-height:59px}.refined-quick-icon{height:40px;width:40px}.refined-quick-icon svg{width:21px;height:21px}
 .refined-metrics{min-height:23px;margin:0;font-size:9px}
}
@media (min-width:761px) and (max-width:950px){
 .refined-hero-layout{grid-template-columns:1fr;text-align:center;gap:0}
 .refined-copy{justify-self:center;max-width:620px;padding:8px 0}
 .refined-eyebrow,.refined-actions{justify-content:center}
 body.glass-theme .paper-hero.atelier-hero.fern-hero.refined-hero h1{margin-left:auto!important;margin-right:auto!important;max-width:630px!important}
 .refined-copy>p{margin:0 auto 15px}
 .refined-illustration{max-width:480px;margin:0 auto}.refined-illustration img{max-height:275px}
 .refined-quick{margin-top:0}
}
@media(max-width:1600px){body.glass-theme:not(.home-canvas) .topbar-school-date{display:none!important}}
