.smt-health-page .smt-tool-hero-grid > div:first-child,
.smt-health-page .smt-tool-app-header,
.smt-health-page .smt-hub-head,
.smt-health-guide .smt-hub-article-hero {
  text-align: center;
}

.smt-health-page .smt-tool-hero .smt-hub-kicker,
.smt-health-page .smt-tool-app-header .smt-tool-private-label {
  margin-left: auto;
  margin-right: auto;
}

.smt-health-page .smt-tool-app-header {
  align-items: center;
  flex-direction: column;
  gap: 12px;
}

.smt-health-page .smt-tool-app-header p {
  margin: 0 auto;
  max-width: 700px;
}

.smt-health-preview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 22px 0;
}

.smt-health-preview > div {
  border-right: 1px solid var(--tool-line);
  min-width: 0;
  padding: 20px 8px;
  text-align: center;
}

.smt-health-preview > div:last-child { border-right: 0; }
.smt-health-preview small { color: var(--tool-muted); display: block; font-weight: 800; }
.smt-health-preview strong { color: var(--tool-purple-dark); display: block; font-size: 26px; margin-top: 6px; }
.smt-health-preview > div:last-child strong { color: var(--tool-blue); }
.smt-health-preview-message {
  background: var(--tool-green-soft);
  border-left: 4px solid var(--tool-green);
  line-height: 1.5;
  margin: 0;
  padding: 16px 18px;
}

.smt-health-form { padding: 30px 34px 36px; }
.smt-health-top-row { align-items: end; display: grid; gap: 24px; grid-template-columns: minmax(210px, 290px) minmax(0, 1fr); margin-bottom: 28px; }
.smt-health-top-row p { color: var(--tool-muted); font-size: 14px; line-height: 1.55; margin: 0 0 5px; }
.smt-health-snapshot-head,
.smt-health-row { display: grid; gap: 0; grid-template-columns: 90px minmax(140px, 1fr) minmax(120px, .85fr) minmax(150px, 1fr) 104px; }
.smt-health-snapshot-head { background: #f5f0ff; border: 1px solid var(--tool-line); border-radius: 10px 10px 0 0; color: var(--tool-purple-dark); font-size: 13px; font-weight: 900; }
.smt-health-snapshot-head span { padding: 14px 10px; text-align: center; }
.smt-health-snapshot-head span:not(:last-child) { border-right: 1px solid var(--tool-line); }
.smt-health-row { align-items: center; border: 1px solid var(--tool-line); border-top: 0; min-width: 0; }
.smt-health-row:last-child { border-radius: 0 0 10px 10px; }
.smt-health-row > * { min-width: 0; padding: 14px 10px; }
.smt-health-row > *:not(:last-child) { border-right: 1px solid var(--tool-line); }
.smt-health-row-number { color: var(--tool-purple); text-align: center; }
.smt-health-row label span { display: none; }
.smt-health-row input { background: #fff; border: 1px solid #dcd4ef; border-radius: 8px; color: var(--tool-ink); font: inherit; min-height: 46px; padding: 8px 10px; text-align: center; width: 100%; }
.smt-health-row input:focus { border-color: var(--tool-purple); box-shadow: 0 0 0 3px rgba(113, 56, 232, .13); outline: none; }
.smt-health-remove { background: transparent; border: 0; color: var(--tool-purple-dark); cursor: pointer; font: inherit; font-size: 12px; font-weight: 900; min-height: 46px; overflow-wrap: normal; white-space: nowrap; word-break: normal; }
.smt-health-row .smt-health-remove { padding-left: 8px; padding-right: 8px; }
.smt-health-remove:disabled { color: #9895a5; cursor: not-allowed; }
.smt-health-form-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 18px; }
.smt-health-form-actions span { color: var(--tool-muted); font-size: 13px; }
.smt-health-form > .smt-tool-actions { justify-content: center; }
.smt-health-form .smt-tool-error { text-align: center; }
.smt-health-output[hidden] { display: none !important; }
.smt-health-output { border-top: 1px solid var(--tool-line); padding: 34px; }
.smt-health-result-head { margin: 0 auto; max-width: 820px; text-align: center; }
.smt-health-result-head .smt-hub-kicker { margin-left: auto; margin-right: auto; }
.smt-health-result-head h2 { font-size: 32px; }
.smt-health-result-head > p:last-child { color: var(--tool-muted); }
.smt-health-metrics { display: grid; gap: 14px; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 26px 0 30px; }
.smt-health-metric { background: #fff; border: 1px solid var(--tool-line); border-top: 4px solid var(--tool-purple); border-radius: 8px; min-width: 0; padding: 17px 12px; text-align: center; }
.smt-health-metric:nth-child(2) { border-top-color: var(--tool-blue); }
.smt-health-metric:nth-child(3) { border-top-color: var(--tool-green); }
.smt-health-metric:nth-child(4) { border-top-color: #d18416; }
.smt-health-metric span { color: var(--tool-muted); display: block; font-size: 12px; font-weight: 800; }
.smt-health-metric strong { color: var(--tool-ink); display: block; font-size: 24px; margin-top: 7px; overflow-wrap: anywhere; }
.smt-health-chart-grid { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.smt-health-chart-grid figure { background: #fff; border: 1px solid var(--tool-line); border-radius: 8px; margin: 0; min-width: 0; padding: 18px; }
.smt-health-chart-grid h3,
.smt-health-findings h3,
.smt-health-intervals h3 { font-size: 20px; text-align: center; }
.smt-health-chart-grid canvas { display: block; height: auto; width: 100%; }
.smt-health-chart-grid figcaption { color: var(--tool-muted); font-size: 12px; line-height: 1.5; text-align: center; }
.smt-health-findings { background: var(--tool-blue-soft); border-left: 4px solid var(--tool-blue); margin-top: 26px; padding: 20px 28px; }
.smt-health-findings ul { margin: 14px 0 0; padding-left: 22px; }
.smt-health-findings li + li { margin-top: 8px; }
.smt-health-intervals { margin-top: 28px; }
.smt-health-table-scroll { overflow-x: auto; }
.smt-health-intervals table { border-collapse: collapse; min-width: 560px; width: 100%; }
.smt-health-intervals th,
.smt-health-intervals td { border-bottom: 1px solid var(--tool-line); padding: 11px; text-align: center; }
.smt-health-intervals th { background: #f5f0ff; color: var(--tool-purple-dark); font-size: 13px; }
.smt-health-output .smt-tool-result-actions { margin: 26px auto 0; max-width: 450px; }
.smt-health-method-note { color: var(--tool-muted); margin: 28px auto 0; max-width: 850px; text-align: center; }
.smt-health-page .smt-hub-split h2,
.smt-health-page .smt-hub-panel h3,
.smt-health-page .smt-tool-formula-card h3 { text-align: center; }
.smt-health-page .smt-tool-formula-card { display: flex; flex-direction: column; }
.smt-health-page .smt-tool-formula-card p { margin-bottom: 18px; }
.smt-health-page .smt-tool-formula-card code { margin-top: auto; }
.smt-health-page .smt-tool-formula-card > p:has(> code) { margin-bottom: 0; margin-top: auto; }
.smt-health-page .smt-tool-formula-card > p:has(> code) code { margin-top: 0; }
.smt-health-page .smt-tool-formula-card > p:empty { display: none; }
.smt-health-page .smt-hub-split .smt-hub-kicker { display: table; margin-left: auto; margin-right: auto; }
.smt-health-guide-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.smt-health-platform-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.smt-health-method-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-left: auto; margin-right: auto; max-width: 850px; }
.smt-health-guide-grid .smt-tool-guide-card { min-width: 0; }
.smt-health-guide-grid .smt-tool-guide-card h3 { text-align: center; }
.smt-health-guide-grid .smt-tool-guide-card > a { margin-top: auto; text-align: center; }
.smt-health-page .smt-tool-guide-card > p:empty,
.smt-health-page .smt-tool-guide-grid > p:empty { display: none !important; }
.smt-health-page .smt-tool-guide-card > p:has(> a) { margin-top: auto !important; text-align: center; }
.smt-health-guides-section { padding-bottom: 26px; }
.smt-health-method-guides-section { padding-top: 26px; padding-bottom: 32px; }
.smt-health-cta-section { padding-top: 26px; }
.smt-health-guide .smt-hub-article-body > h2,
.smt-health-guide .smt-hub-article-body > h3 { text-align: center; }
.smt-health-toc { background: #f8f6ff; border: 1px solid var(--tool-line); border-radius: 8px; margin: 28px 0 42px; padding: 24px; }
.smt-health-toc h2 { font-size: 23px; margin: 0 0 18px; text-align: center; }
.smt-health-toc ol { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; }
.smt-health-toc li { counter-increment: smt-health-section; min-width: 0; }
.smt-health-toc ol { counter-reset: smt-health-section; }
.smt-health-toc a { align-items: center; background: #fff; border: 1px solid #e6dcff; border-radius: 8px; color: var(--tool-ink); display: flex; font-weight: 800; gap: 12px; min-height: 62px; padding: 12px; text-decoration: none; }
.smt-health-toc a::before { align-items: center; background: var(--tool-purple); border-radius: 50%; color: #fff; content: counter(smt-health-section); display: inline-flex; flex: 0 0 32px; height: 32px; justify-content: center; }
.smt-health-toc li:nth-child(2) a::before { background: var(--tool-blue); }
.smt-health-toc li:nth-child(3) a::before { background: var(--tool-green); }
.smt-health-toc li:nth-child(4) a::before { background: #b86d0d; }
.smt-health-toc li:nth-child(5) a::before { background: #188a80; }
.smt-health-related-grid { display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 26px 0 46px; }
.smt-health-related-grid > div { align-items: center; background: #fff; border: 1px solid var(--tool-line); border-radius: 8px; display: flex; justify-content: center; min-height: 105px; padding: 16px; text-align: center; }
.smt-health-related-grid a { color: var(--tool-purple-dark); display: block; font-weight: 900; text-decoration: none; }
.smt-health-related-grid p { margin: 0; }
.smt-health-guide .smt-hub-article-body > h2 { margin-top: 50px !important; }
.smt-health-guide .smt-hub-article-body > .smt-hub-faq { margin-top: 48px; }
.smt-health-guide .smt-tool-cta { margin-top: 42px; }
.smt-health-source { border-top: 1px solid var(--tool-line); color: var(--tool-muted); font-size: 13px; margin-top: 46px; padding-top: 18px; text-align: center; }
.smt-health-directory .smt-tool-directory-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1220px; }
.smt-health-directory .smt-tool-directory-card h3 { text-align: center; }
.smt-health-directory .smt-tool-directory-card .smt-tool-private-label,
.smt-health-directory .smt-tool-directory-card > a { align-self: center; text-align: center; }
.smt-health-directory .smt-tool-directory-card > p:has(> a) { margin-top: auto !important; text-align: center; }

@media (max-width: 1050px) {
  .smt-health-platform-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .smt-health-chart-grid { grid-template-columns: 1fr; }
  .smt-health-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .smt-health-directory .smt-tool-directory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .smt-health-top-row { grid-template-columns: 1fr; }
  .smt-health-snapshot-head { display: none; }
  .smt-health-row { border: 1px solid var(--tool-line); border-radius: 10px; gap: 10px; grid-template-columns: 40px repeat(3, minmax(0, 1fr)) 80px; margin-bottom: 12px; padding: 12px; }
  .smt-health-row > * { border-right: 0 !important; padding: 0; }
  .smt-health-row label span { color: var(--tool-muted); display: block; font-size: 11px; font-weight: 800; margin-bottom: 5px; text-align: center; }
}

@media (max-width: 680px) {
  .smt-health-form,
  .smt-health-output { padding: 22px 18px; }
  .smt-health-preview strong { font-size: 18px; }
  .smt-health-row { grid-template-columns: 1fr 1fr; }
  .smt-health-row-number { grid-column: 1; text-align: left; }
  .smt-health-remove { grid-column: 2; grid-row: 1; text-align: right; }
  .smt-health-row label:nth-of-type(1) { grid-column: 1; }
  .smt-health-row label:nth-of-type(2) { grid-column: 2; }
  .smt-health-row label:nth-of-type(3) { grid-column: 1 / -1; }
  .smt-health-guide-grid,
  .smt-health-related-grid,
  .smt-health-toc ol,
  .smt-health-directory .smt-tool-directory-grid { grid-template-columns: 1fr; }
  .smt-health-metric strong { font-size: 21px; }
}
