* { box-sizing: border-box; }
body { margin: 0; color: #26251e; font: .8rem/1.4 Arial,sans-serif; }
main { min-height: 280px; height: 100vh; display: grid; grid-template-rows: minmax(0,1fr) auto auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.stage { display: grid; grid-template-rows: minmax(0,1fr) auto; min-width: 0; background: radial-gradient(#fffdf7,#ece3d2); border: 1px solid #d8cabb; }
.model-viewport { position: relative; min-height: 0; min-width: 0; overflow: hidden; }
canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; cursor: grab; touch-action: none; }
canvas:active { cursor: grabbing; }
.toolbar, .zoom { display: flex; gap: 6px; flex-wrap: wrap; }
.toolbar { padding: 8px; }
.toolbar button { background: #fffdf7; border: 1px solid #d8cabb; padding: .5rem; min-height: 44px; color: inherit; }
.toolbar button[aria-pressed=true] { background: #792f35; color: #fff8ed; }
.zoom button { min-width: 44px; }
.toolbar button { touch-action: manipulation; }
:focus-visible { outline: 2px solid #792f35; outline-offset: -2px; }
p { margin: .45rem 0 0; }
p:empty { display: none; }
