.mv-viewer{margin-top:14px;border:1px solid var(--line,#d8dce2);border-radius:10px;overflow:hidden;background:#f5f6f7;min-width:0}
.mv-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:10px;background:#fff;border-bottom:1px solid var(--line,#d8dce2)}
.mv-group{display:flex;align-items:center;gap:5px;min-width:0}
.mv-toolbar button,.mv-original,.mv-retry{min-width:44px;min-height:44px;border:1px solid #ccd2d8;border-radius:7px;background:#fff;padding:8px 10px;color:#12463a;font:600 14px/1.25 system-ui,sans-serif;cursor:pointer;touch-action:manipulation;display:inline-flex;align-items:center;justify-content:center;text-decoration:none}
.mv-toolbar button:disabled{opacity:.35;cursor:default}
.mv-page-input{width:54px;min-height:44px;border:1px solid #ccd2d8;border-radius:6px;text-align:center;font:16px system-ui,sans-serif;color:#17242c;background:#fff;padding:4px}
.mv-page-total{font:14px system-ui,sans-serif;white-space:nowrap;color:#45515d}
.mv-original{margin-left:auto;white-space:nowrap}
.mv-stage{overflow:auto;max-height:62vh;max-height:62dvh;min-height:80px;background:#e2e5e9;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;touch-action:pan-x pan-y pinch-zoom}
.mv-stage .mv-image{display:block;width:var(--mv-zoom,100%);max-width:none;max-height:none;height:auto;margin:0 auto;object-fit:initial;background:#fff;touch-action:pan-x pan-y pinch-zoom}
.mv-status{padding:9px 12px;margin:0;color:#46545e;background:#f6f7f8;font:13px/1.5 system-ui,sans-serif;overflow-wrap:anywhere}
.mv-status.mv-error{color:#9e281b;background:#fff1ef}
.mv-hint{margin:0;padding:10px 12px;color:#5b6670;font:12px/1.6 system-ui,sans-serif;background:#fff}
.mv-retry{margin:10px}
.mv-viewer [hidden]{display:none!important}
.mv-loading .mv-stage{opacity:.65}
#fileSheet h3,#fileMeta{overflow-wrap:anywhere}
@media(max-width:760px),(max-height:500px){
 #fileSheet{padding:0;overflow:hidden}
 #fileSheet .sheet-in{margin:0;max-height:100vh;max-height:100dvh;min-height:100vh;min-height:100dvh;border-radius:0;padding:18px 12px calc(18px + env(safe-area-inset-bottom,0px))}
 #fileSheet .sheet-sub{margin-bottom:12px}
 #fileSheet .sheet-foot{position:sticky;bottom:-18px;background:var(--surface,#fff);padding:12px 0 max(12px,env(safe-area-inset-bottom,0px));margin-bottom:-12px;border-top:1px solid var(--line,#d8dce2)}
 #fileSheet .sheet-foot .btn{min-height:44px}
 .mv-toolbar{gap:6px;padding:8px}
 .mv-stage{max-height:58vh;max-height:58dvh}
 .mv-original{margin-left:0}
 .attach{flex-wrap:wrap}
 .attach-body{min-width:0;overflow-wrap:anywhere}
 .attach-actions{width:100%;justify-content:flex-end}
 .attach-actions button,.attach-actions a{min-height:44px;display:inline-flex;align-items:center;padding:8px 12px}
}
