.cal-lab {
  min-width: 0;
  width: 100%;
  margin: 0;
  padding: clamp(17px, 3.5%, 32px);
  border-radius: 8px;
  background: #122c38;
  color: #edf4ef;
  color-scheme: dark;
}
.cal-lab figcaption { margin: 0 0 14px; font-weight: 600; font-size: 1.1rem; }
.cal-settings { display: flex; flex-wrap: wrap; gap: 12px 22px; }
.cal-settings[hidden] { display: none; }
.cal-settings fieldset { min-width: 0; padding: 0; margin: 0; border: 0; }
.cal-settings legend { margin-bottom: 4px; padding: 0; color: #c7d6d5; font-size: .85rem; }
.cal-choices { display: flex; flex-wrap: wrap; gap: 4px; }
.cal-choices label { display: inline-flex; gap: 5px; align-items: center; min-height: 44px; padding: 3px 8px; cursor: pointer; font-size: .9rem; }
.cal-choices input { width: 16px; height: 16px; margin: 0; accent-color: #f4b388; }
.cal-lab :focus-visible { outline: 2px solid #afe1d6; outline-offset: 3px; }
.cal-key { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 12px 0 1px; padding: 14px 0 0; border-top: 1px solid #46606b; list-style: none; }
.cal-key li { display: inline-flex; gap: 6px; align-items: center; font-size: .78rem; }
.cal-key-point { width: 8px; height: 8px; border-radius: 50%; background: #afe1d6; }
.cal-key-mean { width: 8px; height: 8px; background: #f4ae81; transform: rotate(45deg); }
.cal-key-ref { width: 13px; border-top: 2px dashed #f2e9d8; }
.cal-lab svg { display: block; width: 100%; max-width: 590px; margin: 5px auto 0; }
.cal-guides path { fill: none; stroke: #415a64; stroke-width: 1; vector-effect: non-scaling-stroke; }
.cal-reference { fill: none; stroke: #f2e9d8; stroke-width: 2; stroke-dasharray: 4 3; }
.cal-points { fill: #afe1d6; }
.cal-mean { fill: #f4ae81; }
.cal-axis { fill: #d3dfdc; font: 11px ui-monospace, monospace; }
.cal-reading { margin: 0 0 8px; font-size: 1rem; line-height: 1.55; }
.cal-details { color: #c7d6d5; font-size: .875rem; }
.cal-details summary { width: fit-content; padding-block: 6px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.cal-details p { margin: 6px 0 0; }
@media (prefers-reduced-motion: no-preference) {
  .cal-points circle { transition: cx .2s ease-out; }
}
