/* One spatial stage is preserved at every viewport; components never switch to a grid. */
.graph-active .stage,.graph-active .stage.component-stage,.graph-active .stage.botanical-stage,.graph-active .stage.many-parts-stage{height:560px;min-height:560px;flex:none;background:radial-gradient(ellipse at 52% 40%,#28352e66 0,transparent 65%)}
.graph-active .stage-grid{display:none}.graph-active .object-watermark{display:none}
#structure-canvas{touch-action:none;cursor:grab;position:absolute;inset:0;width:100%;height:100%;z-index:2}
#structure-canvas.dragging{cursor:grabbing;touch-action:none}
.parts-overlay{position:absolute;inset:0;z-index:5;pointer-events:none;overflow:hidden}
.slice-marker{position:absolute;left:0;top:0;width:36px;height:36px;margin:-18px 0 0 -18px;border:0;padding:4px;background:none;opacity:0;pointer-events:none;will-change:transform;transition:opacity .2s;color:#e8ecdf;cursor:pointer;font:12px/1.1 ui-monospace,monospace;isolation:isolate}
.slice-marker>span{display:grid;place-items:center;width:28px;height:28px;border:1px solid #dce5d84d;background:#19251fe8;border-radius:50%;box-shadow:0 2px 8px #0004}
.slice-marker:before{content:'';position:absolute;left:50%;top:50%;width:var(--lead-length,0px);border-top:1px solid #cedbc53b;transform:rotate(var(--lead-angle,0rad));transform-origin:left center;z-index:-1;pointer-events:none}
.markers-ready .slice-marker{opacity:.87;pointer-events:auto}.slice-marker:hover,.slice-marker:focus-visible,.slice-marker.highlighted{opacity:1;z-index:2000!important;outline:none}
.slice-marker em{display:none;position:absolute;left:35px;top:3px;white-space:nowrap;font:inherit;font-size:13px;line-height:1.7;font-style:normal;background:#17231ff5;border:1px solid #829c7440;padding:4px 10px;border-radius:5px;box-shadow:0 4px 18px #0005}
.slice-marker:hover em,.slice-marker:focus-visible em,.slice-marker.highlighted em{display:block}.slice-marker:hover>span,.slice-marker:focus-visible>span,.slice-marker.highlighted>span{border-color:#dae5a7;color:#edf3b8;background:#3d5037}
.slice-controls{display:flex;align-items:center;gap:16px;min-height:62px;padding:10px 25px;border-top:1px solid #ffffff0b;background:#141b1780}
.axis-switch{display:flex;padding:3px;gap:3px;border:1px solid #ffffff15;border-radius:8px;background:#0b100d55}.axis-switch button{border:0;color:#98a393;padding:8px 12px;background:transparent;border-radius:5px;cursor:pointer;font:inherit;font-size:14px;font-weight:500;white-space:nowrap}.axis-switch button span{font-size:18px;margin-right:5px}.axis-switch button[aria-pressed=true]{color:#e6edbd;background:#d8e1b515;box-shadow:inset 0 0 0 1px #d8e1b527}.axis-switch button:hover{color:#e2e8d3}.view-reset{border:0;background:none;color:#b1bdab;font:inherit;font-size:14px;padding:8px 0;white-space:nowrap;cursor:pointer}.view-reset:hover{color:#e9efcb}.orbit-instruction{font-size:12px;color:#728271;margin-left:auto;white-space:nowrap}
.graph-active .stage-top-note{top:20px;left:25px;z-index:6;pointer-events:none;font-size:11px;color:#9aa88f}.graph-active .stage-zoom{top:12px;right:20px;z-index:8}.graph-active .stage-bottom-note{bottom:18px;z-index:6;pointer-events:none;font-size:12px}.graph-active .click-hint{bottom:68px;z-index:6;pointer-events:none}.graph-active .isolation-caption{bottom:88px;z-index:6;pointer-events:none}.graph-active .isolation-caption strong{font-size:18px}.graph-active .isolation-caption small{font-size:11px;letter-spacing:1.3px}
.graph-active .transport{height:72px;padding:16px 25px}.graph-active .speed-button{display:block}.graph-active .scrubber-labels{font-size:12px}.graph-active .inspector{max-height:814px}.graph-active .panel-description{font-size:15px}.graph-active .material-name{font-size:15px}.graph-active .material-name small{font-size:12px}.graph-active .material-count{font-size:12px}
.graph-active .stage-header .button #play-label{font-size:13px}.graph-active .stage-header .button{min-width:113px;justify-content:center}
.axis-switch button:focus-visible,.view-reset:focus-visible{outline:2px solid #e4ebb8;outline-offset:3px}
@media(max-width:1100px){.orbit-instruction{display:none}.slice-controls{gap:13px;padding:10px 18px}.axis-switch button{padding:8px 10px}.graph-active .stage,.graph-active .stage.component-stage,.graph-active .stage.botanical-stage,.graph-active .stage.many-parts-stage{height:520px;min-height:520px}}
@media(max-width:700px){.graph-active .stage,.graph-active .stage.component-stage,.graph-active .stage.botanical-stage,.graph-active .stage.many-parts-stage{height:490px;min-height:490px}.graph-active .stage-top-note{left:17px;top:20px;font-size:10px;letter-spacing:1px}.graph-active .stage-zoom{right:14px}.slice-controls{padding:10px 13px;gap:12px;justify-content:space-between}.axis-switch button{font-size:13px;padding:9px}.axis-switch button span{font-size:16px;margin-right:2px}.view-reset{font-size:13px}.graph-active .stage-bottom-note{font-size:11px;left:17px;max-width:95%}.graph-active .isolation-caption{bottom:75px}.graph-active .isolation-caption strong{font-size:16px}.graph-active .click-hint{bottom:51px}.graph-active .transport{padding:15px 18px}.graph-active .inspector{max-height:none}.slice-marker{width:44px;height:44px;margin:-22px 0 0 -22px;padding:8px}.slice-marker em{display:none!important}.graph-active .inspector .panel-description{font-size:15px}.graph-active .material-list{max-height:350px}}
@media(prefers-reduced-motion:reduce){.slice-marker{transition:none}}

.spatial-label{font-size:12px;letter-spacing:.7px;color:#d8dfcb;white-space:nowrap}.view-reset[aria-pressed=true]{color:#f2ba84}.model-loading{position:absolute;inset:0;display:grid;place-content:center;color:#c2cab9;font-size:13px;letter-spacing:1px;z-index:4;background:#172019dd;pointer-events:none}.model-loading[hidden]{display:none}.graph-active .stage{background:radial-gradient(ellipse at 50% 43%,#4b504a44,transparent 66%)!important}
@media(max-width:700px){.slice-controls{gap:9px;flex-wrap:wrap}.spatial-label{font-size:11px}.view-reset{font-size:12px}.slice-controls .orbit-instruction{display:none}}

.mobile-references{display:none}.source-links a{line-height:1.8}.source-links a small{display:block;color:#8e9885}.source-links h3:not(:first-child){margin-top:24px}@media(max-width:700px){.mobile-references{display:block;font-size:12px}}
.object-thumb.real-flower-thumb{background:none!important}.object-thumb.real-flower-thumb canvas{width:100%;height:100%;object-fit:contain}
.botanical-stage .slice-marker>span{background:#292619eb;border-color:#e5c27366;color:#f4db9e}

.object-card[data-object="flower"] .object-thumb{background:url("./assets/hibiscus-thumbnail.png") center/contain no-repeat}
