#attach-overlay.chat-attachment-open #attach-panel{padding:16px;overflow:hidden;max-height:92dvh;gap:0}
#attach-overlay.chat-attachment-open #attach-panel>div:first-of-type{flex:none;flex-wrap:wrap;background:var(--card,#fff);z-index:3;margin:0;padding-bottom:12px;min-height:42px}
#attach-overlay.chat-attachment-open #attach-title{flex:1;min-width:80px}
#attach-overlay.chat-attachment-open #attach-body{min-height:0!important;align-items:stretch;justify-content:flex-start;flex-direction:column;overflow:auto;overscroll-behavior:contain;max-height:75dvh}
.chat-pdf-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:8px;position:sticky;top:0;z-index:2;padding:10px;background:var(--card,#fff);border-bottom:1px solid var(--border,#ddd);flex:none}
.chat-pdf-toolbar button{padding:8px 10px;border:1px solid var(--border,#ddd);border-radius:7px;background:var(--card,#fff);color:var(--text,#333);font:inherit;font-size:12px;cursor:pointer;min-height:38px}
.chat-pdf-toolbar button:disabled{opacity:.4;cursor:default}.chat-pdf-toolbar span{font-size:12px;white-space:nowrap}
.chat-pdf-stage{overflow:auto;padding:12px;min-height:200px;box-sizing:border-box;flex:1;background:#e5e5ec}.chat-pdf-stage canvas{display:block;margin:0 auto;background:#fff;box-shadow:0 2px 12px #0002}.chat-pdf-stage p{padding:20px;color:#333}
@media(max-width:760px){#attach-overlay.chat-attachment-open{padding:0!important;align-items:stretch!important}#attach-overlay.chat-attachment-open #attach-panel{width:100%!important;max-width:100%!important;height:100vh;height:100dvh;max-height:100vh!important;max-height:100dvh!important;border-radius:0!important;margin:0!important;box-sizing:border-box;padding:calc(12px + env(safe-area-inset-top)) 12px calc(12px + env(safe-area-inset-bottom))}#attach-overlay.chat-attachment-open #attach-body{max-height:none;flex:1}#attach-overlay.chat-attachment-open #attach-back{min-height:44px}#attach-overlay.chat-attachment-open #attach-title{font-size:13px!important}.chat-pdf-toolbar{gap:6px}.chat-pdf-toolbar button{min-height:44px}}
