/* Neutral black dark mode. Purple is reserved for actions and focus indicators. */
/* Dialogs live outside workspace wrappers; give them the selected palette directly. */
#app .jr-scrim{--profile-surface:#fff;--profile-card:#f8f7fb;--profile-ink:#29223b;--profile-copy:#514961;--profile-muted:#797184;--profile-line:#e8e3ef;--profile-track:#e8e3ef;color:var(--profile-ink)}
html[data-theme=dark] #app .jr-scrim{--profile-surface:#111;--profile-card:#191919;--profile-ink:#f1f1f1;--profile-copy:#d0d0d0;--profile-muted:#a3a3a3;--profile-line:#292929;--profile-track:#303030}
html[data-theme=light] #app .jr-scrim :is(.jr-profile,.jr-schedule,.jr-profile-layout>aside,.jr-profile-layout>main,.jr-profile>header,.jr-tabs){background:var(--profile-surface)!important;color:var(--profile-ink)!important;border-color:var(--profile-line)!important}
html[data-theme=light] #app .jr-scrim :is(.jt-metrics article,.jt-summary>article,.jt-review,.jt-form,.jt-empty,.jt-contact>a,.jt-contact>span,.jt-history,.jc-employer-gauge,.jr-metrics article,.jr-documents>a,.jr-interview,.jr-role){background:var(--profile-card)!important;color:var(--profile-copy)!important;border-color:var(--profile-line)!important}
html[data-theme=light] #app .jr-scrim :is(h1,h2,h3,h4,b,strong,label,dd){color:var(--profile-ink)!important}
html[data-theme=light] #app .jr-scrim :is(p,li,a:not(.jr-primary)){color:var(--profile-copy)}
html[data-theme=light] #app .jr-scrim :is(small,.jt-metrics span,dt){color:var(--profile-muted)!important}
html[data-theme=light] #app .jr-scrim .jc-gauge{background:conic-gradient(#9569e5 var(--percent),var(--profile-track) 0)!important}
html[data-theme=light] #app .jr-scrim .jc-gauge::before{background:var(--profile-card)!important}
html[data-theme=light] #app .jr-scrim :is(input,select,textarea){background:#fff!important;color:var(--profile-ink)!important;border-color:var(--profile-line)!important}
html[data-theme=dark]{--joby-canvas:#080808;--joby-surface:#111;--joby-raised:#191919;--joby-field:#0b0b0b;--joby-ink:#f1f1f1;--joby-copy:#d0d0d0;--joby-muted:#a3a3a3;--joby-line:#242424;--canvas:#080808;--surface:#111;--raised:#191919;--field:#0b0b0b;--ink:#f1f1f1;--copy:#d0d0d0;--muted:#a3a3a3;--line:#242424;--brand-soft:#1a1a1a;--brand-ink:#c6acef;--background:#080808!important;--primary-soft:#181818!important;--primary-faint:#111!important;--accent-soft:#181818!important;--deep:#080808!important}
html[data-theme=dark] body{background:#080808!important;color:#f1f1f1}
html[data-theme=dark] #app .jy-app :is(.jy-header,.jy-footer,.jy-hero,.jm-hero,.jy-career-board,.jy-cta){background:#111!important;background-image:none!important}
html[data-theme=dark] #app :is(.jr-app,.jy-app,.admin-app,.auth-page,.j-page) :is(.eo-hero,.eo-plan,.auth-showcase,.admin-sidebar,.jd-menu,.cd-profile-panel,.ct-upgrade-panel,.ct-library-banner,.jc-cover,.jm-hero){background:#111!important;background-image:none!important}
html[data-theme=dark] #app :is(.jy-app,.jr-app,.jc-app,.admin-app,.auth-page,.j-page,.fa-auth-layout) :is(article,section,header,aside,footer,nav,div,button,input,textarea,select,a,fieldset,table,td,th,details,summary){border-color:#242424!important}
html[data-theme=dark] #app :is(.jy-app,.jr-app,.jc-app,.admin-app,.auth-page,.j-page) :is([class*="card"],[class*="panel"],[class*="dialog"],[class*="dropdown"],[class*="sidebar"]){box-shadow:none!important}
html[data-theme=dark] #app .jy-app.jr-app.je-reference,html[data-theme=dark] #app .jy-app.jr-app.je-reference .jr-main{background:#080808!important}
html[data-theme=dark] #app .admin-app :is(.admin-header,.admin-title,[class*="panel"],[class*="card"],[class*="metrics"],.admin-empty,.admin-settings-menu){background:#111!important;background-image:none!important;border-color:#242424!important}
html[data-theme=dark] #app .jy-app :is(.jy-hero-orbit,.eo-orbit){border-color:#282828!important}
html[data-theme=dark] #app :is(.eo-orbit,.eo-orbit i,.eo-orbit:before,.eo-orbit:after){background:#1a1a1a;border-color:#303030}
html[data-theme=dark] #app .jy-app .jy-career-board{color:#f1f1f1!important}
html[data-theme=dark] #app .jy-app :is(.jy-art-job-icon,.jy-art-job-check,.jy-art-note,.jy-hero-proof span){background:#1a1a1a!important}
html[data-theme=dark] #app .eo-plan a{border-color:#242424!important}
html[data-theme=dark] #app :is(.jp-preferences-card,.je-preferences,.jp-sidebar,.je-sidebar,.eo-panel,.ct-document-dialog,.ct-document-grid article,.cd-panel,.jc-panel){border-color:#242424!important}
/* Preserve keyboard focus and primary action contrast. */
/* Candidate drawers and trust cards also render inside recruiter overlays. */
html[data-theme=dark] #app :is(.jt-metrics article,.jt-summary>article,.jt-review,.jt-form,.jt-empty,.jt-contact>a,.jt-contact>span,.jt-history,.jc-employer-gauge,.jc-stat-row>article,.jr-metrics article,.jr-documents>a,.jr-interview,.jr-role,.jr-team-contact,.jr-progress button,.jr-schedule footer>button:first-child,.jc-ajax ul){background:#191919!important;color:#d0d0d0!important;border-color:#292929!important;box-shadow:none!important}
html[data-theme=dark] #app :is(.jt-metrics b,.jt-summary b,.jt-history b,.jt-contact>a,.jt-contact>span,.jr-documents b,.jc-gauge b){color:#f1f1f1!important}
html[data-theme=dark] #app :is(.jt-metrics span,.jt-summary small,.jt-review small,.jt-history small){color:#a3a3a3!important}
html[data-theme=dark] #app .jt-metrics article>div{background:#303030!important}
html[data-theme=dark] #app .jc-gauge{background:conic-gradient(#9569e5 var(--percent),#303030 0)!important}
html[data-theme=dark] #app .jc-gauge::before{background:#191919!important}
html[data-theme=dark] #app :is(.jc-personal-chips span,.jc-history-initial,.jr-avatar,.jc-photo,.jr-tabs small,.jc-add-tag){background:#242424!important;color:#c6acef!important;border-color:#303030!important}
html[data-theme=dark] #app .jr-profile-cover{background:#191919!important}
html[data-theme=dark] #app .jr-scrim{background:#0009!important;color:#f1f1f1!important}
html[data-theme=dark] #app .jr-scrim :is(section,header,aside,main,nav,article,div,footer,button,a,input,select,textarea){border-color:#292929!important}
html[data-theme=dark] #app .jr-scrim header button{background:#242424!important;color:#d0d0d0!important}
html[data-theme=dark] #app .jc-ajax li>button{color:#d0d0d0!important}
html[data-theme=dark] #app .jc-ajax li>button:is(:hover,.active){background:#242424!important}
html[data-theme=dark] #app :is(a,button,input,select,textarea,summary):focus-visible{outline:2px solid #a580ed!important;outline-offset:3px}
html[data-theme=dark] #app .eo-orbit::before,html[data-theme=dark] #app .eo-orbit::after{border-color:#303030!important;background:transparent!important}html[data-theme=dark] #app .eo-orbit i{border-color:#111!important;background:#777!important}
