/* Written by the site's build (store/build.py, W331) ahead of the model page's own stylesheet. */
:where(.mp), :where(.mp) :not(button, input, select, textarea, table, hr), :where(.mp) ::before, :where(.mp) ::after { box-sizing: content-box; }
:where(.mp) :is(img, svg) { display: revert; max-width: revert; }
:where(.mp) :is(h1, h2, h3, p) { margin: revert; }
:where(.mp) :is(code, pre) { font-family: revert; }
:where(.mp) .band { display: revert; grid-template-columns: revert; gap: revert; align-items: revert; padding: revert; border-radius: revert; background: revert; }


.mp {
  --paper: #ffffff;
  --surface: #f5f5f7;
  --ink: #1d1d1f;
  --ink-2: #67696c;
  --rule: #d2d2d7;
  --brand: #0070dc;
  --brand-2: #74bff8;
  --navy: #122750;
  --grid: #e2e2e6;
  --grid-minor: #eeeef1;
  --row: #f3f3f5;
  --column-rule: #e3e3e6;
  --cat-1: #0070dc;
  --cat-2: #ed671a;
  --cat-3: #3c9667;
  --cat-4: #5d2ea7;
  --cat-5: #616264;
  --cat-6: #6ba3ec;
  --cat-7: #f99e76;
  --cat-8: #83b999;
  --cat-9: #8e78c8;
  --cat-10: #949496;
  --cat-11: #a5c8f5;
  --cat-12: #fec5ac;
  --cat-13: #b4d5c0;
  --cat-14: #b9addf;
  --cat-15: #bdbdbe;
  --cat-16: #d2e3fb;
  --cat-17: #ffe2d6;
  --cat-18: #d9eadf;
  --cat-19: #dbd5f0;
  --cat-20: #dddede;
  --ordered-1: #74bff8;
  --ordered-2: #0070dc;
  --ordered-3: #1d4a93;
  --ordered-4: #122750;
  --ramp-0: #efeff1;
  --ramp-1: #d8ebfb;
  --ramp-2: #74bff8;
  --ramp-3: #0070dc;
  --ramp-4: #1d4a93;
  --font: "Inter", sans-serif;
}

.bs-table { border-collapse: collapse; width: 100%; font-family: var(--font); font-feature-settings: "tnum";
  color: var(--ink); border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); }
.bs-table th, .bs-table td { padding: 7px 12px; text-align: left; vertical-align: top;
  border-right: 1px solid var(--column-rule); }
.bs-table th:last-child, .bs-table td:last-child { border-right: 0; }
.bs-table th { font-weight: 600; }
.bs-table thead th { vertical-align: bottom; border-bottom: 0.75px solid var(--ink); }
.bs-table tbody tr:nth-child(even) { background: var(--row); }
.bs-table .n { text-align: right; white-space: nowrap; }

html { -webkit-text-size-adjust: 100%; }
.mp { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font);
  font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
:where(.mp) a { color: var(--brand); text-decoration: none; }
:where(.mp) a:hover { text-decoration: underline; text-underline-offset: 2px; }
:where(.mp) a:focus-visible, :where(.mp) button:focus-visible, :where(.mp) input:focus-visible, :where(.mp) summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 2px; }
.n, .mp-facts dd, .mp-table { font-feature-settings: "tnum"; }

.mp { max-width: 1120px; margin: 0 auto; padding: 28px 48px 96px; }
.mp-prose { max-width: 720px; }
.mp-site { font-size: 14px; color: var(--ink-2); margin: 0 0 56px; letter-spacing: 0.01em; }


.mp-kicker { font-size: 14px; font-weight: 600; color: var(--brand); margin: 0 0 8px; }
.mp-head h1 { font-size: 40px; line-height: 1.12; font-weight: 640; letter-spacing: -0.02em; margin: 0 0 18px; max-width: 820px; }
.mp-line { font-size: 21px; line-height: 1.45; margin: 0; max-width: 760px; }
.mp-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 36px 0 0; padding: 0;
  border-top: 1.5px solid var(--ink); border-bottom: 1px solid var(--rule); }
.mp-facts div { display: flex; flex-direction: column-reverse; justify-content: flex-end; padding: 16px 20px 18px 0; }
.mp-facts div + div { padding-left: 20px; border-left: 1px solid var(--column-rule); }
.mp-facts dd { margin: 0; font-size: 34px; line-height: 1.1; font-weight: 600; letter-spacing: -0.01em; }
.mp-facts dt { margin: 6px 0 0; font-size: 14px; line-height: 1.4; color: var(--ink-2); }

.mp-opening { margin: 30px 0 0; }
.mp-why { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, var(--w, 440px)); gap: 40px; align-items: start; margin: 32px 0 0; }
.mp-why > .mp-prose { margin: 0; }
.mp-why > .mp-figure { margin: 0; }
.mp-toc { display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 22px 0 0; padding: 0; list-style: none; font-size: 15px; }


.mp-block { margin-top: 88px; scroll-margin-top: 24px; }
.mp-block > h2 { font-size: 26px; line-height: 1.2; font-weight: 620; letter-spacing: -0.01em; margin: 0 0 14px;
  padding-top: 18px; border-top: 1px solid var(--rule); }
.mp-block h3 { font-size: 17px; font-weight: 600; margin: 36px 0 8px; }
.mp-block > p, .mp-block .mp-prose > p { margin: 0 0 14px; }
.mp-block > .mp-scroll-hint { margin: 8px 0 0; }
.mp-note { font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.mp-block ul { margin: 0 0 14px; padding-left: 1.2em; }

.mp-details { margin: 14px 0 0; max-width: 720px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.mp-details summary { cursor: pointer; color: var(--ink); font-weight: 500; }
.mp-details p { margin: 8px 0 0; }
.mp-block li { margin: 0 0 8px; }


.mp-figure { margin: 28px 0 0; }
.mp-figure img { display: block; width: 100%; height: auto; }
.mp-figure figcaption { font-size: 15px; line-height: 1.5; color: var(--ink-2); margin-top: 10px; max-width: 720px; }
.mp-figure figcaption b { color: var(--ink); font-weight: 600; }

.mp-pair { display: flex; align-items: flex-start; gap: 40px; margin-top: 28px; max-width: 1000px; }
.mp-pair .mp-figure { margin: 0; flex: var(--w, 1) 1 0; min-width: 0; }
.mp-narrow img { max-width: 460px; }

.mp-figure picture { display: block; }
.mp-wide-fig img { max-width: 860px; }
.mp-table-narrow { max-width: 760px; }


.mp-table-wrap { margin: 24px 0 0; overflow-x: auto; }
.mp-table { font-size: 15px; line-height: 1.4; }
.mp-table th { font-size: 14px; }
.mp-table caption { caption-side: bottom; text-align: left; font-size: 14px; color: var(--ink-2); padding-top: 10px; }
.mp-table tbody th { font-weight: 400; }
.mp-table .mp-group th { font-weight: 600; background: var(--paper); padding-top: 16px; border-bottom: 0.75px solid var(--ink); }
.mp-table .mp-weak td.n:nth-last-child(2) { font-weight: 600; }


.mp-recipe { margin: 24px 0 0; overflow-x: auto; }
.mp-recipe svg { display: block; width: 100%; min-width: 900px; height: auto; }
.mp-scroll-hint { display: none; font-size: 14px; color: var(--ink-2); margin: 8px 0 0; }

.mp-recipe text { font-family: var(--font); }
.rc-captions text { font-size: 13.5px; font-weight: 500; fill: var(--ink-2); }
.rc-rule { stroke: var(--rule); stroke-width: 1; }
.rc-band { fill: var(--ink); fill-opacity: 0.055; }
.rc-feed line, .rc-feed path { stroke: var(--ink-2); stroke-width: 1.1; stroke-dasharray: 4 3; fill: none; }
.rc-feed-head { fill: var(--ink-2); }
.rc-feed text { font-size: 11.5px; fill: var(--ink-2); text-anchor: middle; }
.rc-data rect { fill: #e9f1fa; }
.rc-name { font-size: 14px; font-weight: 600; fill: var(--ink); }
.rc-meta { font-size: 12.5px; fill: var(--ink-2); font-feature-settings: "tnum"; }
.rc-bar { fill: var(--ink); }
.rc-wires line { stroke: #545c68; stroke-width: 1.25; }
.rc-wires polygon { fill: #545c68; }
.rc-counts text { font-size: 11.5px; fill: var(--ink-2); text-anchor: middle; font-feature-settings: "tnum"; }
.rc-stage rect, .rc-stage polygon { fill: var(--paper); stroke: #545c68; stroke-width: 1.25; }
.rc-regressor rect { fill: var(--brand); }
.rc-regressor text { fill: #ffffff; }
.rc-regressor .rc-meta { fill-opacity: 0.86; }


.mp-get { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 0; margin: 20px 0 0; border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); }
.mp-get dt, .mp-get dd { margin: 0; padding: 12px 0; border-top: 1px solid var(--column-rule); }
.mp-get dt:first-of-type, .mp-get dd:first-of-type { border-top: 0; }
.mp-get dt { font-weight: 600; font-size: 15px; padding-right: 20px; }
.mp-get dd { font-size: 16px; }
.mp-get blockquote { margin: 8px 0 0; padding-left: 14px; border-left: 2px solid var(--rule); color: var(--ink-2); font-size: 15px; }

.mp-foot { margin-top: 96px; padding-top: 16px; border-top: 1px solid var(--rule); font-size: 14px; color: var(--ink-2); }
.mp-foot p { margin: 0 0 6px; max-width: 720px; }

@media (max-width: 760px) {
  .mp { font-size: 16px; }
  .mp { padding: 18px 16px 72px; }
  .mp-site { margin-bottom: 36px; }
  .mp-head h1 { font-size: 30px; }
  .mp-line { font-size: 18px; }
  .mp-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mp-facts div:nth-child(3) { padding-left: 0; border-left: 0; }
  .mp-facts div:nth-child(n+3) { border-top: 1px solid var(--column-rule); }
  .mp-facts dd { font-size: 27px; }
  .mp-block { margin-top: 64px; }
  .mp-block > h2 { font-size: 22px; }
  .mp-pair { display: block; }
  .mp-pair .mp-figure + .mp-figure { margin-top: 28px; }
  .mp-pair .mp-figure img { width: calc(100% * var(--w, 1) / var(--wmax, var(--w, 1))); max-width: 100%; }
  .mp-scroll-hint { display: block; }
  .mp-recipe svg { min-width: 1180px; }
  .mp-table-wrap .mp-table { min-width: 620px; }
  .mp-table-narrow .mp-table { min-width: 0; }
  .mp-get { grid-template-columns: minmax(0, 1fr); }
  .mp-get dt { padding-bottom: 0; }
  .mp-get dd { border-top: 0; padding-top: 4px; }
  .mp-get dt:first-of-type { border-top: 0; }
}


.mp-recipe-tall { display: none; }

.mp-if-narrow { display: none; }
.mp-recipe-tall svg { min-width: 0; max-width: 336px; }
.mp-recipe-tall .rc-captions text { font-size: 14px; }
.mp-recipe-tall .rc-name { font-size: 14.5px; }
.mp-recipe-tall .rc-meta, .mp-recipe-tall .rc-counts text, .mp-recipe-tall .rc-feed text { font-size: 13.5px; }
@media screen and (max-width: 1019px) {
  .mp-figure picture img { max-width: var(--wn, 100%); }
  .mp-pair .mp-figure { flex: 1 1 0; }
  .mp-pair .mp-figure picture img { width: 100%; max-width: var(--wn, 100%); }
  .mp-recipe-wide, .mp-recipe-wide + .mp-scroll-hint { display: none; }
  .mp-recipe-tall { display: block; }
  .mp-if-wide { display: none; }
  .mp-if-narrow { display: inline; }
  .mp-why { grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: 32px; }
}


@media screen and (max-width: 760px) {
  .mp-why { display: block; }
  .mp-why > .mp-figure { margin-top: 20px; }
}

@media print {
  .mp { max-width: none; padding: 0; }
  .mp-block { break-inside: auto; margin-top: 36px; }
  .mp-figure, .mp-table-wrap, .mp-recipe { break-inside: avoid; }
  .mp-recipe { overflow: visible; }
  .mp-recipe svg { min-width: 0; }
  .mp-scroll-hint, .mp-toc { display: none; }
  .mp-details > :not(summary) { display: block; }
  :where(.mp) a { color: var(--ink); }
}

.mv { margin-top: 20px; }
.mv.is-failed .mv-body { display: none; }
.mv .mv-status { font-size: 15px; color: var(--ink-2); margin: 0 0 10px; }
.mv-status[hidden], .mv [hidden] { display: none !important; }
.mv-body { border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); padding: 18px 0 22px; }
.mv-num, .mv-readouts dd, .mv-key-ends, .mv-row output, .mv-showing, .mv-chips button, .mv-line text { font-feature-settings: "tnum"; }

.mv button { font: 500 14px/1.2 var(--font); color: var(--ink); background: var(--paper); cursor: pointer;
  border: 1px solid var(--rule); border-radius: 999px; padding: 7px 12px; min-height: 34px; }
.mv button:hover { border-color: var(--ink-2); }

.mv button[aria-pressed="true"] { border-color: var(--brand); color: #005fbf; background: #eef5fd; }
.mv-seg { display: inline-grid; grid-template-columns: 1fr 1fr; background: var(--surface); border-radius: 999px; padding: 3px; }
.mv .mv-seg button { border: 0; background: transparent; padding: 7px 18px; }
.mv .mv-seg button[aria-pressed="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 0 0 1px var(--rule); }

.mv-h { font-size: 14px; font-weight: 600; margin: 20px 0 8px; }
.mv-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mv .mv-showing { font-size: 16px; line-height: 1.45; margin: 26px 0 16px; }
.mv-showing b { font-weight: 600; }
.mv-showing span { color: var(--ink-2); }

.mv-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 12px;
  grid-template-areas: "cfd pred diff" "heat heat dk"; }
.mv-a-cfd { grid-area: cfd; } .mv-a-pred { grid-area: pred; } .mv-a-diff { grid-area: diff; }
.mv-a-heat { grid-area: heat; } .mv-a-dk { grid-area: dk; }
.mv-pane { margin: 0; min-width: 0; }
.mv-pane figcaption { font-size: 14px; font-weight: 600; margin: 0 0 4px; }
.mv-port { position: relative; aspect-ratio: 1 / 1; background: var(--paper); border: 1px solid var(--column-rule); }
.mv-port canvas { display: block; width: 100%; height: 100%; touch-action: pan-y; cursor: grab; }
.mv-port canvas:active { cursor: grabbing; }
.mv-port canvas:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }

.mv-key { min-width: 0; }
.mv-key-label { font-size: 13px; color: var(--ink-2); margin-bottom: 4px; }
.mv-bar { height: 10px; border: 0.7px solid var(--ink); }
.mv-key-ends { position: relative; height: 18px; font-size: 13px; color: var(--ink-2); margin-top: 3px; }
.mv-key-ends span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.mv-key-ends span:first-child { transform: none; }
.mv-key-ends span:last-child { transform: translateX(-100%); }
.mv-key-ends span::before { content: ""; position: absolute; left: 50%; top: -6px; width: 0.7px; height: 5px; background: var(--ink); }
.mv-key-ends span:first-child::before { left: 0; }
.mv-key-ends span:last-child::before { left: auto; right: 0; }

.mv-readouts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 20px; margin: 18px 0 0; padding: 12px 0;
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.mv-readouts div { display: grid; gap: 2px; align-content: start; min-width: 0; }
.mv-readouts dt { font-size: 13px; line-height: 1.35; color: var(--ink-2); }
.mv-readouts dd { margin: 0; font-size: 19px; font-weight: 600; }
.mv-readouts dd span { font-size: 13px; font-weight: 400; color: var(--ink-2); }

.mv .mv-warning { margin: 26px 0 22px; padding: 2px 0 2px 14px; border-left: 3px solid var(--ink); font-size: 16px; line-height: 1.5; max-width: 760px; }
.mv-warning b { font-weight: 600; }
.mv-sweep-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.mv-solo .mv-port { aspect-ratio: 1 / 1; }
.mv-row { display: grid; grid-template-columns: 112px minmax(0, 1fr) 76px; align-items: center; gap: 12px; font-size: 15px; margin: 0 0 10px; }
.mv-row label { font-weight: 500; }
.mv-row input[type="range"] { width: 100%; accent-color: var(--brand); margin: 0; min-height: 28px; }
.mv-row output { text-align: right; font-weight: 600; }
.mv .mv-shape { font-size: 15px; line-height: 1.5; color: var(--ink-2); margin: 14px 0 0; }
.mv-sweep-grid .mv-readouts { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.mv-line { margin: 24px 0 0; }
.mv-line svg { display: block; width: 100%; max-width: 760px; height: auto; }
.mv-line text { font: 11px var(--font); fill: var(--ink-2); }
.mv-line text.label { font-size: 12px; fill: var(--ink); }
.mv-line svg.mv-line-compact text { font-size: 13px; }
.mv-line .grid { stroke: var(--grid); stroke-width: 0.6; }
.mv-line .tick, .mv-line .frame { stroke: var(--ink); stroke-width: 0.8; fill: none; }
.mv-line .zero { stroke: var(--rule); stroke-width: 0.8; }
.mv-line .band { fill: #d2e3fb; }
.mv-line .cfd { fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-linejoin: round; }
.mv-line .pred { fill: none; stroke: var(--brand); stroke-width: 1.4; stroke-dasharray: 5.2 2.9; stroke-linejoin: round; }
.mv .mv-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; font-size: 14px; color: var(--ink-2); margin: 6px 0 0; }
.mv-legend span { display: inline-flex; align-items: center; gap: 7px; }
.mv-legend i { display: inline-block; width: 22px; height: 0; border-top: 1.6px solid var(--ink); }
.mv-legend i.pred { border-top: 1.6px dashed var(--brand); }
.mv-legend i.band { height: 10px; border: 0; background: #d2e3fb; }
.mv-line figcaption { font-size: 14px; line-height: 1.5; color: var(--ink-2); margin-top: 8px; max-width: 760px; }

.mv-help { font-size: 14px; color: var(--ink-2); margin-top: 18px; }
.mv-help summary { cursor: pointer; color: var(--ink); font-weight: 500; }
.mv .mv-help p { margin: 8px 0 0; line-height: 1.5; max-width: 760px; }

@media (max-width: 760px) {
  .mv-trio { grid-template-columns: minmax(0, 1fr); gap: 10px; grid-template-areas: "cfd" "pred" "heat" "diff" "dk"; }
  .mv-a-heat, .mv-a-dk { margin-bottom: 14px; }
  .mv-trio .mv-port { aspect-ratio: 4 / 3; }
  .mv-readouts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mv-sweep-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .mv-row { grid-template-columns: 104px minmax(0, 1fr) 64px; gap: 10px; }
  .mv .mv-seg button { padding: 7px 12px; }
}
@media print { .mv-seg, .mv-chips, .mv-help, .mv-row input { display: none; } }

.mo { margin: 30px 0 0; display: grid; grid-template-columns: minmax(0, 1fr); }

.mo > .mo-status, .mo > .mo-body { grid-area: 1 / 1; }
.mo > .mo-status { align-self: start; z-index: 1; }

.mo > .mo-status:not([hidden]) ~ .mo-body { visibility: hidden; }
.mo.is-failed .mo-body { display: none; }
.mo .mo-status { font-size: 15px; color: var(--ink-2); margin: 0; }
.mo-status[hidden] { display: none; }
.mo-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin: 0 0 10px; }
.mo-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

.mo .mo-note { flex: 1 0 100%; font-size: 14px; line-height: 1.45; color: var(--ink-2); margin: 0; min-height: 1.45em; }
.mo-seg { display: inline-grid; grid-template-columns: repeat(3, auto); background: var(--surface); border-radius: 999px; padding: 3px; }
.mo-seg button { font: 500 14px/1.2 var(--font); color: var(--ink); background: transparent; cursor: pointer; border: 0;
  border-radius: 999px; padding: 7px 16px; min-height: 34px; }
.mo-seg button[aria-pressed="true"] { background: var(--paper); color: #005fbf; box-shadow: 0 0 0 1px var(--brand); }
.mo-reset { font: 500 14px/1.2 var(--font); color: var(--ink); background: var(--paper); cursor: pointer;
  border: 1px solid var(--rule); border-radius: 999px; padding: 7px 14px; min-height: 40px; white-space: nowrap; }
.mo-reset:hover { border-color: var(--ink-2); }
.mo-reset:focus-visible, .mo-seg button:focus-visible, .mo-at-case:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.mo-main { display: grid; grid-template-columns: minmax(0, 600px) 300px; justify-content: space-between; gap: 32px; align-items: start; }

.mo-view { max-width: min(600px, calc(100svh - 200px)); }
.mo-stage { position: relative; aspect-ratio: 1 / 1; }
.mo-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; cursor: grab; }
.mo-stage canvas:active { cursor: grabbing; }
.mo-stage canvas:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.mo-scale { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); pointer-events: none; }
.mo-scale-bar { flex: none; display: block; height: 6px; border: 1px solid var(--ink); border-top: 0; }
.mo .mo-h { font-size: 14px; font-weight: 600; margin: 0 0 2px; }
.mo .mo-tracks { font-size: 13px; color: var(--ink-2); margin: 0 0 8px; }
.mo-inputs { margin: 0; display: grid; gap: 6px; }
.mo-inputs div { display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: center; gap: 2px 10px; }
.mo-inputs dt { font-size: 13px; color: var(--ink-2); }
.mo-inputs dd { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) 62px; align-items: center; gap: 8px; }

.mo-track { position: relative; height: 1px; background: var(--rule); }
.mo-dot { position: absolute; top: 50%; width: 2px; height: 10px; margin: -5px 0 0 -1px; background: var(--ink-2); }
.mo-value { font-size: 14px; font-weight: 600; color: var(--ink); text-align: right; font-feature-settings: "tnum"; white-space: nowrap; }
.mo-inputs .is-outside .mo-dot { background: var(--ink); width: 3px; }

.mo .mo-at { margin: 12px 0 0; font-size: 14px; color: var(--ink-2); height: 60px; display: flex; align-items: center; }
.mo-at [hidden] { display: none; }
.mo-at-case { font: 500 14px/1.2 var(--font); color: #005fbf; background: #eef5fd; border: 1px solid var(--brand);
  border-radius: 999px; padding: 7px 12px; min-height: 36px; cursor: pointer; text-align: left; }
.mo-peak { margin: 8px 0 0; }
.mo-peak dt { font-size: 13px; color: var(--ink-2); }
.mo-peak dd { margin: 0; font-size: 18px; font-weight: 600; font-feature-settings: "tnum"; }
.mo-key { margin: 12px 0 0; }
.mo-key.is-off { visibility: hidden; }
.mo-key-label { font-size: 13px; line-height: 1.4; color: var(--ink-2); margin-bottom: 4px; min-height: 4.2em; }
.mo-bar { height: 10px; border: 0.7px solid var(--ink); }
.mo-key-ends { position: relative; height: 18px; font-size: 13px; color: var(--ink-2); margin-top: 3px; font-feature-settings: "tnum"; }
.mo-key-ends span { position: absolute; top: 0; white-space: nowrap; }
.mo-key-ends span:last-child { transform: translateX(-100%); }
.mo-key-ends span::before { content: ""; position: absolute; left: 0; top: -6px; width: 0.7px; height: 5px; background: var(--ink); }
.mo-key-ends span:last-child::before { left: auto; right: 0; }

.mo-nav { margin: 0 0 12px; --mo-thumb-half: 11px; }
.mo-nav-label { display: block; font-size: 17px; font-weight: 600; color: var(--ink); margin: 0 0 6px; }
.mo-nav-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.mo-step { font: 500 14px/1.2 var(--font); color: var(--ink); background: var(--paper); cursor: pointer; white-space: nowrap;
  border: 1px solid var(--rule); border-radius: 999px; padding: 7px 14px; min-height: 40px; }
.mo-step:hover:not([aria-disabled="true"]) { border-color: var(--ink-2); }

.mo-step[aria-disabled="true"] { color: var(--ink-2); background: var(--surface); cursor: default; }
.mo-step:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.mo-path { position: relative; }
.mo-path input { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 36px; margin: 0; background: transparent; cursor: pointer; }
.mo-path input::-webkit-slider-runnable-track { height: 8px; background: #d2e3fb; border-radius: 4px; }
.mo-path input::-moz-range-track { height: 8px; background: #d2e3fb; border-radius: 4px; }
.mo-path input::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 22px; height: 22px; margin-top: -7px; border: 2px solid var(--paper); border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.mo-path input::-moz-range-thumb { width: 18px; height: 18px; border: 2px solid var(--paper); border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.mo-path input:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.mo-ticks { position: relative; height: 8px; margin-top: -6px; pointer-events: none; }
.mo-ticks span { position: absolute; top: 0; width: 1.5px; height: 8px; margin-left: -0.75px; background: var(--ink-2); }

.mo-vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.mo .mo-where { margin: 6px 0 0; font-size: 15px; color: var(--ink); font-feature-settings: "tnum"; }
.mo figcaption { font-size: 15px; line-height: 1.5; color: var(--ink-2); margin-top: 14px; max-width: 720px; }
.mo figcaption b { color: var(--ink); font-weight: 600; }

@media screen and (min-width: 1020px) {
  .mo-main { row-gap: 0; }
  .mo-view { display: contents; }
  .mo-stage { grid-column: 1; grid-row: 1 / span 2; width: 100%; max-width: min(600px, calc(100svh - 200px)); }
  .mo-nav { grid-column: 2; grid-row: 1; margin: 0 0 20px; }
  .mo-side { grid-column: 2; grid-row: 2; }
  .mo-nav-row { grid-template-areas: "path path path" "prev . next"; row-gap: 4px; }
  .mo-nav-row .mo-path { grid-area: path; }
  #mo-prev { grid-area: prev; }
  #mo-next { grid-area: next; }
}
@media screen and (max-width: 1019px) {
  .mo-main { grid-template-columns: minmax(0, 1fr) 260px; gap: 24px; }
}
@media screen and (max-width: 760px) {
  .mo-main { display: block; }
  .mo .mo-note { min-height: 2.9em; }      
  .mo-side { margin-top: 16px; }
  .mo-inputs { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 16px; }
  .mo-inputs div { grid-template-columns: minmax(0, 1fr); }
  .mo-inputs dd { grid-template-columns: minmax(0, 1fr) auto; }
  
  .mo-controls { flex-wrap: nowrap; gap: 8px; }
  .mo-seg button { padding: 7px 8px; }
  .mo-reset { padding: 7px 8px; }
  
  .mo-nav-row { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "path path path" "prev . next"; row-gap: 4px; }
  .mo-nav-row .mo-path { grid-area: path; }
  #mo-prev { grid-area: prev; }
  #mo-next { grid-area: next; }
}

@media print { .mo-controls, .mo-nav-row, .mo-nav-label { display: none; } .mo-stage { aspect-ratio: auto; } .mo-stage canvas { position: static; height: auto; } }
