.viewer-shell { position: relative; max-width: 540px; margin: auto; }
.close-button { display: grid; place-items: center; padding: 0; }
.close-button svg { display: block; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.viewer-shell .dialog-turntable { margin: 0; }
.viewer-tools { position: absolute; z-index: 2; right: 16px; top: 16px; display: flex; gap: 7px; padding: 5px; background: #ffffffdc; border: 1px solid #fff; border-radius: 10px; box-shadow: 0 2px 12px #0000000c; }
.viewer-tools[hidden] { display: none; }
.viewer-tool { width: 40px; height: 40px; display: grid; place-items: center; position: relative; padding: 9px; border-radius: 6px; color: #565656; }
.viewer-tool:hover { color: #111; background: #e8e8e8; }
.viewer-tool[aria-pressed="true"] { color: #fff; background: #222; }
.viewer-tool svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.viewer-tooltip { position: absolute; top: calc(100% + 12px); right: 0; width: max-content; padding: 6px 10px; border-radius: 3px; background: #222; color: white; opacity: 0; pointer-events: none; }
.viewer-tool:hover .viewer-tooltip,.viewer-tool:focus-visible .viewer-tooltip { opacity: 1; }
.lighting-mode { cursor: default; }
#viewer-mode-label { top: auto; bottom: 16px; left: 16px; }
@media(max-width:760px) { .viewer-tools { top: 12px; right: 12px; } }
