.attachment-choose { min-width: 28px; padding: 2px 5px; font-size: 20px; line-height: 24px; flex-shrink: 0; }
.attachment-tray { width: 100%; max-width: 960px; margin: 8px auto; color: var(--text); }
.attachment-tray[hidden] { display: none; }
.attachment-list { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 6px; }
.attachment-card { flex: 0 0 230px; display: flex; gap: 10px; min-width: 0; padding: 10px; border: 1px solid var(--border); border-radius: var(--r-control); background: var(--bg-raised); }
.attachment-card img { width: 58px; height: 58px; object-fit: contain; border-radius: 5px; background: var(--bg); }
.attachment-info { min-width: 0; flex: 1; }
.attachment-name { display: block; font-size: var(--font-label); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attachment-detail { display: block; font-size: var(--font-meta); color: var(--text-dim); overflow-wrap: anywhere; line-height: 1.35; }
.attachment-info button { font-size: var(--font-meta); margin-top: 4px; margin-right: 4px; }
.attachment-status { font-size: var(--font-meta); line-height: 1.4; color: var(--text-dim); margin: 0; }
.attachment-card[data-state="error"] { border-color: var(--red, #d37575); }
.attachment-drop { outline: 2px solid var(--accent); outline-offset: 3px; }
.history-images { display: flex; gap: 12px; flex-wrap: wrap; margin: 8px 0; }
.history-image { display: flex; flex-direction: column; max-width: 280px; gap: 6px; }
.history-image img { max-width: 280px; max-height: 240px; object-fit: contain; border-radius: var(--r-control); }
.quick-composer .attachment-tray { margin-top: 0; }
.attachment-info button { min-height: 28px; padding: 3px 7px; font-size: var(--font-control); }
.attachment-choose svg { display: block; width: 18px; height: 18px; }
.quick-composer .composer.has-image-attachments #input { min-height: 24px; }
.quick-composer .attachment-card { flex-basis: 260px; padding: 6px; gap: 8px; }
.quick-composer .attachment-card img { width: 40px; height: 40px; }
.quick-composer .attachment-info { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 6px; }
.quick-composer .attachment-info .attachment-detail { grid-row: 2; }
.quick-composer .attachment-info button { grid-column: 2; grid-row: 1 / 3; align-self: center; margin: 0; }
.quick-composer .attachment-info button + button { grid-row: 3; }
#thread-view #composer-provider-trigger { flex-shrink: 0; min-width: 84px; max-width: 104px; }
