/* Midnight pond: a shared calm palette across every study surface. */
:root{color-scheme:dark;--bg:#080e36;--paper:#111c48;--ink:#e6edff;--muted:#a2b3d6;--line:#334577;--sage:#182651;--green:#91b5ff;--accent:#b3ccff;--red:#ffb2aa;--red-bg:#45283b;--space-bg:#080e36;--space-ink:#e6edff;--space-muted:#a2b3d6;--space-line:#334577;--rf-focus:#a7c5ff;--rf-ink:#e6edff;--rf-muted:#a2b3d6;--rf-line:#334577;--liquid-surface:#15234bd6;--liquid-edge:#7894c646;--liquid-shadow:0 14px 38px #0207223d,inset 0 1px 0 #b5d4ff2b,inset 0 -1px 0 #020b3266;--f1:#8cb4ff;--f2:#668fdc}
body,body:has(#landing-view:not([hidden])){background:#080e36!important;color:#e6edff!important}
#landing-view{background:#080e36!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:#e6edff!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:#edf3ff!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:#adbcdf!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:#101a43e8!important;border-color:#334577!important;box-shadow:inset -1px 0 #9ab9e51c!important}
body :is(.space-mark i){background:#aac8ff!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:#15234bd6!important;border-color:#7894c646!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:#182951e8!important;border-color:#4c679555!important;box-shadow:inset 0 1px #b5d4ff26!important;color:#e6edff!important}
.boki-speech::before{background:#182951!important;border-color:#4c679555!important}
body :is(.subject-arrow,.primary,.top-actions .top-link.dash-open,.navigation #next){background:#a9c6ffe8!important;color:#0c1c42!important;border:1px solid #e2edffad!important;box-shadow:0 3px 0 #4a6da6,inset 0 2px 2px #ffffff8c,0 8px 20px #020b3233!important}
body .primary:hover:not(:disabled),body .top-actions .top-link.dash-open:hover{background:#c1d7ff!important;box-shadow:0 4px 0 #4a6da6,inset 0 2px 2px #ffffff9c,0 10px 28px #020b3244!important}
body :is(.primary:disabled,.secondary:disabled){background:#263657!important;color:#8e9dbb!important;border-color:#3e5274!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:#1c2d53de!important;color:#dbe7ff!important;border-color:#516b945e!important;box-shadow:inset 0 1px #b5d4ff24!important}
body :is(.option:hover:not(:disabled),.secondary:hover:not(:disabled),.icon-button:hover,.map-button:hover,.cermat-choices button:hover){background:#2c4572!important}
body :is(.option.selected,.option.right,.cermat-choices button[aria-pressed=true],.map-button.current,.type-tab.active){background:#304e7e!important;border-color:#99c0ff!important;color:#f1f6ff!important}
body :is(.option.wrong,.feedback.bad){background:#45283b!important;border-color:#c9818a!important;color:#ffd8d9!important}
body :is(.feedback.neutral,.tag,.hint-text){background:#23335b!important;color:#b8d0ff!important}
body :is(input:not([type=checkbox]):not([type=radio]),select,textarea,.search){background:#0c193bed!important;border-color:#4f6b955e!important;color:#e6edff!important;box-shadow:inset 0 1px 3px #02072255!important}
input::placeholder,textarea::placeholder{color:#94a9cd!important}body input[type=checkbox]{accent-color:#99bdff}
body :is(dialog,#profile-dialog,#schedule-import,#schedule-add,#dash){background:#101c40f5!important;color:#e6edff!important;border-color:#7b97bf66!important;box-shadow:0 30px 90px #02072299,inset 0 1px #bbd6ff33!important}
dialog::backdrop{background:#020825a6!important}
body :is(.app-nav-links,.type-tabs){background:#15234bd9!important;border-color:#7894c646!important}
body :is(.app-nav-links::before,.type-tabs::before,#section-nav::before){background:#3c568778!important;border-color:#a0bfe37a!important;box-shadow:inset 0 2px 3px #cce5ff40,inset 0 -2px 2px #08133166,0 10px 28px #03092433!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:#dbe7ff!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:#c6d8fa!important}
body :is(.calendar-grid,.calendar-day,.calendar-empty,.schedule-empty,.calendar-timeline,.agenda-list){background:transparent!important;color:#b0c3e6!important;border-color:#334577!important}
body :is(.calendar-event,.calendar-event-card){background:#2a4473!important;color:#e6edff!important;border-color:#718eb9!important}
body :is(.progress-track,.dash-track,.dash-days){background:#23355b!important}body :is(.progress-track span,#progress-bar,.dash-track i,.dash-days i){background:#91b9ff!important}.dash-ring .bar{stroke:#91b9ff!important}
body .target-cursor{--target-cursor-color:#c7dcff!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:#edf3ff!important;-webkit-text-fill-color:#edf3ff!important}
#landing-view .welcome-copy h1 em{color:#aac8ff!important}
#landing-view .welcome-start{background:#b7d0ff!important;color:#101d42!important;border-color:#e2edff!important;border-radius:10px;box-shadow:0 3px 0 #5276b1,inset 0 1px #fff!important}
#landing-view .welcome-footer{justify-content:space-between;max-width:none;color:#9db3da!important}
#landing-view .welcome-footer :is(span,button){color:#9db3da!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:#b7d0ff!important}}
body .app-nav-links::before,body .type-tabs::before,body #section-nav::before{background:#3c568778!important;border-color:#a0bfe37a!important;box-shadow:inset 0 2px 3px #cce5ff40,inset 0 -2px 2px #08133166,0 10px 28px #03092433!important}
body .home-heading h1>span,body .student-heading h1 em{color:#aac8ff!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:#adbcdf!important}
body .type-tab.active span,body .type-tab span{background:#304e7e!important;color:#dce9ff!important}
body .boki-speech::before{background:#182951!important}
body .sidebar .section-button :is(strong,.section-label,.section-name,.num),body .sidebar .back-to-subjects{color:#c3d7fa!important}
body .subject-card-footer>span:first-child,body .home-footer button,body .study-footer button,body .study-footer a{color:#b4c9ee!important}
body :is(.section-kicker::before,.home-eyebrow i){background:#9dbfff!important;box-shadow:0 0 0 4px #6e97dd24!important}
body .section-kicker::before,body .home-eyebrow i{background:#9dbfff!important;box-shadow:0 0 0 4px #6e97dd24!important}
body .calendar-days button,body .calendar-days b,body .student-toolbar a{color:#b4c9ee!important}body .calendar-days button[aria-pressed=true]{background:#304e7e!important;border-color:#8eaddc!important}body .calendar-days button[aria-pressed=true] b{color:#eef4ff!important}
body .file-picker{background:#142749!important;border-color:#7193c6!important;color:#bbd1f5!important}body .task-list li{background:#15234b!important;border-color:#334577!important;color:#e6edff!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:#b4c9ee!important}
