/* Nature palette: warm paper, bark and moss. */
/* Midnight pond: a shared calm palette across every study surface. */
:root{color-scheme:dark;--bg:#f2f4f0;--paper:#f0f2ed;--ink:#475137;--muted:#596545;--line:#e9ebe5;--sage:#eef0ec;--green:#556142;--accent:#4f5a3d;--red:#515c3f;--red-bg:#eef0eb;--space-bg:#f2f4f0;--space-ink:#475137;--space-muted:#596545;--space-line:#e9ebe5;--rf-focus:#515d3f;--rf-ink:#475137;--rf-muted:#596545;--rf-line:#e9ebe5;--liquid-surface:#eff1ecd6;--liquid-edge:#63704d46;--liquid-shadow:0 14px 38px #f4f6f33d,inset 0 1px 0 #4f5a3d2b,inset 0 -1px 0 #f3f4f166;--f1:#566243;--f2:#62704c}
body,body:has(#landing-view:not([hidden])){background:#f2f4f0!important;color:#475137!important}
#landing-view{background:#f2f4f0!important}
body :is(h1,h2,h3,h4,p,label,summary,strong,small,span,em,blockquote,li,dt,dd,td,th){color:inherit}
body :is(.heading,.student-heading,.home-heading,.subject-info,.question-card,.profile-panel,.learning-card,.boki-speech,.info-content,.exam-review,.cermat-native-question,.cermat-native-contexts,.study-guide-head,.study-topic,.dash-card,.dash-kpi,.dash-head,.stats,.calendar-event-detail){color:#475137!important}
body :is(#section-title,#home-title,.welcome-copy h1,.dash-head h2,.space-wordmark,.space-brand,.heading h1,.student-heading h1,.subject-info h2,.question-card h2,.boki-speech h2,.profile-panel h2,.profile-panel h3,.study-topic h3,.dialog-head h2,.stat-number,.dash-kpi strong,.dash-card h3,.exam-score,.exam-timer){color:#464f36!important;-webkit-text-fill-color:currentColor!important}
body :is(.section-kicker,.side-label,.eyebrow,.stat-label,.stat-foot,.stat-denominator,.card-meta,.heading p,.subject-info p,.subject-meta,.subject-card-footer,.student-heading p,.profile-panel p,.home-footer,.local-note,.welcome-footer,.study-footer,.back-to-subjects,.text-button,.check-label,.multi-help,.hint-actions button,.source-row,.agenda-time,.empty-state p,.dash-sub,.dash-kpi span,.dash-kpi small,.cermat-stats,.cermat-filters){color:#566242!important}
body :is(.app-shell-nav,.home-view,.student-page,#home-view,#profile-view,#cermat-app,.welcome-main){background:transparent!important}
body :is(.sidebar,.cermat-topbar){background:#f0f2eee8!important;border-color:#e9ebe5!important;box-shadow:inset -1px 0 #5864441c!important}
body :is(.space-mark i){background:#515c3f!important}.space-mark i:nth-child(1){opacity:.55}.space-mark i:nth-child(2){opacity:.75}
body :is(.subject-gallery .subject-card,.profile-panel,.learning-card,.question-card,.stats>div,.dash-card,.dash-kpi,.exam-result,.exam-review,.cermat-test-tile,.cermat-native-contexts,.cermat-native-question,.cermat-result-hero,.cermat-review-list details,.study-topic,.study-flashcard,.calendar-event-detail,.agenda-event,.schedule-item,.task-item,.overview-item){background:#eff1ecd6!important;border-color:#63704d46!important;box-shadow:var(--liquid-shadow)!important}
body :is(.subject-art,.cermat-art,.boki-speech,.feedback,.type-tabs,.navigation,.calendar-modes,.exam-toolbar,.exam-launch,.cermat-stats>span){background:#eef0ece8!important;border-color:#72825955!important;box-shadow:inset 0 1px #4f5a3d26!important;color:#475137!important}
.boki-speech::before{background:#eef0ec!important;border-color:#72825955!important}
body :is(.subject-arrow,.primary,.top-actions .top-link.dash-open,.navigation #next){background:#515c3fe8!important;color:#f1f2ee!important;border:1px solid #485137ad!important;box-shadow:0 3px 0 #707f57,inset 0 2px 2px #434c348c,0 8px 20px #f3f4f133!important}
body .primary:hover:not(:disabled),body .top-actions .top-link.dash-open:hover{background:#4d583c!important;box-shadow:0 4px 0 #707f57,inset 0 2px 2px #434c349c,0 10px 28px #f3f4f144!important}
body :is(.primary:disabled,.secondary:disabled){background:#edefe9!important;color:#616e4b!important;border-color:#e8ebe4!important;box-shadow:none!important}
body :is(.secondary,.icon-button,.nav-button,.map-button,.option,.cermat-choices button,.dash-weak,.source-row select,.type-tab,.calendar-modes button,.task-form button){background:#eef0ebde!important;color:#495338!important;border-color:#7281585e!important;box-shadow:inset 0 1px #4f5a3d24!important}
body :is(.option:hover:not(:disabled),.secondary:hover:not(:disabled),.icon-button:hover,.map-button:hover,.cermat-choices button:hover){background:#eaece6!important}
body :is(.option.selected,.option.right,.cermat-choices button[aria-pressed=true],.map-button.current,.type-tab.active){background:#e8ebe4!important;border-color:#545f41!important;color:#454f35!important}
body :is(.option.wrong,.feedback.bad){background:#eef0eb!important;border-color:#616e4b!important;color:#495339!important}
body :is(.feedback.neutral,.tag,.hint-text){background:#edefe9!important;color:#4f593d!important}
body :is(input:not([type=checkbox]):not([type=radio]),select,textarea,.search){background:#f1f3efed!important;border-color:#7282585e!important;color:#475137!important;box-shadow:inset 0 1px 3px #f4f6f355!important}
input::placeholder,textarea::placeholder{color:#5d6a48!important}body input[type=checkbox]{accent-color:#545f41}
body :is(dialog,#profile-dialog,#schedule-import,#schedule-add,#dash){background:#f1f2eef5!important;color:#475137!important;border-color:#63714d66!important;box-shadow:0 30px 90px #f4f6f399,inset 0 1px #4e593c33!important}
dialog::backdrop{background:#f4f5f2a6!important}
body :is(.app-nav-links,.type-tabs){background:#eff1ecd9!important;border-color:#63704d46!important}
body :is(.app-nav-links::before,.type-tabs::before,#section-nav::before){background:#e7e9e278!important;border-color:#5763447a!important;box-shadow:inset 0 2px 3px #4b563a40,inset 0 -2px 2px #f3f4f066,0 10px 28px #f4f5f233!important}
body .app-shell-nav .app-nav-links :is(a,.dash-nav),body .sidebar #section-nav .section-button,body .sidebar #section-nav .section-button.active{color:#495338!important}
body :is(.feedback .solution,.feedback p,.feedback-title,.explanation,.contrast,.overview-item>button,.overview-item details,.study-topic p,.study-topic li,.study-topic summary,.source-links a,.info-content p){color:#4d583c!important}
body :is(.calendar-grid,.calendar-day,.calendar-empty,.schedule-empty,.calendar-timeline,.agenda-list){background:transparent!important;color:#546041!important;border-color:#e9ebe5!important}
body :is(.calendar-event,.calendar-event-card){background:#eaece6!important;color:#475137!important;border-color:#66744f!important}
body :is(.progress-track,.dash-track,.dash-days){background:#edefe9!important}body :is(.progress-track span,#progress-bar,.dash-track i,.dash-days i){background:#556142!important}.dash-ring .bar{stroke:#556142!important}
body .target-cursor{--target-cursor-color:#4c573b!important}
/* Align landing logo, headline, CTA and footer to one shared gutter. */
:root{--pond-gutter:clamp(24px,5vw,72px)}
.app-shell-nav-inner{max-width:none;padding-inline:var(--pond-gutter)}
#landing-view .welcome-main{max-width:none;margin:0;padding:0 var(--pond-gutter) 32px;align-items:flex-start}
#landing-view .welcome-copy{max-width:730px;margin:0 0 48px}
#landing-view .welcome-copy h1{font:500 clamp(36px,4.4vw,62px)/1.2 monospace!important;letter-spacing:-2px;color:#464f36!important;-webkit-text-fill-color:#464f36!important}
#landing-view .welcome-copy h1 em{color:#515c3f!important}
#landing-view .welcome-start{background:#4f5a3d!important;color:#f0f2ee!important;border-color:#485137!important;border-radius:10px;box-shadow:0 3px 0 #6d7c54,inset 0 1px #434c34!important}
#landing-view .welcome-footer{justify-content:space-between;max-width:none;color:#596645!important}
#landing-view .welcome-footer :is(span,button){color:#596645!important}
@media(max-width:600px){#landing-view .welcome-main{padding-inline:var(--pond-gutter)}#landing-view .welcome-copy h1{font-size:36px!important;letter-spacing:-1.5px}#landing-view .welcome-copy{margin-bottom:38px}.sidebar .back-to-subjects{color:#4f5a3d!important}}
body .app-nav-links::before,body .type-tabs::before,body #section-nav::before{background:#e7e9e278!important;border-color:#5763447a!important;box-shadow:inset 0 2px 3px #4b563a40,inset 0 -2px 2px #f3f4f066,0 10px 28px #f4f5f233!important}
body .home-heading h1>span,body .student-heading h1 em{color:#515c3f!important}
body :is(.hub-intro p,.home-heading>p,.student-toolbar,.profile-panel label,.calendar-head h3,.calendar-empty,.subject-meta,.subject-card-footer,.study-guide .source-links,.cermat-topbar a){color:#566242!important}
body .type-tab.active span,body .type-tab span{background:#e8ebe4!important;color:#495338!important}
body .boki-speech::before{background:#eef0ec!important}
body .sidebar .section-button :is(strong,.section-label,.section-name,.num),body .sidebar .back-to-subjects{color:#4e583c!important}
body .subject-card-footer>span:first-child,body .home-footer button,body .study-footer button,body .study-footer a{color:#525d40!important}
body :is(.section-kicker::before,.home-eyebrow i){background:#535f40!important;box-shadow:0 0 0 4px #616e4b24!important}
body .section-kicker::before,body .home-eyebrow i{background:#535f40!important;box-shadow:0 0 0 4px #616e4b24!important}
body .calendar-days button,body .calendar-days b,body .student-toolbar a{color:#525d40!important}body .calendar-days button[aria-pressed=true]{background:#e8ebe4!important;border-color:#5b6847!important}body .calendar-days button[aria-pressed=true] b{color:#464f36!important}
body .file-picker{background:#f0f1ed!important;border-color:#64724d!important;color:#505b3e!important}body .task-list li{background:#eff1ec!important;border-color:#e9ebe5!important;color:#475137!important}

/* The pond spans the viewport, including the area beneath the logo. */
#landing-pond{position:fixed;inset:0;width:100vw;height:100svh;z-index:0;pointer-events:none}
body:has(#landing-view:not([hidden])) #landing-view{background:transparent!important;z-index:1}

body,body :is(h1,h2,h3,h4,p,span,a,button,label,input,textarea,select,summary,strong,small,em,li,td,th,blockquote,code){font-family:'IBM Plex Mono',monospace!important}
@media(min-width:861px){.sidebar .space-brand{font-size:25px!important;letter-spacing:-1.5px}.sidebar .space-brand .space-mark{width:30px;transform:scale(1.05)}.sidebar .space-brand{gap:10px}}

#landing-view .welcome-copy{background:none!important;box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
#landing-view .welcome-start{border-radius:999px!important;padding-inline:26px}
#landing-view .welcome-copy h1,#landing-view .welcome-start,body .space-wordmark,body .space-brand{font-family:'IBM Plex Mono',monospace!important}
body .subject-card-footer,body .subject-card-footer *{color:#525d40!important}

:root{color-scheme:light;--bg:#fafaf7;--paper:#fffefa;--ink:#3e4835;--muted:#7c8271;--line:#e1e5d8;--green:#6d8650;--accent:#c3d78f;--space-bg:#fafaf7;--space-ink:#3e4835;--space-muted:#7c8271;--space-line:#e1e5d8;--rf-focus:#738b4f;--rf-ink:#3e4835;--rf-muted:#7c8271;--rf-line:#e1e5d8;--liquid-surface:#fffefac9;--liquid-edge:#e5e9dc;--liquid-shadow:0 8px 25px #4a56300a,inset 0 1px #fff;--f1:#8aa762;--f2:#bdcf91}
body,body:has(#landing-view:not([hidden])){background:#fafaf7!important;color:#3e4835!important}
body :is(.sidebar,.cermat-topbar){background:#f5f6efeb!important;border-color:#e0e5d7!important}
body :is(.subject-card,.profile-panel,.learning-card,.question-card,.stats>div,.dash-card,.dash-kpi,.exam-result,.exam-review,.study-topic,.cermat-native-contexts,.cermat-native-question,.cermat-test-tile){background:#fffefac9!important;border-color:#e1e5d8!important;box-shadow:var(--liquid-shadow)!important}
body :is(.primary,.top-actions .top-link.dash-open,.navigation #next),#landing-view .welcome-start{background:#e1eacb!important;border-color:#cad7ac!important;color:#3d502d!important;box-shadow:0 2px 0 #a5b78c,inset 0 1px #fff!important}
body .primary:hover:not(:disabled),#landing-view .welcome-start:hover{background:#d3e1b4!important;box-shadow:0 3px 0 #a5b78c,inset 0 1px #fff!important}
body :is(.app-nav-links::before){background:#eef2e4!important}
body .app-nav-links::before,body #section-nav::before,body .type-tabs::before{background:#e7eddaae!important;border-color:#d8e0ca!important;box-shadow:inset 0 1px #fff,0 5px 14px #55613b0a!important}
body :is(.option.wrong,.feedback.bad){background:#fff0e8!important;border-color:#d6a899!important;color:#874b3b!important}
body :is(.option.right,.option.selected){background:#eaf1db!important;border-color:#91ac6a!important;color:#415b2d!important}
#landing-view .welcome-copy h1{color:#3e4835!important;-webkit-text-fill-color:#3e4835!important}#landing-view .welcome-copy h1 em{color:#76865c!important}
body .space-mark i,body:has(#landing-view:not([hidden])) .space-mark i{background:#7f985c!important}
body .target-cursor,body:has(#landing-view:not([hidden])) .target-cursor{--target-cursor-color:#63764c!important}
#landing-view .welcome-footer{justify-content:flex-start!important;gap:24px;flex-wrap:wrap}
.home-main{max-width:1400px!important;padding-top:50px!important}.home-heading .hub-intro{max-width:310px}.home-heading h1{font-size:clamp(32px,4vw,50px)!important}
body .feedback .solution,body .feedback p{color:#4e633c!important}

.app-nav-links a,.app-nav-links .dash-nav{text-transform:lowercase!important}

/* One profile contains progress, calendar and personal study planning. */
.profile-progress-panel{margin:25px 0 32px}.profile-progress-panel>summary{font-size:15px;color:#536746;cursor:pointer;padding:15px 0;border-bottom:1px solid #e0e5d7}.profile-progress-panel .dash-head{margin:24px 0 16px}.profile-progress-panel .dash-head h2{font-size:24px}.profile-progress-panel .dash-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.profile-progress-panel .dash-ring{min-height:190px}.profile-progress-panel .dash-card:last-child{grid-column:1/-1}
.event-kind{display:block;font-size:11px;color:#76875f!important;margin:3px 0}.student-form select{width:100%;padding:13px;border-radius:14px;font:inherit;border:1px solid #dfe8d5}.profile-open{background:transparent;color:#526947;border:1px solid #d6dfca;border-radius:99px;padding:12px 18px}
.boki-question{display:block!important}.boki-speech{background:transparent!important;border:0!important;border-radius:0!important;padding:0!important;box-shadow:none!important;backdrop-filter:none!important}.boki-speech::before,.boki-speech::after,.empty-boki,.boki-cheer{display:none!important}.feedback-with-boki{padding-left:0!important}.exam-score-hero,.cermat-result-hero{justify-content:flex-start}.cermat-heading{justify-content:flex-start}.learning-card{grid-template-columns:1fr auto!important}.learning-card>div{min-width:0}
@media(max-width:650px){.profile-progress-panel .dash-grid{grid-template-columns:1fr}.profile-progress-panel .dash-card:last-child{grid-column:auto}.learning-card{grid-template-columns:1fr!important}}

.profile-progress-panel .dash-grid{grid-template-columns:repeat(2,minmax(0,1fr));padding:0;gap:24px;width:100%}.profile-progress-panel .dash-grid>.dash-card{grid-column:auto;min-width:0;margin:0}.profile-progress-panel .dash-grid>.dash-card:last-child{grid-column:1/-1}.profile-progress-panel .dash-head{padding-inline:0}.profile-progress-panel{width:100%}.student-main .profile-panel{width:100%}
.profile-progress-panel .dash-pct{display:grid;place-items:center;inset:0;transform:none;left:0;top:0;width:100%;height:100%}.profile-progress-panel .dash-value{display:flex;align-items:baseline;justify-content:center;gap:5px;white-space:nowrap;line-height:1}.profile-progress-panel .dash-value b,.profile-progress-panel .dash-percent{position:static!important;display:inline!important;transform:none!important;font-family:Arial,Helvetica,sans-serif!important;letter-spacing:0!important;font-variant-numeric:normal}.profile-progress-panel .dash-value b{font-size:40px!important}.profile-progress-panel .dash-percent{font-size:20px!important;font-weight:400}
@media(max-width:650px){.profile-progress-panel .dash-grid{grid-template-columns:minmax(0,1fr)}.profile-progress-panel .dash-grid>.dash-card:last-child{grid-column:auto}}
