/* Bdesh — Cream Editorial Theme v1
   Standalone palette layer; remove its <link> to revert without touching behavior.
   Load after the existing stylesheets. */
:root{
  color-scheme:light;
  --ink:#525B63;--secondary:#6A737A;--cream:#FAF9F7;--paper:#FFFFFF;
  --mint:#FFF3EC;--line:#E5E9ED;--accent:#C64F1D;
  --forest-text:#525B63;--forest-muted:#6A737A;--forest-edge:#E5E9ED;
  --reading-ink:#525B63;--reading-muted:#6A737A;--reading-border:#E5E9ED;
  --glass:#FFFFFF;--frost-bg:#FAF9F7;--frost-brd:#FFF3EC;
  --editorial-rule:#E5E9ED;--muted:#6A737A;
}
html,body{background:#FCFBF9!important;color:#525B63!important;color-scheme:light}
body{
  background:radial-gradient(ellipse at 85% 5%,rgba(252,251,249,.18),transparent 42%),
  linear-gradient(160deg,#FFFFFF 0%,#FCFBF9 55%,#FCFBF9 100%)!important;
  background-attachment:fixed!important;
}
body :is(p,li,small,label,dt,dd){color:#6A737A!important}
body :is(h1,h2,h3,h4,h5,h6,strong,b){color:#525B63!important}
body :is(.eyebrow,.kicker,.chapter-id,.reading-time,.journey-tag,.section-label){color:#B5471C!important}
body a{color:#525B63!important}
body :is(.nav,.topbar,.site-header,.top,.early){
  background:rgba(255,255,255,.96)!important;color:#525B63!important;
  border-color:#E5E9ED!important;box-shadow:0 4px 22px rgba(95,106,115,.05)!important;
  backdrop-filter:blur(15px)!important;
}
body :is(.nav,.topbar,.site-header,.top) :is(a,span,strong,button,#session-status,#account-name){color:#525B63!important}
body :is(.side,.sidebar,.curriculum){
  background:#FCFBF9!important;border-color:#E5E9ED!important;
  color:#525B63!important;box-shadow:none!important;
}
body :is(.main,.reader,.profile-main,.layout,.shell,.lesson-shell){background:transparent!important;color:#525B63!important}
body :is(.hero,.hero-copy){color:#525B63!important}
body .hero{
  background:radial-gradient(ellipse at 83% 16%,rgba(252,251,249,.24),transparent 42%),
    linear-gradient(122deg,#FCFBF9 0%,#FCFBF9 47%,#FCFBF9 100%)!important;
  border:1px solid #E5E9ED!important;
  box-shadow:0 22px 65px rgba(95,106,115,.09)!important;
}
body .hero-copy{background:rgba(255,255,255,.82)!important;border:1px solid #E5E9ED!important;box-shadow:0 12px 35px rgba(95,106,115,.04)!important}
body .hero :is(h1,h1 em,.hero-kicker,.eyebrow,.hero-caption,.hero-note,.hero-note span,p){color:#525B63!important}
body .hero .hero-copy>p{color:#525B63!important}
body .hero .primary-cta{background:#C64F1D!important;color:#697781!important;border:1px solid #525B63!important}
body .hero .primary-cta:hover{background:#A93C13!important;color:#697781!important}
body .hero .textlink{color:#6A737A!important}
body .home-flow-head{
  background:#FFFFFF!important;border:1px solid #E5E9ED!important;
  box-shadow:0 8px 28px rgba(95,106,115,.045)!important;
}
body .home-flow-head :is(h2,h2 em,p,span,small,strong){color:#525B63!important}
body .journey-detail,
body .journey-step:nth-child(3n+2) .journey-detail,
body .journey-step:nth-child(3n) .journey-detail{
  background:#FFFFFF!important;border:1px solid #E5E9ED!important;
  box-shadow:0 8px 28px rgba(95,106,115,.045)!important;
}
body .journey-detail :is(h3,p,.journey-tag,.journey-foot,span){color:#525B63!important}
body .journey-detail p,body .journey-detail .journey-foot{color:#6A737A!important}
body .journey-node{background:#FCFBF9!important;color:#525B63!important;border:1px solid #E5E9ED!important}
body .journey-arrow{color:#B5471C!important}
body :is(.journey-ring,.journey-ring-inner){background:#FCFBF9!important;color:#525B63!important;border-color:#E5E9ED!important}
body :is(.journey-progress p,.journey-progress small,.journey-progress strong){color:#525B63!important}
body .home-flow .journey-detail a.journey-link{
  background:#FCFBF9!important;border:1px solid #E5E9ED!important;
  color:#525B63!important;border-radius:12px!important;
}
body .home-flow .journey-detail a.journey-link:hover,
body .home-flow .journey-detail a.journey-link:focus-visible{
  background:#FCFBF9!important;border-color:#E5E9ED!important;color:#525B63!important;
}
body :is(.learn-first,.intro,.action-plan,.deadline-center,.research-card,.application-card,.college-search,.auth-card,.review-card,.profile-panel,.entry-card,.knowledge-check,.reading-top,.aside-progress,.paper-form,.add-app,.profile-form,.editor-form,.editor-list,.editor-history,.editor-layout,.notice,.empty,.section-hint,.review-summary,.followup-tracker,.deadline-entry,.followup-item,.date-editor,.research-controls,.application-board-tools,.college-lookup-card,.sign-in-wall,.reading-intro,.reading-progress,.chapter-card,.lesson-content,.reading-section,.editor-notice){
  background:#FFF3EC!important;border-color:#E5E9ED!important;color:#525B63!important;
  box-shadow:0 8px 28px rgba(95,106,115,.035)!important;
}
body :is(.milestone,.journey-illustration,.application-example,.example-top,.example-row,.takeaway,.reading-intro,.research-caution,.entry-head,.entry-empty,.overview-illustration,.section-hint,.followup-form,.followup-item,.date-editor,.sync,.lesson-content .takeaway,.lesson-content .example,.lesson-content .application-flow){
  background:#FFF3EC!important;border:1px solid #E5E9ED!important;color:#525B63!important;
}
body :is(.milestone,.journey-illustration,.application-example,.example-top,.example-row,.takeaway,.reading-intro,.research-caution,.entry-head,.entry-empty,.overview-illustration,.section-hint,.followup-form,.followup-item,.date-editor,.paper-form,.add-app,.sync) :is(p,span,small,strong,b,em,h2,h3,h4,label,a,li),
body .lesson-content :is(.takeaway,.lesson-takeaway,.callout,.idea,.key-idea,.tip,.lesson-note,.highlight,.summary-box,.lesson-flow,.lesson-steps,.guide-card,blockquote,.example-row,.application-flow),
body .lesson-content :is(.takeaway,.lesson-takeaway,.callout,.idea,.key-idea,.tip,.lesson-note,.highlight,.summary-box,.lesson-flow,.lesson-steps,.guide-card,blockquote,.example-row,.application-flow) :is(p,span,strong,b,em,h2,h3,li){
  color:#525B63!important;
}
body .lesson-content :is(.takeaway,.lesson-takeaway,.callout,.idea,.key-idea,.tip,.lesson-note,.highlight,.summary-box,.lesson-flow,.lesson-steps,.guide-card,blockquote,.example-row,.application-flow){
  background:#FFF3EC!important;border-color:#E5E9ED!important;
}
body .lesson-content :is(p,li){color:#6A737A!important}
body .lesson-content :is(h1,h2,h3,strong){color:#525B63!important}
body .lesson-content .reading-section :is(h2,p){color:#525B63!important}
body .lesson-content .reading-section-num{color:#B5471C!important}
body .lesson-content .takeaway-label{color:#6A737A!important}
body :is(.metrics>div,.deadline-summary>div,.workspace-steps,.workspace-steps a,.profile-summary,.review-summary>div){
  background:#FCFBF9!important;border:1px solid #E5E9ED!important;
  box-shadow:none!important;
}
body :is(.metrics strong,.deadline-summary strong,.review-summary strong){color:#525B63!important}
body :is(input:not([type=checkbox]),textarea,select),
body #discover .research-controls input#research-search,
body #discover .research-controls select,
body #apply .college-lookup-card #college-search-input{
  background:#fffefa!important;color:#525B63!important;
  border:1px solid #E5E9ED!important;box-shadow:none!important;
}
body :is(input,textarea)::placeholder,
body #discover .research-controls #research-search::placeholder,
body #apply .college-lookup-card #college-search-input::placeholder{color:#747D83!important;opacity:1!important}
body select option{background:#FFFFFF!important;color:#525B63!important}
body :is(.darkbtn,.primary-button,.button,.google-signin,.application-toggle,.followup-add,.export-workspace){
  background:#C64F1D!important;color:#697781!important;
  border:1px solid #525B63!important;box-shadow:none!important;
}
body :is(.darkbtn,.primary-button,.button,.google-signin,.application-toggle,.followup-add,.export-workspace):hover{
  background:#A93C13!important;color:#697781!important;
}
body :is(.outline-button,.college-search-result,.college-manual,.deadline-entry button,.editor-list button,.rail a,.workspace-steps a,.lesson-link,.check-option){
  background:#FCFBF9!important;color:#525B63!important;
  border:1px solid #E5E9ED!important;box-shadow:none!important;
}
body :is(.outline-button,.college-search-result,.college-manual,.deadline-entry button,.editor-list button,.rail a,.workspace-steps a,.lesson-link,.check-option):hover{
  background:#FCFBF9!important;color:#525B63!important;
}
body :is(.rail a.active,.workspace-steps a.active,.sidebar nav button.active,.curriculum nav button.active,.editor-list button[aria-current=true],.lesson-link.active){
  background:#FFF3EC!important;color:#525B63!important;border-color:#E5E9ED!important;
}
body .topbar nav a.active,body .topbar nav a[data-tab].active{color:#525B63!important;border-bottom-color:#F1B896!important}
body :is(.research-card,.application-card,.review-card,.milestone,.lesson-content) a:not(.button){color:#6A737A!important}
body .research-card .research-verification[data-review-state="verified"]{
  background:#FCFBF9!important;color:#525B63!important;border-color:#E5E9ED!important;
}
body .research-card .research-verification[data-review-state="partial"]{
  background:#FCFBF9!important;color:#697781!important;border-color:#E5E9ED!important;
}
body .research-card .research-verification[data-review-state="unreviewed"]{
  background:#FCFBF9!important;color:#525B63!important;border-color:#E5E9ED!important;
}
body .research-card :is(ul,li,p),body .research-evidence :is(p,li){color:#6A737A!important}
body .research-evidence{
  background:#FCFBF9!important;color:#525B63!important;border:1px solid #E5E9ED!important;
}
body .research-evidence :is(summary,h4,a){color:#525B63!important}
body .research-evidence[open] summary{border-bottom-color:#E5E9ED!important}
body .cardactions button{background:#C64F1D!important;border-color:#525B63!important;color:#697781!important}
body #discover .research-controls{
  background:#FCFBF9!important;border:1px solid #E5E9ED!important;
  box-shadow:0 10px 30px rgba(95,106,115,.05)!important;
}
body #discover .research-controls>label,
body #apply .college-lookup-card :is(h3,label,p,span){color:#525B63!important}
body #apply .college-search.college-lookup-card{
  background:#FCFBF9!important;border:1px solid #E5E9ED!important;
}
body #apply .college-lookup-card .college-search-result{
  background:#FFFFFF!important;color:#525B63!important;border-color:#E5E9ED!important;
}
body #apply .college-lookup-card .college-search-result :is(strong,span){color:#525B63!important}
body #apply .college-lookup-card #college-search-hint{color:#6A737A!important}
body .check-option.correct{background:#FCFBF9!important;border-color:#E5E9ED!important}
body .check-option.incorrect{background:#FCFBF9!important;border-color:#E5E9ED!important}
body :is(.insight,.followup-info,.followup-empty,.privacy-note,.editor-notice){color:#525B63!important}
body :is(.priority-label,.deadline-due.is-overdue,.danger){color:#B54742!important}
body :is(.early,.trust-links,footer){
  background:#FCFBF9!important;color:#525B63!important;
  border-color:#E5E9ED!important;box-shadow:none!important;
}
body :is(.early,.trust-links,footer) :is(a,span,p){color:#525B63!important}
body :is(.topbar,.site-header,.top) :is(#signout,#sign-out){
  color:#525B63!important;background:#FCFBF9!important;border:1px solid #E5E9ED!important;
}
body :is(.milestone,.research-card,.journey-detail,.application-card,.profile-panel,.entry-card,.lesson-content) a{overflow-wrap:anywhere}
@media(prefers-reduced-transparency:reduce){
  body :is(.hero-copy,.research-card,.application-card,.profile-panel,.journey-detail,.lesson-content,.editor-form){
    backdrop-filter:none!important;background:#FFFFFF!important;
  }
}


/* Cream Editorial v2: remove all visible green leftovers from legacy layers.
   Palette: ivory #fffdf8, cream #f8f4ec, sand #e9dfd0,
   champagne #d6c2a5, taupe #D96B38, espresso #525B63. */
:root{
  --glass-forest:#525B63;--glass-ink:#525B63;--glass-muted:#6A737A;
  --glass-accent:#C64F1D;--sage:#FCFBF9;--forest:#525B63;
  --green:#C64F1D;--forest-bg:#FAF9F7;--forest-deep:#FCFBF9;
  --forest-mid:#FCFBF9;--forest-glass:#FFFFFF;--forest-panel:#FFFFFF;
  --forest-lime:#FCFBF9;--repair-bg:#FAF9F7;--repair-card:#FFFFFF;
  --repair-border:#E5E9ED;--repair-text:#525B63;--repair-muted:#6A737A;
  --repair-focus:#FCFBF9;--editorial-ink:#525B63;--editorial-accent:#C64F1D;
  --editorial-bg:#FAF9F7;--editorial-paper:#FFFFFF;--surface:#FFFFFF;
  --warm:#FFF3EC;--soft:#FFF3EC;
}
::selection{background:#FCFBF9!important;color:#525B63!important}
:focus-visible{outline-color:#E5E9ED!important}
body :is(input[type="checkbox"],input[type="radio"],input[type="range"]){accent-color:#B5471C!important}

/* Homepage visuals, roadmap progress, and decorative art. */
body .hero::before,body .hero::after{
  background:radial-gradient(circle at 50% 50%,rgba(252,251,249,.25),transparent 70%)!important;
  border-color:rgba(140,151,159,.16)!important;
}
body .home-flow .journey-ring{
  background:conic-gradient(#FFF3EC var(--journey-percent,0%),#FCFBF9 0)!important;
}
body .home-flow .journey-ring-inner{background:#FFFFFF!important;color:#525B63!important}
body .home-flow .journey-progress :is(strong,small,p){color:#525B63!important}
body .home-flow .journey-step.journey-started .journey-node{
  background:#FCFBF9!important;border-color:#E5E9ED!important;color:#525B63!important;
}
body .home-flow :is(.journey-rail,.journey-arrow){border-color:#E5E9ED!important;color:#B5471C!important}
body .home-flow .journey-detail a.darkbtn{background:#C64F1D!important;color:#697781!important;border-color:#525B63!important}
body .home-flow .journey-detail a.darkbtn:hover{background:#A93C13!important;color:#697781!important}
body .hero :is(.hero-caption,.hero-kicker,.hero-note,.eyebrow){color:#6A737A!important}

/* Replace forest fill on high-priority panels, including profile-specific selectors. */
body #profile-app .profile-panel,
body #profile-app .paper-form,
body #profile-app .entry-card,
body .profile-panel,body .paper-form,body .entry-card,
body .overview-illustration,body .profile-summary,body .profile-section,
body .reading-top,body .reading-intro,body .reading-progress,
body .journey-illustration,body .application-example{
  background:#FFFFFF!important;border-color:#E5E9ED!important;color:#525B63!important;
}
body #profile-app :is(.illustration-top,.illustration-lines,.illustration-lines>div,.line-icon),
body :is(.overview-illustration,.journey-illustration,.application-example,.example-top,.example-row){
  background:#FCFBF9!important;border-color:#E5E9ED!important;color:#525B63!important;
}
body #profile-app :is(.illustration-top,.illustration-lines,.line-icon) :is(p,span,strong,small,i,b),
body :is(.overview-illustration,.journey-illustration,.application-example,.example-top,.example-row) :is(p,span,strong,small,i,b){
  color:#525B63!important;
}
body .reading-intro{border-top-color:#E5E9ED!important}
body :is(.action-plan,.deadline-center){border-top-color:#E5E9ED!important;border-bottom-color:#E5E9ED!important}
body :is(.priority-label,.college-chosen,.followup-portal,.lesson-link,.lesson-link.active){
  color:#525B63!important;
}
body :is(.deadline-link,.action-plan-link,.followup-portal){border-bottom-color:#E5E9ED!important}
body .lesson-content .reading-section{border-top-color:#E5E9ED!important}
body .lesson-content :is(.reading-section-num,.chapter-id,.reading-time){color:#B5471C!important}
body .lesson-content :is(.check-option,.check-option.correct,.check-option.incorrect){
  color:#525B63!important;
}
body .lesson-content .check-option.correct{background:#FCFBF9!important;border-color:#E5E9ED!important}
body .lesson-content .check-option.incorrect{background:#FCFBF9!important;border-color:#E5E9ED!important}
body .lesson-content .check-option :is(p,span,strong,b){color:#525B63!important}
body .lesson-content :is(.lesson-takeaway,.takeaway,.example,.example-row,.application-flow,.idea,.key-idea,.tip,.lesson-note,.highlight,.summary-box,.lesson-flow,.lesson-steps,.guide-card,blockquote){
  background:#FFF3EC!important;border-color:#E5E9ED!important;color:#525B63!important;
}
body .lesson-content :is(.lesson-takeaway,.takeaway,.example,.example-row,.application-flow,.idea,.key-idea,.tip,.lesson-note,.highlight,.summary-box,.lesson-flow,.lesson-steps,.guide-card,blockquote) :is(p,span,b,strong,em,li,h2,h3){
  color:#525B63!important;
}

/* Search and application surfaces, statuses, and links. */
body #apply .college-search.college-lookup-card,
body #apply .college-lookup-card .college-search-results,
body #discover .research-controls,
body .research-caution,
body .research-evidence,body .research-evidence[open]{
  background:#FFF3EC!important;border-color:#E5E9ED!important;color:#525B63!important;
}
body .research-caution{border-left-color:#E5E9ED!important}
body .research-caution :is(strong,span,p,li){color:#525B63!important}
body #apply .college-lookup-card .college-search-result,
body #apply .college-lookup-card .college-search-result:hover,
body #apply .college-lookup-card .college-search-result:focus-visible{
  background:#FFFFFF!important;border-color:#E5E9ED!important;color:#525B63!important;
}
body #apply .college-lookup-card .college-search-result :is(strong,span){color:#525B63!important}
body #apply .college-lookup-card .college-manual{
  background:#FCFBF9!important;border-color:#E5E9ED!important;color:#525B63!important;
}
body .research-card :is(.country,.research-verification){color:#6A737A!important}
body .research-card .research-verification[data-review-state="verified"]{
  background:#FCFBF9!important;color:#525B63!important;border-color:#E5E9ED!important;
}
body .research-card .research-verification[data-review-state="partial"]{
  background:#FCFBF9!important;color:#4F5B65!important;border-color:#E5E9ED!important;
}
body .research-card .research-verification[data-review-state="unreviewed"]{
  background:#FCFBF9!important;color:#525B63!important;border-color:#E5E9ED!important;
}
body .research-card :is(.research-evidence,.research-evidence summary,.research-evidence h4,.research-evidence a){
  color:#525B63!important;
}
body .cardactions button,body .research-card .cardactions button{
  background:#C64F1D!important;border-color:#525B63!important;color:#697781!important;
}
body .cardactions button:hover{background:#A93C13!important}

/* Remaining common dark-forest buttons and forms. */
body :is(.followup-add,.application-toggle,.export-workspace,.google-signin,.primary-button,.primary-cta,.button,.darkbtn,button.primary-button){
  background:#C64F1D!important;border-color:#525B63!important;color:#697781!important;
}
body :is(.followup-add,.application-toggle,.export-workspace,.google-signin,.primary-button,.primary-cta,.button,.darkbtn,button.primary-button) :is(span,strong,b,small,i,em){
  color:#697781!important;
}
body :is(.followup-add,.application-toggle,.export-workspace,.google-signin,.primary-button,.primary-cta,.button,.darkbtn):hover{
  background:#A93C13!important;border-color:#525B63!important;color:#697781!important;
}
body .hero .primary-cta,body .hero .primary-cta :is(span,strong,b){color:#697781!important}
body [role="button"]:not(.college-search-result){
  background:#C64F1D!important;color:#697781!important;border-color:#525B63!important;
}
body :is(.milestone select,.application-header select,.formgrid input,.formgrid select,.formgrid textarea,.followup-controls select,.followup-controls button){
  background:#FFFFFF!important;color:#525B63!important;border-color:#E5E9ED!important;
}
body .milestone select option{background:#FFFFFF!important;color:#525B63!important}
body :is(.workspace-steps a.active,.rail a.active,.lesson-link.active){
  background:#FFF3EC!important;border-color:#E5E9ED!important;color:#525B63!important;
}
body :is(.topbar nav a,.topbar nav a.active,.sidebar nav button,.curriculum nav button){
  color:#525B63!important;
}

/* Editorial color in consent UI; preserve existing opt-out behavior. */
body .bdesh-analytics-consent{
  background:#FFFFFF!important;border:1px solid #E5E9ED!important;color:#525B63!important;
  box-shadow:0 18px 50px rgba(95,106,115,.13)!important;
}
body .bdesh-analytics-consent p{color:#525B63!important}
body .bdesh-analytics-consent button{
  background:#FCFBF9!important;color:#525B63!important;border-color:#E5E9ED!important;
}
body .bdesh-analytics-consent button:last-child{
  background:#C64F1D!important;color:#697781!important;border-color:#525B63!important;
}
body .bdesh-analytics-consent button:focus-visible{outline-color:#F1B896!important}


/* V3 — cream-first correction of high-specificity forest panel rules.
   The earlier theme was loaded correctly, but selectors like body .main .intro
   and body .action-plan .next-action still won the cascade. */
html body{
  --forest-glass:#FFFFFF;--forest-panel:#FFFFFF;--forest-bg:#FAF9F7;
  --repair-card:#FFFFFF;--repair-bg:#FAF9F7;
}
html body :is(.home-flow-head,.home-flow-head .journey-progress,
  .journey-detail,.journey-step:nth-child(3n+2) .journey-detail,
  .journey-step:nth-child(3n) .journey-detail,
  .learn-first,.action-plan,.deadline-center,.intro,
  .research-card,.application-card,.review-card,.profile-panel,
  .entry-card,.profile-form,.paper-form,.add-app,.reading-intro,
  .lesson-content,.knowledge-check,.reading-top,.chapter-card,
  .overview-illustration,.sync,.date-editor,.followup-form,
  .followup-item,.section-hint,.editor-form,.editor-history,
  .research-caution,.college-search,.college-lookup-card,
  .application-board-tools,.workspace-steps,.metrics>div,
  .deadline-summary>div,.journey-progress,.review-summary,
  .next-action,.research-controls,.sign-in-wall){
  background:#FFF3EC!important;
  background-image:none!important;
  border-color:#E5E9ED!important;
  box-shadow:0 8px 28px rgba(95,106,115,.035)!important;
  color:#525B63!important;
}
html body .main .intro,
html body .main .learn-first,
html body .main .action-plan,
html body .main .deadline-center,
html body .main .action-plan .next-action,
html body .main .deadline-center .deadline-entry,
html body #profile-app .profile-panel,
html body #discover .research-controls,
html body #apply .college-search.college-lookup-card,
html body .home-flow .home-flow-head,
html body .home-flow .journey-step .journey-detail,
html body .home-flow .journey-progress{
  background:#FFFFFF!important;
  background-image:none!important;
  border:1px solid #E5E9ED!important;
  box-shadow:0 7px 24px rgba(95,106,115,.03)!important;
}
html body .main .action-plan .next-actions,
html body .main .action-plan .next-action{
  background:#FFFFFF!important;
  background-image:none!important;
  border-color:#E5E9ED!important;
}
html body .main .action-plan .next-action{
  border-left:0!important;border-right:0!important;border-top:0!important;
  border-bottom:1px solid #E5E9ED!important;border-radius:0!important;
  box-shadow:none!important;
}
html body .main .action-plan .next-action :is(h3,p,span,strong,small,a),
html body .main .deadline-center :is(h2,h3,p,span,strong,small,a),
html body .main .intro :is(h2,h3,p,strong,span),
html body .main .learn-first :is(h2,h3,p,strong,span),
html body .home-flow .home-flow-head :is(h2,h3,p,span,strong,small,em),
html body .home-flow .journey-step .journey-detail :is(h3,p,.journey-foot,.journey-tag,small,em),
html body .home-flow .journey-progress :is(p,span,strong,small){
  color:#525B63!important;
}
html body .main .action-plan .next-action p,
html body .main .learn-first p,
html body .main .intro p,
html body .main .deadline-center p,
html body .home-flow .journey-step .journey-detail p{
  color:#6A737A!important;
}
html body .home-flow .journey-progress{
  border:1px solid #E5E9ED!important;border-radius:20px!important;
}
html body .home-flow .journey-ring{
  background:conic-gradient(#FCFBF9 var(--journey-percent,0%),#FCFBF9 0)!important;
}
html body .home-flow .journey-ring-inner{
  background:#FFFFFF!important;border:0!important;
}
html body .home-flow .journey-progress p{color:#6A737A!important}
html body .main .intro .sync,
html body .main .action-plan .next-action-number,
html body .main .deadline-summary>div{
  background:#FCFBF9!important;background-image:none!important;
  border-color:#E5E9ED!important;color:#525B63!important;
}
html body .main .intro .sync :is(span,strong,p){color:#525B63!important}
html body .home-flow .journey-node{background:#FCFBF9!important;color:#6A737A!important}
html body .home-flow .journey-arrow{color:#697781!important}
html body .main .metrics>div{background:#FFFFFF!important;border-color:#E5E9ED!important}
html body .main .metrics :is(strong,span,small){color:#525B63!important}
html body .workspace-steps{background:#FCFBF9!important;box-shadow:none!important}
html body .workspace-steps a{background:#FFFFFF!important;color:#525B63!important;border-color:#E5E9ED!important}
html body .workspace-steps a.active{background:#FFF3EC!important;color:#525B63!important;border-color:#E5E9ED!important}
html body .main .section-heading h2,html body .main .intro h2,
html body .main .learn-first h2,html body .main .action-plan h2,
html body .main .deadline-center h2{color:#525B63!important}
html body .main .section-heading p{color:#6A737A!important}

/* Panels found in the screenshots and their nested content. */
html body .milestones .milestone,
html body .main .milestone,
html body .main .research-card,
html body .main .application-card,
html body .lesson-content :is(.takeaway,.example,.example-row,.application-flow),
html body #profile-app :is(.profile-panel,.entry-card,.paper-form){
  background:#FFF3EC!important;
  background-image:none!important;
  border-color:#E5E9ED!important;
  box-shadow:0 5px 20px rgba(95,106,115,.025)!important;
}
html body .main .milestone :is(h3,p,span,strong,small,label){
  color:#525B63!important;
}
html body .main .milestone p{color:#6A737A!important}
html body .main .milestone select{
  background:#FCFBF9!important;color:#525B63!important;border:1px solid #E5E9ED!important;
}
html body #profile-app .profile-panel :is(h1,h2,h3,p,span,label,small,strong){
  color:#525B63!important;
}
html body #profile-app .profile-panel p{color:#6A737A!important}

/* Don't let graphic overlays recreate a green tint. */
html body .home-flow-head::before,
html body .home-flow-head::after,
html body .journey-detail::before,
html body .journey-detail::after,
html body .main .intro::before,
html body .main .intro::after,
html body .main .action-plan::before,
html body .main .deadline-center::before{
  background:none!important;
  background-image:none!important;
}

/* Non-green neutrals for controls and understated actions. */
html body .main :is(.button,.export-workspace,.application-toggle),
html body .home-flow .journey-detail a.darkbtn{
  background:#FCFBF9!important;color:#525B63!important;
  border:1px solid #E5E9ED!important;
  box-shadow:none!important;
}
html body .main :is(.button,.export-workspace,.application-toggle):hover,
html body .home-flow .journey-detail a.darkbtn:hover{
  background:#FCFBF9!important;color:#525B63!important;
}
html body .main :is(.button,.export-workspace,.application-toggle) :is(span,strong,b){
  color:#525B63!important;
}
html body .main .next-action a,
html body .main .deadline-link,
html body .main .action-plan-link{
  color:#6A737A!important;border-color:#E5E9ED!important;
}

/* Keep buttons readable while avoiding visually dominant espresso fills. */
html body .hero .primary-cta,
html body .home-flow .journey-detail a.journey-link{
  background:#FCFBF9!important;color:#525B63!important;
  border:1px solid #E5E9ED!important;
}
html body .hero .primary-cta:hover,
html body .home-flow .journey-detail a.journey-link:hover{
  background:#FCFBF9!important;color:#525B63!important;
}
html body .hero .primary-cta :is(span,strong,b){color:#525B63!important}


/* V4: PREMIUM CREAM + SUNSET ORANGE.
   Source of truth for the new palette; no forest greens or espresso surfaces.
   Backgrounds stay predominantly ivory. Orange is reserved for actions and small highlights. */
:root{
  color-scheme:light;
  --ink:#525B63;--secondary:#6A737A;--cream:#FAF9F7;--paper:#FFFFFF;
  --mint:#FFF3EC;--line:#E5E9ED;--accent:#C64F1D;
  --forest-text:#525B63;--forest-muted:#6A737A;--forest-edge:#E5E9ED;
  --glass:#FFFFFF;--frost-bg:#FAF9F7;--frost-brd:#FFF3EC;
  --reading-ink:#525B63;--reading-muted:#6A737A;--reading-border:#E5E9ED;
  --repair-bg:#FAF9F7;--repair-card:#FFFFFF;--repair-border:#E5E9ED;
  --repair-text:#525B63;--repair-muted:#6A737A;--repair-focus:#C64F1D;
  --editorial-accent:#C64F1D;--editorial-ink:#525B63;--editorial-bg:#FAF9F7;
  --editorial-paper:#FFFFFF;--surface:#FFFFFF;
  --green:#C64F1D;--forest:#FCFBF9;--forest-bg:#FAF9F7;
  --forest-deep:#FCFBF9;--forest-mid:#FCFBF9;
  --forest-glass:#FFFFFF;--forest-panel:#FFFFFF;
}
html body,html body:is(.home,.workspace){
  background:#FFFFFF!important;
  background-image:radial-gradient(ellipse 30% 21% at 93% 0,rgba(255,243,236,.07),transparent 100%),
    linear-gradient(180deg,#FFFFFF,#FFFFFF)!important;
  color:#525B63!important;
}
html body :is(h1,h2,h3,h4,h5,h6,strong,b){color:#525B63!important}
html body :is(p,li,small,label,dt,dd){color:#6A737A!important}
html body :is(.eyebrow,.kicker,.journey-tag,.section-label,.chapter-id,.reading-time){
  color:#B5471C!important;
}
html body a{color:#B5471C!important}
html body a:hover{color:#B5471C!important}
html body :is(.topbar,.nav,.site-header,.top,.early){
  background:rgba(255,255,255,.96)!important;border-color:#E5E9ED!important;
  color:#525B63!important;box-shadow:0 6px 24px rgba(95,106,115,.035)!important;
}
html body :is(.nav,.topbar,.site-header,.top) :is(a,span,strong,#session-status,#account-name){
  color:#525B63!important;
}
html body :is(.side,.sidebar,.curriculum){
  background:#FCFBF9!important;
  background-image:none!important;
  border-color:#E5E9ED!important;color:#525B63!important;
  box-shadow:none!important;
}
html body :is(.side,.sidebar,.curriculum) :is(h1,h2,h3,p,span,a,em,strong){
  color:#525B63!important;
}
html body :is(.rail a.active,.workspace-steps a.active,.lesson-link.active,.curriculum nav button.active){
  background:#FFF3EC!important;border-color:#F1B896!important;color:#B5471C!important;
}
html body :is(.rail a,.workspace-steps a,.lesson-link){
  background:#FFFFFF!important;border-color:#E5E9ED!important;color:#525B63!important;
}

/* Light cards only: no dark container, tint, overlay or forest gradient. */
html body :is(.home-flow-head,.journey-detail,.journey-progress,.learn-first,
  .intro,.action-plan,.deadline-center,.research-card,.application-card,
  .review-card,.profile-panel,.entry-card,.paper-form,.profile-form,
  .add-app,.reading-intro,.lesson-content,.knowledge-check,.reading-top,
  .chapter-card,.overview-illustration,.sync,.date-editor,.followup-form,
  .followup-item,.section-hint,.editor-form,.editor-history,
  .research-caution,.college-search,.college-lookup-card,
  .application-board-tools,.workspace-steps,.metrics>div,
  .deadline-summary>div,.review-summary,.next-action,.research-controls,
  .sign-in-wall,.milestone,.takeaway,.example,.application-flow){
  background:#FFF3EC!important;
  background-image:none!important;
  border-color:#E5E9ED!important;
  color:#525B63!important;
}
html body :is(.home-flow-head,.journey-detail,.journey-progress,.learn-first,
  .intro,.action-plan,.deadline-center,.research-card,.application-card,
  .review-card,.profile-panel,.entry-card,.lesson-content,.milestone){
  box-shadow:0 8px 28px rgba(140,151,159,.035)!important;
}
html body .main .intro,
html body .main .learn-first,
html body .main .action-plan,
html body .main .deadline-center,
html body .main .action-plan .next-action,
html body .main .deadline-center .deadline-entry,
html body .main .milestone,
html body #profile-app .profile-panel,
html body #discover .research-controls,
html body #apply .college-search.college-lookup-card,
html body .home-flow .home-flow-head,
html body .home-flow .journey-step .journey-detail,
html body .home-flow .journey-progress{
  background:#FFFFFF!important;
  background-image:none!important;
  border-color:#E5E9ED!important;
}
html body .main .action-plan .next-action{
  border-bottom-color:#E5E9ED!important;
}
html body .main .action-plan .next-action :is(h3,strong),
html body .main :is(.intro,.learn-first,.deadline-center,.action-plan,.milestone) :is(h2,h3,strong),
html body .home-flow :is(.home-flow-head,.journey-detail,.journey-progress) :is(h2,h3,strong,em){
  color:#525B63!important;
}
html body .main :is(.intro,.learn-first,.action-plan,.deadline-center,.milestone) p,
html body .home-flow :is(.home-flow-head,.journey-detail,.journey-progress) p{
  color:#6A737A!important;
}

/* Atmospheric peach lighting: no dark gradient panels. */
html body .hero{
  background:radial-gradient(circle at 86% 14%,rgba(255,243,236,.23),transparent 33%),
    radial-gradient(circle at 73% 78%,rgba(255,243,236,.13),transparent 34%),
    linear-gradient(120deg,#FFFFFF,#FCFBF9)!important;
  border:1px solid #E5E9ED!important;
  box-shadow:0 22px 55px rgba(125,139,149,.085)!important;
}
html body .hero .hero-copy{
  background:rgba(255,255,255,.8)!important;
  background-image:none!important;
  border-color:rgba(229,233,237,.88)!important;
  box-shadow:0 10px 35px rgba(140,151,159,.055)!important;
}
html body .hero .hero-copy :is(h1,h1 em,h2,p,.hero-kicker,.hero-caption,.hero-note,.eyebrow){
  color:#525B63!important;
}
html body .hero .hero-copy .eyebrow{color:#B5471C!important}
html body .hero::before,html body .hero::after{
  background:radial-gradient(circle,rgba(255,243,236,.29),rgba(255,243,236,.06) 60%,transparent 72%)!important;
  border-color:rgba(229,233,237,.15)!important;
}
html body .home-flow .home-flow-head,
html body .home-flow .journey-detail{
  background:#FFFFFF!important;
}
html body .home-flow .journey-progress{
  background:#FFFFFF!important;
  border:1px solid #E5E9ED!important;
}
html body .home-flow .journey-ring{
  background:conic-gradient(#FFF3EC var(--journey-percent,0%),#FCFBF9 0)!important;
}
html body .home-flow .journey-ring-inner{
  background:#FFFFFF!important;color:#525B63!important;
}
html body .home-flow .journey-node{
  background:#FCFBF9!important;border:1px solid #E5E9ED!important;color:#B5471C!important;
}
html body .home-flow .journey-arrow{color:#B5471C!important}

/* Buttons: coral-orange primary, peach secondary. Avoid espresso fills. */
html body :is(.darkbtn,.primary-button,.primary-cta,.button,.google-signin,button.primary-button){
  background:#C64F1D!important;color:#fffefa!important;
  border:1px solid #F1B896!important;
  box-shadow:none!important;
}
html body :is(.darkbtn,.primary-button,.primary-cta,.button,.google-signin,button.primary-button):hover{
  background:#A93C13!important;border-color:#F1B896!important;color:#fffefa!important;
}
html body :is(.darkbtn,.primary-button,.primary-cta,.button,.google-signin,button.primary-button) :is(span,strong,b,i,em,small){
  color:#fffefa!important;
}
html body .hero .primary-cta,
html body .home-flow .journey-detail a.darkbtn,
html body .main :is(.button,.export-workspace,.application-toggle){
  background:#C64F1D!important;color:#fffefa!important;
  border:1px solid #F1B896!important;
  box-shadow:none!important;
}
html body .hero .primary-cta:hover,
html body .home-flow .journey-detail a.darkbtn:hover,
html body .main :is(.button,.export-workspace,.application-toggle):hover{
  background:#A93C13!important;color:#fffefa!important;
}
html body .hero .primary-cta :is(span,strong,b),
html body .main :is(.button,.export-workspace,.application-toggle) :is(span,strong,b){
  color:#fffefa!important;
}
html body :is(.outline-button,.college-search-result,.college-manual,
  .deadline-entry button,.editor-list button,.workspace-steps a,
  .lesson-link,.check-option,.followup-add){
  background:#FCFBF9!important;border:1px solid #E5E9ED!important;
  color:#B5471C!important;
}
html body :is(.outline-button,.college-search-result,.college-manual,
  .deadline-entry button,.editor-list button,.workspace-steps a,
  .lesson-link,.check-option,.followup-add):hover{
  background:#FCFBF9!important;color:#B5471C!important;
}
html body .home-flow .journey-detail a.journey-link{
  background:#FCFBF9!important;
  border-color:#E5E9ED!important;
  color:#B5471C!important;
}
html body .home-flow .journey-detail a.journey-link:hover{
  background:#FCFBF9!important;color:#B5471C!important;
}

/* All controls and highlighted bits use subtle orange, not forest. */
html body :is(input:not([type=checkbox]),select,textarea),
html body #discover .research-controls #research-search,
html body #discover .research-controls select,
html body #apply .college-lookup-card #college-search-input,
html body .milestone select{
  background:#FFF3EC!important;color:#525B63!important;
  border:1px solid #E5E9ED!important;
}
html body :is(input,textarea)::placeholder,
html body #discover #research-search::placeholder{
  color:#747D83!important;
}
html body :is(input[type=checkbox],input[type=radio],input[type=range]){accent-color:#B5471C!important}
html body :is(.metrics strong,.deadline-summary strong,.journey-progress strong){color:#525B63!important}
html body :is(.research-caution,.research-evidence,.research-controls,
  .date-editor,.sync,.followup-form,.reading-intro,.takeaway){
  background:#FFF3EC!important;
  border-color:#E5E9ED!important;
}
html body .main .intro .sync{background:#FFFFFF!important;color:#6A737A!important}
html body :is(.research-card .research-verification[data-review-state="verified"],
  .research-card .research-verification[data-review-state="partial"]){
  background:#FCFBF9!important;border-color:#E5E9ED!important;
  color:#B5471C!important;
}
html body :is(.research-card,.application-card,.lesson-content,.milestone) a:not(.button){
  color:#B5471C!important;
}
html body :is(.eyebrow,.journey-tag,.priority-label,.next-action-number,
  .reading-section-num,.chapter-id,.reading-time,.deadline-link,.action-plan-link){
  color:#B5471C!important;
}
html body .main .next-action a{color:#B5471C!important;border-bottom-color:#E5E9ED!important}
html body :is(.sidebar nav button.active,.curriculum nav button.active,
  .rail a.active,.workspace-steps a.active,.lesson-link.active){
  background:#FFF3EC!important;color:#B5471C!important;border-color:#E5E9ED!important;
}
html body .bdesh-analytics-consent{
  background:#FFFFFF!important;border-color:#E5E9ED!important;
  color:#525B63!important;
}
html body .bdesh-analytics-consent button:last-child{
  background:#C64F1D!important;border-color:#F1B896!important;color:#fffefa!important;
}
html body .trust-links,html body footer{
  background:#FCFBF9!important;border-color:#E5E9ED!important;color:#6A737A!important;
}
html body .trust-links :is(a,span),html body footer :is(a,span){color:#6A737A!important}
@media(prefers-reduced-transparency:reduce){
  html body :is(.hero-copy,.journey-detail,.research-card,.application-card,.lesson-content){
    background:#FFFFFF!important;backdrop-filter:none!important;
  }
}


/* V5: shared typography, alignment and overflow corrections.
   Keep this section after theme color rules. No markup or JS behavior changes. */
html body{
  --ink:#525B63;
  --secondary:#6A737A;
  --reading-ink:#525B63;
  --reading-muted:#6A737A;
  --forest-text:#525B63;
  --forest-muted:#6A737A;
  --accent:#C64F1D;
}
html body :is(.main,.hero-copy,.journey-detail,.home-flow-head,.learn-first,
  .action-plan,.deadline-center,.application-card,.research-card,.profile-panel,
  .lesson-content,.entry-card,.college-search,.editor-form){
  min-width:0;
  max-width:100%;
}
html body :is(.main,.hero-copy,.journey-detail,.home-flow-head,.learn-first,
  .action-plan,.deadline-center,.application-card,.research-card,.profile-panel,
  .lesson-content,.entry-card,.college-search,.editor-form)
  :is(h1,h2,h3,h4,p,li,span,strong,label,small,a,summary){
  max-width:100%;
  overflow-wrap:anywhere;
}
html body :is(.main,.hero-copy,.journey-detail,.lesson-content,.research-card,.profile-panel)
  :is(h1,h2,h3,h4){line-height:1.17}
html body :is(.main,.hero-copy,.journey-detail,.lesson-content,.research-card,.profile-panel)
  :is(p,li){line-height:1.65}
html body :is(.section-heading,.section-intro,.research-card,.entry-card,
  .application-card,.journey-detail) :is(h2,h3,h4,p){text-align:left}
html body .main .intro,
html body .main .learn-first{
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  align-items:center;
  gap:clamp(18px,2.5vw,30px);
}
html body .main :is(.intro,.learn-first)>div:first-child{
  flex:1 1 390px;
  min-width:0;
}
html body .main .intro .workspace-account-tools{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:12px;
  flex-wrap:wrap;
  margin-left:auto;
  min-width:0;
}
html body .main .intro .sync{
  flex:0 1 230px;
  min-width:0;
  max-width:260px;
  display:flex;
  align-items:center;
  overflow-wrap:anywhere;
}
html body .main :is(.action-plan-heading,.deadline-heading,.application-header,
  .section-heading,.application-board-tools,.college-lookup-head){
  display:flex;
  align-items:flex-start;
  flex-wrap:wrap;
  gap:clamp(13px,2vw,25px);
  justify-content:space-between;
}
html body .main :is(.action-plan-heading,.deadline-heading,.application-header,
  .section-heading,.college-lookup-head)>div:first-child{
  min-width:0;
  flex:1 1 350px;
}
html body .main .action-plan .next-action{
  display:grid;
  grid-template-columns:34px minmax(0,1fr) auto;
  align-items:center;
  gap:12px 18px;
  min-width:0;
  padding:19px 18px!important;
}
html body .main .action-plan .next-action>div{
  min-width:0;
}
html body .main .action-plan .next-action :is(h3,p){
  margin:0;
  max-width:100%;
  line-height:1.5;
}
html body .main .action-plan .next-action h3{margin-bottom:5px}
html body .main .action-plan .next-action>a{
  display:inline-flex;
  justify-self:end;
  align-items:center;
  text-align:center;
  white-space:normal;
  line-height:1.4;
  max-width:100%;
  min-width:0;
}
html body .main .deadline-center .deadline-entry{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto auto;
  gap:12px 18px;
  align-items:center;
}
html body .main .deadline-center .deadline-entry>div{min-width:0}
html body .main .deadline-center .deadline-entry button{
  justify-self:end;
  max-width:100%;
}
html body :is(.research-card .cardactions,.application-header,.application-footer,
  .entry-head,.entry-actions,.formactions,.editor-actions,.review-actions){
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:12px;
}
html body .research-card .cardactions{margin-top:12px}
html body .research-card .research-evidence{
  min-width:0;
  width:100%;
  max-width:100%;
  overflow-x:auto;
}
html body .research-card .research-evidence :is(a,p,li,summary){
  overflow-wrap:anywhere;
  word-break:break-word;
}
html body :is(.metrics,.formgrid,.field-grid,.entry-grid,
  .deadline-summary,.mini-checklist,.review-summary)>*{min-width:0}
html body :is(.profile-form,.paper-form,.add-app,.editor-form,.formgrid,.field-grid,.entry-grid)
  :is(input,textarea,select){min-width:0;max-width:100%;box-sizing:border-box}
html body :is(.profile-form,.paper-form,.add-app,.editor-form,.formgrid,.field-grid,.entry-grid)
  label{min-width:0;line-height:1.5;overflow-wrap:anywhere}
html body :is(.darkbtn,.primary-cta,.primary-button,.button,.outline-button,
  .google-signin,.application-toggle,.export-workspace,.journey-link,
  .college-search-result,.college-manual,.cardactions button){
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  box-sizing:border-box;
  max-width:100%;
  min-width:0;
  min-height:44px;
  padding:11px 16px;
  line-height:1.4;
  white-space:normal;
  text-align:center;
  overflow-wrap:anywhere;
}
html body .main .milestone{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
html body .main .milestone>div:first-child{min-width:0;flex:1 1 350px}
html body .main .milestone select{flex:0 1 180px;max-width:100%}
html body .home-flow .journey-progress{text-align:center}
html body .home-flow .journey-progress>*{min-width:0;max-width:100%}
html body .home-flow .journey-ring{margin-inline:auto}
html body .research-card .research-verification[data-review-state="verified"]{
  background:#FCFBF9!important;
  border:1px solid #E5E9ED!important;
  color:#B5471C!important;
}
html body #profile-app #profile-nav button.active,
html body #profile-app .completion-track span,
html body .curriculum :is(.bar span,.reading-progress span),
html body .reader .reading-progress span{
  background:#C64F1D!important;
}
html body #profile-app #profile-nav button.active{
  background:#FFF3EC!important;
  color:#B5471C!important;
}
html body .main .insight{
  background:#FFFFFF!important;
  color:#6A737A!important;
  border-left:3px solid #E5E9ED!important;
}
html body .main .insight :is(p,span,strong){color:#6A737A!important}
html body .sidebar-head,html body .curriculum .aside-progress{
  background:#FFFFFF!important;
  border-color:#E5E9ED!important;
}
html body :is(.reading-section,.lesson-content) :is(.takeaway,.example,.example-row,.application-flow){
  background:#FFF3EC!important;
  background-image:none!important;
  color:#6A737A!important;
  border-color:#E5E9ED!important;
}
@media(max-width:760px){
  html body .main :is(.intro,.learn-first){align-items:stretch}
  html body .main .intro .workspace-account-tools{width:100%;margin-left:0}
  html body .main .intro .sync{max-width:100%;flex:1 1 180px}
  html body .main .action-plan .next-action{
    grid-template-columns:30px minmax(0,1fr);
    padding:16px 12px!important;
    gap:7px 12px;
  }
  html body .main .action-plan .next-action>a{
    grid-column:2;
    justify-self:start;
    margin-top:6px;
  }
  html body .main .deadline-center .deadline-entry{
    grid-template-columns:minmax(0,1fr) auto;
  }
  html body .main .deadline-center .deadline-entry button{
    grid-column:1/-1;
    justify-self:start;
  }
  html body .main .milestone{flex-wrap:wrap;align-items:stretch}
  html body .main .milestone select{flex:1 1 100%;width:100%}
  html body .home-flow .journey-detail a.journey-link{max-width:100%}
  html body .entry-head{align-items:flex-start}
}
@media(max-width:420px){
  html body .main :is(.intro,.learn-first){padding:18px!important}
  html body .main .action-plan .next-action{grid-template-columns:25px minmax(0,1fr)}
  html body .research-card .cardactions{align-items:stretch}
  html body .research-card .cardactions button{width:100%}
}
