.results,
.motivation,
.training {
  --results-heading-size: min(1.95cqw, 28px);
  container-type: inline-size;
}
.results {
  --claim-cue-color: #505d6d;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--chapter-shade);
}
.results-heading {
  flex: none;
  position: relative;
}
.results-heading .eyebrow {
  margin-bottom: 14px;
  font-size: 9px;
}
#results-title,
#motivation-title,
#training-title {
  display: grid;
  gap: 0.4em;
}
#results-title,
#motivation-title,
#training-title,
.evidence-slogan {
  font-family: TailHand, Inter, sans-serif;
  font-size: var(--results-heading-size);
  line-height: 1.35;
  letter-spacing: 0;
  font-weight: 400;
}
#results-title,
#motivation-title,
#training-title {
  font-family: Inter, sans-serif;
  font-size: calc(var(--results-heading-size) - 8px);
  font-weight: 700;
}
#motivation-title,
#training-title {
  grid-column: 1 / -1;
}
.motivation-thesis-tail {
  color: var(--blue);
}
.evidence-slogan {
  margin: 16px 0 0;
  flex: none;
  font-size: calc(var(--results-heading-size) - 2px);
  text-align: center;
  color: #505d6d;
}
.result-claim {
  padding: 0;
  display: flex;
  align-items: baseline;
  width: fit-content;
  max-width: 100%;
  text-align: left;
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
  transition: color 0.18s;
}
.claim-arrow {
  display: inline-block;
  font-size: 0.7em;
  margin-left: 0.6em;
  color: var(--claim-cue-color);
  transition:
    transform 0.18s,
    color 0.18s;
}
.result-claim:is(:hover, :focus-visible, .is-invited, [aria-pressed="true"])
  .claim-label {
  background-size: 100% 1px;
}
.result-claim:is(:hover, :focus-visible) .claim-arrow {
  transform: translateX(2px) rotate(45deg);
}
.result-claim-blue {
  color: var(--blue);
}
.claim-label {
  white-space: nowrap;
  background: linear-gradient(#adc2df, #adc2df) left bottom / 0% 1px no-repeat;
  transition: background-size 240ms ease-out;
}
.claim-arrow {
  flex: none;
}
.claim-hint {
  margin-left: 10px;
  flex: none;
  font-family: Inter, sans-serif;
  font-size: clamp(10px, calc(0.8cqw + 2px), 13px);
  font-weight: 400;
  letter-spacing: 0;
  color: var(--claim-cue-color);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-3px);
  transition:
    opacity 0.18s,
    transform 0.18s,
    visibility 0.18s;
}
.result-claim:is(:hover, :focus-visible, .is-invited) .claim-hint {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}
.result-claim.is-invited .claim-arrow {
  animation: claim-nudge 1.5s ease-in-out;
}

@supports (background-clip: text) or (-webkit-background-clip: text) {
  .result-claim:is(:hover, :focus-visible, .is-invited) .claim-hint {
    background-image: linear-gradient(
      105deg,
      var(--claim-cue-color) 40%,
      #7d8da4 47%,
      #91a0b6 50%,
      #7d8da4 53%,
      var(--claim-cue-color) 60%
    );
    background-size: 240% 100%;
    background-repeat: no-repeat;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    animation: claim-light-pass 1.35s 120ms ease-in-out both;
  }
}
@keyframes claim-light-pass {
  0% {
    background-position: 100% 0;
    text-shadow: 0 0 0 transparent;
  }
  50% {
    text-shadow: 0 0 4px #748baf24;
  }
  100% {
    background-position: 0% 0;
    text-shadow: 0 0 0 transparent;
  }
}
@keyframes claim-nudge {
  0%,
  100% {
    transform: translateX(0);
  }
  40%,
  60% {
    transform: translateX(4px);
  }
}

#results-title:has(.result-claim:hover) .result-claim:not(:hover) .claim-hint {
  opacity: 0;
  visibility: hidden;
}
@media (max-width: 850px) {
  .claim-label {
    white-space: normal;
  }
  .claim-hint {
    margin-left: 7px;
    font-size: 10px;
    white-space: normal;
    max-width: 175px;
  }
}
@media (hover: none), (max-width: 600px) {
  .claim-hint {
    display: none;
  }
}
.results-stage {
  position: relative;
  flex: 1;
  min-height: 0;
}
.results-pane {
  position: absolute;
  inset: 0;
  min-width: 0;
  min-height: 0;
}
.results-pane[hidden] {
  display: none;
}
.results-showcase {
  display: flex;
  flex-direction: column;
}
.results-lane-tabs {
  display: none;
}
.results-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  flex: 1;
  min-height: 0;
}
.results-gallery[data-model="sensenova"] {
  grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr);
}
.results-gallery[data-model="qwen"] {
  grid-template-columns: minmax(0, 2.8fr) minmax(0, 1fr);
}
.results-poster {
  grid-column: 1 / -1;
  width: min(100%, 30rem);
  margin: 0 auto;
}
.results-poster img { display: block; width: 100%; height: auto; }
.results-poster figcaption {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
}
.result-lane {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
}
.result-lane-heading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: none;
  padding-bottom: 0.625rem;
}
.result-lane-heading > span {
  font:
    700 20px TailHand,
    sans-serif;
  color: #8aa1bf;
}
.result-lane-heading h3 {
  font-size: clamp(0.6875rem, 1.22cqw, 1.125rem);
  font-weight: 500;
  letter-spacing: -0.035em;
}
.result-case-list {
  --prompt-height: 1.75rem;
  position: relative;
  min-height: 0;
  flex: 1;
}
.result-case-list > .result-card {
  position: absolute;
}
.result-card {
  position: relative;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border: 0;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}
.result-card-heading {
  display: none;
}
.comparison-frames {
  display: grid;
  grid-template-columns: repeat(var(--columns), minmax(0, 1fr));
  gap: 0;
  min-height: 0;
  flex: 1;
}
.comparison-frame {
  position: relative;
  min-width: 0;
  min-height: 0;
  margin: 0;
  overflow: hidden;
}
.comparison-image {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  background: #e8ecf0;
  cursor: zoom-in;
}
.comparison-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 1;
  filter: none;
}

.comparison-image img:not([src]),
.result-guide img:not([src]),
.result-references img:not([src]) {
  visibility: hidden;
}

.comparison-frame figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  pointer-events: none;
  background: #f7f9fcda;
  color: #455972;
  text-align: center;
  padding: 0.1875rem 1px;
  font-size: clamp(0.4375rem, 0.72cqw, 0.6875rem);
  line-height: 1.2;
  white-space: nowrap;
}
.comparison-frame[data-role="tailsteer"] figcaption {
  color: #244d8b;
  font-weight: 600;
  background: #e8f0fcdf;
}
.tailsteer-accent {
  color: var(--orange);
}
.result-card.featured::before {
  content: "Ryze · 20 guided turns";
  position: absolute;
  top: 0.375rem;
  left: 0.375rem;
  z-index: 2;
  pointer-events: none;
  font-size: 0.5625rem;
  color: #35567f;
  background: #f7faffdf;
  padding: 0.25rem 0.4375rem;
}
.result-turnbar {
  flex: none;
  display: flex;
  align-items: center;
  gap: 0.4375rem;
  height: 1.3125rem;
}
.result-turnbar input {
  flex: 1;
  min-width: 0;
  height: 1.0625rem;
  background: transparent;
  cursor: ew-resize;
}
.result-turnbar input::-webkit-slider-runnable-track {
  height: 0.125rem;
  background: linear-gradient(
    to right,
    #9fb4d1 var(--turn-progress),
    #dde5ef var(--turn-progress)
  );
}
.result-turnbar input::-webkit-slider-thumb {
  margin-top: -0.25rem;
  width: 0.625rem;
  height: 0.625rem;
  border-width: 0.125rem;
}
.result-turnbar input::-moz-range-track {
  height: 0.125rem;
  background: #dde5ef;
}
.result-turnbar input::-moz-range-progress {
  height: 0.125rem;
  background: #9fb4d1;
}
.result-turnbar input::-moz-range-thumb {
  width: 0.375rem;
  height: 0.375rem;
  border-width: 0.125rem;
}
.result-turnbar output {
  flex: none;
  font-size: 0.5rem;
  color: #8191a6;
  font-variant-numeric: tabular-nums;
}
.result-turnbar output b {
  color: #385f96;
  font-weight: 500;
}
.result-prompt {
  flex: 0 1 66%;
  margin: 0;
  min-width: 0;
  color: #536b8a;
  font-size: clamp(8px, 0.82cqw, 12px);
  line-height: 1.3;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.results-model-switch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex: none;
  height: 35px;
}
.model-arrow {
  width: 27px;
  height: 27px;
  padding: 0;
  flex: none;
  color: #7390b7;
  font-size: 18px;
  border-radius: 50%;
  transition: background 0.2s;
}
.model-arrow:hover {
  background: #e6eef8;
  color: #315b9c;
}
.result-model-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
}
.result-model-tabs button {
  padding: 7px 0;
  color: #8593a5;
  font-size: clamp(9px, 1.05cqw, 15px);
  line-height: 1.4;
  border-bottom: 1px solid transparent;
  white-space: nowrap;
}
.result-model-tabs button[aria-selected="true"] {
  color: #315b9c;
  border-bottom-color: #315b9c;
}
.evidence-toolbar {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  height: 30px;
  margin-bottom: 10px;
  color: #6e829e;
  font-size: 11px;
}
.results-back {
  padding: 0;
  color: #315b9c;
  font-size: 11px;
}
.results-back:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.capability-pane {
  display: flex;
  flex-direction: column;
}
.score-table {
  width: 100%;
  border-collapse: collapse;
  font-size: clamp(12px, 1.3cqw, 18px);
  font-variant-numeric: tabular-nums;
}
.score-table th {
  color: #8b9bb0;
  font-size: 10px;
  font-weight: 400;
  text-align: right;
  padding: 0 0 15px;
}
.score-table th:first-child,
.score-table td:first-child {
  text-align: left;
}
.score-table td {
  padding: 22px 0;
  border-top: 1px solid #dde5ee;
  text-align: right;
  color: #647995;
}
.score-table td:first-child {
  padding-right: 10px;
}
.score-table .score-refined,
.score-table th:nth-child(3) {
  color: #315b9c;
}
.score-table .score-refined {
  font-weight: 600;
}
.score-delta {
  margin-left: 9px;
  display: inline-block;
  min-width: 35px;
  color: #8fa1b9;
  font-size: 9px;
  font-weight: 400;
}
.results-source-note {
  flex: none;
  color: #8493a8;
  font-size: 9px;
  line-height: 1.6;
}
.results-source-note a {
  color: #466e9f;
}
.preservation-pane {
  display: flex;
  flex-direction: column;
}
.result-comparison-dialog,
.results-evidence-dialog {
  border: 1px solid #dce4ef;
  border-radius: 1.0625rem;
  padding: 2.8125rem 1.5rem 1.5rem;
  background: #f8fafd;
  color: var(--ink);
  width: min(90.625rem, 96vw);
  max-height: 94svh;
  margin: auto;
  box-shadow: 0 1.875rem 6.875rem #17212e40;
}
.result-comparison-dialog::backdrop,
.results-evidence-dialog::backdrop {
  background: #182334a6;
  backdrop-filter: blur(12px);
}
.comparison-dialog-close,
.evidence-dialog-close {
  position: absolute;
  right: 1.0625rem;
  top: 0.625rem;
  font-size: 1.75rem;
  color: #657e9e;
  padding: 0;
  width: 2rem;
  height: 2rem;
}
.result-comparison-dialog .result-card::before {
  display: none;
}
.result-comparison-dialog .comparison-frames {
  gap: 0.3125rem;
}
.result-comparison-dialog .comparison-frame {
  display: flex;
  flex-direction: column;
}
.result-comparison-dialog .comparison-frame figcaption {
  position: static;
  font-size: 0.6875rem;
  padding: 0 0 0.625rem;
  background: transparent;
}
.result-comparison-dialog .comparison-image {
  height: min(56vh, 32.5rem);
  cursor: default;
}
.result-comparison-dialog .comparison-image img {
  object-fit: contain;
}
.result-comparison-dialog .result-turnbar {
  height: 2rem;
  margin-top: 1.125rem;
}
.result-comparison-dialog .result-turnbar output {
  font-size: 0.75rem;
}
.result-comparison-dialog .result-prompt {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  white-space: normal;
}
.result-comparison-dialog .results-source-note {
  margin-top: 10px;
}
.results-evidence-dialog {
  width: min(53.125rem, 94vw);
  padding: 2.5rem;
}
.results-evidence-dialog h3 {
  color: #315b9c;
  font-size: 26px;
  font-weight: 500;
  margin-bottom: 22px;
}
.results-evidence-dialog p {
  font-size: 12px;
  color: #71839c;
  line-height: 1.7;
  margin: 16px 0;
}
.results-evidence-dialog .score-table {
  font-size: 13px;
}
.results-evidence-dialog .score-table td {
  padding: 15px 0;
}
body.comparison-open {
  overflow: hidden;
}
@media (min-width: 851px) and (max-height: 760px) {
  .results {
    gap: 12px;
  }
  .results-heading .eyebrow {
    margin-bottom: 9px;
  }
  .score-table td {
    padding: 15px 0;
  }
}
@media (max-width: 1100px) and (min-width: 851px) {
  .results-gallery {
    gap: 8px;
  }
  .result-prompt {
    flex-basis: 60%;
    font-size: 7px;
  }
  .result-model-tabs {
    gap: 14px;
  }
  .score-table {
    font-size: 11px;
  }
  .score-table th {
    font-size: 8px;
  }
  .score-delta {
    font-size: 8px;
    margin-left: 5px;
    min-width: 29px;
  }
  .preservation-footer {
    gap: 15px;
  }
}
@media (max-width: 850px) {
  .results {
    gap: 14px;
  }
  .results,
  .motivation,
  .training {
    --results-heading-size: clamp(12px, 2.5cqw, 21px);
  }
  #results-title,
  #motivation-title,
  #training-title {
    font-size: clamp(0.8125rem, 2vw, 1rem);
  }
  #results-title,
  .evidence-slogan {
    line-height: 1.35;
  }
  .results-heading .eyebrow {
    font-size: 8px;
    margin-bottom: 9px;
  }
  .results-model-switch {
    gap: 7px;
    height: 32px;
  }
  .result-model-tabs {
    gap: 12px;
  }
  .result-model-tabs button {
    font-size: 9px;
  }
  .model-arrow {
    width: 22px;
    font-size: 16px;
  }
  .evidence-toolbar {
    font-size: 10px;
  }
  .score-table {
    font-size: 12px;
  }
  .score-table th {
    font-size: 9px;
  }
  .score-delta {
    display: block;
    margin: 4px 0 0;
  }
}
@media (max-width: 600px) {
  .results {
    gap: 12px;
  }
  .results,
  .motivation {
    --results-heading-size: 12px;
  }
  .results-gallery {
    display: block;
  }
  .result-lane {
    height: 100%;
  }
  .results[data-lane="single"] .result-lane[data-kind="multi"],
  .results[data-lane="multi"] .result-lane[data-kind="single"] {
    display: none;
  }
  .result-lane-heading {
    display: none;
  }
  .results-lane-tabs {
    display: flex;
    gap: 20px;
    flex: none;
    margin-bottom: 12px;
  }
  .results-lane-tabs button {
    color: #869ab6;
    font-size: 12px;
    padding: 0 0 5px;
    border-bottom: 1px solid transparent;
  }
  .results-lane-tabs [aria-selected="true"] {
    color: #315b9c;
    border-bottom-color: #8aa9d2;
  }
  .comparison-frame figcaption {
    font-size: 7px;
    padding: 2px 0;
  }
  .result-prompt {
    font-size: 8px;
    flex-basis: 66%;
  }
  .result-turnbar {
    height: 20px;
    gap: 5px;
  }
  .result-model-tabs {
    gap: 10px;
    flex: 1;
  }
  .result-model-tabs button {
    font-size: 8px;
    white-space: normal;
    padding: 4px 0;
    flex: 1;
  }
  .model-arrow {
    width: 18px;
  }
  .evidence-toolbar {
    height: auto;
    min-height: 27px;
    align-items: flex-start;
    gap: 12px;
    font-size: 8px;
  }
  .evidence-toolbar span {
    max-width: 58%;
    text-align: right;
  }
  .results-back {
    font-size: 10px;
    white-space: nowrap;
  }
  .score-table {
    font-size: 11px;
  }
  .score-table th {
    font-size: 8px;
    padding-bottom: 8px;
  }
  .score-table td {
    padding: 8px 0;
  }
  .score-delta {
    display: inline-block;
    margin: 0 0 0 7px;
    min-width: 29px;
    font-size: 8px;
  }
  .results-source-note {
    font-size: 8px;
  }
  .chart-legend {
    font-size: 7px;
    gap: 10px;
  }
  .preservation-footer {
    margin-top: 8px;
    gap: 5px;
    flex-direction: column;
  }
  .preservation-links {
    display: flex;
    gap: 18px;
  }
  .preservation-footer button {
    font-size: 8px;
  }
  .result-comparison-dialog {
    padding: 40px 12px 16px;
  }
  .result-comparison-dialog .comparison-frames {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 3px;
  }
  .result-comparison-dialog .comparison-image {
    height: min(26vh, 240px);
  }
  .result-comparison-dialog .comparison-frame figcaption {
    font-size: 9px;
    white-space: normal;
  }
  .results-evidence-dialog {
    padding: 40px 18px 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .result-claim,
  .claim-label,
  .claim-arrow,
  .claim-hint {
    transition: none;
  }
}
@media (prefers-reduced-motion: reduce), (forced-colors: active) {
  .result-claim:is(:hover, :focus-visible, .is-invited) .claim-hint {
    animation: none;
    background: none;
    color: var(--claim-cue-color);
  }
  .result-claim.is-invited .claim-arrow {
    animation: none;
  }
}
@media (forced-colors: active) {
  .result-claim:is(:hover, :focus-visible, [aria-pressed="true"]) .claim-label {
    text-decoration: underline;
  }
}
.result-card .comparison-frame[data-role="reference"] img {
  object-fit: contain;
  background: #fff;
}

.result-case-list .result-turnbar {
  height: 1.25rem;
  flex-wrap: nowrap;
}
.result-case-list .result-prompt {
  order: 2;
  flex: none;
  height: var(--prompt-height);
  display: flex;
  align-items: center;
  padding: 1px 0;
  font-size: clamp(0.5rem, 0.8cqw, 0.6875rem);
  white-space: normal;
  line-height: 1.15;
}
.result-case-list .result-turnbar {
  order: 3;
}
.result-case-list .comparison-frames {
  flex: 1;
}
.result-guide {
  position: absolute;
  left: 0.25rem;
  bottom: 1.375rem;
  z-index: 2;
  padding: 0;
  width: clamp(1.5rem, 24%, 3.125rem);
  height: clamp(1.75rem, 24%, 4.0625rem);
  background: #fff;
  box-shadow: 0 1px 0.3125rem #172f5326;
  cursor: zoom-in;
}
.result-guide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.result-references {
  display: flex;
  flex: none;
  align-items: stretch;
  justify-content: center;
  height: 2.1875rem;
  padding: 0.1875rem 0 1px;
  gap: 0.125rem;
}
.result-references button {
  flex: 1;
  min-width: 0;
  max-width: 3.125rem;
  padding: 0;
  cursor: zoom-in;
}
.result-references img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.result-comparison-dialog .result-references {
  height: 4.0625rem;
  gap: 0.3125rem;
}
.result-comparison-dialog .result-references button {
  max-width: 5rem;
}
.result-comparison-dialog .result-guide {
  width: 4.0625rem;
  height: 5.3125rem;
  bottom: 0.5rem;
}
@media (max-width: 600px) {
  .result-guide {
    bottom: 17px;
    left: 3px;
  }
}

.result-card[data-arrangement="split"] .comparison-frames {
  grid-template-areas: "tailsteer api" "tailsteer base";
}
.result-card[data-arrangement="split"]
  .comparison-frame[data-role="tailsteer"] {
  grid-area: tailsteer;
}
.result-card[data-arrangement="split"] .comparison-frame[data-role="api"] {
  grid-area: api;
}
.result-card[data-arrangement="split"] .comparison-frame[data-role="base"] {
  grid-area: base;
}
@media (max-width: 600px) {
  .result-case-list {
    --prompt-height: 48px;
  }
}

.comparison-frame[data-role="api"] figcaption {
  white-space: normal;
}
.result-comparison-dialog .result-card {
  padding-top: 8px;
}

.evidence-split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  grid-template-rows: minmax(0, 1fr);
  gap: clamp(16px, 2.5cqw, 36px);
  flex: 1;
  min-height: 0;
}
.capability-layout .evidence-data {
  overflow: auto;
}
.evidence-data,
.evidence-images {
  min-width: 0;
  min-height: 0;
}
.evidence-images,
#preservation-charts {
  display: grid;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.evidence-model-row,
.curve-model {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}
.evidence-model-row h4,
.curve-model > h4 {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 8px;
  font-size: clamp(10px, 1.03cqw, 14px);
  font-weight: 500;
  color: #516b8d;
}
.evidence-model-row h4 small,
.curve-model > h4 small {
  color: #91a1b5;
  font-size: 9px;
  font-weight: 400;
}
.t2i-pairs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  min-height: 0;
  flex: 1;
}
.evidence-pair {
  min-height: 0;
  flex: 1;
  align-items: stretch;
}
.evidence-pair .comparison-frame {
  display: flex;
  flex-direction: column;
}
.evidence-pair .comparison-image {
  flex: 1;
  min-height: 0;
  background: transparent;
}
.preservation-layout .evidence-pair {
  flex: 1;
}
.preservation-layout .evidence-photo {
  height: 100%;
}
.evidence-pair img {
  object-fit: contain;
}
.evidence-pair figcaption {
  position: static;
  flex: none;
  background: transparent;
  padding: 5px 2px 0;
  font-size: clamp(7px, 0.72cqw, 10px);
  line-height: 1.25;
  min-height: 17px;
  white-space: normal;
  text-align: center;
}
.preservation-layout .evidence-pair figcaption {
  height: calc(2.5em + 5px);
}
.result-comparison-dialog
  .result-card[data-kind="preservation"]
  .comparison-frames {
  grid-template-columns: var(--comparison-aspects);
}

.comparison-frame[data-role="tailsteer"] figcaption {
  color: #fff;
  background: #692568;
}
.comparison-frame[data-role="tailsteer"] figcaption .tailsteer-accent {
  color: inherit;
}
.retention-table {
  width: 100%;
  height: 100%;
  border-collapse: collapse;
  font-size: clamp(9px, 1.03cqw, 14px);
  font-variant-numeric: tabular-nums;
  color: #607590;
}
.retention-table th,
.retention-table td {
  padding: 2px 8px;
  text-align: right;
  font-weight: 400;
}
.retention-table th:first-child {
  text-align: left;
  padding-left: 0;
}
.retention-table thead th {
  font-size: clamp(8px, 0.85cqw, 11px);
  color: #8395ad;
  padding-bottom: 9px;
  border-bottom: 1px solid #ccd7e6;
}
.retention-table .retention-model th {
  color: #315b9c;
  font-weight: 500;
  background: #edf2f8;
  padding: 6px 8px;
  font-size: clamp(9px, 1.05cqw, 14px);
}
.retention-model small {
  float: right;
  font-size: 9px;
  font-weight: 400;
  color: #8a9db7;
}
.retention-table .editing-start > * {
  border-top: 1px solid #e0e6ee;
}
.retention-table .score-refined {
  color: #315b9c;
  white-space: nowrap;
}
.retention-table .score-delta {
  display: inline-block;
  font-size: 8px;
  min-width: 30px;
  margin: 0 0 0 6px;
}
.evidence-footnote {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  margin-top: 12px;
  font-size: 8px;
}
.evidence-footnote span {
  text-align: right;
}
.evidence-split.preservation-layout {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 24px;
}
.preservation-key {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 10px;
  color: #7d90aa;
}
.chart-legend {
  display: flex;
  gap: 14px;
  font-size: 9px;
  color: #7189a7;
}
.chart-legend span {
  white-space: nowrap;
}
.chart-legend > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.chart-legend i {
  width: 12px;
  height: 2px;
}
.curve-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  flex: 1;
  min-height: 0;
}
.curve-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
}
.curve-tile h5 {
  font-size: 10px;
  color: #7a8da7;
  font-weight: 400;
  text-align: center;
  margin: 0;
}
.curve-tile svg {
  width: 100%;
  height: 100%;
  flex: 1;
  min-height: 0;
  overflow: visible;
}
.chart-grid {
  stroke: #dfe6ef;
  stroke-width: 1;
}
.chart-axis-label {
  font:
    11px Inter,
    sans-serif;
  fill: #8594a8;
}
.chart-axis-title {
  font-size: 9px;
}
.curve-tooltip {
  position: absolute;
  top: 18px;
  left: 4px;
  z-index: 2;
  background: #f8fafcf2;
  border: 1px solid #dde5ef;
  box-shadow: 0 6px 18px #315b9c12;
  border-radius: 6px;
  padding: 7px 9px;
  font-size: 9px;
  line-height: 1.6;
  white-space: nowrap;
  pointer-events: none;
  display: none;
}
.curve-tooltip span {
  display: block;
}
.curve-tooltip b {
  color: #71839c;
  font-weight: 500;
}
.curve-tile[data-inspect] .curve-tooltip {
  display: block;
}
.preservation-footer {
  display: flex;
  gap: 20px;
  margin-top: 15px;
  flex: none;
  align-items: flex-start;
  justify-content: space-between;
}
.preservation-links {
  display: flex;
  gap: 14px;
}
.preservation-footer button {
  font-size: 9px;
  color: #4b71a1;
  text-align: right;
  padding: 0;
}
.evidence-mobile-tabs {
  display: none;
}
.result-comparison-dialog .result-prompt {
  display: block;
  flex: none;
  max-width: 65.625rem;
  margin: 1.125rem auto 0;
  white-space: pre-wrap;
  overflow: visible;
  overflow-wrap: anywhere;
  text-overflow: clip;
  line-height: 1.6;
  color: #677c96;
}
.result-comparison-dialog .result-prompt::before {
  content: attr(data-label);
  display: block;
  margin-bottom: 5px;
  font-size: 10px;
  color: #8a9db7;
}
@media (max-width: 850px) {
  .evidence-split {
    gap: 14px;
  }
  .retention-table .score-delta {
    min-width: 24px;
    margin-left: 4px;
    font-size: 7px;
  }
  .evidence-split.preservation-layout {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 14px;
  }
  .preservation-links {
    flex-direction: column;
    gap: 5px;
  }
  .chart-legend {
    font-size: 8px;
    gap: 9px;
  }
  .evidence-model-row h4,
  .curve-model > h4 {
    font-size: 10px;
  }
  .evidence-model-row h4 small,
  .curve-model > h4 small {
    font-size: 8px;
  }
}
@media (max-width: 600px) {
  .evidence-mobile-tabs {
    display: flex;
    gap: 20px;
    margin: 0 0 12px;
  }
  .evidence-mobile-tabs button {
    padding: 0 0 5px;
    font-size: 11px;
    color: #8b9db4;
    border-bottom: 1px solid transparent;
  }
  .evidence-mobile-tabs button[aria-pressed="true"] {
    color: #315b9c;
    border-color: #8aa9d2;
  }
  .evidence-split,
  .evidence-split.preservation-layout {
    display: block;
    overflow: auto;
  }
  .evidence-split[data-panel="data"] > .evidence-images,
  .evidence-split[data-panel="images"] > .evidence-data {
    display: none !important;
  }
  .evidence-split > :is(.evidence-data, .evidence-images) {
    height: 100%;
  }
  .retention-table {
    font-size: 10px;
  }
  .retention-table th,
  .retention-table td {
    padding: 2px 7px;
  }
  .retention-table .retention-model th {
    padding: 5px 7px;
  }
  .retention-table .score-delta {
    font-size: 8px;
    min-width: 30px;
  }
  .t2i-pairs {
    gap: 8px;
  }
  .evidence-footnote {
    display: none;
  }
  .preservation-key {
    font-size: 9px;
    margin-bottom: 10px;
  }
  #preservation-charts {
    min-width: 520px;
  }
  .preservation-footer {
    margin-top: 10px;
    gap: 10px;
    flex-wrap: wrap;
  }
  .preservation-footer button {
    font-size: 8px;
  }
  .preservation-links {
    flex-direction: row;
    gap: 12px;
  }
  .evidence-slogan {
    margin-top: 12px;
  }
  .result-comparison-dialog
    .result-card[data-kind="preservation"]
    .comparison-frames {
    grid-template-columns: 1fr;
  }
  .result-comparison-dialog
    .result-card[data-kind="preservation"]
    .comparison-image {
    height: min(50vw, 26svh);
  }
  .result-comparison-dialog .result-prompt {
    font-size: 11px;
  }
}

.comparison-zoom { position:absolute; left:1.4rem; top:.64rem; display:flex; align-items:center; gap:.35rem; color:#425774; }
.comparison-zoom button { background:transparent; color:inherit; border:0; font:500 .82rem/1.35 Inter,sans-serif; cursor:pointer; padding:.23rem .35rem; }
.comparison-zoom button:disabled { opacity:.45; }
.comparison-zoom small { padding-inline:.35rem; font:.7rem/1.3 Inter,sans-serif; }
.result-comparison-dialog .comparison-image { overflow:hidden; touch-action:none; }
.result-comparison-dialog[data-zoomed="true"] .comparison-image { cursor:grab; }
.result-comparison-dialog[data-zoomed="true"] .comparison-image:active { cursor:grabbing; }
.result-comparison-dialog .comparison-image img {
  user-select:none;
  transform:translate(var(--image-x,0%),var(--image-y,0%)) scale(var(--image-scale,1));
}
.result-comparison-dialog .comparison-image[data-detail-state="loading"],
.result-comparison-dialog .comparison-image[data-detail-state="error"] { aspect-ratio: var(--frame-aspect, auto); }
