:root {
  color-scheme: dark;
  font: 15px/1.5 "Instrument Sans", system-ui, sans-serif;
  background: #0b0f14;
  color: #e3eaf3;
}
* { box-sizing: border-box; }
body { margin: 0; }
main { max-width: 1120px; margin: auto; padding: 32px 22px 60px; }
h1 { font-size: clamp(1.75rem, 4vw, 2.65rem); letter-spacing: -.045em; margin: 0; }
h2 { font-size: 1.18rem; margin: 0; }
p { margin: 5px 0 12px; }
.subtitle, .note, dt { color: #aab9cc; }
label, summary { font-weight: 650; }
select { font: inherit; display: block; margin: 5px 0 16px; max-width: 100%; padding: 8px; border: 1px solid #43536a; border-radius: 4px; color: inherit; background: #0c131e; }
section, .summary { background: #111824; border: 1px solid #29364a; border-radius: 8px; padding: 16px 20px; margin: 12px 0; }
.summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)); gap: 8px; margin: 0 0 18px; }
dt, .note { font-size: .88rem; }
dd { margin: 2px 0 0; font-weight: 650; }
.chart, .table-wrap { overflow-x: auto; }
.chart { min-height: 330px; }
summary { cursor: pointer; }
table { border-collapse: collapse; width: 100%; margin-top: 8px; font-size: .88rem; }
th, td { padding: 6px 9px; text-align: left; white-space: nowrap; border-bottom: 1px solid #29364a; }
tbody tr:nth-child(even) { background: #162132; }

.calibration-window { margin: 12px 0 16px; padding: 12px; border: 1px solid #29364a; border-radius: 6px; }
.window-controls, .window-actions { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.window-controls { margin-top: 8px; }
.window-controls select { margin-bottom: 0; }
button { font: inherit; color: inherit; background: #1a2a3d; border: 1px solid #43536a; border-radius: 4px; padding: 6px 12px; cursor: pointer; }
button:disabled { opacity: .52; cursor: default; }
button:focus-visible, select:focus-visible, summary:focus-visible { outline: 2px solid #65d8c9; outline-offset: 2px; }
.plotly .modebar-btn:hover { background: #25354b; }
