dialog#viewer{width:min(1180px,96vw);height:min(94vh,900px);max-width:none;max-height:none;overflow:hidden;padding:0;background:#FFFFFF;color:#262522}dialog#viewer.viewer-dark{background:#171615;color:#f5f0ee}.sample-tools{display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding:10px 20px;border-bottom:1px solid #ded2cc;background:linear-gradient(110deg,#262522,#695140 65%,#ffffff);color:#fff}.sample-tools button{border:1px solid #fff8;border-radius:7px;background:#ffffff;color:#262522;padding:7px 12px;cursor:pointer}.sample-tools output{min-width:48px;text-align:center;font-weight:700}.viewer-stage{height:calc(100% - 116px);overflow:auto;padding:24px;background:#ebe3df}.viewer-dark .viewer-stage{background:#292421}.viewer-image{display:block;width:100%;max-width:none;height:auto;margin:0 auto;box-shadow:0 8px 30px #0004;transition:none}.viewer-image[style*="width: 100%"]{max-width:100%}@media(max-width:700px){.viewer-bar{padding:10px 12px}.sample-tools{padding:8px 12px}.sample-tools button{padding:8px 9px}.viewer-stage{padding:10px;height:calc(100% - 158px)}}

.viewer-dark .viewer-image{filter:invert(1) hue-rotate(180deg) brightness(.9) contrast(.9)}
