/* Messages: inbox, requests, new message and the chat room. Every colour comes from theme tokens. */

/* Kept for notifications.js which still uses the compact avatar classes. */
.sm-msg-avatar, .sm-msg-avatar-initial { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; object-fit: cover; }
.sm-msg-avatar-initial { display: inline-flex; align-items: center; justify-content: center; background: var(--primary-container); color: var(--on-primary-container); font-weight: 800; }
.sm-msg-avatar-initial svg { width: 20px; height: 20px; fill: currentColor; }

/* ------------------------------------------------------------ inbox */
.sm-inbox { display: flex; flex-direction: column; gap: 12px; }
.sm-inbox-head { display: flex; align-items: center; gap: 10px; }
.sm-inbox-head__title { margin: 0; font-size: 1.2rem; display: flex; align-items: center; gap: 8px; }
.sm-inbox-search { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 14px; border-radius: 999px; background: var(--surface-container-high); border: 1px solid transparent; color: var(--on-surface-variant); transition: border-color .15s ease, background .15s ease; }
.sm-inbox-search:focus-within { border-color: var(--primary); background: var(--surface-container-highest); }
.sm-inbox-search svg { width: 20px; height: 20px; fill: currentColor; flex-shrink: 0; }
.sm-inbox-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--on-surface); font-size: 15px; }
.sm-inbox-search input::-webkit-search-cancel-button { filter: grayscale(1); }
.sm-inbox-new { display: inline-flex; align-items: center; gap: 6px; height: 46px; padding: 0 16px; border-radius: 999px; background: var(--primary); color: var(--on-primary); font-weight: 800; flex-shrink: 0; box-shadow: var(--gold-glow); transition: transform .1s ease; }
.sm-inbox-new:active { transform: scale(.96); }
.sm-inbox-new svg { width: 18px; height: 18px; fill: currentColor; }

.sm-inbox-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.sm-inbox-tabs::-webkit-scrollbar { display: none; }
.sm-inbox-tab { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--outline-variant); color: var(--on-surface-variant); font-weight: 700; white-space: nowrap; transition: background .15s ease, color .15s ease, border-color .15s ease; }
.sm-inbox-tab.is-on { background: var(--on-surface); color: var(--surface); border-color: var(--on-surface); }
.sm-inbox-tab span { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--primary); color: var(--on-primary); font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.sm-inbox-tab span.is-alert { background: var(--error); color: var(--on-error); }

.sm-active-strip { display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 6px; scrollbar-width: none; }
.sm-active-strip::-webkit-scrollbar { display: none; }
.sm-active-strip__item { display: grid; justify-items: center; gap: 4px; width: 62px; flex-shrink: 0; color: var(--on-surface-variant); }
.sm-active-strip__item small { max-width: 62px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }

.sm-req-card { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-radius: 18px; background: color-mix(in srgb, var(--primary) 12%, var(--surface-container)); border: 1px solid color-mix(in srgb, var(--primary) 35%, transparent); text-align: left; color: var(--on-surface); }
.sm-req-card > span:nth-child(2) { flex: 1; min-width: 0; display: grid; }
.sm-req-card small { color: var(--on-surface-variant); }
.sm-req-card > svg { width: 20px; height: 20px; fill: var(--on-surface-variant); }
.sm-req-card__icon { width: 40px; height: 40px; border-radius: 12px; background: var(--primary); color: var(--on-primary); display: inline-flex; align-items: center; justify-content: center; }
.sm-req-card__icon svg { width: 22px; height: 22px; fill: currentColor; }

.sm-convo-list { display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; background: var(--surface-container-low); border: 1px solid var(--outline-variant); }
.sm-convo { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; text-align: left; color: var(--on-surface); background: transparent; transition: background .12s ease; min-width: 0; }
.sm-convo + .sm-convo::before { content: ''; position: absolute; top: 0; left: 72px; right: 0; border-top: 1px solid var(--outline-variant); opacity: .6; }
.sm-convo:not(.sm-convo--static):not(.sm-convo--ghost):active { background: var(--surface-container-high); }
@media (hover: hover) { .sm-convo:not(.sm-convo--static):not(.sm-convo--ghost):hover { background: var(--surface-container); } }
.sm-convo__main { flex: 1; min-width: 0; display: grid; gap: 3px; }
.sm-convo__top, .sm-convo__bottom { display: flex; align-items: center; gap: 6px; min-width: 0; }
.sm-convo__top b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; font-weight: 650; }
.sm-convo__top time { flex-shrink: 0; font-size: 12px; color: var(--on-surface-variant); }
.sm-convo__preview { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--on-surface-variant); font-size: 13.5px; }
.sm-convo.is-unread .sm-convo__top b { font-weight: 800; }
.sm-convo.is-unread .sm-convo__preview { color: var(--on-surface); font-weight: 600; }
.sm-convo.is-unread .sm-convo__top time { color: var(--primary); font-weight: 700; }
.sm-convo__count { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--primary); color: var(--on-primary); font-size: 12px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sm-convo__tag { flex-shrink: 0; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--outline-variant); font-size: 11px; color: var(--on-surface-variant); }
.sm-convo__tick, .sm-convo__kind { display: inline-flex; flex-shrink: 0; color: var(--on-surface-variant); }
.sm-convo__tick svg, .sm-convo__kind svg { width: 16px; height: 16px; fill: currentColor; }
.sm-convo__tick.is-seen { color: var(--primary); }
.sm-convo--static .btn { flex-shrink: 0; }
.sm-convo--ghost .sm-av { background: var(--surface-container-high); }
.sm-convo--ghost i { display: block; height: 11px; border-radius: 6px; background: var(--surface-container-high); animation: sm-ghost 1.2s ease-in-out infinite; }
.sm-convo--ghost i:first-child { width: 45%; } .sm-convo--ghost i:last-child { width: 75%; }
@keyframes sm-ghost { 50% { opacity: .45; } }

.sm-inbox-empty { display: grid; justify-items: center; text-align: center; gap: 8px; padding: 36px 20px; border-radius: 22px; border: 1px dashed var(--outline-variant); background: var(--surface-container-low); }
.sm-inbox-empty h3 { margin: 6px 0 0; font-size: 1.1rem; }
.sm-inbox-empty p { margin: 0 0 8px; max-width: 34ch; color: var(--on-surface-variant); line-height: 1.5; }
.sm-inbox-empty__art { width: 64px; height: 64px; border-radius: 22px; display: inline-flex; align-items: center; justify-content: center; background: var(--primary-container); color: var(--on-primary-container); }
.sm-inbox-empty__art svg { width: 32px; height: 32px; fill: currentColor; }
.sm-section-label { margin: 4px 4px 0; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--on-surface-variant); }

/* requests */
.sm-req-list { display: grid; gap: 12px; }
.sm-req { padding: 14px; border-radius: 20px; background: var(--surface-container); border: 1px solid var(--outline-variant); display: grid; gap: 10px; }
.sm-req__head { display: flex; align-items: center; gap: 8px; }
.sm-req__who { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; text-align: left; color: var(--on-surface); }
.sm-req__who > span:last-child { display: grid; min-width: 0; }
.sm-req__who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sm-req__who small { color: var(--on-surface-variant); }
.sm-req__body { margin: 0; padding: 10px 14px; border-radius: 4px 18px 18px 18px; background: var(--surface-container-highest); line-height: 1.45; overflow-wrap: anywhere; }
.sm-req__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.sm-req__actions .btn { flex: 1 1 auto; min-height: 42px; }
.sm-req__actions svg { width: 18px; height: 18px; fill: currentColor; }

/* ------------------------------------------------------------ chat room */
.sm-app-shell--immersive .sm-app-shell__header, .sm-app-shell--immersive .sm-app-shell__nav { display: none; }
.sm-app-shell--immersive { height: 100dvh; display: flex; flex-direction: column; }
.sm-app-shell--immersive .sm-app-shell__content { flex: 1 1 auto; min-height: 0; padding-bottom: 0 !important; padding: 0; overflow: hidden; display: flex; flex-direction: column; max-width: 100%; }
.sm-chat { position: relative; flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; width: 100%; max-width: 54rem; margin: 0 auto;
  background:
    radial-gradient(1200px 400px at 50% -10%, color-mix(in srgb, var(--primary) 7%, transparent), transparent 70%),
    var(--surface); }
.sm-chat-top { flex: 0 0 auto; display: flex; align-items: center; gap: 4px; padding: 8px max(8px, env(safe-area-inset-left)) 8px max(4px, env(safe-area-inset-left)); padding-top: max(8px, env(safe-area-inset-top)); background: color-mix(in srgb, var(--surface-container) 88%, transparent); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-bottom: 1px solid var(--outline-variant); position: relative; z-index: 3; }
.sm-chat-top__who { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 4px 6px; border-radius: 14px; text-align: left; color: var(--on-surface); }
button.sm-chat-top__who:active { background: var(--surface-container-high); }
.sm-chat-top__text { display: grid; min-width: 0; line-height: 1.25; }
.sm-chat-top__text b { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sm-chat-top__text small { font-size: 12.5px; color: var(--on-surface-variant); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sm-chat-top__live { color: var(--ok); font-weight: 700; }
.sm-chat-top__actions { display: flex; gap: 2px; flex-shrink: 0; }

.sm-icon-btn { width: 42px; height: 42px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--on-surface); flex-shrink: 0; transition: background .12s ease, transform .1s ease; }
.sm-icon-btn:active { background: var(--surface-container-high); transform: scale(.94); }
@media (hover: hover) { .sm-icon-btn:hover { background: var(--surface-container-high); } }
.sm-icon-btn svg { width: 22px; height: 22px; fill: currentColor; }

.sm-chat-banner { display: flex; align-items: center; gap: 10px; margin: 8px 12px 0; padding: 10px 12px; border-radius: 14px; background: var(--surface-container-high); color: var(--on-surface-variant); font-size: 13px; line-height: 1.4; }
.sm-chat-banner svg { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; }
.sm-chat-banner span { flex: 1; }
.sm-chat-banner.is-action { background: color-mix(in srgb, var(--primary) 14%, var(--surface-container)); color: var(--on-surface); }
.btn.small { min-height: 36px; padding: 6px 14px; font-size: 13px; }

.sm-chat-stream { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; padding: 12px 12px 10px; display: flex; flex-direction: column; gap: 2px; scroll-behavior: auto; -webkit-overflow-scrolling: touch; }
.sm-chat-stream--state { justify-content: flex-end; gap: 10px; }
.sm-chat-ghost { width: var(--w); height: 38px; border-radius: 18px; background: var(--surface-container-high); animation: sm-ghost 1.2s ease-in-out infinite; }
.sm-chat-ghost.is-own { align-self: flex-end; background: color-mix(in srgb, var(--primary) 25%, var(--surface-container-high)); }

.sm-chat-older { align-self: center; margin: 4px 0 10px; padding: 8px 16px; border-radius: 999px; background: var(--surface-container-high); color: var(--on-surface); font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; }
.sm-chat-start { align-self: center; display: inline-flex; align-items: center; gap: 6px; margin: 6px 0 12px; padding: 6px 12px; border-radius: 10px; background: var(--surface-container); color: var(--on-surface-variant); font-size: 12px; text-align: center; }
.sm-chat-start svg { width: 14px; height: 14px; fill: currentColor; }
.sm-chat-day { position: sticky; top: 2px; z-index: 2; align-self: center; margin: 12px 0 8px; pointer-events: none; }
.sm-chat-day span { display: inline-block; padding: 4px 12px; border-radius: 999px; background: color-mix(in srgb, var(--surface-container-highest) 92%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: var(--on-surface-variant); font-size: 12px; font-weight: 700; box-shadow: 0 1px 4px rgb(0 0 0 / .12); }

.sm-msg { position: relative; display: flex; align-items: flex-end; gap: 6px; max-width: 100%; transition: transform .18s var(--sm-ease-spring, ease); }
.sm-msg.is-first { margin-top: 8px; }
.sm-msg.is-own { flex-direction: row-reverse; }
.sm-msg__av { width: 28px; flex-shrink: 0; }
.sm-msg__col { display: flex; flex-direction: column; align-items: flex-start; max-width: min(78%, 32rem); min-width: 0; }
.sm-msg.is-own .sm-msg__col { align-items: flex-end; }
.sm-msg__name { margin: 0 0 3px 12px; font-size: 12px; font-weight: 800; color: hsl(var(--av-h, 42) 70% 42%); }
:root:not([data-theme="light"]) .sm-msg__name { color: hsl(var(--av-h, 42) 80% 70%); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .sm-msg__name { color: hsl(var(--av-h, 42) 70% 38%); } }

.sm-bubble { position: relative; padding: 8px 12px 6px; border-radius: 20px; background: var(--surface-container-high); color: var(--on-surface); line-height: 1.42; font-size: 15px; overflow-wrap: anywhere; word-break: break-word; -webkit-user-select: text; user-select: text; -webkit-touch-callout: none; cursor: default; outline: none; box-shadow: 0 1px 1.5px rgb(0 0 0 / .08); transition: transform .12s ease, filter .12s ease; }
.sm-bubble:focus-visible { box-shadow: 0 0 0 2px var(--primary); }
.sm-bubble:active { filter: brightness(.96); }
.sm-msg:not(.is-own).is-first .sm-bubble { border-top-left-radius: 20px; }
.sm-msg:not(.is-own):not(.is-first) .sm-bubble { border-top-left-radius: 6px; }
.sm-msg:not(.is-own):not(.is-last) .sm-bubble { border-bottom-left-radius: 6px; }
.sm-msg:not(.is-own).is-last .sm-bubble { border-bottom-left-radius: 6px; }
.sm-msg.is-own .sm-bubble { background: linear-gradient(160deg, color-mix(in srgb, var(--primary) 92%, white) 0%, var(--primary) 100%); color: var(--on-primary); }
.sm-msg.is-own:not(.is-first) .sm-bubble { border-top-right-radius: 6px; }
.sm-msg.is-own .sm-bubble { border-bottom-right-radius: 6px; }
.sm-msg.is-own:not(.is-last) .sm-bubble { border-bottom-right-radius: 6px; }
.sm-msg.is-pending .sm-bubble { opacity: .75; }
.sm-msg.is-failed .sm-bubble { background: var(--error-container); color: var(--on-error-container); }
.sm-msg.is-flash .sm-bubble { animation: sm-flash 1.1s ease; }
@keyframes sm-flash { 0%, 100% { box-shadow: 0 0 0 0 transparent; } 30% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 55%, transparent); transform: scale(1.02); } }
.sm-msg.is-swipe-ready .sm-bubble { filter: brightness(1.06); }
.sm-msg.is-swipe-ready::before { content: ''; position: absolute; left: -34px; bottom: 6px; width: 26px; height: 26px; border-radius: 50%; background: var(--surface-container-highest) center/16px no-repeat; }
.sm-msg { animation: sm-msg-in .22s var(--sm-ease-spring, ease) both; }
@keyframes sm-msg-in { from { opacity: 0; transform: translateY(6px) scale(.98); } }
.sm-chat-stream .sm-msg:not(:nth-last-child(-n+3)) { animation: none; }

.sm-bubble__text { margin: 0; white-space: pre-wrap; color: inherit; }
.sm-bubble p, .sm-bubble small { color: inherit; }
.sm-bubble__text a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.sm-bubble__deleted { margin: 0; display: inline-flex; align-items: center; gap: 6px; font-style: italic; opacity: .7; }
.sm-bubble__deleted svg { width: 15px; height: 15px; fill: currentColor; }
.sm-bubble__meta { float: right; display: inline-flex; align-items: center; gap: 4px; margin: 6px 0 -2px 10px; font-size: 11px; line-height: 1; opacity: .72; white-space: nowrap; }
.sm-bubble__meta em { font-style: normal; }
.sm-bubble__tick { display: inline-flex; }
.sm-bubble__tick svg { width: 15px; height: 15px; fill: currentColor; }
.sm-bubble__tick.is-seen { opacity: 1; }
.sm-msg.is-own .sm-bubble__tick.is-seen svg { fill: color-mix(in srgb, var(--on-primary) 70%, #0a66c2); }
.sm-bubble__fail { color: inherit; font-weight: 800; }
.sm-bubble__quote { display: grid; gap: 1px; width: 100%; margin: 0 0 6px; padding: 6px 10px; border-radius: 12px; border-left: 3px solid currentColor; background: color-mix(in srgb, currentColor 10%, transparent); text-align: left; color: inherit; font-size: 13px; }
.sm-bubble__quote b { font-size: 12px; }
.sm-bubble__quote span { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; opacity: .85; }

.sm-bubble__reactions { display: flex; flex-wrap: wrap; gap: 4px; margin: -6px 8px 2px; position: relative; z-index: 1; }
.sm-bubble__reactions.is-pop { animation: sm-pop .3s var(--sm-ease-spring, ease); }
@keyframes sm-pop { 50% { transform: scale(1.18); } }
.sm-react-chip { display: inline-flex; align-items: center; gap: 3px; height: 26px; padding: 0 8px; border-radius: 999px; background: var(--surface-container-highest); border: 2px solid var(--surface); font-size: 14px; line-height: 1; color: var(--on-surface); }
.sm-react-chip small { font-size: 11px; font-weight: 800; }
.sm-react-chip.is-mine { background: color-mix(in srgb, var(--primary) 26%, var(--surface-container-highest)); }
.sm-msg__retry { margin: 3px 6px 0; font-size: 12px; font-weight: 700; color: var(--error); }
.sm-chat-seen { margin: 2px 6px 0; font-size: 11px; color: var(--on-surface-variant); }

.sm-msg__more { align-self: center; width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--on-surface-variant); opacity: 0; transition: opacity .12s ease; flex-shrink: 0; }
.sm-msg__more svg { width: 18px; height: 18px; fill: currentColor; }
@media (hover: hover) and (pointer: fine) { .sm-msg:hover .sm-msg__more, .sm-msg__more:focus-visible { opacity: 1; } }
@media (pointer: coarse) { .sm-msg__more { display: none; } }

.sm-chat-empty { margin: auto 0; display: grid; justify-items: center; text-align: center; gap: 8px; padding: 24px 12px; }
.sm-chat-empty h3 { margin: 8px 0 0; font-size: 1.15rem; }
.sm-chat-empty p { margin: 0; color: var(--on-surface-variant); max-width: 32ch; }
.sm-chat-empty__icon { width: 84px; height: 84px; border-radius: 28px; display: inline-flex; align-items: center; justify-content: center; background: var(--primary-container); color: var(--on-primary-container); }
.sm-chat-empty__icon svg { width: 40px; height: 40px; fill: currentColor; }
.sm-chat-starters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 10px; }
.sm-chat-starter { min-height: 36px; padding: 6px 14px; background: var(--surface-container-high); border-color: var(--outline-variant); color: var(--on-surface); font-weight: 650; cursor: pointer; transition: transform .1s ease; }
.sm-chat-starter:active { transform: scale(.96); }

.sm-chat-jump { position: absolute; right: 16px; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 4; width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--surface-container-highest); color: var(--on-surface); box-shadow: 0 6px 18px rgb(0 0 0 / .22); border: 1px solid var(--outline-variant); animation: sm-msg-in .2s ease; }
.sm-chat-jump[hidden] { display: none; }
.sm-chat-jump svg { width: 24px; height: 24px; fill: currentColor; }
.sm-chat-jump span:not(:empty) { position: absolute; top: -6px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--primary); color: var(--on-primary); font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }

.sm-compose { flex: 0 0 auto; padding: 8px max(10px, env(safe-area-inset-left)) calc(10px + env(safe-area-inset-bottom)); padding-right: max(10px, env(safe-area-inset-right)); background: color-mix(in srgb, var(--surface-container) 92%, transparent); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-top: 1px solid var(--outline-variant); position: relative; z-index: 3; }
.sm-compose__row { display: flex; align-items: flex-end; gap: 8px; }
.sm-compose textarea { flex: 1; min-width: 0; min-height: 44px; max-height: 132px; resize: none; padding: 11px 16px; border-radius: 22px; border: 1px solid var(--outline-variant); background: var(--surface); color: var(--on-surface); font-size: 15px; line-height: 1.4; outline: none; transition: border-color .15s ease; }
.sm-compose textarea:focus { border-color: var(--primary); }
.sm-compose textarea::placeholder { color: var(--on-surface-variant); opacity: .8; }
.sm-compose__send { width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; background: var(--primary); color: var(--on-primary); box-shadow: var(--gold-glow); transition: transform .15s var(--sm-ease-spring, ease), opacity .15s ease, background .15s ease; }
.sm-compose__send svg { width: 20px; height: 20px; fill: currentColor; margin-left: 2px; }
.sm-compose__send:disabled { opacity: 1; background: var(--surface-container-highest); color: var(--on-surface-variant); box-shadow: none; transform: scale(.92); }
.sm-compose__send:not(:disabled):active { transform: scale(.9); }
.sm-compose__count { display: block; margin: 4px 8px 0; text-align: right; font-size: 11px; color: var(--on-surface-variant); }
.sm-compose__bar { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; padding: 8px 6px 8px 12px; border-radius: 14px; background: var(--surface-container-high); border-left: 3px solid var(--primary); animation: sm-msg-in .18s ease; }
.sm-compose__bar > svg { width: 18px; height: 18px; fill: var(--primary); flex-shrink: 0; }
.sm-compose__bar > div { flex: 1; min-width: 0; display: grid; }
.sm-compose__bar b { font-size: 12.5px; color: var(--primary); }
.sm-compose__bar span { font-size: 13px; color: var(--on-surface-variant); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sm-compose__bar .sm-icon-btn { width: 34px; height: 34px; }
.sm-compose__bar .sm-icon-btn svg { width: 18px; height: 18px; }

@media (min-width: 900px) {
  .sm-chat { border-inline: 1px solid var(--outline-variant); }
  .sm-msg__col { max-width: 62%; }
}
@media (prefers-reduced-motion: reduce) {
  .sm-msg, .sm-bubble__reactions.is-pop, .sm-chat-jump, .sm-compose__bar { animation: none !important; }
}
