/* Scoped to the native health tools; retain the established rose, orange and teal palettes. */
[data-health-root] [hidden]{display:none!important}
[data-health-root] input[type=date]{color-scheme:light;min-width:0;max-width:100%}
html[data-theme=dark] [data-health-root] input[type=date]{color-scheme:dark}
[data-health-root] .health-note,[data-health-root] .health-assumptions{font-size:.82rem;line-height:1.7;color:#475569}
[data-health-root] .health-note{margin:.6rem 0}
[data-health-root] .health-source{display:inline-block;margin:.4rem .6rem;color:#334155;text-decoration:underline;text-underline-offset:3px;font-weight:750;font-size:.82rem}
[data-health-root] .health-action{padding:.65rem .85rem;border:1px solid #cbd5e1;border-radius:.8rem;background:#fff;color:#334155;font:inherit;font-size:.82rem;font-weight:750;cursor:pointer}
[data-health-root] :focus-visible{outline:3px solid #2563eb;outline-offset:3px}
[data-health-root] .nw-status{overflow-wrap:anywhere}
[data-health-root] .nw-table-wrap{max-width:100%;overflow:auto}
[data-health-root] .nw-table th,[data-health-root] .nw-table td{white-space:normal;min-width:5rem}
[data-health-root] .nw-table th{font-weight:800}
[data-health-root] .nw-input,[data-health-root] .nw-select{width:100%;box-sizing:border-box}
[data-health-root] .health-reference{margin-top:.7rem}
.health-cal-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:1rem;align-items:start}
.health-cal-heading{display:flex;gap:.8rem;align-items:start}
.health-cal-heading>span{display:grid;place-items:center;flex:0 0 3rem;height:3rem;background:#451a03;color:#fde68a;border-radius:1rem}
.health-cal-heading h2{margin:0;font-size:1.25rem;color:#92400e}
.health-cal-heading p{margin:.4rem 0;color:#475569;line-height:1.65;font-size:.85rem}
.health-cal-hero{display:grid;gap:.45rem;background:linear-gradient(140deg,#451a03,#92400e);background-color:#92400e;border-radius:1.2rem;padding:1.5rem;color:#fff}
.health-cal-hero>span{color:#fef3c7;font-size:.85rem;font-weight:800}
.health-cal-hero strong{font-size:clamp(2rem,6vw,3.4rem);line-height:1.2}
.health-cal-hero small{color:#fef3c7}
.health-cal-rest{display:flex;justify-content:space-between;gap:1rem;padding:1rem;border-bottom:1px solid #cbd5e1;color:#334155}
.health-cal-scenarios{display:grid;gap:.6rem}
.health-cal-scenarios>div{display:grid;grid-template-columns:1fr auto;gap:.3rem .6rem;padding:.85rem;border:1px solid #fed7aa;border-radius:.8rem;background:#fff7ed;color:#7c2d12}
.health-cal-scenarios small{grid-column:1/-1;font-size:.75rem}
.health-cal-scenarios strong{font-size:1.25rem}
.health-assumptions summary{font-weight:800;cursor:pointer}
.health-assumptions p{margin:.7rem 0}
.health-calorie .nw-btn{background:#92400e!important;color:#fff!important}
.women-date-studio .women-result-hero{background:linear-gradient(145deg,#500724,#9d174d);background-color:#9d174d}
.pregnancy-weight-lab .weight-hero{background:linear-gradient(145deg,#431407,#9a3412);background-color:#9a3412}
.antenatal-planner .planner-summary{background:linear-gradient(145deg,#042f2e,#115e59);background-color:#115e59}
.antenatal-planner .planner-contact{grid-template-columns:1.6rem minmax(0,1fr);gap:.7rem;align-items:start}
.antenatal-planner .planner-contact input[type=checkbox]{position:static;opacity:1;pointer-events:auto;width:1.25rem;height:1.25rem;margin-top:.25rem;accent-color:#0f766e}
.antenatal-planner .planner-date{grid-column:2;display:grid;gap:.25rem;min-width:0}
.antenatal-planner .planner-date input{position:static;opacity:1;pointer-events:auto;font-size:.9rem}
.antenatal-planner .planner-copy span{color:#115e59}
.pregnancy-weight-lab .weight-chart small{color:#9a3412}
.pregnancy-weight-lab .weight-range-label,.pregnancy-weight-lab .weight-metrics span{color:#9a3412}
.women-date-studio .women-progress-label span,.women-date-studio .women-private-box small,.pregnancy-weight-lab .weight-heading small,.pregnancy-weight-lab .weight-private small{color:#475569}
html[data-theme=dark] [data-health-root] .health-note,html[data-theme=dark] [data-health-root] .health-assumptions,html[data-theme=dark] .health-cal-heading p{color:#cbd5e1}
html[data-theme=dark] [data-health-root] .health-source{color:#dbeafe}
html[data-theme=dark] [data-health-root] .health-action{background:#111c30;border-color:#475569;color:#f1f5f9}
html[data-theme=dark] .health-cal-heading h2{color:#fde68a}
html[data-theme=dark] .health-cal-rest{color:#f1f5f9;border-color:#475569}
html[data-theme=dark] .health-cal-scenarios>div{background:#29170f;color:#fed7aa;border-color:#5c3625}
html[data-theme=dark] .antenatal-planner .planner-copy span{color:#99f6e4}
html[data-theme=dark] .pregnancy-weight-lab .weight-metrics span,html[data-theme=dark] .pregnancy-weight-lab .weight-range-label,html[data-theme=dark] .pregnancy-weight-lab .weight-chart small{color:#fed7aa}
html[data-theme=dark] .pregnancy-weight-lab .weight-unit-field>span,html[data-theme=dark] .pregnancy-weight-lab .weight-log-head span{color:#fdba74}
html[data-theme=dark] .women-date-studio .women-progress-label span,html[data-theme=dark] .women-date-studio .women-private-box small,html[data-theme=dark] .pregnancy-weight-lab .weight-heading small,html[data-theme=dark] .pregnancy-weight-lab .weight-private small{color:#cbd5e1}
html[data-theme=dark] .women-date-studio .women-metric span,html[data-theme=dark] .women-date-studio .women-timeline-row time{color:#fbcfe8}
@media(max-width:850px){.health-cal-layout{grid-template-columns:1fr}}
@media(max-width:520px){[data-health-root] .nw-grid{grid-template-columns:1fr}.health-cal-rest{flex-wrap:wrap}.antenatal-planner .planner-summary{align-items:start}.antenatal-planner .planner-ring{flex-basis:4rem;width:4rem;height:4rem}.health-cal-scenarios>div{grid-template-columns:1fr}.health-cal-scenarios small{grid-column:auto}}
