@font-face {
  font-family: "STIX Two Text";
  src: url("assets/stix-two-text-latin-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
.rs-index, .rs-pane, .rs-dialog, .results-evidence-dialog {
  --rs-ink: #182332;
  --rs-muted: #596a7c;
  --rs-blue: #315b9c;
  --rs-line: #d6dee7;
}
.rs-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.results {
  gap: clamp(1.2rem, 2.2vw, 2.1rem);
}
.results .results-stage { flex: none; }
.results .results-pane { position: relative; inset: auto; }
.results :is(.capability-pane, .preservation-pane) {
  height: clamp(36rem, calc(100svh - var(--header-height) - 12rem), 60rem);
}
.rs-groups {
  --rs-inactive-heading: #a7a7a7;
  --rs-inactive-link: #969696;
  display: grid;
  grid-template-columns: minmax(0, 0.93fr) minmax(0, 1.13fr);
  column-gap: clamp(1.5rem, 4vw, 4.25rem);
}
.rs-group {
  --rs-heading-ink: var(--rs-ink);
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: start;
  gap: 0.85rem;
  min-width: 0;
}
.rs-group h2,
.chapter .chapter-title {
  margin: 0;
  font: 400 clamp(1.2rem, 1.9vw, 1.85rem)/1.16 TailHand, Inter, sans-serif;
  letter-spacing: normal;
}
.rs-group h2 {
  max-width: 40ch;
  color: var(--rs-heading-ink);
  text-wrap: balance;
  transition: color 180ms ease;
}
.rs-group-long { --rs-heading-ink: var(--blue); }
.chapter .chapter-title { color: var(--blue); }
.rs-group-long h2 { max-width: 47ch; }
.chapter .chapter-title {
  --title-gap: clamp(0.75rem, 1.35vw, 1.25rem);
  margin-bottom: var(--title-gap);

  translate: 0 calc(0.618034 * (var(--chapter-space) + 100% + var(--title-gap)) - var(--chapter-space) - 50%);
}
.rs-group:not(:has(a[aria-current])) h2 { color: var(--rs-inactive-heading); }
.rs-group h2 a { display: block; }
.rs-group h2 a:is(:hover, :focus-visible) {
  color: var(--rs-heading-ink);
}
.rs-group nav {
  display: flex;
  align-self: end;
  align-items: stretch;
  gap: clamp(0.85rem, 2vw, 2.15rem);
  border-bottom: 1px solid var(--rs-line);
}
.rs-group nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 2.35rem;
  color: var(--rs-inactive-link);
  font-size: clamp(0.75rem, 0.99vw, 0.94rem);
  font-weight: 500;
  line-height: 1.32;
  text-decoration: none;
}
.rs-group nav a[aria-current] { color: var(--rs-ink); }
.rs-group nav a:not([aria-current]):is(:hover, :focus-visible) {
  color: var(--rs-muted);
}
.rs-group nav a[aria-current]::after {
  content: "";
  position: absolute;
  height: 2px;
  background: var(--rs-blue);
  left: 0; right: 0; bottom: -1px;
}
@media (prefers-contrast: more) {
  .rs-groups {
    --rs-inactive-heading: #686868;
    --rs-inactive-link: #686868;
  }
}
.rs-select select {
  min-width: 0;
  max-width: 100%;
  border: 0;
  border-radius: 0;
  color: var(--rs-ink);
  background-color: transparent;
  font: inherit;
  cursor: pointer;
}
.rs-pane :is(a, button, input, select):focus-visible, .rs-index a:focus-visible,
.rs-dialog :is(button, input):focus-visible {
  outline: 2px solid var(--rs-blue);
  outline-offset: 3px;
}
.rs-pane :is(p,h3,h4,figure), .rs-dialog :is(h2,p,figure) { margin: 0; }
.rs-pane button, .rs-dialog button { font: inherit; cursor: pointer; }
.rs-module-bar, .rs-case-bar, .rs-flow-controls, .rs-inputs-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
}
.rs-module-bar a, .rs-text-action {
  display: inline-flex; align-items: center; gap: 0.3rem;
  color: var(--rs-blue); text-decoration: none; font-size: 0.76rem;
}
.rs-module-bar a:hover, .rs-text-action:hover { text-decoration: underline; text-underline-offset: 3px; }
.rs-figure-label { display: flex; align-items: center; justify-content: space-between; gap: 0.45rem; }
.rs-figure-label small { color: var(--rs-muted); font-size: 0.7rem; font-weight: 400; white-space: nowrap; }
.rs-close, .rs-zoom button, .rs-timeline button {
  display: inline-grid; place-items: center;
  padding: 0; border: 1px solid var(--rs-line); border-radius: 50%;
  color: var(--rs-ink); background: transparent;
}
.rs-close:hover, .rs-zoom button:hover, .rs-timeline button:enabled:hover { background: #e8edf3; }
.rs-generation-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.5rem, 1.7vw, 2rem);
}
.rs-gen-side { min-width: 0; }
.rs-gen-side figcaption, .rs-dialog-generation .rs-inspect-grid figcaption {
  margin: 0 0 0.65rem;
  color: var(--rs-ink);
  font: 600 clamp(0.855rem, 0.595rem + 0.48vw, 1.095rem)/1.35 Inter, sans-serif;
  letter-spacing: -0.03em;
  text-align: center;
}
.rs-gen-side figcaption.rs-after, .rs-dialog-generation .rs-inspect-grid figcaption.rs-after { color: var(--rs-blue); }
.rs-gen-grid {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: repeat(var(--columns), minmax(0, 1fr));
  grid-template-rows: repeat(var(--rows), minmax(0, 1fr));
  aspect-ratio: var(--columns) / var(--rows);
  background: transparent;
}
.rs-pane .rs-gen-tile {
  position: relative;
  display: block;
  min-width: 0; min-height: 0;
  margin: 0; padding: 0;
  border: 0; border-radius: 0;
  background: transparent;
  cursor: zoom-in;
  touch-action: manipulation;
}
.rs-gen-tile img {
  position: absolute; inset: 0;
  display: block;
  width: 100%; height: 100%;
  object-fit: contain;
  background: transparent;
  pointer-events: none;
  transform-origin: var(--tile-origin);
  transition: transform 260ms cubic-bezier(.2,.82,.3,1.1), box-shadow 180ms ease;
}
.rs-gen-tile.is-match { z-index: 2; }
.rs-gen-tile.is-match img {
  transform: scale(1.14);
  box-shadow: 0 5px 14px #1b2d4220;
}
.rs-pane .rs-gen-tile:focus-visible { outline: 0; }
.rs-gen-tile:focus-visible img { outline: 2px solid var(--rs-blue); outline-offset: -2px; }
.rs-pane .rs-generation-prompt, .rs-dialog .rs-generation-prompt {
  box-sizing: border-box;
  width: 100%;
  margin: clamp(1.05rem, 1.6vw, 1.65rem) 0 0;
  padding: clamp(0.8rem, 1.2vw, 1.15rem) 0 0;
  border-top: 1px solid var(--rs-line);
  color: #35485c;
  font: 400 clamp(1.07rem, 0.98rem + 0.28vw, 1.23rem)/1.5 "STIX Two Text", Georgia, serif;
  letter-spacing: normal;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.rs-prompt-label {
  color: var(--rs-blue);
  font: 600 0.77em/1.5 Inter, sans-serif;
  margin-inline-end: 0.22em;
}

.rs-generation-pair:empty::before {
  content: "";
  aspect-ratio: 2;
  margin-top: 2rem;
}
.rs-pane .rs-generation-prompt {
  box-sizing: content-box;
  min-block-size: 3lh;
  padding-bottom: 0.75rem;
  transition: opacity 150ms ease;
}
.rs-generation-prompt:empty { opacity: 0; }
#rs-pair-zoom { display: none; }
.rs-dialog-generation #rs-pair-zoom {
  display: block;
  width: clamp(3.5rem, 9vw, 8rem);
  height: 1.75rem;
  margin: 0 0.2rem;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  cursor: pointer;
}
#rs-pair-zoom::-webkit-slider-runnable-track {
  height: 3px; border-radius: 4px;
  background: linear-gradient(to right, var(--rs-blue) var(--progress), #cfd8e3 var(--progress));
}
#rs-pair-zoom::-webkit-slider-thumb {
  appearance: none; width: 13px; height: 13px; margin-top: -5px;
  border: 2px solid #fff; border-radius: 50%; background: var(--rs-blue); box-shadow: 0 0 0 1px #768ba7;
}
#rs-pair-zoom::-moz-range-track { height: 3px; background: #cfd8e3; }
#rs-pair-zoom::-moz-range-progress { height: 3px; background: var(--rs-blue); }
#rs-pair-zoom::-moz-range-thumb { width: 10px; height: 10px; border: 2px solid white; border-radius: 50%; background: var(--rs-blue); }
.rs-dialog-generation .rs-generation-prompt { margin-top: 1rem; }
@media (max-width: 700px) {
  .rs-gen-side figcaption { margin-bottom: 0.4rem; }
  .rs-dialog-generation .rs-dialog-bar { flex-wrap: wrap; }
  .rs-dialog-generation .rs-dialog-bar h2 { flex: 1 1 calc(100% - 3rem); }
  .rs-dialog-generation .rs-dialog-bar .rs-close { order: 1; }
  .rs-dialog-generation .rs-dialog-bar .rs-zoom { order: 2; margin-inline: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .rs-gen-tile img, .rs-pane .rs-generation-prompt { transition: none; }
  .rs-gen-tile.is-match img {
    transform: none;
    outline: 2px solid var(--rs-blue);
    outline-offset: -2px;
  }
}
.rs-module-bar { margin-bottom: 1.2rem; }
.rs-models, .rs-modes { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem; }
.rs-models button, .rs-modes button {
  min-height: 2.1rem; padding: 0.33rem 0.8rem;
  border: 1px solid transparent; border-radius: 100px;
  background: none; color: var(--rs-muted); font-size: 0.79rem; font-weight: 500;
}
.rs-model-short { display: none; }
.rs-models button[aria-pressed="true"] { color: #fbfdff; background: #283e59; border-color: #283e59; }
.rs-models button:not([aria-pressed="true"]):hover, .rs-modes button:hover { background: #e9eef4; }
.rs-case-bar, .rs-flow-controls {
  padding: 0.65rem 0; margin-bottom: 1rem; border-block: 1px solid var(--rs-line);
}
.rs-modes { gap: 0; }
.rs-modes button { min-height: 1.9rem; padding-inline: 0.65rem; font-size: 0.77rem; }
.rs-modes button[aria-pressed="true"] { color: var(--rs-blue); background: #e4ebf4; }
.rs-select { display: inline-flex; align-items: center; gap: 0.6rem; min-width: 0; max-width: 100%; font-size: 0.75rem; color: var(--rs-muted); }
.rs-select select { padding-block: 0.3rem; font-size: 0.86rem; font-weight: 550; }
.rs-body { min-height: 14rem; }
.rs-body[aria-busy="true"] { position: relative; }
.rs-body[aria-busy="true"] > * { visibility: hidden; }
.rs-body.rs-frame-pending[aria-busy="true"] > * { visibility: visible; }
.rs-body.rs-frame-pending[aria-busy="true"]::after { display: none; }
.rs-flow-controls { margin-bottom: 0; }
.rs-pane #rs-flow-status {
  min-height: 1lh; margin: 0.1rem 0 0.22rem;
  color: var(--rs-blue); font-size: 0.78rem; line-height: 1.35;
}
.rs-body[aria-busy="true"]::after {
  content: "Loading images…"; position: absolute; inset: 2rem auto auto 0; font-size: .78rem; color: var(--rs-muted);
}
.rs-kicker { font-size: 0.71rem; color: var(--rs-muted); font-weight: 500; line-height: 1.5; }
.rs-pane .rs-instruction {
  margin: 0.22rem 0 1rem; font-size: clamp(1rem, 1.55vw, 1.45rem);
  font-weight: 500; line-height: 1.4; letter-spacing: -0.025em;
}
.rs-edit-credit {
  padding-top: 0.72rem;
  text-align: right;
  color: var(--rs-muted);
  font-size: 0.73rem;
  line-height: 1.45;
}
.rs-edit-credit a { color: var(--rs-blue); text-decoration: underline; text-underline-offset: 0.18em; }
.rs-edit-toolbar {
  justify-content: flex-start;
  gap: 0.6rem clamp(0.75rem, 1.6vw, 1.5rem);
  padding-bottom: 0.7rem;
  margin-bottom: clamp(0.8rem, 1.3vw, 1.15rem);
  border-bottom: 1px solid var(--rs-line);
}
.rs-edit-toolbar .rs-modes { padding-inline-start: 0.75rem; border-inline-start: 1px solid var(--rs-line); }
.rs-edit-toolbar a { margin-inline-start: auto; white-space: nowrap; }
.rs-global-edits {
  display: grid;
  gap: clamp(0.75rem, 1.5vh, 1.25rem);
}
.rs-global-edits .rs-edit-example {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 3.6fr);
  align-items: center;
  column-gap: clamp(1rem, 2.25vw, 2rem);
}
.rs-global-edits .rs-instruction {
  margin: 0;
  font-size: clamp(0.96rem, 0.83rem + 0.36vw, 1.18rem);
  line-height: 1.4;
}
.rs-global-edits .rs-outputs { gap: clamp(0.4rem, 0.85vw, 0.8rem); }
.rs-global-edits .rs-figure-label {
  display: block;
  margin-bottom: 0.32rem;
  text-align: center;
}
.rs-global-edits[data-model="klein"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.9rem, 2vh, 1.7rem) clamp(1.3rem, 2.4vw, 2.25rem);
}
.rs-global-edits[data-model="klein"] .rs-edit-example {
  display: flex; flex-direction: column; align-items: stretch;
  gap: 0.52rem;
}
.rs-global-edits[data-model="klein"] .rs-outputs { margin-top: 0; }
@media (min-width: 701px) {
  .rs-global-edits:not([data-model="klein"]) .rs-edit-example ~ .rs-edit-example .rs-figure-label {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
}
@media (max-width: 700px) {
  .rs-edit-toolbar .rs-models { flex-basis: 100%; }
  .rs-edit-toolbar .rs-modes { border: 0; padding: 0; }
  .rs-global-edits, .rs-global-edits[data-model="klein"] {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 1.4rem;
  }
  .rs-global-edits .rs-edit-example { grid-template-columns: minmax(0, 1fr); row-gap: 0.52rem; }
}
.rs-grid, .rs-inspect-grid { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: clamp(0.45rem, 1.25vw, 1.25rem); }
.rs-figure { min-width: 0; }
.rs-figure-label, .rs-inspect-grid figcaption { margin-bottom: 0.4rem; font-size: 0.79rem; line-height: 1.35; font-weight: 550; }
.rs-after { color: var(--rs-blue); }
.rs-image, .rs-magnify {
  display: block; width: 100%; overflow: hidden;
  margin: 0; padding: 0; border: 0; border-radius: 0;
  background: transparent;
}
.rs-pane .rs-image { cursor: zoom-in; }
.rs-image img, .rs-magnify img { display: block; width: 100%; height: auto; object-fit: contain; }
.rs-maps { margin-top: 1rem; }
.rs-score-note { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.55rem; }
.rs-score-note strong { font-weight: 550; color: var(--rs-blue); }
.rs-error-key, .rs-color-key { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; }
.rs-error-key { justify-content: space-between; margin-top: 0.8rem; font-size: 0.73rem; color: var(--rs-muted); }
.rs-ramp { display: inline-block; width: 4.7rem; height: 0.5rem; background: linear-gradient(90deg,#000004,#4c0c6b,#bd3754,#f98d0a,#fcffa4); }
.rs-excluded { display: inline-block; margin-left: 0.5rem; width: 0.7rem; height: 0.6rem; background: #c8cdd1; }
.rs-timeline { display: flex; align-items: center; gap: 0.65rem; }
.rs-timeline label { font-size: 0.8rem; color: var(--rs-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rs-timeline label b { display: inline-block; min-width: 2ch; text-align: end; font-size: 1.05rem; color: var(--rs-ink); }
.rs-timeline button, .rs-zoom button, .rs-close { width: 1.85rem; height: 1.85rem; }
.rs-timeline button { font-size: 1.3rem; line-height: 1; }
.rs-timeline button:disabled, .rs-zoom button:disabled { color: #8996a5; opacity: 0.6; cursor: default; }
#rs-turn {
  appearance: none; -webkit-appearance: none; width: clamp(6.5rem, 17vw, 17.5rem); height: 1.75rem;
  margin: 0; cursor: pointer; accent-color: var(--rs-blue); background: transparent;
}
#rs-turn::-webkit-slider-runnable-track { height: 3px; border-radius: 4px; background: linear-gradient(to right, var(--rs-blue) var(--progress), #cfd8e3 var(--progress)); }
#rs-turn::-webkit-slider-thumb { appearance: none; height: 13px; width: 13px; margin-top: -5px; border: 2px solid #fff; border-radius: 50%; background: var(--rs-blue); box-shadow: 0 0 0 1px #768ba7; }
#rs-turn::-moz-range-track { height: 3px; background: #cfd8e3; }
#rs-turn::-moz-range-progress { height: 3px; background: var(--rs-blue); }
#rs-turn::-moz-range-thumb { width: 11px; height: 11px; border: 2px solid white; border-radius: 50%; background: var(--rs-blue); }
.rs-pane .rs-observation { margin-top: 0.75rem; padding-left: 0.8rem; border-left: 2px solid #829ac1; font-size: 0.85rem; line-height: 1.5; color: #31445b; }
.rs-pane .rs-observation:has(p:empty) { border-color: transparent; }
.rs-brief { margin-top: 1.15rem; padding-block: 0.85rem; border-block: 1px solid var(--rs-line); }
.rs-pane .rs-brief { color: #35485c; font: 400 clamp(1.03rem, 1.26vw, 1.18rem)/1.55 "STIX Two Text", Georgia, serif; white-space: pre-line; overflow-wrap: anywhere; }
.rs-turn-text, .rs-text-sizer { display: grid; grid-template-columns: minmax(0, 1fr); }
.rs-turn-text > *, .rs-text-sizer > * { grid-area: 1 / 1; align-self: start; }
.rs-pane .rs-turn-text p { width: 100%; max-width: none; margin: 0; color: inherit; font: inherit; }
.rs-text-sizer { visibility: hidden; user-select: none; pointer-events: none; }
.rs-inputs { margin-top: 1rem; }
.rs-inputs-heading h4 { font-size: 0.85rem; font-weight: 600; }
.rs-pane .rs-text-action { padding: 0; border: 0; background: none; font-size: 0.75rem; }
.rs-refs {
  display: grid;
  grid-template-columns: minmax(0, 15.5rem) repeat(var(--reference-count), minmax(0, 11.75rem));
  gap: 1rem clamp(1rem, 2.5vw, 2.4rem); margin-top: 0.75rem;
}
.rs-input-unit { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; max-width: 100%; }
.rs-input-unit > small { display: block; margin-bottom: 0.4rem; font-size: 0.7rem; font-weight: 550; color: var(--rs-muted); }
.rs-ref-set { display: flex; gap: 0.6rem; }
.rs-pane .rs-ref {
  display: flex; align-items: center; text-align: left; gap: 0.48rem;
  max-width: 11.75rem; padding: 0; border: 0; background: none; color: var(--rs-ink); font-size: 0.72rem; line-height: 1.35;
}
.rs-ref img { flex: none; width: 3.2rem; height: 3.2rem; object-fit: contain; background: transparent; }
.rs-retry { padding-block: 1rem; font-size: 0.83rem; }
.rs-retry button { border: 0; background: none; color: var(--rs-blue); text-decoration: underline; }
body.rs-modal-open { overflow: hidden; }
.rs-dialog {
  width: min(94vw, 92rem); max-width: none; max-height: 92dvh; overflow: auto;
  margin: auto; padding: clamp(0.75rem, 1.7vw, 1.65rem); border: 1px solid #d7dfe8; border-radius: 0.8rem;
  background: #f8fafc; color: var(--rs-ink); box-shadow: 0 12px 70px #11213538;
}
.rs-dialog::backdrop { background: rgb(16 27 40 / 63%); }
.rs-dialog-bar { display: flex; align-items: center; gap: 0.8rem; padding-bottom: 1rem; }
.rs-dialog-bar h2 { flex: 1; min-width: 0; font-size: clamp(0.86rem, 1.45vw, 1.25rem); font-weight: 550; letter-spacing: -0.02em; }
.rs-dialog .rs-close { font-size: 1.3rem; flex-shrink: 0; }
.rs-zoom { display: flex; align-items: center; gap: 0.4rem; }
.rs-zoom button { font-size: 1rem; }
.rs-zoom [data-zoom="reset"] { width: 3.2rem; border-radius: 1rem; font-size: 0.72rem; font-variant-numeric: tabular-nums; }
.rs-magnify { align-self: start; touch-action: none; }
.rs-dialog[data-zoomed="true"] .rs-magnify { cursor: grab; }
.rs-dialog[data-zoomed="true"] .rs-magnify:active { cursor: grabbing; }
.rs-magnify img { user-select: none; }
.rs-zoom-help { padding-top: 0.7rem; font-size: 0.73rem; color: var(--rs-muted); }
@media (max-width: 1000px) {
  .rs-refs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rs-input-unit:first-child { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .rs-groups { grid-template-columns: 1fr; gap: 0.95rem; }
  .rs-group { gap: 0.25rem; }
  .rs-group h2, .rs-group-long h2 { max-width: 45ch; }
  .rs-group h2, .chapter .chapter-title { font-size: 1.18rem; }
  .rs-group nav { gap: 1.1rem; }
  .rs-group nav a { min-height: 2rem; }
  .rs-module-bar { margin-bottom: 0.7rem; }
  .rs-models { gap: 0.12rem; }
  .rs-model-full { display: none; }
  .rs-model-short { display: inline; }
  .rs-models button { min-height: 1.85rem; padding-inline: 0.48rem; font-size: 0.71rem; }
  .rs-figure-label { display: block; font-size: 0.68rem; }
  .rs-figure-label small { display: block; font-size: 0.59rem; }
  .rs-timeline { gap: 0.45rem; flex: 1 1 12rem; }
  #rs-turn { flex: 1; width: auto; min-width: 3rem; }
  .rs-flow-controls .rs-select { flex: 1 1 15rem; }
  .rs-ref img { width: 2.7rem; height: 2.7rem; }
  .rs-dialog { width: calc(100vw - 0.8rem); }
  .rs-dialog-bar { gap: 0.4rem; }
  .rs-inspect-grid { gap: 0.35rem; }
  .rs-inspect-grid figcaption { font-size: 0.68rem; }
}
@media (max-width: 560px) {
  .rs-input-unit:not(:first-child) .rs-ref { flex-direction: column; align-items: flex-start; gap: 0.35rem; }
  .rs-input-unit:not(:first-child) .rs-ref span { min-height: 3lh; }
}

@media (min-width: 741px) {
  .rs-multi .results-gallery {
    flex: none;
    aspect-ratio: 2.1;
    min-height: 28rem;
  }
}
.rs-multi .rs-module-bar { flex: none; margin-bottom: clamp(0.65rem, 1vh, 1rem); }
.rs-multi .result-lane-heading h3 { margin: 0; font: 600 clamp(0.84rem, 1vw, 1rem)/1.35 Inter, sans-serif; color: var(--rs-ink); }
.rs-multi .result-case-list:not([data-packed]) {
  display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0.5rem;
}
.rs-multi .result-case-list:not([data-packed]) > .result-card { position: relative; inset: auto !important; width: auto !important; height: auto !important; }
.rs-multi .comparison-image img { object-fit: contain; }
.rs-multi .result-prompt { overflow: hidden; }
.result-card .result-guide { background: transparent; border: 0; box-shadow: none; }
.result-card .comparison-frame[data-role="reference"] img, .comparison-image { background: transparent; }
.result-comparison-dialog .result-card .comparison-image { height: auto; }
.result-comparison-dialog .comparison-image img { height: auto; width: 100%; }

.rs-benchmarks { overflow-x: auto; scrollbar-width: thin; padding: 0.15rem 0 0.75rem; }
.rs-score-table { width: 100%; border-collapse: collapse; color: var(--rs-ink); font-variant-numeric: tabular-nums; }
.rs-score-table caption { text-align: left; padding: 0.45rem 0 1.05rem; }
.rs-score-table caption strong { display: block; font-size: clamp(1.1rem, 1.6vw, 1.42rem); font-weight: 550; letter-spacing: -0.035em; }
.rs-score-table caption span { display: block; margin-top: 0.32rem; color: var(--rs-muted); font-size: 0.76rem; }
.rs-score-table :is(th,td) { padding: 0.75rem clamp(0.55rem, 1.6vw, 1.5rem); text-align: center; }
.rs-score-table thead { border-block: 1px solid #b7c5d7; }
.rs-score-table thead th { white-space: nowrap; color: #394e64; font-size: 0.84rem; font-weight: 550; }
.rs-score-table thead tr:first-child th { padding-bottom: 0.38rem; }
.rs-score-table thead tr:last-child th { font-size: 0.75rem; font-weight: 450; color: var(--rs-muted); padding-block: 0.32rem 0.65rem; }
.rs-score-table thead th[rowspan] { vertical-align: middle; }
.rs-score-table th[scope="rowgroup"], .rs-score-table thead th:first-child[rowspan] { text-align: left; }
.rs-score-table tbody tr { border-bottom: 1px solid #dfe5ed; }
.rs-score-table tbody th { font-size: 0.88rem; font-weight: 450; }
.rs-score-table tbody td { font-size: clamp(0.92rem, 1.1vw, 1.08rem); white-space: nowrap; }
.rs-score-table [data-method="After TailSteer"] { background: #315b9c06; }
.rs-score-table [data-method="After TailSteer"] th { color: var(--rs-blue); font-weight: 550; }
.rs-score-table .rs-onset { color: var(--rs-muted); font-size: 0.85rem; }
.rs-score-table .rs-score-value { display: inline-block; }
.rs-score-table strong.rs-score-value { font-weight: 700; }
.rs-score-table td small { display: inline-block; width: 3.15em; margin-left: 0.45em; text-align: right; font-size: 0.71em; }
@media (min-width: 741px) {
  .rs-score-table td[data-metric]:has(.rs-score-value:only-child)::after {
    content: ""; display: inline-block; width: 3.15em; margin-left: 0.45em; font-size: 0.71em;
  }
}
.rs-score-table .rs-up { color: #247466; }
.rs-score-table .rs-down { color: #94532f; }
.rs-score-table tbody:first-of-type td[data-metric] { color: #3e5064; }
.results .results-back { color: var(--blue); text-decoration: none; }
.results .results-back:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 740px) {
  .rs-multi .results-gallery { display: flex; flex-direction: column; gap: 1.5rem; }
  .rs-multi .result-lane { display: flex; height: auto; }
  .rs-multi .result-lane-heading { display: block; }
  .rs-multi .result-case-list { flex: none; height: max(17rem, calc(var(--case-count) * 6.25rem)); --prompt-height: 31px; }
  .rs-score-table :is(th,td) { padding-inline: 0.48rem; }
  .rs-score-table td small { display: block; width: auto; margin: 0.1rem 0 0; text-align: center; }
  .rs-score-table th[scope="rowgroup"] { min-width: 5.4rem; }
  .rs-score-table caption span { font-size: 0.72rem; }
}

.rs-group-long nav { gap: clamp(0.7rem, 1.65vw, 1.8rem); }
.rs-group-long a { min-width: 0; }
.rs-group-long a small { font: inherit; white-space: nowrap; }
.rs-edit-plate { min-width: 0; }
.rs-wide-plate:focus-visible { outline: 2px solid var(--rs-blue); outline-offset: 2px; }
.rs-ap-header { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 0.8rem 1.5rem; margin: 1.6rem 0 1.2rem; }
.rs-preserve :is(.rs-ap-header, .rs-ap-example) h3 {
  color: var(--rs-ink); font: 550 clamp(1.1rem, 1.8vw, 1.55rem)/1.24 Inter, sans-serif; letter-spacing: -0.035em;
}
.rs-ap-header p { margin-top: 0.38rem; color: var(--rs-muted); font-size: 0.84rem; }
.rs-preserve .chart-legend { flex-wrap: wrap; gap: 0.45rem 1.1rem; color: #44566d; font-size: 0.78rem; }
.rs-preserve .chart-legend i { width: 1.35rem; height: 0; border-top: 2px solid; }
.rs-preserve .chart-legend [data-series="api"] { border-top-style: dashed; }
.rs-preserve .chart-legend [data-series="tailsteer"] { border-top-width: 3px; }
.rs-preserve #preservation-charts {
  display: grid; min-width: 0; grid-template: auto / repeat(3, minmax(0,1fr));
  gap: clamp(0.8rem, 1.9vw, 2rem); margin: 0; padding: 1.05rem 0 0.85rem; border-block: 1px solid var(--rs-line);
}
.rs-preserve .curve-tile { display: block; }
.rs-preserve .curve-tile h5 { color: #293d53; font: 600 0.95rem/1.4 Inter, sans-serif; text-align: left; }
.rs-preserve .curve-tile svg { display: block; width: 100%; height: auto; aspect-ratio: 366 / 218; }
.rs-preserve .chart-axis-label { font: 500 12px Inter, sans-serif; fill: #526477; }
.rs-preserve .chart-axis-title { font-size: 11.5px; }
.rs-preserve .curve-tooltip { top: 1.65rem; left: auto; max-width: 94%; font-size: 0.76rem; padding: 0.5rem 0.7rem; }
.rs-ap-scores { overflow-x: auto; min-width: 0; margin-block: 1.25rem 2rem; }
.rs-ap-table thead tr:only-child th { padding-block: 0.7rem; font-weight: 550; color: #394e64; }
.rs-ap-table thead th:first-child { text-align: left; }
.rs-ap-table tbody :is(th,td) { padding-block: 0.52rem; }
.rs-ap-example { margin-bottom: 1.1rem; }
.rs-ap-example h3 { margin-bottom: 0.85rem; }
.rs-ap-example .evidence-pair { gap: clamp(0.4rem, 1.2vw, 1rem); }
.rs-ap-example .comparison-frame { justify-content: end; }
.rs-ap-example .comparison-image { display: block; flex: none; height: auto; }
.rs-ap-example .evidence-photo { display: block; width: 100%; height: auto; }
.rs-ap-example .evidence-pair figcaption { font-size: clamp(0.72rem, 1vw, 0.88rem); padding: 0 0 0.45rem; color: #394d64; background: transparent; }
.rs-ap-example .evidence-pair [data-role="tailsteer"] figcaption,
.rs-ap-example .tailsteer-accent { color: var(--rs-blue); }
#general-scores { overflow-x: auto; }
@media (max-width: 1020px) {
  .rs-group-long a small { display: block; font-size: 0.88em; }
}
@media (max-width: 760px) {
  .rs-preserve #preservation-charts { grid-template: auto / minmax(0,1fr); gap: 1.25rem; }
  .rs-preserve .curve-tile { width: min(100%, 34rem); margin-inline: auto; }
}
@media (max-width: 700px) {
  .rs-group-long nav { display: grid; grid-template-columns: 1.45fr 1.16fr 1fr; gap: 0.55rem; }
  .rs-group-long a small { white-space: nowrap; }
  .rs-wide-plate { overflow-x: auto; scrollbar-width: thin; }
  .rs-wide-plate > .rs-grid { min-width: 33rem; }
  .rs-dialog .rs-inspect-grid.rs-many-methods { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .rs-ap-header { margin-top: 1.1rem; }
  .rs-ap-header p { font-size: 0.75rem; }
  .rs-preserve .chart-legend { font-size: 0.72rem; }
  .rs-ap-table { min-width: 35rem; }
  #general-scores .rs-ap-table { min-width: 43rem; }
}
