/* Pineapple Classroom · ELECTRIC GLASS / EDITORIAL 2026
   Original classroom art, vivid ultramarine framing, translucent warm-white glass,
   bold typographic compositions and small sticker details.
   Retains legacy Paper/Glass toggle and all teacher tools.
*/
:root{--eg-blue:#063ffc;--eg-blue-deep:#062bd1;--eg-ink:#10121b;--eg-paper:#f7f8fb;--eg-white:#fff;--eg-hairline:rgba(23,48,110,.1)}
body.glass-theme{background:#063ffc!important;color:#141929!important}
.glass-theme .main-area{background:transparent!important;min-width:0}
.glass-theme .main-content{
 background:linear-gradient(138deg,rgba(255,255,255,.94),rgba(249,250,253,.91) 49%,rgba(243,248,255,.92))!important;
 border:1px solid rgba(255,255,255,.85);border-radius:24px;
 margin:24px 22px 16px!important;max-width:none!important;
 padding:26px clamp(18px,2.1vw,35px) 45px!important;
 box-shadow:0 30px 70px rgba(4,21,89,.23),inset 0 1px 0 #fff!important;
 -webkit-backdrop-filter:blur(22px) saturate(1.16);backdrop-filter:blur(22px) saturate(1.16)
}
.glass-theme .footer-note{color:rgba(255,255,255,.77)!important}
/* Tall, calm sidebar: vivid-color glass rather than dull grey */
.glass-theme .sidebar,body.dark.glass-theme .sidebar{
 background:linear-gradient(162deg,rgba(255,255,255,.97),rgba(232,241,255,.93) 72%,rgba(221,232,255,.94))!important;
 -webkit-backdrop-filter:blur(28px);backdrop-filter:blur(28px);
 border-right:1px solid rgba(255,255,255,.9)!important;
 box-shadow:6px 0 32px rgba(0,25,117,.1)!important;
}
.glass-theme .brand-symbol{background:#0640f7!important;color:white!important;box-shadow:0 6px 18px #0038d22e!important}
.glass-theme .sidebar .brand strong,.glass-theme .sidebar .brand strong span{color:#101829!important}
.glass-theme .sidebar .brand small{color:#0640ec!important}
.glass-theme .sidebar .sidebar-label,.glass-theme .nav-group-label{color:#667694!important}
.glass-theme .sidebar .nav-link{color:#30405e!important;border-radius:10px!important}
.glass-theme .sidebar .nav-link.active{background:#0a43ff!important;border:1px solid #4b73ff!important;color:white!important;box-shadow:0 7px 18px rgba(0,63,255,.22)!important}
.glass-theme .sidebar .nav-link.active .nav-icon-wrap,.glass-theme .sidebar .nav-link.active svg{color:white!important}
.glass-theme .sidebar .side-promo{background:linear-gradient(125deg,#e8efff,#f7ecff)!important;border:1px solid #dce5ff!important}
.glass-theme .sidebar .side-promo strong{color:#112546!important}
/* Bismillah is EXACTLY centered between two fixed-side control buttons. */
.topbar-center-tools{display:flex;align-items:center;justify-content:center;gap:12px;min-width:0;flex:0 1 auto}
.topbar-center-tools .topbar-faith-date{
 position:static!important;top:auto!important;left:auto!important;transform:none!important;
 order:0;flex:0 1 260px;max-width:260px!important;min-width:0!important;
 padding:0 8px!important;margin:0!important;border:0!important;pointer-events:none;
 justify-content:center!important;
}
.topbar-center-tools .topbar-faith-date:before,.topbar-center-tools .topbar-faith-date:after,.topbar-center-tools .topbar-bismillah:before,.topbar-center-tools .topbar-bismillah:after{display:none!important}
.topbar-center-tools .topbar-bismillah{font-size:clamp(21px,2vw,31px)!important;letter-spacing:0;white-space:nowrap;line-height:1.1;color:#152745!important;display:block!important}
.topbar-center-tools .glass-toggle{order:-1;width:133px;min-width:133px;justify-content:center!important}
.topbar-center-tools .dojo-bridge-shortcut{width:149px;min-width:149px;min-height:38px;display:inline-flex!important;align-items:center;justify-content:center;gap:8px;white-space:nowrap;font-weight:830!important}
.topbar-center-tools .bridge-emoji{color:#0b49ed;font-size:18px;line-height:1}
.glass-theme .topbar,body.dark.glass-theme .topbar{background:rgba(249,252,255,.95)!important;border-bottom:1px solid rgba(231,236,255,.8)!important;box-shadow:0 12px 28px rgba(7,37,122,.1)!important;display:grid!important;grid-template-columns:minmax(105px,1fr) auto minmax(170px,1fr);gap:14px;align-items:center;padding:13px 18px!important;min-height:74px}
.glass-theme .topbar-left{min-width:0}
.glass-theme .topbar-right{flex:initial!important;min-width:0;justify-content:flex-end!important;margin:0!important;gap:7px}
.glass-theme .topbar .topbar-action,.glass-theme .topbar .top-class-switch,.glass-theme .topbar .icon-button{
 background:rgba(255,255,255,.85)!important;border:1px solid rgba(210,220,244,.98)!important;color:#1b3359!important;
 box-shadow:0 5px 13px #063fff0c,inset 0 1px #fff!important;border-radius:10px!important
}
.glass-theme .topbar .glass-toggle{background:#e8efff!important}
.glass-theme .topbar .dojo-bridge-shortcut{background:#f1f5ff!important;color:#113dc1!important}
.glass-theme .topbar .topbar-action:hover{background:#dae6ff!important}
.glass-theme .topbar .glass-toggle-label,.glass-theme .topbar .dojo-bridge-shortcut span:last-child{font-size:11px!important}
/* Hero: the supplied reference's blue frame, paper space, strong sans/serif pairing */
.glass-theme .paper-hero{
 position:relative;isolation:isolate;overflow:hidden;
 border:1px solid rgba(255,255,255,.96)!important;
 border-radius:20px!important;
 background:linear-gradient(130deg,rgba(255,255,255,.93) 0%,rgba(255,255,255,.82) 55%,rgba(235,243,255,.86) 100%)!important;
 box-shadow:0 22px 38px rgba(15,49,130,.12),inset 0 1px 0 #fff!important;
 -webkit-backdrop-filter:blur(22px);backdrop-filter:blur(22px)
}
.glass-theme .paper-hero:before{content:'✳';position:absolute;top:62px;right:15%;z-index:0;background:none!important;color:#174cff!important;font-size:59px;opacity:.12;transform:rotate(-16deg);mask-image:none}
.glass-theme .paper-hero:after{content:'';position:absolute;right:-80px;bottom:-70px;top:auto;width:350px;height:350px;border:1px solid rgba(41,82,220,.11)!important;border-radius:50%;box-shadow:0 0 0 58px rgba(30,80,220,.028),0 0 0 115px rgba(50,100,255,.024)!important}
.glass-theme .paper-hero-top{padding:15px 26px!important;border-bottom:1px solid rgba(26,50,109,.11)!important;font-size:9px!important;color:#3f5682!important;letter-spacing:1.3px!important}
.glass-theme .paper-live-dot{background:#093fff!important;box-shadow:0 0 0 4px #0641ff1b!important}
.glass-theme .paper-hero-main{display:grid!important;grid-template-columns:minmax(0,1.4fr) minmax(185px,.6fr)!important;min-height:392px!important;gap:0!important;padding:5px 9px 8px 36px!important;align-items:center!important}
.glass-theme .paper-hero-text{width:100%;min-width:0;position:relative;z-index:3;padding:27px 0 18px!important}
.glass-theme .paper-scribble-label{font-family:Inter,system-ui,sans-serif!important;font-weight:850!important;font-size:10px!important;letter-spacing:1.6px!important;color:#0a4af3!important;margin:0 0 17px!important;transform:none!important}
.glass-theme .paper-hero h1{font-family:'Arial Narrow','Arial Black',Impact,Inter,sans-serif!important;font-size:clamp(53px,5.6vw,94px)!important;font-weight:900!important;line-height:.91!important;letter-spacing:-3.5px!important;color:#101014!important;text-shadow:none!important;max-width:100%!important;display:flex;flex-direction:column;gap:1px;overflow:visible}
.glass-theme .paper-hero h1>span,.glass-theme .paper-hero h1>span.paper-hl{width:max-content;max-width:100%;transform:none!important;letter-spacing:inherit!important;white-space:nowrap!important}
.glass-theme .paper-hero h1 .paper-editorial-serif{font-family:Georgia,'Times New Roman',serif!important;font-size:.94em!important;font-weight:500!important;letter-spacing:-4px!important;line-height:1.04!important;color:#14151e!important}
.glass-theme .paper-hl:before{display:none!important}
.glass-theme .paper-bang{color:#0943fb!important}
.glass-theme .paper-hero-text p{font-size:13px!important;line-height:1.58!important;color:#4c5d7c!important;margin:20px 0 20px!important;max-width:500px}
.glass-theme .paper-hero-buttons button{border-radius:9px!important;font-size:10px!important;letter-spacing:1px!important;padding:14px 17px!important;box-shadow:0 7px 14px rgba(3,40,177,.16)!important;font-weight:900!important}
.glass-theme .paper-primary{background:#0643f8!important;border-color:#0643f8!important;color:#fff!important}
.glass-theme .paper-primary:hover{background:#002ccd!important}
.glass-theme .paper-secondary{background:rgba(255,255,255,.85)!important;border:1px solid #c5d3ed!important;color:#111d35!important}
.glass-theme .paper-hero-illustration{height:365px!important;min-width:0;position:relative;z-index:2;align-self:end}
.glass-theme .paper-stage-art{width:100%!important;max-width:360px!important;max-height:340px!important;filter:drop-shadow(0 19px 19px rgba(0,42,144,.12))!important;transform:translate(4px,10px) rotate(5deg)}
.glass-theme .paper-doodle-caption{font-size:9px!important;letter-spacing:1.3px!important;color:#345b9d!important}
.editorial-sticker{display:none;position:absolute;z-index:5;text-align:center;line-height:.96;font-family:Impact,'Arial Black',sans-serif;letter-spacing:-.1px;white-space:nowrap;pointer-events:none}
.glass-theme .editorial-sticker{display:block}
.glass-theme .editorial-sticker-blue{right:3px;top:16px;transform:rotate(11deg);background:#164dff;border:2px solid #164dff;border-radius:4px 12px 5px 14px;padding:14px 13px;color:#fff;font-size:16px;box-shadow:5px 6px 0 #0d37b41f}
.glass-theme .editorial-sticker-peach{left:0;bottom:47px;transform:rotate(-11deg);background:#ffb3d3;border:2px solid #c84093;border-radius:15px;padding:12px 13px;color:#1b1940;font-size:12px;box-shadow:5px 7px 0 #0d37b416}
.glass-theme .paper-hero-foot{background:rgba(246,249,255,.64)!important;border-top:1px solid rgba(24,70,170,.14)!important;padding:14px 26px!important}
.glass-theme .paper-hero-mini-stats b{color:#0b45f5!important}
/* Page furniture: crisp colors but premium transparency. */
.glass-theme .paper-ticker{background:#0642f3!important;border-radius:11px!important;box-shadow:0 8px 25px #0036e230!important}
.glass-theme .paper-chapter-tag{color:#0751de!important;letter-spacing:1.7px!important}
.glass-theme .paper-chapter h2{font-family:Impact,'Arial Narrow',Inter,sans-serif!important;letter-spacing:-.5px!important;color:#151928!important}
.glass-theme .paper-action-card{border:1px solid rgba(249,250,255,.95)!important;border-radius:15px!important;box-shadow:0 15px 32px #023ad317!important;-webkit-backdrop-filter:blur(17px);backdrop-filter:blur(17px)}
.glass-theme .paper-a-yellow{background:linear-gradient(145deg,rgba(245,250,255,.95),rgba(222,234,255,.83))!important}
.glass-theme .paper-a-white{background:linear-gradient(145deg,rgba(244,245,255,.93),rgba(233,222,255,.76))!important}
.glass-theme .paper-a-blue{background:linear-gradient(145deg,rgba(233,244,255,.95),rgba(202,231,255,.8))!important}
.glass-theme .paper-a-pink{background:linear-gradient(145deg,rgba(254,241,249,.95),rgba(254,218,236,.81))!important}
.glass-theme .paper-action-card strong{color:#0c2048!important;font-family:Impact,'Arial Narrow','Arial Black',sans-serif!important;letter-spacing:0!important}
.glass-theme .paper-action-card:hover{outline:2px solid rgba(20,75,255,.3)!important;transform:translateY(-3px)!important}
.glass-theme .premium-dojo-strip{background:linear-gradient(115deg,#113dfa,#0c51e8,#4776fa)!important;border:1px solid #7ea0ff!important;box-shadow:0 13px 25px rgba(4,51,213,.16)!important;border-radius:14px!important}
.glass-theme .card,.glass-theme .stat,.glass-theme .setting-card,.glass-theme .premium-dojo-panel{background:rgba(255,255,255,.77)!important;border:1px solid rgba(255,255,255,.97)!important;-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);box-shadow:0 13px 33px rgba(17,58,142,.085),inset 0 1px #fff!important;border-radius:15px!important}
.glass-theme .btn.btn-primary{background:#0946f5!important;border-color:#0946f5!important;color:white!important}
.glass-theme .btn.btn-primary:hover{background:#002fc7!important}
.glass-theme .page-heading h1{font-family:Impact,'Arial Narrow',Inter,sans-serif!important;color:#111e37!important;letter-spacing:-1px!important}
.glass-theme .premium-panel-head h2{color:#152749!important}
/* Focus noise points: deliberately specific and visibly teacher-only. */
.focus-noise-card{padding:22px!important;display:grid;gap:11px}
.noise-card-kicker{color:#0a49f5;font-size:10px;font-weight:900;letter-spacing:1.3px}
.noise-card-title{display:flex;gap:14px;align-items:center}
.noise-card-title>span{width:58px;height:58px;border-radius:13px;display:grid;place-items:center;flex:none;background:linear-gradient(145deg,#ffe9e8,#ffe0ea);color:#b42338;font-size:25px;font-weight:900;border:1px solid #ffd0db}
.noise-card-title h2{margin:0 0 5px;font-size:21px!important;color:#171f34!important}
.noise-card-title p{margin:0;color:#64748b;font-size:12px;line-height:1.4}
.noise-form{display:grid;gap:9px;margin-top:5px}
.noise-form label{font-size:12px;font-weight:830;color:#394b67}
.noise-form select{width:100%;min-height:43px;background:rgba(255,255,255,.96)!important;border-radius:9px!important;border:1px solid #bbcbed!important;color:#142446!important;font-size:13px}
.noise-deduct-button{width:100%;min-height:43px;justify-content:center!important;background:#dc314a!important;color:white!important;border:1px solid #bc2542!important;box-shadow:none!important;font-size:12px!important}
.noise-deduct-button:hover{background:#b72845!important;color:white!important}
.noise-status-note{font-size:11px;color:#607084;line-height:1.6;margin:4px 0 0}
.noise-status-note strong{color:#263c62}
.noise-empty{font-size:11px;color:#a52f50;margin:0}
/* The glass/paper switch remains accessible, with a graceful unstyled fallback. */
body:not(.glass-theme) .topbar{display:grid!important;grid-template-columns:minmax(105px,1fr) auto minmax(150px,1fr);gap:14px;align-items:center}
body:not(.glass-theme) .topbar-center-tools .topbar-faith-date{max-width:245px!important}
@media(max-width:1600px){
 .glass-theme .topbar{grid-template-columns:minmax(100px,1fr) auto minmax(140px,1fr);gap:8px}
 .glass-theme .topbar .pick-student-button span:last-child,.glass-theme .topbar .teacher-lock-button span{display:none}
 .topbar-center-tools{gap:7px}
 .topbar-center-tools .topbar-faith-date{flex-basis:205px;max-width:205px!important}
 .topbar-center-tools .topbar-bismillah{font-size:23px!important}
 .topbar-center-tools .glass-toggle{width:109px;min-width:109px}
 .topbar-center-tools .dojo-bridge-shortcut{width:136px;min-width:136px}
}
@media(max-width:1300px){
 .glass-theme .topbar,body:not(.glass-theme) .topbar{display:grid!important;grid-template-columns:1fr auto!important;grid-template-areas:'left right' 'center center';row-gap:10px;padding:11px 16px!important}
 .topbar-left{grid-area:left;min-width:0}
 .topbar-right{grid-area:right;justify-content:flex-end}
 .topbar-center-tools{grid-area:center;width:100%;gap:12px;justify-content:center}
 .topbar-center-tools .topbar-faith-date{flex-basis:270px;max-width:270px!important}
 .topbar-center-tools .topbar-bismillah{font-size:27px!important}
 .topbar-center-tools .glass-toggle{width:138px;min-width:138px}
 .topbar-center-tools .dojo-bridge-shortcut{width:153px;min-width:153px}
 .glass-theme .topbar .pick-student-button span:last-child{display:inline}
 .glass-theme .paper-hero h1{font-size:clamp(48px,6vw,82px)!important}
}
@media(max-width:1000px){
 .glass-theme .paper-hero-main{grid-template-columns:minmax(0,1.25fr) minmax(160px,.75fr)!important;padding-left:20px!important}
 .glass-theme .paper-hero h1{font-size:clamp(47px,6.4vw,66px)!important}
 .glass-theme .paper-hero-illustration{height:294px!important}
 .glass-theme .paper-stage-art{max-height:280px!important}
}
@media(max-width:760px){
 .glass-theme .main-content{margin:13px 10px!important;padding:17px 14px 26px!important;border-radius:17px}
 .topbar-center-tools{justify-content:center;gap:7px}
 .topbar-center-tools .topbar-faith-date{display:flex!important;flex:1 1 auto;min-width:0!important;padding:0 2px!important;max-width:270px!important}
 .topbar-center-tools .topbar-bismillah{font-size:clamp(16px,3.7vw,23px)!important}
 .topbar-center-tools .glass-toggle{min-width:86px;width:86px!important;padding:7px 5px!important}
 .topbar-center-tools .dojo-bridge-shortcut{min-width:108px;width:108px!important;padding:7px 5px!important;gap:4px}
 .topbar-center-tools .glass-toggle-label,.topbar-center-tools .dojo-bridge-shortcut span:last-child{font-size:9px!important}
 .topbar-center-tools .glass-toggle-orb{width:17px;height:17px}
 .topbar-center-tools .dojo-bridge-shortcut .bridge-emoji{font-size:13px}
 .glass-theme .paper-hero-main{display:flex!important;flex-direction:column!important;padding:19px 21px 10px!important}
 .glass-theme .paper-hero-text{width:100%!important;padding:10px 0 0!important}
 .glass-theme .paper-hero h1{font-size:clamp(42px,9vw,67px)!important;letter-spacing:-1.9px!important}
 .glass-theme .paper-hero h1 .paper-editorial-serif{letter-spacing:-2px!important}
 .glass-theme .paper-hero-illustration{height:220px!important;max-width:320px!important;margin:0 auto!important}
 .glass-theme .paper-stage-art{max-height:225px!important;max-width:250px!important}
 .glass-theme .editorial-sticker-blue{font-size:11px;padding:9px;right:0;top:6px}
 .glass-theme .editorial-sticker-peach{font-size:9px;padding:8px;left:0;bottom:30px}
 .glass-theme .paper-hero-text p{font-size:12px!important}
 .glass-theme .paper-hero-top{font-size:8px!important;padding:12px!important}
 .glass-theme .paper-hero-foot{padding:12px!important}
}
@media(max-width:440px){
 .glass-theme .topbar,body:not(.glass-theme) .topbar{padding:9px 10px!important;gap:7px}
 .glass-theme .topbar-right .pick-student-button,.glass-theme .topbar-right .teacher-lock-button,.glass-theme .topbar-right .avatar{display:none!important}
 .topbar-center-tools .glass-toggle{min-width:79px;width:79px!important}
 .topbar-center-tools .dojo-bridge-shortcut{min-width:99px;width:99px!important}
 .topbar-center-tools .topbar-bismillah{font-size:clamp(15px,3.6vw,18px)!important}
 .glass-theme .paper-hero h1{font-size:clamp(37px,10.2vw,48px)!important;letter-spacing:-2px!important}
 .glass-theme .paper-hero-text p br{display:none}
 .glass-theme .paper-hero-buttons button{padding:12px!important;font-size:9px!important}
 .glass-theme .paper-hero-illustration{height:210px!important}
 .glass-theme .paper-hero-mini-stats b{font-size:14px!important}
}
@media(prefers-reduced-motion:reduce){.glass-theme .paper-action-card,.glass-theme .paper-stage-art,.glass-theme .editorial-sticker{animation:none!important;transition:none!important}}
/* Final layout and focus-color refinements. */
.glass-theme .main-content{width:calc(100% - 44px)!important;box-sizing:border-box!important}
.glass-theme .focus-studio .big-clock{background:radial-gradient(circle at 35% 28%,#2249ac 0%,#071d69 67%,#091448 100%)!important;box-shadow:inset 0 0 0 1px #a1bdff4d,inset 0 18px 25px #ffffff0b,0 0 0 8px #4778ff1b!important;filter:drop-shadow(0 15px 20px #0623944d)!important}
.glass-theme .focus-studio .ring-track{stroke:#6384e85b!important}
.glass-theme .focus-studio .ring-progress{stroke:#9cd1ff!important;filter:drop-shadow(0 0 5px #aedaff83)!important}
.glass-theme .focus-studio .studio-next{background:linear-gradient(120deg,#e4efff,#dce9ff)!important;border-color:#c9dbff!important;color:#153c85!important}
.glass-theme .focus-studio .studio-next-label,.glass-theme .focus-studio .studio-next-flag span{color:#5379bd!important}
.glass-theme .focus-studio .focus-countdown,.glass-theme .focus-studio .studio-next-flag strong{color:#123d98!important}
.glass-theme .focus-studio .focus-progress-track{background:#b2cdf9!important}
.glass-theme .focus-studio .focus-progress-fill{background:linear-gradient(90deg,#0843ed,#346dfa,#85baff)!important}
.glass-theme .focus-studio .studio-progress-foot,.glass-theme .focus-studio .studio-progress-foot strong{color:#5673a8!important}
.glass-theme .focus-studio .studio-controls .studio-start{background:#0b4cff!important;color:white!important;border-color:#0a48ef!important;box-shadow:0 5px 0 #0d32ab60!important}
.glass-theme .focus-studio .studio-controls .studio-icon-btn{background:#f7faff!important;color:#163761!important;border-color:#d6e3fa!important}
.glass-theme .focus-studio .studio-time-dot{background:#1c58e2!important}
.glass-theme .focus-studio .studio-time-foot{color:#5073b4!important}
@media(max-width:760px){
 .glass-theme .main-content{width:calc(100% - 20px)!important}
 .topbar-center-tools .glass-toggle .glass-toggle-label{display:inline!important;font-size:9px!important;white-space:nowrap}
 .topbar-center-tools .dojo-bridge-shortcut span:last-child{display:inline!important;font-size:9px!important;white-space:nowrap}
 .topbar-center-tools .glass-toggle{gap:4px!important}
}
