/* The observation rows fade as they reach the title's reading area. */
.project-title {
  position: relative;
  isolation: isolate;
  padding-block: clamp(48px, 4.6vw, 78px) 18px;
}
.memory-backdrop {
  position: absolute;
  z-index: -1;
  top: 10px;
  inset-inline: 12px;
  max-width: 2048px;
  height: clamp(214px, 24vw, 410px);
  margin-inline: auto;
  overflow: hidden;
  border-radius: 4px;
  pointer-events: none;
  opacity: .86;
  mask-image:
    radial-gradient(ellipse 53% 84% at 50% 80%, transparent 59%, rgb(0 0 0 / .08) 69%, rgb(0 0 0 / .65) 90%, black 106%),
    linear-gradient(to bottom, black 42%, rgb(0 0 0 / .85) 72%, transparent),
    linear-gradient(to right, transparent, black 1.5%, black 98.5%, transparent);
  mask-composite: intersect;
}
.memory-backdrop :is(picture, img, video) {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.memory-backdrop video { opacity: 0; }
.memory-backdrop video.has-frames { opacity: 1; }
[data-theme="dark"] .memory-backdrop { opacity: .53; }
.nav .scroll-line { background: var(--theme-accent); }
.nav .nav-pending {
  align-self: center;
  color: var(--theme-muted);
  font-size: 15px;
  font-weight: 550;
  cursor: default;
}
[data-theme="dark"] .nav .nav-film {
  background: color-mix(in srgb, var(--theme-accent) 13%, var(--panel));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--theme-accent) 40%, var(--panel));
}
.nav .nav-film:hover { text-decoration: underline; text-underline-offset: 3px; }
.nav .nav-links a[aria-current="location"] { color: var(--theme-accent); }
.nav .nav-links a[aria-current="location"]::after { transform: scaleX(1); }
.nav .nav-links a:focus-visible {
  outline: 2px solid var(--theme-accent);
  outline-offset: 2px;
  border-radius: 3px;
}

.paper-credits { --credit-mark: #70548a; }
.paper-byline {
  display: grid;
  grid-template-columns: repeat(5, max-content);
  justify-content: center;
  align-items: baseline;
  gap: 4px clamp(16px, 1.6vw, 28px);
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--theme-ink, #202c36);
  font-size: clamp(20px, 1.72vw, 26px);
  font-weight: 650;
  letter-spacing: -.023em;
  line-height: 1.45;
}
.paper-byline li { white-space: nowrap; }
.paper-byline a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, currentColor 42%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: .17em;
}
.paper-byline a:is(:hover, :focus-visible) {
  color: var(--theme-accent);
  text-decoration-color: currentColor;
}
.paper-byline a:focus-visible {
  border-radius: 3px;
  outline: 2px solid var(--theme-accent);
  outline-offset: 3px;
}
.paper-credits sup {
  position: static;
  vertical-align: super;
  color: var(--credit-mark);
  font-size: .62em;
  font-weight: 550;
  line-height: 0;
}
.paper-byline sup { margin-inline-start: .12em; letter-spacing: normal; }
.paper-institutions {
  display: grid;
  gap: 2px;
  margin-top: 14px;
  color: var(--theme-muted, #495967);
  font-size: clamp(14px, 1.04vw, 15.5px);
  font-weight: 400;
  line-height: 1.5;
}
.paper-institutions > div, .credit-notes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px 18px;
}
.paper-institutions sup, .credit-notes sup { font-size: .75em; }
.credit-notes {
  margin: 8px 0 0;
  color: var(--theme-muted, #536273);
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.5;
}
[data-theme="dark"] .paper-credits { --credit-mark: #ceb5e9; }
@media (min-width: 701px) and (max-width: 880px) {
  .paper-byline { display: flex; flex-wrap: wrap; gap: 3px 18px; }
}
@media (max-width: 700px) {
  .project-title { padding-top: clamp(77px, 19vw, 108px); }
  .memory-backdrop {
    height: clamp(60px, 15vw, 93px);
    inset-inline: 8px;
    mask-image:
      linear-gradient(to bottom, black 59%, rgb(0 0 0 / .8) 78%, transparent),
      linear-gradient(to right, transparent, black 3%, black 97%, transparent);
  }
  .paper-byline {
    grid-template-columns: repeat(2, max-content);
    column-gap: clamp(16px, 4.2vw, 30px);
    font-size: clamp(17px, 4.5vw, 20px);
  }
  .paper-institutions { margin-top: 12px; font-size: 13px; }
  .paper-institutions > div { column-gap: 12px; }
  .credit-notes { gap: 2px 12px; font-size: 12px; }
}
@media (max-width: 700px), (prefers-reduced-motion: reduce) {
  .memory-backdrop video { display: none; }
}
.paper-resources {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 20px auto 0;
  padding: 0;
  list-style: none;
}
.paper-resources :is(a, button) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  box-sizing: border-box;
  padding: 8px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #252a2e;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.25;
  text-decoration: none;
  white-space: nowrap;
}
.paper-resources svg {
  width: 16px;
  height: 16px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.paper-resources button:disabled {
  opacity: 1;
  color: var(--theme-muted);
  background: var(--panel-alt);
  border-color: var(--line);
  cursor: default;
}
.paper-resources .resource-source {
  color: var(--theme-ink);
  background: var(--panel);
  border-color: color-mix(in srgb, var(--theme-muted) 45%, var(--panel));
}
.paper-resources a:hover { text-decoration: underline; text-underline-offset: 3px; }
.paper-resources .resource-source:hover {
  color: var(--theme-accent);
  border-color: var(--theme-accent);
}
.paper-resources a:focus-visible { outline: 2px solid var(--theme-accent); outline-offset: 3px; }
.paper-resources small { font-size: 11px; font-weight: 500; }
.code-status { display: inline-flex; align-items: baseline; gap: 6px; }
[data-theme="dark"] .paper-resources a:not(.resource-source) {
  color: var(--page-bg);
  background: var(--theme-ink);
}
@media (max-width: 560px) {
  .paper-resources {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 360px;
    gap: 8px;
  }
  .paper-resources :is(a, button) { width: 100%; height: 100%; padding: 5px 8px; }
}
@media (max-width: 360px) {
  .code-status { flex-direction: column; align-items: flex-start; gap: 0; }
}
.motivation-overview { margin-top: 24px; }
.motivation-overview > summary { cursor: pointer; padding: 12px 0; font-weight: 650; }
.motivation-overview .motivation-figure { margin-top: 0; }

.abstract-section, .method-section.section-wrap {
  --paper-figure-inset: clamp(20px, 2.75vw, 38px);
  margin-block-start: clamp(40px, 5vw, 76px);
}
.method-section.section-wrap { padding-block-start: 0; }
:root {
  --paper-heading: #26394f;
  --paper-subheading: #365d59;
}
[data-theme="dark"] {
  --paper-heading: #dce7f5;
  --paper-subheading: #a8cbc3;
}
.paper-reading {
  margin: 0 0 clamp(24px, 3vw, 42px);
}
.paper-reading h2, .paper-analysis > h2 {
  margin: 0 0 .4em;
  color: var(--paper-heading);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.045em;
}
.paper-reading p {
  margin: 0;
  color: var(--theme-muted, #455760);
  font-size: clamp(16px, 1.2vw, 18px);
  line-height: 1.68;
}
.paper-reading strong { color: var(--theme-ink, #202c36); font-weight: 650; }
.method-section .architecture-card {
  margin-top: 0;
  padding-inline: var(--paper-figure-inset);
}
.method-section .motivation-overview { margin-top: clamp(22px, 3vw, 40px); }

.motivation-frame {
  padding: var(--paper-figure-inset);
  background: var(--panel, #fff);
  border: 1px solid var(--line, #dbe3df);
  border-radius: clamp(15px, 1.6vw, 23px);
}
.motivation-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
  align-items: center;
  gap: clamp(16px, 3vw, 48px);
}
.motivation-intro h3 {
  margin: 0;
  font-size: clamp(25px, 2.7vw, 38px);
  letter-spacing: -.045em;
  line-height: 1.1;
  text-wrap: balance;
}
.motivation-intro p, .motivation-frame .dual-card > p {
  margin: 0;
  color: var(--theme-muted, #455760);
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.55;
}
.motivation-frame .first-picks { margin: clamp(18px, 2vw, 27px) 0; }
.first-picks > a { display: block; cursor: zoom-in; }
.motivation-frame .first-picks figcaption {
  color: var(--theme-muted, #526369);
  font-size: 13px;
  line-height: 1.5;
}
.sparsity-pair {
  border-top: 1px solid var(--line, #dbe3df);
  padding-top: clamp(17px, 1.8vw, 25px);
}
.sparsity-pair h3 {
  margin: 0 0 18px;
  font-size: clamp(23px, 2vw, 30px);
  line-height: 1.2;
}
.motivation-intro h3, .sparsity-pair h3, #method-overview h3,
#analysis .experiment-fold > summary {
  color: var(--paper-subheading);
}
#analysis .figure-open { color: var(--theme-accent); }
#analysis .figure-open:hover { text-decoration: underline; }
.motivation-frame .dual-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
.motivation-frame .dual-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
[data-theme="dark"] .motivation-frame .dual-card { background: transparent; }
.motivation-frame .evidence-sparse { padding-inline-end: clamp(18px, 2.6vw, 38px); }
.motivation-frame .supervision-sparse {
  padding-inline-start: clamp(18px, 2.6vw, 38px);
  border-inline-start: 1px solid var(--line, #dbe3df);
}
.sparsity-pair h4 {
  margin: 0 0 7px;
  color: var(--theme-ink);
  font-size: clamp(18px, 1.45vw, 22px);
  line-height: 1.25;
}
#story .cue-filmstrip img.decisive {
  outline: 2px solid var(--theme-accent);
  box-shadow: none;
  animation: none;
}
#story .supervision-tokens i { background: var(--line); }
#story .supervision-tokens i.history-required {
  background: var(--theme-accent);
  box-shadow: none;
  animation: none;
}
.sparsity-visual {
  display: grid;
  align-content: end;
  flex: 1;
  gap: 9px;
  margin: 16px 0;
}
.sparsity-visual .cue-filmstrip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin: 0;
}
.sparsity-visual .cue-filmstrip img {
  width: 100%;
  height: auto;
  aspect-ratio: 1.9;
}
.sparsity-visual .supervision-tokens {
  grid-template-rows: repeat(2, minmax(0, 1fr));
  height: clamp(40px, 4.1vw, 62px);
  margin: 0;
}
.sparsity-visual figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 14px;
  margin: 0;
  color: var(--theme-muted, #526369);
  font-size: 12px;
  line-height: 1.5;
}
.observation-range { justify-content: space-between; }
.action-key span { display: inline-flex; align-items: center; gap: 6px; }
.action-key span::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--line);
}
.action-key span:last-child::before { background: var(--theme-accent); }
.sparsity-pair .trace-control { align-self: flex-start; margin: 0; font-size: 13px; }
@media (max-width: 760px) {
  .motivation-intro { grid-template-columns: 1fr; gap: 10px; }
  .motivation-frame .dual-grid { grid-template-columns: 1fr; gap: 20px; }
  .motivation-frame .evidence-sparse { padding-inline-end: 0; }
  .motivation-frame .supervision-sparse {
    padding: 18px 0 0;
    border-inline-start: 0;
    border-block-start: 1px solid var(--line, #dbe3df);
  }
}
.film-status { margin: 0; padding: 10px 14px; font-size: 13px; line-height: 1.6; background: #edf2ed; color: #254139; }
.film-status button { margin-inline: 7px; border: 1px solid currentColor; border-radius: 6px; background: transparent; color: inherit; padding: 3px 8px; font: inherit; cursor: pointer; }
.film-status a { color: inherit; }
[data-theme="dark"] .film-status { background: #202d29; color: #d7e8df; }

/* Only expanded playback changes layout; the inline two-column page is unchanged. */
.hero-cinema:fullscreen {
  width: 100vw; height: 100dvh; max-width: none; margin: 0;
  border: 0; border-radius: 0; display: flex; flex-direction: column;
}
.hero-cinema:-webkit-full-screen {
  width: 100vw; height: 100dvh; max-width: none; margin: 0;
  border: 0; border-radius: 0; display: flex; flex-direction: column;
}
.hero-cinema:fullscreen .hero-video-wrap {
  flex: 1; min-height: 0; aspect-ratio: auto;
}
.hero-cinema:-webkit-full-screen .hero-video-wrap {
  flex: 1; min-height: 0; aspect-ratio: auto;
}
.hero-cinema:fullscreen .hero-video-wrap video {
  width: 100%; height: 100%; object-fit: contain;
}
.hero-cinema:-webkit-full-screen .hero-video-wrap video {
  width: 100%; height: 100%; object-fit: contain;
}
#film-dialog[open] { display: flex; flex-direction: column; overflow: hidden; }
#film-dialog #film-modal-slot { display: flex; flex-direction: column; align-items: stretch; flex: 1; min-height: 0; }
#film-dialog #film-modal-slot > .hero-cinema {
  width: 100%; min-height: 0; margin: 0; flex: 1; align-self: stretch;
  display: flex; flex-direction: column; border: 0; border-radius: 0;
}
#film-dialog .hero-video-wrap { flex: 1; min-height: 0; aspect-ratio: auto; }
#film-dialog .hero-video-wrap video { width: 100%; height: 100%; object-fit: contain; }
/* The modal moves the cinema outside #project-film: retain its readable chrome. */
#film-dialog .hero-cinema { background:#eff4ef; }
#film-dialog :is(.cinema-top,.inline-chapters) { background:#eff4ef; color:#254139; flex:none; }
#film-dialog .cinema-top { gap:6px; flex-wrap:wrap; padding:10px 14px; }
#film-dialog .cinema-label { color:#254139; margin-right:auto; font-size:13px; }
#film-dialog .soundless-toggle {
  color:#254139; background:#fff; border:1px solid #d5dfd6;
  border-radius:7px; font-size:13px; padding:7px 12px;
}
#film-dialog .inline-chapters button { color:#383048; font-size:13px; padding:6px 8px; }
#film-dialog .inline-chapters span { color:#625379; }
#film-dialog .inline-chapters button:is(:hover,[aria-current="true"]) {
  background:#d8e9df; border-color:#b9d4c5; color:#163e33;
}
[data-theme="dark"] #film-dialog :is(.hero-cinema,.cinema-top,.inline-chapters,.soundless-toggle) {
  background:var(--panel); color:var(--theme-ink); border-color:var(--line);
}
[data-theme="dark"] #film-dialog :is(.cinema-label,.inline-chapters button,.inline-chapters span) { color:var(--theme-ink); }
[data-theme="dark"] #film-dialog .inline-chapters button:is(:hover,[aria-current="true"]) {
  background:#35514a; border-color:#527269; color:var(--theme-ink);
}
/* Bound the media box independently of the video's intrinsic dimensions. */
.hero-cinema:fullscreen, .hero-cinema:-webkit-full-screen { overflow: hidden; padding: 0; }
.hero-cinema:fullscreen .hero-video-wrap,
.hero-cinema:-webkit-full-screen .hero-video-wrap,
#film-dialog .hero-video-wrap { position: relative; display: block; min-width: 0; width: 100%; }
.hero-cinema:fullscreen .hero-video-wrap video,
.hero-cinema:-webkit-full-screen .hero-video-wrap video,
#film-dialog .hero-video-wrap video { position: absolute; inset: 0; min-width: 0; min-height: 0; max-width: 100%; max-height: 100%; aspect-ratio: auto; }
.hero-cinema:fullscreen .cinema-top, .hero-cinema:fullscreen .inline-chapters,
.hero-cinema:-webkit-full-screen .cinema-top, .hero-cinema:-webkit-full-screen .inline-chapters { flex: none; }
@media (max-height:500px) and (orientation:landscape) {
  .hero-cinema:fullscreen .inline-chapters, .hero-cinema:-webkit-full-screen .inline-chapters,
  #film-dialog .inline-chapters { display: none; }
  .hero-cinema:fullscreen .cinema-top, .hero-cinema:-webkit-full-screen .cinema-top,
  #film-dialog .cinema-top { padding: 4px 12px; }
}

/* Keep section anchors clear of the sticky navigation. */
#abstract, #story, #dual-sparsity, #requirements, #method { scroll-margin-top: 0; }
.section-load-retry { margin-block: 8px; }
@media (max-width: 560px) {
  .cinema-top { display: flex; flex-wrap: wrap; gap: 5px; }
  .cinema-top .cinema-label { flex-basis: 100%; }
  .cinema-top .soundless-toggle { padding-inline: 8px; }
  .episode-grid .episode-open > small { line-height: 1.35; }
}

/* Three observation slots with a narrow marker after the masked slot. */
.recent-photos, .mpe-recent {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 6px;
  padding: 3px;
  height: auto;
}
.mpe-recent {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 4px minmax(0, 1fr);
}
.recent-photos > img, .mpe-recent > img, .mpe-recent > .masked-slot {
  box-sizing: border-box;
  display: block;
  width: 100%;
  height: clamp(46px, 5vw, 64px);
  min-width: 0;
  object-fit: contain;
}
.mpe-recent .masked-slot > img { display: block; object-fit: contain; }

/* All three experiment disclosures use the same full-width control. */
#results .task-breakdown { padding: 0; }
.task-breakdown > .breakdown-heading {
  display: block;
  margin: 0;
  padding: 0;
  border-radius: inherit;
}
#table-toggle, .experiment-fold > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 16px clamp(14px, 2vw, 24px);
  border: 0;
  border-radius: inherit;
  background: transparent;
  color: inherit;
  text-align: left;
  font: inherit;
  font-size: clamp(17px, 1.45vw, 21px);
  font-weight: 650;
  line-height: 1.3;
  cursor: pointer;
}
#table-toggle:hover, .experiment-fold > summary:hover { background: color-mix(in srgb, currentColor 5%, transparent); }
#table-toggle:focus-visible, .experiment-fold > summary:focus-visible { outline-offset: -4px; }
.breakdown-chevron {
  width: 9px;
  height: 9px;
  margin-right: 4px;
  flex: none;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  rotate: 45deg;
}
#table-toggle[aria-expanded="true"] .breakdown-chevron,
.experiment-fold[open] > summary .breakdown-chevron { rotate: 225deg; }
#results .experiment-fold, #analysis .experiment-fold {
  margin: 10px 0 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--panel);
  color: var(--theme-ink);
}
.experiment-fold > summary {
  list-style: none;
}
.experiment-fold > summary::-webkit-details-marker { display: none; }
#table-toggle[aria-expanded="true"], .experiment-fold[open] > summary {
  border-radius: 16px 16px 0 0;
  background: var(--panel-alt);
}
.experiment-fold[open] > summary .breakdown-chevron { color: var(--theme-accent); }
.experiment-fold-body, #task-breakdown-body {
  padding: clamp(12px, 2vw, 24px);
  border-top: 1px solid var(--line);
}
.paper-analysis { margin-block: clamp(40px, 5vw, 76px); }

#results .experiments-heading {
  align-items: baseline;
  margin-bottom: clamp(22px, 3vw, 36px);
}
#experiments { color: var(--paper-heading); }
.experiment-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 3vw, 42px);
  margin-bottom: 20px;
}
.experiment-overview h3 {
  margin: 0 0 14px;
  color: var(--paper-subheading);
  font-size: clamp(20px, 1.7vw, 25px);
  line-height: 1.2;
  letter-spacing: -.035em;
}
.platform-figure { margin: 0; }
.platform-figure button {
  display: block;
  position: relative;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: zoom-in;
}
.platform-figure .platform-image {
  display: block;
  width: 100%;
  height: auto;
  border: 0;
  border-radius: 0;
}
.platform-zoom {
  position: absolute;
  inset: auto 6px 6px auto;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid #cad5da;
  border-radius: 6px;
  background: white;
  color: #263c44;
  line-height: 1;
}
.platform-figure figcaption {
  margin-top: 14px;
  color: var(--theme-muted);
  font-size: 15px;
  line-height: 1.55;
}
.platform-figure figcaption strong {
  display: block;
  margin-bottom: 4px;
  color: var(--theme-ink);
  font-size: 17px;
}
.platform-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 0;
}
.platform-facts > div { border-top: 1px solid var(--line); padding-top: 8px; }
.platform-facts dt { color: var(--theme-muted); font-size: 13px; }
.platform-facts dd { margin: 3px 0 0; color: var(--theme-ink); font-size: 15px; font-weight: 600; }
@media (min-width: 900px) {
  .experiment-overview { grid-template-columns: minmax(0, 32fr) minmax(0, 68fr); }
  #results .leaderboard-stage { grid-template-columns: minmax(136px, .28fr) minmax(0, 1fr); gap: 8px !important; }
  #results .leaderboard-tabs button { flex-wrap: wrap; gap: 2px 8px; padding: 10px 12px; font-size: 14px; }
  #results .leaderboard-tabs button b { font-size: 18px; font-variant-numeric: tabular-nums; }
  #results .rank-spotlight, #results .rank-comparison { padding: clamp(10px, 1.1vw, 17px); }
  #results .rank-spotlight .eyebrow { letter-spacing: .045em; }
  #results .rank-spotlight .eyebrow span { white-space: nowrap; }
  #results .rank-spotlight > strong { font-size: clamp(46px, 4.4vw, 64px); letter-spacing: -.06em; }
  #results .rank-spotlight > strong small { font-size: .43em; }
  #results .rank-gain { font-size: 28px; }
  #results .rank-gain small { display: block; margin: 0; letter-spacing: 0; }
  #results .rank-detail { padding: 9px; line-height: 1.35; }
  #results .rank-column-head { padding: 0 5px 9px; font-size: 10px; }
  #results .rank-list { gap: 2px; }
  #results .rank-list li {
    grid-template-columns: 16px minmax(88px, 1fr) minmax(42px, .85fr) 52px;
    gap: 6px;
    min-height: 40px;
    padding: 5px;
  }
  #results .rank-list li.is-ours { margin-bottom: 3px; padding-block: 7px; }
  #results .rank-method strong { font-size: 14px; }
  #results .rank-method > span { font-size: 11px; margin-top: 0; }
  #results .rank-list .rank-value { font-size: 17px; }
  #results .rank-note { margin: 10px 5px 0; }
}
@media (max-width: 600px) {
  .experiment-fold-body, #task-breakdown-body { padding-inline: 8px; }
}

/* Preserve the camera framing while avoiding a per-frame SVG sharpen pass. */
#gallery-panel { scroll-margin-top: 86px; }
#gallery-panel[data-real=true] .recording-screen[data-framing=workspace] video {
  filter: brightness(1.04) contrast(1.03);
}
