.composer-wrap { border-top: 1px solid var(--line); background: var(--panel); flex: none; }
.file-preview-strip { display: flex; gap: 8px; padding: 10px 14px 0; flex-wrap: wrap; }
.file-chip { position: relative; display: flex; align-items: center; gap: 6px; background: #eef2f8; border-radius: 8px; padding: 6px 8px; font-size: 12px; max-width: 180px; }
.file-chip img { width: 32px; height: 32px; object-fit: cover; border-radius: 6px; flex: none; }
.file-chip .file-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-chip .file-remove { position: absolute; top: -6px; right: -6px; width: 18px; height: 18px; border-radius: 50%; background: var(--red); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 11px; padding: 0; cursor: pointer; }
.file-chip.oversize { outline: 1px solid var(--red); }
.file-chip .file-error { display: block; color: var(--red); font-size: 10px; }

.composer { display: flex; align-items: flex-end; gap: 6px; padding: 10px 14px; }
.composer textarea {
  flex: 1; resize: none; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px;
  max-height: 120px; min-height: 40px; line-height: 1.4; background: #f7f9fc;
}
.composer textarea:focus { outline: none; border-color: var(--blue); background: #fff; }
.composer .send-btn { border-radius: 50%; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; flex: none; padding: 0; }
.composer input[type="file"] { display: none; }

.emoji-popover {
  position: absolute; bottom: 60px; background: var(--panel); border: 1px solid var(--line);
  border-radius: 12px; box-shadow: var(--shadow-lg); padding: 10px; display: grid;
  grid-template-columns: repeat(8, 1fr); gap: 2px; width: 260px; max-height: 220px; overflow: auto; z-index: 5;
}
.emoji-popover button { background: none; padding: 4px; font-size: 18px; border-radius: 6px; }
.emoji-popover button:hover { background: #eef2f8; }

.composer-error { color: var(--red); font-size: 12px; padding: 0 14px 8px; }
.composer-anchor { position: relative; }

@media (max-width: 420px) {
  .emoji-popover { width: min(240px, 88vw); grid-template-columns: repeat(6, 1fr); left: 0; }
}

