@font-face{font-family:KinSans;src:url(/assets/fonts/outfit-latin.woff2) format("woff2");font-display:swap;font-weight:100 900}
/* Site chrome owns its stacking context; nested card headers cannot cover it. */
body .ks-legacy-header{display:none!important}
body>.ks-site-header{position:relative!important;z-index:200!important;isolation:isolate;display:block!important;overflow:visible!important;width:100%!important;max-width:none!important;margin:0!important;padding:0!important;background:#fffefa!important;border:0!important;border-bottom:1px solid #d4ddd4!important;box-shadow:none!important;color:#143e3c!important;font-family:KinSans,Outfit,system-ui,sans-serif!important}
.ks-header-row{max-width:1480px;margin:auto;display:flex;align-items:center;gap:20px;min-height:78px;padding:12px 26px}
.ks-site-header .ks-brand{display:flex;align-items:center;gap:10px;color:#155650;text-decoration:none;font-size:23px;font-weight:650;letter-spacing:-.04em;flex-shrink:0}
.ks-site-header .ks-primary{display:flex!important;align-items:center;gap:3px!important;margin:0!important;padding:0!important;flex:1}
.ks-site-header :is(a,button,summary){font:inherit;box-sizing:border-box}
.ks-site-header .ks-primary>a,.ks-site-header .ks-primary>button,.ks-site-header summary,.ks-site-header #noticeButton{min-height:44px!important;display:flex;align-items:center;gap:7px;padding:10px 12px!important;margin:0!important;font-size:14px!important;line-height:1.4!important;font-weight:550!important;color:#164b43!important;text-decoration:none!important;background:transparent!important;border:1px solid transparent!important;border-radius:8px!important;white-space:nowrap!important;cursor:pointer}
.ks-site-header :is(a,button,summary):hover{background-color:#edf2e9!important;color:#164b43!important}
.ks-site-header :is(a,button,summary):focus-visible{outline:3px solid #1779a1!important;outline-offset:3px}
.ks-site-header details{position:relative!important;display:block!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;min-width:0}
.ks-site-header summary{list-style:none}.ks-site-header summary::-webkit-details-marker{display:none}.ks-site-header summary:after{content:'';width:6px;height:6px;border-right:1.5px solid;border-bottom:1.5px solid;transform:rotate(45deg);margin:0 0 4px 8px}
.ks-site-header details[open]>summary{background:#e7efeb!important;border-color:#a9beb5!important}
.ks-site-header .ks-utilities{margin-left:auto}.ks-site-header .account-nav{display:flex!important;align-items:center;gap:3px!important;padding:0!important;margin:0!important;width:auto!important;grid-template-columns:none!important}
.ks-site-header .ks-menu-panel,.ks-site-header .header-menu-items{position:absolute!important;z-index:10!important;top:calc(100% + 9px)!important;right:0!important;left:auto!important;display:flex!important;flex-direction:column!important;gap:4px!important;width:280px!important;max-width:calc(100vw - 32px)!important;max-height:min(650px,calc(100dvh - 120px))!important;overflow:auto!important;overscroll-behavior:contain;padding:10px!important;margin:0!important;background:#fffefa!important;border:1px solid #c8d6cb!important;border-radius:12px!important;box-shadow:0 18px 48px #12332b26!important}
.ks-site-header .ks-study-menu>.ks-menu-panel{left:0!important;right:auto!important;width:290px!important}
.ks-site-header details:not([open])>:not(summary){display:none!important}
.ks-site-header .ks-menu-panel :is(a,button),.ks-site-header .header-menu-items>:is(a,button){display:flex!important;align-items:center!important;justify-content:flex-start!important;text-align:left!important;min-height:44px!important;padding:10px 12px!important;width:100%!important;max-width:none!important;border:0!important;border-radius:6px!important;background:transparent!important;color:#164b43!important;text-decoration:none!important;font-size:15px!important;line-height:1.5!important;white-space:normal!important;margin:0!important}
.ks-site-header .ks-menu-panel .app-nav{display:flex!important;flex-direction:column!important;align-items:stretch!important;width:100%!important;gap:4px!important;padding:0!important;grid-template-columns:none!important;max-height:none!important;overflow:visible!important}
.ks-site-header .ks-menu-panel .header-menu-items{position:static!important;box-shadow:none!important;border:0!important;background:#f1f5ed!important;max-height:none!important;width:100%!important}
.ks-site-header .header-identity{padding:10px 12px!important;margin:0 0 6px!important;border-bottom:1px solid #d4ddd4;font-size:13px!important;color:#526b60!important}
.ks-site-header .ks-wallet{display:flex!important;align-items:center;gap:7px;flex-shrink:0;padding:8px 12px!important;min-height:44px!important;margin:0!important;border:1px solid #d2dfd2!important;border-radius:24px!important;background:#edf3e9!important;color:#174b41!important;font-size:13px!important;text-decoration:none!important;max-width:180px}
.ks-site-header .ks-wallet img{width:25px!important;height:25px!important}.ks-site-header .ks-menu-toggle{display:none;min-height:44px;padding:8px 12px;color:#17564c;background:#fffefa;border:1px solid #adc4b6;border-radius:8px;font-size:14px}.ks-mobile-navigation{display:none}.ks-page-navigation{display:flex;gap:10px;flex-wrap:wrap;max-width:1200px;margin:0 auto;padding:15px 24px;border-bottom:1px solid #d4ddd4}.ks-page-navigation a{min-height:44px;display:flex;align-items:center;padding:8px 14px;color:#155650;border:1px solid #c8d6cb;border-radius:8px;font:500 15px KinSans,system-ui;text-decoration:none}
body.studio .home-rail-card>header{position:static!important;z-index:auto!important;isolation:auto;transform:none;backdrop-filter:none}
@media(max-width:1200px){.ks-header-row{gap:9px;padding:12px 18px}.ks-site-header .ks-primary>a,.ks-site-header .ks-primary>button,.ks-site-header summary{padding:10px 9px!important;font-size:13px!important}.ks-site-header #noticeButton{font-size:12px!important;padding:10px 7px!important}}
@media(max-width:1200px){.ks-header-row{min-height:70px;padding:12px 20px;gap:12px}.ks-site-header .ks-brand{font-size:23px;margin-right:auto}.ks-site-header .ks-menu-toggle{display:block}.ks-site-header .ks-wallet{font-size:13px!important;padding:7px 10px!important}.ks-site-header .ks-wallet .kins-label,.ks-site-header .ks-wallet>span:last-child{display:none}.ks-site-header .ks-mobile-navigation{padding:0 20px 20px;max-height:calc(100dvh - 75px);overflow:auto;overscroll-behavior:contain}.ks-site-header.ks-menu-open .ks-mobile-navigation{display:block}.ks-site-header .ks-primary{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important}.ks-site-header .ks-primary>a,.ks-site-header .ks-primary>button,.ks-site-header summary{min-height:48px!important;font-size:16px!important;padding:12px!important;white-space:normal!important;justify-content:flex-start}.ks-site-header .ks-utilities{border-top:1px solid #d5dfd4;margin:14px 0 0;padding-top:14px}.ks-site-header .account-nav{display:flex!important;flex-wrap:wrap}.ks-site-header .header-menu{flex:1 1 140px;width:auto!important}.ks-site-header .ks-menu-panel,.ks-site-header .header-menu-items{position:static!important;max-width:none!important;width:100%!important;max-height:none!important;box-shadow:none!important;margin:6px 0!important;padding:6px!important;background:#f4f7ef!important}.ks-site-header .ks-study-menu[open]{grid-column:1/-1}.ks-site-header .account-nav:has(.header-menu[open]){display:block!important}.ks-site-header .ks-study-menu>.ks-menu-panel{width:100%!important}.ks-page-navigation{padding:12px 18px}}
@media(max-width:360px){.ks-header-row{padding:10px 14px;gap:8px}.ks-site-header .ks-brand{font-size:21px;gap:6px}.ks-site-header .ks-brand img{width:22px}.ks-site-header .ks-wallet{padding:6px 8px!important}.ks-site-header .ks-mobile-navigation{padding:0 14px 16px}}
@media(prefers-reduced-motion:reduce){.ks-site-header *{animation:none!important;transition:none!important}}
.ks-site-header .ks-wallet{order:0!important}.ks-site-header .ks-menu-toggle{order:10!important}

/* Hidden controls stay hidden even when the menu supplies its own display rules. */
.ks-site-header [hidden]{display:none!important}.ks-admin-entry{display:flex;align-items:center;gap:20px;margin:0 0 24px;padding:20px 24px;border:1px solid #adc5b5;border-left:4px solid #185b55;border-radius:10px;background:#fffefa}.ks-admin-entry>div{flex:1}.ks-admin-entry strong,.ks-admin-entry span{display:block}.ks-admin-entry strong{font-size:19px}.ks-admin-entry span{font-size:14px;color:#526c62;margin-top:5px}.ks-admin-entry a{display:flex;align-items:center;min-height:46px;padding:10px 16px;border-radius:8px;background:#185b55;color:#fff;text-decoration:none;white-space:nowrap}@media(max-width:600px){.ks-admin-entry{flex-wrap:wrap;padding:18px}.ks-admin-entry>div{flex-basis:100%}.ks-admin-entry a{width:100%;justify-content:center}}

body:has(.ks-menu-open) :is(#supportToast,#supportBubble){display:none!important}.admin-page #supportBubble{position:static!important;display:block;margin:0 24px 24px auto;box-shadow:none!important}.ks-site-header .header-menu-items>a[href="/admin.php"]{order:-1!important;font-weight:650!important}

.ks-site-header #adminActionsMenu .header-menu-items>button:not(#adminEditButton){display:none!important}body:has(.ks-site-header details[open]) #supportToast{display:none!important}

.ks-site-header .header-menu-items:has(#adminEditButton)>a[href="/?editDiagram=1"]{display:none!important}

.ks-site-header #accountMenu .header-identity{order:-1}.ks-site-header #accountMenu :is(#accountButton,[data-study-records-link]){order:0}.ks-site-header #accountMenu :is([data-account-options],a[href="/manage-account.php"]){order:1}.ks-site-header #accountMenu :is(#settingsButton,[data-open-settings]){order:2}.ks-site-header #accountMenu :is([data-playroom-link],a[href="/playroom.php"]){order:3}.ks-site-header #accountMenu a[href^="/playroom.php?profile="]{order:4}.ks-site-header #accountMenu :is([data-avatar-link],a[href="/avatar.php"]){order:5}.ks-site-header #accountMenu :is([data-shop-link],a[href="/shop.php"]){order:6}.ks-site-header #accountMenu [data-change-learning-role]{order:7}.ks-site-header #accountMenu [data-shop-suggestions]{order:8}.ks-site-header #accountMenu :is([data-open-updates],.whats-new-button){order:9}.ks-site-header #accountMenu #supportMenuButton{display:flex!important;order:10}.ks-site-header #accountMenu a[href="/contact.html"]{order:11}.ks-site-header #accountMenu #ksHeaderSignout{order:12}

.ks-site-header .ks-menu-panel .app-nav{display:flex!important}.ks-site-header .ks-primary>[aria-current=page],.ks-site-header .ks-menu-panel [aria-current=page],.ks-site-header summary[aria-current=page],body.studio:not([data-screen=home]) .ks-site-header .ks-study-menu>summary{background:#e7efeb!important;border-color:#b8cdbf!important}

body.studio .ks-admin-entry a{color:#fff!important;font-weight:600}

/* Legacy sliding pills and underlines do not belong inside disclosure menus. */
.ks-site-header .nav-active-indicator{display:none!important}
.ks-site-header .app-nav button::before,.ks-site-header .app-nav button::after{content:none!important}

@media(max-width:360px){.ks-header-row{padding:12px 14px;gap:8px}.ks-site-header .ks-brand{font-size:21px;gap:6px}.ks-site-header .ks-brand>:is(img,svg){max-width:24px;max-height:28px}.ks-site-header .ks-wallet{padding:7px 8px!important;gap:5px;max-width:92px}.ks-site-header .ks-wallet img{width:22px!important;height:22px!important}.ks-site-header .ks-wallet strong{font-size:13px}.ks-site-header .ks-menu-toggle{padding:8px 10px;flex-shrink:0}.ks-site-header .ks-mobile-navigation{padding-inline:14px}}
