:root { color-scheme: dark; font: 100% system-ui, sans-serif; }
* { box-sizing: border-box; }
body { margin: 0; background: #141a16; color: #f9f8ee; }
.viewer { position: relative; width: 100%; height: 100vh; height: 100dvh; overflow: hidden; background: radial-gradient(ellipse at center, #30392d, #141a16 72%); }
canvas { display: block; width: 100%; height: 100%; touch-action: none; outline-offset: -4px; cursor: grab; }
canvas[data-dragging] { cursor: grabbing; }
:focus-visible { outline: 2px solid #e1edac; }
.status { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: max-content; max-width: 85%; margin: 0; padding: .9rem 1.25rem; border-radius: .4rem; background: #141a16; text-align: center; }
.toolbar { position: absolute; inset: auto 0 0; display: flex; justify-content: space-between; align-items: center; gap: .65rem; padding: clamp(.75rem, 2.6vw, 2rem); padding-bottom: max(clamp(.75rem, 2.6vw, 2rem), env(safe-area-inset-bottom)); background: linear-gradient(transparent, #101611dc); pointer-events: none; }
.toolbar p { margin: 0; font-size: .875rem; text-shadow: 0 1px 6px black; }
.actions { display: flex; gap: .4rem; }
button { min-height: 44px; padding: .55rem .85rem; border: 1px solid #f9f8ee63; border-radius: .4rem; background: #141a16e8; color: inherit; font: inherit; font-size: .875rem; white-space: nowrap; cursor: pointer; pointer-events: auto; }
button:hover { background: #343d2d; }
button[aria-pressed="true"] { border-color: #e1edac; background: #465237; }
.touch, [hidden] { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (pointer: coarse) { .mouse { display: none; } .touch { display: inline; } }
