/* JARVIS / daylight. Load last. Every rule is scoped so the night identity stays intact.
   Canvas palette: cobalt + violet. Surfaces: porcelain, white, silver-blue.
   New components must use semantic tokens and pass both theme/viewport checks. */
body.light-theme {
  color-scheme:light;
  --bg:#f3f5fa; --bg2:#eaf0f8; --surface:#fff; --surface2:#edf2fa;
  --text:#192b48; --text2:#52647f; --text3:#65748b;
  --text-primary:#192b48; --text-secondary:#52647f; --text-muted:#52647f;
  --border:#d8e1ee; --cyan:#285bd3; --cyan2:#1d48af;
  --purple:#6650ca; --purple2:#5841b8; --pink:#955098; --gold:#986521;
  --accent:#285bd3; --shadow:0 12px 40px #263c6310;
  --glow-cyan:0 4px 22px #285bd31a; --glow-purple:0 4px 22px #6650ca14;
  --home-mint:#285bd3; --home-ink:#192b48; --home-muted:#52647f; --home-line:#d8e1ee;
  --day-surface:#fff; --day-tint:#edf2ff; --day-line:#d8e1ee;
  --day-shadow:0 3px 6px #233d6503,0 14px 40px #233d6508;
  background:var(--bg); color:var(--text);
}
body.light-theme #app.app {background:radial-gradient(ellipse at 85% 0,#e7edff80,transparent 54%),var(--bg)}
body.light-theme #app .bottom-nav {background:#ffffffed!important;border-color:var(--border)!important;box-shadow:0 -4px 25px #263c6305}
body.light-theme #app :is(.nav-label,.nav-icon,.nav-brand small,.nav-footer){color:#61718b}
body.light-theme #app .nav-brand>span{color:#192b48}
body.light-theme #app .nav-btn.active{background:#eaf0ff;border-color:#d9e4ff}
body.light-theme #app .nav-btn.active :is(.nav-label,.nav-icon){color:#2458cd}
body.light-theme :is(button,summary,input,select,textarea,a,[tabindex]):focus-visible{outline-color:#285bd3!important}
body.light-theme #app :is(button,summary,[role=button]):focus-visible{outline-color:#285bd3}
body.light-theme :is(input,textarea,select){accent-color:#285bd3;caret-color:#285bd3}
body.light-theme :is(input,textarea)::placeholder{color:#697b96}
body.light-theme :is(.btn-primary,.memory-batch-btn,.access-submit){background:linear-gradient(115deg,#285bd3,#4d55d4);color:#fff;border-color:#3156c5;box-shadow:0 5px 16px #285bd31a}
body.light-theme :is(.btn-primary,.memory-batch-btn,.access-submit):hover{background:#244ebc}
body.light-theme :is(.section-title,.profile-name,.profile-card h3){color:var(--text)}
body.light-theme :is(.glass-card,.profile-card,.profile-management-card,.profile-customize,.profile-identity-card,.profile-rank-summary,.journey-portal,.journey-card,.memory-slide,.rank-trophy,.rank-scale,.rank-highlight,.leaderboard-list){background:#fff;border-color:var(--border);box-shadow:var(--day-shadow);color:var(--text)}
body.light-theme :is(.settings-save,.author-secondary,.section-link,.library-secondary){color:#285bd3;background:#f3f6fd;border-color:#cbd8ed}
body.light-theme :is(.toast,.field-error){color:#8f3048}
body.light-theme .toast{background:#fff;border-color:#c3d3ee;color:var(--text);box-shadow:var(--shadow)}

/* Home: an illuminated workspace, with a blue-violet neural focal point. */
body.light-theme #screen-home :is(.greeting-main,.greeting-main span,.section-title){color:var(--text)}
body.light-theme #screen-home :is(.greeting-sub,.section-overline){color:#5d6f8b}
body.light-theme #screen-home .home-scene{background:radial-gradient(ellipse at 86% 25%,#d9e4ffb0,transparent 50%),linear-gradient(125deg,#fff 12%,#f7f9ff 65%,#eeedff);border-color:#d1dcf0;box-shadow:0 15px 48px #304d7a0c}
body.light-theme #screen-home .home-scene:before{background-image:linear-gradient(#355dcc05 1px,transparent 1px),linear-gradient(90deg,#355dcc05 1px,transparent 1px)}
body.light-theme #screen-home .home-scene:after{background:linear-gradient(90deg,transparent,#4c6ee366,transparent)}
body.light-theme #screen-home .jarvis-wordmark{color:#244b99}
body.light-theme .home-presence-label{color:#5b6c89;border-color:#c4d2ed}
body.light-theme #screen-home .jarvis-presence h2{color:#192b48}
body.light-theme #screen-home .jarvis-presence h2 span{color:#315dca}
body.light-theme #screen-home .quest-card{background:transparent;border:0}
body.light-theme #screen-home .quest-card #nextStepTitle{color:#253b5d}
body.light-theme #screen-home .quest-card #nextStepDesc{color:#52647f}
body.light-theme :is(.home-task-meta,.home-task-direction,.home-scene-footer button,.home-rhythm,.home-options summary){color:#52647f}
body.light-theme .home-task-direction svg{color:#315dca}
body.light-theme #screen-home #personalNextButton{background:linear-gradient(115deg,#285bd3,#4d55d4);border-color:#3156c5;color:#fff!important;box-shadow:0 7px 20px #285bd320}
body.light-theme #screen-home #personalNextButton:hover{background:#244ebc;box-shadow:0 7px 22px #285bd32a}
body.light-theme #screen-home #questNote,body.light-theme .home-scene-footer>span{color:#61718b}
body.light-theme #screen-home .jarvis-reactor-halo{background:radial-gradient(ellipse,#5c79f322,transparent 68%)}
body.light-theme #screen-home .jarvis-reactor-caption{color:#5d6fa1}
body.light-theme #screen-home :is(.home-player,.home-direction){background:#fff;border-color:var(--border);box-shadow:var(--day-shadow)}
body.light-theme #screen-home .home-direction.selected{background:#edf2ff;border-color:#8ea9e8;box-shadow:inset 3px 0 #416cdb}
body.light-theme #screen-home .home-direction:hover{border-color:#9bb3e2;background:#f4f7ff}
body.light-theme #screen-home :is(.rank-status-copy strong,.home-direction strong,.home-next-reward){color:#213758}
body.light-theme #screen-home :is(.rank-status-copy>span,.rank-status-copy .status-kicker,.home-direction small,.xp-nums,.home-next-reward small,.home-next-reward>span:nth-child(2)>span){color:#52647f}
body.light-theme #screen-home .rank-emblem{background:linear-gradient(145deg,#d7e5ff,#a5bbed);color:#244fbb}
body.light-theme #screen-home .rank-emblem:before{background:linear-gradient(145deg,#eff4ff,#c7d6ff)}
body.light-theme .home-reward-preview:before{border-color:#577cce;box-shadow:0 0 12px #577cce16}
body.light-theme .home-reward-preview i{border-color:#8571d2;box-shadow:none}
body.light-theme .home-reward-preview>span{color:#345ebe}
body.light-theme .home-direction-icon{color:#4169b5;opacity:1}
body.light-theme .home-direction.selected .home-direction-marker{background:#315dca;border-color:#315dca;color:#fff}
body.light-theme .home-direction-marker{border-color:#ccd8ea}
body.light-theme :is(.home-options>div,.home-options button:hover){background:#fff;border-color:var(--border)}
body.light-theme .home-options button,body.light-theme .home-options button span{color:var(--text2)}
body.light-theme #screen-home .avatar{background:#e6edff;color:#3454a7}
body.light-theme #screen-home .avatar-ring{background:linear-gradient(140deg,#4775df,#aaa0e7);box-shadow:none}
body.light-theme #screen-home .avatar-status{border-color:#fff;background:#2e8977}
body.light-theme #screen-home .xp-bar-track{background:#dfe7f4}
body.light-theme #screen-home .xp-bar-fill{background:linear-gradient(90deg,#315dca,#8070da)!important;box-shadow:none}

/* Learning: white paper, a quiet route panel and deliberate subject accents. */
body.light-theme .library-host{--direction-color:#315dca!important;--direction-tint:#315dca0e!important}
body.light-theme .library-host:has([data-direction=style]){--direction-color:#92601f!important;--direction-tint:#92601f0c!important}
body.light-theme .library-host:has([data-direction=body]){--direction-color:#247461!important;--direction-tint:#2474610d!important}
body.light-theme .library-host:has([data-direction=psychology]){--direction-color:#7153b7!important;--direction-tint:#7153b70d!important}
body.light-theme .library-host:has([data-direction=charisma]){--direction-color:#a24978!important;--direction-tint:#a249780d!important}
body.light-theme .library-host:has([data-direction=finance]){--direction-color:#266d91!important;--direction-tint:#266d910d!important}
body.light-theme :is(.library-lesson,.library-result,.library-empty){background:#fff;border-color:var(--border);box-shadow:var(--day-shadow)}
body.light-theme .library-route{background:#eef2f9;border-color:#d8e1ee;box-shadow:none}
body.light-theme .library-host :is(h2,h3,b){color:var(--text)}
body.light-theme :is(.library-page-header>p:last-child,.library-eyebrow){color:#5e718d!important}
body.light-theme :is(.library-toolbar>span,.library-tools p,.library-direction-picker,.library-lesson-context>small,.library-lesson-heading>p,.library-finish p,.library-reading p,.library-insights li p,.library-route-top>span,.library-route-progress,.library-route li small,.library-route li em,.library-lesson-heading>div,.library-supplement>summary,.library-supplement>div,.library-gallery-caption,.library-result>p:not(.library-eyebrow),.library-award-breakdown span,.library-audio-tag,.library-audio-time){color:#52647f}
body.light-theme .library-lesson-context>b{color:#243b5d}
body.light-theme .library-lesson-heading>.library-lesson-context{border-color:#e0e7f1}
body.light-theme :is(.library-tools>summary,.library-tools>div,.library-tools button,.library-direction-picker select,.library-mobile-route>summary,.library-directions button,.library-levels button,.library-route-node){background:#fff;color:#364c6e;border-color:#cdd9eb}
body.light-theme .library-directions button.selected{background:#edf2ff;border-color:#9eb6e5;color:#2855b9}
body.light-theme .library-directions button:hover{background:#f2f5fc}
body.light-theme .library-route li.current>button{background:#fff;border-color:#afbfda;box-shadow:0 3px 10px #233d6508}
body.light-theme .library-route li>button:hover{background:#fff}
body.light-theme :is(.library-reading,.library-gallery,.library-supplement){background:#f7f9fd;border-color:#dce4f0}
body.light-theme .library-reading h3,body.light-theme .library-insights h3{color:#253c60}
body.light-theme .library-finish{background:#f5f7fc;border-color:#e0e7f1}
body.light-theme .library-finish .btn-primary{background:linear-gradient(115deg,#285bd3,#4d55d4);color:#fff;border-color:#3156c5}
body.light-theme .library-finish .btn-primary:disabled{background:#e3e9f3;color:#6d7b91;border-color:#d4ddeb}
body.light-theme :is(.library-help,.library-award-xp,.library-player-level){color:#315dca}
body.light-theme .library-rank-unlocked{background:linear-gradient(130deg,#edf3ff,#f0edff);border-color:#b6c6e6}
body.light-theme .library-rank-unlocked :is(small,span){color:#536b91}
body.light-theme .library-audio{background:radial-gradient(ellipse at 50% 15%,#dce5ff,transparent 70%),#f5f7fe;border-color:#cdd9ee}
body.light-theme .library-audio-controls button{color:#345db8}
body.light-theme .library-audio-controls .library-play{background:#315dca;color:#fff}
body.light-theme .library-zoom{background:#f6f8fd;border-color:#c8d6eb;color:#243b5d}
body.light-theme .library-zoom-close{background:#fff;color:#315dca;border-color:#c8d6eb}
body.light-theme .library-zoom figcaption{color:#52647f}

/* Jarvis conversation, assessment and transitions share the same daylight language. */
body.light-theme #screen-jarvis .mentor-hub{background:radial-gradient(ellipse at 15% 45%,#dce7ff70,transparent 50%)}
body.light-theme :is(.jarvis-scene-header>span,.jarvis-visual-caption){color:#243b5d;background:none;-webkit-text-fill-color:currentColor}
body.light-theme :is(.jarvis-scene-header>small,.jarvis-visual #mentorOrbLabel,.jarvis-conversation-note,.jarvis-conversation-note button,.jarvis-review-data){color:#5b6e8a}
body.light-theme .jarvis-visual-glow{background:radial-gradient(circle,#7990eb24,transparent 68%)}
body.light-theme .mentor-neural{filter:none!important}
body.light-theme .jarvis-turn p,body.light-theme .jarvis-review-data section b{color:#2a4164}
body.light-theme .jarvis-turn>span{color:#315dca}
body.light-theme .jarvis-turn.from-user{background:#e7edfc;border-color:#d1ddf3}
body.light-theme .jarvis-turn.from-user p{color:#344e77}
body.light-theme :is(.jarvis-suggestions>button,.jarvis-review-data button,.review-actions button){background:#fff;color:#34547f;border-color:#cdd9eb;box-shadow:0 2px 6px #233d6505}
body.light-theme .jarvis-suggestions>button:hover{background:#edf2ff;border-color:#9cb3e5}
body.light-theme .jarvis-suggestions>button.jarvis-accept{background:#315dca;color:#fff;border-color:#315dca}
body.light-theme .jarvis-composer,body.light-theme #jarvisComposer.is-question-composer{background:#fff;border-color:#b7c9e7;box-shadow:0 6px 24px #315dca09}
body.light-theme .jarvis-composer textarea{color:#243b5d}
body.light-theme .jarvis-composer>button,body.light-theme #jarvisComposer.is-question-composer button{background:#315dca;color:#fff}
body.light-theme #mentorHub[data-question-review]{--review-ink:#233b60;--review-muted:#52647f;--review-line:#cbd8ee;--review-surface:#fff;--review-mint:#315dca}
body.light-theme .review-question-card{background:linear-gradient(125deg,#fff,#f3f6ff);border-color:#cbd8ee;box-shadow:var(--day-shadow)}
body.light-theme .review-question-progress nav button>span{background:#fff;border-color:#cbd8ee;color:#52647f}
body.light-theme .review-question-progress nav button.active>span,body.light-theme .review-question-progress nav button.answered>span{background:#e8eeff;border-color:#7899df;color:#2854b4;box-shadow:none}
body.light-theme :is(.review-context,.assessment-feedback,.review-answer-history article){background:#f3f6fd;border-color:#cbd8ee;color:#243b5d}
body.light-theme :is(.review-context b,.review-context li,.review-context small,.review-answer-history article p,.review-answer-history>small){color:#52647f}
body.light-theme .learning-transfer{background:radial-gradient(ellipse at 50% 38%,#e3e9ff,#f6f8fd 65%);color:#203859}
body.light-theme .transfer-stage>p:first-child,body.light-theme .transfer-stage .transfer-caption{color:#315dca}
body.light-theme .transfer-stage>small{color:#52647f}
body.light-theme .transfer-network>span{color:#315dca;text-shadow:0 0 25px #315dc320}
body.light-theme .transfer-continue{background:#fff;border-color:#b7c9e7;color:#315dca}

/* Profile, rewards and personal history retain depth without neon on white. */
body.light-theme .profile-hero{background:radial-gradient(ellipse at 50% 0,#dce5ff,transparent 70%),linear-gradient(135deg,#f8faff,#f0edfc)}
body.light-theme .profile-hero .profile-bg-glow{display:block;opacity:.2;background:radial-gradient(ellipse,#8495e8,transparent 70%)}
body.light-theme .pav-ring{background:linear-gradient(130deg,#416bd5,#a090dd);box-shadow:0 0 20px #416bd515}
body.light-theme :is(.profile-rank-summary,.rank-reward-seal){background:linear-gradient(130deg,#f1f5ff,#f4f0ff);border-color:#cfdbef;color:#315dca}
body.light-theme :is(.rank-ten .rank-trophy,.rank-scale){background:#fff;border-color:#d8e1ee}
body.light-theme .rank-ten .rank-trophy:hover{background:#f1f5ff;border-color:#829ed7}
body.light-theme :is(.rank-scale-heading,.rank-scale .earned){background:#eef3ff;color:#315dca}
body.light-theme :is(.rank-legacy,.rank-reward-preview p,.profile-block-desc,.profile-starter-reward){color:#52647f}
body.light-theme :is(.frame-option,.cosmetic-option,.badge){background:#f5f7fc;border-color:#d8e1ee;color:#52647f}
body.light-theme :is(.frame-option.selected,.cosmetic-option.selected,.badge.unlocked){background:#edf2ff;border-color:#98b0e5;color:#315dca}
body.light-theme :is(.journey-card,.journey-portal,.add-memory-slide,.profile-journey-preview){background:linear-gradient(135deg,#fff,#f3f5ff);border-color:#d8e1ee}
body.light-theme :is(.photo-drop,.batch-photo-drop,.add-memory-icon){background:#f4f7ff;border-color:#9fb6e2;color:#3c609d}
body.light-theme :is(.portal-open,.journey-link,.archive-add-btn){color:#315dca;border-color:#b9cbed}
body.light-theme :is(.empty-photo,.memory-photo,.album-visual,.lens-current-photo,.comparison-thought-image){background:linear-gradient(135deg,#e5ecfa,#f3f0fc);color:#315dca}
body.light-theme :is(.memory-feelings button,.memory-mode-switch,.language-switch,.batch-memory-row,.comparison-insight){background:#f1f4fa;border-color:#d8e1ee;color:#52647f}
body.light-theme .memory-feelings button.active{background:#e5edff;border-color:#91abe0;color:#315dca}
body.light-theme :is(.memory-mode-switch button.active,.language-switch button.active){background:#315dca;color:#fff}

/* Settings and authoring are part of the same product, not separate green panels. */
body.light-theme #profileMenu{--settings-bg:#fff;--settings-surface:#f1f4fb;--settings-ink:#233b60;--settings-muted:#52647f;--settings-line:#d8e1ee;--settings-accent:#315dca;--settings-accent-ink:#fff}
body.light-theme #profileMenu .profile-menu-panel{background:radial-gradient(ellipse at 95% 0,#e9edff,transparent 48%),#fff;box-shadow:0 24px 90px #1a335238}
body.light-theme #profileMenu .settings-avatar{background:#e7edff;border-color:#c3d3f2;color:#315dca}
body.light-theme :is(.toggle.on,.toggle[aria-checked=true]){background:#315dca;border-color:#315dca}
body.light-theme :is(.journey-archive-sheet,.memory-sheet,.comparison-sheet,.comparison-history-sheet,.player-sheet,.quiz-modal,.ach-detail-modal,.review-history-dialog,.author-dialog,.onboarding-card){background:#fff;color:#243b5d;border-color:#cbd8ee;box-shadow:0 24px 90px #1a335238}
body.light-theme :is(.author-dialog,.review-history-dialog,.library-zoom)::backdrop{background:#14274370;backdrop-filter:blur(10px)}
body.light-theme :is(.profile-menu-backdrop,.comparison-overlay){background:#14274370}
body.light-theme .author-dialog{--text-primary:#243b5d;--text-secondary:#52647f}
body.light-theme :is(.author-header,.author-footer,.author-block-editor,.author-question-card,.author-preview,.program-workspace){background:#fff;color:#243b5d;border-color:#d8e1ee}
body.light-theme :is(.author-test-banner,.program-topics,.author-sidebar,.program-objective,.program-brief,.program-demo-source,.author-upload-progress){background:#f0f4fc;border-color:#d8e1ee;color:#243b5d}
body.light-theme :is(.author-test-banner span,.program-objective b,.program-brief>span,.program-source-notes summary,.program-format,#authorLevelReadiness){color:#315dca}
body.light-theme :is(.author-test-banner,.program-main p,.program-main small,.program-topics p,.program-topics small,.program-lessons small,.program-source-notes p,.program-demo-note,.author-block-editor label,.author-block-editor small,.author-questions p,.author-footer span){color:#52647f}
body.light-theme :is(.program-main h3,.program-main h4,.program-objective p,.program-review-check){color:#243b5d!important}
body.light-theme :is(.author-dialog input:not([type=checkbox]),.author-dialog textarea,.author-dialog select){background:#f9fbff;color:#243b5d;border-color:#bdcde6}
body.light-theme :is(.author-header>button,.author-entry,.author-secondary,.author-blocks li button,.author-add button,.program-topics>button,.program-lessons button,.program-directions button,.author-tabs button,.author-question-actions button){background:#fff;color:#3b557c;border-color:#cbd8ee}
body.light-theme :is(.program-lessons button[aria-current=step],.program-topics>button[aria-current=step],.program-directions button[aria-pressed=true],.author-tabs button[aria-selected=true],.author-blocks li.selected button){background:#eaf0ff;border-color:#92ace0;color:#2854b4}
body.light-theme :is(.program-topics button span,.program-lessons button span,.author-blocks small,.program-direction-select){color:#526b92}
body.light-theme .author-dialog .btn-primary{background:linear-gradient(115deg,#285bd3,#4d55d4);color:#fff;border-color:#3156c5}
body.light-theme :is(.author-upload,.author-upload-actions button,.author-question-add){background:#edf2ff;border-color:#a1b7e1;color:#315dca}
body.light-theme :is(.author-question-card input,.author-question-card textarea){color:#243b5d;background:#f9fbff}
body.light-theme :is(.learning-studio,.profile-editor-overlay){color:#243b5d}
body.light-theme #personalLessonOverlay{background:#14274380;color:#243b5d}
body.light-theme #personalLessonOverlay .onboarding-card{background:#fff;border-color:#cbd8ee;color:#243b5d}
body.light-theme .learning-studio :is(p,small,.studio-scope,.studio-method,.studio-autosave){color:#52647f}
body.light-theme .learning-studio :is(.studio-day-plan,.studio-choice>span,.studio-feedback,.studio-end-stats){background:#f1f5ff;border-color:#cbd8ee;color:#243b5d}
body.light-theme .learning-studio :is(input[type=text],textarea){background:#f9fbff;color:#243b5d;border-color:#bdcde6}
body.light-theme .learning-studio .btn-primary{background:#315dca;color:#fff;border-color:#315dca}

/* Compact layouts keep the same palette, readable text and existing geometry. */
@media(max-width:700px){
 body.light-theme #screen-home .jarvis-reactor{opacity:.75}
 body.light-theme #app .bottom-nav{box-shadow:0 -4px 20px #263c6308}
 body.light-theme .library-lesson,body.light-theme .library-result{box-shadow:0 4px 20px #233d6507}
}
@media(prefers-reduced-motion:reduce){body.light-theme :is(.home-scene,.profile-hero,.jarvis-visual-glow){animation:none}}
body.light-theme .home-directions-hint{color:#52647f}
body.light-theme #screen-profile .journey-card{background:linear-gradient(120deg,#fff,#f0f2ff);border-color:#d8e1ee}
body.light-theme .memory-summary-actions .btn-primary{background:linear-gradient(115deg,#285bd3,#4d55d4);color:#fff}
body.light-theme .memory-cover{background:#e8eeff;border-color:#d1ddf3}
body.light-theme .frame-choice.frame-example{background:#f6f8fd;border-color:#d8e1ee}
body.light-theme .frame-choice.frame-example.active{background:#edf2ff;border-color:#8ca8e3}
body.light-theme .frame-sample{background:#e1e8f7;color:#2c4266}
body.light-theme .frame-sample em{background:#fff;color:#3c5e96;border-color:#a9bbd8}
body.light-theme :is(.sample-cyan,[data-avatar-frame=cyan]){--frame-color:#4d75d6}
body.light-theme :is(.sample-violet,[data-avatar-frame=violet]){--frame-color:#866ac9}
body.light-theme :is(.sample-gold,[data-avatar-frame=gold]){--frame-color:#b58b39}
body.light-theme :is(.sample-steel,[data-avatar-frame=steel]){--frame-color:#7389a9}
body.light-theme .profile-avatar-big[data-avatar-frame] .pav-ring{background:conic-gradient(from 35deg,var(--frame-color),#d8e0f1,var(--frame-color),#fff,var(--frame-color))}
body.light-theme .studio-xp-guide dd{color:#315dca}
body.light-theme .profile-direction-row h4{color:#315dca}
body.light-theme .profile-path-card{--direction-color:#315dca!important;--direction-tint:#315dca10!important}
body.light-theme :is(.profile-editor-overlay,.personal-lesson-overlay){background:#14274370}

/* Entry and profile setup: preserve the cinematic sequence, brighten the interface. */
body.light-theme .onboarding-gate:has(.intake-card){background:#f3f5fa}
body.light-theme .onboarding-card.intake-card{background:transparent;box-shadow:none}
body.light-theme .intake-experience{--mint:#315dca;--ice:#415ea3;--muted:#52647f;--fg:#192b48;background:#f3f5fa}
body.light-theme .intake-atmosphere{background:radial-gradient(ellipse at 20% 30%,#dce7ff90,transparent 50%),radial-gradient(ellipse at 85% 80%,#e7e1fa70,transparent 50%),#f3f5fa}
body.light-theme .intake-shade{background:linear-gradient(0deg,#f3f5faaa,transparent 25%,transparent 80%,#f3f5fa80)}
body.light-theme :is(.intake-brand,.intake-panel h2,.intake-focus b){color:#243b5d}
body.light-theme :is(.intake-brand small,.intake-back,.intake-motion,.intake-skip,.intake-sound,.intake-lead,.intake-caption,.intake-panel-index,.intake-form label,.intake-field-hint,.intake-panel-note,.intake-footer,.intake-footer-signature,.intake-radar figcaption,.intake-focus small,.intake-selection-note){color:#52647f}
body.light-theme .intake-eyebrow{color:#315dca}
body.light-theme :is(.intake-panel,.intake-focus){background:#ffffffed;border-color:#cbd8ee;box-shadow:var(--day-shadow)}
body.light-theme .intake-form :is(input,select){background:#f6f8fd;color:#243b5d;border-color:#bdcde6;color-scheme:light}
body.light-theme .intake-form :is(input,select):focus{border-color:#315dca;background:#fff;box-shadow:0 0 0 3px #315dca15}
body.light-theme .intake-form input:-webkit-autofill{-webkit-text-fill-color:#243b5d;-webkit-box-shadow:0 0 0 50px #f6f8fd inset}
body.light-theme .intake-cta{background:linear-gradient(115deg,#285bd3,#4d55d4);color:#fff;border-color:#3156c5;box-shadow:0 5px 16px #285bd31a}
body.light-theme .intake-focus[aria-pressed=true]{background:#edf2ff;border-color:#8fa8de;color:#315dca}
body.light-theme .radar-label{fill:#52647f}
body.light-theme .radar-label.selected,body.light-theme .radar-label.hovered{fill:#315dca}
body.light-theme .radar-spoke{stroke:#536f9f;stroke-opacity:.3}
body.light-theme .radar-spoke.selected{stroke:#315dca;stroke-opacity:.7}
body.light-theme .radar-node-point{fill:#748bb4;stroke:#315dca}
body.light-theme .radar-node.selected .radar-node-point{fill:#315dca}
body.light-theme .intake-launch-greeting{color:#243b5d}
body.light-theme .intake-launch-subtitle{color:#52647f}
body.light-theme .intake-sound{background:#ffffffdf;border-color:#cbd8ee}
body.light-theme .splash{background:#f3f5fa}
body.light-theme :is(.splash-logo,.splash-sub,.splash-status){color:#315dca;text-shadow:none}
/* Explicit button specificity beats historical grouped theme selectors. */
body.light-theme button.btn-primary:not(:disabled){background:linear-gradient(115deg,#285bd3,#4d55d4);color:#fff;border-color:#3156c5}
body.light-theme :is(.author-questions li,.author-preview-questions,.author-question-empty){background:#f3f6fd;border-color:#cbd8ee}
body.light-theme .author-question-top :is(label,button){color:#34547f}
body.light-theme .author-question-top button{background:#fff;border-color:#cbd8ee}
body.light-theme :is(.author-questions header p:last-child,.author-question-policy,.author-question-empty p,.author-question-empty small,.author-questions li>small,.author-dialog label,.author-publication,.program-topics label){color:#52647f}
body.light-theme .author-questions>#authorAddQuestion{color:#315dca}
body.light-theme .intake-network{filter:none}
body.light-theme #mentorHub[data-question-review] .review-actions button{background:#fff;border-color:#cbd8ee;color:#34547f}
body.light-theme #mentorHub[data-question-review] :is(.jarvis-scene-header>span,.jarvis-visual-caption){color:#243b5d}
body.light-theme #mentorHub[data-question-review] #mentorOrbLabel{color:#52647f}
body.light-theme .assessment-feedback button,body.light-theme .assessment-showcase button[aria-pressed=true]{background:#eaf0ff;border-color:#9cb3e5;color:#315dca}
body.light-theme .review-history-dialog>header{border-color:#d8e1ee}
body.light-theme .review-history-dialog>header>button{background:#f1f4fc;border-color:#cbd8ee;color:#315dca}
body.light-theme .review-answer-history article>span{color:#315dca}
body.light-theme .author-flow-note{background:#f1f4fc;color:#52647f;border-color:#cbd8ee}
body.light-theme .author-tabs{border-color:#d8e1ee}
body.light-theme .author-upload-progress :is(b,p,small){color:#52647f}
body.light-theme .author-upload-progress>div>span{color:#315dca}
body.light-theme .author-upload-progress progress{accent-color:#315dca;background:#dce5f5}
body.light-theme .author-upload-progress progress::-webkit-progress-bar{background:#dce5f5}
body.light-theme .author-upload-progress progress::-webkit-progress-value{background:#315dca}
body.light-theme .author-upload-progress progress::-moz-progress-bar{background:#315dca}
body.light-theme .library-award-art>span{background:linear-gradient(135deg,#506ed6,#39388b);color:#e6edff;box-shadow:none}
body.light-theme .library-award-art:before,body.light-theme .library-award-art:after{border-color:#c1cff0}

/* Media chrome and secondary surfaces follow the same palette as their cards. */
body:not(.light-theme){color-scheme:dark}
body.light-theme{--bg3:#e4ebf6}
body.light-theme :is(.library-image-count,.library-image-zoom){background:#ffffffed;color:#294e7f;border-color:#b7cae3;box-shadow:0 2px 8px #28415c0b}
body.light-theme .library-image-zoom:hover{background:#eaf1fc;border-color:#829fc9}
body.light-theme .library-reward-mini{background:#e2ebf9;color:#2c5cb7;border-color:#bdcce4}
body.light-theme .library-gallery-caption button{background:#fff;color:#315dca;border-color:#c4d1e6}
body.light-theme .library-route li:not(:last-child):after{background:#cbd6e7}
body.light-theme .library-route-progress progress{accent-color:#4769bd;background:#dce5f3}
body.light-theme .library-route-progress progress::-webkit-progress-bar{background:#dce5f3}
body.light-theme .library-route-progress progress::-webkit-progress-value{background:#4769bd}
body.light-theme .library-route-progress progress::-moz-progress-bar{background:#4769bd}
body.light-theme :is(.review-test-controls,.assessment-showcase){background:#f1f5fc;border-color:#c4d2e5;color:#243b5d}
body.light-theme :is(.review-test-controls summary,.review-test-controls p,.review-prompt){color:#52647f}
body.light-theme .review-test-controls button{background:#fff;color:#34547f;border-color:#c4d2e5}
body.light-theme .review-test-controls button.jarvis-accept{background:#315dca;color:#fff;border-color:#315dca}
body.light-theme .video-transcript{background:#f3f7fd;border-color:#b7cce4;color:#243b5d}
body.light-theme .video-transcript legend{color:#315dca}
body.light-theme .visit-rhythm[style*="#68dbc0"]{--rhythm:#24775e!important}
body.light-theme .visit-rhythm[style*="#e9bb62"]{--rhythm:#8a631d!important}
body.light-theme .visit-rhythm[style*="#e18886"]{--rhythm:#a34850!important}
body.light-theme .visit-track{background:#dfe6f1}
body.light-theme .visit-track i{box-shadow:none}
body.light-theme .visit-track i:after{opacity:.15}
body.light-theme .card-art-grid button[aria-pressed=true]:after{color:#fff}

body.light-theme #screen-upgrade .btn-primary:not(:disabled){background:linear-gradient(115deg,#285bd3,#4d55d4);color:#fff;border-color:#3156c5;box-shadow:0 6px 20px #285bd31a}
body.light-theme #screen-upgrade .btn-primary:disabled{background:#e3e9f3;color:#6d7b91;border-color:#d4ddeb;box-shadow:none}
body.light-theme :is(.program-directions,.program-direction-select){border-color:#d8e1ee}

#screen-upgrade .library-finish .btn-primary{flex-shrink:0;max-width:100%;white-space:normal}
