/* Shared appearance tokens; loaded after existing page styles. */
:root[data-theme]{--mt-bg:#f4f8f6;--mt-surface:#fff;--mt-soft:#edf5f1;--mt-ink:#173b39;--mt-muted:#526c67;--mt-primary:#124d4b;--mt-deep:#073f43;--mt-accent:#b99450;--mt-line:#d5e4df;--mt-on:#fff;--mt-hero:#00635f;--mt-gold-text:#e8c47b;--mt-shadow:0 8px 24px #103b3010;--bg:var(--mt-bg);--ink:var(--mt-ink);--teal:var(--mt-primary);--teal2:var(--mt-primary);--teal-dark:var(--mt-deep);--deep:var(--mt-deep);--gold:var(--mt-accent);--line:var(--mt-line);--muted:var(--mt-muted);--white:var(--mt-surface);--paper:var(--mt-surface);--surface:var(--mt-surface)}
:root[data-theme="dark"]{--mt-bg:#10191e;--mt-surface:#1c2a30;--mt-soft:#25383c;--mt-ink:#eaf4f0;--mt-muted:#b8cdca;--mt-primary:#287d70;--mt-deep:#10272b;--mt-accent:#d5b675;--mt-line:#40555a;--mt-hero:#23484b;--mt-gold-text:#f1d591;--mt-shadow:none}
:root[data-theme="royal"]{--mt-bg:#edf3fc;--mt-surface:#fff;--mt-soft:#e6eefb;--mt-ink:#19365c;--mt-muted:#4c6584;--mt-primary:#163c83;--mt-deep:#102753;--mt-accent:#568ee3;--mt-line:#d4e1f4;--mt-hero:#285aa2;--mt-gold-text:#b8d7ff}
:root[data-theme="emerald"]{--mt-bg:#eef8f1;--mt-soft:#e0f4e8;--mt-ink:#164c38;--mt-muted:#436a58;--mt-primary:#086647;--mt-deep:#06462f;--mt-accent:#31ac7c;--mt-line:#cce5d5;--mt-hero:#13805d;--mt-gold-text:#b7f2d3}
:root[data-theme="minimal"]{--mt-bg:#f4f4f5;--mt-soft:#e9e9eb;--mt-ink:#27272a;--mt-muted:#52525b;--mt-primary:#27272a;--mt-deep:#18181b;--mt-accent:#71717a;--mt-line:#dedee1;--mt-hero:#444449;--mt-gold-text:#eeeef2}
html[data-theme] body{background:var(--mt-bg);color:var(--mt-ink)}
html[data-theme] :is(.nav,.site-header,.search-box,.search-field,.job,.number-card,.shortcut,.specialty-section,.career-tool-card,.career-service-card,.feedback-panel,.score-panel,.form-card,.upload-panel,.template-card,.how-grid article,.cd-card,.sm-card,.detail-dialog,.adminrow,.admin-traffic,.admin-insight,.career-tool-result){background:var(--mt-surface);color:var(--mt-ink);border-color:var(--mt-line);box-shadow:var(--mt-shadow)}
html[data-theme] :is(.specialty-card,.specialty-children,.specialty-chip,.quick-experience button,.filter-pill,.category-tabs,.chip,.recent-only-toggle,.today-filter,.sm-panel,.sm-home,.cd-initial,.keyword-block,.career-stage-result,.type-filter select,.sort-select,.favorites-filter,.filters-toggle,.upload-zone){background:var(--mt-soft);color:var(--mt-ink);border-color:var(--mt-line)}
html[data-theme] :is(.specialty-card.selected,.specialty-card:hover,.specialty-chip.active,.quick-experience button.active,.category-tab.active,.chip.active,.recent-only-toggle[aria-pressed=true],.today-filter[aria-pressed=true],.btn.primary,.primary){background:var(--mt-primary);color:var(--mt-on);border-color:var(--mt-primary)}
html[data-theme] :is(.specialty-card.selected,.specialty-card:hover) :is(strong,.specialty-count,.specialty-icon){color:#fff}
html[data-theme] :is(.navlinks,.brand-copy strong,.job h3,.job-company strong,.specialty-heading h2,.specialty-summary span,.specialty-subtitle,.sm-panel h3,.sm-home h2,.sm-card h3,.sm-card h4,.cd-card strong,.number-card b,.shortcut strong,.listing-heading h2,.category-tab,.sm-score,.field-label,.theme-more,.specialty-more,.score-status,.recommend-heading,.results-heading h2,.section-heading h2){color:var(--mt-ink)}
html[data-theme] :is(.job-description,.job-date,.meta,.specialty-heading p,.specialty-count,.specialty-note,.quick-experience>span,.sm-panel p,.sm-home p,.cd-note,.number-card span,.shortcut small,.listing-heading p,.career-tool-privacy,.step-heading p,.results-heading p,.section-heading p){color:var(--mt-muted)}
html[data-theme] :is(.specialty-icon,.sm-link,.clear-link,.mini-label,.eyebrow.dark,.navlinks a:hover,.navlinks .nav-home){color:var(--mt-primary)}
html[data-theme] :is(input:not([type=checkbox]):not([type=radio]),select,textarea){background:var(--mt-surface);color:var(--mt-ink);border-color:var(--mt-line)}
html[data-theme] :is(input,textarea)::placeholder{color:var(--mt-muted)}
html[data-theme] :is(.btn.outline,.outline,.theme-trigger,.specialty-more){background:var(--mt-surface);color:var(--mt-ink);border-color:var(--mt-line)}
html[data-theme] :is(.hero,.ats-hero,.cd-intro,.cd-head,.footer,.site-footer,.help-panel){background:linear-gradient(115deg,var(--mt-hero),var(--mt-deep));color:#fff}
html[data-theme] .hero h1 em,html[data-theme] :is(.hero-slogan,.hero-link,.hero-ats-link){color:var(--mt-gold-text)}
html[data-theme] .hero-ats-link{border-color:var(--mt-gold-text)}
html[data-theme] .hero-ats-link:hover{background:var(--mt-gold-text);color:var(--mt-deep)}
html[data-theme] .gold-btn{background:var(--mt-accent);color:#102229}
html[data-theme="minimal"] .gold-btn,html[data-theme="royal"] .gold-btn{color:#fff}
html[data-theme] .category-tab.active{color:#fff}
html[data-theme] .today-filter{font:inherit;font-size:13px;font-weight:800;padding:9px 13px;border:1px solid var(--mt-line);border-radius:10px;min-height:44px;cursor:pointer;white-space:nowrap}
.today-filter span{font-size:11px;margin-inline-start:4px}
.theme-trigger{font:inherit;font-size:12px;font-weight:800;white-space:nowrap;min-height:42px;padding:8px 11px;border:1px solid var(--mt-line);border-radius:9px;cursor:pointer}
.theme-dialog{width:min(440px,calc(100% - 28px));max-height:85vh;overflow:auto;padding:20px;background:var(--mt-surface);color:var(--mt-ink);border:1px solid var(--mt-line);border-radius:18px;box-shadow:0 18px 60px #0005;font-family:inherit}.theme-dialog::backdrop{background:#0007}.theme-top{display:flex;align-items:center;justify-content:space-between;gap:12px}.theme-top h2{font-size:20px;margin:0}.theme-close{border:0;background:transparent;color:var(--mt-ink);font-size:25px;cursor:pointer}.theme-dialog p{font-size:13px;color:var(--mt-muted)}.theme-list{display:grid;gap:8px}.theme-option{font:inherit;display:flex;align-items:center;gap:12px;background:var(--mt-soft);color:var(--mt-ink);border:1px solid var(--mt-line);border-radius:10px;padding:12px;text-align:start;cursor:pointer}.theme-option.selected{outline:2px solid var(--mt-primary);outline-offset:-2px}.theme-swatches{display:flex;gap:4px}.theme-swatches i{width:22px;height:22px;border-radius:50%;border:1px solid #8885}.mobile-bottom-nav{display:none}
@media(max-width:700px){body:has(.mobile-bottom-nav){padding-bottom:calc(70px + env(safe-area-inset-bottom))}.mobile-bottom-nav{display:grid;position:fixed;bottom:0;left:0;right:0;grid-template-columns:repeat(5,minmax(0,1fr));z-index:35;gap:2px;padding:6px 5px calc(6px + env(safe-area-inset-bottom));background:var(--mt-surface);border-top:1px solid var(--mt-line);box-shadow:0 -4px 18px #0001}.mobile-bottom-nav :is(a,button){display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:48px;border:0;background:transparent;color:var(--mt-ink);text-decoration:none;font:inherit;font-size:10px;line-height:1.4;text-align:center;cursor:pointer}.mobile-bottom-nav [aria-current=page]{background:var(--mt-soft);border-radius:9px;color:var(--mt-primary);font-weight:800}.bottom-icon{font-size:22px;line-height:1}.theme-trigger{display:none}.listing-controls .today-filter{grid-column:1/-1;justify-self:start;grid-row:3}.listing-controls.filters-open .today-filter{grid-row:3}.cd-head{align-items:center}}
html[data-theme="dark"] :is(.badge,.experience-pill,.job-verification,.deadline-line,.detail-note-label,.filter-explanation,.empty,.section-type,.job-location,.job-date,.form-step,.file-status,.result-card,.recommendations li,.breakdown-list){background:var(--mt-soft);color:var(--mt-ink);border-color:var(--mt-line)}
@media(prefers-reduced-motion:reduce){.theme-option,.today-filter{transition:none}}

/* Unified visual system: compact navigation, consistent accents and clean hero blend. */
:root[data-theme="royal"]{--mt-accent:#2759a6;--mt-gold-text:#c4ddff}
:root[data-theme="minimal"]{--mt-accent:#45454c}
html[data-theme] .top-career-banner{background:linear-gradient(110deg,var(--mt-deep),var(--mt-hero));border-color:var(--mt-gold-text)}
html[data-theme] .top-career-banner-brand{color:var(--mt-gold-text)}
html[data-theme] .top-career-banner-offer{background:var(--mt-gold-text);color:var(--mt-deep)}
html[data-theme] .hero{background:linear-gradient(120deg,var(--mt-hero),var(--mt-deep) 76%)}
html[data-theme] .hero-media{background-color:transparent;mask-image:linear-gradient(to right,transparent,#000 17%,#000 48%,transparent 95%);-webkit-mask-image:linear-gradient(to right,transparent,#000 17%,#000 48%,transparent 95%);opacity:.93}
html[data-theme] .hero-media-overlay{background:linear-gradient(to top,var(--mt-deep),transparent 26%),linear-gradient(to left,var(--mt-deep),transparent 60%);opacity:.65}
html[data-theme] .hero-arc{display:none}
html[data-theme] .hero-text{max-width:610px}
html[data-theme] .hero h1{font-size:clamp(32px,3.6vw,53px);line-height:1.3}
html[data-theme] .ats-promo{background:var(--mt-surface);border-color:var(--mt-line);box-shadow:var(--mt-shadow)}
html[data-theme] :is(.ats-promo h2,.ats-promo-copy .mini-label,.brand-copy small){color:var(--mt-ink)}
html[data-theme] .ats-promo p{color:var(--mt-muted)}
html[data-theme] :is(.ats-promo-icon,.number-icon,.number-icon.gold-light,.shortcut-symbol,.track-icon,.company-logo-fallback){background:var(--mt-soft);color:var(--mt-primary);border-color:var(--mt-line)}
html[data-theme] :is(.ats-promo-cta,.search-button,.nav-store){background:var(--mt-primary);color:#fff;border:1px solid var(--mt-primary);box-shadow:none}
html[data-theme] :is(.ats-promo-cta,.search-button,.nav-store):hover{background:var(--mt-deep);border-color:var(--mt-deep)}
html[data-theme] :is(.navlinks a:hover,.navlinks .nav-home){border-color:var(--mt-primary)}
html[data-theme] :is(.mobile-menu-toggle,.navlinks.mobile-open){background:var(--mt-surface);color:var(--mt-ink);border-color:var(--mt-line)}
html[data-theme] .navlinks a:hover{background:var(--mt-soft)}
html[data-theme] :is(.specialty-card.selected,.specialty-card:hover) :is(strong,.specialty-count,.specialty-icon){color:#fff}
html[data-theme] .theme-trigger{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;min-width:42px;padding:0;border-radius:12px;flex-shrink:0}
@media(min-width:1200px){html[data-theme] .nav-inner{width:calc(100% - 40px);max-width:1450px;display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:18px;align-items:center;min-height:78px}html[data-theme] .nav-inner .brand{min-width:0;flex-shrink:0}html[data-theme] .navlinks{display:flex;gap:clamp(10px,1.05vw,19px);justify-content:center;align-items:center;flex-wrap:wrap;white-space:normal;min-width:0;font-size:12px;line-height:1.4}html[data-theme] .navlinks a{white-space:nowrap;padding:7px 0;flex-shrink:0}html[data-theme] .nav-actions{display:flex;gap:8px;flex-shrink:0;white-space:nowrap}html[data-theme] .nav-actions .nav-store{font-size:11px;padding:10px 12px}}
@media(min-width:701px) and (max-width:1199px){html[data-theme] .nav-actions{display:flex!important;order:3}html[data-theme] .nav-actions .nav-store{display:none}html[data-theme] .nav-inner .theme-trigger{display:inline-flex}}
@media(max-width:700px){html[data-theme] .theme-trigger{display:none}html[data-theme] .hero h1{font-size:clamp(30px,8vw,42px)}}
html[data-theme="dark"] :is(.mini-label,.specialty-icon,.sm-link,.clear-link,.eyebrow.dark,.number-icon,.ats-promo-icon){color:#a8ded0}
html[data-theme="dark"] :is(.navlinks a:hover,.navlinks .nav-home){color:#c5e6df}
html[data-theme="dark"] :is(.job,.ats-promo,.specialty-section,.number-card,.shortcut,.sm-panel,.sm-home,.search-box){box-shadow:none}

/* v3: refined, contrast-checked palettes and complete public-page coverage. */
:root[data-theme="classic"]{--mt-bg:#F4F7F5;--mt-surface:#FFFFFF;--mt-soft:#E7F0EC;--mt-ink:#173B39;--mt-muted:#526B65;--mt-primary:#12544E;--mt-deep:#092F35;--mt-accent:#C6A568;--mt-line:#C8D9D2;--mt-hero:#176963;--mt-gold-text:#F1D89B;--mt-link:#17615A;--mt-accent-soft:#E0B96F;--mt-on:#fff;--mt-shadow:0 8px 26px #152b3210;--mt-focus:#17615A;--mt-success-bg:#E7F4EA;--mt-success-text:#23663C;--mt-warn-bg:#FFF1D9;--mt-warn-text:#80500D;--mt-danger-bg:#FDEBE8;--mt-danger-text:#97382D}
:root[data-theme="dark"]{--mt-bg:#101719;--mt-surface:#192528;--mt-soft:#223438;--mt-ink:#F1F6F3;--mt-muted:#B4C7C3;--mt-primary:#25685D;--mt-deep:#0C2024;--mt-accent:#D8B77A;--mt-line:#3D5356;--mt-hero:#21484B;--mt-gold-text:#F4D596;--mt-link:#9CDCCB;--mt-accent-soft:#D8B77A;--mt-on:#fff;--mt-shadow:none;--mt-focus:#9CDCCB;--mt-success-bg:#203C31;--mt-success-text:#B5E8C6;--mt-warn-bg:#433721;--mt-warn-text:#F7D599;--mt-danger-bg:#422D2E;--mt-danger-text:#FFC4BC}
:root[data-theme="royal"]{--mt-bg:#F0F4FA;--mt-surface:#FFFFFF;--mt-soft:#E5EDFA;--mt-ink:#172C49;--mt-muted:#506481;--mt-primary:#234C91;--mt-deep:#142B56;--mt-accent:#98B9F0;--mt-line:#CBD9EE;--mt-hero:#345FA5;--mt-gold-text:#C9DFFF;--mt-link:#244F94;--mt-accent-soft:#AACAF7;--mt-on:#fff;--mt-shadow:0 8px 26px #152b3210;--mt-focus:#244F94;--mt-success-bg:#E7F4EA;--mt-success-text:#23663C;--mt-warn-bg:#FFF1D9;--mt-warn-text:#80500D;--mt-danger-bg:#FDEBE8;--mt-danger-text:#97382D}
:root[data-theme="emerald"]{--mt-bg:#F1F7F3;--mt-surface:#FFFFFF;--mt-soft:#E2F0E7;--mt-ink:#183D30;--mt-muted:#4D685B;--mt-primary:#146247;--mt-deep:#0B3D2E;--mt-accent:#A3D3B7;--mt-line:#C9DDCF;--mt-hero:#287D5F;--mt-gold-text:#BCE8CC;--mt-link:#19674A;--mt-accent-soft:#B3DBBE;--mt-on:#fff;--mt-shadow:0 8px 26px #152b3210;--mt-focus:#19674A;--mt-success-bg:#E7F4EA;--mt-success-text:#23663C;--mt-warn-bg:#FFF1D9;--mt-warn-text:#80500D;--mt-danger-bg:#FDEBE8;--mt-danger-text:#97382D}
:root[data-theme="minimal"]{--mt-bg:#F5F5F4;--mt-surface:#FFFFFF;--mt-soft:#EAEAE8;--mt-ink:#25282B;--mt-muted:#5B6066;--mt-primary:#343940;--mt-deep:#21262B;--mt-accent:#C9CDD2;--mt-line:#D9DCDE;--mt-hero:#535C66;--mt-gold-text:#F0F1F3;--mt-link:#414B56;--mt-accent-soft:#D2D6DC;--mt-on:#fff;--mt-shadow:0 8px 26px #152b3210;--mt-focus:#414B56;--mt-success-bg:#E7F4EA;--mt-success-text:#23663C;--mt-warn-bg:#FFF1D9;--mt-warn-text:#80500D;--mt-danger-bg:#FDEBE8;--mt-danger-text:#97382D}

/* Preserve the private command centre's independent styling. */
html[data-theme]:not(.command-route){--gold-light:var(--mt-soft)}
html[data-theme]:not(.command-route) :is(.nav,.site-header,.job,.job-enhanced.job-vacancy,.number-card,.shortcut,.specialty-section,.ats-promo,.financial-discovery,.career-tool-panel,.career-service-card,.career-service-featured,.career-contact-panel,.why-card,.detail-dialog,.employer-form,.checker-card,.template-card,.score-panel,.feedback-panel,.how-grid article,.cd-card,.sm-card,.blog-card,.blog-article,.blog-nav,.blog-footer,.lab-page .card,.lab-page .panel){background:var(--mt-surface);color:var(--mt-ink);border-color:var(--mt-line);box-shadow:var(--mt-shadow)}
html[data-theme]:not(.command-route) :is(.why-section,.career-services,.career-tools,.results-section,.lab-page .section){background:var(--mt-bg);color:var(--mt-ink)}
html[data-theme]:not(.command-route) :is(.category-tabs,.specialty-children,.quick-experience button,.filter-pill,.chip,.specialty-chip,.specialty-card,.filters-toggle,.search-query,.drop-zone,.privacy-notice,.keyword-block,.score-stats span,.detail-info-grid>div,.detail-new-tools,.detail-experience-info,.detail-link-info,.detail-disclaimer,.career-tool-summary,.career-tool-message,.career-tool-icon,.career-service-icon,.why-icon,.field-icon,.step-number,.upload-icon,.company-initials,.track-icon,.number-icon,.shortcut-symbol,.cal-day,.cal-day.has-events,.lab-page .notice,.lab-page .secondary,.lab-page .chip){background:var(--mt-soft);color:var(--mt-ink);border-color:var(--mt-line)}
html[data-theme]:not(.command-route) :is(.hero,.intro,.blog-hero,.cd-intro,.cd-head:not(.blog-nav),.top-career-banner,.footer,.site-footer,.help-panel,.end-cta,.employer-intro,.lab-page .recommend){background:linear-gradient(125deg,var(--mt-hero),var(--mt-deep) 85%);color:#fff}
html[data-theme]:not(.command-route) :is(.hero,.intro,.blog-hero,.cd-intro,.help-panel,.end-cta,.employer-intro,.lab-page .recommend) :is(h1,h2,h3,p){color:#fff}
html[data-theme]:not(.command-route) :is(.hero h1 em,.hero-slogan,.hero-kicker span,.hero-link,.intro h1 em,.intro-link,.intro .eyebrow,.help-eyebrow,.blog-hero span,.blog-hero small,.end-cta .mini-label,.lab-page .kicker,.top-career-banner-brand){color:var(--mt-gold-text)}
html[data-theme]:not(.command-route) :is(.hero .push-prompt,.hero .push-prompt small,.intro-badges span){color:#F1F6F3;background:#ffffff0b;border-color:#ffffff55}
html[data-theme]:not(.command-route) :is(.hero .push-prompt small){background:transparent}
html[data-theme]:not(.command-route) :is(.navlinks a,.brand-copy strong,.logo strong,.logo small,.brand-copy small,.section-heading h2,.listing-heading h2,.career-tool-panel h3,.career-service-card h3,.career-services-header h2,.why-head h2,.why-card h3,.job h3,.job-company strong,.detail-company-name,.detail-description,.detail-info-grid strong,.detail-new-tools .detail-tool-heading,.detail-new-tools label,.checker-card h3,.template-top h3,.feedback-panel h3,.score-inner strong,.breakdown-row label,.how-grid h3,.lab-page .brand){color:var(--mt-ink)}
html[data-theme]:not(.command-route) :is(.meta,.source-note,.mobile-helper,.filter-explanation,.job-description,.job-date,.detail-info-grid span,.detail-source,.detail-tool-status,.career-services-header p,.career-services-note,.career-tool-panel p,.career-tool-result small,.career-service-card p,.why-card p,.why-head p,.step-heading p,.drop-zone small,.drop-zone span:not(.upload-icon),.template-top p,.template-tip,.scan-message,.privacy-notice p,.score-inner span,.score-panel>p,.keyword-block p,.keyword-block small,.how-grid p,.disclaimer,.blog-byline,.blog-card p,.lab-page .muted,.lab-page .card p){color:var(--mt-muted)}
html[data-theme]:not(.command-route) :is(.mini-label,.clear-link,.sm-link,.specialty-icon,.number-icon,.ats-promo-icon,.blog-kicker,.blog-more,.blog-sources a,.why-head h2 span,.career-services-header h2 em,.career-services-eyebrow,.career-tool-result a,.career-service-tag,.career-service-cta,.track-link,.detail-eyebrow,.detail-tool-actions button,.score-status,.lab-page .score,.lab-page .num,.lab-page .card a,.lab-page .nav a:not(.brand),.lab-page .panel a:not(.btn),.navlinks a:hover,.navlinks .nav-home){color:var(--mt-link)}
html[data-theme]:not(.command-route) :is(.btn.primary,.primary,.search-button,.ats-promo-cta,.nav-store,.header-store,.analyze-button,.small-button:not(.ghost),.blog-filter[aria-pressed=true],.lab-page .btn:not(.secondary),.category-tab.active,.specialty-card.selected,.specialty-card:hover,.specialty-chip.active,.quick-experience button.active,.chip.active,.recent-only-toggle[aria-pressed=true],.today-filter[aria-pressed=true],.cal-day.selected,.track-tile.is-selected,.shortcut-active){background:var(--mt-primary);color:#fff;border-color:var(--mt-primary)}
html[data-theme]:not(.command-route) :is(.shortcut-active,.specialty-card.selected,.specialty-card:hover,.cal-day.selected,.track-tile.is-selected) :is(strong,small,span,.specialty-icon,.specialty-count){color:#fff}
html[data-theme]:not(.command-route) :is(.btn.outline,.outline,.blog-filter,.small-button.ghost,.favorite-button,.detail-close,.detail-tool-actions button,.theme-trigger,.specialty-more,.cal-controls button,.mobile-menu-toggle){background:var(--mt-surface);color:var(--mt-ink);border-color:var(--mt-line)}
html[data-theme]:not(.command-route) :is(.gold-btn,.top-career-banner-offer,.lab-page .recommend a){background:var(--mt-accent);color:var(--mt-deep);border-color:var(--mt-accent);box-shadow:none}
html[data-theme]:not(.command-route) :is(.section-type,.job .badge,.job-vacancy .badge,.experience-pill,.career-service-tag,.template-badge,.keyword-tags span,.job-verification.ok,.detail-link-info.ok,.file-state.selected){background:var(--mt-success-bg);color:var(--mt-success-text);border-color:var(--mt-line)}
html[data-theme]:not(.command-route) :is(.job-verification.warn,.detail-link-info.warn,.keyword-tags.missing span,.deadline-line,.lab-page .missing .chip){background:var(--mt-warn-bg);color:var(--mt-warn-text);border-color:var(--mt-line)}
html[data-theme]:not(.command-route) :is(.deadline-expired,.scan-message.error,.lab-page .error){color:var(--mt-danger-text)}
html[data-theme]:not(.command-route) :is(.favorite-button.is-favorite,.favorite-button:hover){color:var(--mt-warn-text);background:var(--mt-warn-bg)}
html[data-theme]:not(.command-route) :is(.mobile-bottom-nav [aria-current=page],.theme-option.selected){color:var(--mt-link);background:var(--mt-soft);outline-color:var(--mt-focus)}
html[data-theme]:not(.command-route) :is(.score-inner,.theme-dialog,.theme-option){background:var(--mt-surface);color:var(--mt-ink);border-color:var(--mt-line)}
html[data-theme]:not(.command-route) :is(.breakdown-track,.lab-page .meter){background:var(--mt-soft)}
html[data-theme]:not(.command-route) :is(.breakdown-track>div,.lab-page .meter span){background:var(--mt-primary)}
html[data-theme]:not(.command-route) :is(input,select,textarea){accent-color:var(--mt-primary)}
html[data-theme]:not(.command-route) :is(a,button,input,select,textarea):focus-visible{outline:3px solid var(--mt-focus);outline-offset:3px}
html[data-theme]:not(.command-route) .theme-swatches i{border-color:var(--mt-line)}
html[data-theme]:not(.command-route) .footer :is(.brand-copy strong,.brand-copy small,.footer-grid h3,.footer-grid a,.footer-brand>span,.copyright){color:#eaf2ef}
html[data-theme]:not(.command-route) .footer .copyright{border-color:#ffffff33}
/* Deliberately retain neutral paper inside actual CV/document previews and company logos. */
html[data-theme]:not(.command-route) :is(.template-page,.art-sheet,.company-logo){background:#fff;color:#202729}
html[data-theme]:not(.command-route) .template-page :is(.template-page-name,.template-page-role,.template-page-contact,.template-page-heading){color:#263039}
html[data-theme]:not(.command-route) .lab-page .foot{border-color:var(--mt-line);color:var(--mt-muted)}
html[data-theme]:not(.command-route) .lab-page .nav .wrap{gap:10px}
html[data-theme]:not(.command-route) .lab-page .theme-trigger{width:42px;padding:0}
html[data-theme]:not(.command-route) .theme-option{padding:14px 12px;min-height:56px}
html[data-theme]:not(.command-route) .theme-option .theme-swatches i{width:25px;height:25px}
html[data-theme]:not(.command-route) .theme-option[aria-pressed=true]::after{content:'✓';margin-inline-start:auto;color:var(--mt-link);font-weight:800}

/* v4: explicit foreground/background pairs for interactive states and legacy selectors. */
:root[data-theme="classic"]{--mt-hero:#12554F}
:root[data-theme="royal"]{--mt-hero:#254A87}
:root[data-theme="emerald"]{--mt-hero:#165C44;--mt-gold-text:#CBEFD7}
:root[data-theme="minimal"]{--mt-hero:#444C55}
html[data-theme]:not(.command-route) :is(.intro-link,.whatsapp-button,.ad-rental-button,.gold-btn,.top-career-banner-offer,.lab-page .recommend a){background:var(--mt-accent)!important;color:var(--mt-deep)!important;border-color:var(--mt-accent)!important}
html[data-theme]:not(.command-route) :is(.intro-link:hover,.whatsapp-button:hover,.ad-rental-button:hover,.gold-btn:hover){background:var(--mt-accent-soft)!important;color:var(--mt-deep)!important}
html[data-theme]:not(.command-route) :is(.career-contact-copy strong,.career-phone-number,.career-tool-result strong,.track-tile strong,.track-heading h2,.drop-zone strong,.privacy-notice strong,.empty strong,.career-tool-form label,.career-stage label,.template-selector,.breakdown-row .marks,.detail-dialog h2,.detail-info-grid strong,.score-inner strong,.blog-article h1,.blog-prose h2,.blog-sources h2,.blog-cta h2){color:var(--mt-ink)!important}
html[data-theme]:not(.command-route) :is(.career-contact-copy span,.track-tile small,.track-note,.track-heading p,.optional,.file-state:not(.selected),.career-stage small,.recommendations li,.empty span,.job-verification:not(.ok):not(.warn),.career-tool-panel p.career-tool-privacy,.career-services-note,.cd-note,.blog-section-head p,.blog-article-summary,.blog-byline,.job-description,.job-date,.sort-control,.expired-control,.mobile-helper){color:var(--mt-muted)!important}
html[data-theme]:not(.command-route) :is(.track-tile:not(.is-selected),.career-ad-strip,.external-opportunities,.empty,.art-score){background:var(--mt-surface)!important;border-color:var(--mt-line)!important;color:var(--mt-ink)!important}
html[data-theme]:not(.command-route) :is(.art-score small,.career-ad-strip p){color:var(--mt-muted)!important}
html[data-theme]:not(.command-route) :is(.career-ad-strip h2,.career-ad-strip-copy>span,.header-inner nav,.header-inner nav a,.blog-nav a){color:var(--mt-ink)!important}
html[data-theme]:not(.command-route) :is(.career-ad-whatsapp,.career-featured-contact,.keyword-block h3 strong,.detail-source a,.blog-kicker,.blog-more,.blog-sources a,.score-status,.clear-link,.sm-link,.eyebrow.dark,.specialty-icon,.company-initials,.header-inner nav a:hover){color:var(--mt-link)!important}
html[data-theme]:not(.command-route) :is(.detail-eyebrow,.career-ad-strip-icon,.career-stage-result){background:var(--mt-soft)!important;color:var(--mt-link)!important}
html[data-theme]:not(.command-route) :is(.company-logo .company-initials){color:#164747!important;background:#fff!important}
html[data-theme]:not(.command-route) :is(.category-tab.active,.blog-filter[aria-pressed=true],.cal-day.selected,.track-tile.is-selected,.specialty-card.selected,.specialty-card:hover,.shortcut-active,.quick-experience button.active,.recent-only-toggle[aria-pressed=true],.today-filter[aria-pressed=true],.chip.active,.specialty-chip.active,.favorites-filter.active,.filters-toggle[aria-expanded=true]){background:var(--mt-primary)!important;color:#fff!important;border-color:var(--mt-primary)!important}
html[data-theme]:not(.command-route) :is(.category-tab.active span,.cal-day.selected small,.track-tile.is-selected strong,.track-tile.is-selected small,.track-tile.is-selected .track-icon,.shortcut-active strong,.shortcut-active small,.shortcut-active .shortcut-symbol,.specialty-card.selected strong,.specialty-card.selected .specialty-count,.specialty-card.selected .specialty-icon,.specialty-card:hover strong,.specialty-card:hover .specialty-count,.specialty-card:hover .specialty-icon){color:#fff!important}
html[data-theme]:not(.command-route) :is(.shortcut-active .shortcut-symbol,.track-tile.is-selected .track-icon){background:transparent!important}
html[data-theme]:not(.command-route) :is(.detail-disclaimer,.deadline-line:not(.deadline-expired),.job-verification.warn,.detail-link-info.warn,.keyword-tags.missing span){background:var(--mt-warn-bg)!important;color:var(--mt-warn-text)!important}
html[data-theme]:not(.command-route) :is(.deadline-expired,.scan-message.error,.lab-page .error){background:var(--mt-danger-bg)!important;color:var(--mt-danger-text)!important}
html[data-theme]:not(.command-route) :is(.file-state.selected,.job-verification.ok,.detail-link-info.ok,.keyword-tags:not(.missing) span){background:var(--mt-success-bg)!important;color:var(--mt-success-text)!important}
html[data-theme]:not(.command-route) :is(.drop-zone:hover,.drop-zone.is-dragover,.drop-zone:focus-within){background:var(--mt-soft)!important;border-color:var(--mt-focus)!important}
html[data-theme]:not(.command-route) :is(.help-panel small,.hero-kicker,.hero p,.intro p,.blog-hero p,.cd-intro p,.ad-rental-slot p,.ad-rental-contact,.top-career-banner-wa,.footer .copyright,.footer .footer-brand>span){color:#F1F6F3!important}
html[data-theme]:not(.command-route) :is(.ad-rental-slot){background:linear-gradient(125deg,var(--mt-hero),var(--mt-deep))!important;border-color:var(--mt-accent)!important}
html[data-theme]:not(.command-route) :is(.ad-rental-eyebrow,.ad-rental-mark,.blog-hero small,.blog-hero span,.hero h1 em,.hero-slogan,.intro h1 em,.intro .eyebrow,.help-eyebrow,.top-career-banner-brand){color:var(--mt-gold-text)!important}
html[data-theme]:not(.command-route) :is(.theme-option[aria-pressed=true]){background:var(--mt-soft)!important;color:var(--mt-link)!important}
html[data-theme]:not(.command-route) :is(.career-contact-actions .outline,.blog-filter:not([aria-pressed=true]),.detail-tool-actions button,.favorite-button:not(.is-favorite),.career-tool-result button){background:var(--mt-surface)!important;color:var(--mt-link)!important;border-color:var(--mt-line)!important}
html[data-theme]:not(.command-route) :is(.btn.primary,.job-buttons .primary,.nav-store,.ats-promo-cta,.search-button,.header-store,.analyze-button:not(:disabled),.small-button:not(.ghost),.financial-discovery-links .primary){background:var(--mt-primary)!important;color:#fff!important;border-color:var(--mt-primary)!important}
html[data-theme]:not(.command-route) :is(.analyze-button:disabled){background:var(--mt-soft)!important;color:var(--mt-muted)!important;border:1px solid var(--mt-line)!important}
html[data-theme]:not(.command-route) :is(.template-page .template-page-name,.template-page .template-page-role,.template-page .template-page-contact,.template-page .template-page-heading){color:#263039!important}
html[data-theme]:not(.command-route) :is(.academy-welcome .aw-content h2,.academy-welcome .aw-brand strong,.academy-welcome .aw-services span){color:#10294a!important}
/* Private dashboard keeps a consistent light palette independent of visitor preference. */
html.command-route{color-scheme:light}
html.command-route .cc-card,html.command-route .cc-login,html.command-route .cc-panel{color:#17373d}
html.command-route .cc-card :is(p,small),html.command-route .cc-login :is(p,small){color:#496360}

/* v5: foreground and background remain paired in the hero, including iOS sticky hover. */
html[data-theme]:not(.command-route) .hero-main-actions a.hero-ats-link,
html[data-theme]:not(.command-route) .hero-main-actions a.hero-ats-link:link,
html[data-theme]:not(.command-route) .hero-main-actions a.hero-ats-link:visited,
html[data-theme]:not(.command-route) .hero-main-actions a.hero-ats-link:hover,
html[data-theme]:not(.command-route) .hero-main-actions a.hero-ats-link:focus-visible,
html[data-theme]:not(.command-route) .hero-main-actions a.hero-ats-link:active{
  background:var(--mt-accent)!important;
  color:var(--mt-deep)!important;
  -webkit-text-fill-color:var(--mt-deep)!important;
  border:1px solid var(--mt-accent)!important;
  opacity:1!important;
  text-shadow:none!important;
  font-weight:900;
  text-decoration:none;
}
html[data-theme]:not(.command-route) .hero-main-actions a.hero-ats-link *{
  color:inherit!important;-webkit-text-fill-color:inherit!important;opacity:1!important;
}
html[data-theme]:not(.command-route) .hero-main-actions a.hero-ats-link:focus-visible{outline:3px solid #fff;outline-offset:3px}
@media(hover:hover) and (pointer:fine){
  html[data-theme]:not(.command-route) .hero-main-actions a.hero-ats-link:hover{
    background:var(--mt-accent-soft)!important;color:var(--mt-deep)!important;
  }
}
html[data-theme]:not(.command-route) #searchButton.gold-btn.search-button,
html[data-theme]:not(.command-route) #searchButton.gold-btn.search-button:hover,
html[data-theme]:not(.command-route) #searchButton.gold-btn.search-button:active{
  background:var(--mt-accent)!important;color:var(--mt-deep)!important;-webkit-text-fill-color:var(--mt-deep)!important;border-color:var(--mt-accent)!important;opacity:1!important;
}
html[data-theme]:not(.command-route) #searchButton span{color:inherit!important;-webkit-text-fill-color:inherit!important}
html[data-theme]:not(.command-route) .hero-search-outer .search-box,
html[data-theme]:not(.command-route) .hero-search-outer .search-field{
 background:var(--mt-surface)!important;color:var(--mt-ink)!important;border-color:var(--mt-line)!important
}
html[data-theme]:not(.command-route) .hero-search-outer :is(input,select,.specialty-jump,#heroSpecialtyLabel){
 color:var(--mt-ink)!important;-webkit-text-fill-color:var(--mt-ink)!important;opacity:1!important
}
html[data-theme]:not(.command-route) .hero-search-outer input::placeholder{
 color:var(--mt-muted)!important;-webkit-text-fill-color:var(--mt-muted)!important;opacity:1!important
}
html[data-theme]:not(.command-route) .hero-search-outer .field-icon{
 background:var(--mt-soft)!important;color:var(--mt-link)!important
}
html[data-theme]:not(.command-route) .hero .push-prompt button.btn.primary{
 background:var(--mt-primary)!important;color:#fff!important;-webkit-text-fill-color:#fff!important;opacity:1!important
}
