@font-face {
  font-family: Lab;
  src: local("Inter"), local("Segoe UI"), local("Arial");
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: #243b3c;
  background: #f5f6f2;
  font-family:
    Lab,
    system-ui,
    -apple-system,
    sans-serif;
  font-size: 14px;
  line-height: 1.55;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select,
summary {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.4;
}
a {
  color: #166760;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button,
input,
select {
  outline-offset: 4px;
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 2px solid #00796e;
}
.hidden {
  display: none !important;
}
.site-header {
  min-height: 80px;
  background: #fcfdf9;
  border-bottom: 1px solid #dde4dd;
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 18px max(28px, calc((100vw - 1520px) / 2));
  position: sticky;
  top: 0;
  z-index: 30;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #17665e;
  font-size: 19px;
  font-weight: 750;
  letter-spacing: -0.6px;
  white-space: nowrap;
}
.brand:hover {
  text-decoration: none;
}
.brand svg {
  width: 36px;
  height: 36px;
}
.brand-light {
  font-weight: 450;
  font-size: 12px;
  letter-spacing: 1px;
}
.site-header nav {
  display: flex;
  gap: 26px;
  margin: auto;
}
.site-header nav a {
  font-size: 13px;
  color: #66716a;
  padding: 8px 0;
}
.site-header nav a.active {
  color: #17665e;
  font-weight: 700;
  border-bottom: 2px solid #17665e;
}
.research-tag {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #6b7a70;
  display: flex;
  gap: 8px;
  align-items: center;
  white-space: nowrap;
}
.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #268e73;
  border-radius: 50%;
  margin-right: 5px;
}
.skip {
  position: absolute;
  top: -100px;
  background: white;
  padding: 10px;
  z-index: 100;
}
.skip:focus {
  top: 5px;
}
main {
  max-width: 1520px;
  margin: 0 auto;
  padding: 40px 28px 70px;
}
.page-title {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 30px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.7px;
  font-weight: 650;
  color: #789087;
  margin: 0 0 9px;
  text-transform: uppercase;
}
h1 {
  font-size: clamp(28px, 2.6vw, 40px);
  line-height: 1.18;
  letter-spacing: -1.5px;
  font-weight: 560;
  margin: 0 0 12px;
}
h2 {
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.3px;
  margin: 0;
}
h3 {
  font-size: 17px;
  margin: 0 0 5px;
  letter-spacing: -0.3px;
}
.intro {
  max-width: 680px;
  font-size: 14px;
  color: #6c7d73;
  margin: 0;
  line-height: 1.7;
}
.text-link {
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}
.lab-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 24px;
}
.rhythm-switch {
  display: flex;
  gap: 5px;
  padding: 5px;
  background: #e9eee7;
  border-radius: 9px;
}
.rhythm-switch button {
  border: 0;
  background: transparent;
  padding: 10px 18px;
  font-weight: 700;
  font-size: 13px;
  color: #778278;
  border-radius: 6px;
}
.rhythm-switch button span {
  font-size: 10px;
  font-weight: 400;
  margin-left: 5px;
}
.rhythm-switch button.selected {
  background: #17675e;
  color: #fff;
  box-shadow: 0 2px 4px #163d3320;
}
.model-select {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 11px;
  color: #6d7c72;
}
select {
  border: 1px solid #dce4db;
  border-radius: 5px;
  background: #fff;
  color: #3a5148;
  padding: 7px 9px;
  max-width: 100%;
}
.lab-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.control-panel,
.signal-card {
  background: #fcfdf9;
  border: 1px solid #dde5dc;
  border-radius: 12px;
  box-shadow: 0 3px 12px #25463503;
}
.control-panel {
  position: sticky;
  top: 104px;
  max-height: calc(100vh - 130px);
  overflow-y: auto;
  padding: 22px 19px 0;
  scrollbar-width: thin;
}
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.count {
  font-size: 10px;
  background: #edf2eb;
  color: #6a8070;
  border-radius: 4px;
  padding: 2px 6px;
}
.panel-hint {
  font-size: 11px;
  color: #859087;
  line-height: 1.7;
  margin: 8px 0 16px;
}
.search {
  display: flex;
  border: 1px solid #dce4db;
  background: white;
  border-radius: 6px;
  align-items: center;
  padding: 0 9px;
  gap: 7px;
  color: #729081;
}
.search input {
  border: 0;
  min-width: 0;
  width: 100%;
  padding: 9px 0;
  background: transparent;
  font-size: 12px;
  outline: 0;
}
.preset-line {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 13px 0 18px;
}
.preset-line label {
  display: flex;
  gap: 8px;
  font-size: 11px;
  align-items: center;
  flex: 1;
}
.preset-line select {
  width: 100%;
  font-size: 11px;
}
.icon-button {
  border: 1px solid #dce4db;
  background: white;
  border-radius: 5px;
  padding: 5px 9px;
  color: #56766a;
  font-size: 18px;
}
.control-group {
  border-top: 1px solid #e4e9e1;
  padding: 14px 0;
}
.control-group summary {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
}
.control-group summary::after {
  content: "⌄";
  color: #9ba79b;
}
.control-group[open] summary {
  margin-bottom: 16px;
}
.field {
  margin: 0 0 20px;
}
.field:last-child {
  margin-bottom: 2px;
}
.field-head {
  display: flex;
  gap: 7px;
  align-items: center;
  justify-content: space-between;
}
.field-head label {
  font-size: 11px;
  font-weight: 600;
  min-width: 0;
}
.field-value {
  font-family: ui-monospace, monospace;
  font-size: 11px;
  color: #17675e;
  white-space: nowrap;
}
.field input[type="range"] {
  width: 100%;
  height: 4px;
  accent-color: #207d70;
  margin: 13px 0 7px;
  cursor: pointer;
}
.range-caption {
  display: flex;
  justify-content: space-between;
  color: #96a094;
  font-size: 9px;
}
.field-note {
  font-size: 10px;
  color: #8a988a;
  margin: 5px 0 0;
  line-height: 1.6;
}
.field-number {
  width: 72px;
  border: 1px solid #dce4db;
  border-radius: 4px;
  padding: 3px 5px;
  color: #256758;
  background: #fff;
  font-size: 11px;
  text-align: right;
}
.field-row {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 7px;
  font-size: 10px;
}
.field-validation {
  color: #963c25;
  font-size: 11px;
  line-height: 1.5;
  margin: 6px 0;
}
[aria-invalid="true"] {
  outline: 2px solid #ad4930;
}
.reference-differences {
  overflow-wrap: anywhere;
  padding-left: 18px;
  line-height: 1.6;
}
.auto-toggle {
  color: #7b8d7b;
  font-size: 10px;
  display: flex;
  align-items: center;
  gap: 3px;
}
.auto-toggle input {
  accent-color: #187766;
}
.field select {
  width: 100%;
  font-size: 10px;
  margin-top: 7px;
}
.field.checkbox label {
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 11px;
}
.field.checkbox input {
  accent-color: #207d70;
}
.field code {
  font-size: 9px;
  color: #7a8e7e;
}
.field.inactive {
  opacity: 0.62;
}
.panel-footnote {
  display: block;
  padding: 16px 0;
  border-top: 1px solid #e4e9e1;
  font-size: 10px;
}
.signal-workspace {
  min-width: 0;
}
.signal-card {
  padding: 22px 24px;
}
.signal-heading {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 15px;
}
.signal-heading .eyebrow {
  font-size: 9px;
}
.signal-heading h2 {
  font-size: 18px;
  font-weight: 550;
}
.pill {
  font-size: 9px;
  letter-spacing: 1px;
  padding: 4px 8px;
  vertical-align: middle;
  border: 1px solid #d5e6db;
  background: #edf5eb;
  color: #548365;
  border-radius: 4px;
  margin-left: 8px;
}
.signal-heading #status {
  font-size: 10px;
  color: #7c8b7b;
  text-align: right;
}
.signal-heading #status.busy {
  color: #aa8140;
}
.signal-heading #status.error {
  color: #bc5353;
}
.busy .dot {
  background: #caa158;
  animation: blink 1.2s ease-in-out infinite;
}
@keyframes blink {
  50% {
    opacity: 0.25;
  }
}
.plot-toolbar {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  border-top: 1px solid #e9eee6;
  padding: 12px 0;
  font-size: 10px;
  color: #8a9787;
}
.plot-toolbar label {
  display: flex;
  gap: 5px;
  align-items: center;
}
.plot-toolbar input {
  accent-color: #207d70;
}
.subtle-button {
  background: #f2f5ef;
  border: 1px solid #e1e8dd;
  border-radius: 4px;
  font-size: 10px;
  color: #738670;
  padding: 5px 8px;
}
.zoom-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.zoom-controls output {
  font-variant-numeric: tabular-nums;
}
.zoom-controls button {
  min-height: 44px;
  min-width: 44px;
}
.zoom-controls .zoom-step {
  font-size: 20px;
  line-height: 1;
}
.plots {
  position: relative;
}
.plots canvas,
.mini-plot canvas {
  display: block;
  width: 100%;
  height: 270px;
  touch-action: none;
}
.mini-plot canvas {
  height: 120px;
}
.mini-plot {
  position: relative;
  margin-top: 13px;
}
.plot-tooltip {
  position: absolute;
  pointer-events: none;
  background: #1a4940ed;
  color: white;
  font-size: 10px;
  padding: 7px 9px;
  border-radius: 5px;
  box-shadow: 0 2px 8px #0002;
  max-width: 200px;
  z-index: 5;
  white-space: pre-line;
}
.empty-plot {
  height: 270px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 49px,
    #edf1e947px,
    #edf1e950px
  );
  color: #93a38f;
  font-size: 12px;
}
.empty-plot svg {
  width: 90%;
  height: 90px;
  fill: none;
  stroke: #b4d2c4;
  stroke-width: 1.5;
}
.empty-plot p {
  margin: 15px 0 0;
}
.empty-plot small {
  font-size: 9px;
  color: #a4b29c;
}
.plot-legend {
  display: flex;
  gap: 18px;
  font-size: 9px;
  align-items: center;
  color: #769078;
  border-top: 1px solid #eef1e9;
  padding-top: 10px;
  flex-wrap: wrap;
}
.legend-symbol {
  font-size: 14px;
  line-height: 1;
}
.plot-legend span {
  display: flex;
  gap: 5px;
  align-items: center;
}
.legend-line {
  height: 2px;
  width: 18px;
  background: #176e64;
  display: inline-block;
}
.legend-dot {
  height: 5px;
  width: 5px;
  border-radius: 50%;
  background: #3d9882;
  display: inline-block;
}
.legend-hint {
  margin-left: auto;
  font-size: 8px;
}
.run-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-end;
  font-size: 9px;
  color: #9aa78f;
  margin-top: 12px;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}
.metric {
  border: 1px solid #e1e7dc;
  background: #fbfcf7;
  border-radius: 9px;
  padding: 17px 18px;
}
.metric > span {
  font-size: 9px;
  color: #889784;
  display: block;
  margin-bottom: 8px;
}
.metric strong {
  font-size: 25px;
  letter-spacing: -1px;
  font-weight: 500;
  color: #275f50;
}
.metric small {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0;
  color: #8d9d85;
  margin-left: 3px;
}
.analysis-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 18px;
}
.compact {
  padding: 20px;
}
.compact .eyebrow {
  font-size: 8px;
  margin: 0;
}
.compact h2 {
  font-size: 13px;
}
.compact p {
  font-size: 11px;
  color: #8b9a83;
  margin: 12px 0;
  line-height: 1.8;
}
.export-actions {
  display: flex;
  gap: 7px;
  margin: 16px 0;
}
.export-actions button,
.config-actions button,
.file-button {
  border: 1px solid #dce5d6;
  background: #f1f5eb;
  padding: 8px 10px;
  font-size: 10px;
  border-radius: 5px;
  color: #527354;
  display: inline-block;
  cursor: pointer;
}
.config-actions {
  display: flex;
  gap: 7px;
  border-top: 1px solid #e8ede3;
  padding-top: 13px;
}
.config-actions button,
.file-button {
  background: transparent;
  color: #8b9d80;
  font-size: 9px;
  padding: 5px 8px;
}
.file-button input {
  display: none;
}
#warnings {
  font-size: 10px;
  color: #9f7135;
  line-height: 1.7;
  margin-top: 10px;
}
.reference-info {
  font-size: 10px;
  color: #aa894c;
  margin-top: 9px;
}
.resource-card {
  margin-top: 18px;
}
.resource-card summary {
  font-size: 12px;
  cursor: pointer;
}
.resource-card summary span {
  font-size: 9px;
  color: #889c7c;
  float: right;
}
.resource-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.resource-card, .resource-body, .resource-section, .fit-coefficients,
.resource-section > *, .fit-coefficients > * {
  min-width: 0;
  max-width: 100%;
}
.resource-section p {
  overflow-wrap: anywhere;
}
.resource-section label {
  font-size: 11px;
  display: block;
  margin: 10px 0;
}
.resource-section select {
  width: 100%;
  font-size: 11px;
}
.resource-section textarea {
  width: 100%;
  min-height: 120px;
  font-family: ui-monospace, monospace;
  font-size: 10px;
  border: 1px solid #dce5d6;
  border-radius: 5px;
  padding: 8px;
  background: white;
  color: #58715a;
}
.resource-section h3 {
  font-size: 13px;
}
.resource-section p {
  font-size: 10px;
  color: #84957c;
}
.fit-coefficients {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px 12px;
}
.fit-coefficients label {
  font-size: 10px;
}
.fit-coefficients input {
  width: 100%;
  accent-color: #187766;
}
.matrix-editor {
  overflow: auto;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  max-height: 320px;
}
.matrix-table {
  border-collapse: collapse;
  font-size: 10px;
  width: 100%;
}
.matrix-table th,
.matrix-table td {
  padding: 3px;
  border-bottom: 1px solid #e8ede1;
}
.matrix-table input {
  width: 68px;
  font-size: 10px;
  border: 1px solid #dde7d5;
  padding: 3px;
  background: #fff;
}
.resource-message {
  font-size: 10px;
  color: #b47638;
}
.method-teaser {
  margin-top: 22px;
  padding: 24px 2px;
  display: flex;
  gap: 20px;
  align-items: center;
  border-top: 1px solid #dce5d5;
}
.step-num {
  font-family: ui-monospace, monospace;
  font-size: 12px;
  color: #a3b195;
  white-space: nowrap;
}
.method-teaser h3 {
  font-size: 13px;
  font-weight: 600;
}
.method-teaser p {
  font-size: 11px;
  color: #8a9d7d;
  margin: 0;
}
.method-teaser a {
  font-size: 10px;
  white-space: nowrap;
  margin-left: auto;
}
.method-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 850px);
  gap: 40px;
}
.chapter-nav {
  position: sticky;
  top: 110px;
  align-self: start;
  max-height: 75vh;
  overflow: auto;
}
.chapter-nav a {
  display: block;
  font-size: 11px;
  padding: 8px 10px;
  color: #748770;
  border-left: 1px solid #dde6d5;
}
.chapter-nav a:hover {
  background: #edf3e7;
  color: #176e64;
  text-decoration: none;
}
.chapter {
  scroll-margin-top: 105px;
  margin-bottom: 22px;
  padding: 30px;
  background: #fcfdf9;
  border: 1px solid #dde5dc;
  border-radius: 10px;
}
.chapter h2 {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.8px;
  margin: 5px 0 14px;
}
.chapter h3 {
  font-size: 14px;
  margin: 22px 0 8px;
}
.chapter p,
.chapter li {
  font-size: 13px;
  line-height: 1.9;
  color: #637d62;
}
.chapter .formula {
  font-family: ui-monospace, monospace;
  color: #1d6d59;
  background: #edf4e7;
  border-left: 3px solid #7eac87;
  padding: 14px 18px;
  overflow: auto;
  font-size: 12px;
  white-space: pre-wrap;
}
.chapter .limitations {
  background: #faf5e8;
  border-radius: 5px;
  padding: 12px 18px;
  font-size: 11px;
  color: #9b814e;
}
.chapter .parameter-links {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.parameter-link {
  border: 1px solid #dce7d3;
  background: #f2f7ed;
  color: #557755;
  border-radius: 4px;
  font-family: ui-monospace, monospace;
  font-size: 10px;
  padding: 5px 7px;
  cursor: pointer;
}
.source-links {
  font-size: 10px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.source-links a {
  display: block;
}
.pipeline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  background: #183f37;
  color: #e5edda;
  padding: 25px;
  border-radius: 12px;
  margin-bottom: 28px;
}
.pipeline span {
  font-size: 11px;
  padding: 9px 12px;
  border: 1px solid #467063;
  border-radius: 5px;
}
.catalog-search {
  max-width: 600px;
  margin-bottom: 20px;
}
.catalog-group h2 {
  font-size: 17px;
  margin: 28px 0 12px;
}
.catalog-item {
  padding: 18px 20px;
  border: 1px solid #dfe6d9;
  border-radius: 8px;
  background: #fcfdf9;
  margin-bottom: 9px;
  display: grid;
  grid-template-columns: 210px 1fr 260px;
  gap: 20px;
}
.catalog-item h3 {
  font-size: 13px;
  margin-bottom: 3px;
}
.catalog-item code {
  font-size: 10px;
  color: #82977c;
}
.catalog-item p {
  font-size: 12px;
  margin: 0;
  color: #74896e;
  line-height: 1.8;
}
.catalog-defaults {
  font-family: ui-monospace, monospace;
  font-size: 9px;
  line-height: 1.8;
  color: #7b9074;
  overflow-wrap: anywhere;
}
.repro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}
.prose h2 {
  margin: 20px 0 10px;
}
.prose h2:first-child {
  margin-top: 0;
}
.prose p {
  font-size: 13px;
  color: #73896d;
  line-height: 1.9;
}
pre {
  font-size: 10px;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #f0f4e9;
  border-radius: 5px;
  padding: 15px;
  color: #54724d;
  max-height: 700px;
  overflow: auto;
}
footer {
  border-top: 1px solid #dee6d7;
  max-width: 1464px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 23px 0;
  color: #8d9c82;
  font-size: 10px;
}
.footer-divider {
  padding: 0 9px;
  color: #c4cfbb;
}
.error-box {
  border: 1px solid #ecd9bc;
  background: #fdf8ec;
  color: #a77436;
  border-radius: 6px;
  padding: 10px 14px;
  margin: 10px 0;
  font-size: 11px;
}
.loading {
  font-size: 12px;
  color: #859980;
}
.fit-plot {
  width: 100%;
  height: 120px;
}
.source-code {
  max-height: 450px;
}
.formula math {
  font-size: 16px;
}
@media (min-width: 1800px) {
  main {
    padding-top: 48px;
  }
}
@media (max-width: 1100px) {
  .site-header {
    gap: 18px;
    padding: 16px 24px;
  }
  .site-header nav {
    gap: 18px;
  }
  .research-tag {
    display: none;
  }
  .lab-grid {
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 18px;
  }
  .rhythm-switch button {
    padding: 9px 11px;
  }
  .rhythm-switch button span {
    display: none;
  }
  .signal-card {
    padding: 18px;
  }
  .analysis-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .metric-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .catalog-item {
    grid-template-columns: 170px 1fr;
  }
  .catalog-defaults {
    grid-column: 1/-1;
  }
  .method-layout {
    grid-template-columns: 180px 1fr;
    gap: 20px;
  }
  .lab-toolbar {
    align-items: end;
  }
}
@media (max-width: 760px) {
  .site-header {
    position: static;
    flex-wrap: wrap;
    gap: 10px;
    padding: 15px 18px;
  }
  .site-header nav {
    width: 100%;
    gap: 20px;
    margin: 0;
    overflow-x: auto;
    white-space: nowrap;
  }
  .site-header nav a {
    font-size: 11px;
  }
  .brand {
    font-size: 18px;
  }
  .brand-light {
    font-size: 10px;
  }
  main {
    padding: 28px 16px 35px;
  }
  .page-title {
    display: block;
    margin-bottom: 22px;
  }
  .page-title .text-link {
    display: inline-block;
    margin-top: 15px;
  }
  .intro {
    font-size: 12px;
  }
  .lab-toolbar {
    flex-wrap: wrap;
    gap: 13px;
  }
  .rhythm-switch {
    width: 100%;
  }
  .rhythm-switch button {
    flex: 1;
    padding: 9px 8px;
  }
  .model-select {
    width: 100%;
    justify-content: space-between;
  }
  .model-select select {
    flex: 1;
    min-width: 0;
  }
  .lab-grid {
    display: flex;
    flex-direction: column-reverse;
  }
  .control-panel {
    position: static;
    max-height: none;
    width: 100%;
  }
  .signal-workspace {
    width: 100%;
  }
  .signal-heading {
    align-items: start;
  }
  .signal-heading h2 {
    font-size: 15px;
  }
  .signal-heading #status {
    max-width: 130px;
    font-size: 9px;
  }
  .plot-toolbar {
    gap: 9px;
    font-size: 9px;
  }
  .subtle-button {
    font-size: 9px;
  }
  .plots canvas {
    height: 240px;
  }
  .plot-legend .legend-hint {
    width: 100%;
    line-height: 1.6;
  }
  .run-summary {
    flex-wrap: wrap;
    justify-content: start;
    gap: 7px 14px;
  }
  .metric {
    padding: 13px;
  }
  .metric strong {
    font-size: 23px;
  }
  .metric-grid {
    gap: 9px;
    margin: 12px 0;
  }
  .export-actions button {
    flex: 1;
    padding: 8px 4px;
    font-size: 9px;
  }
  .resource-card summary span {
    float: none;
    display: block;
    font-size: 9px;
    margin-top: 4px;
  }
  .resource-body {
    grid-template-columns: minmax(0, 1fr);
  }
  .method-teaser {
    align-items: start;
    gap: 10px;
    flex-wrap: wrap;
  }
  .method-teaser > div {
    flex: 1;
  }
  .method-teaser a {
    margin: 0 0 0 70px;
  }
  .method-layout {
    display: block;
  }
  .chapter-nav {
    position: static;
    max-height: none;
    margin-bottom: 25px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
  }
  .chapter-nav a {
    border: 1px solid #dfe7d9;
    border-radius: 4px;
    padding: 5px 8px;
    font-size: 9px;
  }
  .chapter {
    padding: 20px;
  }
  .chapter h2 {
    font-size: 21px;
  }
  .chapter p,
  .chapter li {
    font-size: 12px;
  }
  .catalog-item {
    display: block;
  }
  .catalog-item p {
    margin: 10px 0;
  }
  .catalog-defaults {
    margin-top: 10px;
  }
  .repro-grid {
    grid-template-columns: 1fr;
  }
  footer {
    margin: 0 16px;
    flex-direction: column;
    gap: 5px;
    font-size: 9px;
    padding: 18px 0;
  }
  .pipeline {
    padding: 17px;
    gap: 6px;
  }
  .pipeline span {
    padding: 6px 9px;
    font-size: 10px;
  }
}
