.health-drilldown{width:min(900px,calc(100vw - 48px));max-width:none;max-height:90vh;max-height:90dvh;border:1px solid #b9cbb2;border-radius:18px;padding:0;color:#263e37;background:#fffef9;overflow:auto;overscroll-behavior:contain}
.health-drilldown::backdrop{background:#152d24b3}
.health-drilldown .detail-header{position:sticky;top:0;z-index:5;margin:0;padding:18px 24px;display:flex;gap:20px;align-items:center;background:#fffef9;border-bottom:1px solid #dce3d7}
.health-drilldown .detail-header h2{font:24px/1.3 system-ui,sans-serif;font-weight:650;margin:0;overflow-wrap:anywhere;flex:1}
.health-drilldown .detail-close{flex:none;min-height:44px}
.detail-context,.detail-body{margin:18px 24px;font-size:14px;line-height:1.7;overflow-wrap:anywhere}
.detail-back{margin:16px 24px 0;min-height:44px}
.detail-error{padding:18px;background:#fff4e7;border:1px solid #a66845;border-radius:12px}
.detail-loading{padding:28px 0}
.health-drilldown table{font-size:14px}
.health-drilldown td,.health-drilldown th{vertical-align:top;padding:12px 6px}
.health-drilldown table button{min-height:44px;padding:8px;font-size:13px}
.health-drilldown .sleep-detail-chart{width:100%;display:block}
.series-marker[role=button]{cursor:pointer;pointer-events:all}
.series-hit{fill:none;stroke:transparent;stroke-width:44px;stroke-linecap:round;vector-effect:non-scaling-stroke;pointer-events:stroke;cursor:pointer}
.health-drilldown #band-records{margin-top:0}
@media(max-width:620px){.health-drilldown{width:100%;height:100%;height:100dvh;max-height:none;margin:0;border:0;border-radius:0}.health-drilldown .detail-header{padding:14px 16px;gap:12px}.health-drilldown .detail-header h2{font-size:21px}.detail-context,.detail-body{margin:16px}.detail-back{margin-left:16px}.health-drilldown #band-records .band-record-card{padding:12px}.health-drilldown #band-records .band-chart{min-width:500px}}
