/* THRS V14.70 — Onboarding Dark Mode palette ONLY.
   Midnight Navy + restrained Cumin Gold. Does not change geometry, typography,
   content, counts, status APIs, workflows, icons, progress values or Light Mode.
   Direct last-loaded stylesheet after approved v14.28 and application CSS. */
html[data-theme="dark"] body .thrs-shell .thrs-page-onboarding{
 --ob28-paper:#142d40!important;
 --ob28-soft:#1b394e!important;
 --ob28-ink:#eef4f8!important;
 --ob28-muted:#bfd1dc!important;
 --ob28-edge:#4c6b80!important;
 --ob28-gold:#d3a654!important;
 --ob28-shadow:0 8px 20px rgba(0,8,19,.23),inset 0 1px 0 rgba(255,255,255,.035)!important;
 color-scheme:dark!important;
}
/* Header and original gold hairline remain; only button colors. */
html[data-theme="dark"] body .thrs-shell .thrs-page-onboarding>.page-header{
 background:radial-gradient(ellipse at 100% 0,rgba(211,166,84,.06),transparent 32%),linear-gradient(120deg,#18384c,#142e42)!important;
 border-color:#506e82!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-page-onboarding>.page-header .thrs-btn-secondary{
 background:linear-gradient(140deg,#1d3b4f,#142e42)!important;
 color:#ebf3f8!important;
 border-color:#557387!important;
 box-shadow:0 4px 10px rgba(0,8,18,.21)!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-page-onboarding>.page-header .thrs-btn-primary{
 background:linear-gradient(135deg,#dcb56c,#cba050)!important;
 border-color:#c19a57!important;
 color:#142e40!important;
 box-shadow:0 5px 12px rgba(0,8,18,.20)!important;
}
/* Three-state onboarding flow, same three button coordinates and numbers. */
html[data-theme="dark"] body .thrs-shell .thrs-page-onboarding>.thrs-onboarding-flow-strip>.thrs-onboarding-flow-step{
 background:linear-gradient(145deg,#1a3a4e,#142e42)!important;
 border-color:#4d6b80!important;
 box-shadow:0 5px 13px rgba(0,8,18,.2)!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-page-onboarding .thrs-onboarding-flow-step>span{
 background:linear-gradient(145deg,#24485a,#102d41)!important;
 border-color:#6a826f!important;
 color:#f1d29a!important;
 box-shadow:none!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-page-onboarding .thrs-onboarding-flow-step>b{
 color:#d7af67!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-page-onboarding .thrs-onboarding-flow-step.is-active{
 background:linear-gradient(145deg,#244454,#142e42)!important;
 border-color:#b89457!important;
 box-shadow:0 0 0 2px rgba(211,166,84,.10),0 5px 13px rgba(0,8,18,.20)!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-page-onboarding .thrs-onboarding-flow-step:is(:hover,:focus-visible){
 border-color:#cca662!important;
}
/* Four KPI cards, dark icon wells (old v14.28 had four forced pastel fills). */
html[data-theme="dark"] body .thrs-shell .thrs-page-onboarding>.thrs-onboarding-flow-strip+div>div{
 background:linear-gradient(140deg,#1a394d,#142f42)!important;
 border-color:#506e82!important;
 box-shadow:0 6px 16px rgba(0,8,20,.18)!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-page-onboarding>.thrs-onboarding-flow-strip+div>div>span{
 background:#263f4f!important;
 border-color:#617987!important;
 color:#d7b678!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-page-onboarding>.thrs-onboarding-flow-strip+div>div:nth-child(1)>span{
 background:#393c38!important;
 border-color:#9c8355!important;
 color:#e1b967!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-page-onboarding>.thrs-onboarding-flow-strip+div>div:nth-child(2)>span{
 background:#253f53!important;
 border-color:#577b92!important;
 color:#adc8e3!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-page-onboarding>.thrs-onboarding-flow-strip+div>div:nth-child(3)>span{
 background:#403b30!important;
 border-color:#9c7f4f!important;
 color:#dfb66c!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-page-onboarding>.thrs-onboarding-flow-strip+div>div:nth-child(4)>span{
 background:#1c453a!important;
 border-color:#4f8a74!important;
 color:#a7e0c5!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-page-onboarding>.thrs-onboarding-flow-strip+div>div:nth-child(3)>div>div:first-child{
 color:#ddb26d!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-page-onboarding>.thrs-onboarding-flow-strip+div>div:nth-child(4)>div>div:first-child{
 color:#8fd2b1!important;
}
/* Connected pills: gold rim only on active tab, no layout changes. */
html[data-theme="dark"] body .thrs-shell .thrs-page-onboarding>.thrs-onboarding-flow-strip+div+div{
 background:linear-gradient(140deg,#1a394e,#132f43)!important;
 border-color:#4f6e82!important;
 box-shadow:0 5px 13px rgba(0,8,20,.16)!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-page-onboarding>.thrs-onboarding-flow-strip+div+div>button{
 color:#c9d9e4!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-page-onboarding>.thrs-onboarding-flow-strip+div+div>button[style*="font-weight: 600"],
html[data-theme="dark"] body .thrs-shell .thrs-page-onboarding>.thrs-onboarding-flow-strip+div+div>button[style*="font-weight:600"]{
 background:linear-gradient(140deg,#274759,#163246)!important;
 border-color:#a68b5b!important;
 color:#efcf91!important;
 box-shadow:0 3px 10px rgba(0,7,18,.18)!important;
}
/* Search field and dropdown; keep existing heights/widths/options. */
html[data-theme="dark"] body .thrs-shell .thrs-page-onboarding>div:has(>input.form-input):has(>select.form-select)>:is(input.form-input,select.form-select){
 background:#1b3a4e!important;
 background-color:#1b3a4e!important;
 border-color:#59798d!important;
 color:#edf4f9!important;
 -webkit-text-fill-color:#edf4f9!important;
 box-shadow:0 4px 10px rgba(0,8,18,.17)!important;
 color-scheme:dark!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-page-onboarding>div:has(>input.form-input):has(>select.form-select)>select.form-select option{
 background:#193749!important;
 color:#edf4f9!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-page-onboarding>div:has(>input.form-input):has(>select.form-select)>input::placeholder{
 color:#bbcedb!important;
 -webkit-text-fill-color:#bbcedb!important;
 opacity:1!important;
}
/* Plans/Templates card and table: dark alternating navy, no new rows. */
html[data-theme="dark"] body .thrs-shell .thrs-page-onboarding>.thrs-card{
 background:linear-gradient(140deg,#19384b,#142d40)!important;
 border-color:#4d6d80!important;
 box-shadow:0 9px 21px rgba(0,8,18,.21)!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-page-onboarding>.thrs-card>.thrs-card-header{
 background:linear-gradient(140deg,#1e3d50,#173247)!important;
 border-bottom-color:#507084!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-page-onboarding>.thrs-card .modern-table-wrap,
html[data-theme="dark"] body .thrs-shell .thrs-page-onboarding>.thrs-card .modern-table{
 background:#142e41!important;
 border-color:#4c697e!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-page-onboarding>.thrs-card .modern-table thead th{
 background:#1e3b4f!important;
 border-bottom-color:#5b788a!important;
 color:#eff5f9!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-page-onboarding>.thrs-card .modern-table tbody tr:nth-child(odd) td{
 background:#142f43!important;
 border-bottom-color:#3f5f74!important;
 color:#eaf3f8!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-page-onboarding>.thrs-card .modern-table tbody tr:nth-child(even) td{
 background:#1d3c50!important;
 border-bottom-color:#4d6d80!important;
 color:#eaf3f8!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-page-onboarding>.thrs-card .modern-table tbody tr:hover td{
 background:#29495c!important;
}
/* Original progress percentages and bar widths stay untouched; change ONLY fill
   and track paints. 100%-completed rows are determined from their real status. */
html[data-theme="dark"] body .thrs-shell .thrs-page-onboarding>.thrs-card .modern-table tbody td:nth-child(4)>div>div:first-child>div:first-child{
 background:#385568!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-page-onboarding>.thrs-card .modern-table tbody td:nth-child(4)>div>div:first-child>div:first-child>div{
 background:#d1a456!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-page-onboarding>.thrs-card .modern-table tbody tr:has(.badge-success) td:nth-child(4)>div>div:first-child>div:first-child>div{
 background:#61ac8c!important;
}
/* Semantic statuses, not luminous ivory; all original labels intact. */
html[data-theme="dark"] body .thrs-shell .thrs-page-onboarding>.thrs-card .modern-table tbody td .badge-success{
 background:#194538!important;
 border-color:#498871!important;
 color:#b9ead4!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-page-onboarding>.thrs-card .modern-table tbody td .badge-warning{
 background:#493b29!important;
 border-color:#9b7c4f!important;
 color:#f0d29b!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-page-onboarding>.thrs-card .modern-table tbody td .badge-default{
 background:#294456!important;
 border-color:#5a7386!important;
 color:#d9e6f0!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-page-onboarding>.thrs-card .modern-table tbody td .thrs-btn-secondary{
 background:#1d3d51!important;
 border-color:#5c798e!important;
 color:#eaf3f8!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-page-onboarding>.thrs-card .modern-table tbody td .thrs-btn-danger{
 background:linear-gradient(140deg,#6a3441,#572c39)!important;
 border-color:#a0626f!important;
 color:#ffdbe1!important;
 box-shadow:none!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-page-onboarding>.thrs-card .modern-table tbody td .thrs-btn-danger:hover{
 background:linear-gradient(140deg,#753c4b,#5e303e)!important;
}
/* Templates alternate tab: default template used a hard-coded #f0f9ff. */
html[data-theme="dark"] body .thrs-shell .thrs-page-onboarding>.thrs-card>div:last-child>div[style*="grid"]>div[style*="background"]{
 background:#1b3b4e!important;
 border-color:#59768a!important;
 color:#eef5f9!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-page-onboarding>.thrs-card>div:last-child .badge-info{
 background:#244255!important;
 border-color:#5b7b91!important;
 color:#c8dfef!important;
}
/* No change to layout/size, animations, content, inputs' behavior or light. */
