/* FF IQ attachments and citations. Uses the colour tokens from app.css. */
.composer .attach { height: 46px; font-size: 18px; padding: 0 .6rem; }
.attach-chips {
  display: flex; flex-wrap: wrap; gap: 6px; max-width: 892px; width: 100%; margin: 0 auto; padding: 8px 16px 0;
}
.file-chip {
  display: inline-flex; align-items: center; gap: 6px; max-width: 100%;
  border: 1px solid var(--border); background: var(--surface); border-radius: 10px; padding: 4px 6px 4px 10px; font-size: 13px;
}
.file-chip .file-name { font-weight: 600; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-chip .file-meta { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 320px; }
.file-chip.failed { border-color: var(--error); }
.file-chip.failed .file-meta { color: var(--error); }
.file-chip button { padding: .1rem .4rem; }
.file-chip .spinner { width: 12px; height: 12px; }
button.file-chip { cursor: pointer; padding-right: 10px; }
button.file-chip:hover { border-color: var(--brand-2); }

.msg-files { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; margin-bottom: 6px; }

/* [n] citation markers in answers */
button.cite {
  display: inline-block; min-width: 1.5em; padding: 0 .35em; margin: 0 1px; vertical-align: super; line-height: 1.4;
  font-size: 11px; font-weight: 700; border-radius: 6px; border: 1px solid var(--border);
  background: var(--surface-2); color: var(--brand-2); cursor: pointer;
}
button.cite:hover { border-color: var(--brand-2); }
.sources-box { margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--border); }
.sources-title { font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
ol.sources { margin: 0; padding-left: 1.6rem; font-size: 13px; }
ol.sources li { margin: 2px 0; }
button.cite-long { background: none; border: none; padding: 0; color: var(--brand-2); cursor: pointer; text-align: left; font: inherit; }
button.cite-long:hover { text-decoration: underline; }

dialog.passage { max-width: 760px; }
.passage-text {
  white-space: pre-wrap; max-height: 60vh; overflow-y: auto; background: var(--code-bg); border: 1px solid var(--border);
  border-radius: 8px; padding: 12px 14px; line-height: 1.7;
}

.chat.dropping { outline: 3px dashed var(--brand-2); outline-offset: -8px; }
