.gi-document-viewer{width:94vw;max-width:1200px;height:90vh;max-height:94vh;padding:18px;box-sizing:border-box;overflow:hidden}
.gi-document-viewer[open]{display:flex;flex-direction:column;gap:10px}
.gi-document-head{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-shrink:0}
.gi-document-head h2{margin:0;font-size:1.15rem;overflow-wrap:anywhere;min-width:0}
.gi-document-actions,.gi-document-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;flex-shrink:0}
.gi-document-toolbar label{white-space:nowrap;font-size:.875rem}
.gi-document-toolbar input{width:58px;min-height:32px;padding:4px;text-align:center;box-sizing:border-box}
.gi-document-zoom{min-width:44px;text-align:center;font-size:.875rem}
.gi-document-status{margin:0;min-height:20px;font-size:.875rem;flex-shrink:0}
.gi-document-surface{flex:1;min-height:0;overflow:auto;background:#dce3e2;border:1px solid #bbc9c6;border-radius:8px;padding:18px;box-sizing:border-box}
.gi-document-surface canvas{display:block;margin:0 auto;box-shadow:0 2px 8px #0002}
.gi-document-surface canvas[hidden]{display:none}
.gi-document-surface img{display:block;max-width:100%;height:auto;margin:0 auto;background:white}
@media(max-width:650px){.gi-document-viewer{padding:12px;width:98vw;height:94vh}.gi-document-head{align-items:flex-start;flex-direction:column;gap:8px}.gi-document-toolbar{gap:6px}.gi-document-surface{padding:10px}.gi-document-toolbar .btn{padding:6px 8px;font-size:.875rem}}
