/* Imkon appearance. The original light palette remains the default. */
.theme-toggle{display:inline-flex;align-items:center;justify-content:center;gap:7px;flex:none;min-height:40px;padding:8px 12px;border:1px solid #a8cbb4;border-radius:11px;background:#fff;color:#15543e;font:700 12px/1.2 system-ui,sans-serif;white-space:nowrap;cursor:pointer}
.theme-toggle:hover{background:#edf5ef}
.theme-toggle:focus-visible{outline:3px solid #84c7a0;outline-offset:3px}
.theme-toggle-icon{font-size:18px;line-height:1}
.theme-toggle-floating{position:fixed;z-index:100;top:16px;right:16px;box-shadow:0 8px 24px #0002}
@media(max-width:760px){.top .theme-toggle{padding:7px;min-width:42px;min-height:42px}.top .theme-toggle-label{display:none}.workspace .theme-toggle{min-width:42px;padding:8px}.workspace .theme-toggle-label{display:none}}

html[data-theme="dark"]{color-scheme:dark;--green:#96e1b5;--deep:#e3f5e9;--mint:#20382d;--lime:#d9efac;--ink:#edf8ef;--muted:#a5bbae;--paper:#0c1715;--white:#14221e;--line:#345245;--shadow:0 14px 38px #0005;--surface:#14221e;--surface-2:#1b3029;--surface-3:#20382e;--field:#101e1a;--accent:#a6efc3;--accent-ink:#09251a;--border:#345245}
html[data-theme="dark"] body{background:var(--paper)!important;color:var(--ink)}
html[data-theme="dark"] .theme-toggle{background:var(--surface-2);color:var(--text,#edf8ef);border-color:var(--border)}
html[data-theme="dark"] .theme-toggle:hover{background:var(--surface-3)}
html[data-theme="dark"] :is(.top,.topbar,.mobile-nav,.side,.panel,.card,.stat,.kpi,.search,.empty,.modal,.chat,.public-employer,.onboarding,.purpose,.reference-dialog,.reference-entry,.reference-summary,.reference-detail-section,.reference-form,.auth-error-dialog,.logout-dialog,.profile-full,.candidate-assessment-head,.company-info,.lesson-navigation,.course-card-polished,.account-menu,.tabs,.filter-rail){background:var(--surface)!important;color:var(--ink);border-color:var(--border);box-shadow:var(--shadow)}
html[data-theme="dark"] :is(.top,.topbar,.mobile-nav){border-color:var(--border)}
html[data-theme="dark"] .brand{color:var(--text,#edf8ef)}
html[data-theme="dark"] .logo{background:#0d6a4b;color:#fff}
html[data-theme="dark"] :is(.nav button,.side button,.mobile-nav button,.mobile-nav a,.account-menu button){color:var(--muted)}
html[data-theme="dark"] :is(.nav button.active,.nav button:hover,.side button.active,.side button:hover,.mobile-nav button.active,.mobile-nav a.active,.account-menu button:hover){background:var(--surface-3)!important;color:var(--accent)}
html[data-theme="dark"] a:not(.brand):not(.site-footer a):not(.hero a){color:var(--accent)}
html[data-theme="dark"] .hero{background:linear-gradient(115deg,#164c3b,#086548);color:#fff}
html[data-theme="dark"] .hero :is(h1,h2,h3){color:#fff}
html[data-theme="dark"] .hero :is(p,.eyebrow){color:#dcefe2}
html[data-theme="dark"] :is(.public-employer,.onboarding,.purpose,.resume-detail-hero,.profile-summary,.reference-summary){background:linear-gradient(125deg,#19372a,#14221e)!important;border-color:var(--border)!important}
html[data-theme="dark"] :is(.public-employer,.onboarding,.purpose) :is(h1,h2,h3,b){color:var(--ink)}
html[data-theme="dark"] :is(.public-employer,.onboarding,.purpose) p{color:var(--muted)}
html[data-theme="dark"] :is(.btn.primary,.primary,button.primary,.filter-rail>.btn.primary){background:#277e59!important;border-color:#277e59!important;color:#fff!important}
html[data-theme="dark"] :is(.btn.primary,.primary,button.primary):hover{background:#309269!important}
html[data-theme="dark"] :is(.btn.soft,.soft,.btn.outline,.outline,.chip,.tabs button,.save,.heart,.companyicon,.tag,.badge,.reference-employment,.mode button.active,.employment-choice select){background:var(--surface-3)!important;color:var(--accent)!important;border-color:var(--border)!important}
html[data-theme="dark"] :is(.btn.outline,.outline,.chip,.tabs button):hover{background:#294737!important}
html[data-theme="dark"] :is(.btn.lime,.lime){background:var(--lime);color:#173e2e}
html[data-theme="dark"] :is(.hero .btn.lime,.hero .lime){background:var(--lime)!important;color:#173e2e!important}
html[data-theme="dark"] :is(.muted,.small.muted,.head p,.section-title p,.card p,.card small,.rowbody span,.stat span,.kpi small,.kpi .label,.footer-label,.purpose p,.foot,.site-footer p,.reference-help,.reference-period,.reference-entry-top span){color:var(--muted)}
html[data-theme="dark"] :is(.salary,.reference-summary h3,.reference-detail-heading h3,.purpose-points b,.resume-detail-grid p,.rating-ring strong,.employment-choice small){color:var(--accent)}
html[data-theme="dark"] :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea,.field,.control,.compose input,.filter-rail input,.filter-rail select,.search input,.search select,.form input,.form select,.form textarea){background:var(--field)!important;color:var(--ink)!important;border-color:var(--border)!important}
html[data-theme="dark"] :is(input,textarea)::placeholder{color:#8fa99a;opacity:1}
html[data-theme="dark"] :is(input,select,textarea):focus-visible{outline-color:var(--accent)}
html[data-theme="dark"] :is(option,optgroup){background:var(--surface);color:var(--ink)}
@supports (appearance: base-select) and selector(::picker(select)) {
  html[data-theme="dark"] select::picker(select){background:var(--surface);border-color:var(--border);box-shadow:0 16px 36px #0008}
  html[data-theme="dark"] select option{color:var(--ink)}
  html[data-theme="dark"] select option:is(:hover,:focus-visible,:checked){background:var(--surface-3);color:var(--accent)}
  html[data-theme="dark"] select option::checkmark,html[data-theme="dark"] select::picker-icon{color:var(--accent)}
}
html[data-theme="dark"] :is(.notice,.lesson,.dashboard-note,.reference-empty,.reference-quote,.reference-reply,.reference-live-rating,.reference-overall,.course-achievement,.resume-document,.resume-detail-grid .resume-detail-section,.profile-full-grid>div,.bubble,.message-bubble,.chatlist button,.prompt,.warning){background:var(--surface-2)!important;color:var(--ink)!important;border-color:var(--border)!important}
html[data-theme="dark"] :is(.bubble.mine,.message-bubble.mine,.bubble.me){background:#236b4d!important;color:#fff!important}
html[data-theme="dark"] :is(.chathead,.sidebar,.site-footer){background:#102f25!important;color:#ecf8ef}
html[data-theme="dark"] :is(.chatlist,.compose,.cardbottom,.row,.completed-courses,.reference-dialog-head,.footer-top,.footer-bottom){border-color:var(--border)!important}
html[data-theme="dark"] .rating-ring{background:conic-gradient(#70d6a0 calc(var(--rating)*1%),#345245 0)}
html[data-theme="dark"] .rating-ring>div{background:var(--surface)!important}
html[data-theme="dark"] .rating-ring span{color:var(--muted)}
html[data-theme="dark"] :is(.modalback,.reference-dialog)::backdrop{background:#03130edb}
html[data-theme="dark"] .modalback{background:#03130edb}
html[data-theme="dark"] .close{background:var(--surface-3);color:var(--ink)}
html[data-theme="dark"] .auth-error-mark{background:#4a2828;color:#ffc5ba}
html[data-theme="dark"] .auth-error-dialog p{color:var(--muted)}
html[data-theme="dark"] :is(.reference-stars,.reference-star-picker label.selected span[aria-hidden]){color:#edbd67}
html[data-theme="dark"] .site-footer a{color:#e5f5e9}
html[data-theme="dark"] .site-footer .brand{color:#fff}
html[data-theme="dark"] .top .nav a[href="/ai-help"]{color:var(--accent)!important}
html[data-theme="dark"] :is(.progress,.metric-track){background:var(--surface-3)}
html[data-theme="dark"] .progress i{background:#63c98d}
html[data-theme="dark"] :is(.toast,.mode button.active){background:#1d704e;color:#fff}
html[data-theme="dark"] :is(.table td,.table th,.mini-list li,.reference-star-field){border-color:var(--border)}
html[data-theme="dark"] :is(.form-group,.resume-upload,.resume-documents,.resume-photo-preview,.skill-choice span,.quiz-result-ring>div){background:var(--surface-2)!important;color:var(--ink);border-color:var(--border)}
html[data-theme="dark"] .skill-choice input:checked+span{background:#277e59!important;color:#fff;border-color:#277e59}
html[data-theme="dark"] .quiz-result-ring{background:conic-gradient(#70d6a0 calc(var(--rating)*1%),#345245 0)}
html[data-theme="dark"] .quiz-result-ring strong{color:var(--accent)}
html[data-theme="dark"] .quiz-result-ring span{color:var(--muted)}
html[data-theme="dark"] :is(.conversation-card,.job-detail-main,.job-detail-action,#resumeForm>.resume-steps,.reference-detail-section,.modalhead){background:var(--surface)!important;color:var(--ink);border-color:var(--border)}
html[data-theme="dark"] #modal:has(#imkonAuthForm) .modalhead{background:var(--surface)!important}
html[data-theme="dark"] .conversation-card.active{background:var(--surface-3)!important;color:var(--accent)}

/* Admin panel, including its SMS and sign-in views. */
html[data-theme="dark"]{--forest:#102f25;--canvas:#0c1715}
html[data-theme="dark"] .workspace :is(.topbar,.panel,article,details,.kpi){background:var(--surface)!important;border-color:var(--border);color:var(--ink)}
html[data-theme="dark"] .workspace :is(.top-title,h1,h2,h3){color:var(--ink)}
html[data-theme="dark"] .workspace :is(.muted,.top-meta,.mini-list span){color:var(--muted)}
html[data-theme="dark"] .workspace :is(button:not(.primary):not(.danger):not(.theme-toggle),.dashboard-note){background:var(--surface-2);color:var(--ink);border-color:var(--border)}
html[data-theme="dark"] .workspace #message{background:var(--surface-3);color:var(--ink)}
html[data-theme="dark"] .workspace .kpi.accent{background:#14543b!important;color:#fff}
html[data-theme="dark"] .workspace .kpi.accent :is(strong,small,.label){color:#e5f5e9}
html[data-theme="dark"] .workspace .sidebar nav button.active{background:#27624e!important;color:white}

/* Standalone privacy, account deletion, and AI help pages. */
html[data-theme="dark"] body>header{background:var(--surface)!important;color:var(--ink)!important;border-color:var(--border)}
html[data-theme="dark"] body>header a{color:var(--ink)!important}
html[data-theme="dark"] body>main :is(article,.card,.panel){background:var(--surface)!important;color:var(--ink);border-color:var(--border)}
html[data-theme="dark"] body>main :is(p,.date,.note){color:var(--muted)}
html[data-theme="dark"] body>main :is(.intro,.bubble.me){background:#14543b!important;color:#fff}
html[data-theme="dark"] body>main .intro p{color:#dcefe2}
html[data-theme="dark"] body>main :is(.bubble:not(.me),.prompt){background:var(--surface-2)!important;color:var(--ink)}
html[data-theme="dark"] body>main :is(input:not([type="checkbox"]),textarea,select){background:var(--field)!important;color:var(--ink)!important;border-color:var(--border)!important}
html[data-theme="dark"] body>main button:not(.prompt):not(.theme-toggle){background:#277e59;color:#fff;border-color:#277e59}
html[data-theme="dark"] body>main :is(a,h1,h2,h3){color:var(--ink)}
html[data-theme="dark"] body>main a:not([href^="tel:"]){color:var(--accent)}

@media(prefers-reduced-motion:reduce){html[data-theme="dark"] *,html[data-theme="light"] .theme-toggle{transition:none!important}}
