.attachment-upload{width:100%;min-width:0;border:1px dashed var(--line);border-radius:7px;padding:12px 14px;margin:12px 0;background:var(--surface);transition:border-color .2s,background-color .2s}
.attachment-upload.dragging{border-color:var(--red);background:var(--accent-soft)}
.attachment-upload-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.attachment-add{padding:0;color:var(--red)}
.attachment-policy{font-size:12px;line-height:1.55;color:var(--muted);margin:6px 0 0}.attachment-progress{font-size:13px;color:var(--muted)}.attachment-error{font-size:13px;color:var(--accent-text);margin:8px 0 0}
.attachment-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:10px;margin:12px 0;max-width:100%}
.attachment-item{display:flex;align-items:center;gap:10px;min-width:0;padding:10px;background:var(--surface-soft);border:1px solid var(--line);border-radius:6px;color:var(--ink);text-align:left}
.attachment-item>div{min-width:0;flex:1}.attachment-item strong{display:block;font-size:13px;font-weight:500;overflow-wrap:anywhere;line-height:1.5}.attachment-item small{display:block;font-size:11px;color:var(--muted);line-height:1.5;margin:3px 0}.attachment-item a{font-size:12px;color:var(--accent-text);text-decoration:underline}
.attachment-preview{display:block;background:transparent;padding:0;border:0;flex:0 0 74px;overflow:hidden;border-radius:4px}.attachment-preview img{display:block;width:74px;height:64px;object-fit:contain;background:var(--surface)}
.attachment-pdf{display:flex;align-items:center;justify-content:center;width:48px;height:56px;flex-shrink:0;border:1px solid var(--line);border-radius:4px;color:var(--accent-text);font-size:12px;font-weight:600}
.attachment-remove{border:0;background:transparent;color:var(--muted);align-self:flex-start;font-size:22px;padding:0 3px;line-height:1.1}.attachment-remove:hover{color:var(--red)}
.compose:has(.attachment-upload){flex-wrap:wrap}.compose>.attachment-upload{flex:0 0 100%;margin:0 0 10px}.compose>.attachment-upload .attachment-policy{max-width:75ch}.compose>textarea{flex:1 1 150px;min-width:0}
.compose .attachment-queue .attachment-list{display:flex;overflow-x:auto;margin:0 0 8px;padding-bottom:4px}.compose .attachment-queue .attachment-item{flex:0 0 220px;max-width:260px;padding:7px}.compose .attachment-preview{flex-basis:48px}.compose .attachment-preview img{width:48px;height:42px}.compose:has(.attachment-item)>textarea{min-height:48px;height:48px}
.ticket-description+.attachment-list{margin:0 0 20px}.ticket-timeline .attachment-list,.bubble .attachment-list{grid-template-columns:minmax(0,1fr);max-width:400px}.attachment-modal img{display:block;max-width:100%;max-height:65dvh;object-fit:contain;margin:16px auto}.attachment-modal h2{overflow-wrap:anywhere;font-size:20px}.attachment-modal .btn{margin-right:8px}
@media(max-width:620px){.attachment-list{grid-template-columns:minmax(0,1fr)}.attachment-upload{padding:8px 10px}.compose>.attachment-upload .attachment-policy{font-size:10px;line-height:1.4}.compose>.attachment-upload .attachment-list{max-height:110px;overflow:auto}.attachment-preview img{height:54px}.attachment-upload-actions .quiet-button{min-height:30px}.hotline-workspace .messages{min-height:70px}}
