/* THRS V14.89 — Settings / Midnight Navy & Cumin Gold DARK PALETTE ONLY.
 * Preserves V14.52 Settings + Executive AI hero artwork and geometry, form actions,
 * protected values, settings CRUD, tabs, pagination, RTL and Light Mode.
 * Never change layout, data, feature availability, permissions or modal behavior. */
html[data-theme="dark"] body .thrs-shell .thrs-settings-v1452{
 --s52-surface:#173449!important;
 --s52-soft:#203f53!important;
 --s52-border:#4c6d81!important;
 --s52-ink:#edf4f9!important;
 --s52-muted:#c0d1df!important;
 --s52-shadow:0 8px 21px rgba(0,8,20,.23),inset 0 1px 0 rgba(255,255,255,.035)!important;
 color-scheme:dark!important;
}
/* Preserve both hero illustrations, decoration and text hierarchy.
 * Only the neon-blue icon tile and primary call-to-action colors are toned down. */
html[data-theme="dark"] body .thrs-shell .thrs-settings-v1452 .settings-redesign-hero__visual{
 background:linear-gradient(140deg,#335d7b,#214461 78%)!important;
 box-shadow:0 10px 22px rgba(0,11,28,.22)!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-settings-v1452 .settings-redesign-hero__visual>svg{
 color:#dfc188!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-settings-v1452 .settings-redesign-ai__button{
 background:linear-gradient(115deg,#315c77,#20445f)!important;
 color:#f0f6fa!important;
 border-color:#6d89a0!important;
 box-shadow:0 5px 15px rgba(0,12,28,.20)!important;
}
/* Navigation tabs and categories: same shapes, calmer gold active state. */
html[data-theme="dark"] body .thrs-shell .thrs-settings-v1452 .settings-redesign-tabs button.is-active{
 background:linear-gradient(120deg,#dcb873,#be904b)!important;
 color:#142b3a!important;
 box-shadow:0 3px 10px rgba(0,9,21,.18)!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-settings-v1452 .settings-redesign-tabs button:not(.is-active){
 color:#d9e7f0!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-settings-v1452 .thrs-s52-category-tabs button{
 color:#d9e8f1!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-settings-v1452 .thrs-s52-category-tabs button:not(.is-active) svg{
 color:#b7cee1!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-settings-v1452 .thrs-s52-category-tabs button.is-active{
 background:linear-gradient(120deg,#d8b26f,#c39653)!important;
 color:#142d3c!important;
 border-color:#e2c184!important;
 box-shadow:0 5px 14px rgba(0,9,22,.18)!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-settings-v1452 .thrs-s52-category-tabs button.is-active svg{
 color:#183c4d!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-settings-v1452 .thrs-s52-tab-count{
 background:rgba(10,36,53,.20)!important;
 color:inherit!important;
}
/* Search, category and status filter controls. Native dropdown options now dark. */
html[data-theme="dark"] body .thrs-shell .thrs-settings-v1452 :is(.thrs-s52-search input,.thrs-s52-select select,.thrs-s52-pager select){
 color-scheme:dark!important;
 color:#edf4f9!important;
 -webkit-text-fill-color:#edf4f9!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-settings-v1452 :is(.thrs-s52-select select,.thrs-s52-pager select) option{
 background:#19394e!important;
 color:#edf4f9!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-settings-v1452 :is(.thrs-s52-search,.thrs-s52-select)>svg{
 color:#d6b574!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-settings-v1452 .thrs-s52-add{
 background:linear-gradient(120deg,#1b3c54,#244b65)!important;
 color:#edf5fa!important;
 border-color:#618298!important;
 box-shadow:0 4px 11px rgba(0,9,22,.15)!important;
}
/* Settings key and value tags: avoid fluorescent ice-blue and white. */
html[data-theme="dark"] body .thrs-shell .thrs-settings-v1452 .thrs-s52-count{
 background:#2c455a!important;
 color:#d4e5f2!important;
 box-shadow:inset 0 0 0 1px #607d92!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-settings-v1452 .thrs-s52-setting-key{
 background:#2b4760!important;
 color:#c7dbef!important;
 box-shadow:inset 0 0 0 1px #5c7896!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-settings-v1452 .thrs-s52-boolean{
 background:#234b3c!important;
 color:#bde8cf!important;
 box-shadow:inset 0 0 0 1px #588d74!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-settings-v1452 .thrs-s52-boolean.is-disabled{
 background:#4b3d32!important;
 color:#efd0ac!important;
 box-shadow:inset 0 0 0 1px #94734f!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-settings-v1452 .thrs-s52-protected{
 background:#4b402e!important;
 color:#efd49f!important;
 box-shadow:inset 0 0 0 1px #947a4a!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-settings-v1452 .thrs-s52-long-value summary span{
 color:#d8b978!important;
}
/* Readable action buttons while clearly separating Edit from destructive Delete. */
html[data-theme="dark"] body .thrs-shell .thrs-settings-v1452 .thrs-s52-edit{
 background:#24465d!important;
 color:#d3e7f6!important;
 border-color:#6586a0!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-settings-v1452 .thrs-s52-delete{
 background:#4c333f!important;
 color:#efbdc9!important;
 border-color:#9a6977!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-settings-v1452 :is(.thrs-s52-edit,.thrs-s52-delete):hover{
 filter:brightness(1.1)!important;
}
/* Pagination selected page becomes cumin gold, with dark text. */
html[data-theme="dark"] body .thrs-shell .thrs-settings-v1452 .thrs-s52-pager>button.is-current{
 background:linear-gradient(120deg,#dcb16f,#c89c50)!important;
 color:#142c3b!important;
 border-color:#bd9557!important;
}
/* Network error, sensitive tokens hint and empty state. */
html[data-theme="dark"] body .thrs-shell .thrs-settings-v1452 .thrs-s52-error{
 background:#4b343f!important;
 color:#efc1cb!important;
 border-color:#9c6d7a!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-settings-v1452 .thrs-s52-error button{
 background:#244357!important;
 color:#edf5f9!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-settings-v1452 .thrs-s52-secret-hint{
 background:#4b402d!important;
 color:#efd6a7!important;
 border-color:#967d53!important;
}
/* Existing settings modal remains untouched geometrically; tone only. */
html[data-theme="dark"] body .thrs-shell .thrs-settings-v1452 :is(.settings-modal-form input,.settings-modal-form select,.settings-modal-form textarea){
 color-scheme:dark!important;
}
/* Scoped paint only: V14.52 layout, SVG assets, logic, other theme untouched. */
