.hx-viewer{border:1px solid var(--uf-line);background:var(--uf-paper);scroll-margin-top:calc(var(--header-height) + 1rem);margin-block:0 clamp(2rem,4vw,4rem)}.hx-viewer-header{border-bottom:1px solid var(--uf-line);justify-content:space-between;align-items:center;gap:1rem;padding:1.3rem clamp(1rem,3vw,2.25rem);display:flex}.hx-viewer-header p{color:var(--uf-client-muted);letter-spacing:.08em;margin:0 0 .5rem;font-size:.68rem}.hx-viewer-header h4{font:400 clamp(1.5rem,2.5vw,2.25rem)/1.15 var(--font-editorial);overflow-wrap:anywhere;margin:0;font-style:normal}.hx-button{border:1px solid var(--uf-line);background:var(--uf-paper);min-width:44px;min-height:44px;color:var(--uf-ink);font:inherit;white-space:nowrap;cursor:pointer;justify-content:center;align-items:center;gap:.55rem;padding:.65rem .85rem;font-size:.78rem;line-height:1.2;transition:background-color .16s,color .16s;display:inline-flex}.hx-button:hover:not(:disabled),.hx-button[aria-pressed=true],.hx-primary{color:var(--uf-paper);background:var(--uf-ink)}.hx-button:focus-visible,.hx-opening input:focus-visible,.hx-stage canvas:focus-visible{outline:2px solid var(--color-focus);outline-offset:3px}.hx-button:active:not(:disabled){transform:translateY(1px)}.hx-button:disabled{opacity:.45;cursor:default}.hx-close{flex:none}.hx-close span{font-size:1.3rem;line-height:1}.hx-stage{background:var(--color-paper-2);height:clamp(350px,44vw,580px);position:relative;overflow:clip}.hx-stage canvas{touch-action:pan-y;cursor:grab;width:100%;height:100%;display:block}.hx-stage canvas:active{cursor:grabbing}.hx-stage-overlay{place-items:center;display:grid;position:absolute;inset:0}.hx-stage-overlay>img{object-fit:contain;opacity:.35;width:100%;height:100%;position:absolute}.hx-stage-message{z-index:1;background:var(--uf-paper);border:1px solid var(--uf-line);color:var(--uf-ink);text-align:center;justify-items:center;gap:1rem;max-width:28rem;margin:1.5rem;padding:1.3rem;font-size:.85rem;line-height:1.6;display:grid;position:relative}.hx-spinner{border:2px solid var(--uf-line);border-top-color:var(--uf-ink);border-radius:50%;width:22px;height:22px;animation:1s linear infinite hx-spin}@keyframes hx-spin{to{transform:rotate(360deg)}}.hx-zoom{gap:.4rem;display:flex;position:absolute;bottom:1rem;right:1rem}.hx-zoom .hx-button{font-size:1.25rem}.hx-controls{border-top:1px solid var(--uf-line);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:1rem 1.5rem;padding:1.25rem clamp(1rem,3vw,2.25rem);display:flex}.hx-views,.hx-rotation{align-items:center;gap:.35rem;display:flex}.hx-opening{flex:190px;gap:.4rem;max-width:330px;font-size:.75rem;display:grid}.hx-opening>span{justify-content:space-between;gap:1rem;display:flex}.hx-opening output{font-variant-numeric:tabular-nums;color:var(--uf-client-muted)}.hx-opening input{width:100%;min-height:44px;accent-color:var(--uf-ink);cursor:pointer;margin:0}.hx-help,.hx-keyboard{color:var(--uf-client-muted);margin:.2rem 0 .6rem;padding-inline:clamp(1rem,3vw,2.25rem);font-size:.75rem;line-height:1.65}.hx-keyboard{clip-path:inset(50%);width:1px;height:1px;padding:0;position:absolute;overflow:hidden}.hx-viewer-footer{border-top:1px solid var(--uf-line);color:var(--uf-client-muted);justify-content:space-between;gap:1rem;margin-top:1rem;padding:1rem clamp(1rem,3vw,2.25rem);font-size:.68rem;line-height:1.5;display:flex}.hx-status{clip-path:inset(50%);width:1px;height:1px;position:absolute;overflow:hidden}.uf-clients .uf-client-interactive button.uf-text-link{color:var(--uf-ink);background:0 0;border:0;align-items:center;gap:.65rem;min-height:44px;padding-inline:0;font-size:.85rem;display:inline-flex}@media (width<=760px){.hx-viewer-header{align-items:start;padding:1rem}.hx-viewer-header h4{max-width:12rem;font-size:1.4rem}.hx-close{padding-inline:.65rem;font-size:.68rem}.hx-stage{height:clamp(320px,86vw,450px)}.hx-controls{gap:1rem}.hx-views{width:100%}.hx-views .hx-button{flex:1}.hx-opening{flex-basis:100%;max-width:none}.hx-rotation{flex:100%}.hx-rotation .hx-button:nth-child(2){flex:1}.hx-reset{width:100%}.hx-help{font-size:.72rem}}@media (prefers-reduced-motion:reduce){.hx-button{transition:none}.hx-spinner{border-style:dotted;animation:none}}.uf-home:has(.hx-viewer) .uf-motion-dock{display:none}
