/* Source-aware health observation trend explorer. No risk bands or clinical scores. */
body[data-workspace="health"] .health-trend-panel{
  margin:0 30px 18px;padding:20px;border:1px solid #d2e5df;border-radius:16px;
  background:linear-gradient(155deg,#fff,#f8fcfa);box-shadow:0 10px 28px #245b5a09
}
body[data-workspace="health"] .health-trend-panel__head{
  display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:15px
}
body[data-workspace="health"] .health-trend-panel__head .eyebrow{
  color:#237d73;font-size:10px;font-weight:900;letter-spacing:.15em
}
body[data-workspace="health"] .health-trend-panel__head h3{
  margin:4px 0;color:#174b4c;font-size:19px;font-weight:850;letter-spacing:-.02em
}
body[data-workspace="health"] .health-trend-panel__head p{
  margin:0;max-width:820px;color:#54736d;font-size:12px;line-height:1.7
}
body[data-workspace="health"] .health-trend-local-tag{
  flex:0 0 auto;padding:7px 10px;border:1px solid #cce5da;border-radius:99px;
  background:#edf8f2;color:#237761;font-size:10px;font-weight:800
}
body[data-workspace="health"] .health-trend-controls{
  display:grid;grid-template-columns:minmax(0,2fr) minmax(170px,.7fr);gap:12px;
  padding:13px;border:1px solid #e0ece7;border-radius:11px;background:#f7fbf8
}
body[data-workspace="health"] .health-trend-field{display:grid;gap:6px;min-width:0}
body[data-workspace="health"] .health-trend-field label{
  color:#355f58;font-size:11px;font-weight:800
}
body[data-workspace="health"] .health-trend-field select{
  width:100%;min-width:0;min-height:42px;padding:8px 34px 8px 11px;
  border:1px solid #cbded6;border-radius:8px;background:#fff;color:#204f4b;
  font-size:12px;font-weight:650
}
body[data-workspace="health"] .health-trend-field select:disabled{
  background:#f1f5f2;color:#8a9c95;cursor:not-allowed
}
body[data-workspace="health"] .health-trend-field :focus-visible{
  outline:3px solid #218b82!important;outline-offset:2px
}
body[data-workspace="health"] .health-trend-summary{
  margin:13px 2px 5px;padding:9px 11px;border-left:3px solid #298d7e;
  background:#f0f8f4;color:#345f57;font-size:11px;font-weight:700;line-height:1.6
}
body[data-workspace="health"] .health-trend-chart-wrap{
  width:100%;min-width:0;overflow-x:auto;padding:7px 0 0
}
body[data-workspace="health"] #trendSvg{
  display:block;width:100%;min-width:540px;height:auto;min-height:210px;
  overflow:visible
}
body[data-workspace="health"] .health-trend-disclaimer{
  margin:9px 0 0;padding-top:10px;border-top:1px solid #e5eee9;
  color:#536f67;font-size:10px;line-height:1.7
}
body[data-workspace="health"] .health-trend-panel :where(select,button):focus-visible{
  outline:3px solid #218b82!important;outline-offset:2px
}
@media(max-width:900px){
  body[data-workspace="health"] .health-trend-panel{margin:0 16px 15px;padding:16px}
}
@media(max-width:640px){
  body[data-workspace="health"] .health-trend-panel{margin:0 12px 14px;padding:13px}
  body[data-workspace="health"] .health-trend-panel__head{flex-direction:column;gap:9px}
  body[data-workspace="health"] .health-trend-controls{grid-template-columns:1fr;padding:10px}
  body[data-workspace="health"] #trendSvg{min-width:560px}
}
@media(prefers-reduced-motion:reduce){
  body[data-workspace="health"] .health-trend-panel *{scroll-behavior:auto!important;transition:none!important;animation:none!important}
}

/* Resolve the legacy desktop grid rule winning over the narrow-screen product shell. */
@media(max-width:640px){
  body[data-workspace="health"] .shell.show{
    display:block!important;width:100%;max-width:100%;min-width:0;overflow-x:hidden
  }
  body[data-workspace="health"] .shell.show>.sidebar{
    display:block!important;position:relative;width:100%;height:auto;min-height:0
  }
  body[data-workspace="health"] .shell.show>.main{
    display:flex;width:100%;max-width:100%;min-width:0;min-height:calc(100dvh - 58px);
    overflow-x:hidden
  }
  body[data-workspace="health"] .shell.show>.main>.pages,
  body[data-workspace="health"] .shell.show>.main>#pages{
    display:block;width:100%;max-width:100%;min-width:0;margin:0;
    padding:12px 12px calc(94px + env(safe-area-inset-bottom));box-sizing:border-box
  }
  body[data-workspace="health"] #pages>.page.active{
    display:block;width:100%;max-width:none;min-width:0;margin:0
  }
  body[data-workspace="health"] .health-trend-panel{width:100%;max-width:100%;margin:0 0 14px}
}
