.attach{display:grid;place-items:center;width:34px;height:34px;background:#edf3e8;border:1px solid #e1e8d9;border-radius:10px;font-size:23px;flex-shrink:0}
.composer-bottom>span{flex:1}.attachments{display:flex;gap:8px;overflow-x:auto;max-height:140px;flex-wrap:wrap;margin-bottom:10px}
.attachment-chip{display:flex;align-items:center;gap:8px;min-width:0;max-width:100%;background:#f0f5ed;border:1px solid #dfe8da;border-radius:10px;padding:7px 9px;font-size:11px}
.attachment-chip>div{min-width:0}.attachment-chip strong{display:block;max-width:230px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:500}
.attachment-chip small{display:block;font-size:10px;color:#7f9278;margin-top:4px}.attachment-chip.error small{color:var(--danger)}
.message-text a{color:#246d53;text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}
.returned-files{display:flex;flex-wrap:wrap;gap:10px;margin:14px 0 0 30px}.file-card{display:flex;flex-direction:column;gap:7px;text-align:left;min-width:160px;max-width:min(100%,320px);background:#f1f5ed;border:1px solid #dae5d4;border-radius:13px;padding:12px;color:var(--ink)}
.file-card strong{font-size:12px;font-weight:500;overflow-wrap:anywhere}.file-card small{font-size:10px;color:var(--muted)}.returned-image{max-width:100%;max-height:260px;object-fit:contain;border-radius:8px}
#file-dialog{width:min(calc(100% - 24px),780px)}#file-title{font-size:16px;overflow-wrap:anywhere}#file-preview{margin:18px 0;font-size:13px;line-height:1.8;overflow-wrap:anywhere}#file-preview img{display:block;max-width:100%;max-height:65dvh;margin:auto;object-fit:contain;border-radius:10px}#file-preview pre{font:13px/1.9 Consolas,"Microsoft YaHei",monospace;white-space:pre-wrap;overflow-wrap:anywhere}#file-download{text-decoration:none;margin-top:15px}
@media(max-width:760px){.returned-files{margin-left:0}.attachment-chip strong{max-width:200px}.file-card{width:100%;max-width:100%}.returned-image{align-self:center}}
