html { scroll-behavior: smooth; }
.method-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; }
.method-links a { text-decoration: none; font-weight: 650; }
.lab-layout { display: grid; grid-template-columns: 224px minmax(0,1fr); gap: 16px; align-items: start; }
.lab-controls { padding: 12px; border: 1px solid #dce3ed; border-radius: 3px; background: #f5f7fb; }
.lab-workspace { min-width: 0; }
.lab-reading { padding: 8px 10px; border: 1px solid #dce3ed; border-radius: 3px; font-size: 13px; }
.lab-reading > summary { color: #1749d1; font-weight: 600; }
.lab-reading .callout { padding: 12px; margin-top: 12px; }
.lab-controls fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.lab-controls legend { font-weight: 700; padding: 0 0 8px; }
.lab-controls label { display: block; font-size: 12px; font-weight: 600; margin: 9px 0 4px; }
.lab-controls label span { float: right; color: #4c5870; }
.lab-controls input:not([type=checkbox]), .lab-controls select, .sizing-inputs input, .lab-downloads select { width: 100%; padding: 5px 7px; color: #142238; border: 1px solid #b5c0d1; border-radius: 3px; background: #fff; font: inherit; min-width: 0; }
.lab-controls .compare-control { display: flex; align-items: start; gap: 7px; font-weight: 400; line-height: 1.5; }
.compare-control input { margin-top: 4px; }
.lab-run { width: 100%; background: #1749d1; color: #fff; border: 0; border-radius: 3px; font: inherit; font-size: 13px; font-weight: 650; padding: 7px; margin-top: 12px; cursor: pointer; }
.docpage button:focus-visible, .docpage input:focus-visible, .docpage select:focus-visible { outline: 2px solid #1749d1; outline-offset: 2px; }
.docpage button:disabled { opacity: .55; cursor: wait; }
#device-status, .small-note { font-size: 13px; line-height: 1.6; color: #4c5870; }
#device-status { margin-bottom: 0; }
.curve-key h3 { margin-top: 28px; }
.curve-key dt { font-weight: 650; margin-top: 18px; }
.curve-key dd { margin: 5px 0 0; color: #4c5870; line-height: 1.65; }
.condition-banner { border-left: 3px solid #1749d1; padding: 8px 12px; margin: 16px 0 12px; background: #eff4ff; line-height: 1.6; }
.stale-note { color: #824300; background: #fff4df; padding: 12px 18px; }
.device-plots { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.device-chart { min-width: 0; border: 1px solid #dce3ed; border-radius: 3px; padding: 10px 8px; background: #fff; }
.device-chart h3 { font-size: 14px; margin: 0 6px 10px; }
.plot { width: 100%; min-width: 0; }
.tableview { font-size: 12px; margin: 12px 7px; }
summary { cursor: pointer; }
.tablescroll { overflow: auto; max-height: 260px; }
.tableview table { border-collapse: collapse; width: 100%; }
.tableview td, .tableview th { text-align: right; padding: 7px 10px; border-bottom: 1px solid #dce3ed; white-space: nowrap; }
.charttools { display: flex; flex-wrap: wrap; gap: 9px; margin: 16px 7px 0; }
.charttools button, .lab-downloads button { border: 1px solid #b5c0d1; border-radius: 5px; padding: 7px 10px; color: #1749d1; background: #fff; cursor: pointer; font: inherit; font-size: 12px; }
.extraction-notes { border-bottom: 1px solid #dce3ed; padding: 24px 0; line-height: 1.7; }
.extraction-notes summary { font-weight: 650; }
.lab-downloads { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 24px; font-size: 13px; }
.lab-downloads select { width: auto; max-width: 100%; }
.method-steps { list-style: decimal-leading-zero; padding-left: 30px; }
.method-steps li { padding: 0 0 18px 16px; line-height: 1.75; }
.method-steps li::marker { color: #1749d1; font-weight: 700; }
.method-steps h3 { margin-bottom: 8px; }
.equation { font-size: 20px; color: #142238; padding: 12px 0; }
.sizing-box { background: #f5f7fb; border: 1px solid #dce3ed; border-radius: 12px; padding: 24px; margin: 24px 0; }
.sizing-box h3 { margin-top: 0; }
.sizing-inputs { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; max-width: 580px; }
.sizing-inputs label { font-size: 13px; font-weight: 600; }
.sizing-inputs input { margin-top: 6px; }
#sizing-result { line-height: 1.7; }
[hidden] { display: none !important; }
@media (max-width: 800px) { .device-plots { grid-template-columns: minmax(0,1fr); } .lab-layout { grid-template-columns: minmax(0,1fr); gap: 24px; } }
@media (max-width: 420px) { .sizing-inputs { grid-template-columns: minmax(0,1fr); } .lab-controls, .sizing-box { padding: 18px; } .device-chart { padding: 16px 7px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
