/* Answer modes (ADR-T043), chosen 2026-11-23 (bản 1): the composer's mode buttons keep their approved look (.mode:
   the chosen one yellow, no frame) with one line on what the chosen mode does; every answer shows the mode it was
   answered in. Which modes an assistant offers comes from /v2/bots/visible `answer_modes`. */
.mv-host { display: flex; flex: 1 1 auto; align-items: center; gap: 12px; min-width: 0; container-type: inline-size; }
.mv-host[hidden] { display: none; }
.mv1 { display: inline-flex; flex: none; gap: 4px; }
.mv1-say { min-width: 0; overflow: hidden; color: var(--gray-700); font-size: 12.5px; line-height: 18px; white-space: nowrap; text-overflow: ellipsis; }

/* ── Every answer: the mode it was answered in ── */
.mv-tag { order: 2; display: inline-flex; align-items: center; gap: 5px; height: 22px; margin-left: 10px; padding: 0 8px; border: 1px solid var(--tdtu-blue-200); border-radius: 999px; background: var(--paper); color: var(--gray-700); font-family: var(--font-sans); font-size: 12px; font-weight: 600; line-height: 1; white-space: nowrap; }
.mv-tag .ic { width: 12px; height: 12px; color: var(--tdtu-blue-800); }
.mv-tag.is-up { border-color: var(--v-ink); background: var(--v-cream); color: var(--tdtu-blue-800); }
.mv-tag .mv-arrow { color: var(--gray-500); font-weight: 500; }

/* The line needs room: on a narrow composer (the welcome screen, laptops under 1280px) only the buttons show. */
@media (max-width: 1279px) { .mv1-say { display: none; } }
@container (max-width: 600px) { .mv1-say { display: none; } }

/* A phone: the answer's buttons take the right of the name line, so the mode tag shows its icon only (the words stay
   for screen readers) and the assistant's name keeps room; it used to shrink to nothing at 390px. */
@media (max-width: 640px) {
  .msg.bot > .bot-mark .role-name { flex: 0 1 auto; min-width: 4.5em; }
  .mv-tag { flex: none; gap: 3px; margin-left: 2px; padding: 0 6px; }
  .mv-tag > span:not(.vh) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
/* The smallest phones: the time gives way to the name (the history keeps when a conversation was). */
@media (max-width: 420px) { .msg.bot > .bot-mark:has(.mv-tag) .tag-time { display: none; } }
