/* THRS V14.78 — My Goals dark palette refinement only.
   Retains approved V14.40 hero/target art, geometries, cards, statuses,
   Quick Update slider behavior, milestone handlers, RTL/LTR and Light Mode. */
html[data-theme="dark"] body .thrs-shell .thrs-goals-v1440{
 --go40-paper:#142f42!important;
 --go40-soft:#203e52!important;
 --go40-ink:#edf4f8!important;
 --go40-muted:#c2d2de!important;
 --go40-border:#4d6c80!important;
 --go40-shadow:0 8px 21px rgba(0,8,20,.23),inset 0 1px 0 rgba(255,255,255,.035)!important;
 color-scheme:dark!important;
}
/* Header graphics, target and golden waves are untouched. */
html[data-theme="dark"] body .thrs-shell .thrs-goals-v1440>.thrs-goals-hero>.thrs-btn{
 background:linear-gradient(120deg,#dfba72,#cba052)!important;
 border-color:#bf9855!important;color:#112a3c!important;
 box-shadow:0 5px 13px rgba(0,8,20,.2)!important;
}
/* Muted semantic metric icons: no pastel blocks or saturated blue/purple. */
html[data-theme="dark"] body .thrs-shell .thrs-goals-v1440 .thrs-goals-kpi{
 --go40-accent:#abc9e8!important;
 --go40-circle:#2b4359!important;
 --go40-wash:rgba(79,119,154,.1)!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-goals-v1440 .thrs-goals-kpi-green{
 --go40-accent:#a7dec3!important;
 --go40-circle:#1f4a3d!important;
 --go40-wash:rgba(75,134,104,.10)!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-goals-v1440 .thrs-goals-kpi-gold{
 --go40-accent:#e9c788!important;
 --go40-circle:#4b4030!important;
 --go40-wash:rgba(145,116,65,.11)!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-goals-v1440 .thrs-goals-kpi-purple{
 --go40-accent:#c7b7e8!important;
 --go40-circle:#403c57!important;
 --go40-wash:rgba(117,99,153,.10)!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-goals-v1440 .thrs-goals-kpi-icon{
 box-shadow:inset 0 0 0 1px rgba(255,255,255,.06),0 3px 9px rgba(0,8,20,.14)!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-goals-v1440 .thrs-goals-mini-progress i{
 background:linear-gradient(90deg,#b68c46,#dfb765)!important;
}
/* Filters, list/grid view, export: same controls with subdued color. */
html[data-theme="dark"] body .thrs-shell .thrs-goals-v1440 .thrs-goals-filter select{
 color-scheme:dark!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-goals-v1440 .thrs-goals-filter select option{
 background:#18394d!important;color:#eaf4f9!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-goals-v1440 .thrs-goals-view-toggle button.is-selected{
 background:linear-gradient(125deg,#d8ad66,#bf9550)!important;
 color:#132b3c!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-goals-v1440 .thrs-goals-toolbar-actions>.thrs-btn{
 background:#1b394e!important;
 color:#eaf3f9!important;
 border-color:#55768b!important;
}
/* Goal card icon and progress labels: dark surfaces, clear text. */
html[data-theme="dark"] body .thrs-shell .thrs-goals-v1440 .thrs-goals-card-icon{
 background:linear-gradient(130deg,#514531,#3d3932)!important;
 color:#e6bd72!important;
 box-shadow:inset 0 0 0 1px #92774c!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-goals-v1440 .thrs-goals-progress-head strong{
 color:#e4bc76!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-goals-v1440 .thrs-goals-progress-track>span{
 background:linear-gradient(90deg,#b48941,#d9b364)!important;
}
/* Status selection behavior and selected values remain identical. */
html[data-theme="dark"] body .thrs-shell .thrs-goals-v1440 .thrs-goals-status{
 background:#254739!important;color:#b7e6cd!important;
 box-shadow:inset 0 0 0 1px #538d75!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-goals-v1440 .thrs-goals-status-completed{
 background:#1f4a3f!important;color:#b6e8d0!important;
 box-shadow:inset 0 0 0 1px #4e9279!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-goals-v1440 .thrs-goals-status-not_started{
 background:#294455!important;color:#c8dced!important;
 box-shadow:inset 0 0 0 1px #5c8096!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-goals-v1440 .thrs-goals-status-cancelled{
 background:#49313d!important;color:#f0c0ce!important;
 box-shadow:inset 0 0 0 1px #946472!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-goals-v1440 .thrs-goals-status select{
 color-scheme:dark!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-goals-v1440 .thrs-goals-status select option{
 background:#1d3c50!important;
 color:#eaf4f9!important;
}
/* Native range slider: color only; percentage values, track widths and mouse/keyboard behavior unchanged. */
html[data-theme="dark"] body .thrs-shell .thrs-goals-v1440 .thrs-goals-quick-update>input[type=range]{
 accent-color:#c49d59!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-goals-v1440 .thrs-goals-quick-update>.thrs-btn{
 background:#203f53!important;
 color:#eaf4f9!important;
 border-color:#58788b!important;
 box-shadow:0 4px 10px rgba(0,8,20,.14)!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-goals-v1440 .thrs-goals-menu button{
 color:#e6b9c0!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-goals-v1440 .thrs-goals-menu button:hover{
 background:rgba(154,81,94,.19)!important;
}
/* Empty/error states use muted dark surfaces if no goals are present. */
html[data-theme="dark"] body .thrs-shell .thrs-goals-v1440 .thrs-goals-empty>span{
 background:#4b4030!important;
 color:#e9c384!important;
 box-shadow:inset 0 0 0 1px #89754b!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-goals-v1440 .thrs-goals-error{
 background:#46313c!important;
 color:#eec1ca!important;
 border-color:#986878!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-goals-v1440 .thrs-goals-milestones label input{
 accent-color:#bc9758!important;
}
/* Paint-only: do not alter geometry, layout, data, logic or light mode. */
