:root { color-scheme: light; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #172c45; background: #f3f6fa; }
* { box-sizing: border-box; }
body { margin: 0; }
main { max-width: 780px; margin: 0 auto; padding: 64px 24px 36px; }
.brand { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 700; letter-spacing: .14em; }
.brand-mark { display: grid; place-items: center; height: 35px; width: 35px; border-radius: 9px; color: white; background: #174d78; font-size: 23px; letter-spacing: 0; }
.test-label { margin-left: auto; color: #586b81; font-size: 12px; font-weight: 500; letter-spacing: 0; }
h1 { margin: 40px 0 10px; font-size: clamp(28px, 5vw, 39px); letter-spacing: -.035em; line-height: 1.15; font-weight: 650; }
.intro { margin: 0 0 29px; max-width: 620px; color: #52667e; font-size: 17px; line-height: 1.65; }
.panel { padding: 29px; background: #fff; border: 1px solid #dfe6ee; border-radius: 16px; box-shadow: 0 6px 24px #172c4505; }
.panel-top { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
h2 { margin: 0; font-size: 15px; font-weight: 600; }
.badge { display: inline-block; flex-shrink: 0; padding: 6px 10px; border-radius: 6px; background: #edf1f6; color: #465b73; font-size: 12px; font-weight: 600; }
.badge[data-state="pending"] { background: #eaf2fd; color: #235a96; }
.badge[data-state="ok"] { background: #e5f4ed; color: #12643f; }
.badge[data-state="error"] { background: #fff0ee; color: #a33327; }
.result { font-size: 23px; font-weight: 600; line-height: 1.35; letter-spacing: -.02em; margin: 34px 0 8px; }
.detail { color: #52667e; line-height: 1.6; font-size: 14px; margin: 0; min-height: 45px; }
.measurements { display: grid; grid-template-columns: repeat(3, 1fr); margin: 24px 0; padding: 22px 0; border-block: 1px solid #e8edf3; gap: 18px; }
dt { font-size: 12px; line-height: 1.4; color: #586b81; }
dd { margin: 8px 0 0; font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
button { display: flex; align-items: center; justify-content: space-between; gap: 25px; min-height: 49px; padding: 13px 19px; background: #174d78; color: #fff; border: 0; border-radius: 8px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
button:hover:not(:disabled) { background: #103d61; }
button:focus-visible { outline: 3px solid #7eaee0; outline-offset: 4px; }
button:disabled { cursor: wait; background: #567998; }
.hint, .footnote { font-size: 12px; line-height: 1.7; color: #586b81; }
.hint { margin: 12px 0 0; }
.footnote { margin: 18px 6px 0; max-width: 640px; }
@media (max-width: 520px) {
  main { padding: 29px 18px; }
  h1 { margin-top: 32px; }
  .panel { padding: 22px 18px; }
  .panel-top { align-items: flex-start; flex-direction: column; gap: 10px; }
  .result { margin-top: 25px; font-size: 21px; }
  .measurements { grid-template-columns: 1fr; gap: 17px; }
  .measurements div { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
  dd { margin: 0; }
  button { width: 100%; }
}
