/* ============================================================================
   IMAGE ATTACHMENT — paperclip button + preview tile
   ============================================================================ */

.image-btn {
  background: rgba(255,255,255,0.04) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  color: #d4a574 !important;
}
.image-btn:hover {
  background: rgba(255,255,255,0.08) !important;
  border-color: var(--p-accent, #d4a574) !important;
}

.image-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px 10px;
  margin: 4px 8px 0;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
}
.image-preview[hidden] { display: none; }

.image-preview-tile {
  position: relative;
  width: 70px;
  height: 70px;
}
.image-preview-tile img {
  width: 100%;
  height: 100%;
  border-radius: 6px;
  object-fit: cover;
}
.image-preview-tile button {
  position: absolute;
  top: -6px;
  right: -6px;
  background: rgba(0,0,0,0.75);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  width: 22px; height: 22px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.image-preview-tile button:hover { background: rgba(255,0,0,0.7); }

/* image bubble inside chat */
.chat-bubble img.attached-image {
  max-width: 100%;
  max-height: 280px;
  border-radius: 10px;
  margin-bottom: 6px;
  display: block;
}
