#reconstructions { max-width: var(--page); --green: var(--nv-green); --green-dark: var(--nv-green-dark); --green-soft: #f0f6e6; --green-border: #c9dda5; }
.viewer-note { max-width: 68rem; font-size: 0.9375rem; color: var(--muted); }
#reconstructions button, #reconstructions input, #reconstructions select, .image-dialog button { font: inherit; color: inherit; }
#reconstructions button, .image-dialog button { cursor: pointer; }
#reconstructions [hidden], .image-dialog [hidden] { display: none !important; }
.comparison-group { margin-top: 2rem; }
.comparison-group + .comparison-group { margin-top: 3rem; }
.comparison-group-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 14px; }
.comparison-title { display: flex; gap: 12px; align-items: baseline; }
.comparison-title h3 { font-size: 18px; margin: 0; }
.comparison-title span { font-size: 11px; color: var(--muted); }
.viewer-tools { display: flex; align-items: center; gap: 12px; }
.tool-divider { width: 1px; height: 20px; background: var(--line); }
.icon-button { width: 32px; height: 32px; display: inline-grid; place-items: center; border: 1px solid transparent; background: transparent; border-radius: 4px; padding: 0; position: relative; flex: 0 0 auto; }
.icon-button svg { width: 18px; height: 18px; flex-shrink: 0; }
.icon-button:hover, .icon-button[aria-pressed="true"] { color: var(--nv-green-dark); background: #f0f6e6; }
.icon-button:disabled { opacity: .4; cursor: default; }
.icon-button::after { content: attr(aria-label); position: absolute; bottom: calc(100% + 7px); right: 0; padding: 7px 9px; color: #fff; background: var(--ink); border-radius: 4px; font-size: 11px; white-space: nowrap; pointer-events: none; display: none; z-index: 30; }
.icon-button:hover::after, .icon-button:focus-visible::after { display: block; }
.segment-control { display: flex; border: 1px solid var(--line); border-radius: 4px; padding: 2px; background: #fff; }
.segment-control button { width: 30px; height: 26px; border: 0; border-radius: 2px; background: transparent; display: grid; place-items: center; }
.segment-control button[aria-pressed="true"] { background: var(--green-soft); color: var(--green-dark); }
.sync-toggle { display: flex; align-items: center; gap: 6px; font-size: 11px; white-space: nowrap; }
.sync-toggle input { width: 13px; height: 13px; accent-color: var(--green); }
.comparison-content { display: grid; grid-template-columns: 155px minmax(0, 1fr); gap: 18px; }
.input-label, .model-label { font-size: 11px; font-weight: 550; color: #57665f; margin: 0; height: 32px; display: flex; align-items: flex-start; justify-content: center; }
.inputs { min-width: 0; background: #fff; }
.input-label { justify-content: flex-start; gap: 6px; }
.input-label svg { width: 14px; height: 14px; flex: 0 0 auto; color: #3d6b85; }
.input-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 6px; padding-top: 10px; border-top: 1px solid var(--line); }
.input-view { margin: 0; min-width: 0; }
.input-view figcaption { margin: 4px 0 0; font-size: 10px; line-height: 14px; color: #57665f; font-variant-numeric: tabular-nums; }
#reconstructions .input-grid button { display: block; width: 100%; position: relative; border: 1px solid var(--line); background: #fff; padding: 0; aspect-ratio: 1; overflow: hidden; border-radius: 0; cursor: zoom-in; }
#reconstructions .input-grid button:hover { border-color: #3d6b85; }
.input-grid img { width: 100%; height: 100%; object-fit: contain; }
.input-grid .target-outline { position: absolute; inset: 0; pointer-events: none; }
.input-footnote { font-size: 10px; color: var(--muted); text-align: center; margin: 10px 0 0; }
.model-grid { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.model-grid.five-methods { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.model-grid > canvas { position: absolute; inset: 0; pointer-events: none; width: 100%; height: 100%; z-index: 1; }
.model-cell { position: relative; min-width: 0; }
.model-cell + .model-cell { border-left: 1px solid var(--line); }
.model-label, .model-footer { position: relative; z-index: 2; }
.model-label.ours { color: var(--green-dark); font-weight: 750; }
.model-viewport { height: 200px; position: relative; cursor: pointer; touch-action: pan-y; }
.model-viewport::after { content: ""; position: absolute; inset: 0; border: 1px solid var(--line); pointer-events: none; z-index: 2; }
.model-viewport:active { cursor: grabbing; }
.model-footer { font-size: 9px; color: var(--muted); height: 20px; text-align: center; pointer-events: none; }
.example-navigation { margin-top: 8px; padding: 14px 16px 12px; background: #222724; color: #d0dad3; }
.example-navigation-label { display: flex; align-items: center; gap: 8px; margin: 0 0 9px; color: #f2f6f3; font-size: 12px; font-weight: 600; }
.example-navigation-label svg { width: 14px; height: 14px; color: #98d83b; }
.example-picker { display: grid; grid-template-columns: repeat(auto-fill, 112px); gap: 10px 12px; max-height: 244px; overflow-y: auto; overscroll-behavior: contain; padding: 3px; scrollbar-width: thin; scrollbar-color: #78867d transparent; }
.example-option { display: grid; grid-template-rows: 60px 28px; gap: 5px; padding: 5px; min-width: 0; border: 1px solid transparent; border-radius: 4px; background: transparent; text-align: center; }
.example-option:hover { background: #35412c; }
.example-option[aria-pressed="true"] { border-color: #8bcc22; background: #35412c; }
.example-name { display: flex; align-items: center; justify-content: center; text-align: center; font-size: 11px; line-height: 14px; font-weight: 600; overflow-wrap: anywhere; }
.example-option[aria-pressed="true"] .example-name { color: #b3e474; }
.example-preview { display: block; position: relative; height: 60px; overflow: hidden; border-radius: 2px; background: #e3e7e4; }
.example-preview img { width: 100%; height: 100%; object-fit: contain; }
.example-option:not([aria-pressed="true"]):not(:hover) .example-preview img { opacity: .72; }
.example-preview .target-outline { position: absolute; inset: 0; pointer-events: none; }
.example-selection-mark { position: absolute; right: 4px; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--green); color: #17220a; display: none; align-items: center; justify-content: center; }
.example-selection-mark svg { width: 12px; height: 12px; stroke-width: 3; }
.example-option[aria-pressed="true"] .example-selection-mark { display: flex; }
.viewer-feedback { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 24px; margin: 4px 0 12px; }
.viewer-status { font-size: 11px; color: var(--muted); }
.model-loading, .viewer-bootstrap { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; font-size: 11px; color: var(--muted); }
.viewer-bootstrap { min-height: 220px; }
.model-loading { position: absolute; inset: 1px; z-index: 2; background: var(--surface); pointer-events: none; padding: 12px; text-align: center; }
.loading-spinner { width: 24px; height: 24px; border: 2px solid var(--green-border); border-top-color: var(--green); border-radius: 50%; animation: loading-turn .85s linear infinite; }
.model-loading-text { min-height: 16px; line-height: 16px; font-variant-numeric: tabular-nums; }
.loading-error { display: none; width: 24px; height: 24px; color: #9c3939; }
.model-viewport:is([data-load-state="error"], [data-load-state="unavailable"]) .loading-spinner { display: none; }
.model-viewport:is([data-load-state="error"], [data-load-state="unavailable"]) .loading-error { display: block; }
.model-viewport.is-loaded .model-loading { display: none; }
.model-viewport.has-content:not(.is-loaded) .model-loading { inset: auto 9px 9px auto; flex-direction: row; gap: 7px; padding: 6px 9px; min-height: 28px; max-width: calc(100% - 18px); border: 1px solid var(--line); border-radius: 4px; background: #fffffff2; font-size: 10px; }
.model-viewport.has-content .loading-spinner, .model-viewport.has-content .loading-error { width: 14px; height: 14px; flex: 0 0 14px; }
.model-viewport.has-content[data-load-state="error"] .model-loading { color: #9c3939; }
@keyframes loading-turn { to { transform: rotate(360deg); } }
.scene-reconstructions { margin-top: 60px; padding-top: 38px; border-top: 1px solid var(--line); }
.scene-group .comparison-content { grid-template-columns: 190px minmax(0, 1fr); gap: 24px; }
.scene-group .model-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.scene-group .model-viewport { height: 440px; }
.scene-group .example-preview img { object-fit: cover; }
.scene-group .input-footnote { line-height: 1.6; }
.scene-group .model-footer { min-height: 32px; height: auto; padding-inline: 6px; line-height: 1.5; }
.pointcloud-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 24px; margin: 4px 0 16px; font-size: 12px; color: var(--muted); }
.pointcloud-toggle, .pointcloud-opacity { display: inline-flex; align-items: center; gap: 8px; }
.pointcloud-toggle { cursor: pointer; color: var(--ink); }
.pointcloud-controls input { accent-color: var(--green); }
.pointcloud-opacity input { width: 100px; cursor: pointer; }
.pointcloud-status { font-size: 11px; }
.baseline-selector { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
.baseline-selector select { font: inherit; color: var(--ink); background: white; border: 1px solid var(--line); border-radius: 6px; padding: 7px 28px 7px 9px; cursor: pointer; }
.image-dialog { border: 0; border-radius: 6px; padding: 18px; width: min(1280px, calc(100% - 32px)); max-height: calc(100% - 32px); box-shadow: 0 16px 80px #0005; }
.image-dialog::backdrop { background: #1b1b1bb8; }
.dialog-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 14px; }
.dialog-toolbar p { margin: 0; font-size: 13px; line-height: 1.5; flex: 1; }
.dialog-image-wrap { position: relative; display: flex; justify-content: center; background: #fafbfa; overflow: auto; max-height: 72vh; }
.dialog-image-wrap img { width: auto; height: auto; max-width: 100%; max-height: 72vh; object-fit: contain; }
.dialog-image-wrap.is-zoomed { display: block; }
.dialog-image-wrap.is-zoomed img { width: auto; max-width: none; max-height: none; }
.dialog-image-wrap > .target-outline { position: absolute; top: 0; left: 50%; transform: translateX(-50%); pointer-events: none; }
.dialog-image-wrap.is-zoomed > .target-outline { left: 0; transform: none; }
.dialog-pagination { display: flex; justify-content: center; align-items: center; gap: 22px; margin-top: 10px; font-size: 11px; color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (min-width: 761px) {
  #comparison-handal-scenes .input-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .comparison-content { grid-template-columns: 125px minmax(0, 1fr); gap: 12px; }
  .model-viewport { height: 180px; }
}
@media (max-width: 760px) {
  .comparison-group-head { align-items: flex-start; flex-direction: column; gap: 13px; }
  .comparison-title { flex-wrap: wrap; gap: 4px 12px; }
  .comparison-title h3 { font-size: 17px; }
  .viewer-tools { width: 100%; justify-content: space-between; gap: 6px; }
  .comparison-content { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .input-label { justify-content: flex-start; height: 25px; font-size: 10px; }
  .input-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 7px; }
  .input-footnote { display: none; }
  .model-grid, .model-grid.five-methods { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 24px; }
  .model-cell:nth-child(odd) { border-left: 0; }
  .model-viewport { height: 210px; }
  .model-label { height: 24px; }
  .viewer-status { text-align: center; }
  .example-navigation { padding: 12px 10px 10px; }
  .example-picker, .scene-group .example-picker { display: flex; gap: 10px; max-height: none; overflow-x: auto; padding-bottom: 7px; }
  .example-option { flex: 0 0 98px; grid-template-rows: 54px 28px; }
  .example-preview { height: 54px; }
  .scene-reconstructions { margin-top: 40px; padding-top: 28px; }
  .scene-group .comparison-content { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .scene-group .input-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .scene-group .input-footnote { display: block; text-align: left; }
  .scene-group .model-grid { grid-template-columns: minmax(0, 1fr); row-gap: 22px; }
  .scene-group .model-cell { border-left: 0; }
  .scene-group .model-viewport { height: 360px; }
  .scene-group .viewer-tools { justify-content: space-between; }
  .pointcloud-controls { gap: 10px 16px; font-size: 11px; }
  .pointcloud-opacity input { width: 72px; }
  .pointcloud-status { flex-basis: 100%; }
  .pointcloud-status:empty { display: none; }
  .dialog-toolbar { gap: 8px; }
  .dialog-toolbar p { font-size: 11px; }
  .image-dialog { padding: 12px; }
}
@media (prefers-reduced-motion: reduce) { .loading-spinner { animation: none; } }
