/* One shared shell: the navigation stays mounted while the page changes below it. */
:root{--space-bg:#fbfcf8;--space-ink:#304d3c;--space-muted:#819078;--space-line:#e4ebdf;--space-radius:26px}
body{background:var(--space-bg)}
.app-shell-nav{position:relative;z-index:25;height:96px;background:var(--space-bg);view-transition-name:app-header}
.app-shell-nav-inner{max-width:1440px;height:100%;margin:auto;padding:0 5%;display:flex;align-items:center;justify-content:space-between;gap:24px}
.app-shell-nav .space-wordmark{font-size:21px;line-height:1.2;font-weight:800;gap:14px;white-space:nowrap;color:#36543f}
.app-nav-links{display:flex;align-items:center;gap:8px}
.app-nav-links a{display:block;text-decoration:none;border-radius:40px;padding:13px 24px;font-size:13px;font-weight:700;white-space:nowrap;color:#4c6650;border:1px solid transparent;transition:background .22s,border-color .22s,color .22s,box-shadow .22s}


#landing-view,#home-view,#profile-view,#flashcards-view{background:var(--space-bg);color:var(--space-ink);min-height:calc(100svh - 96px)}
[data-route-page]:not([hidden]){view-transition-name:page-content}
.home-view .home-main,.student-page .student-main,.student-page .flash-main{max-width:1320px;width:100%;margin:0 auto;padding:65px 40px 70px;min-height:0;display:block}
.home-main:before,.home-heading:after,.hanging-rail,.hanger-thread,.card-clip{display:none}
.home-heading,.student-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:35px;margin:0 0 45px}
.home-heading h1,.student-heading h1,.flash-main h1{font:600 clamp(38px,4.3vw,62px)/1.12 Manrope,sans-serif;letter-spacing:-2px;color:#304d3c;margin:0}
.home-heading h1>span{color:#73ad65}.home-heading .hub-intro{max-width:300px}.hub-intro p{font-size:15px;line-height:1.8;color:#819078;margin:0 0 12px}.hub-flash-link{font-size:13px;font-weight:700;color:#6d9360;text-decoration:none;border-bottom:1px solid #bfceaE;padding-bottom:3px}
.subject-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;position:relative;min-height:0;padding:0;margin:0;perspective:none}
.subject-gallery .subject-hanger{width:auto;margin:0;animation:none;transform:none}
.subject-gallery .subject-card{height:100%;border:1px solid var(--space-line);border-radius:var(--space-radius);background:white;transform:none;box-shadow:0 8px 25px #304d3c05;backdrop-filter:none;transition:transform .25s,box-shadow .25s;overflow:hidden}
.subject-gallery .subject-card:hover{transform:translateY(-5px);box-shadow:0 18px 35px #304d3c0c}
.subject-card:before,.subject-card-inner:after{display:none!important}.subject-gallery .subject-card-inner{padding:0;border-radius:inherit}
.subject-gallery .subject-art{height:300px;max-height:none;padding:22px;border:0;box-shadow:none;border-radius:0;background:#e6eedb;align-items:center}
.subject-gallery .cermat-art{background:#e1e9f3}
.subject-gallery .subject-art img{width:100%;height:100%;max-width:300px;max-height:270px;object-fit:contain;transition:transform .35s}
.subject-gallery .art-halo{display:none}.subject-gallery .subject-card:hover .subject-art img{transform:translateY(-4px)}
.subject-info{padding:25px 30px 0}.subject-gallery .subject-info h2{font-size:25px;letter-spacing:-.7px;margin:0 0 10px;color:#304d3c}.subject-gallery .subject-info p{font-size:14px;color:#819078;line-height:1.7}
.subject-gallery .subject-card-footer{margin:22px 30px 0;padding:16px 0 25px;border-top:1px solid #edf1e9}.subject-gallery .subject-card-footer>span:first-child{font-size:12px;color:#739265;letter-spacing:0}
.home-footer{max-width:1320px;width:100%;padding:25px 40px 35px;margin:0 auto;border-top:1px solid #e7ecE1;background:transparent;color:#819078;font-size:12px}.home-footer>span:last-child{font-size:12px;color:#97a18d}
.student-page .student-main{padding-top:65px}.student-heading{align-items:center}.student-heading .section-kicker{margin:0 0 16px}.student-heading>div>p:last-child{font-size:15px;color:#819078;line-height:1.8;margin:19px 0 0}.student-heading>img{width:120px;height:120px;object-fit:contain}.student-page .profile-panel{background:white;border:1px solid var(--space-line);border-radius:var(--space-radius);box-shadow:0 8px 25px #304d3c05;backdrop-filter:none;padding:30px;margin-top:24px}.profile-panel h2{font-size:23px;letter-spacing:-.6px;color:#304d3c}.student-toolbar{margin:0 0 30px;padding:0 0 24px;border-bottom:1px solid #e8edE3}.student-toolbar .secondary{background:white;border-color:#dfe7d7;box-shadow:none}.calendar-toolbar{margin-top:25px}.calendar-modes{background:#edf2e7}.student-page .flash-main{text-align:center;max-width:1000px}.student-page .study-flashcard{border-color:var(--space-line);background:white;box-shadow:0 8px 25px #304d3c05;border-radius:26px}.student-page .study-flashcard.answer-side{background:#e9f4e1}
.cermat-filters{justify-content:center;align-items:center;gap:16px}.cermat-filters label{min-width:0}.cermat-filters select{appearance:none;-webkit-appearance:none;background-image:none;text-align:center;text-align-last:center;padding:13px 24px;border-radius:999px;min-width:170px}.cermat-filters>span{margin:0!important}.cermat-filters select::-ms-expand{display:none}
::view-transition-old(root),::view-transition-new(root){animation:none;mix-blend-mode:normal}
::view-transition-group(app-header){animation:none}
::view-transition-old(app-header),::view-transition-new(app-header){animation:none}
::view-transition-old(page-content){animation:space-leave .22s cubic-bezier(.2,.7,.2,1) both;mix-blend-mode:normal}
::view-transition-new(page-content){animation:space-enter .3s cubic-bezier(.2,.7,.2,1) both;mix-blend-mode:normal}
@keyframes space-leave{to{opacity:0;transform:translateY(-6px)}}@keyframes space-enter{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
@media(max-width:850px){.app-shell-nav .space-wordmark{font-size:18px}.app-shell-nav-inner{padding:0 30px}.app-nav-links a{padding:12px 20px;font-size:12px}.home-view .home-main,.student-page .student-main{padding:45px 30px 55px}.home-heading,.student-heading{gap:25px;margin-bottom:32px}.subject-gallery .subject-art{height:250px}.subject-info{padding:24px 25px 0}.subject-gallery .subject-card-footer{margin-left:25px;margin-right:25px}.home-heading .hub-intro{max-width:250px}.hub-intro p{font-size:13px}}
@media(max-width:560px){.app-shell-nav{height:80px}.app-shell-nav-inner{padding:0 17px;gap:12px}.app-shell-nav .space-wordmark{font-size:14px;gap:8px;letter-spacing:-.6px}.app-shell-nav .space-mark{width:27px;height:30px;transform:scale(.8);transform-origin:left center;margin-right:-5px}.app-nav-links{gap:3px}.app-nav-links a{font-size:10px;padding:10px 12px;letter-spacing:0}#landing-view,#home-view,#profile-view,#flashcards-view{min-height:calc(100svh - 80px)}.home-view .home-main,.student-page .student-main,.student-page .flash-main{padding:35px 20px 45px}.home-heading{display:block;margin-bottom:30px}.home-heading h1,.student-heading h1,.flash-main h1{font-size:38px;letter-spacing:-1.5px;line-height:1.12}.home-heading .hub-intro{margin-top:22px;max-width:none}.hub-intro p{font-size:13px;margin-bottom:12px}.hub-flash-link{font-size:12px}.subject-gallery{grid-template-columns:1fr;gap:22px}.subject-gallery .subject-art{height:250px}.subject-gallery .subject-art img{max-height:225px}.subject-gallery .subject-info h2{font-size:23px}.subject-gallery .subject-info p{font-size:13px}.subject-gallery .subject-card-footer{padding-bottom:22px}.home-footer{padding:25px 20px;font-size:11px;display:flex;flex-direction:column;gap:10px;align-items:flex-start}.home-footer>span:last-child{font-size:11px;margin:0}.student-heading{gap:16px;align-items:center;margin-bottom:30px}.student-heading>img{width:80px;height:95px}.student-heading .section-kicker{font-size:9px;letter-spacing:1.2px}.student-heading>div>p:last-child{font-size:13px;margin-top:16px}.student-page .profile-panel{padding:23px 18px;border-radius:26px}.student-toolbar{padding-bottom:20px;gap:14px}.student-toolbar>span{font-size:11px}.student-page .flash-main .section-kicker{font-size:10px}.cermat-filters{gap:12px}.cermat-filters label{min-width:0!important;flex:1}.cermat-filters select{min-width:0;width:100%;padding:13px 12px;font-size:12px}.cermat-filters>span{width:100%;flex-basis:100%;text-align:center}}
@media(prefers-reduced-motion:reduce){::view-transition-group(*),::view-transition-old(*),::view-transition-new(*){animation:none!important}.subject-gallery .subject-card{transition:none}.subject-gallery .subject-card:hover{transform:none}}
.hero-mascot.model-loading>img{display:block;width:380px;height:460px;clip-path:none;top:0;left:50%;transform:translateX(-50%)!important;opacity:.65}.hero-mascot.model-loading .boki-head-canvas{opacity:0}
#profile-status{min-height:20px;margin:0 0 15px}.profile-loading .profile-panel:first-child{min-height:360px}.profile-loading i,.profile-loading span{display:block;height:16px;width:40%;max-width:280px;background:#edf3e7;border-radius:10px;margin:15px 0}.profile-loading i:nth-child(2){width:65%;height:11px;background:#f0f4ec}.profile-loading span{height:210px;max-width:none;width:100%;background:#f6f8f2;background-size:200% 100%;animation:profile-loading 1.8s ease-in-out infinite}#profile-dialog,#schedule-import,#schedule-add{background:#fff;border:1px solid var(--space-line);border-radius:26px;box-shadow:0 30px 90px #304d3c22}
@keyframes profile-loading{to{background-position:-200% 0}}@media(prefers-reduced-motion:reduce){.profile-loading span{animation:none}}
.subject-gallery .subject-hanger{max-width:none}
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}

/* Navigation shares the main call-to-action material and pressed interaction. */
.app-shell-nav .app-nav-links a{background:#20c951;border:1px solid #b5ed91;color:#174d27;box-shadow:0 3px 0 #259d42,inset 0 1px 0 #e2ffc29c;transition:transform .16s ease,box-shadow .16s ease,filter .16s ease}.app-shell-nav .app-nav-links{gap:12px}.app-shell-nav .app-nav-links a[aria-current=page]{filter:saturate(1.1);border-color:#75cc57}.app-shell-nav .app-nav-links a:focus-visible{outline:3px solid #315943;outline-offset:4px}@media(hover:hover) and (pointer:fine){.app-shell-nav .app-nav-links a:hover{transform:translateY(2px);box-shadow:0 1px 0 #259d42,inset 0 1px 0 #e2ffc29c}}.app-shell-nav .app-nav-links a:active{transform:translateY(3px);box-shadow:none}@media(max-width:650px){.app-shell-nav .app-nav-links{gap:7px}.app-shell-nav .app-nav-links a{padding:11px 12px}}@media(prefers-reduced-motion:reduce){.app-shell-nav .app-nav-links a{transition:none}.app-shell-nav .app-nav-links a:hover,.app-shell-nav .app-nav-links a:active{transform:none}}
