/* Brand check prototype. Native dialog owns focus and the background. */
body.health-modal-open { overflow: hidden; }
.health-dialog { width: min(960px, calc(100% - 40px)); max-height: calc(100dvh - 56px); margin: auto; padding: 0; border: 1px solid #dce1f1; border-radius: 24px; background: #fff; color: #242b52; font: 14px/1.8 var(--font); box-shadow: 0 28px 100px #04072c4d; }
.health-dialog::backdrop { background: #080d36a8; backdrop-filter: blur(6px); }
.health-shell { display: grid; grid-template-columns: 230px minmax(0, 1fr); min-height: 590px; }
.health-sidebar { display: flex; flex-direction: column; padding: 32px 28px; color: #d7dcff; background: radial-gradient(ellipse at 0% 100%, #303ba6, transparent 70%), #101445; }
.health-wordmark { color: #fff; font-size: 25px; font-weight: 700; letter-spacing: -.7px; }
.health-wordmark span { display: block; margin-top: 5px; color: #a0a9dd; font-size: 10px; font-weight: 400; letter-spacing: 1px; }
.health-sidebar > p { margin-top: 45px; font-size: 25px; font-weight: 500; line-height: 1.65; letter-spacing: -.6px; }
.health-sidebar em { color: #aebcff; }
.health-sidebar ol { display: grid; gap: 20px; margin: 35px 0; padding: 0; list-style: none; }
.health-sidebar li { display: flex; align-items: center; gap: 14px; color: #a0a9d4; font-size: 11px; }
.health-sidebar li > span { display: grid; place-items: center; width: 25px; height: 25px; border: 1px solid #919edf40; border-radius: 50%; font-size: 9px; }
.health-sidebar li[aria-current] { color: #fff; }
.health-sidebar li[aria-current] > span { border-color: #99a7ff; background: #b0bbff20; color: #fff; }
.health-sidebar-note { margin-top: auto; color: #a0abd8; font-size: 11px; line-height: 1.9; }
.health-main { min-width: 0; padding: 27px 34px 22px; }
.health-topline { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 25px; }
.health-demo-tag { padding: 4px 10px; border-radius: 4px; background: #f0f2fc; color: #727a9c; font-size: 10px; }
.health-close { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid #e4e7f1; border-radius: 50%; background: #fff; color: #69718f; font-size: 22px; cursor: pointer; }
.health-main h2 { outline: none; color: #252c58; font-size: 27px; line-height: 1.5; font-weight: 600; letter-spacing: -.7px; }
.health-main h3 { color: #333b64; font-size: 15px; font-weight: 600; line-height: 1.65; }
.health-lead { margin: 13px 0 25px; color: #7a8198; font-size: 13px; line-height: 1.95; }
.health-content { margin-top: 20px; }
.health-field { display: grid; gap: 9px; margin-block: 17px; color: #4d5579; font-size: 12px; }
.health-field input, .health-field textarea { display: block; width: 100%; min-width: 0; padding: 11px 13px; border: 1px solid #dce1ee; border-radius: 9px; background: #fafbfe; color: #343d61; font: inherit; font-size: 13px; }
.health-field input::placeholder, .health-field textarea::placeholder { color: #a1a7bb; }
.health-field textarea { min-height: 86px; resize: vertical; }
.health-two-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.health-two-fields .health-field { margin-block: 0 10px; }
.health-hint { margin-block: 10px; color: #9198ad; font-size: 11px; line-height: 1.85; }
.health-flow-note { display: flex; flex-wrap: wrap; gap: 7px 18px; margin: 23px 0; padding: 15px 0; border-block: 1px solid #edf0f6; color: #7f87a1; font-size: 10px; }
.health-button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 44px; padding: 10px 20px; border: 1px solid #454ced; border-radius: 100px; background: #454ced; color: #fff; font: inherit; font-size: 12px; cursor: pointer; }
.health-button:hover { background: #3037d2; }
.health-button.secondary { background: #fff; border-color: #dce1ef; color: #5a6387; }
.health-button.secondary:hover { background: #f4f6fc; }
.health-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.health-prototype-note { margin-top: 27px; padding-top: 16px; border-top: 1px solid #edf0f6; color: #939ab0; font-size: 10px; line-height: 1.8; }
.health-waiting { display: flex; align-items: center; gap: 17px; margin: 22px 0 25px; padding: 21px; border: 1px solid #e2e6f6; border-radius: 14px; background: #f7f8ff; }
.health-waiting-mark { flex: none; color: #656de3; font-size: 35px; line-height: 1; }
.health-waiting p { margin-top: 4px; color: #858da7; font-size: 11px; }
.health-subheading { margin-top: 24px; }
.health-channel-tabs, .health-workspace-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 17px; }
.health-channel-tabs button, .health-workspace-tabs button { min-height: 35px; padding: 6px 14px; border: 1px solid #e1e5f0; border-radius: 7px; background: #fff; color: #7b839f; font: inherit; font-size: 11px; cursor: pointer; }
.health-channel-tabs [aria-pressed="true"], .health-workspace-tabs [aria-pressed="true"] { color: #484fc7; border-color: #bfc7f3; background: #eff2ff; }
.health-saved { margin-block: 22px; padding: 20px; border: 1px solid #dce6e3; border-radius: 12px; background: #f5faf7; }
.health-saved p { margin-top: 7px; color: #7a8b86; font-size: 12px; }
.health-saved a { display: inline-block; margin-top: 13px; color: #444dcb; font-size: 12px; text-decoration: underline; text-underline-offset: 4px; }
.health-report-status { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-bottom: 13px; color: #858da7; font-size: 11px; }
.health-report-status strong { color: #585fcb; font-size: 11px; font-weight: 500; }
.health-report-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; }
.health-report-grid article { padding: 20px; border: 1px solid #e4e8f2; border-radius: 13px; background: #fff; }
.health-report-grid article > span:first-child { color: #8a92b0; font-size: 10px; }
.health-report-grid h3 { margin-top: 12px; font-size: 14px; }
.health-report-grid p { margin-top: 10px; color: #8189a2; font-size: 11px; line-height: 1.95; }
.health-report-grid .health-locked { background: repeating-linear-gradient(135deg, #f6f7fb, #f6f7fb 8px, #f9fafe 8px, #f9fafe 16px); }
.health-lock-label { display: inline-block; margin-top: 15px; color: #858dad; font-size: 9px; }
.health-unlock { display: flex; flex-direction: column; gap: 16px; margin-top: 20px; padding: 20px; border-radius: 12px; background: #f0f2ff; }
.health-unlock p { margin-top: 5px; color: #8088a6; font-size: 11px; line-height: 1.9; }
.health-unlock > .health-button { align-self: start; }
.health-task-panel { margin-top: 20px; padding: 22px; border: 1px solid #e3e7f2; border-radius: 14px; background: #fafbff; }
.health-small-label { color: #8d96b5; font-size: 9px; letter-spacing: 1px; }
.health-task-panel h3 { margin: 8px 0 18px; }
.health-task { display: flex; align-items: start; gap: 11px; padding: 11px 0; border-top: 1px solid #e9edf6; color: #687291; font-size: 12px; cursor: pointer; }
.health-task input { width: 15px; height: 15px; margin: 4px 0 0; accent-color: #454ced; }
.health-request-summary { display: grid; gap: 16px; margin-block: 25px; }
.health-request-summary > div { display: grid; grid-template-columns: 75px minmax(0, 1fr); gap: 16px; font-size: 12px; }
.health-request-summary dt { color: #8b93ab; }
.health-request-summary dd { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.health-error { margin-top: 15px; padding: 10px 13px; border-radius: 7px; background: #fff3f1; color: #ae5148; font-size: 12px; }
@media (max-width: 700px) {
  .health-dialog { width: calc(100% - 20px); max-height: calc(100dvh - 24px); border-radius: 18px; }
  .health-shell { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .health-sidebar { display: none; }
  .health-main { padding: 20px; }
  .health-topline { margin-bottom: 19px; }
  .health-main h2 { font-size: 23px; }
  .health-lead { font-size: 12px; }
  .health-two-fields { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .health-report-grid { gap: 10px; }
  .health-report-grid article { padding: 16px 13px; }
  .health-report-grid h3 { font-size: 13px; }
  .health-report-grid p { font-size: 10px; }
  .health-actions .health-button { flex: 1 1 auto; }
  .health-request-summary > div { grid-template-columns: 62px minmax(0, 1fr); gap: 12px; }
}
