.method-diagram {
  --flow: #087870; --flow-soft: #e1f1ed; --rail: #9aaeb1;
  width: min(100%, 1000px); margin: 12px auto 8px; color: #20363b;
}
.method-diagram[data-phase="gradient"] { --flow: #a04e20; --flow-soft: #f9ecdf; }
.method-controls, .method-phases { display: flex; align-items: center; justify-content: center; }
.method-controls { flex-wrap: wrap; gap: 6px 12px; margin: 12px 0; }
.method-phases { gap: 2px; padding: 3px; border-radius: 7px; background: #edf2f2; }
.method-diagram button { font: inherit; cursor: pointer; }
.method-controls button { font-size: 13px; border: 0; border-radius: 5px; padding: 6px 10px; background: transparent; color: #3e5358; }
.method-phases button[aria-pressed="true"] { background: white; color: var(--flow); box-shadow: 0 1px 4px #20363b23; font-weight: 600; }
.method-play::before { content: ""; display: inline-block; margin-right: 7px; border-block: 4px solid transparent; border-left: 7px solid currentColor; }
.method-play.playing::before { width: 7px; height: 7px; border: 0; background: currentColor; }
.method-diagram button:focus-visible { outline: 2px solid #2082a4; outline-offset: 2px; }
.method-schematic { padding: 6px 10px; background: #f6f8f8; border-radius: 9px; }
.method-schematic svg { display: block; width: 100%; margin: auto; }
.method-schematic .method-narrow { display: none; }
.method-schematic svg:empty, .method-diagram:has(.method-wide:empty) .method-controls { display: none; }
.method-objectives { display: flex; justify-content: center; align-items: baseline; width: 69.66%; margin: 0 0 5px; padding: 0; list-style: none; color: #52686c; font-size: 13px; line-height: 1.3; }
.method-objectives li { position: relative; padding: 0 7px; text-align: center; }
.method-objectives li + li::before { content: "·"; position: absolute; left: 0; transform: translateX(-50%); }
.method-objectives strong { color: #223a40; font-weight: 700; }
.method-node .node-box { fill: #fff; stroke: #b6c5c6; stroke-width: 1.2; }
.method-schematic text { font-family: var(--sans); text-anchor: middle; fill: #223a40; }
.method-node .node-name { font-size: 12.5px; font-weight: 600; }
.method-node .node-detail, .method-source { font-size: 12px; }
.method-schematic .node-detail, .method-schematic .method-source { fill: #52686c; }
.token-grid { color: #467d75; }
.method-node.current .token-grid { color: white; }
.method-head .node-name { font: 600 14px var(--mono); }
.method-schematic .head-title { font-size: 15px; font-weight: 600; }
.method-node.visited .node-box { stroke: var(--flow); fill: var(--flow-soft); }
.method-node.current .node-box { fill: var(--flow); stroke: var(--flow); stroke-width: 2; }
.method-node.current :is(.node-name,.node-detail) { fill: white; }
.head-slot { fill: none; stroke: #b6c5c6; stroke-dasharray: 2 4; }
.head-instance { opacity: .66; }
.method-diagram.animating:not([data-phase="gradient"]) .method-head:not(.visited) .head-instance { opacity: 0; }
.method-head.visited .head-instance, [data-phase="gradient"] .head-instance { opacity: 1; }
.method-diagram.animating:not([data-phase="gradient"]) .method-head.current .head-instance { animation: method-unroll 125ms cubic-bezier(.2,.72,.22,1) both; }
@keyframes method-unroll { from { transform: translateX(var(--unroll-from)); opacity: .35; } to { transform: translateX(0); opacity: 1; } }
.method-wire { --wire: var(--rail); }
.method-wire path { fill: none; stroke-linejoin: round; stroke-linecap: round; }
.method-wire .rail { stroke: var(--wire); stroke-width: 1.5; }
.method-wire.update .rail { stroke: #ba835d; stroke-dasharray: 3 5; }
.method-wire.active { --wire: var(--flow); }
.method-wire .signal { visibility: hidden; stroke: var(--flow); stroke-width: 3.5; stroke-dasharray: .2 1.3; }
.method-diagram.animating .method-wire.active .signal { visibility: visible; animation: method-transfer 135ms ease-in-out both; }
.method-diagram[data-phase="gradient"] .method-wire.active .signal { animation-direction: reverse; }
@keyframes method-transfer {
  0% { stroke-dashoffset: .21; opacity: 0; }
  15%, 80% { opacity: 1; }
  100% { stroke-dashoffset: -1; opacity: 0; }
}
.method-step-note { margin: 14px auto 0; max-width: 84ch; text-align: center; }
#method .method-step-note p { margin: 0; font-size: 14px; line-height: 1.55; text-wrap: pretty; }
@media (max-width: 740px) {
  .method-schematic { padding: 8px 2px; }
  .method-schematic .method-wide { display: none; }
  .method-schematic .method-narrow { display: block; max-width: 405px; }
  .method-objectives { width: 100%; }
  .method-objectives li { padding-inline: 5px; }
  .method-controls button { font-size: 12px; padding: 6px 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .method-play, .method-wire .signal { display: none; }
  .method-diagram.animating:not([data-phase="gradient"]) .method-head.current .head-instance { animation: none; }
}
.channels-detail {
  border-top: 1px solid #d6dee2;
  padding-top: 10px;
}
.channels-scroll {
  overflow-x: auto;
  max-width: 100%;
  margin: 14px 0;
}
.channels-detail table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  color: #364850;
  font-variant-numeric: tabular-nums;
}
.channels-detail caption {
  text-align: center;
  padding: 4px 0 10px;
  color: #35444b;
  font-weight: 600;
}
.channels-detail :is(th,td) {
  padding: 7px 10px;
  border-bottom: 1px solid #e2e8eb;
  text-align: center;
  white-space: nowrap;
}
.channels-detail tbody th {
  font-weight: 500;
}
.channels-detail th[scope="row"], .channels-detail thead th[rowspan] {
  text-align: right;
}
.channels-detail .method-citation {
  color: #53656c;
  font-weight: 400;
}
.channels-detail thead {
  background: #f2f5f6;
  color: #31454e;
}
.channels-detail thead th[colspan] {
  text-align: center;
}
.channels-detail .our-row {
  background: #e0f2ee;
  color: #114f4a;
  font-weight: 600;
}
.paper-section .channels-detail p {
  font-size: 13px;
  max-width: 95ch;
}

.paper-section.rollout-card { display: block; }
.rollout-card { color: #22343d; min-width: 0; scroll-margin-top: 12px; }
.rollout-card [hidden] { display: none !important; }
:where(.rollout-card) :is(button,select) { font: inherit; cursor: pointer; }
.rollout-card :is(button,input,select,canvas):focus-visible { outline: 3px solid #277daf; outline-offset: 2px; }
.rollout-card label { display: inline-flex; align-items: center; gap: 5px; color: #495f65; font-size: 12px; }
.rollout-card input[type=checkbox] { accent-color: #087674; width: 14px; height: 14px; margin: 0; }
.featured-head, .rollout-top, .roll-header-actions {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.featured-intro { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: center; gap: 8px; }
.paper-section .featured-intro h2 { font-size: clamp(24px, 2.2vw, 28px); }
.featured-intro h2 { grid-column: 2; text-align: center; }
.featured-intro .inline { justify-self: end; font-size: 13px; }
.replay-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px 12px; align-items: start; }
.featured-head { min-height: 32px; padding-bottom: 4px; }
.featured-head h3 { line-height: 1.2; }
.roll-header-actions { flex-shrink: 0; gap: 4px; }
.rollout-top { padding: 0 0 9px; flex-wrap: wrap; }
.paper-section .rollout-top p { font-size: 13px; margin: 3px 0 0; }
.roll-camera-controls button, select.roll-speed {
  background: #f2f5f5; color: #2a484e; border: 0; border-radius: 4px; font-size: 12px; padding: 4px 6px;
}
.roll-camera-controls .roll-pan[aria-pressed=true] { background: #24535a; color: #fff; }
.rollout-controls { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.roll-switch { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.roll-switch button {
  display: inline-flex; align-items: center; gap: 5px; border: 0; background: transparent;
  color: #4c5d65; border-radius: 4px; padding: 5px 7px; font-size: 12px;
}
.roll-switch button[aria-pressed=true] { background: #e5efed; color: #193b45; font-weight: 600; }
.featured-view { position: relative; min-width: 0; container-type: inline-size; }
.featured-view > .roll-switch {
  position: absolute; z-index: 2; top: 6px; left: 6px; max-width: calc(100% - 12px);
  gap: 2px; padding: 2px; border-radius: 6px; background: #fffffff2; box-shadow: 0 1px 4px #25373724;
}
.featured-view .roll-switch button { padding: 4px 7px; font-size: 11px; line-height: 1.25; min-height: 24px; }
.featured-view .roll-switch button[aria-pressed=true] { background: #24535a; color: white; }
.trace-dot { display: inline-block; width: 12px; height: 3px; border-radius: 2px; }
.roll-loading { padding: 14px; font-size: 13px; background: #ecf1f2; border-radius: 5px; }
.featured-replay[aria-busy=true] .roll-loading { display: grid; place-content: center; aspect-ratio: 1.85; }
.rollout-stage {
  position: relative; isolation: isolate; container-type: inline-size; width: 100%; height: clamp(320px,49vw,490px);
  border-radius: 5px; overflow: hidden; background: #e1e8ea;
}
.featured-replay .rollout-stage { height: auto; aspect-ratio: 1.85; }
.roll-arm, .roll-film { display: block; width: 100%; height: 100%; }
.roll-arm { cursor: grab; touch-action: none; }
.roll-arm:active { cursor: grabbing; }
.roll-film { object-fit: contain; background: #172022; }
.roll-overlays { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.roll-map-point { pointer-events: all; cursor: pointer; }
.roll-map-point .pickup, .roll-map-point .destination { fill: #087c49; stroke: white; stroke-width: 1.8; }
.roll-map-point .destination { fill: #754aa7; }
.roll-map-point:is(:focus-visible,:hover) circle:last-of-type { stroke: #ffe270; stroke-width: 3; }
.roll-stem, .roll-shift, .roll-zone-equator { fill: none; stroke: #395b4c; stroke-width: 1.25; }
.roll-shift { stroke: white; stroke-width: 2.8; filter: drop-shadow(0 1px 1px #30433e); }
.roll-zone-fill { fill: #dc354839; stroke: #aa203b; stroke-width: 1.3; }
.roll-zone-equator { stroke: #ad233c; stroke-width: 1.5; }
.roll-marker-detail, .roll-clearance {
  background: #fffffff0; padding: 3px 6px; color: #28454a; border: 0; border-radius: 4px; font-size: 11px;
}
.roll-marker-detail { position: absolute; left: 6px; top: 6px; max-width: 55%; pointer-events: none; }
.featured-view .roll-marker-detail { top: auto; bottom: 6px; }
.roll-clearance { position: absolute; left: 6px; bottom: 6px; font-variant-numeric: tabular-nums; }
.roll-clearance.inside { color: #a32530; }
.roll-camera-controls { display: inline-flex; align-items: center; gap: 3px; }
.roll-monitor {
  position: absolute; top: 5px; right: 5px; z-index: 2; width: clamp(104px,34%,230px);
  overflow: hidden; border-radius: 3px; background: #172022;
}
.roll-monitor.expanded { width: min(48%,320px); }
.roll-monitor-toggle { position: relative; display: block; width: 100%; border: 0; padding: 0; background: #172022; cursor: zoom-in; }
.roll-monitor-toggle[aria-expanded=true] { cursor: zoom-out; }
.roll-monitor-toggle:focus-visible { outline-offset: -3px; }
.roll-monitor-video { display: block; width: 100%; aspect-ratio: 1; pointer-events: none; }
.roll-register-grid { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; fill: none; stroke: #58cfef; stroke-width: .15; }
.roll-monitor-key { padding: 4px 6px; display: grid; gap: 4px; color: white; font-size: 10px; }
.roll-monitor-key label { color: white; font-size: 11px; }
.roll-orbit { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.roll-inset {
  position: absolute; right: 6px; bottom: 6px; width: clamp(66px,18%,118px);
  border-radius: 4px; margin: 0; padding: 3px; background: #fffffff2;
}
.roll-inset canvas { display: block; width: 100%; height: auto; }
.roll-inset figcaption { font-size: 10px; text-align: center; }
.roll-timeline { padding: 5px 0 3px; display: flex; align-items: center; gap: 7px; }
.roll-play { min-width: 49px; background: #25484d; color: #fff; border: 0; border-radius: 4px; padding: 4px 7px; font-size: 12px; }
.featured-replay label.roll-speed { font-size: 0; gap: 0; }
.roll-scrub { flex: 1; min-width: 22px; accent-color: #147b76; cursor: pointer; margin: 0; }
.roll-time { font-variant-numeric: tabular-nums; font-size: 11px; white-space: nowrap; }
.roll-path-legend { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 12px; padding: 3px 0; font-size: 11px; color: #354d53; }
.roll-path-legend span { display: inline-flex; gap: 4px; align-items: center; }
.roll-path-legend i { width: 16px; border-top: 3px solid; }
.plate-rim { fill: none; stroke-width: 1.5; }
.plate-rim.original { stroke: #664d92; stroke-dasharray: 4 3; }
.plate-rim.moved { stroke: #086b64; }
.plate-label { font: 600 11px system-ui,sans-serif; fill: #184d49; paint-order: stroke; stroke: #fffffff5; stroke-width: 3px; stroke-linejoin: round; }
.plate-label.original { fill: #59407f; }
.roll-reference-path { fill: none; stroke-width: 2px; stroke-linecap: round; stroke-linejoin: round; }
.featured-replay:not([data-policy="openvla"]) .roll-reference-path { stroke-width: 1.4px; }
.roll-reference-path.dashed { stroke-dasharray: 6 4; }
.roll-foot { display: flex; align-items: baseline; justify-content: space-between; gap: 4px 12px; flex-wrap: wrap; }
.paper-section .roll-result { font-size: 13px; color: #28494a; }
.roll-foot span, .roll-figure-note { font-size: 12px; color: #53656b; }
.featured-replay .roll-foot, .featured-replay .roll-path-legend { justify-content: center; text-align: center; }
.featured-replay .roll-foot span { display: none; }
.roll-figure-note { border-top: 1px solid #e2e8e9; display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 7px; padding-top: 7px; }
.paper-section .roll-figure-note p { width: 100%; font-size: 12px; }
.gallery-choices { position: relative; display: grid; grid-template-columns: repeat(9,minmax(0,1fr)); gap: 6px; margin: 0 0 8px; }
.gallery-choices button {
  display: grid; align-content: start; gap: 3px; border: 0; border-bottom: 2px solid transparent;
  padding: 0 0 3px; background: none; text-align: left; font-size: 11px; line-height: 1.2; color: #495f65;
}
.gallery-choices button[aria-pressed=true] { border-color: #147b76; color: #185958; }
.gallery-choices img { display: block; width: 100%; aspect-ratio: 2.2; object-fit: cover; border-radius: 3px; }
@media (min-width:621px) {
  .featured-replay { display: grid; grid-row: span 2; grid-template-rows: subgrid; row-gap: 4px; align-self: stretch; }
  .featured-replay .featured-head { flex-direction: column; align-items: flex-start; gap: 4px; padding: 0; }
}
@media (max-width:790px) {
  .gallery-choices { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 6.5rem; overflow-x: auto; padding-bottom: 3px; }
  .featured-replay .rollout-stage { aspect-ratio: 1.5; }
  .featured-head { flex-wrap: wrap; gap: 2px 5px; }
}
@media (max-width:620px) {
  .replay-grid { grid-template-columns: 1fr; }
  .featured-replay .rollout-stage { aspect-ratio: 1.7; }
  .rollout-stage { height: clamp(265px,76vw,360px); }
  .roll-header-actions :is(select,button), .roll-timeline :is(select,button) { min-height: 26px; }
  .featured-intro { grid-template-columns: 1fr; justify-items: center; gap: 4px; }
  .featured-intro h2 { grid-column: 1; }
  .featured-intro .inline { justify-self: center; }
}

@container (max-width: 760px) {
  .roll-monitor.expanded { display: flex; flex-direction: row-reverse; align-items: center; width: min(88%,450px); }
  .roll-monitor.expanded .roll-monitor-toggle { width: 64%; flex-shrink: 0; }
  .roll-monitor-key { flex: 1; min-width: 0; }
}
@container (max-width: 455px) {
  .featured-replay[data-policy="openvla"] .roll-switch { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
  .featured-replay[data-policy="openvla"] .roll-switch button { display: block; text-wrap: balance; }
  .featured-view .roll-timeline { display: grid; grid-template-columns: auto auto 1fr auto; gap: 4px 6px; }
  .featured-view .roll-camera-controls { flex-wrap: wrap; }
  .featured-view .roll-scrub { grid-column: 1 / -2; width: 100%; }
  .featured-view .roll-time { grid-column: -2 / -1; }
}
