/* v229: explicit current-theme surfaces for the remaining legacy modules.
   Keep text tokens separate from selected-control backgrounds. */
#app-shell :is(#tab-cargas,#tab-externa,#tab-salud,#tab-antropometria){
 --card-alt:#101f29;--court-paper:#09151d;--court-line:#293c48;
 --isak-ink:#f4f8fa;--isak-soft:#142b45;--isak-blue:#83b2ff;
 color:var(--module-text);background:#050d12!important;color-scheme:dark;
}
#app-shell #tab-cargas :is(.load-source-note,.plc-reading,.load-context-grid>div),
#app-shell #tab-externa :is(.ce44-method-note,.ce44-metrics>div,.ce44-summary>div),
#app-shell #tab-salud :is(.salud-leyenda,.availability-metrics>span),
#app-shell #tab-antropometria :is(.isak-filters,.isak-chart-stat,.somato-toolbar,.somato-kpis article,.somato-inspector,.somato-note,.somato-compare,.somato-triplet-large>div){
 background:var(--module-bg-2)!important;color:var(--module-text)!important;border-color:var(--module-line)!important;box-shadow:none!important;
}
#app-shell #tab-cargas .player-load-card{background:var(--module-bg)!important;border:1px solid var(--module-line)!important;border-left:3px solid var(--load-signal,#8093a1)!important;border-radius:14px!important;box-shadow:none!important}
#app-shell #tab-cargas .acwr-card-sub{--load-signal:#4f91ff}
#app-shell #tab-cargas .acwr-card-sweet{--load-signal:#2bd391}
#app-shell #tab-cargas .acwr-card-high{--load-signal:#f4b740}
#app-shell #tab-cargas .acwr-card-critical{--load-signal:#ff5c6c}
#app-shell #tab-cargas .plc-reading{border:1px solid var(--module-line);border-radius:8px}
#app-shell #tab-cargas :is(.plc-reading strong,.load-context-grid strong){color:#edf4f7!important}
#app-shell #tab-cargas :is(.load-context-grid span,.load-context-grid small,.load-source-note){color:#aabdc9!important}
#app-shell #tab-externa .ce44-summary{background:var(--module-line)!important;border-color:var(--module-line)!important;border-radius:12px!important;overflow:hidden}
#app-shell #tab-externa :is(.ce44-day.active,.ce44-metrics button.on){background:#183c64!important;border-color:#4f91ff!important;color:#f4f8fa!important}
#app-shell #tab-externa .ce44-day.active small{color:#c1dcff!important}
#app-shell #tab-externa .ce44-copy-btn{background:#142b45!important;border-color:#37608b!important;color:#bfdaff!important}
#app-shell #tab-externa .ce44-copy-btn:hover{background:#1c3a5a!important}
#app-shell #tab-externa .ce44-quick-presets button{background:#142b45!important;color:#c5ddf5!important;border-color:#37608b!important}
#app-shell #tab-externa .ce44-metrics small{color:#9fb5c3!important}
#app-shell #tab-externa .ce44-method-note{color:#b6c7d3!important;border-left-color:#4f91ff!important}
#app-shell #tab-externa .ce44-guide-row span{background:#142b45!important;color:#c5ddf5!important}
#app-shell #tab-salud .salud-leyenda{border:1px solid var(--module-line)!important;border-radius:10px!important;color:#b6c7d3!important}
#app-shell #tab-salud .salud-leyenda strong{color:#edf4f7!important}
#app-shell #tab-salud .availability-row{border-radius:12px!important;border:1px solid var(--module-line)!important;border-left:3px solid var(--health-signal,#8093a1)!important;background:var(--module-bg)!important;box-shadow:none!important}
#app-shell #tab-salud .availability-row:hover{background:#132530!important;border-color:#486173!important}
#app-shell #tab-salud .tone-optimo{--health-signal:#2bd391}
#app-shell #tab-salud .tone-alerta{--health-signal:#f4b740}
#app-shell #tab-salud .tone-critico{--health-signal:#ff5c6c}
#app-shell #tab-salud .tone-lesionado{--health-signal:#8093a1}
#app-shell #tab-salud .tone-subcarga{--health-signal:#4f91ff}
#app-shell #tab-salud .availability-metrics>span{border:1px solid var(--module-line);border-radius:8px}
#app-shell #tab-salud .availability-metrics b{color:#f4f8fa!important;font-size:11px!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;line-height:1.3}
#app-shell #tab-salud .availability-metrics small{color:#9cb0bf!important;font-size:8px!important}
#app-shell #tab-salud .availability-advice>b{color:#8cbcff!important;font-size:9px!important}
#app-shell #tab-salud .availability-advice>small{color:#bdcdd7!important;font-size:11px!important}
#app-shell #tab-salud :is(.availability-player small,.availability-state small){color:#a4b8c7!important;font-size:10px!important}
#app-shell #tab-salud .availability-player strong{font-size:13px!important;color:#f4f8fa!important}
#app-shell #tab-salud .availability-state>b{color:#d9e5ec!important}
#app-shell #tab-antropometria :is(.isak-chart-stat strong,.somato-kpis strong,.somato-inspector strong,.somato-inspector b,.somato-inspector dd,.somato-compare strong){color:#f4f8fa!important}
#app-shell #tab-antropometria :is(.isak-filters label,.isak-chart-stat span,.isak-chart-stat small,.somato-toolbar label,.somato-compare label,.somato-compare small,.somato-inspector small,.somato-inspector dt,.somato-note){color:#a1b5c3!important}
#app-shell #tab-antropometria :is(select,.somato-compare output){background:#09161e!important;color:#e7f0f6!important;border-color:#304550!important}
#app-shell #tab-antropometria :is(.isak-kicker,.isak-status.complete){background:#143a30!important;color:#85e8bd!important}
#app-shell #tab-antropometria .isak-status.partial{background:#3b2e16!important;color:#ffd48a!important}
#app-shell #tab-antropometria .isak-status.basic{background:#22313f!important;color:#b4c6d4!important}
#app-shell #tab-antropometria .isak-open-label{background:#142b45!important;color:#bad8ff!important}
#app-shell #tab-antropometria .isak-advanced>summary{background:#142432!important;border-color:#304550!important}
#app-shell #tab-antropometria .isak-principle>span{background:#142b45!important;color:#bfdaee!important;border-color:#304550!important}
#app-shell #tab-antropometria :is(.somato-plot,#somatocarta-svg){background:#09151d!important;border-color:var(--module-line)!important}
#app-shell #tab-antropometria .somato-grid{stroke:#283e4b!important}
#app-shell #tab-antropometria .somato-grid.major{stroke:#587183!important}
#app-shell #tab-antropometria #somatocarta-svg text{fill:#a9bdcc}
#app-shell #tab-antropometria .somato-domain.endo{fill:#ff8996!important}
#app-shell #tab-antropometria .somato-domain.meso{fill:#ffc282!important}
#app-shell #tab-antropometria .somato-domain.ecto{fill:#8abdff!important}
#app-shell #tab-antropometria .somato-centroid path{fill:#c8f36b;stroke:#09151d}
#app-shell :is(#tab-cargas,#tab-externa,#tab-salud,#tab-antropometria) table tbody tr{background:transparent!important}
#app-shell :is(#tab-cargas,#tab-externa,#tab-salud,#tab-antropometria) table tbody tr:nth-child(even){background:var(--module-bg-2)!important}
#app-shell :is(#tab-cargas,#tab-externa,#tab-salud,#tab-antropometria) table tbody tr:hover{background:#162c39!important}
