:root { color-scheme: light; background: #faf9f6; color: #252525; }
* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; }
.chart-page { font: 14px/1.5 "Courier New", Courier, monospace; padding: 18px; }
a { color: #173fbe; text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid #173fbe; outline-offset: 3px; }
.chart-heading { max-width: 1400px; margin: 0 auto 10px; }
.chart-heading a { font-size: 12px; }
h1 { margin: 12px 0; font-size: clamp(18px, 3vw, 24px); line-height: 1.3; }
.chart-shell { position: relative; width: 100%; max-width: 1400px; margin: auto; height: max(500px, calc(100svh - 155px)); }
.chart-page-tall .chart-shell { height: max(800px, calc(100svh - 155px)); }
#chart { width: 100% !important; height: 100% !important; }
.chart-source { max-width: 1400px; margin: 12px auto 0; font-size: 11px; color: #65635d; }
#chart-status { padding: 12px; }
.embedded .chart-page { padding: 0; }
.embedded .chart-heading, .embedded .chart-source { display: none; }
.embedded .chart-shell { height: 100vh; min-height: 0; max-width: none; }
.chart-page-bands .chart-shell { min-height: 780px; }
.chart-page .dist-stats-card { width: 290px; max-width: calc(100% - 75px); border-radius: 0; box-shadow: none; background: #faf9f6; font-family: "Courier New", Courier, monospace; }
.chart-page .dist-stats-title { font-size: 16px; }
.chart-page .dist-stats-line, .chart-page .dist-stats-formula, .chart-page .dist-stats-value-inline { font-size: 14px; line-height: 1.4; }
.chart-page .dist-stats-formula-row { flex-wrap: wrap; }
@media (max-width: 560px) {
  .chart-page { padding: 12px 5px; }
  .chart-heading, .chart-source { padding: 0 7px; }
  .chart-page .dist-stats-card { left: 60px; top: 80px; padding: 10px; }
}
