/* Impulsa editorial identity. Local assets, system fonts and reduced motion. */
:root{--brand-night:#102a38;--brand-paper:#f4f1e8;--brand-gold:#b58b43;--brand-teal:#397f7c}
.visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
html body{background-color:var(--brand-paper)!important;background-image:radial-gradient(ellipse at 0 25%,#b58b4310,transparent 50%),linear-gradient(90deg,#102a3806 1px,transparent 1px),linear-gradient(#102a3806 1px,transparent 1px)!important;background-size:auto,72px 72px,72px 72px;background-attachment:scroll;color:var(--ui-ink)}
html[data-theme=dark] body{background-color:#102a38!important;background-image:radial-gradient(ellipse at 0 25%,#b58b4310,transparent 50%),linear-gradient(90deg,#ffffff05 1px,transparent 1px),linear-gradient(#ffffff05 1px,transparent 1px)!important}
html body .impulsa-atmosphere{display:none}
html body :is(.site-header,.content-site-header){background:#fffdf8f7!important;border-bottom-color:#d8d3c5;backdrop-filter:blur(12px)}
html[data-theme=dark] body :is(.site-header,.content-site-header){background:#102a38f7!important;border-bottom-color:var(--ui-line)}
html body :is(.content-rule,.route-course,.auth-panel,.free-topic-preview,.home-route-card,.preparation-tools,.dash-block){border-color:#c9c9bf;border-radius:16px}
.brand-language{display:inline-flex;align-items:center;gap:4px;padding:3px;border:1px solid #c9c9bf;border-radius:30px;background:#fffdf8;flex:0 0 auto;font:600 .75rem/1.2 "Segoe UI",Arial,sans-serif}
.brand-language button{border:0;border-radius:24px;min-width:44px;min-height:38px;padding:7px 10px;color:#293e4a;background:transparent;font:inherit;cursor:pointer}
.brand-language button[aria-pressed=true]{background:#102a38;color:#fff}
.brand-language button:focus-visible{outline:3px solid #397f7c;outline-offset:2px}
html body .site-header .nav-links{gap:0}
html body .site-header .nav-links a{padding-left:9px;padding-right:9px;white-space:nowrap}
.brand-language-fallback{position:fixed;right:16px;bottom:16px;z-index:1001;box-shadow:0 5px 20px #102a3812}
.brand-academic-language{padding:12px 16px;border-left:3px solid #805008;background:#fff9e9;color:#293e4a;font-size:.875rem;line-height:1.6;border-radius:8px;margin:16px auto;max-width:1120px}
html body.home-about-first .brand-hero{padding:44px 0 48px!important;background:#102a38!important;color:#f8f5ed;position:relative;overflow:hidden}
.brand-hero::before{content:"";position:absolute;inset:0;pointer-events:none;background:radial-gradient(ellipse at 15% 100%,#397f7c33,transparent 55%),repeating-linear-gradient(130deg,transparent 0 94px,#ffffff06 95px 96px)}
.brand-hero>.container{position:relative;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;gap:48px}
html body.home-about-first .brand-hero :is(h1,p,span,strong){color:#f8f5ed!important;-webkit-text-fill-color:currentColor!important}
html body.home-about-first .brand-hero .minimal-eyebrow{color:#e2bf7f!important;font-size:.72rem;letter-spacing:.12em}
html body.home-about-first .brand-hero h1{font-family:Georgia,"Times New Roman",serif!important;font-weight:500!important;font-size:clamp(2.1rem,3.6vw,3rem)!important;line-height:1.12!important;letter-spacing:-.035em;max-width:16ch;margin:20px 0}
html body.home-about-first .brand-hero .brand-intro{max-width:53ch;font-size:1rem!important;line-height:1.8;color:#e0e8e9!important}
.brand-hero .brand-actions{display:flex;flex-wrap:wrap;gap:12px;margin:26px 0 18px}
html body.home-about-first .brand-hero .brand-primary{background:#e1bd7b!important;border-color:#e1bd7b!important;color:#102a38!important;-webkit-text-fill-color:#102a38!important}
html body.home-about-first .brand-hero .brand-primary:hover{background:#f0d5a1!important}
html body.home-about-first .brand-hero .brand-secondary{background:transparent!important;border-color:#b7c6c9!important;color:#f8f5ed!important;-webkit-text-fill-color:#f8f5ed!important}
html body.home-about-first .brand-hero .brand-independence{font-size:.76rem!important;line-height:1.7;color:#c5d5d9!important;max-width:58ch;margin-top:18px}
.brand-hero .brand-labels{display:flex;flex-wrap:wrap;gap:18px;font-size:.78rem;margin:20px 0 0}
.brand-carousel{margin:0;min-width:0;border:1px solid #ffffff30;border-radius:24px;overflow:hidden;background:#f4f1e8;position:relative}
.brand-slides{position:relative;aspect-ratio:3/2;background:#f4f1e8}
.brand-slide{margin:0;width:100%;height:100%}
.brand-slide[hidden]{display:none!important}
.brand-slide img{display:block;width:100%;height:100%;object-fit:cover;aspect-ratio:3/2}
.brand-carousel-caption{background:#f4f1e8;padding:18px 20px;min-height:106px}
html body.home-about-first .brand-hero .brand-carousel-caption :is(p,strong,span){color:#102a38!important;-webkit-text-fill-color:#102a38!important}
.brand-carousel-caption strong{display:block;font-size:1.05rem;margin:0 0 7px}
.brand-carousel-caption p{font-size:.86rem;line-height:1.6;margin:0}
.brand-carousel-controls{display:flex;align-items:center;justify-content:space-between;gap:10px;background:#f4f1e8;padding:0 18px 16px}
.brand-carousel-controls button{display:inline-grid;place-items:center;border:1px solid #9da9a7;border-radius:50%;width:44px;height:44px;min-width:44px;background:transparent;color:#102a38;font:inherit;cursor:pointer}
.brand-carousel-controls button:hover{background:#e3ded1}
.brand-carousel-controls .brand-carousel-play{border-radius:22px;width:auto;padding:8px 14px;gap:6px;display:inline-flex;font-size:.75rem;font-weight:650}
.brand-carousel-dots{display:flex;align-items:center;gap:0}
.brand-carousel-dots button{width:30px;min-width:30px;border:0;background:transparent}
.brand-carousel-dots button::before{content:"";width:7px;height:7px;border-radius:50%;background:#8a9696}
.brand-carousel-dots button[aria-current=true]::before{width:20px;border-radius:8px;background:#102a38}
.brand-carousel button:focus-visible{outline:3px solid #805008!important;outline-offset:2px}
html body.home-about-first .brand-hero-copy :is(a,button):focus-visible{outline:3px solid #f2d89e!important;outline-offset:4px}
html[data-theme=dark] body :is(.site-header,.content-site-header) a:focus-visible{outline-color:#f1c879!important}
html body.home-about-first .brand-carousel .visually-hidden{color:#102a38!important;-webkit-text-fill-color:#102a38!important;background:#f4f1e8!important}
.brand-about{padding:48px 0;scroll-margin-top:96px}
.brand-about-heading{display:grid;grid-template-columns:1fr 1fr;gap:48px;align-items:start;margin-bottom:26px}
html body.home-about-first .brand-about h2{font-family:Georgia,"Times New Roman",serif;font-size:clamp(1.65rem,2.4vw,2rem)!important;line-height:1.25;max-width:22ch;margin:10px 0;color:var(--ui-ink)!important;-webkit-text-fill-color:var(--ui-ink)!important}
.brand-about-heading>p{line-height:1.8;color:var(--ui-text);margin:30px 0 0}
.brand-about-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.brand-about-grid article{padding:22px;border-top:2px solid #b58b43;background:var(--ui-surface);border-radius:0 0 14px 14px}
.brand-about-grid small{font:600 .75rem/1.5 ui-monospace,Consolas,monospace;color:var(--ui-text)}
html[data-theme] body.home-about-first .brand-about-grid h3{font-size:1.05rem;margin:12px 0;color:var(--ui-ink)!important;-webkit-text-fill-color:var(--ui-ink)!important}
.brand-about-grid p{font-size:.9rem;line-height:1.75;margin:0;color:var(--ui-text)}
.brand-about-more{display:inline-flex;align-items:center;min-height:44px;margin-top:18px;color:#805008;font-weight:650;text-decoration:underline}
html[data-theme=dark] .brand-about-more{color:#f1c879}
body.home-about-first .home-route-section{background:var(--ui-surface);border-top:1px solid var(--ui-line);border-bottom:1px solid var(--ui-line)}
html[data-theme=dark] body.home-about-first .home-route-section .home-section-head h2{color:var(--ui-ink)!important;-webkit-text-fill-color:var(--ui-ink)!important}
html[data-theme=dark] body.home-about-first .home-route-section .home-section-head p,html[data-theme=dark] body.home-about-first .home-route-section>.container>.home-route-note{color:var(--ui-text)!important;-webkit-text-fill-color:var(--ui-text)!important}
html[data-theme=dark] body.home-about-first .home-route-section .minimal-eyebrow,html[data-theme=dark] body.home-about-first .home-route-section>.container>.home-route-note a{color:var(--ui-gold)!important;-webkit-text-fill-color:var(--ui-gold)!important}
.brand-original-content{font-size:.8rem;color:var(--ui-text);line-height:1.6}
@media(max-width:920px){.brand-hero>.container{gap:28px}.brand-language{margin-left:auto}.header-navigation .brand-language{margin-left:0}}
@media(max-width:760px){html body.home-about-first .brand-hero{padding:30px 0!important}.brand-hero>.container{grid-template-columns:1fr;gap:26px}.brand-hero h1{max-width:20ch!important}.brand-about-heading{grid-template-columns:1fr;gap:0}.brand-about-heading>p{margin:8px 0 0}.brand-about-grid{grid-template-columns:1fr;gap:12px}.brand-about{padding:30px 0}.brand-about-grid article{padding:18px}.brand-carousel{max-width:560px}.brand-language button{min-width:38px;min-height:38px;padding:5px 7px}.site-header>.container>.brand-language{margin-left:auto}.site-header .mobile-menu-toggle{margin-left:0}.brand-hero .brand-actions .btn{flex:1;min-width:160px}.brand-carousel-caption{min-height:100px}}
@media(max-width:380px){.brand-hero .brand-actions{flex-direction:column}.brand-carousel-controls{padding-right:12px;padding-left:12px;gap:4px}.brand-carousel-controls .brand-carousel-play{font-size:.7rem;padding:7px 10px}.brand-carousel-dots button{width:26px;min-width:26px}}
@media(prefers-reduced-motion:reduce){.brand-carousel *{animation:none!important;transition:none!important}}

/* All 64 documents use this final identity layer, including dynamically rendered
   classrooms and administration. Gold is decorative; text uses a darker ink
   variant. Keep semantic success/error pairs separate from the brand palette. */
:root{
  --brand-canvas:#f4f1e8;--brand-field:#fffdf7;--brand-ink-gold:#76551f;
  --brand-action:#102a38;--brand-action-hover:#234957;--brand-on-action:#f4f1e8;
  --brand-teal-soft:#e4efea;--brand-gold-soft:#f3ead6;
  --brand-control-line:#798b89;--brand-shadow:0 8px 28px #102a3809;
}
html[data-theme=dark]{
  --brand-canvas:#102a38;--brand-field:#102e39;--brand-ink-gold:#e2bf7f;
  --brand-action:#e2bf7f;--brand-action-hover:#f0d5a1;--brand-on-action:#102a38;
  --brand-teal-soft:#21434b;--brand-gold-soft:#3d3c30;
  --brand-control-line:#89a6a3;--brand-shadow:0 8px 28px #071b2329;
}
/* Bridge the earlier public, application and dashboard token families. */
html[data-theme] body,html[data-theme] body .dash-page{
  --bg:var(--brand-canvas);--bg-soft:var(--ui-soft);--surface:var(--ui-surface);
  --surface-strong:var(--ui-surface);--surface-muted:var(--ui-soft);
  --text:var(--ui-ink);--text-soft:var(--ui-text);--text-muted:var(--ui-text);
  --heading:var(--ui-ink);--primary:var(--brand-action);--primary-strong:var(--brand-action-hover);
  --secondary:var(--ui-blue);--accent:var(--brand-ink-gold);--accent-soft:var(--brand-gold-soft);
  --border:var(--ui-line);--border-strong:var(--brand-control-line);
  --ink:var(--ui-ink);--body:var(--ui-text);--muted:var(--ui-text);--line:var(--ui-line);
  --soft:var(--ui-soft);--soft-blue:var(--brand-teal-soft);--gold:var(--brand-ink-gold);
  --gold-dark:var(--brand-ink-gold);--gold-soft:var(--brand-gold-soft);--navy:var(--ui-blue);
  --dash-ink:var(--ui-ink);--dash-muted:var(--ui-text);--dash-line:var(--ui-line);
  --dash-bg:var(--ui-surface);--dash-soft:var(--ui-soft);--dash-gold:var(--brand-ink-gold);
  --shadow:var(--brand-shadow);--shadow-soft:var(--brand-shadow);
  --app-text-body:var(--ui-text);--app-text-soft:var(--ui-text);
}
html[data-theme] body :is(#page-content,.mock-page){background:transparent!important}
html[data-theme] body #page-content>.section{background:transparent!important}
html[data-theme] body[data-page=dashboard] #site-header .header-primary-action[href^="dashboard.html"]{display:none!important}
html[data-theme] body :is(.section-surface,.minimal-section-soft,.minimal-section-muted,.home-route-section,.home-course-section,.home-faq-section,.home-diagnostic-section,.home-route-closing,.free-classroom,.admin-workspace){background:var(--brand-canvas)!important}
html[data-theme] body :is(.content-hero,.minimal-page-hero,.page-hero,.free-classroom-hero,.dashboard-hero,.admin-hero){
  background-color:var(--brand-canvas)!important;
  background-image:radial-gradient(ellipse at 100% 0,#b58b4324,transparent 60%),radial-gradient(ellipse at 5% 100%,#397f7c13,transparent 55%)!important;
  border-color:var(--ui-line)!important;
}
/* Editorial titles mirror the book-and-architecture imagery, while lessons,
   formulas, tables and all controls retain the readable system sans serif. */
html[data-theme] body :is(.content-hero,.minimal-page-hero,.page-hero) h1{font-family:Georgia,"Times New Roman",serif!important;font-weight:500!important;letter-spacing:-.025em!important;color:var(--ui-ink)!important;-webkit-text-fill-color:currentColor!important}
html[data-theme] body :is(.content-hero,.minimal-page-hero,.page-hero) p{color:var(--ui-text)!important;-webkit-text-fill-color:currentColor!important}
html[data-theme] body #page-content .free-classroom-head h1{font-family:Georgia,"Times New Roman",serif!important;font-size:clamp(1.6rem,2.6vw,2rem)!important;font-weight:500!important;line-height:1.22!important}
html[data-theme] body #page-content .free-activity-head h2{font-size:clamp(1.2rem,2vw,1.45rem)!important;line-height:1.35!important}
html[data-theme] body :is(.minimal-eyebrow,.content-eyebrow,.kicker,.minimal-label){color:var(--brand-ink-gold)!important;-webkit-text-fill-color:currentColor!important}
/* Ceramic surfaces and restrained depth, not glass or colored glow effects. */
html[data-theme] body :is(.content-toc,.resource-card,.about-grid article,.content-rule,.content-example,.content-practice,.route-course,.route-sample,.route-practice,.route-facts li,.route-example-data>div,.auth-panel,.entry-mode,.free-access-ready,.entry-first-lesson,.home-route-card,.home-course-card,.catalog-course-card,.brand-about-grid article,.product-demo,.product-diagnostic-card,.free-topic-preview,.free-topic-nav,.free-topic-panel,.free-metric-card,.free-summary-card,.free-theory-concept,.free-worked-example,.free-feedback-item,.free-question-card,.free-classroom-sidebar,.free-classroom-main,.free-badge,.course-card,.feature-card,.metric-card,.story-card,.program-card,.route-card,.study-mode-card,.editor-card,.achievement-card,.roadmap-card,.admin-summary-card,.admin-control-panel,.admin-kpi-card,.faq-item,.upload-card,.method-card,.methodology-proof-grid article,.methodology-cycle-card,.methodology-signal-card,.minimal-method-grid article,.minimal-route-card,.minimal-syllabus-card,.bcrp-context-panel,.bcrp-profile-preview,.program-area-grid details,.product-mastery-panel,.learning-final-panel,.learning-reviews,.mock-panel,.mock-topic-result,.mock-recommendation,.mock-toolbar,.preparation-tools,.sample-card,.study-recap,.visual-lab,.support-account,.modal-panel,.table-wrap,.analytics-card,.empty-state){
  background:var(--ui-surface)!important;border-color:var(--ui-line)!important;
  border-radius:16px;box-shadow:var(--brand-shadow)!important;color:var(--ui-ink);
}
html[data-theme] body :is(.home-route-card,.catalog-course-card,.home-course-card,.route-course,.dash-course){border-top:2px solid var(--brand-gold)!important}
html[data-theme] body :is(.home-route-card[data-home-route=finanzas],.route-course[data-route=finanzas]){border-top-color:var(--brand-teal)!important}
html[data-theme] body :is(.content-rule,.route-practice,.free-theory-formula,.free-example-steps,.training-feedback,.reinforcement-feedback,.dash-next,.dash-week-settings,.study-pending,.product-demo-equation,.mock-history-metrics>div,.mock-evolution li,.mock-topic-series li,.free-access-placeholder){background:var(--ui-soft)!important;border-color:var(--ui-line)!important;color:var(--ui-ink)!important}
html[data-theme] body :is(.content-example,.bcrp-profile-example,.mock-confirm,.mock-history-notice,.brand-academic-language){background:var(--brand-gold-soft)!important;border-color:var(--brand-gold)!important;color:var(--ui-ink)!important}
html[data-theme] body :is(.catalog-card-facts span,.route-facts li,.minimal-course-facts span,.hero-flag,.pill,.status-pill,.progress-tag){background:var(--brand-teal-soft)!important;color:var(--ui-ink)!important;-webkit-text-fill-color:currentColor!important;border-color:var(--ui-line)!important}
/* Explicit scoped text ownership beats old light-only !important guards. */
html[data-theme] body :is(main,#page-content) :is(h1,h2,h3,h4,strong,b,legend,summary,dt,dd){color:var(--ui-ink)!important;-webkit-text-fill-color:currentColor!important}
html[data-theme] body :is(main,#page-content) :is(p,li,small,label,caption,td,th){color:var(--ui-text)!important;-webkit-text-fill-color:currentColor!important}
html[data-theme] body :is(main,#page-content) :is(.error-text,.mock-wrong,.reinforcement-error,.mock-timer.is-urgent){color:var(--ui-error)!important;-webkit-text-fill-color:currentColor!important}
html[data-theme] body :is(main,#page-content) :is(.success-text,.mock-correct,.dash-domain-state[data-domain-state=passed]){color:var(--ui-green)!important;-webkit-text-fill-color:currentColor!important}
html[data-theme] body :is(main,#page-content) :is(.minimal-eyebrow,.content-eyebrow,.kicker,.minimal-label){color:var(--brand-ink-gold)!important;-webkit-text-fill-color:currentColor!important}
html[data-theme] body :is(main,#page-content) :is(.text-link,.dash-study-link,.route-jump-links a,.content-toc a,.entry-access a:not(.btn),.preparation-tools a:not(.content-button)){color:var(--ui-blue)!important;-webkit-text-fill-color:currentColor!important;text-underline-offset:4px}
html[data-theme] body :is(main,#page-content) a:not(.btn,.content-button,.sample-primary,.content-nav-cta){color:var(--ui-blue)!important;-webkit-text-fill-color:currentColor!important}
html[data-theme] body :is(.home-route-count,.home-route-first-course,.product-demo-label,.free-metric-card span,.free-metric-card small){color:var(--ui-text)!important;-webkit-text-fill-color:currentColor!important}
html[data-theme] body :is(.home-route-mock,.home-diagnostic-copy li,.minimal-program-summary,.minimal-course-facts span){background:var(--ui-soft)!important;border-color:var(--ui-line)!important}
html[data-theme] body .home-foundation-grid a{background:var(--ui-surface)!important;border-color:var(--ui-line)!important}
html[data-theme] body .home-foundation-grid span{color:var(--ui-text)!important;-webkit-text-fill-color:currentColor!important}
html[data-theme] body :is(main,#page-content) :is(.bcrp-track-card,.bcrp-source-review,.bcrp-resources article,.bcrp-academic-reference,.product-interest-form,.product-contact-options article,.minimal-route-grid article,.home-trust-grid aside,.minimal-course-score-card,.product-course-promise,.content-mistake,.free-activity-panel,.free-theory-contents,.free-theory-overview,.free-theory-overview li,.product-common-mistake,.admin-clean-panel,.admin-clean-tabs,.admin-workspace-header){background:var(--ui-surface)!important;border-color:var(--ui-line)!important;border-radius:14px}
html[data-theme] body :is(main,#page-content) :is(.catalog-card-topline>span,.product-consent>span,.minimal-course-score-card>span,.free-theory-contents,.free-theory-overview li span){color:var(--ui-text)!important;-webkit-text-fill-color:currentColor!important}
html[data-theme] body :is(main,#page-content) :is(.mock-option span,.mock-toolbar span,.mock-evolution span,.mock-page select,.mock-page option){color:var(--ui-ink)!important;-webkit-text-fill-color:currentColor!important}
html[data-theme] body :is(main,#page-content) :is(.product-course-promise>span,.product-theory-progress>span){color:var(--ui-text)!important;-webkit-text-fill-color:currentColor!important}
html[data-theme] body :is(main,#page-content) .admin-clean-tabs .tab-btn{color:var(--ui-ink)!important;-webkit-text-fill-color:currentColor!important;border-color:var(--ui-line)!important}
/* The analytics workspace had deliberately light-only legacy overrides. Own
   both sides of the pair here so charts and real tables share the theme too. */
html[data-theme] body #page-content #operations-panel :is(.analytics-toolbar,.analytics-card,.analytics-kpi,.analytics-funnel){background:var(--ui-surface)!important;border-color:var(--ui-line)!important}
html[data-theme] body #page-content #operations-panel :is(.analytics-toolbar,.analytics-card,.analytics-kpi,.analytics-funnel,.analytics-section-head,.analytics-journey) :is(p,label,small,h2,h3,h4,strong,li,summary,span){color:var(--ui-ink)!important;-webkit-text-fill-color:currentColor!important}
html[data-theme] body :is(main,#page-content) .free-topic-number{background:var(--brand-action)!important;color:var(--brand-on-action)!important;-webkit-text-fill-color:var(--brand-on-action)!important}
html[data-theme] body #page-content .impulsor-guide{background:var(--ui-soft)!important;border-color:var(--ui-line)!important;box-shadow:none!important}
html[data-theme] body #page-content .impulsor-controls>span{color:var(--brand-ink-gold)!important;-webkit-text-fill-color:currentColor!important}
html[data-theme] body :is(.nav-links a.is-active,.admin-clean-tabs .tab-btn.is-active){background:var(--brand-teal-soft)!important;color:var(--ui-ink)!important;-webkit-text-fill-color:currentColor!important}
html[data-theme] body :is(.content-article,.route-content) :is(h2,h3,strong){color:var(--ui-ink)!important}
html[data-theme] body :is(.content-hero,.route-content,.content-article,.resource-card,.content-toc) :is(p,li,small,dt,dd){color:var(--ui-text)!important}
/* Buttons have a single, high-contrast action pair in each preference. */
html[data-theme] body :is(.btn-primary,.header-primary-action,.content-button,.content-nav-cta,.sample-primary,.entry-access .btn,.entry-first-lesson .btn,.preparation-tools button:not(:disabled),#learning-search button){background:var(--brand-action)!important;border-color:var(--brand-action)!important;color:var(--brand-on-action)!important;-webkit-text-fill-color:var(--brand-on-action)!important}
html[data-theme] body :is(.btn-primary,.header-primary-action,.content-button,.content-nav-cta,.sample-primary):hover{background:var(--brand-action-hover)!important;border-color:var(--brand-action-hover)!important}
html[data-theme] body :is(.btn-secondary,.ghost-btn,.content-menu,.theme-toggle,.mobile-menu-toggle,.study-toolbar button,.password-toggle,.entry-password button){background:var(--ui-soft)!important;border-color:var(--brand-control-line)!important;color:var(--ui-ink)!important;-webkit-text-fill-color:currentColor!important}
html[data-theme] body :is(main,#page-content) :is(.btn-secondary,.ghost-btn){background:var(--ui-soft)!important;border-color:var(--brand-control-line)!important;color:var(--ui-ink)!important;-webkit-text-fill-color:var(--ui-ink)!important}
html[data-theme] body :is(input:not([type=checkbox],[type=radio],[type=range],[type=hidden],[type=submit],[type=button]),select,textarea,.entry-password){background:var(--brand-field)!important;border-color:var(--brand-control-line)!important;color:var(--ui-ink)!important;-webkit-text-fill-color:currentColor!important;box-shadow:none!important}
html[data-theme] body :is(input,textarea)::placeholder{color:var(--ui-text)!important;opacity:1}
html[data-theme] body input:is([type=radio],[type=checkbox],[type=range]){accent-color:var(--ui-blue)}
html[data-theme] body :is(.mock-option,.diagnostic-knowledge label,.training-option,.product-diagnostic-card label){background:var(--ui-surface)!important;border-color:var(--brand-control-line)!important;color:var(--ui-ink)!important}
html[data-theme] body :is(.mock-option,.diagnostic-knowledge label,.training-option,.product-diagnostic-card label):has(input:checked){background:var(--brand-teal-soft)!important;border-color:var(--ui-blue)!important;box-shadow:inset 3px 0 var(--ui-blue)!important}
html[data-theme] body :is(.nav-links a,.content-nav a)[aria-current=page]{background:var(--brand-teal-soft)!important;color:var(--ui-ink)!important;border-radius:8px}
html[data-theme] body :is(.nav-links,.content-nav).is-open{background:var(--ui-surface)!important;border-color:var(--ui-line)!important}
html[data-theme] body .header-navigation{background:var(--ui-surface)!important;border-color:var(--ui-line)!important}
html[data-theme] body .mobile-menu-toggle span{background:var(--ui-ink)!important}
html[data-theme] body .site-header :is(#logout-user-btn,#logout-admin-btn){background:var(--ui-soft)!important;border-color:var(--brand-control-line)!important;color:var(--ui-ink)!important;-webkit-text-fill-color:currentColor!important}
html[data-theme] body #page-content #operations-panel :is(.acquisition-metrics>div,.acquisition-limits,.analytics-rate,.analytics-card .pill){background:var(--ui-soft)!important;border-color:var(--ui-line)!important;color:var(--ui-ink)!important;-webkit-text-fill-color:currentColor!important}
html[data-theme] body :is(.mock-jump button,.entry-mode button,.dash-switch button,.dash-week-pace button){background:var(--ui-surface);border-color:var(--brand-control-line);color:var(--ui-ink)}
html[data-theme] body :is(.entry-mode button[aria-pressed=true],.dash-switch button[aria-pressed=true],.dash-week-pace button[aria-pressed=true]){background:var(--brand-action)!important;color:var(--brand-on-action)!important;-webkit-text-fill-color:var(--brand-on-action)!important;border-color:var(--brand-action)!important}
html[data-theme] body :is(.data-table,.training-table,.mock-history,.verified-report) :is(th,td){background:var(--ui-surface)!important;color:var(--ui-ink)!important;-webkit-text-fill-color:currentColor!important;border-color:var(--ui-line)!important}
html[data-theme] body :is(.data-table,.training-table,.mock-history) thead th{background:var(--ui-soft)!important}
html[data-theme] body :is(.mock-evolution li)::before{background:var(--brand-teal-soft)}
html[data-theme] body .mock-topic-series li{border-image:linear-gradient(to right,var(--ui-blue) var(--score-height,0%),var(--ui-line) 0) 1}
html[data-theme] body .mock-topic-series li[data-missing=true]{border-image:none;border-bottom:4px dashed var(--brand-control-line)}
html[data-theme] body :is(.free-progress-bar,.product-diagnostic-progress>i){background:var(--ui-soft)!important}
html[data-theme] body :is(.free-progress-bar>span,.product-diagnostic-progress>i>span){background:var(--ui-blue)!important}
html[data-theme] body :is(button,a,input,select,textarea,summary):focus-visible{outline-color:var(--ui-blue)!important}
/* Dark callouts / footer echo the carousel backdrop in both themes. */
html[data-theme] body :is(.content-cta,.minimal-program-banner,.home-program-bridge,.site-footer,.content-site-footer){background:var(--brand-night)!important;border-color:#607c7e!important;color:#f4f1e8!important}
html[data-theme] body :is(.content-cta,.minimal-program-banner,.home-program-bridge,.site-footer,.content-site-footer) :is(h2,h3,strong,p,small,li,span,a:not(.btn,.content-button)){color:#f4f1e8!important;-webkit-text-fill-color:#f4f1e8!important}
html[data-theme] body :is(main,#page-content) :is(.content-cta,.minimal-program-banner,.home-program-bridge) :is(h2,h3,strong,p,small,li,span,a:not(.btn,.content-button)){color:#f4f1e8!important;-webkit-text-fill-color:#f4f1e8!important}
html[data-theme] body :is(.content-cta,.minimal-program-banner,.home-program-bridge,.site-footer,.content-site-footer) :is(.btn-primary,.content-button){background:#e2bf7f!important;border-color:#e2bf7f!important;color:#102a38!important;-webkit-text-fill-color:#102a38!important}
html[data-theme] body :is(.content-cta,.site-footer,.content-site-footer) :focus-visible{outline-color:#e2bf7f!important}
/* Preserve the approved hero and its ivory, image-adjacent controls. */
html[data-theme] body.home-about-first #page-content .brand-hero :is(h1,p,span,strong){color:#f4f1e8!important;-webkit-text-fill-color:currentColor!important}
html[data-theme] body.home-about-first #page-content .brand-hero .minimal-eyebrow{color:#e2bf7f!important}
html[data-theme] body.home-about-first #page-content .brand-hero .brand-primary{background:#e2bf7f!important;border-color:#e2bf7f!important;color:#102a38!important;-webkit-text-fill-color:#102a38!important}
html[data-theme] body.home-about-first #page-content .brand-hero .brand-secondary{background:transparent!important;color:#f4f1e8!important;-webkit-text-fill-color:#f4f1e8!important}
html[data-theme] body.home-about-first #page-content .brand-hero .brand-carousel :is(p,strong,span){color:#102a38!important;-webkit-text-fill-color:#102a38!important}
html[data-theme] body.home-about-first .brand-hero-copy :focus-visible{outline-color:#e2bf7f!important}
html[data-theme] body .brand-carousel button:focus-visible{outline-color:#76551f!important}
@media(forced-colors:active){html body :is(.mock-option,.training-option):has(input:checked){outline:2px solid Highlight!important}html body .brand-carousel-dots button[aria-current=true]::before{background:Highlight}}
