/* Final contrast and surface pass for the original special themes. */
html:is([data-theme="love"], [data-theme="spring"], [data-theme="hell"], [data-theme="dog"], [data-theme="cat"], [data-theme="space"]) #countryNav button:not(.bg-blue-600) {
    background: transparent;
    color: var(--text-secondary);
}
html:is([data-theme="love"], [data-theme="spring"], [data-theme="hell"], [data-theme="dog"], [data-theme="cat"], [data-theme="space"]) .app-header :is(.btn-upload, .btn-icon) {
    background: var(--surface-card);
    color: var(--text-secondary);
    border-color: var(--border-medium);
}
html:is([data-theme="love"], [data-theme="spring"], [data-theme="hell"], [data-theme="dog"], [data-theme="cat"], [data-theme="space"]) #countryNav button.bg-blue-600 {
    background: var(--brand-700) !important;
    color: #fff !important;
}
html[data-theme="love"] {
    --text-primary: #4b1633;
    --text-secondary: #743052;
    --text-muted: #8f4b6a;
    --border-light: #f3b8d0;
    --border-medium: #df78a5;
}
html[data-theme="love"] :is(.cap-tree-card, .stats-section, #funnelContent, #capUploadZone > div) { background: #fffafd !important; border-color: #f0b4cc; color: #4b1633; }
html[data-theme="love"] :is(.manual-select, .login-input, select) { background: #fffafd; border-color: #e89bbb; color: #4b1633; }
html[data-theme="love"] .vacancy-table :is(th, td) { border-color: #f2c5d8 !important; }
html[data-theme="love"] .stats-card-copy, html[data-theme="love"] .manual-note { color: #8f4b6a !important; }
html[data-theme="love"] .cap-tree-header:hover { background: #fff0f7; }

html[data-theme="spring"] {
    --text-primary: #17472b;
    --text-secondary: #28623d;
    --text-muted: #4d765b;
    --border-light: #b9e4c4;
    --border-medium: #75c88b;
}
html[data-theme="spring"] :is(.cap-tree-card, .stats-section, #funnelContent, #capUploadZone > div) { background: #fbfffc !important; border-color: #b9e4c4; color: #17472b; }
html[data-theme="spring"] :is(.manual-select, .login-input, select, #globalSearch) { background: #fbfffc; border-color: #90d6a2; color: #17472b; }
html[data-theme="spring"] .vacancy-table :is(th, td) { color: #17472b; border-color: #c9e9d1 !important; }
html[data-theme="spring"] .vacancy-table thead th { color: #245937 !important; }
html[data-theme="spring"] .stats-card-copy, html[data-theme="spring"] .manual-note, html[data-theme="spring"] .upload-desc { color: #4d765b !important; }
html[data-theme="spring"] .cap-tree-header:hover { background: #edfaef; }

html[data-theme="hell"] {
    --text-primary: #fff1e8;
    --text-secondary: #f5c1a2;
    --text-muted: #d99b7c;
    --border-light: rgba(248, 113, 113, .24);
    --border-medium: rgba(251, 146, 60, .45);
}
html[data-theme="hell"] :is(.cap-tree-card, .stats-section, #funnelContent, #capUploadZone > div) { background: #210908 !important; border-color: rgba(248, 113, 113, .27); color: #fff1e8; }
html[data-theme="hell"] :is(.manual-select, .login-input, select, #globalSearch, #countryNav) { background: #210908 !important; border-color: rgba(251, 146, 60, .36) !important; color: #fff1e8 !important; }
html[data-theme="hell"] .vacancy-table :is(th, td) { color: #fff1e8; border-color: rgba(248, 113, 113, .18) !important; }
html[data-theme="hell"] .vacancy-table thead th { color: #fed7aa !important; }
html[data-theme="hell"] .stats-card-copy, html[data-theme="hell"] .manual-note, html[data-theme="hell"] .upload-desc { color: #d99b7c !important; }
html[data-theme="hell"] .cap-tree-header:hover { background: #32100d; }

html[data-theme="dog"] {
    --text-primary: #3d2a18;
    --text-secondary: #684321;
    --text-muted: #87613d;
    --border-light: #edc695;
    --border-medium: #cf8b46;
}
html[data-theme="dog"] :is(.cap-tree-card, .stats-section, #funnelContent, #capUploadZone > div) { background: #fffaf0 !important; border-color: #edc695; color: #3d2a18; }
html[data-theme="dog"] :is(.manual-select, .login-input, select) { background: #fffaf0; border-color: #d69a58; color: #3d2a18; }
html[data-theme="dog"] .vacancy-table :is(th, td) { border-color: #efd4ae !important; }
html[data-theme="dog"] .stats-card-copy, html[data-theme="dog"] .manual-note, html[data-theme="dog"] .upload-desc { color: #87613d !important; }
html[data-theme="dog"] .cap-tree-header:hover { background: #fff1db; }

html[data-theme="cat"] {
    --text-primary: #4a1b3f;
    --text-secondary: #6e325e;
    --text-muted: #8d4c7c;
    --border-light: #f3b7d5;
    --border-medium: #e77fb6;
}
html[data-theme="cat"] :is(.branch-card, .cap-tree-card, .stats-section, #funnelContent, #capUploadZone > div) { background: #fffafe !important; border-color: #f3b7d5; color: #4a1b3f; }
html[data-theme="cat"] :is(.manual-select, .login-input, select, #globalSearch, #countryNav) { background: #fffafe !important; border-color: #ec9ec7 !important; color: #4a1b3f !important; }
html[data-theme="cat"] .vacancy-table :is(th, td) { color: #4a1b3f; border-color: #f4c6dd !important; }
html[data-theme="cat"] .vacancy-table thead th { color: #651f55 !important; background: #fff0f8 !important; }
html[data-theme="cat"] .stats-card-copy, html[data-theme="cat"] .manual-note, html[data-theme="cat"] .upload-desc { color: #8d4c7c !important; }
html[data-theme="cat"] .cap-tree-header:hover { background: #fff0f8; }

html[data-theme="space"] {
    --text-primary: #eef6ff;
    --text-secondary: #c8d7ff;
    --text-muted: #a9bde4;
    --border-light: rgba(103, 232, 249, .22);
    --border-medium: rgba(103, 232, 249, .42);
}
html[data-theme="space"] :is(.stats-section, #funnelContent, #capUploadZone > div) { background: #09152b !important; border-color: rgba(103, 232, 249, .22); color: #eef6ff; }
html[data-theme="space"] .vacancy-table :is(th, td) { border-color: rgba(103, 232, 249, .16) !important; }
html[data-theme="space"] .cap-tree-header:hover { background: #10284a; }
