.attachment-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(130px,1fr)); gap: 10px; margin-top: 12px; }
.attachment-card { min-width: 0; overflow: hidden; border: 1px solid #e2e8f0; border-radius: 10px; background: white; }
.attachment-preview { height: 110px; background: #f1f5f9; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.attachment-preview img { width: 100%; height: 100%; object-fit: cover; }
.attachment-preview object { width: 100%; height: 100%; border: 0; }
.attachment-document-icon { display: inline-flex; align-items: center; justify-content: center; border: 1px solid #cbd5e1; border-radius: 6px; padding: 18px 10px; color: #64748b; background: white; font-size: 14px; font-weight: 700; }
.attachment-info { padding: 10px; display: flex; flex-direction: column; gap: 5px; font-size: 11px; }
.attachment-info strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.attachment-info span { color: #94a3b8; font-size: 10px; }
.attachment-info a { color: #334155; font-weight: 600; padding: 3px 0; }
.attachment-info button { text-align: left; color: #b91c1c; padding: 3px 0; }
.attachment-info a:hover { text-decoration: underline; }
.attachment-info a:focus-visible, .attachment-info button:focus-visible { outline: 2px solid #dc2626; outline-offset: 2px; }
.attachment-picker { padding: 12px; border: 1px dashed #cbd5e1; border-radius: 10px; background: #f8fafc; }
.attachment-picker input { max-width: 100%; font-size: 12px; }

.attachment-pdf-preview { display: flex; flex-direction: column; align-items: center; gap: 7px; color: #64748b; font-size: 10px; text-decoration: none; }
.attachment-pdf-preview .attachment-document-icon { color: #b91c1c; border-color: #fecaca; padding: 13px 10px; }
