body { max-width: 960px; margin: 24px auto; padding: 0 16px; font: 16px/1.5 system-ui, sans-serif; color: #222; }
h1 { font-size: 24px; }
h2 { font-size: 18px; }
header, footer { color: #555; }
.workspace, .panel { margin: 24px 0; }
.drop, .scene-choice, .slider-label { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.drop p, .instructions { margin: 6px 0; }
.button, button, select { cursor: pointer; }
.button { border: 1px solid #777; padding: 5px 10px; background: #eee; }
.file-input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop:focus-within .button, .measure-image:focus-visible { outline: 2px solid #222; outline-offset: 2px; }
.scene-choice, #status { margin-top: 12px; }
.result-grid, .measurement-body { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.panel { min-width: 0; }
.compare, .measure-image { position: relative; line-height: 0; }
.compare { overflow: hidden; touch-action: none; }
.compare > img, .measure-image img { display: block; width: 100%; }
.depth-clip { position: absolute; inset: 0 auto 0 0; width: 50%; overflow: hidden; }
.depth-clip img { position: absolute; height: 100%; width: auto; max-width: none; }
.divider { position: absolute; left: 50%; top: 0; height: 100%; width: 2px; background: white; }
.divider span { position: absolute; top: 50%; transform: translate(-50%, -50%); background: white; padding: 8px; line-height: 1; }
.image-label { position: absolute; bottom: 8px; color: white; background: #222; padding: 4px; line-height: 1; font-size: 11px; }
.left { left: 8px; } .right { right: 8px; }
.slider-label { margin-top: 10px; } .slider-label input { flex: 1; }
.surface-wrap { position: relative; height: 350px; background: #222; }
.surface-wrap canvas { width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
.surface-error { position: absolute; inset: 0; color: white; padding: 20px; }
.measure-image { cursor: crosshair; align-self: start; }
.measure-marker { position: absolute; width: 20px; height: 20px; border: 2px solid white; border-radius: 50%; transform: translate(-50%, -50%); box-shadow: 0 0 0 1px #222; pointer-events: none; }
.metric-value { font-size: 32px; margin: 16px 0; }
.metric-note, .footnote, footer { font-size: 13px; }
footer { margin-top: 24px; }
[hidden] { display: none !important; }
@media (max-width: 700px) { .result-grid, .measurement-body { grid-template-columns: 1fr; } .surface-wrap { height: 300px; } }
