/* Chat: readable conversations and a steady composer over the selected wallpaper. */
:root {
  --chat-rail-width: 4.75rem;
  --chat-chrome: color-mix(in srgb, var(--surface) 91%, transparent);
  --chat-reading: color-mix(in srgb, var(--surface) 64%, transparent);
  --chat-control: color-mix(in srgb, var(--surface-raised) 95%, transparent);
  --chat-pages-clearance: max(5.25rem, calc(4.25rem + env(safe-area-inset-bottom)));
}

body .home > .chat-view {
  position: fixed;
  inset: 0;
  display: grid;
  grid-template-columns: var(--chat-rail-width) clamp(15rem, 20vw, 18rem) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  grid-template-areas: 'rail sidebar content';
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  color: var(--text);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
body .chat-view[hidden],
body .chat-view [hidden] { display: none !important; }

body .chat-view :is(.chat-server-rail, .chat-sidebar, .chat-content, .friends-toolbar,
  .conversation-toolbar, .account-dock, .message-composer, .active-card, .message-link-card,
  .empty-state-mark, .message-media-preview-action, .profile-banner-control) {
  background-image: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
body .chat-view .chat-server-rail {
  grid-area: rail;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .625rem;
  min-height: 0;
  padding: max(.75rem, env(safe-area-inset-top)) .625rem max(.75rem, env(safe-area-inset-bottom));
  overflow: visible;
  border-right: 1px solid var(--border);
  border-bottom: 0;
  background: var(--chat-chrome);
  scrollbar-width: thin;
}
.chat-view .rail-button {
  flex: 0 0 auto;
  width: 3rem;
  height: 3rem;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: .875rem;
  background: var(--surface-raised);
  color: var(--muted);
}
.chat-view .rail-button:hover,
.chat-view .rail-button.is-active {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
  border-radius: .75rem;
  background: color-mix(in srgb, var(--accent) 17%, var(--surface));
  color: var(--accent);
  transform: none;
}
.chat-view .rail-button.is-active::before { left: -.625rem; width: 3px; height: 1.5rem; }
.chat-view .rail-divider { width: 2rem; height: 1px; flex: 0 0 auto; }
.chat-view .pages-launcher.is-chat-docked { position: relative; inset: auto; flex: 0 0 auto; align-self: center; margin-top: auto; padding-top: .75rem; }
.chat-view .pages-launcher.is-chat-docked .menu-button { position: relative; inset: auto; width: 3rem; height: 3rem; padding: .8rem; border-color: var(--border); border-radius: .875rem; background: var(--surface-raised); }
.chat-view .pages-launcher.is-chat-docked .site-menu { max-height: calc(100dvh - 5.5rem); }

body .chat-view .chat-sidebar {
  grid-area: sidebar;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border-right: 1px solid var(--border);
  border-bottom: 0;
  background: var(--chat-chrome);
}
.chat-view :is(.chat-sidebar-friends, .chat-sidebar-server) {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  min-height: 0;
  max-block-size: none;
  height: auto;
  padding: .75rem;
  overflow-y: auto;
  scrollbar-width: thin;
}
.chat-view .chat-sidebar-friends {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto auto minmax(0, 1fr);
  align-content: start;
}
.chat-view .chat-search-wrap { padding-bottom: .75rem; }
.chat-view .chat-search { min-height: 44px; border-radius: .5rem; background: var(--surface); font-size: .8rem; box-shadow: none; }
.chat-view .chat-search:focus { border-color: var(--accent); box-shadow: none; }
.chat-view .sidebar-destination { margin-top: .75rem; border-radius: .5rem; font-size: .875rem; }
.chat-view .dm-heading { margin: 1rem 0 .5rem; padding: 0 .25rem; font-size: .625rem; letter-spacing: .065em; }
.chat-view .dm-heading button { width: 44px; height: 44px; }
.chat-view .dm-list { min-height: 0; align-content: start; gap: .25rem; overflow-y: auto; scrollbar-width: thin; }
.chat-view .dm-item { min-height: 3rem; padding: .5rem; border-radius: .5rem; }
.chat-view .sidebar-empty-state { align-self: start; margin: .5rem 0; padding: 1rem .5rem; border: 0; border-radius: 0; }
.chat-view .server-sidebar-title { margin: -.75rem -.75rem 0; padding: .75rem; min-height: 3.75rem; }
.chat-view .channel-item { min-height: 44px; border-radius: .5rem; }

/* The account controls take their own grid row, never overlaying the DM list. */
body .chat-view .account-dock {
  position: static;
  inset: auto;
  grid-column: 1;
  grid-row: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-width: 0;
  min-height: 4.5rem;
  height: auto;
  gap: .25rem;
  padding: .625rem .5rem max(.625rem, env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  background: var(--chat-control);
}
.chat-view .account-profile-button { min-width: 0; min-height: 44px; gap: .4rem; }
.chat-view .account-profile-button > .profile-avatar { width: 2rem; height: 2rem; min-width: 2rem; min-height: 2rem; }
.chat-view .account-profile-button > span:last-child { min-width: 0; }
.chat-view .account-controls { gap: 0; justify-content: flex-end; }
.chat-view :is(.account-controls, .conversation-actions) button { width: 44px; height: 44px; min-width: 44px; min-height: 44px; border-radius: .5rem; }

body .chat-view .chat-content {
  grid-area: content;
  position: relative;
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  background: var(--chat-reading);
}
.chat-view :is(.friends-screen, .server-screen, .dm-screen) { min-width: 0; min-height: 0; height: 100%; }
.chat-view .friends-screen { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.chat-view :is(.server-screen, .dm-screen) { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
body .chat-view :is(.friends-toolbar, .conversation-toolbar) {
  flex-wrap: wrap;
  align-content: center;
  gap: .5rem;
  min-width: 0;
  min-height: 3.75rem;
  padding: .5rem 1rem;
  background: var(--chat-chrome);
  border-bottom: 1px solid var(--border);
}
.chat-view .friends-title { gap: .5rem; font-size: .875rem; }
.chat-view .toolbar-divider { margin-inline: .5rem; }
.chat-view .friends-tabs { flex-wrap: wrap; min-width: 0; gap: .25rem; overflow: visible; }
.chat-view .friend-tab { min-height: 44px; padding: .5rem .75rem; border-radius: .5rem; font-size: .8rem; font-weight: 600; box-shadow: none; }
.chat-view .friend-tab:hover { transform: none; }
.chat-view .friend-tab.add-friend-tab { border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--border)); background: color-mix(in srgb, var(--accent) 20%, var(--surface-raised)); color: var(--text); box-shadow: none; }
.chat-view .friends-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(13rem, 25%); min-width: 0; min-height: 0; height: auto; overflow: hidden; }
.chat-view .friends-main { min-width: 0; min-height: 0; padding: clamp(1rem, 2vw, 1.5rem); overflow-y: auto; scrollbar-width: thin; }
.chat-view .friend-row { grid-template-columns: 2.5rem minmax(0, 1fr) auto; gap: .75rem; padding: .625rem .5rem; border-radius: .5rem; box-shadow: none; }
.chat-view .friend-row:hover { background: color-mix(in srgb, var(--surface-raised) 75%, transparent); box-shadow: none; }
.chat-view .friend-actions { flex-wrap: wrap; justify-content: flex-end; gap: .375rem; }
.chat-view .friend-actions > button { min-width: 44px; height: 44px; border-radius: .5rem; }
.chat-view .people-empty-state { margin: min(12dvh, 6rem) auto 0; padding: 1rem; }
.chat-view .empty-state-mark { width: 2.75rem; height: 2.75rem; margin-bottom: .75rem; border: 0; border-radius: 0; background: transparent; }
.chat-view .people-empty-state h2 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
.chat-view .people-empty-state button { min-height: 44px; border-radius: .5rem; background: color-mix(in srgb, var(--accent) 20%, var(--surface-raised)); border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); color: var(--text); }
.chat-view .people-empty-state button:hover { transform: none; box-shadow: none; }
.chat-view .active-now { display: block; min-width: 0; min-height: 0; padding: 1.25rem; overflow-y: auto; background: color-mix(in srgb, var(--surface) 40%, transparent); scrollbar-width: thin; }
.chat-view .active-now h2 { font-size: 1rem; }
.chat-view .active-card { padding: 1rem; border-radius: .5rem; background: color-mix(in srgb, var(--surface-raised) 80%, transparent); text-align: left; }
.chat-view .add-friend-form { flex-wrap: wrap; border-radius: .5rem; background: var(--chat-control); }
.chat-view .add-friend-form input { flex: 1 1 12rem; min-width: 0; min-height: 44px; }
.chat-view .add-friend-form button { min-height: 44px; border-radius: .5rem; background: color-mix(in srgb, var(--accent) 20%, var(--surface-raised)); border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); color: var(--text); }

/* The conversation header and composer stay in flow; only messages scroll. */
.chat-view .conversation-toolbar > div:first-child { min-width: 0; flex-wrap: wrap; }
.chat-view .conversation-actions { margin-inline-start: auto; align-items: center; flex-wrap: wrap; gap: .375rem; }
.chat-view .retention-pill { border-radius: .375rem; line-height: 1.4; }
.chat-view .message-stage { min-height: 0; max-block-size: none; padding: clamp(.75rem, 2vw, 1.5rem); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-gutter: stable; }
.chat-view :is(.channel-welcome, .dm-welcome) { margin-top: min(15dvh, 7rem); }
.chat-view .message-row { padding: .5rem; gap: .75rem; margin-top: 1rem; border-radius: .375rem; }
.chat-view .message-body { color: var(--text); font-size: .9rem; line-height: 1.6; }
.chat-view .message-copy { min-width: 0; overflow-wrap: anywhere; }
.chat-view .message-actions { max-width: calc(100% - 1rem); flex-wrap: wrap; background: var(--surface); box-shadow: none; }
.chat-view .message-actions button { min-width: 44px; min-height: 44px; }
body .chat-view .message-composer { min-width: 0; margin: 0 1rem max(1rem, env(safe-area-inset-bottom)); padding: .5rem; border-radius: .625rem; background: var(--chat-control); }
.chat-view .composer-row { grid-template-columns: repeat(3, 44px) minmax(0, 1fr) 44px; gap: .375rem; }
.chat-view :is(.composer-tool, .composer-send) { display: grid; width: 44px; height: 44px; min-width: 44px; min-height: 44px; border-radius: .5rem; background: transparent; }
.chat-view .composer-send { background: color-mix(in srgb, var(--accent) 20%, var(--surface)); color: var(--text); }
.chat-view [data-emoji-toggle] { display: grid; }
.chat-view .message-composer input[data-message-input] { min-height: 44px; }
.chat-view .composer-picker { left: 0; max-width: 100%; background: var(--surface); box-shadow: none; }
.chat-view .composer-picker.emoji-picker { flex-wrap: wrap; }
.chat-view .composer-picker.gif-picker { width: min(28rem, 100%); }
.chat-view .mention-suggestions { left: 0; max-width: 100%; }
.chat-view .chat-demo-toast { bottom: 5.5rem; background: var(--surface); color: var(--text); box-shadow: none; }
.chat-view :is(.message-stage, .chat-sidebar-friends, .chat-sidebar-server, .dm-list, .friends-main)::-webkit-scrollbar { display: block; width: .4rem; }
.chat-view :is(.message-stage, .chat-sidebar-friends, .chat-sidebar-server, .dm-list, .friends-main)::-webkit-scrollbar-thumb { background: var(--border); border-radius: .25rem; }

@media (max-width: 70rem) {
  .chat-view .friends-layout { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
  .chat-view .active-now { display: block; max-block-size: 10rem; padding: 1rem; border-left: 0; border-top: 1px solid var(--border); }
  .chat-view .active-now h2 { margin-bottom: .625rem; font-size: .875rem; }
  .chat-view .active-card { padding: .75rem; }
}

@media (max-width: 58rem) {
  body .home > .chat-view { grid-template-columns: 4.25rem 14rem minmax(0, 1fr); }
  body .chat-view .chat-server-rail { padding-inline: .5rem; }
  body .chat-view .account-dock { grid-template-columns: minmax(0, 1fr); }
  .chat-view .account-controls { justify-content: flex-start; }
  .chat-view .friend-row { grid-template-columns: 2.5rem minmax(0, 1fr); gap: .5rem; }
  .chat-view .friend-actions { grid-column: 1 / -1; }
  .chat-view .composer-row { grid-template-columns: repeat(3, 44px) minmax(0, 1fr); }
  .chat-view .composer-row > input[data-message-input] { grid-column: 1 / -1; grid-row: 1; }
  .chat-view .composer-row > .composer-tool { grid-row: 2; }
  .chat-view .composer-row > .composer-send { grid-column: 4; grid-row: 2; justify-self: end; }
}

/* Narrow viewports keep every destination, conversation and account action. */
@media (max-width: 48rem) {
  body .is-chat-page .home { display: block; overflow-y: auto; }
  body .home > .chat-view {
    position: absolute;
    inset: 0 0 auto;
    grid-template-columns: 4.25rem minmax(0, 1fr);
    grid-template-rows: auto minmax(26rem, 1fr);
    grid-template-areas: 'rail sidebar' 'content content';
    min-height: 100dvh;
    height: auto;
    padding-bottom: var(--chat-pages-clearance);
    overflow: visible;
  }
  body .chat-view .chat-server-rail { min-height: 0; padding-bottom: .75rem; }
  .chat-view .pages-launcher.is-chat-docked { margin-top: .5rem; }
  .chat-view .pages-launcher.is-chat-docked .site-menu { position: absolute; inset: auto auto 0 calc(100% + .5rem); width: min(16rem, calc(100vw - 6rem)); max-height: min(18rem, calc(100dvh - 1.5rem)); }
  body .chat-view .chat-sidebar { border-right: 0; border-bottom: 1px solid var(--border); }
  .chat-view :is(.chat-sidebar-friends, .chat-sidebar-server) { max-block-size: 15rem; padding: .625rem; }
  body .chat-view .account-dock { grid-template-columns: minmax(0, 1fr) auto; min-height: 4rem; padding: .5rem; }
  body .chat-view .chat-content { min-height: 26rem; height: auto; overflow: visible; }
  .chat-view :is(.friends-screen, .server-screen, .dm-screen) { min-height: 26rem; height: auto; }
  .chat-view .friends-layout { height: auto; min-height: 22rem; overflow: visible; }
  .chat-view .friends-main { min-height: 16rem; max-block-size: 65dvh; padding: .875rem; }
  .chat-view :is(.server-screen, .dm-screen) { grid-template-rows: auto minmax(16rem, 1fr) auto; }
  .chat-view .message-stage { min-height: 16rem; max-block-size: max(16rem, 55dvh); padding: .875rem; }
  .chat-view :is(.friends-toolbar, .conversation-toolbar) { padding: .625rem; }
  .chat-view .toolbar-divider { display: none; }
  body .chat-view .message-composer { margin: .5rem; }
}

@media (max-width: 26rem) {
  body .chat-view .account-dock { grid-template-columns: minmax(0, 1fr); }
  .chat-view .friend-tab { flex: 1 1 auto; padding-inline: .5rem; }
  .chat-view .friends-tabs { width: 100%; }
  .chat-view .message-row { gap: .5rem; padding-inline: .25rem; }
  .chat-view .message-row > .profile-avatar { width: 1.75rem; height: 1.75rem; min-width: 1.75rem; min-height: 1.75rem; }
  .chat-view .conversation-actions { margin-inline-start: 0; }
}

@media (max-height: 32rem) and (min-width: 48.001rem) {
  body .home > .chat-view { position: fixed; inset: 0; min-block-size: 0; }
  .chat-view .people-empty-state { margin-top: 1rem; }
  .chat-view :is(.channel-welcome, .dm-welcome) { margin-top: 1rem; }
  .chat-view .active-now { max-block-size: 7rem; }
}

@media (forced-colors: active) {
  body .chat-view :is(.chat-server-rail, .chat-sidebar, .chat-content, .friends-toolbar, .conversation-toolbar, .message-composer, .account-dock, .active-card) { color: CanvasText; background: Canvas; border-color: CanvasText; }
}

/* Keep dense chat text readable regardless of the decorative site font. */
body .chat-view,
body .chat-view :is(button, input, textarea, h1, h2, h3, strong, small, time),
.attachment-viewer-dialog {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  text-transform: none;
  letter-spacing: normal;
}
body .chat-view .chat-content { background: color-mix(in srgb, var(--surface) 94%, transparent); }
body .chat-view .chat-sidebar { background: color-mix(in srgb, var(--surface) 97%, transparent); }
body .chat-view .message-stage .message-row {
  position: relative;
  margin-top: .35rem;
  padding: .65rem .8rem;
  border: 0;
  border-radius: .6rem;
  background: transparent;
}
body .chat-view .message-stage .message-row:hover,
body .chat-view .message-stage .message-row:focus-within { background: color-mix(in srgb, var(--surface-raised) 70%, transparent); }
body .chat-view .message-copy > p:first-child { display: flex; align-items: baseline; flex-wrap: wrap; gap: .6rem; margin-bottom: .2rem; }
body .chat-view .message-copy > p:first-child strong { font-size: .9rem; font-weight: 650; }
body .chat-view .message-copy time { font-size: .7rem; color: var(--muted); }
body .chat-view .message-body { font-size: .95rem; line-height: 1.65; white-space: pre-wrap; }
body .chat-view .message-row > .profile-avatar { width: 2.3rem; height: 2.3rem; font-size: .9rem; border-radius: 50%; }
body .chat-view .message-composer { border: 1px solid var(--border); border-radius: .85rem; padding: .55rem; }
body .chat-view .message-composer:focus-within { border-color: color-mix(in srgb, var(--accent) 50%, var(--border)); }
body .chat-view .composer-send { border-radius: .6rem; }
body .chat-view .message-attachments { gap: .7rem; margin-top: .5rem; }
body .chat-view .message-media-preview { min-width: min(15rem, 100%); border-radius: .65rem; }
body .chat-view .message-media-preview .message-attachment-preview { max-width: 100%; min-height: 7rem; }
.message-media-status { display: block; padding: 2.5rem 1rem; color: #d2d2db; font-size: .8rem; text-align: center; }
.message-media-status[hidden] { display: none; }
body .chat-view .message-media-preview-caption strong { font-size: .75rem; }
body .chat-view .message-media-preview-caption small { font-size: .65rem; }
body .chat-view .composer-status { padding: .4rem .6rem 0; font-size: .75rem; }
@media (prefers-reduced-motion: no-preference) {
  html[data-smooth-ui="on"] .chat-view :is(.dm-item, .friend-row, .message-row, .composer-send) { transition: background-color 160ms ease, border-color 160ms ease; }
}

/* A compact, familiar chat workspace; wallpaper remains a quiet accent. */
body .home > .chat-view { --chat-rail-width: 4.5rem; grid-template-columns: var(--chat-rail-width) clamp(15rem, 18vw, 17rem) minmax(0, 1fr); }
body .chat-view .chat-server-rail { background: color-mix(in srgb, var(--background) 96%, transparent); padding-top: 1rem; }
body .chat-view .rail-button { border-radius: 1rem; }
body .chat-view .chat-sidebar { background: color-mix(in srgb, var(--surface) 98%, transparent); }
body .chat-view .chat-search-wrap { position: relative; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
body .chat-view .chat-search-wrap > svg { position: absolute; top: .8rem; left: .75rem; width: 1rem; height: 1rem; color: var(--muted); pointer-events: none; }
body .chat-view .chat-search { min-height: 42px; padding-inline: 2.15rem .6rem; font-size: .78rem; }
body .chat-view .sidebar-destination { min-height: 44px; margin-top: .75rem; padding-inline: .75rem; }
body .chat-view .dm-heading { color: var(--muted); font-size: .65rem; font-weight: 700; letter-spacing: .08em; }
body .chat-view .dm-item { padding: .6rem .65rem; gap: .75rem; }
body .chat-view .dm-item:hover { background: var(--surface-raised); }
body .chat-view .dm-item.is-active { background: color-mix(in srgb, var(--accent) 11%, var(--surface-raised)); }
body .chat-view .dm-item :is(strong, small) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body .chat-view .friends-layout { grid-template-columns: minmax(0, 1fr) minmax(14rem, 24%); }
body .chat-view .friends-toolbar, body .chat-view .conversation-toolbar { min-height: 3.5rem; padding-inline: 1.25rem; background: color-mix(in srgb, var(--surface) 98%, transparent); }
body .chat-view .friend-tab { min-height: 36px; padding: .45rem .8rem; }
body .chat-view .friend-tab.is-active { background: var(--surface-raised); color: var(--text); }
body .chat-view .friend-row { min-height: 4.25rem; border-radius: .4rem; border-bottom: 1px solid var(--border); }
body .chat-view .active-now { border-left: 1px solid var(--border); padding: 1.25rem 1rem; background: color-mix(in srgb, var(--surface) 86%, transparent); }
body .chat-view .active-card { margin-top: 1rem; padding: 1.15rem; border: 1px solid var(--border); border-radius: .85rem; line-height: 1.6; background: var(--surface-raised); }
body .chat-view .active-card > strong { display: block; margin-bottom: .4rem; font-size: .9rem; }
body .chat-view .people-empty-state { max-width: 28rem; margin-top: min(17dvh, 9rem); }
body .chat-view .people-empty-state p { max-width: 24rem; margin-inline: auto; line-height: 1.65; }
body .chat-view .message-stage { padding: 1rem 1.25rem; }
body .chat-view .message-row[data-day-label]::before {
  content: attr(data-day-label); grid-column: 1 / -1; display: block;
  margin: 1rem 0 1.25rem; padding-top: .75rem; border-top: 1px solid var(--border);
  color: var(--muted); font-size: .7rem; font-weight: 600; text-align: center;
}
body .chat-view .message-stage .is-message-continuation { margin-top: 0; padding-block: .15rem; }
body .chat-view .is-message-continuation > .profile-avatar { visibility: hidden; }
body .chat-view .is-message-continuation .message-copy > p:first-child { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
body .chat-view .message-stage .message-row { display: grid; grid-template-columns: 2.3rem minmax(0, 1fr); border-radius: .3rem; }
body .chat-view .message-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
body .chat-view .message-copy { max-width: 75rem; }
body .chat-view .message-composer { margin: .5rem 1.25rem max(1.25rem, env(safe-area-inset-bottom)); padding: .55rem; background: var(--surface-raised); border-radius: .8rem; }
body .chat-view .message-composer input[data-message-input] { font-size: .95rem; background: transparent; }
body .chat-view .composer-tool { color: var(--muted); }
body .chat-view .composer-tool:hover { color: var(--text); background: var(--surface); }
body .chat-view .composer-send { background: var(--accent); color: #fff; }
body .chat-view .account-dock { min-height: 4rem; background: color-mix(in srgb, var(--background) 65%, var(--surface)); }
@media (max-width: 70rem) { body .chat-view .friends-layout { grid-template-columns: minmax(0, 1fr); } body .chat-view .active-now { border-left: 0; } }
@media (max-width: 48rem) {
  body .home > .chat-view { grid-template-columns: 4.25rem minmax(0, 1fr); }
  body .chat-view .message-stage { padding: .75rem; }
  body .chat-view .message-composer { margin: .5rem; }
  body .chat-view .friends-toolbar, body .chat-view .conversation-toolbar { padding-inline: .75rem; }
}
