.surgery-viewer-layout{width:100%;min-width:0;container:surgery-viewer/inline-size}.surgery-viewer-grid{grid-template-columns:minmax(0,1fr);align-items:stretch;gap:.75rem;min-width:0;min-height:0;display:grid}.surgery-viewer-main{flex-direction:column;gap:.5rem;min-width:0;min-height:0;display:flex}.surgery-viewer-canvas{touch-action:none;background:#fff;border:1px solid #e2e7df;border-radius:.75rem;width:100%;min-width:0;height:clamp(300px,55dvh,650px);position:relative;overflow:hidden}.surgery-viewer-canvas canvas{width:100%;height:100%;display:block}.surgery-viewer-tools{flex-direction:column;gap:.5rem;min-width:0;min-height:0;display:flex}.surgery-viewer-tool-content{overscroll-behavior:contain;overflow-wrap:anywhere;min-width:0;min-height:0;overflow-y:auto}.surgery-viewer-tool-content[hidden]{display:none}.surgery-viewer-layout[data-fullscreen=true]{z-index:10000;box-sizing:border-box;overscroll-behavior:contain;max-width:none;height:100dvh;padding:max(.5rem,env(safe-area-inset-top)) max(.5rem,env(safe-area-inset-right)) max(.5rem,env(safe-area-inset-bottom)) max(.5rem,env(safe-area-inset-left));background:#fff;flex-direction:column;gap:.5rem;display:flex;position:fixed;inset:0;overflow-y:auto}.surgery-viewer-layout[data-fullscreen=true] .surgery-viewer-grid{flex:auto;grid-template-rows:minmax(min-content,1fr) auto;min-height:min-content}.surgery-viewer-layout[data-fullscreen=true] .surgery-viewer-main{min-height:min-content}.surgery-viewer-layout[data-fullscreen=true] .surgery-viewer-canvas{flex:auto;height:0;min-height:140px}.surgery-viewer-layout[data-fullscreen=true] .surgery-viewer-tool-content{max-height:min(38dvh,400px)}@container surgery-viewer (width>=900px){.surgery-viewer-grid[data-has-tools=true]{grid-template-columns:minmax(0,7fr) minmax(290px,3fr)}.surgery-viewer-grid[data-has-tools=true][data-tools-open=false]{grid-template-columns:minmax(0,1fr) minmax(180px,220px)}.surgery-viewer-tool-content{max-height:clamp(300px,55dvh,650px)}.surgery-viewer-layout[data-fullscreen=true] .surgery-viewer-grid{flex:auto;grid-template-rows:minmax(0,1fr);min-height:260px}.surgery-viewer-layout[data-fullscreen=true] .surgery-viewer-tool-content{flex:auto;max-height:none}}@media (height<=460px){.surgery-viewer-layout[data-fullscreen=true] .surgery-viewer-grid{flex:1 0 auto}}
