.chat-attachments:empty{display:none}.chat-attachments{display:flex;flex-wrap:wrap;gap:8px;padding:12px 12px 0}.chat-file{display:flex;align-items:center;gap:8px;border:1px solid #e4e4e9;border-radius:14px;background:#fff;min-width:0;max-width:100%;padding:6px 2px 6px 8px}.chat-file img{width:40px;height:40px;object-fit:cover;border-radius:7px}.chat-file-type{font-size:10px;font-weight:650;background:#f1f2f6;padding:10px 5px;border-radius:7px}.chat-file-info{display:grid;gap:2px;min-width:0}.chat-file-info strong{font-size:13px;font-weight:500;max-width:200px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chat-file-info small{font-size:11px;color:#757580;max-width:230px;overflow-wrap:anywhere}.chat-file.is-error{border-color:#e7c5c5}.chat-file.is-error small{color:#a33}.chat-file button,.chat-attach{min-width:44px;min-height:44px;border:0;background:transparent;color:#70717a;display:inline-flex;align-items:center;justify-content:center;border-radius:10px;cursor:pointer}.chat-file button{font-size:22px}.chat-attach svg{width:22px;height:22px}.chat-attach:hover{background:#e5e6ed}.chat-attach:focus-visible,.chat-file button:focus-visible{outline:2px solid #0878ff;outline-offset:2px}.composer-bottom .chat-send{margin-left:auto}.chat-file-hint{font-size:11px;color:#90909a;align-self:center}.chat-sent-files{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px;max-width:100%}.chat-sent-file{display:flex;align-items:center;gap:8px;color:inherit;text-decoration:none;border:1px solid #dedee6;border-radius:12px;padding:8px;max-width:100%;min-height:44px}.chat-sent-file span{overflow-wrap:anywhere;min-width:0;font-size:13px}.chat-sent-file img{width:64px;height:64px;object-fit:cover;border-radius:8px}.chat-sent-file svg{width:20px;height:20px;flex-shrink:0}@media(max-width:480px){.chat-file-info strong{max-width:150px}.chat-file-info small{max-width:170px}.chat-file-hint{font-size:10px}.chat-attachments{padding:8px 8px 0}.chat-file{width:100%}}
.chat-page.is-empty .composer{padding:16px 16px 12px}.chat-page.is-empty .composer-bottom{position:static;inset:auto;display:flex;align-items:center;justify-content:flex-start;margin-top:8px}.chat-attachments{padding:0;margin-bottom:12px;max-height:220px;overflow-y:auto}.chat-attachments:empty{margin-bottom:0}.composer-bottom{align-items:center;justify-content:flex-start}.chat-attach{padding:8px;margin-left:-6px}.chat-file-hint{margin-left:6px}@media(max-width:767px){.chat-page.is-empty .composer{padding:14px 14px 10px}.chat-attachments{padding:0;max-height:190px}.chat-file-hint{margin-left:2px}}
.chat-file-info{flex:1}.chat-file button{flex:0 0 44px;width:44px;height:44px;min-height:44px;padding:0;margin:0;line-height:1}.chat-attachments{max-height:240px}@media(max-width:767px){.chat-attachments{max-height:220px}}
.chat-page .composer.is-file-drag{border-color:#0878ff;box-shadow:0 0 0 3px rgb(8 120 255 / 12%)}.chat-page .composer.is-file-drag::after{content:'松开即可上传文件';position:absolute;inset:0;z-index:3;display:flex;align-items:center;justify-content:center;pointer-events:none;border-radius:inherit;background:rgb(238 246 255 / 95%);color:#086dde;font-size:16px;font-weight:500}
