:root {
  color-scheme:light;
  --ink:#303438;
  --muted:#697176;
  --accent:#24756b;
  --line:#e0e6e4;
  --soft:#f5f8f7;
  --depth:#27766b;
  font-family:Arial,Helvetica,sans-serif;
  color:var(--ink);
  background:#fff;
  font-synthesis:none;
}
* {
  box-sizing:border-box;
}
html {
  scroll-behavior:smooth;
  scroll-padding-top:24px;
}
body {
  margin:0;
  font-size:18px;
  line-height:1.65;
}
a {
  color:var(--accent);
  text-decoration:none;
}
a:hover {
  text-decoration:underline;
}
button,input {
  font:inherit;
}
button,a,input,summary {
  touch-action:manipulation;
}
button {
  cursor:pointer;
}
button:disabled {
  cursor:default;
}
button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible,[tabindex]:focus-visible {
  outline:3px solid var(--accent);
  outline-offset:5px;
}
img {
  max-width:100%;
  display:block;
  height:auto;
}
figure,p,h1,h2,h3 {
  margin:0;
}
figure {
  min-width:0;
}
svg {
  width:20px;
  height:20px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.7;
  stroke-linecap:round;
  stroke-linejoin:round;
}
[hidden] {
  display:none!important;
}
.text-column {
  width:min(960px,calc(100% - 48px));
  margin-inline:auto;
}
.media-column {
  width:min(1200px,calc(100% - 48px));
  margin-inline:auto;
}
.section {
  margin-top:72px;
}
h1 {
  font-size:44px;
  line-height:1.16;
  letter-spacing:-1.65px;
  font-weight:650;
}
h2 {
  font-size:30px;
  line-height:1.25;
  letter-spacing:-.6px;
  font-weight:600;
  text-align:center;
  margin-bottom:22px;
}
h3 {
  font-size:21px;
  line-height:1.35;
  font-weight:600;
  text-align:left;
}
figcaption {
  color:var(--muted);
  font-size:15px;
  line-height:1.5;
  margin-top:14px;
  text-align:center;
}
.section-intro {
  max-width:720px;
  margin:-7px auto 28px;
  text-align:center;
  color:var(--muted);
}
.section-action {
  text-align:center;
  margin-top:28px;
}
.text-link {
  font-size:18px;
  font-weight:600;
}
.skip-link {
  position:fixed;
  left:-10000px;
  top:12px;
  background:white;
  padding:10px;
  z-index:100;
}
.skip-link:focus {
  left:20px;
}
.site-nav {
  display:flex;
  justify-content:center;
  align-items:center;
  gap:32px;
  min-height:62px;
  border-bottom:1px solid #edf0ef;
  font-size:15px;
  line-height:1.2;
}
.site-nav a {
  color:#636b6e;
  padding:20px 0;
  position:relative;
}
.site-nav a:hover,.site-nav a[aria-current] {
  color:var(--accent);
}
.site-nav a[aria-current]::after {
  content:'';
  position:absolute;
  bottom:-1px;
  height:2px;
  background:var(--accent);
  left:0;
  right:0;
}
.paper-header {
  text-align:center;
  padding-top:51px;
  padding-bottom:35px;
}
.paper-header h1 {
  max-width:960px;
  margin:0 auto 25px;
}
.paper-header h1 span {
  display:block;
}
.authors {
  display:flex;
  justify-content:center;
  gap:28px;
  font-size:20px;
  line-height:1.5;
}
.affiliation {
  margin:7px 0 22px;
  font-size:18px;
}
.paper-links {
  display:flex;
  justify-content:center;
  gap:10px;
  flex-wrap:wrap;
}
.resource-pill,.button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  background:#353a3d;
  color:white;
  border:1px solid #353a3d;
  border-radius:999px;
  font-size:15px;
  font-weight:500;
  line-height:1.3;
  padding:11px 18px;
  text-decoration:none;
}
.resource-pill:hover,.button:hover {
  background:#465653;
  text-decoration:none;
}
.resource-pill.disabled {
  background:#62696c;
  border-color:#62696c;
  color:#fff;
  opacity:.72;
  cursor:default;
}
.button:disabled {
  background:#777e7b;
  border-color:#777e7b;
}
.teaser img {
  width:100%;
}
.teaser figcaption {
  margin:12px auto 0;
}
.abstract-section {
  max-width:960px;
}
.abstract-section p {
  text-align:justify;
}
.abstract-more {
  margin-top:10px;
}
.abstract-more summary {
  font-size:15px;
  color:var(--accent);
  cursor:pointer;
  width:fit-content;
}
.abstract-more p {
  margin-top:12px;
}
.viewer-shell {
  border:1px solid var(--line);
  border-radius:8px;
  overflow:hidden;
  background:white;
}
.viewer-toolbar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:12px 18px;
  border-bottom:1px solid var(--line);
  font-size:14px;
  background:var(--soft);
}
.viewer-state {
  display:flex;
  align-items:center;
  gap:9px;
}
.status-dot {
  display:inline-block;
  flex:none;
  width:7px;
  height:7px;
  border-radius:50%;
  background:var(--accent);
}
.viewer-toolbar .button {
  font-size:14px;
  padding:8px 15px;
}
#viewer-frame {
  position:relative;
  width:100%;
  aspect-ratio:1400/830;
}
#world-viewer {
  width:100%;
  height:100%;
  border:0;
  display:block;
}
#viewer-loading {
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:20px;
  background:#fff;
  color:var(--muted);
  font-size:15px;
  pointer-events:none;
}
.loader {
  width:28px;
  height:28px;
  border:2px solid var(--line);
  border-top-color:var(--accent);
  border-radius:50%;
  animation:spin 1s linear infinite;
}
@keyframes spin {
  to {
    transform:rotate(360deg);
  }
}
.viewer-caption {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  font-size:15px;
  margin:14px 0 0;
  color:var(--muted);
}
.fallback {
  padding-top:20px;
}
.fallback>p {
  font-size:16px;
}
.novel-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
  margin-top:18px;
}
.preview-strip {
  display:flex;
  gap:16px;
  overflow-x:auto;
  padding:5px 5px 12px;
  scrollbar-width:thin;
  scrollbar-color:#9caeaa transparent;
}
.preview-strip button {
  flex:1;
  min-width:135px;
  border:1px solid transparent;
  border-radius:5px;
  background:#fff;
  padding:7px 8px 10px;
  color:var(--muted);
  font-size:15px;
  line-height:1.4;
}
.preview-strip button img {
  width:100%;
  height:94px;
  object-fit:contain;
  margin-bottom:9px;
}
.preview-strip button:hover {
  background:var(--soft);
}
.preview-strip button[aria-pressed=true] {
  color:var(--accent);
  border-color:var(--accent);
  background:var(--soft);
  font-weight:600;
}
.preview-heading {
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:12px;
  margin:18px 0 14px;
}
.preview-heading span {
  font-size:14px;
  color:var(--muted);
}
.matched-pair {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:24px;
}
.matched-pair figcaption {
  font-size:15px;
  text-align:left;
  margin:0 0 9px;
  color:var(--muted);
}
.matched-pair a {
  display:block;
  border:1px solid var(--line);
  border-radius:5px;
  overflow:hidden;
  background:white;
}
.matched-pair img {
  width:100%;
  aspect-ratio:7/5;
  object-fit:contain;
}
.preview-note,.image-note {
  font-size:14px;
  color:var(--muted);
  margin-top:12px;
}
.preview-note {
  text-align:center;
}
.comparison {
  position:relative;
  overflow:hidden;
  isolation:isolate;
  aspect-ratio:1400/963;
  background:#fff;
  border:1px solid var(--line);
  border-radius:6px;
  --split:50%;
}
.compare-image {
  width:100%;
  height:100%;
  object-fit:contain;
}
.compare-before {
  position:absolute;
  inset:0;
  clip-path:inset(0 calc(100% - var(--split)) 0 0);
  pointer-events:none;
}
.image-tag {
  position:absolute;
  top:16px;
  border-radius:3px;
  background:rgba(255,255,255,.94);
  padding:4px 9px;
  font-size:13px;
  color:var(--ink);
  pointer-events:none;
  z-index:1;
}
.reference-tag {
  left:15px;
}
.result-tag {
  right:15px;
}
.compare-divider {
  position:absolute;
  top:0;
  bottom:0;
  left:var(--split);
  width:2px;
  background:var(--accent);
  transform:translateX(-1px);
  pointer-events:none;
  z-index:2;
}
.compare-divider span {
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  background:var(--accent);
  border:2px solid white;
  border-radius:50%;
  color:#fff;
  font-size:23px;
  line-height:1;
  box-shadow:0 2px 6px #0002;
  letter-spacing:2px;
}
.compare-slider {
  appearance:none;
  -webkit-appearance:none;
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  margin:0;
  background:transparent;
  cursor:ew-resize;
  z-index:3;
  touch-action:pan-y;
}
.compare-slider::-webkit-slider-thumb {
  appearance:none;
  -webkit-appearance:none;
  width:38px;
  height:100%;
  background:transparent;
  border:0;
}
.compare-slider::-moz-range-thumb {
  width:38px;
  height:38px;
  opacity:0;
}
.comparison:focus-within {
  outline:3px solid var(--accent);
  outline-offset:4px;
}
.hero-figure figcaption {
  display:flex;
  justify-content:space-between;
  gap:16px;
  text-align:left;
}
.paper-figure img {
  width:100%;
  object-fit:contain;
}
.paper-figure a {
  display:block;
}
.glance-figure {
  max-width:730px;
  margin:36px auto 0;
}
.glance-figure figcaption {
  max-width:640px;
  margin-inline:auto;
}
.bibtex-heading {
  display:flex;
  justify-content:center;
  align-items:center;
  gap:24px;
  margin-bottom:20px;
}
.bibtex-heading h2 {
  margin:0;
}
.copy-button {
  font-size:14px;
  padding:9px 14px;
}
.bibtex-code,.code-excerpt {
  margin:0;
  background:var(--soft);
  border:1px solid var(--line);
  border-radius:6px;
  padding:22px;
  font-size:13px;
  line-height:1.65;
  overflow:auto;
  tab-size:2;
}
.bibtex-code {
  white-space:pre-wrap;
  overflow-wrap:anywhere;
}
.copy-status {
  font-size:14px;
  color:var(--accent);
  min-height:24px;
  margin-top:8px;
}
.footer {
  border-top:1px solid var(--line);
  margin-top:56px;
  padding-top:24px;
  padding-bottom:32px;
  color:var(--muted);
  font-size:13px;
}
.footer p {
  margin-top:10px;
}
.instruction {
  margin-bottom:18px;
  font-size:14px;
}
.instruction summary {
  cursor:pointer;
  width:fit-content;
}
.instruction pre {
  max-height:400px;
  overflow:auto;
  white-space:pre-wrap;
  font-size:12px;
  line-height:1.6;
  padding:18px;
  background:var(--soft);
  overflow-wrap:anywhere;
}
.template-credit {
  font-size:12px;
}
.back-top {
  display:inline-block;
  margin-top:12px;
}
.secondary-header {
  padding-bottom:0;
  max-width:900px;
}
.secondary-header h1 {
  margin:12px 0 18px;
}
.secondary-header>p {
  color:var(--muted);
}
.project-name {
  font-size:17px;
}
.section-nav {
  display:flex;
  justify-content:center;
  gap:26px;
  font-size:15px;
  margin-top:23px;
  flex-wrap:wrap;
}
.secondary-header+.section-nav+.section {
  margin-top:52px;
}
.comparison-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:36px;
  align-items:start;
}
.comparison-grid img {
  border:1px solid #eef0ee;
}
.comparison-grid figcaption {
  max-width:460px;
  margin-inline:auto;
}
.gallery-heading {
  margin-top:48px;
}
.gallery-intro {
  font-size:16px;
  color:var(--muted);
  margin:10px 0 24px;
}
.case-gallery {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:30px 24px;
}
.case-gallery img {
  border:1px solid #edf0ee;
}
.case-gallery figcaption {
  font-size:14px;
}
.method-figure {
  max-width:680px;
  margin-inline:auto;
}
.tree-figure-disclosure {
  margin:26px auto 0;
  max-width:760px;
  font-size:16px;
}
.tree-figure-disclosure summary {
  color:var(--accent);
  cursor:pointer;
}
.tree-figure-disclosure figure {
  margin-top:20px;
}
.table-hint {
  display:none;
  font-size:13px;
  color:var(--muted);
  margin-bottom:12px;
}
.table-scroll {
  overflow-x:auto;
  scrollbar-width:thin;
}
table {
  width:100%;
  border-collapse:collapse;
  text-align:right;
  font-size:15px;
  line-height:1.6;
  white-space:nowrap;
  font-variant-numeric:tabular-nums;
}
caption {
  white-space:normal;
  text-align:left;
  font-size:15px;
  color:var(--muted);
  padding-bottom:20px;
}
thead {
  border-top:2px solid #697773;
  border-bottom:1px solid #a9b9b5;
}
th,td {
  padding:9px 12px;
}
th {
  font-weight:500;
}
thead th {
  font-weight:600;
}
th:first-child,th[scope=row] {
  text-align:left;
}
th[scope=rowgroup] {
  vertical-align:top;
  padding-top:12px;
  color:#4b5653;
}
tbody {
  border-bottom:1px solid var(--line);
}
tbody .ours td,tbody .ours th[scope=row] {
  background:#f3f8f6;
}
tbody .ours th[scope=row] {
  color:var(--accent);
  font-weight:600;
}
td strong {
  font-weight:600;
  color:#2f3a37;
}
.source-note {
  font-size:14px;
  margin-top:14px;
}
.explorer {
  margin-top:42px;
}
.explorer-surface {
  border:1px solid var(--line);
  border-radius:6px;
  overflow:hidden;
  background:#fcfdfc;
}
.tree-toolbar {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  padding:16px 22px;
  border-bottom:1px solid var(--line);
}
.tree-toolbar h2 {
  font-size:18px;
  letter-spacing:0;
  text-align:left;
  margin:0;
}
.depth-legend {
  display:flex;
  align-items:center;
  gap:7px;
  font-size:12px;
  color:var(--muted);
}
.depth-legend>span {
  margin-right:4px;
}
.depth-legend i {
  font-style:normal;
  border-top:3px solid var(--depth);
  padding:1px 7px;
  background:white;
}
.depth-0 {
  --depth:#246a62;
}
.depth-1 {
  --depth:#47887f;
}
.depth-2 {
  --depth:#70a49c;
}
.depth-3 {
  --depth:#8ebcb4;
}
.depth-4 {
  --depth:#b4d0ca;
}
.tree-scroll {
  overflow-x:auto;
  overflow-y:hidden;
  scrollbar-width:thin;
  scrollbar-color:#a4bdb7 transparent;
}
.tree-canvas {
  position:relative;
  margin-inline:auto;
}
.tree-connectors {
  width:100%;
  height:100%;
  position:absolute;
  inset:0;
  pointer-events:none;
}
.tree-edge {
  fill:none;
  stroke:#c8d5d1;
  stroke-width:1.4;
}
.tree-edge.selected-edge {
  stroke:var(--accent);
  stroke-width:2.4;
}
.tree-node {
  position:absolute;
  width:70px;
  height:94px;
  border:1px solid #dce4e0;
  border-top:3px solid var(--depth);
  border-radius:5px;
  background:#fff;
  padding:5px 4px;
  color:var(--ink);
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:4px;
  box-shadow:0 1px 2px #00000005;
}
.tree-node img {
  width:60px;
  height:43px;
  object-fit:contain;
}
.tree-label {
  display:block;
  max-width:100%;
  overflow-wrap:anywhere;
  font-size:10px;
  line-height:1.15;
}
.tree-node:hover {
  background:#eef5f2;
}
.tree-node[aria-selected=true] {
  background:#e7f3ee;
  border-color:var(--accent);
  box-shadow:0 0 0 2px #24756b30;
}
.tree-foot {
  font-size:13px;
  color:var(--muted);
  padding:12px 20px;
  border-top:1px solid var(--line);
}
.node-detail {
  padding-top:36px;
  max-width:1080px;
  margin-inline:auto;
  scroll-margin-top:30px;
}
.detail-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  margin-bottom:24px;
}
.detail-heading h2 {
  text-align:left;
  margin:5px 0 0;
  font-size:25px;
}
.detail-heading>span {
  font-size:14px;
  white-space:nowrap;
  color:var(--muted);
}
.breadcrumb {
  font-size:13px;
  line-height:1.5;
  color:var(--muted);
  overflow-wrap:anywhere;
}
.node-text>* {
  min-width:0;
}
.node-text {
  display:grid;
  grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);
  gap:36px;
  margin-top:30px;
}
.brief-heading,.code-heading {
  display:flex;
  justify-content:space-between;
  align-items:baseline;
  gap:16px;
  margin-bottom:15px;
}
.brief-heading a,.code-heading a {
  font-size:13px;
  white-space:nowrap;
}
.node-brief-block>p {
  overflow-wrap:anywhere;
  font-size:17px;
  line-height:1.75;
  white-space:pre-line;
}
.code-excerpt {
  height:300px;
  font-size:12px;
  padding:17px;
}
.node-jumps {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:10px;
  margin-top:28px;
  font-size:14px;
  border-top:1px solid var(--line);
  padding-top:20px;
}
.node-jumps span {
  color:var(--muted);
  padding:6px 0;
  margin-right:4px;
}
.node-jumps a {
  border:1px solid var(--line);
  border-radius:999px;
  padding:5px 12px;
}
.error {
  font-size:16px;
  color:#8b3832;
  margin-top:20px;
}
@media(min-width:1500px) {
  .paper-header {
    padding-top:60px;
  }
}
@media(max-width:700px) {
  .table-hint { display:block; }
  body {
    font-size:17px;
    line-height:1.6;
  }
  .text-column,.media-column {
    width:calc(100% - 32px);
  }
  .site-nav {
    gap:22px;
    font-size:13px;
    min-height:54px;
  }
  .site-nav a {
    padding:19px 0;
  }
  .paper-header {
    padding-top:34px;
    padding-bottom:26px;
  }
  h1 {
    font-size:32px;
    line-height:1.19;
    letter-spacing:-1.05px;
  }
  .paper-header h1 {
    margin-bottom:23px;
  }
  h2 {
    font-size:26px;
    letter-spacing:-.5px;
    margin-bottom:18px;
  }
  h3 {
    font-size:20px;
  }
  .authors {
    font-size:17px;
    gap:21px;
  }
  .affiliation {
    font-size:16px;
    margin-top:8px;
    margin-bottom:21px;
  }
  .paper-links {
    gap:8px;
  }
  .resource-pill {
    padding:10px 12px;
    font-size:13px;
    gap:6px;
  }
  .resource-pill svg {
    width:17px;
    height:17px;
  }
  .section {
    margin-top:48px;
  }
  .section-intro {
    font-size:16px;
    margin-bottom:22px;
  }
  figcaption {
    font-size:13px;
    margin-top:10px;
  }
  .abstract-section p {
    text-align:left;
  }
  .abstract-more summary {
    font-size:14px;
  }
  .viewer-toolbar {
    padding:10px 12px;
    font-size:12px;
    gap:8px;
  }
  .viewer-toolbar .button {
    font-size:12px;
    padding:7px 12px;
  }
  #viewer-frame {
    aspect-ratio:1.25;
    min-height:260px;
  }
  .viewer-caption {
    display:block;
    text-align:center;
    font-size:13px;
  }
  .viewer-caption a {
    display:inline-block;
    margin-top:5px;
  }
  .novel-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .preview-strip {
    gap:8px;
  }
  .preview-strip button {
    min-width:114px;
    max-width:135px;
    padding:6px;
    font-size:13px;
  }
  .preview-strip button img {
    height:76px;
    margin-bottom:6px;
  }
  .preview-heading {
    margin-top:13px;
  }
  .preview-heading h3 {
    font-size:18px;
  }
  .preview-heading span {
    font-size:12px;
  }
  .matched-pair {
    gap:12px;
  }
  .matched-pair figcaption {
    font-size:13px;
    margin-bottom:6px;
  }
  .preview-pair img {
    aspect-ratio:1.15;
  }
  .preview-note,.image-note {
    font-size:12px;
  }
  .section-action {
    margin-top:22px;
  }
  .text-link {
    font-size:16px;
  }
  .image-tag {
    top:10px;
    font-size:10px;
    padding:3px 5px;
  }
  .reference-tag {
    left:7px;
  }
  .result-tag {
    right:7px;
  }
  .compare-divider span {
    height:32px;
    width:32px;
    font-size:20px;
  }
  .hero-figure figcaption {
    display:block;
    text-align:center;
    font-size:13px;
  }
  .hero-figure figcaption span {
    display:block;
  }
  .glance-figure {
    margin-top:28px;
  }
  .bibtex-heading {
    gap:20px;
    margin-bottom:16px;
  }
  .copy-button {
    font-size:12px;
    padding:8px 11px;
    gap:5px;
  }
  .copy-button svg {
    width:16px;
    height:16px;
  }
  .bibtex-code {
    font-size:11px;
    padding:15px;
  }
  .footer {
    margin-top:38px;
    font-size:12px;
    padding-bottom:25px;
  }
  .secondary-header {
    padding-bottom:0;
  }
  .secondary-header>p {
    font-size:16px;
  }
  .project-name {
    font-size:15px;
  }
  .section-nav {
    font-size:13px;
    gap:17px;
    margin-top:20px;
  }
  .secondary-header+.section-nav+.section {
    margin-top:38px;
  }
  .comparison-grid {
    grid-template-columns:1fr;
    gap:28px;
  }
  .case-gallery {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:22px 16px;
  }
  .case-gallery figcaption {
    font-size:12px;
  }
  .gallery-heading {
    margin-top:32px;
  }
  .gallery-intro {
    font-size:15px;
  }
  .table-scroll {
    margin-right:-16px;
    padding-right:16px;
  }
  table {
    font-size:13px;
  }
  th,td {
    padding:8px 10px;
  }
  caption {
    font-size:14px;
    max-width:calc(100vw - 32px);
  }
  .tree-figure-disclosure {
    font-size:15px;
  }
  .explorer {
    margin-top:30px;
  }
  .tree-toolbar {
    padding:13px 12px;
    gap:10px;
  }
  .tree-toolbar h2 {
    font-size:16px;
  }
  .depth-legend {
    gap:3px;
    font-size:10px;
  }
  .depth-legend i {
    padding:1px 5px;
  }
  .tree-foot {
    font-size:11px;
    padding:10px 12px;
  }
  .node-detail {
    padding-top:27px;
  }
  .detail-heading {
    gap:12px;
    margin-bottom:19px;
  }
  .detail-heading h2 {
    font-size:23px;
  }
  .detail-heading>span {
    font-size:12px;
  }
  .breadcrumb {
    font-size:11px;
  }
  .node-text {
    grid-template-columns:minmax(0,1fr);
    gap:24px;
    margin-top:24px;
  }
  .node-brief-block>p {
  overflow-wrap:anywhere;
    font-size:16px;
  }
  .code-excerpt {
    height:260px;
  }
  .node-jumps {
    font-size:12px;
    gap:8px;
  }
  .node-jumps a {
    padding:5px 9px;
  }
}
@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior:auto;
  }
  .loader {
    animation:none;
  }
}
/* Recursion controls stay with the world; the branch preview continues beneath it. */
#world #viewer-frame { aspect-ratio:2; }
.world-controls { padding:12px 18px 10px; border-bottom:1px solid var(--line); background:#fff; }
.mode-controls { display:flex; align-items:center; gap:16px; font-size:14px; }
.mode-controls>span { color:var(--muted); }
.world-modes { display:flex; gap:0; border:1px solid var(--line); border-radius:5px; overflow:hidden; }
.world-modes button { border:0; border-left:1px solid var(--line); border-radius:0; padding:8px 14px; background:#fff; color:var(--muted); font-size:13px; line-height:1.4; }
.world-modes button:first-child { border-left:0; }
.world-modes button:hover { border-color:var(--accent); color:var(--accent); }
.world-modes button[aria-pressed=true] { background:var(--accent); color:white; border-color:var(--accent); }
.world-modes button:disabled { opacity:.45; }
#world-mode-note { font-size:12px; line-height:1.5; color:var(--muted); margin-top:8px; }
.world-selection { position:absolute; bottom:14px; left:14px; display:flex; align-items:center; gap:18px; padding:8px 12px; background:#fffffff0; border:1px solid var(--line); border-radius:5px; font-size:12px; pointer-events:none; max-width:calc(100% - 28px); }
.world-selection span span { display:block; color:var(--muted); font-size:11px; }
.world-selection strong { font-size:14px; font-weight:600; display:block; overflow-wrap:anywhere; }
.world-selection button { pointer-events:auto; border:0; background:none; color:var(--accent); padding:4px; font-size:12px; }
#viewer-loading { z-index:2; }
#recursion-preview { margin-top:18px; }
.explore-stage { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.05fr); gap:24px; align-items:start; }
.explore-stage .tree-toolbar { flex-wrap:wrap; }
.explore-world { min-width:0; position:sticky; top:16px; background:white; }
.explore-world h2 { font-size:20px; text-align:left; letter-spacing:0; margin-bottom:14px; }
.explore-world #viewer-frame { aspect-ratio:1.4; }
.explore-world .viewer-toolbar { padding:10px 12px; font-size:12px; }
.explore-world .viewer-toolbar .button { font-size:12px; }
.explore-world .viewer-caption { font-size:12px; flex-wrap:wrap; margin-top:9px; }
.explore-world .world-controls { padding:10px 12px; }
.explore-world .mode-controls { display:block; }
.explore-world .mode-controls>span { display:none; }
.explore-world .world-modes { gap:0; }
.explore-world .world-modes button { flex:1; padding:6px 4px; font-size:12px; white-space:nowrap; }
.explore-stage .tree-foot { font-size:12px; }
@media(max-width:900px) {
  .explore-stage { grid-template-columns:1fr; }
  .explore-world { order:-1; z-index:5; top:0; padding:10px 0; border-bottom:1px solid var(--line); }
  .explore-world h2 { font-size:17px; margin-bottom:9px; }
  .explore-world #viewer-frame { aspect-ratio:2.5; min-height:170px; }
  .explore-world .viewer-caption { display:none; }
  .explore-world .viewer-toolbar { padding:7px 10px; }
  .explore-world .world-controls { padding:7px 10px; }
  .explore-world #world-mode-note { font-size:11px; min-height:32px; margin-top:5px; }
  .explore-world .world-selection { left:7px; bottom:7px; padding:4px 7px; }
  .explore-world .world-selection strong { font-size:12px; }
  .explore-world .world-selection span span { font-size:10px; }
}
@media(max-width:700px) {
  #world #viewer-frame { aspect-ratio:1.25; }
  .world-controls { padding:10px 10px 8px; }
  .mode-controls { display:block; }
  .mode-controls>span { display:none; }
  .world-modes { gap:0; flex-wrap:nowrap; }
  .world-modes button { flex:1 0 auto; font-size:12px; padding:9px 5px; white-space:nowrap; }
  #world-mode-note { font-size:11px; }
  .world-selection { left:8px; bottom:8px; padding:5px 8px; gap:10px; }
  .world-selection strong { font-size:12px; }
  .world-selection span span { font-size:10px; }
  .world-selection button { font-size:10px; }
  #recursion-preview { margin-top:12px; }
  .explore-world .world-modes button { font-size:12px; padding:8px 5px; }
}
@media(max-width:900px) and (max-height:600px) {
  .explore-world { position:static; }
}

.explore-world.viewer-unavailable { position:static; }
/* Complete shared tree and concise overview detail, following the live viewer. */
.tree-node { width:var(--tree-card-width,72px); padding:4px 1px; }
.tree-node img { width:calc(100% - 2px); height:47px; }
.tree-node.is-ancestor { border-color:var(--accent); outline:1px solid var(--accent); outline-offset:1px; background:#f0f8f5; }
.tree-node[aria-selected=true] { outline:2px solid var(--accent); outline-offset:1px; }
.overview-node-panel { max-width:960px; margin:30px auto 0; }
.preview-brief-block { margin-top:24px; }
.preview-brief-block>p { white-space:pre-line; overflow-wrap:anywhere; font-size:17px; line-height:1.7; }
.overview-tree-surface .tree-toolbar h2 { font-size:20px; }
@media(max-width:700px) {
  .overview-node-panel { margin-top:24px; }
  .overview-tree-surface .tree-toolbar h2 { font-size:16px; }
  .preview-brief-block>p { font-size:15px; }
  .preview-brief-block { margin-top:20px; }
}

/* Shared example selection and restored research detail. */
.scene-switcher{display:flex;align-items:center;justify-content:center;gap:12px;margin:0 auto 28px;font-size:14px;color:var(--muted);flex-wrap:wrap}
.scene-options{display:flex;border:1px solid var(--line);border-radius:7px;overflow:hidden;background:#fff}
.scene-options a{display:block;padding:8px 16px;text-decoration:none;color:var(--muted);line-height:1.5}
.scene-options a+a{border-left:1px solid var(--line)}
.scene-options a[aria-current]{background:var(--accent);color:white}
.method-link{margin-top:22px;font-size:16px}
.tree-node{height:var(--tree-card-height,108px)}
.detail-metrics{display:flex;align-items:center;gap:18px;flex-wrap:wrap;font-size:13px;color:var(--muted)}
.parent-context{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:30px;align-items:center;border-top:1px solid var(--line);padding-top:28px;margin-top:28px}
.parent-context figure{width:100%;max-width:440px}
.parent-image{position:relative;overflow:hidden;border:1px solid var(--line);border-radius:4px}
.parent-image img{width:100%;height:auto}
.crop-outline{position:absolute;border:2px solid var(--accent);background:#237d7218;box-shadow:0 0 0 1px #fff9;pointer-events:none}
.parent-context h3{font-size:19px;margin-bottom:12px}
.parent-context p{font-size:15px;color:var(--muted);overflow-wrap:anywhere}
#crop-coordinates{font-size:12px;margin-top:10px}
.node-account-block{margin-top:30px}
.node-account-block blockquote{border-left:2px solid var(--line);padding-left:16px;white-space:pre-line;font-size:15px;color:var(--muted);overflow-wrap:anywhere}
.matched-pair.single-render{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.example-results{margin-top:38px}
.example-results>h2{text-align:center;margin-bottom:28px}
.example-pair{max-width:960px;margin:auto}
.example-results>h3{font-size:21px;margin:38px 0 20px}
.example-results .novel-grid{grid-template-columns:repeat(5,minmax(0,1fr));align-items:start}
.example-results .novel-grid img{aspect-ratio:1.5;object-fit:contain;background:#fff}
.example-comparison{max-width:680px;margin:36px auto 48px}
.method-figure{margin-top:36px;max-width:850px}
.formatted-instruction{margin:32px auto 0;max-width:860px;overflow-wrap:anywhere}
.formatted-instruction h2{font-size:25px;line-height:1.35;text-align:left;letter-spacing:0;margin:0 0 22px}
.formatted-instruction h3{font-size:21px;margin:34px 0 16px}
.formatted-instruction p{margin:16px 0;line-height:1.75}
.formatted-instruction ol{padding-left:26px;margin:16px 0}
.formatted-instruction li{padding-left:6px;margin:18px 0;line-height:1.75}
.instruction-download{max-width:860px;margin:28px auto 0}
.footer>p:first-child{margin-bottom:18px}
@media(max-width:700px){
 .site-nav{gap:18px;font-size:12px;flex-wrap:wrap;padding-inline:10px}
 .scene-switcher{font-size:12px;gap:9px;margin-bottom:24px}.scene-options a{padding:8px 11px}
 .detail-metrics{gap:12px;font-size:12px}.parent-context{gap:18px}.parent-context h3{font-size:16px}.parent-context p{font-size:13px}#crop-coordinates{font-size:10px}
 .node-account-block blockquote{font-size:14px}.example-results .novel-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .method-figure{margin-top:26px}.formatted-instruction h2{font-size:21px}.formatted-instruction h3{font-size:19px}.formatted-instruction{font-size:16px}.formatted-instruction ol{padding-left:21px}
}
