/* PINEAPPLE CLASSROOM · GREEN STUDIO / NOVEMBER 2026
   A single forest-green + porcelain design system, inspired by the reference
   image approved by the teacher. No blue, no glass toggle, no flattened UI.
   This stylesheet is loaded last so legacy page functions remain intact. */
:root{--fern:#07563f;--fern-dark:#064532;--fern-ink:#143b31;--fern-muted:#60746b;--fern-lime:#d6f7a5;--fern-mint:#d9f3e8;--fern-ivory:#f5f5f0;--fern-line:#d9e5dc}
html{scroll-behavior:smooth}
body.glass-theme,body.dark.glass-theme{
 --ink:#17372e;--navy:#113d31;--sub:#64776e;--teal:#066548;--teal-soft:#e2f3e9;--card:#fcfdf9;--paper:#f5f6f1;--line:#d9e6df;
 background:radial-gradient(ellipse at 81% 9%,rgba(150,180,157,.3),transparent 40%),
 radial-gradient(ellipse at 10% 82%,rgba(230,234,216,.88),transparent 55%),
 linear-gradient(135deg,#dfe4dc,#ecede6 62%,#dfe5dc)!important;
 color:#17392f!important
}
body.glass-theme .main-area{background:transparent!important}
body.glass-theme .main-content{background:linear-gradient(125deg,rgba(254,254,250,.97),rgba(248,250,244,.95) 75%,rgba(242,246,238,.96))!important;border:1px solid rgba(49,109,83,.20)!important;border-radius:24px!important;box-shadow:0 27px 76px rgba(40,69,53,.13),0 9px 29px rgba(22,71,45,.045)!important;padding:clamp(14px,2.2vw,29px)!important;overflow:clip}
body.glass-theme .footer-note{color:#315346!important;opacity:.85}
/* Navigation sidebar with centered moving icons */
body.glass-theme .sidebar,body.dark.glass-theme .sidebar{background:linear-gradient(156deg,#064a36 0%,#093c2e 55%,#062f26 100%)!important;border-right:1px solid #ffffff2a!important;box-shadow:6px 0 30px #0b3e2c29!important}
body.glass-theme .brand-symbol{background:#e1f9db18!important;border:1px solid #dcf8da5a!important;color:#def7c4!important;border-radius:13px!important}
body.glass-theme .sidebar .brand strong,body.glass-theme .sidebar .brand strong span{color:#f0fff6!important}
body.glass-theme .sidebar .brand small{color:#c3e2ce!important}
body.glass-theme .sidebar .sidebar-label,body.glass-theme .sidebar .nav-group-label{color:#b0d3bf!important}
body.glass-theme .sidebar .nav-link{color:#deefe4!important;border-radius:11px!important;min-height:45px!important}
body.glass-theme .sidebar .nav-link:hover,body.glass-theme .sidebar .nav-link:focus-visible{background:#ffffff1b!important;border-color:#d1f0d46b!important;transform:translateX(3px)!important}
body.glass-theme .sidebar .nav-link.active{background:linear-gradient(98deg,#efffe527,#ffffff10)!important;border-color:#c8eacf71!important;box-shadow:inset 3px 0 #d5fba2,0 5px 18px #002b191d!important}
body.glass-theme .sidebar .nav-link .nav-icon-wrap{background:#e4ffed14!important;border-color:#d9f0dd25!important;color:#cde8da!important;display:grid!important;place-items:center!important}
body.glass-theme .sidebar .nav-link .nav-icon-wrap svg{width:17px!important;height:17px!important;display:block;margin:auto}
body.glass-theme .sidebar .nav-link:hover .nav-icon-wrap,body.glass-theme .sidebar .nav-link.active .nav-icon-wrap{background:#dbf9c22a!important;border-color:#d0f1bd80!important;color:#e6ffd4!important}
body.glass-theme .sidebar .nav-active-spark{color:#dafba8!important}
body.glass-theme .sidebar .class-link,body.glass-theme .sidebar .sidebar-settings{color:#e4f5e9!important}
body.glass-theme .sidebar .class-link:is(:hover,.selected){background:#edffe123!important;border-color:#c4f1bb58!important}
body.glass-theme .sidebar .class-count{color:#d0efdc!important}
body.glass-theme .sidebar .dojo-side-link{background:#ffffff19!important;color:#ddf8e7!important;border:1px solid #d6ffe137!important}
body.glass-theme .sidebar .sidebar-credit{background:#eafff00b!important;border-color:#eaffec23!important;color:#cdeed8!important}
body.glass-theme .sidebar .sidebar-credit strong{color:white!important}
body.glass-theme .sidebar .sidebar-credit span{color:#b4d6be!important}
body.glass-theme .sidebar .sidebar-credit em{color:#d3f9c0!important}
body.glass-theme .sidebar .side-promo{background:#e8ffd20c!important;border-color:#d5ffbd36!important}
body.glass-theme .sidebar .side-promo strong,body.glass-theme .sidebar .side-promo p{color:#f1fff1!important}
/* Topbar reflects reference: slim, white, centered Bismillah. */
body.glass-theme .topbar,body.dark.glass-theme .topbar{background:rgba(252,253,247,.94)!important;border-bottom:1px solid #d5e7da!important;box-shadow:0 5px 22px #284f3710!important}
body.glass-theme .topbar .crumb{color:#4c6a59!important}
body.glass-theme .topbar-center-tools .topbar-bismillah{color:#086043!important}
body.glass-theme .topbar-center-tools .dojo-bridge-shortcut,body.glass-theme .topbar .topbar-action,body.glass-theme .topbar .top-class-switch,body.glass-theme .topbar .icon-button{color:#13533f!important;background:#ffffffca!important;border:1px solid #cddfd2!important;border-radius:24px!important;box-shadow:none!important}
body.glass-theme .topbar .topbar-action:hover,body.glass-theme .topbar .icon-button:hover{background:#e9f7e9!important;border-color:#9ec9ab!important}
body.glass-theme .topbar .bridge-emoji{color:#0d6b48!important}
/* Screenshot-matched interactive hero, rendered from real HTML */
body.glass-theme .paper-hero.atelier-hero.fern-hero,body:not(.glass-theme) .paper-hero.atelier-hero.fern-hero{
 display:flex!important;flex-direction:column!important;width:100%!important;height:auto!important;min-height:570px!important;position:relative!important;overflow:hidden!important;
 background:radial-gradient(ellipse at 54% 61%,#f4f5ee 0%,#f5f6f0 57%,#eef1e7 100%)!important;
 color:#18392f!important;border:2px solid #0b6548!important;border-radius:27px!important;
 box-shadow:0 18px 35px #1e664117,0 5px 10px #164b3211,inset 0 2px 12px #ffffffb8!important;
 isolation:isolate;box-sizing:border-box!important
}
body.glass-theme .fern-hero::before,body.glass-theme .fern-hero::after{content:none!important;display:none!important}
.fern-hero-top{position:relative;display:flex;align-items:center;justify-content:center;gap:18px;min-height:72px;padding:24px 26px 8px;z-index:2}
.fern-hero-brand{display:flex;align-items:center;justify-content:center;gap:6px;font-size:clamp(19px,1.85vw,29px);line-height:1.1;letter-spacing:-1.15px;font-weight:830;color:#076044;white-space:nowrap}
.fern-hero-brand b{font-weight:900}
.fern-hero-brand em{font-family:Georgia,serif;letter-spacing:-.4px;font-weight:650;font-size:.81em}
.fern-brand-mark{display:grid;place-items:center;width:34px;height:34px;border:2px solid #0d7456;border-radius:50%;font-size:21px;font-weight:800;letter-spacing:0}
.fern-hero-class{position:absolute;right:23px;top:18px;color:#6f8678;font-weight:780;font-size:9px;letter-spacing:1.1px;white-space:nowrap}
.fern-hero-nav{position:relative;z-index:2;align-self:center;display:flex;align-items:center;justify-content:center;max-width:calc(100% - 30px);gap:2px;margin:5px 12px 0;padding:5px;background:#ffffffed;border-radius:99px;box-shadow:0 9px 20px #205b3612;border:1px solid #e6efe6;overflow-x:auto;scrollbar-width:thin}
.fern-hero-nav button{font:750 clamp(10px,.93vw,12px)/1.15 'Segoe UI',Arial,sans-serif;white-space:nowrap;color:#175640;background:transparent;border:0;border-radius:99px;min-height:39px;padding:10px clamp(11px,1.3vw,21px);cursor:pointer;transition:background-color .2s,transform .2s,color .2s}
.fern-hero-nav button:is(:hover,:focus-visible){background:#e0f7df;outline-offset:2px;transform:translateY(-1px)}
.fern-hero-nav .fern-nav-current{background:#d2fa9e!important;color:#115238!important}
.fern-hero-layout{position:relative;z-index:1;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;flex:1;min-height:355px;padding:10px 18px 2px clamp(30px,4.2vw,65px);gap:clamp(8px,2vw,28px)}
.fern-hero-copy{position:relative;z-index:2;min-width:0;padding:24px 0}
.fern-hero-eyebrow{display:inline-flex;align-items:center;gap:9px;color:#547968;font-size:10px;font-weight:820;letter-spacing:1.5px}
.fern-fresh-dot{width:7px;height:7px;display:block;background:#80cb81;border-radius:50%;box-shadow:0 0 0 4px #b8e5bd53}
body.glass-theme .paper-hero.atelier-hero.fern-hero h1{display:block!important;margin:19px 0 0!important;font-family:'Segoe UI',Arial,sans-serif!important;font-size:clamp(29px,3.12vw,48px)!important;font-weight:750!important;letter-spacing:-1.75px!important;line-height:1.11!important;color:#173c32!important;max-width:570px!important;text-shadow:none!important;overflow-wrap:normal!important}
body.glass-theme .paper-hero.atelier-hero.fern-hero h1 span{color:#086a4c!important;letter-spacing:inherit!important;font-weight:800!important;text-transform:none!important}
.fern-hero-copy>p{font-size:clamp(12px,1vw,14px);max-width:400px;color:#687b6e;line-height:1.68;margin:18px 0 23px}
.fern-hero-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px}
.fern-hero-actions button{appearance:none;border:1px solid transparent;min-height:43px;border-radius:999px;padding:12px 16px;font-size:12px;font-weight:760;cursor:pointer;white-space:nowrap;transition:transform .18s ease,box-shadow .18s ease,background .18s ease}
.fern-hero-actions button span{padding-left:7px}
.fern-hero-actions button:hover{transform:translateY(-2px)}
.fern-hero-primary{background:#0d674b!important;color:white!important;box-shadow:0 7px 16px #14684d20}
.fern-hero-primary:hover{background:#084f3c!important;box-shadow:0 9px 18px #0c5e4231}
.fern-hero-secondary{background:#d9f4e5!important;color:#14593f!important;border-color:#c2e8d1!important}
.fern-hero-secondary:hover{background:#bceacf!important}
.fern-hero-art{position:relative;display:grid;place-items:center;align-self:center;justify-self:center;min-width:0;min-height:0;width:100%;height:100%;pointer-events:none}
.fern-hero-art img{display:block;max-width:none;width:min(112%,620px);height:auto;max-height:400px;object-fit:contain;mix-blend-mode:multiply;filter:saturate(.98) drop-shadow(0 17px 18px #4874571c);-webkit-mask-image:radial-gradient(ellipse 76% 73% at 49% 48%,#000 69%,transparent 100%);mask-image:radial-gradient(ellipse 76% 73% at 49% 48%,#000 69%,transparent 100%)}
.fern-hero-links{z-index:2;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-items:stretch;gap:0;padding:13px clamp(20px,3.4vw,49px) 8px}
.fern-hero-links button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;border:0;border-right:1px solid #c8dcd0;background:transparent;color:#173f30;cursor:pointer;min-width:0;min-height:76px;transition:transform .2s ease,color .2s ease}
.fern-hero-links button:last-child{border-right:0}
.fern-hero-links button:hover{transform:translateY(-3px);color:#086e4e}
.fern-link-icon{width:40px;height:40px;border:1px solid #d2e7d0;border-radius:13px;display:grid;place-items:center;background:#e7f5e4;color:#116147;transition:transform .25s ease,background .25s ease}
.fern-hero-links button:hover .fern-link-icon{transform:translateY(-3px) rotate(-4deg);background:#cbf5d5}
.fern-link-icon svg{width:23px;height:23px;display:block}
.fern-hero-links strong{font-size:11px;font-weight:770;line-height:1.25;text-align:center}
.fern-hero-statline{z-index:2;display:flex;align-items:center;justify-content:center;gap:27px;margin:0 27px;padding:13px 0 17px;border-top:1px solid #e0e9dd;color:#788d7f;font-size:9px;font-weight:780;letter-spacing:1.1px}
/* Secondary dashboard cards: all within the reference's restrained green palette */
body.glass-theme .paper-chapter h2{color:#163f32!important;font-family:'Segoe UI',Arial,sans-serif!important;font-weight:760!important;letter-spacing:-1px!important}
body.glass-theme .paper-chapter .paper-chapter-tag,body.glass-theme .paper-chapter p{color:#658371!important}
body.glass-theme .paper-action-card{border-color:#d3e4d9!important;background:linear-gradient(140deg,#fcfefa,#eff7ed)!important;color:#194938!important;box-shadow:0 9px 21px #154b2910!important;border-radius:17px!important}
body.glass-theme .paper-action-card:hover{border-color:#83bca0!important;transform:translateY(-4px)!important;box-shadow:0 15px 25px #215b321a!important}
body.glass-theme .paper-action-card .paper-card-head,body.glass-theme .paper-action-card small,body.glass-theme .paper-action-card .paper-action-bottom{color:#527762!important}
body.glass-theme .paper-action-card strong{color:#114b37!important}
body.glass-theme .paper-action-card .paper-action-graphic{color:#107354!important}
body.glass-theme .card,body.glass-theme .setting-card,body.glass-theme .weekly-plan-card,body.glass-theme .class-leader-card{background:rgba(255,255,253,.82)!important;border:1px solid #dbe8dc!important;border-radius:16px!important;box-shadow:0 9px 25px #2055380b!important;color:#244a3b!important}
body.glass-theme .card h2,body.glass-theme .card h3{color:#194b39!important}
body.glass-theme .card .pg-note,body.glass-theme .stat-tip{color:#718277!important}
body.glass-theme .btn-primary,body.glass-theme button.btn-primary{background:#0b694d!important;border-color:#0b694d!important;color:white!important}
body.glass-theme .btn-primary:hover{background:#084e3b!important}
body.glass-theme .btn:not(.btn-primary),body.glass-theme select,body.glass-theme .input,body.glass-theme .textarea{border-color:#d5e5da!important;color:#1c503e!important}
body.glass-theme .premium-dojo-strip{background:linear-gradient(120deg,#094c39,#0a6549)!important;border:1px solid #e3ffd83b!important;border-radius:16px!important;box-shadow:0 13px 26px #0658371e!important}
body.glass-theme .premium-dojo-strip *{color:#effff0}
body.glass-theme .class-lead-hero{background:linear-gradient(115deg,#e8f6e5,#f7f9ec)!important;color:#22513d!important}
body.glass-theme .class-lead-hero strong,body.glass-theme .class-lead-hero span{color:#22513d!important}
body.glass-theme .stat-icon.blue,body.glass-theme .stat-icon.teal,body.glass-theme .stat-icon.gold,body.glass-theme .stat-icon.rose{color:#096547!important;background:#e3f4e7!important}
body.glass-theme .stat-value{color:#173f30!important}
body.glass-theme .paper-ticker{background:linear-gradient(100deg,#0d5a43,#0c6a4e)!important;color:#f4ffeb!important;border-radius:11px!important}
body.glass-theme .page-heading h1{font-family:'Segoe UI',Arial,sans-serif!important;color:#184934!important;font-weight:760!important}
body.glass-theme .page-heading .eyebrow,body.glass-theme .page-heading p{color:#647f6c!important}
/* Focus timer keeps the tested instrument geometry but uses forest green */
body.glass-theme .focus-studio .studio-dial-signature{border-color:#b1d6b9!important;background:radial-gradient(circle at 33% 15%,#255747,#104333 44%,#072d23 82%)!important;box-shadow:inset 0 1px 11px #efffe522,inset 0 -18px 31px #001f1a64,0 5px 11px #0f482015,0 14px 30px #0b48262c!important}
body.glass-theme .focus-studio .studio-dial-signature .ring-progress{stroke:#c7f7a1!important;filter:drop-shadow(0 0 3px #bef5b05f)!important}
body.glass-theme .focus-studio .studio-index-major{stroke:#d7f6c8}
body.glass-theme .focus-studio .studio-clock-state{border-color:#c4f3cc63!important;color:#edffdf!important}
body.glass-theme .focus-studio .studio-dial-topline,body.glass-theme .focus-studio .studio-time-foot{color:#64836c!important}
body.glass-theme .focus-studio .studio-dial-monogram{color:#c7f29f!important}
body.glass-theme .focus-studio .studio-dial-signature::after{border-color:#a1ceaa!important}
body.glass-theme .projector{background:radial-gradient(ellipse at top,#195744,#082e26 82%)!important}
body.glass-theme .projector .focus-studio.focus-experience{background:linear-gradient(140deg,#1f4e3e,#082e25)!important}
/* Keep form fields, logs and controls readable */
body.glass-theme .noise-student-list,body.glass-theme .premium-event,body.glass-theme .premium-dojo-panel{border-color:#d4e7d9!important}
body.glass-theme .premium-point-queue{color:#24513d!important}
body.glass-theme .noise-student-list label:has(input:checked){background:#e3f6e8!important}
body.glass-theme .noise-student-list input{accent-color:#11744f}
body.glass-theme .weekly-plan-card,body.glass-theme .class-leader-card{scroll-margin-top:30px}
body.glass-theme .topbar-center-tools{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(120px,147px)!important;gap:12px!important;width:min(100%,400px)!important}
body.glass-theme .topbar-center-tools .topbar-faith-date{grid-column:1;min-width:0}
body.glass-theme .topbar-center-tools .dojo-bridge-shortcut{grid-column:2}
@media(max-width:1440px){.fern-hero-class{display:none}.fern-hero-layout{padding-left:30px}.fern-hero-copy h1{font-size:clamp(28px,3.2vw,42px)!important}}
@media(max-width:1190px){
 .fern-hero-top{padding:23px 20px 6px}
 .fern-hero-layout{grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:8px;padding:12px 16px 4px 30px}
 body.glass-theme .paper-hero.atelier-hero.fern-hero h1{font-size:clamp(27px,3.7vw,41px)!important;letter-spacing:-1.3px!important}
 .fern-hero-copy>p{font-size:12px}
 .fern-hero-art img{width:114%}
 .fern-hero-nav button{padding:10px 12px}
}
@media(max-width:830px){
 body.glass-theme .main-content{border-radius:17px!important}
 body.glass-theme .paper-hero.atelier-hero.fern-hero{min-height:0!important;border-radius:21px!important}
 .fern-hero-top{min-height:60px;padding:19px 12px 7px}
 .fern-hero-brand{font-size:clamp(17px,3.6vw,25px);white-space:normal;text-align:center}
 .fern-hero-nav{align-self:stretch;justify-content:flex-start;overflow-x:auto;white-space:nowrap;min-width:0;max-width:calc(100% - 22px);margin:4px 11px}
 .fern-hero-nav button{flex:none}
 .fern-hero-layout{grid-template-columns:1fr;gap:0;padding:10px 20px 0;text-align:center}
 .fern-hero-copy{padding:19px 0 3px}
 .fern-hero-eyebrow{justify-content:center;font-size:9px}
 body.glass-theme .paper-hero.atelier-hero.fern-hero h1{max-width:660px!important;margin:12px auto 0!important;font-size:clamp(29px,5vw,40px)!important;line-height:1.12!important}
 .fern-hero-copy>p{margin:12px auto 14px;max-width:455px}
 .fern-hero-actions{justify-content:center}
 .fern-hero-art{height:auto;max-height:270px;min-height:190px;overflow:hidden;margin:5px auto 0;width:min(100%,560px)}
 .fern-hero-art img{width:min(100%,435px);max-height:260px}
 .fern-hero-links{padding:0 18px 8px}
 .fern-hero-statline{padding:10px 0}
}
@media(max-width:540px){
 .fern-hero-brand{font-size:17px;gap:4px;letter-spacing:-.5px}
 .fern-brand-mark{width:25px;height:25px;font-size:14px}
 .fern-hero-nav{padding:3px}
 .fern-hero-nav button{min-height:36px;font-size:10px;padding:9px 11px}
 .fern-hero-layout{padding:8px 13px 0}
 .fern-hero-copy{padding-top:15px}
 body.glass-theme .paper-hero.atelier-hero.fern-hero h1{font-size:clamp(25px,6.5vw,34px)!important;letter-spacing:-1.0px!important}
 .fern-hero-copy>p{font-size:11px}
 .fern-hero-actions{gap:7px}
 .fern-hero-actions button{min-height:38px;padding:9px 11px;font-size:10px}
 .fern-hero-art{max-height:210px;min-height:140px}
 .fern-hero-art img{max-height:205px}
 .fern-hero-links{padding:5px 8px;gap:1px}
 .fern-hero-links button{min-height:66px;gap:4px}
 .fern-link-icon{width:32px;height:32px;border-radius:10px}
 .fern-link-icon svg{width:18px;height:18px}
 .fern-hero-links strong{font-size:9px}
 .fern-hero-statline{margin:0 12px;flex-wrap:wrap;gap:7px 13px;font-size:8px}
 body.glass-theme .topbar-center-tools{width:100%!important;grid-template-columns:minmax(0,1fr) minmax(106px,125px)!important;gap:5px!important}
 body.glass-theme .topbar-center-tools .topbar-bismillah{font-size:clamp(14px,4vw,19px)!important}
}
@media(prefers-reduced-motion:reduce){.fern-hero-nav button,.fern-hero-actions button,.fern-hero-links button,.fern-link-icon{transition:none!important}}

/* Header collision guard at laptop and tablet widths. Never cram 5 controls into a narrow grid. */
@media (min-width:681px) and (max-width:1300px){
 body.glass-theme .topbar-right .pick-student-button,body.glass-theme .topbar-right .teacher-lock-button{display:none!important}
 body.glass-theme .topbar-right{display:flex!important;flex-wrap:nowrap!important;align-items:center;justify-content:flex-end!important;gap:10px!important}
 body.glass-theme .topbar .top-class-switch{flex:none!important;min-width:113px!important;width:113px!important;max-width:113px!important}
 body.glass-theme .topbar .avatar{flex:none!important;min-width:36px!important;width:36px!important}
 body.glass-theme .topbar .topbar-left{min-width:0!important}
}

/* Floating Focus controls: distribute five+ actions without collisions. */
.focus-studio .studio-controls{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.focus-studio .studio-controls button{display:flex;justify-content:center;align-items:center;gap:7px;min-width:0;overflow-wrap:anywhere;white-space:normal}
.floating-help{border:1px solid #dce9dc;background:linear-gradient(145deg,#fffef9,#f0f6ec)}
.floating-help h2{margin:0 0 9px;color:#184c38}.floating-help p{line-height:1.5}
[data-floating-connect-status]{font-weight:750;color:#1d694d}
@media(max-width:850px){.focus-studio .studio-controls{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:410px){.focus-studio .studio-controls{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}}
