/* Chat (web M2): list, conversation, messages, composer, chat dialogs,
   photo viewer, notifications popup. Theme variables only — the chat
   bubble colours come from mobile's stream-theme.ts formulas via
   --chat-bg-outgoing / --chat-bg-incoming / --chat-text-outgoing. */

/* ── eHQ badge + notifications popup ───────────────────────────────── */
.logo-button__badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--accent);
  color: var(--on-accent);
  border: 2px solid var(--background);
  font-size: 10px;
  font-weight: 700;
  line-height: 14px;
  text-align: center;
}
.logo-button__badge[hidden] { display: none; }
.notif-list { display: flex; flex-direction: column; }
.notif-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.notif-row:last-child { border-bottom: 0; }
.notif-row__avatar { width: 28px; height: 28px; border-radius: 6px; border: 1px solid var(--accent-border); }
.notif-row__label { flex: 1; font-size: 15px; font-weight: 600; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.dialog-head .dialog-title { margin: 0; }
.link-button { color: var(--accent); font-size: 15px; font-weight: 600; padding: 4px 6px; }
.invite-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.invite-row--no-border { border-bottom: 0; }
.invite-row__label { flex: 1; font-size: 15px; }
.invite-row__decline { color: var(--danger); font-weight: 600; font-size: 14px; padding: 6px; }

/* ── Layout: list + conversation ───────────────────────────────────── */
.chat-layout { display: flex; flex: 1; min-height: 0; height: 100%; }
.chat-layout__list, .chat-layout__convo { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.chat-layout__list { flex: 1; overflow-y: auto; }
.chat-layout__convo { flex: 1; }
.chat-layout--list .chat-layout__convo { display: none; }
.chat-layout--open .chat-layout__list { display: none; }
.chat-layout__empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
@media (min-width: 768px) {
  .chat-layout__list { flex: 0 0 360px; border-right: 1px solid var(--border); }
  .chat-layout--list .chat-layout__convo,
  .chat-layout--open .chat-layout__list { display: flex; }
  .conversation__back { display: none !important; }
}

/* ── Chat list (mobile ChannelRow) ─────────────────────────────────── */
.chat-list { padding: 0 16px 16px; display: flex; flex-direction: column; }
.chat-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 8px;
  margin: 0 -8px;
  border-radius: 12px;
  border-bottom: 1px solid var(--border);
}
.chat-row:last-child { border-bottom: 0; }
.chat-row--active { background: var(--surface); }
.chat-row__general {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 8px;
  border: 1px solid;
  background: var(--overlay-backdrop);
  display: flex;
  align-items: center;
  justify-content: center;
}
.chat-row__general-glyph {
  width: 85%;
  height: 85%;
  background-color: var(--radio-accent);
  -webkit-mask: url('/assets/images/general.png') center / contain no-repeat;
  mask: url('/assets/images/general.png') center / contain no-repeat;
}
.chat-row__text { flex: 1; min-width: 0; }
.chat-row__top { display: flex; justify-content: space-between; gap: 8px; }
.chat-row__name { font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-row__time { font-size: 12px; color: var(--text-tertiary); flex-shrink: 0; }
.chat-row__preview {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.badge {
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 11px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
  flex-shrink: 0;
}
.chat-row__more {
  opacity: 0;
  color: var(--text-tertiary);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.chat-row:hover .chat-row__more, .chat-row__more:focus-visible { opacity: 1; }
@media (hover: none) { .chat-row__more { opacity: 1; } }
.chat-error { padding: 24px 0; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.chat-banner { font-size: 13px; color: var(--text-secondary); text-align: center; padding: 6px; }

/* ── Conversation ──────────────────────────────────────────────────── */
.conversation { position: relative; display: flex; flex-direction: column; flex: 1; min-height: 0; }
.conversation--drop::after {
  content: 'Drop to attach';
  position: absolute;
  inset: 8px;
  border: 2px dashed var(--accent);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--accent);
  background: color-mix(in srgb, var(--background) 70%, transparent);
  pointer-events: none;
  z-index: 5;
}
.conversation__header {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 60px;
  padding: 6px 16px;
  flex-shrink: 0;
}
.conversation__title { flex: 1; min-width: 0; font-size: 17px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conversation__header-right { display: flex; gap: 8px; }
.conversation__state { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.conversation__body { position: relative; flex: 1; min-height: 0; display: flex; }
.conversation__typing { min-height: 18px; padding: 0 20px; font-size: 12px; font-style: italic; color: var(--text-tertiary); }
.conversation__jump {
  position: absolute;
  right: 16px;
  bottom: 12px;
  width: 44px;
  height: 44px;
  border-radius: 22px;
  background: var(--surface-alt);
  border: 1px solid var(--accent-border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.conversation__jump[hidden] { display: none; }

/* ── Messages ──────────────────────────────────────────────────────── */
.msg-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.msg-older { text-align: center; font-size: 12px; color: var(--text-tertiary); padding: 8px; }
.msg-empty { text-align: center; margin: auto; }
.msg-day { display: flex; justify-content: center; margin: 12px 0 6px; }
.msg-day span { background: var(--surface-alt); border-radius: 12px; padding: 4px 12px; font-size: 13px; font-weight: 600; }
.msg-system { text-align: center; font-size: 12px; color: var(--text-tertiary); padding: 6px 24px; }

.msg-row { display: flex; align-items: flex-start; gap: 8px; max-width: 100%; }
.msg-row--first { margin-top: 10px; }
.msg-row--own { flex-direction: row-reverse; }
.msg-row--highlight .msg-bubble { outline: 2px solid var(--accent); outline-offset: 2px; }
/* Avatar on the FIRST message of a run, top-aligned with the name (M2 item 6b). */
.msg-avatar { width: 32px; flex-shrink: 0; align-self: flex-start; border-radius: 8px; }
.msg-avatar--spacer { height: 1px; }
.msg-col { display: flex; flex-direction: column; min-width: 0; max-width: min(75%, 560px); }
.msg-row--own .msg-col { align-items: flex-end; }
.msg-row--other .msg-col { align-items: flex-start; }
.msg-name { font-size: 13px; font-weight: 600; margin: 0 0 3px 4px; }

.msg-bubble-wrap { display: flex; flex-direction: column; min-width: 0; max-width: 100%; }
.msg-row--own .msg-bubble-wrap { align-items: flex-end; }
.msg-bubble-line { display: flex; align-items: center; gap: 4px; max-width: 100%; }
.msg-row--own .msg-bubble-line { flex-direction: row-reverse; }
.msg-bubble {
  min-width: 0;
  max-width: 100%;
  border-radius: 18px;
  padding: 8px 12px;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  font-size: 15px;
  line-height: 1.35;
}
.msg-bubble--other { background: var(--chat-bg-incoming); color: var(--text); }
.msg-bubble--own { background: var(--chat-bg-outgoing); color: var(--chat-text-outgoing); border: 1px solid var(--accent); }
.msg-bubble--emoji { background: transparent; border: 0; font-size: 34px; padding: 0 4px; }
.msg-bubble--deleted { background: var(--surface-alt); color: var(--text-tertiary); font-style: italic; font-size: 14px; border: 0; }
.msg-text { display: block; }
.msg-link { color: inherit; text-decoration: underline; }
.msg-mention { font-weight: 700; color: var(--accent); }
.msg-bubble--own .msg-mention { color: inherit; text-decoration: underline; }

.msg-hover-actions { display: flex; gap: 2px; opacity: 0; transition: opacity 120ms; }
.msg-row:hover .msg-hover-actions, .msg-hover-actions:focus-within { opacity: 1; }
@media (hover: none) { .msg-hover-actions { display: none; } }
.msg-hover-btn { width: 28px; height: 28px; border-radius: 14px; display: flex; align-items: center; justify-content: center; }
.msg-hover-btn:hover { background: var(--surface-alt); }

.msg-quote {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  width: 100%;
  text-align: left;
  border-left: 3px solid var(--text-secondary);
  background: var(--surface-alt);
  border-radius: 10px;
  padding: 6px 10px;
  margin-bottom: 6px;
  color: var(--text);
}
.msg-quote--own { background: var(--accent); color: var(--on-accent); border-left-color: var(--on-accent); }
.msg-quote__who { font-weight: 700; font-size: 13px; }
.msg-quote__text { font-size: 13px; opacity: 0.85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

.msg-media { display: grid; gap: 3px; margin: -2px -6px 6px; border-radius: 14px; overflow: hidden; }
.msg-media--1 { grid-template-columns: 1fr; }
.msg-media--2 { grid-template-columns: 1fr 1fr; }
.msg-media--3, .msg-media--4 { grid-template-columns: 1fr 1fr; }
.msg-media__tile { position: relative; display: block; background: var(--surface-alt); min-width: 120px; }
.msg-media--1 .msg-media__tile { max-width: 320px; }
.msg-media__img { display: block; width: 100%; max-height: 320px; object-fit: cover; }
.msg-media:not(.msg-media--1) .msg-media__img { aspect-ratio: 1; height: auto; }
.msg-media__play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.msg-media__play .mdi { color: var(--white); }
.msg-media__more {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  background: color-mix(in srgb, var(--overlay-backdrop) 50%, transparent);
}

.msg-preview {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 6px;
  border-left: 3px solid var(--accent);
  padding-left: 8px;
  max-width: 320px;
  white-space: normal;
}
.msg-preview__img { width: 100%; max-height: 160px; object-fit: cover; border-radius: 8px; margin-bottom: 4px; }
.msg-preview__title { font-weight: 700; font-size: 13px; }
.msg-preview__text { font-size: 12px; opacity: 0.8; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.track-card { display: flex; align-items: center; gap: 10px; min-width: 240px; white-space: normal; }
.track-card__art { width: 48px; height: 48px; border-radius: 8px; overflow: hidden; background: var(--surface-alt); border: 1px solid var(--accent-border); flex-shrink: 0; }
.track-card__art img { width: 100%; height: 100%; object-fit: cover; }
.track-card__text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.track-card__title { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track-card__subtitle, .track-card__duration { font-size: 12px; opacity: 0.8; }

.msg-bubble-anchor { position: relative; min-width: 0; max-width: 100%; }
.msg-bubble-anchor--reacted { margin-bottom: 14px; }
/* Bottom-right corner, overlapping the bubble (2026-09-29, matches phones). */
.msg-reactions { position: absolute; right: 8px; bottom: -14px; display: flex; gap: 4px; z-index: 1; }
.msg-reaction {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: var(--surface-alt);
  border: 1px solid var(--accent-border);
  border-radius: 12px;
  padding: 1px 7px;
  font-size: 13px;
}
.msg-reaction--own { border-color: var(--accent); }
.msg-reaction__count { font-size: 11px; font-weight: 700; }

/* Seen avatars (2026-09-30): tiny rounded squares, "+N" past 8. */
.msg-seen { display: flex; align-items: center; gap: 2px; margin: 3px 6px 0; padding: 0; background: none; border: 0; }
.msg-seen--right { justify-content: flex-end; align-self: flex-end; }
.msg-seen--button { cursor: pointer; }
.msg-seen__avatar { display: flex; }
.msg-seen__more { font-size: 10px; font-weight: 700; color: var(--text-tertiary); margin-left: 2px; }
.msg-seen-list { display: flex; flex-direction: column; gap: 8px; max-height: 320px; overflow-y: auto; }
.msg-seen-list__row { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.msg-footer { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--text-tertiary); margin: 3px 6px 0; }
.msg-footer__edited { font-style: italic; }
.msg-footer--failed { color: var(--danger); }

/* ── Message menu: mobile's reaction cross + action list ───────────── */
.dialog-card--msg-menu { max-width: 320px; padding: 16px; }
.msg-menu { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
.reaction-cross { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.reaction-cross__row { display: flex; align-items: center; gap: 6px; }
.reaction-cross__cell {
  width: 44px;
  height: 44px;
  border-radius: 22px;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-alt);
  transition: transform 100ms;
}
.reaction-cross__cell:hover { transform: scale(1.12); }
.reaction-cross__cell--big { width: 64px; height: 64px; border-radius: 32px; font-size: 34px; }
.reaction-cross__cell--own { outline: 2px solid var(--accent); }
.msg-menu__actions { display: flex; flex-direction: column; border-top: 1px solid var(--border); padding-top: 6px; }
.msg-menu__row { display: flex; align-items: center; gap: 12px; padding: 11px 8px; border-radius: 8px; font-size: 15px; font-weight: 600; text-align: left; }
.msg-menu__row--danger { color: var(--danger); }
.msg-menu__row--danger .mdi { color: var(--danger); }

/* ── Composer ──────────────────────────────────────────────────────── */
.composer { position: relative; padding: 6px 8px max(8px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 6px; }
.composer__row { display: flex; align-items: flex-end; gap: 6px; }
.composer__attach { width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.composer__attach .mdi { color: var(--warning); }
.composer__box {
  flex: 1;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  background: var(--background);
  border: 1px solid var(--accent-border);
  border-radius: 18px;
  padding: 4px 6px 4px 14px;
}
.composer__box:focus-within { border-color: var(--accent); }
.composer__input {
  flex: 1;
  resize: none;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 15px;
  line-height: 1.35;
  padding: 7px 0;
  max-height: 160px;
}
.composer__input::placeholder { color: var(--text-tertiary); opacity: 0.6; }
.composer__send {
  width: 34px;
  height: 34px;
  border-radius: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-alt);
  flex-shrink: 0;
}
.composer__send .mdi { color: var(--text-tertiary); }
.composer__send--ready { background: var(--accent); }
.composer__send--ready .mdi { color: var(--on-accent); }
/* Outside the bubble (2026-09-29): 44px tall = one-line box height, so it lines up with the pill as the box grows upward. */
.composer__quick { width: 32px; height: 44px; font-size: 22px; flex-shrink: 0; }
.composer__context-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface-alt);
  border-radius: 12px;
  padding: 8px 10px;
}
.composer__context-text { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 13px; }
.composer__context-text span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0.85; }
.composer__tray { display: flex; gap: 8px; flex-wrap: wrap; }
.composer__tray:empty, .composer__context:empty { display: none; }
.composer__thumb { position: relative; width: 64px; height: 64px; border-radius: 10px; overflow: hidden; border: 1px solid var(--accent-border); }
.composer__thumb img, .composer__thumb video { width: 100%; height: 100%; object-fit: cover; }
.composer__thumb--failed { border-color: var(--danger); }
.composer__thumb-state {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--overlay-backdrop) 45%, transparent);
}
.composer__thumb-state--failed .mdi { color: var(--danger); }
.composer__thumb-remove {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 20px;
  height: 20px;
  border-radius: 10px;
  background: var(--overlay-backdrop);
  display: flex;
  align-items: center;
  justify-content: center;
}
.composer__thumb-remove .mdi { color: var(--white); }
.composer__mentions {
  position: absolute;
  bottom: 100%;
  left: 56px;
  right: 8px;
  max-height: 220px;
  overflow-y: auto;
  border-radius: 12px;
  border: 1px solid var(--accent-border);
  background: var(--surface);
  padding: 4px;
  z-index: 10;
}
.composer__mentions[hidden] { display: none; }
.composer__mention { display: block; width: 100%; text-align: left; padding: 8px 10px; border-radius: 8px; font-weight: 600; }
.composer__mention--active, .composer__mention:hover { background: var(--surface-alt); }

/* ── Chat dialogs ──────────────────────────────────────────────────── */
.dialog-title--menu { padding: 12px 20px 4px; margin: 0; }
.section-label--spaced { margin-top: 16px; }
.members-list { max-height: 240px; overflow-y: auto; }
.member-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 15px; }
.member-row--no-border { border-bottom: 0; }
.picker { display: flex; flex-direction: column; gap: 6px; }
.picker-results { max-height: 260px; overflow-y: auto; border-radius: 10px; }
.picker-results:not(:empty) { background: var(--surface-alt); }
.picker-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; text-align: left; font-size: 15px; border-bottom: 1px solid var(--border); }
.picker-row:last-child { border-bottom: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.chips:empty { display: none; }
.chip { display: inline-flex; align-items: center; gap: 4px; background: var(--accent); color: var(--on-accent); border-radius: 14px; padding: 4px 6px 4px 12px; font-size: 14px; font-weight: 600; }
.chip__remove .mdi { color: var(--on-accent); }
.select { appearance: auto; }
.primary-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 8px; border-radius: 10px; font-weight: 700; font-size: 15px; background: var(--surface-alt); }
.inline-form { display: flex; gap: 8px; margin-top: 12px; }
.inline-form .btn { flex-shrink: 0; }
.search-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.search-results { display: flex; flex-direction: column; }
.search-row { display: flex; align-items: center; gap: 10px; padding: 10px 4px; border-bottom: 1px solid var(--border); text-align: left; width: 100%; }
.search-row__text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.search-row__title { font-size: 13px; font-weight: 700; }
.search-row__snippet { font-size: 14px; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-row__time { font-size: 12px; color: var(--text-tertiary); flex-shrink: 0; }
.thumb-grid__video { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.thumb-grid__video .mdi { color: var(--white); }
.thumb-grid__tile--selected { outline: 3px solid var(--accent); outline-offset: -3px; }

/* ── Photo / video viewer ──────────────────────────────────────────── */
.viewer-host { position: fixed; inset: 0; }
.viewer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--overlay-backdrop) 88%, transparent);
}
.viewer__stage { display: flex; align-items: center; justify-content: center; max-width: 100%; max-height: 100%; padding: 56px 72px 88px; }
.viewer__media { max-width: 100%; max-height: calc(100vh - 150px); object-fit: contain; border-radius: 6px; }
.viewer__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 56px; height: 56px; border-radius: 28px; display: flex; align-items: center; justify-content: center; }
.viewer__nav[hidden] { display: none; }
.viewer__nav .mdi, .viewer__close .mdi, .viewer__action .mdi { color: var(--white); }
.viewer__nav--prev { left: 12px; }
.viewer__nav--next { right: 12px; }
.viewer__nav:hover, .viewer__close:hover { background: color-mix(in srgb, var(--white) 12%, transparent); }
.viewer__close { position: absolute; top: 12px; right: 12px; width: 48px; height: 48px; border-radius: 24px; display: flex; align-items: center; justify-content: center; }
.viewer__bar { position: absolute; bottom: 16px; left: 0; right: 0; display: flex; justify-content: center; align-items: center; gap: 24px; color: var(--white); }
.viewer__counter { font-size: 14px; min-width: 48px; text-align: center; }
.viewer__action { display: inline-flex; align-items: center; gap: 6px; color: var(--white); font-weight: 600; padding: 8px 12px; border-radius: 10px; }
.viewer__action[hidden] { display: none; }
.viewer__action:hover { background: color-mix(in srgb, var(--white) 12%, transparent); }

/* ── /dev/stream-test (hidden; delete at M7) ───────────────────────── */
.devtest { display: flex; flex-direction: column; gap: 10px; }
.devtest__status { font-size: 13px; color: var(--text-secondary); }
.devtest__actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.devtest__actions .input { flex: 1; min-width: 180px; }
.devtest__list { display: flex; flex-direction: column; max-height: 220px; overflow-y: auto; }
.devtest__row { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--border); font-size: 13px; }
.devtest__row--open { background: var(--surface); }
.devtest__convo { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.devtest__msg { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.devtest__log { font-size: 11px; max-height: 220px; overflow: auto; background: var(--surface); padding: 8px; border-radius: 8px; white-space: pre-wrap; }

/* ── GIFs (2026-09-29) ─────────────────────────────────────────────── */
.composer__gif { font-size: 11px; font-weight: 800; letter-spacing: 0.05em; color: var(--accent); border: 1px solid var(--accent-border); border-radius: 6px; padding: 3px 5px; align-self: flex-end; margin-bottom: 11px; flex-shrink: 0; }
.gif-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 6px; max-height: 55vh; overflow-y: auto; }
.gif-tile { aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: var(--surface-alt); padding: 0; }
.gif-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gif-more { align-self: center; margin-top: 8px; }
.gif-credit { font-size: 11px; color: var(--text-tertiary); text-align: center; margin-top: 8px; }
.msg-gif { display: block; max-width: min(260px, 100%); height: auto; border-radius: 12px; }
