.draft-list { max-height: 104px; overflow-y: auto; padding: 0 14px; }
.draft-item { display: flex; align-items: center; gap: 8px; margin: 5px 0; padding: 7px 9px; border: 1px solid #e6e9ef; border-radius: 9px; color: #596174; background: #fafbfc; font-size: .75rem; }
.draft-item.active { border-color: #9caae9; background: var(--brand-soft); }
.draft-item > span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.composer { padding: 10px 14px 13px; border-top: 1px solid var(--line); background: white; }
.draft-edit-notice { margin-bottom: 7px; color: #5867b5; font-size: .73rem; }
.composer-input { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.composer-input:focus-within { border-color: #94a2ee; box-shadow: 0 0 0 .15rem rgba(82,103,217,.12); }
.composer textarea { display: block; flex: 0 1 auto; width: 100%; min-height: 72px; height: clamp(72px, 14dvh, 150px); max-height: 22dvh; resize: none; overflow-y: auto; padding: 10px 12px; border: 0; border-radius: 12px 12px 0 0; background: transparent; }
.composer textarea:focus { outline: none; box-shadow: none; }
.composer-tools { display: flex; flex: 0 0 auto; align-items: center; gap: 6px; padding: 0 8px 8px; }
.composer-input-hint { min-width: 0; color: var(--muted); font-size: .69rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.composer-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 4px; margin-left: auto; }
.composer .composer-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 34px; width: 34px; height: 34px; padding: 7px; border: 0; border-radius: 8px; color: #606a7c; background: transparent; }
.composer .composer-icon:hover { color: var(--brand); background: var(--brand-soft); }
.composer .composer-icon:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.composer .composer-icon:disabled { opacity: .45; cursor: default; }
.composer-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.composer .composer-stop { color: var(--danger); }
.composer .composer-send { color: white; background: var(--brand); }
.composer .composer-send:hover { color: white; background: #4356bf; }
.composer-icon.is-loading svg { animation: web-composer-spin 1s linear infinite; }
.pending-attachments { max-height: 100px; overflow-y: auto; }
@keyframes web-composer-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .composer-icon.is-loading svg { animation: none; } }
@media (max-width: 820px) { .composer { padding-bottom: max(8px, env(safe-area-inset-bottom)); } .composer textarea { font-size: 16px; min-height: 60px; max-height: max(60px, 20dvh); } }
@media (max-width: 520px) { .composer-input-hint { display: none; } .composer-tools { padding: 0 6px 6px; } .composer .composer-icon { width: 36px; height: 36px; flex-basis: 36px; } }
.pending-attachments { display: flex; flex-wrap: wrap; gap: 6px; }
.attachment-chip { display: inline-flex; align-items: center; gap: 5px; margin-bottom: 7px; padding: 5px 8px; border-radius: 8px; background: #eef1f5; color: #586174; font-size: .73rem; }
.attachment-chip button { padding: 0; border: 0; color: #7c8494; background: none; }
