/* ==========================================================================
   Chat: the drawer on the right, the conversation list, the conversation view
   Colours come from the organization palette through the design tokens only.
   ========================================================================== */

/* ------------------------------ drawer shell ------------------------------- */
.chat-drawer {
  position: fixed; inset: 0 0 0 auto; z-index: 45;
  width: var(--drawer-width); max-width: 100vw; height: 100vh; height: 100dvh;
  display: flex; flex-direction: column;
  background: var(--surface); border-left: 1px solid var(--line); box-shadow: var(--shadow-3);
  transform: translateX(100%); visibility: hidden;
  transition: transform .32s var(--ease), visibility 0s linear .32s;
}
.chat-drawer.is-open { transform: none; visibility: visible; transition: transform .32s var(--ease), visibility 0s; }

/* on wide screens the open drawer pushes the page instead of covering it */
.app[data-chat-open="true"] .main { margin-right: var(--drawer-width); }
@media (max-width: 1100px) { .app[data-chat-open="true"] .main { margin-right: 0; } }
@media (max-width: 640px) { .chat-drawer { width: 100vw; border-left: 0; } }
@media (prefers-reduced-motion: reduce) { .chat-drawer, .chat-drawer.is-open { transition: none; } }

.chat-panel { position: relative; display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; width: 100%; }
turbo-frame.chat-panel[busy] { opacity: 1; }
/* a thin progress line instead of dimming everything while the panel loads or a message is sent */
.chat-panel[busy]::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; z-index: 6; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--brand), transparent); background-size: 50% 100%; background-repeat: no-repeat;
  animation: chat-busy 1s linear infinite;
}
@keyframes chat-busy { from { background-position: -50% 0; } to { background-position: 150% 0; } }

.chat-loading { display: grid; gap: 12px; padding: 18px 16px; }

.chat-view { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }

/* --------------------------------- header ---------------------------------- */
.chat-header {
  display: flex; align-items: center; gap: 10px; flex: none; min-height: var(--topbar-height); padding: 10px 14px 10px 16px;
  background: var(--surface); border-bottom: 1px solid var(--line);
}
.chat-header--conversation { padding-left: 10px; min-height: 0; padding-block: 10px; }
.chat-header__title { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.chat-header__title h2 { font-size: 1.1rem; }
.chat-header__count { background: var(--surface-3); color: var(--text-2); }
.chat-header__actions { display: flex; align-items: center; gap: 4px; flex: none; }
.chat-header__meta { flex: 1; min-width: 0; line-height: 1.25; }
.chat-header__meta h2 { font-size: 1rem; }
.chat-header__meta p { font-size: 12.5px; color: var(--text-3); }
.chat-header .dropdown .menu { min-width: 250px; }
.chat-header .icon-button { width: 36px; height: 36px; }
.chat-header .icon-button .icon { width: 19px; height: 19px; }

.chat-search { flex: none; padding: 10px 16px 6px; }
.chat-search .input-icon .icon { left: 12px; width: 16px; height: 16px; }
.chat-search .input { padding-left: 36px; border-radius: 999px; background: var(--surface-2); }

.chat-top { flex: none; display: flex; flex-direction: column; max-height: 60%; min-height: 0; }
.chat-top > .chat-header { flex: none; }

/* ------------------------------ conversation list -------------------------- */
.chat-results { display: block; flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.chat-list { display: flex; flex-direction: column; gap: 2px; padding: 4px 8px 16px; }
.chat-section-title { padding: 12px 16px 2px; font-size: 12px; font-weight: 600; color: var(--text-3); }

.chat-item {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 13px;
  color: var(--text); text-decoration: none; transition: background .12s;
}
.chat-item:hover { background: var(--surface-3); color: var(--text); text-decoration: none; }
.chat-item:focus-visible { box-shadow: var(--focus); }
.chat-item .avatar { --size: 44px; }
.chat-item__body { flex: 1; min-width: 0; display: grid; gap: 2px; }
.chat-item__row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.chat-item__title { flex: 1 1 auto; min-width: 0; font-size: 14px; font-weight: 500; }
.chat-item__kind, .chat-item__muted { flex: none; display: inline-flex; color: var(--text-3); }
.chat-item__time { flex: none; font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.chat-item__preview { flex: 1; min-width: 0; font-size: 13.5px; color: var(--text-2); }
.chat-item__badge {
  flex: none; display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  background: var(--brand-strong); color: var(--on-brand); font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.chat-item.is-unread .chat-item__title { font-weight: 650; }
.chat-item.is-unread .chat-item__preview { color: var(--text); font-weight: 500; }
.chat-item.is-unread .chat-item__time { color: var(--brand-strong); font-weight: 550; }
.chat-item--hit { align-items: flex-start; }
.chat-item--hit .avatar { --size: 34px; margin-top: 2px; }
.chat-item__snippet {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere;
  font-size: 13px; line-height: 1.4; color: var(--text-2);
}
.chat-item__snippet b { color: var(--text); font-weight: 550; }
.chat-item mark, .chat-search-results mark { background: color-mix(in srgb, var(--brand) 24%, white); color: inherit; border-radius: 3px; padding: 0 2px; }

/* tile avatars: groups and objects */
.chat-tile { border-radius: 12px; background: var(--surface-2); color: var(--text-2); box-shadow: inset 0 0 0 1px var(--line); }
.chat-tile .icon { width: 48%; height: 48%; }
.chat-tile--group { background: var(--surface-3); color: var(--text-2); box-shadow: none; }
.chat-header .avatar, .chat-header .chat-tile { --size: 38px; }

/* empty states */
.chat-empty { display: grid; justify-items: center; gap: 8px; padding: 48px 28px; text-align: center; }
.chat-empty .empty__icon {
  width: 60px; height: 60px; border-radius: 20px; display: grid; place-items: center; margin-bottom: 2px;
  background: var(--surface-2); color: var(--text-3); border: 1px solid var(--line); border-radius: 50%;
}
.chat-empty .empty__icon .icon { width: 26px; height: 26px; }
.chat-empty h3 { font-size: 1.02rem; }
.chat-empty p { color: var(--text-2); font-size: 13.5px; max-width: 34ch; }
.chat-empty--center { flex: 1; align-content: center; }
.chat-list:has(.chat-item) > .chat-empty { display: none; }
.chat-messages:has(turbo-frame) > .chat-empty--thread { display: none; }
.chat-empty--thread { padding-block: 64px; }

/* -------------------------------- details panel ---------------------------- */
.chat-info { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 2px 16px 12px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.chat-info__section { display: grid; gap: 8px; padding: 12px 0; border-top: 1px dashed var(--line); }
.chat-info__section:first-child { border-top: 0; }
.chat-info__section h3 { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--text-3); }
.chat-info__text { font-size: 13.5px; color: var(--text-2); }
.chat-info .btn { justify-self: start; }
.chat-inline-form { display: flex; gap: 8px; }
.chat-people { display: grid; gap: 2px; }
.chat-person { display: flex; align-items: center; gap: 10px; padding: 4px 0; font-size: 14px; }
.chat-person__name { flex: 1; min-width: 0; font-weight: 500; }
.chat-person form { display: contents; }
.chat-person__remove { width: 30px; height: 30px; color: var(--text-3); }
.chat-person__remove:hover { color: var(--danger-ink); background: var(--danger-soft); }

/* ----------------------------- people pickers ------------------------------ */
.chat-picker { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
.chat-picker__form { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
.chat-picker__name { flex: none; padding: 12px 16px 0; }
.chat-picker__footer { flex: none; padding: 12px 16px 16px; border-top: 1px solid var(--line); background: var(--surface); }
.chat-pick { flex: 1 1 auto; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 1px; padding: 4px 8px; }
.chat-pick--short { flex: none; max-height: 190px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.chat-pick__item {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border-radius: 11px; border: 0; background: transparent;
  color: var(--text); font-size: 14px; font-weight: 500; text-align: left; cursor: pointer; transition: background .12s;
}
.chat-pick__item:hover { background: var(--surface-3); }
.chat-pick__item > span:not(.avatar) { flex: 1; min-width: 0; }
.chat-pick__item > .icon { color: var(--text-3); }
.chat-pick__item input[type="checkbox"] { width: 17px; height: 17px; flex: none; }
.chat-pick__item:has(input:checked) { background: var(--surface-2); }
.chat-pick--list form, .chat-pick form { display: contents; }
.chat-pick__none { padding: 14px; text-align: center; font-size: 13.5px; }

/* --------------------------------- thread ---------------------------------- */
.chat-thread { position: relative; display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; background: var(--surface-2); }
.chat-scroll {
  position: relative; display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  scroll-behavior: auto; padding: 6px 14px 10px;
}
.chat-messages { display: block; margin-top: auto; }
.chat-older, .chat-message-frame { display: block; }
.chat-older > .btn, .chat-older > a { margin: 6px auto 4px; display: flex; width: max-content; }

.chat-day, .chat-new { display: flex; align-items: center; gap: 12px; margin: 18px 0 6px; font-size: 11.5px; font-weight: 550; }
.chat-day { color: var(--text-3); }
.chat-day::before, .chat-day::after, .chat-new::before, .chat-new::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.chat-day span { padding: 2px 10px; border-radius: 999px; background: var(--bg); color: var(--text-3); }
.chat-new { color: var(--brand-strong); }
.chat-new::before, .chat-new::after { background: var(--brand-line); }
.chat-new span { padding: 2px 10px; border-radius: 999px; background: var(--brand-badge); }

/* ------------------------------- messages --------------------------------- */
.chat-message { display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; }
.chat-message.is-continued { margin-top: 2px; }
.chat-message__avatar { flex: none; width: 28px; padding-top: 1px; }
.chat-message.is-continued .chat-message__avatar > * { visibility: hidden; }
.chat-message__main { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; max-width: min(84%, 520px); }
.chat-message__author { padding: 0 4px; font-size: 12px; font-weight: 550; color: var(--text-2); }
.chat-message.is-own .chat-message__author, .chat-message.is-continued .chat-message__author, .chat-view[data-kind="direct"] .chat-message__author { display: none; }

.chat-message.is-own { flex-direction: row-reverse; }
.chat-message.is-own .chat-message__avatar { display: none; }
.chat-message.is-own .chat-message__main { align-items: flex-end; }

.chat-bubble-row { display: flex; flex-direction: row-reverse; justify-content: flex-end; align-items: center; gap: 4px; max-width: 100%; }
.chat-message.is-own .chat-bubble-row { flex-direction: row; }

.chat-bubble {
  position: relative; min-width: 0; padding: 8px 12px; border-radius: 5px 16px 16px 16px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); color: var(--text);
  font-size: 14.5px; line-height: 1.45; overflow-wrap: anywhere;
}
.chat-message.is-continued .chat-bubble { border-top-left-radius: 16px; }
.chat-message.is-own .chat-bubble { border-radius: 16px 5px 16px 16px; background: var(--surface-3); border-color: transparent; box-shadow: none; color: var(--text); }
.chat-message.is-own.is-continued .chat-bubble { border-top-right-radius: 16px; }
.chat-bubble:has(.chat-media):not(:has(.chat-text)) { padding: 4px; }
.chat-bubble > * + * { margin-top: 6px; }

.chat-link { text-decoration: underline; text-underline-offset: 2px; word-break: break-word; }
.chat-edited { font-size: 11.5px; font-style: italic; color: var(--text-3); white-space: nowrap; }

/* time: only under the last message of a group, or when pointing at a message */
.chat-meta { display: none; padding: 0 4px; font-size: 11px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.chat-message.is-last .chat-meta, .chat-message:hover .chat-meta { display: block; }

/* edit / delete: appear next to the bubble */
.chat-actions { display: flex; gap: 2px; flex: none; opacity: 0; transition: opacity .12s; }
.chat-message:hover .chat-actions, .chat-actions:focus-within { opacity: 1; }
.chat-actions form { display: contents; }
.chat-action {
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 0; background: transparent;
  color: var(--text-3); cursor: pointer; transition: background .12s, color .12s;
}
.chat-action:hover { background: var(--surface-3); color: var(--text); text-decoration: none; }
.chat-action--danger:hover { background: var(--danger-soft); color: var(--danger-ink); }
@media (hover: none) { .chat-actions { opacity: 1; } .chat-action { width: 32px; height: 32px; } }

.chat-deleted {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px dashed var(--line-strong); border-radius: 14px;
  color: var(--text-3); font-size: 13px; font-style: italic;
}
.chat-message--deleted.is-own { justify-content: flex-start; }
.chat-message--deleted.is-own .chat-deleted { margin-left: auto; }
.chat-message--deleted { margin-left: 36px; }
.chat-message--deleted.is-own { margin-left: 0; }

.chat-message-frame.is-focused > .chat-message .chat-bubble { animation: chat-focus 2.2s var(--ease); }
@keyframes chat-focus { 0%, 60% { box-shadow: 0 0 0 4px var(--brand-ring); } 100% { box-shadow: var(--shadow-1); } }

.chat-message-frame.is-pending { min-height: 46px; }
.chat-pending { display: block; width: 42%; height: 38px; margin-top: 12px; border-radius: 16px; }
.chat-unavailable { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-3); }

/* mentions and references */
.chat-mention { padding: 0 4px; border-radius: 6px; background: var(--brand-badge); color: var(--brand-hover); font-weight: 550; white-space: nowrap; }
.chat-mention.is-me { background: var(--brand-strong); color: var(--on-brand); }
.chat-ref { display: inline-block; max-width: 100%; vertical-align: middle; }
.chat-ref__chip {
  display: inline-flex; align-items: center; gap: 6px; max-width: 100%; height: 26px; padding: 0 9px; border-radius: 9px;
  background: var(--surface); border: 1px solid var(--line); color: var(--text); font-size: 13px; font-weight: 500; text-decoration: none; vertical-align: middle;
}
a.chat-ref__chip:hover { background: var(--surface-2); border-color: var(--line-strong); text-decoration: none; }
.chat-ref__chip .icon { color: var(--text-3); }
.chat-ref__tag { color: var(--text-3); font-weight: 600; }
.chat-ref__chip.is-pending { color: var(--text-3); }
.chat-ref__chip.is-denied { border-style: dashed; color: var(--text-3); background: transparent; font-weight: 500; }
.chat-ref__chip.is-denied .icon { color: var(--text-3); }

/* attachments */
.chat-media { display: grid; gap: 4px; grid-template-columns: 1fr; width: min(280px, 100%); }
.chat-media:not(.chat-media--1) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.chat-media__item { display: block; overflow: hidden; border-radius: 11px; background: var(--surface-3); aspect-ratio: 1; max-height: 300px; }
.chat-media--1 .chat-media__item { aspect-ratio: 4 / 3; }
.chat-media__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s var(--ease); }
.chat-media__item:hover img { transform: scale(1.03); }
.chat-files { display: grid; gap: 6px; }
.chat-file {
  display: flex; align-items: center; gap: 10px; min-width: 210px; max-width: 290px; padding: 8px 10px; border-radius: 12px;
  background: color-mix(in srgb, var(--text) 5%, transparent); color: inherit; text-decoration: none;
}
.chat-file:hover { background: color-mix(in srgb, var(--text) 9%, transparent); color: inherit; text-decoration: none; }
.chat-file__icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; flex: none; background: var(--surface-2); color: var(--text-2); }
.chat-file__meta { display: grid; min-width: 0; flex: 1; line-height: 1.25; }
.chat-file__meta strong { font-size: 13.5px; font-weight: 500; }
.chat-file__meta small { font-size: 11.5px; opacity: .7; }
.chat-message.is-own .chat-file { background: rgba(255, 255, 255, .16); }
.chat-message.is-own .chat-file:hover { background: rgba(255, 255, 255, .24); }
.chat-message.is-own .chat-file__icon { background: rgba(255, 255, 255, .22); color: #fff; }

/* editing a message in place */
.chat-message--editing { margin-top: 10px; }
.chat-message--editing .chat-message__main { width: 100%; max-width: 100%; align-items: stretch; }
.chat-edit { display: grid; gap: 8px; padding: 10px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line-strong); }
.chat-edit__input { min-height: 0; max-height: 168px; resize: none; }
.chat-edit__actions { display: flex; justify-content: flex-end; gap: 6px; }

/* new messages below the viewport */
.chat-jump {
  position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); z-index: 4; display: inline-flex; align-items: center; gap: 6px;
  height: 34px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--brand-strong); color: var(--on-brand);
  font-size: 13px; font-weight: 550; box-shadow: var(--shadow-3); animation: chat-pop .22s var(--ease);
}
.chat-jump:hover { background: var(--brand-hover); }
@keyframes chat-pop { from { opacity: 0; transform: translate(-50%, 8px); } }
.chat-read { display: none; }

.chat-history-bar { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; background: var(--surface); border-top: 1px solid var(--line); font-size: 13px; color: var(--text-2); }
.chat-history-bar span { display: inline-flex; align-items: center; gap: 6px; }
.chat-readonly { flex: none; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px; background: var(--surface); border-top: 1px solid var(--line); font-size: 13px; color: var(--text-3); }

.chat-notice-slot:empty { display: none; }
.chat-notice-slot { flex: none; }
.chat-notice {
  display: flex; align-items: center; gap: 8px; margin: 6px 12px; padding: 8px 12px; border-radius: 10px;
  background: var(--danger-soft); color: var(--danger-ink); font-size: 13px; font-weight: 500;
}

/* -------------------------------- composer --------------------------------- */
.chat-composer { position: relative; flex: none; padding: 8px 12px 10px; background: var(--surface); }
.chat-composer__box {
  position: relative; display: flex; align-items: flex-end; gap: 4px; padding: 5px; border: 1px solid var(--line-strong); border-radius: 20px;
  background: var(--surface); transition: border-color .15s, box-shadow .15s;
}
.chat-composer__box:focus-within { border-color: var(--text-3); box-shadow: var(--shadow-2); }
.chat-composer__attach { flex: none; width: 36px; height: 36px; cursor: pointer; }
.chat-composer__input {
  flex: 1; min-width: 0; max-height: 168px; padding: 8px 4px; border: 0; outline: 0; resize: none; background: transparent;
  font-size: 14.5px; line-height: 1.4; overflow-y: hidden;
}
.chat-composer__input:focus-visible { box-shadow: none; }
.chat-composer__input::placeholder { color: var(--text-3); }
.chat-composer__send {
  flex: none; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%;
  background: var(--brand-strong); color: var(--on-brand); transition: background .15s, transform .08s, opacity .15s;
}
.chat-composer__send:hover:not(:disabled) { background: var(--brand-hover); }
.chat-composer__send:active:not(:disabled) { transform: scale(.94); }
.chat-composer__send:disabled { background: var(--surface-3); color: var(--text-3); cursor: default; }
.chat-composer__send .icon { width: 17px; height: 17px; }
.chat-composer.is-sending .chat-composer__send, .chat-composer[data-direct-uploads-processing] .chat-composer__send { opacity: .6; }
.chat-composer.is-sending .chat-composer__send .icon { animation: chat-sending .8s ease-in-out infinite alternate; }
@keyframes chat-sending { to { transform: translate(2px, -2px); opacity: .5; } }
.chat-composer__hint { display: flex; align-items: center; gap: 12px; padding: 6px 8px 0; overflow: hidden; white-space: nowrap; font-size: 11px; color: var(--text-3); }
.chat-composer__hint span { display: inline-flex; align-items: center; gap: 3px; }
.chat-composer__hint .kbd { padding: 0 5px; font-size: 10.5px; }
.chat-composer__hint b { color: var(--text-2); }
@media (pointer: coarse), (max-width: 640px) { .chat-composer__hint { display: none; } }

.chat-composer__previews { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; }
.chat-preview {
  position: relative; display: flex; align-items: center; gap: 8px; flex: none; max-width: 190px; padding: 6px 8px 6px 6px;
  border: 1px solid var(--line); border-radius: 13px; background: var(--surface-2); font-size: 12.5px;
}
.chat-preview__thumb {
  display: grid; place-items: center; width: 38px; height: 38px; flex: none; overflow: hidden; border-radius: 9px;
  background: var(--surface-3); color: var(--text-2); font-size: 10px; font-weight: 550; letter-spacing: .02em;
}
.chat-preview__thumb img { width: 100%; height: 100%; object-fit: cover; }
.chat-preview__name { flex: 1; min-width: 0; font-weight: 600; }
.chat-preview small { color: var(--text-3); flex: none; }
.chat-preview__remove {
  display: grid; place-items: center; width: 20px; height: 20px; flex: none; padding: 0; border: 0; border-radius: 50%;
  background: var(--surface-3); color: var(--text-2); font-size: 15px; line-height: 1;
}
.chat-preview__remove:hover { background: var(--danger-soft); color: var(--danger-ink); }

.chat-composer__drop {
  position: absolute; inset: 4px; z-index: 5; display: none; place-items: center; gap: 8px; border: 2px dashed var(--brand); border-radius: 18px;
  background: color-mix(in srgb, var(--brand-soft) 92%, transparent); color: var(--brand-hover); font-weight: 550; font-size: 13.5px; pointer-events: none;
}
.chat-composer.is-dragging .chat-composer__drop { display: flex; justify-content: center; align-items: center; }

/* @ and # suggestions */
.chat-suggest {
  position: absolute; left: 0; right: 0; bottom: calc(100% + 8px); z-index: 8; max-height: 240px; overflow-y: auto; padding: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 15px; box-shadow: var(--shadow-3); animation: pop .12s var(--ease);
}
.chat-suggest__item {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 10px; border: 0; border-radius: 10px; background: transparent;
  color: var(--text); text-align: left; font-size: 14px; cursor: pointer;
}
.chat-suggest__item.is-active { background: var(--surface-2); }
.chat-suggest__label { font-weight: 500; }
.chat-suggest__detail { margin-left: auto; padding-left: 8px; max-width: 45%; color: var(--text-3); font-size: 12px; }
.chat-suggest__icon { display: grid; place-items: center; width: 22px; height: 22px; flex: none; border-radius: 7px; background: var(--surface-2); color: var(--text-2); }
.chat-suggest__empty { padding: 10px; font-size: 13px; color: var(--text-3); }

/* object page button */
.chat-subject-button { position: relative; }
.chat-subject-button__count { background: var(--brand-strong); color: var(--on-brand); }

.chat-search-results { padding-bottom: 14px; }
