/* Preserve the paper layout; scroll only the document frame. */
@media screen{
 #document-workspace[data-view=pages] #document-viewport{max-height:78dvh;min-height:340px;overflow:auto;overscroll-behavior-x:contain;touch-action:pan-x pan-y pinch-zoom;scrollbar-gutter:stable}
 #document-viewport:focus-visible{outline:3px solid #926e32;outline-offset:-3px}
 .document-pan-hint{font-size:15px;line-height:1.6;color:#425b4c;margin:12px 0}
 .blank-form-strip{display:flex;align-items:center;flex-wrap:wrap;gap:10px 18px;padding:16px 18px;margin:0 0 20px;border:1px solid #c7d6c9;border-radius:12px;background:#f2f6ef}
 .blank-form-strip>div{flex:1;min-width:180px}.blank-form-strip strong{display:block;font-size:16px;font-weight:600}.blank-form-strip p{font-size:14px;line-height:1.5;margin:4px 0 0;color:#455f4e}
 .blank-form-strip a{min-height:44px;display:inline-flex;align-items:center;padding:10px 12px;color:#214c3d;font-size:15px;font-weight:600;text-underline-offset:3px}
 .blank-form-strip .blank-download{background:#214c3d;color:#fff;border-radius:7px;text-decoration:none}
 #tool-use-notice{font-size:14px;line-height:1.6;padding:16px;background:#fafbf9}
 #tool-use-notice h3{font-size:15px;font-weight:500;margin-bottom:9px}
 #tool-use-notice label,#tool-use-notice strong,#tool-use-notice a{font-size:14px;font-weight:400;line-height:1.6}
 #tool-use-notice label{min-height:44px}#tool-use-notice p,#tool-use-status{font-size:13px;font-weight:400;line-height:1.6}
 .repair-guide-link{margin-top:20px!important;padding:16px;border:1px solid #ccdacd;border-radius:9px;background:#f3f7f1}
}
@media screen and (max-width:700px){
 main.shell .hero{margin-bottom:18px}.blank-form-strip{padding:14px;gap:8px}.blank-form-strip>div{flex-basis:100%}
 main.shell .document-help,.document-pan-hint{font-size:15px;line-height:1.6}
 #document-workspace[data-view=pages]{min-width:0;max-width:100%;border-radius:10px}
 #document-workspace[data-view=pages] #document-viewport{padding:10px;max-height:72dvh;min-height:320px;max-width:100%}
 #document-workspace[data-view=pages] #paper-space{margin-left:0}
}
@media print{.blank-form-strip,.document-pan-hint{display:none!important}}
