html.sage-health-modal-open, body.sage-health-modal-open { overflow: hidden !important; }
.sage-health-modal { display: none; position: fixed; inset: 0; z-index: 2147483000; }
.sage-health-modal.is-open { display: block; }
.sage-health-modal__backdrop { position: absolute; inset: 0; background: rgba(21, 31, 29, .56); backdrop-filter: blur(2px); }
.sage-health-modal__dialog { position: absolute; inset: 16px; margin: auto; width: min(960px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto; background: #fff; border: 1px solid rgba(19, 65, 61, .22); border-radius: 16px; box-shadow: 0 24px 70px rgba(0,0,0,.25); color: #21312e; overscroll-behavior: contain; }
.sage-health-modal__header { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; background: #fff; border-bottom: 1px solid #dfe8e6; }
.sage-health-modal__header strong { display: block; font-size: clamp(1.25rem, 2.5vw, 1.8rem); line-height: 1.15; }
.sage-health-modal__header span { display: block; margin-top: 3px; color: #64736f; font-size: .92rem; }
.sage-health-modal__close { flex: 0 0 auto; width: 44px; height: 44px; border: 1px solid #b9cbc7; border-radius: 50%; background: #eef8f6; color: #087f78; font: 400 32px/1 Arial, sans-serif; cursor: pointer; }
.sage-health-modal__close:hover, .sage-health-modal__close:focus-visible { background: #dff2ef; outline: 3px solid rgba(0, 153, 145, .22); outline-offset: 2px; }
.sage-health-modal__body { padding: 20px; }
.sage-health-modal__intro { margin: 0 0 18px; line-height: 1.55; }
.sage-hc-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.sage-hc-grid label { display: flex; flex-direction: column; gap: 6px; font-weight: 650; }
.sage-hc-grid input, .sage-hc-grid select { width: 100%; min-height: 46px; box-sizing: border-box; border: 1px solid #bcc9c6; border-radius: 10px; padding: 9px 11px; background: #fff; color: #21312e; font: inherit; }
.sage-hc-grid input:focus, .sage-hc-grid select:focus { outline: 3px solid rgba(0,153,145,.18); border-color: #079b93; }
.sage-hc-message { min-height: 1.4em; margin: 10px 0 0; color: #9f2f2f; }
.sage-hc-calculate { margin-top: 8px; border: 0; border-radius: 10px; padding: 11px 18px; background: #087f78; color: #fff; font: 650 1rem/1.2 inherit; cursor: pointer; }
.sage-hc-calculate:hover, .sage-hc-calculate:focus-visible { background: #066a64; outline: 3px solid rgba(0,153,145,.2); outline-offset: 2px; }
.sage-hc-results { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin-top: 20px; }
.sage-hc-results article { border: 1px solid #dbe5e2; border-radius: 12px; padding: 16px; background: #fbfdfc; }
.sage-hc-results article > span { display: block; color: #5d6e69; font-weight: 650; }
.sage-hc-results article > strong { display: block; margin: 5px 0 8px; font-size: clamp(1.5rem,3vw,2.25rem); line-height: 1.1; }
.sage-hc-results article p { margin: 0; color: #4f5f5b; line-height: 1.45; }
.sage-hc-footnote { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid #e1e8e6; color: #60706c; font-size: .9rem; line-height: 1.5; }
@media (max-width: 760px) {
  .sage-health-modal__dialog { inset: 8px; width: calc(100vw - 16px); max-height: calc(100dvh - 16px); border-radius: 12px; }
  .sage-health-modal__header { padding: 14px 14px; }
  .sage-health-modal__body { padding: 14px; }
  .sage-hc-grid { grid-template-columns: 1fr; }
  .sage-hc-results { grid-template-columns: 1fr; }
}
