/* Support threads: attachments with previews, the assistant's label, and the reply picker. */
.gvs-files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.gvs-thumb {
  display: block; width: 168px; max-width: 100%; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .04); cursor: zoom-in;
}
.gvs-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s ease; }
.gvs-thumb:hover img, .gvs-thumb:focus-visible img { transform: scale(1.04); }
.gvs-thumb:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.gvs-thumb.gvs-broken { display: grid; place-items: center; font-size: 13px; opacity: .7; cursor: default; }
.gvs-chip {
  display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 7px 12px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .05); color: inherit; font: inherit; font-size: 13px; cursor: pointer;
}
.gvs-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.gvs-chip em { font-style: normal; opacity: .6; font-size: 12px; }
.gvs-chip:hover { background: rgba(255, 255, 255, .1); }

.gvs-ai-badge {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 4px; padding: 2px 9px; border-radius: 999px;
  font-size: 12px; font-weight: 600; background: rgba(255, 143, 60, .14); color: #ffb37a;
}
.gvs-ai-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.gvs-compose-files { display: grid; gap: 8px; margin-top: 4px; padding: 10px; border-radius: 14px; border: 1px dashed rgba(255, 255, 255, .18); }
.gvs-compose-files.over { border-color: currentColor; background: rgba(255, 255, 255, .04); }
.gvs-attach-btn { justify-self: start; }
.gvs-picked { display: flex; flex-wrap: wrap; gap: 8px; }
.gvs-pick {
  position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 10px; align-items: center;
  width: 240px; max-width: 100%; padding: 6px; border-radius: 12px; background: rgba(255, 255, 255, .05);
}
.gvs-pick img, .gvs-pick-name {
  width: 56px; height: 56px; border-radius: 8px; object-fit: cover; display: grid; place-items: center;
  font-size: 12px; font-weight: 700; background: rgba(255, 255, 255, .08);
}
.gvs-pick-meta { min-width: 0; display: grid; gap: 2px; }
.gvs-pick-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.gvs-pick-meta em { font-style: normal; font-size: 12px; opacity: .6; }
.gvs-pick-x {
  position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; border: 0;
  background: rgba(0, 0, 0, .55); color: #fff; cursor: pointer; line-height: 1;
}
.gvs-hint { margin: 0; font-size: 12px; opacity: .7; }
.gvs-msg:empty { display: none; }
