.gallery-glb-dialog{width:min(1200px,96vw);max-height:95svh}.gallery-glb-dialog .dialog-head{padding:15px 22px}.gallery-glb-dialog .dialog-head h2{font-size:25px}.gallery-glb-content{padding:16px 22px;overflow:auto}.gallery-glb-stage{height:min(60svh,620px);min-height:300px;background:#edf0eb;border:1px solid #ced8cd;border-radius:10px;overflow:hidden;position:relative}.gallery-glb-stage canvas{display:block;width:100%;height:100%;touch-action:none}.gallery-glb-tools{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.gallery-glb-lighting{border-top:1px solid #d7ded4;margin-top:12px;padding-top:8px}.gallery-glb-lighting summary{cursor:pointer;padding:6px 0;font-weight:600}.gallery-glb-lighting .side-label{display:flex;justify-content:space-between;align-items:center;gap:18px;max-width:420px;padding:8px 0}.gallery-glb-lighting .field{max-width:420px}.gallery-glb-caption{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6}.gallery-glb-dialog .form-actions{padding:12px 22px}.display-glb-preview{margin:10px 0}.display-glb-note{font-size:12px;line-height:1.6;color:#66786b}@media(max-width:650px){.gallery-glb-content{padding:12px}.gallery-glb-stage{height:50svh;min-height:270px}.gallery-glb-tools .button{min-height:44px}.gallery-glb-dialog .dialog-head h2{font-size:21px}.gallery-glb-dialog .dialog-head{padding:12px}}

.gallery-glb-dialog[open]{display:grid;grid-template-rows:auto minmax(0,1fr) auto;height:92svh;overflow:hidden}.gallery-glb-content{min-height:0}.gallery-glb-dialog .dialog-head h2{min-width:0;overflow-wrap:anywhere}.gallery-glb-dialog .form-actions{flex-wrap:wrap}
.display-orientation-panel{position:absolute;right:20px;bottom:100px;z-index:25;width:min(370px,calc(100% - 32px));max-height:calc(100% - 125px);overflow:auto;padding:16px;background:#faf6eaf5;border:1px solid #aa9169;border-radius:12px;box-shadow:0 10px 35px #0005;color:#2e352c}.display-orientation-heading{display:flex;align-items:center;gap:12px;justify-content:space-between}.display-orientation-heading h2{font:21px Georgia,serif;margin:0;overflow-wrap:anywhere}.display-orientation-heading .button{font-size:24px;min-width:42px;flex-shrink:0}.display-orientation-tools{display:flex;gap:8px;flex-wrap:wrap}.display-orientation-tools .button{min-height:44px}.display-orientation-tools [aria-pressed=true]{background:#355746;color:white}.display-orientation-panel .status{color:#46533f;font-size:12px;line-height:1.6;margin:10px 0}@media(max-width:650px){.display-orientation-panel{right:8px;bottom:90px;width:calc(100% - 16px);max-height:60svh;padding:12px}}
.display-fine-rotation{margin:12px 0;border-top:1px solid #d2c8b2;padding-top:8px}.display-fine-rotation summary{cursor:pointer;font-weight:600;margin-bottom:10px}.display-rotation-pad{margin:10px 0;padding:18px 8px;text-align:center;border:1px dashed #8f9b80;border-radius:8px;background:#e5eadc;cursor:grab;touch-action:none;user-select:none;font-size:12px}.display-angle-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.display-angle-fields label{font-size:12px}.display-angle-fields input{width:100%;min-width:0;margin-top:5px;padding:8px;border:1px solid #c3cbb8;border-radius:5px;font:14px sans-serif;min-height:44px}.display-orientation-actions{position:sticky;bottom:-16px;background:#faf6ea;padding:10px 0;z-index:1}.display-orientation-heading{position:sticky;top:-16px;background:#faf6ea;z-index:2;padding:4px 0}@media(max-width:650px){.display-orientation-actions{bottom:-12px}.display-orientation-heading{top:-12px}}
.display-drag-modes{margin:12px 0}.display-drag-modes .button{flex:1}.display-position-controls>.button{margin-top:10px}.display-position-controls .display-angle-fields{margin-bottom:10px}
