/* Light remains the default. Dark surfaces are only applied after opting in. */
.topbar .theme-toggle{min-height:40px;padding:8px 12px;font-size:.85rem;white-space:nowrap;border-radius:12px;cursor:pointer}
html[data-theme="dark"]{color-scheme:dark;background:#101820;--ink:#edf3f8;--muted:#b3c3d0;--line:#3b5061;--bg:#101820;--blue:#67ceff;--primary:#67ceff;--sky:#08b4f5;--sky-light:#193449;--surface:#1b2834}
html[data-theme="dark"] body{background:var(--bg);color:var(--ink)}
html[data-theme="dark"] :is(.topbar,.identity-card,.rail-menu,.info-card,.module,.feed-card,.profile-record,.profile-editor-section,.plan-card,.document-card,.job-form fieldset,.talent-search-card,.company-public-profile,.company-public-offer,.social-comment-panel,.messenger-sidebar,.messenger-main,.messenger-conversation,.nav-dropdown-panel,.section-switcher-panel,.attachment-picker,.chat-header-menu-panel,.chat-planning-dialog,.reading-settings,.year-picker,.profile-type-option,.role-option,.area-group,.brand-image-card,.brand-image-preview,.profile-image-card,.profile-image-empty,.brand-image-empty,.error-page){background:var(--surface);color:var(--ink);border-color:var(--line)}
html[data-theme="dark"] :is(h1,h2,h3,h4,legend,label,strong,summary){color:var(--ink)}
html[data-theme="dark"] :is(p,small,.helptext,.eyebrow,.section-caption,.tiny-label,.rail-footer,.site-footer,.identity-body p,.landing-note,.chat-caption,.company-public-muted){color:var(--muted)}
html[data-theme="dark"] a{color:var(--blue)}
html[data-theme="dark"] :is(.quick-guide,.landing-process,.landing-roles article,.hero-card,.accent-card,.trial-card,.start-guide,.journey-card,.talent-search,.talent-search-empty,.talent-search-filters,.talent-connection,.candidate-contact-bar,.contact-protection,.job-form-extra,.social-comment-bubble,.pill,.talent-skill,.category-tag,.talent-highlights span,.profile-status,.chat-file,.chat-reply-quote,.chat-reply-draft,.chat-day-separator,.attachment-preview,.chat-attachment-selection,.brand-image-zone,.attachment-dropzone){background:var(--sky-light);color:var(--ink);border-color:var(--line)}
html[data-theme="dark"] :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),select,textarea){background:#101c27;color:var(--ink);border-color:var(--line);caret-color:#67ceff}
html[data-theme="dark"] ::placeholder{color:#a9bac8;opacity:1}
html[data-theme="dark"] :is(input[type="checkbox"],input[type="radio"]){accent-color:#08b4f5}
html[data-theme="dark"] :is(.nav-item,.nav-dropdown summary,.logout-button,.rail-menu a,.mobile-navigation a){color:var(--ink)}
html[data-theme="dark"] :is(.nav-item:hover,.rail-menu a:hover,.nav-dropdown-panel a:hover,.mobile-navigation a:hover,.conversation-row:hover,.conversation-row.active){background:var(--sky-light);color:#67ceff}
html[data-theme="dark"] :is(.button,button,.nav-cta,.work-paths a:first-child){background:#087cae;color:#fff;border-color:#087cae}
html[data-theme="dark"] :is(.button:hover,button:hover,.nav-cta:hover,.work-paths a:first-child:hover){background:#09678f;color:#fff;border-color:#67ceff}
html[data-theme="dark"] :is(.button.secondary,button.secondary,.work-paths a:not(:first-child),.chat-reply-button,.password-toggle,[data-cancel-reply],[data-open-planning]){background:var(--surface);color:var(--ink);border-color:#647c90}
html[data-theme="dark"] :is(.logout-button,.attachment-remove){background:transparent;color:var(--ink)}
html[data-theme="dark"] :is(.notice,.notice.success){background:#153c33;color:#bcf3d8;border-color:#5baf8b}
html[data-theme="dark"] :is(.notice.error,.errorlist,.feed-feedback.error){background:#46262d;color:#ffcad1;border-color:#bc7180}
html[data-theme="dark"] :is(.notice.warning,.notice.info){background:#343423;color:#f0e4af;border-color:#a9a06a}
html[data-theme="dark"] :is(.site-footer,.mobile-navigation,.feed-comment-panel,.chat-context,.chat-process-context){background:var(--surface);border-color:var(--line)}
html[data-theme="dark"] .topbar .brand{background:#eef9ff;padding:5px 10px;border-radius:10px}
html[data-theme="dark"] .mini-cover,html[data-theme="dark"] .mini-cover span{color:#101820}
html[data-theme="dark"] :is(a,button,input,select,textarea,summary):focus-visible{outline-color:#67ceff}
html[data-theme="dark"] .chat-page .messenger-conversation .chat-panel,
html[data-theme="dark"] .chat-page .messenger-conversation .chat-panel .chat-history{background:#101820;color:var(--ink)}
html[data-theme="dark"] .chat-page main .chat-bubble{background:#213241;color:var(--ink);border-color:var(--line)}
html[data-theme="dark"] .chat-page main .chat-bubble.mine{background:#15425b;border-color:#376780}
html[data-theme="dark"] .chat-page .chat-bubble :is(p,strong){color:var(--ink)}
html[data-theme="dark"] .chat-page .chat-bubble :is(small,.chat-author,.chat-author-company),
html[data-theme="dark"] .chat-page :is(.chat-file span,.chat-reply-quote p,.chat-reply-draft p,.chat-empty p){color:var(--muted)}
html[data-theme="dark"] .chat-page .chat-bubble a{color:var(--blue)}
html[data-theme="dark"] .chat-page main .chat-panel form.chat-composer{background:var(--surface);border-color:var(--line)}
html[data-theme="dark"] .chat-page .chat-composer textarea{background:#101c27;color:var(--ink);border-color:var(--line)}
html[data-theme="dark"] .chat-page .chat-composer-actions>details>summary{color:var(--ink)}
html[data-theme="dark"] .chat-page :is(.chat-file,.chat-reply-quote,.chat-day-separator),
html[data-theme="dark"] .chat-page main form.chat-composer .chat-reply-draft{background:var(--sky-light);color:var(--ink);border-color:var(--line)}
html[data-theme="dark"] .chat-page .chat-reply-button{background:var(--surface);color:var(--blue);border-color:var(--line)}
@media(max-width:750px){.topbar .theme-toggle{padding:7px 10px;min-height:40px}}

html[data-theme="dark"] :is(main,form:not(.logout-form),.landing-intro,.help-topics details,.conversation-list,.social-comment-input,.recommendation-row,.interview-card,.profile-intro,.profile-actions,.study-field){background:var(--surface);color:var(--ink);border-color:var(--line)}
html[data-theme="dark"] .topbar .nav-menu-trigger{background:transparent;color:var(--ink)}
html[data-theme="dark"] .landing-intro h1 span{color:var(--blue)}
html[data-theme="dark"] .chat-page .chat-history :is(.chat-empty h2,.chat-empty p){color:var(--ink)}
html[data-theme="dark"] .hero-actions .button.secondary,
html[data-theme="dark"] .topbar .theme-toggle,
html[data-theme="dark"] .work-paths a:not(:first-child){background:var(--surface);color:var(--ink);border-color:#647c90}
html[data-theme="dark"] .hero-actions .button.secondary:hover,
html[data-theme="dark"] .topbar .theme-toggle:hover{background:#193449;color:#edf3f8}
html[data-theme="dark"] .home-shortcuts a{background:var(--surface);color:var(--ink);border-color:var(--line)}
html[data-theme="dark"] .hero-actions .button.sky{background:#087cae;color:white;border-color:#087cae}
