/* INSIDE visual system: semantic palette and responsive component rules. */

:root {
  --sidebar-width: 320px;
  --ui-canvas: #eef2ef;
  --ui-surface: #fffefa;
  --ui-surface-raised: #f8faf7;
  --ui-surface-muted: #eef4f1;
  --ui-ink: #19312f;
  --ui-ink-soft: #465e5a;
  --ui-muted: #71837f;
  --ui-line: #d8e4df;
  --ui-line-strong: #c6d6d0;
  --ui-mint: #187f78;
  --ui-mint-strong: #0f625d;
  --ui-mint-soft: #d8efea;
  --ui-mint-pale: #ebf7f4;
  --ui-yellow-soft: #fff2c8;
  --ui-coral-soft: #ffe8e1;
  --ui-amber: #d99b31;
  --ui-coral: #df7866;
  --ui-shadow-sm: 0 2px 8px rgba(20, 69, 65, 0.07);
  --ui-shadow-md: 0 14px 36px rgba(20, 69, 65, 0.13);
  --ui-radius-sm: 8px;
  --ui-radius-md: 12px;
  --ui-radius-lg: 18px;
  --ink: var(--ui-ink);
  --ink-soft: var(--ui-ink-soft);
  --muted: var(--ui-muted);
  --muted-strong: #607169;
  --line: var(--ui-line);
  --line-strong: var(--ui-line-strong);
  --surface: var(--ui-surface);
  --surface-soft: var(--ui-surface-raised);
  --surface-muted: var(--ui-surface-muted);
  --canvas: var(--ui-canvas);
  --rail: #173d3a;
  --rail-hover: rgba(255, 255, 255, 0.11);
  --brand: var(--ui-mint);
  --brand-strong: var(--ui-mint-strong);
  --brand-soft: var(--ui-mint-soft);
  --brand-pale: var(--ui-mint-pale);
  --radius-sm: var(--ui-radius-sm);
  --radius-md: var(--ui-radius-md);
  --radius-lg: var(--ui-radius-lg);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --ui-canvas: #111915;
  --ui-surface: #19231e;
  --ui-surface-raised: #1e2a24;
  --ui-surface-muted: #24322b;
  --ui-ink: #edf5f0;
  --ui-ink-soft: #c1cec7;
  --ui-muted: #91a198;
  --ui-line: #304139;
  --ui-line-strong: #40544a;
  --ui-mint: #65c8bd;
  --ui-mint-strong: #8bddd3;
  --ui-mint-soft: #284944;
  --ui-mint-pale: #203936;
  --ui-yellow-soft: #433a22;
  --ui-coral-soft: #482e29;
  --ui-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --ui-shadow-md: 0 16px 40px rgba(0, 0, 0, 0.34);
  --rail: #0d211f;
  --rail-hover: rgba(101, 200, 189, 0.13);
  --danger: #ee8d7d;
  --warning: #e9aa5f;
  --success: #62c28f;
}

html,
body {
  background: var(--ui-canvas);
  color: var(--ui-ink);
}

body {
  font-size: 14px;
  line-height: 1.45;
}

button {
  transition:
    color 150ms ease,
    background-color 150ms ease,
    border-color 150ms ease,
    box-shadow 150ms ease,
    transform 150ms ease;
}

button:active:not(:disabled) {
  transform: scale(0.97);
}

.app-window {
  background: var(--ui-surface);
}

.window-bar {
  height: 40px;
  border-color: var(--ui-line);
  background: var(--ui-surface-raised);
}

.window-title {
  color: var(--ui-ink);
  font-size: 12px;
}

.window-title > span:last-child,
.window-secure {
  color: var(--ui-muted);
  font-size: 11px;
}

.app-layout {
  grid-template-columns: 68px var(--sidebar-width) minmax(0, 1fr);
}

.rail {
  border-color: var(--ui-line);
  background: var(--rail);
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-color: #a8d5be;
  border-radius: 13px;
  background: var(--ui-mint-soft);
  box-shadow: var(--ui-shadow-sm);
  color: var(--ui-mint-strong);
}

.rail-primary,
.rail-secondary {
  gap: 8px;
}

.rail-button,
.profile-button {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: #9ec2bc;
}

.rail-button:hover,
.rail-button.is-active {
  background: var(--rail-hover);
  color: #e6f5f1;
}

.rail-button.is-active::before {
  left: -12px;
  width: 4px;
  height: 22px;
  background: #f0bd58;
}

.rail .online-dot {
  border-color: var(--rail);
  background: #f0bd58;
}

.sidebar {
  border-color: var(--ui-line);
  background: var(--ui-surface-raised);
}

.sidebar-header {
  height: 82px;
  padding: 0 18px 0 20px;
  text-align: left;
}

.sidebar-header h1 {
  color: var(--ui-ink);
  font-size: 24px;
  letter-spacing: -0.02em;
}

.eyebrow {
  margin-bottom: 4px;
  color: var(--ui-mint);
  font-size: 10px;
}

.sidebar-header-actions {
  gap: 8px;
}

.sidebar-header-actions button {
  width: 34px;
  height: 34px;
  border-color: var(--ui-line);
  border-radius: 10px;
  background: var(--ui-surface);
  box-shadow: var(--ui-shadow-sm);
}

.sidebar-tools {
  padding: 0 14px 14px;
}

.search-box {
  height: 42px;
  padding: 0 12px;
  border-color: transparent;
  border-radius: 11px;
  background: var(--ui-surface-muted);
}

.search-box:focus-within {
  border-color: #81bfa1;
  background: var(--ui-surface);
  box-shadow: 0 0 0 3px rgba(37, 139, 104, 0.11);
}

.search-box input {
  color: var(--ui-ink);
  font-size: 13px;
}

.search-box input::placeholder {
  color: var(--ui-muted);
}

.search-box kbd {
  border-color: var(--ui-line);
  background: var(--ui-surface);
  color: var(--ui-muted);
  font-size: 10px;
}

.quick-chat-actions {
  margin-top: 10px;
  gap: 8px;
}

.quick-chat-actions button {
  min-height: 36px;
  border-color: var(--ui-line);
  border-radius: 10px;
  background: var(--ui-surface);
  color: var(--ui-ink-soft);
  font-size: 12px;
}

.quick-chat-actions button:first-child {
  border-color: #b9dbd4;
  background: var(--ui-mint-pale);
  color: var(--ui-mint-strong);
}

.quick-chat-actions button:last-child {
  border-color: #ead69b;
  background: var(--ui-yellow-soft);
  color: #77591d;
}

.conversation-list,
.contact-list {
  height: calc(100% - 152px);
  padding: 2px 10px 16px;
}

.conversation-item {
  height: 76px;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 13px;
  font-size: 14px;
}

.conversation-item:hover {
  border-color: var(--ui-line);
  background: var(--ui-surface);
}

.conversation-item.is-active {
  border-color: #b7dcd4;
  background: var(--ui-mint-soft);
  box-shadow: inset 3px 0 var(--ui-mint), var(--ui-shadow-sm);
}

.conversation-item.is-active .conversation-top strong {
  color: var(--ui-ink);
}

.conversation-item.is-active .conversation-bottom {
  color: var(--ui-ink-soft);
}

.conversation-item .avatar {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  font-size: 15px;
}

.conversation-top strong {
  font-size: 14px;
  font-weight: 750;
}

.conversation-top time {
  color: var(--ui-muted);
  font-size: 11px;
}

.conversation-bottom {
  margin-top: 7px;
  padding-right: 20px;
  color: var(--ui-muted);
  font-size: 12px;
}

.unread-badge {
  right: 12px;
  bottom: 11px;
  min-width: 20px;
  height: 20px;
  font-size: 10px;
  background: var(--ui-coral);
}

.conversation-online {
  top: 48px;
  left: 48px;
  width: 11px;
  height: 11px;
  border-color: var(--ui-surface-raised);
}

.conversation-item.is-active .conversation-online {
  border-color: var(--ui-mint-soft);
}

.workspace {
  grid-template-columns: minmax(0, 1fr) 304px;
  background: var(--ui-surface);
}

.chat-view {
  grid-template-rows: 80px minmax(0, 1fr) auto;
  background:
    radial-gradient(circle at 94% 5%, rgba(244, 194, 91, 0.2), transparent 25%),
    linear-gradient(145deg, #f7faf8, #eff6f3 62%, #faf7ed);
}

.chat-header {
  min-width: 0;
  height: 80px;
  gap: 13px;
  padding: 0 22px;
  border-color: var(--ui-line);
  background: color-mix(in srgb, var(--ui-surface) 92%, transparent);
  box-shadow: 0 1px 0 rgba(31, 65, 51, 0.02);
}

.chat-header > .avatar {
  width: 46px;
  height: 46px;
  border-radius: 14px;
}

.chat-heading h2 {
  font-size: 17px;
  letter-spacing: -0.01em;
}

.chat-heading > div > span {
  padding: 3px 7px;
  border-radius: 6px;
  background: var(--ui-surface-muted);
  color: var(--ui-muted);
  font-size: 11px;
}

.chat-heading p {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  color: var(--ui-muted);
  font-size: 11px;
}

.chat-heading p.is-online {
  color: var(--ui-mint-strong);
}

.chat-heading p.is-online i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(45, 154, 112, 0.12);
}

.chat-actions {
  gap: 5px;
}

.icon-button {
  width: 38px;
  height: 38px;
  border-color: var(--ui-line);
  border-radius: 11px;
  background: var(--ui-surface);
}

.icon-button:hover,
.icon-button.is-active {
  border-color: #b9dbc9;
  background: var(--ui-mint-pale);
  color: var(--ui-mint-strong);
}

.chat-scroll {
  padding: 20px clamp(24px, 6vw, 92px) 30px;
}

.encryption-note {
  margin-bottom: 16px;
  border-color: #cde4d6;
  background: color-mix(in srgb, var(--ui-mint-pale) 90%, transparent);
  color: var(--ui-muted);
  font-size: 11px;
}

.chat-announcement {
  display: flex;
  width: min(620px, 100%);
  align-items: center;
  gap: 10px;
  margin: 0 auto 18px;
  padding: 10px 12px;
  border: 1px solid #eadca6;
  border-radius: 12px;
  background: var(--ui-yellow-soft);
  color: #775d20;
  text-align: left;
}

.chat-announcement > svg {
  width: 17px;
  flex: 0 0 auto;
  color: #ba842b;
}

.chat-announcement > svg:last-child {
  width: 14px;
  margin-left: auto;
}

.chat-announcement span {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.chat-announcement strong {
  font-size: 11px;
}

.chat-announcement small {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.date-divider {
  margin-bottom: 22px;
  color: var(--ui-muted);
  font-size: 11px;
}

.message-row {
  max-width: min(660px, 84%);
  gap: 10px;
  margin-bottom: 16px;
  animation: message-in 160ms ease-out both;
}

.message-row.is-continuation {
  margin-top: -9px;
  margin-bottom: 12px;
}

.message-avatar-spacer {
  width: 34px;
  flex: 0 0 34px;
}

.message-author {
  margin-bottom: 6px;
  color: var(--ui-muted);
  font-size: 11px;
}

.message-bubble {
  padding: 10px 14px;
  border-color: var(--ui-line);
  border-radius: 5px 15px 15px;
  background: var(--ui-surface);
  box-shadow: var(--ui-shadow-sm);
  color: var(--ui-ink);
  font-size: 14px;
  line-height: 1.62;
}

.is-mine .message-bubble {
  border-color: #acd7ce;
  border-radius: 15px 5px 15px 15px;
  background: #d4ede7;
}

.message-meta {
  margin-top: 6px;
  color: var(--ui-muted);
  font-size: 10px;
}

.message-actions {
  border-color: var(--ui-line);
  background: var(--ui-surface);
  box-shadow: var(--ui-shadow-md);
}

.message-actions button:hover {
  background: var(--ui-mint-pale);
  color: var(--ui-mint-strong);
}

.file-message,
.media-message,
.image-message,
.video-message {
  border-color: var(--ui-line);
  border-radius: 14px;
  box-shadow: var(--ui-shadow-sm);
}

.file-message,
.media-message {
  background: var(--ui-surface);
}

.is-mine .file-message {
  border-color: #eadca6;
  background: var(--ui-yellow-soft);
}

.composer {
  min-height: 154px;
  margin: 0 18px 16px;
  padding: 10px 12px 11px;
  border: 1px solid var(--ui-line);
  border-radius: 18px;
  background: var(--ui-surface);
  box-shadow: 0 10px 28px rgba(31, 65, 51, 0.09);
  grid-template-rows: none;
  grid-auto-rows: max-content;
}

.composer-toolbar {
  min-width: 0;
  min-height: 32px;
}

.composer-toolbar > div {
  gap: 3px;
}

.composer-toolbar button {
  width: 32px;
  height: 30px;
  border-radius: 8px;
  color: var(--ui-muted);
}

.composer-toolbar button:hover {
  background: var(--ui-mint-pale);
  color: var(--ui-mint-strong);
}

.composer-toolbar small {
  color: var(--ui-muted);
  font-size: 10px;
}

.composer textarea {
  min-height: 44px;
  max-height: 108px;
  padding: 7px 4px;
  color: var(--ui-ink);
  font-size: 14px;
  line-height: 1.55;
  scrollbar-width: thin;
}

.composer textarea::placeholder {
  color: #91a099;
}

.composer-footer {
  min-height: 34px;
  padding-top: 4px;
  border-top: 1px solid var(--ui-line);
}

.draft-status {
  color: var(--ui-muted);
  font-size: 10px;
}

.send-button {
  height: 32px;
  padding: 0 15px;
  border-radius: 9px;
  background: linear-gradient(135deg, #238f87, #146f69);
  box-shadow: 0 6px 14px rgba(37, 139, 104, 0.22);
  font-size: 12px;
}

.send-button:hover {
  background: var(--ui-mint-strong);
  transform: translateY(-1px);
}

.composer-reply {
  margin: -2px 2px 8px;
  border-color: var(--ui-mint);
  background: var(--ui-mint-pale);
}

.popover {
  border-color: var(--ui-line-strong);
  border-radius: 13px;
  background: var(--ui-surface);
  box-shadow: var(--ui-shadow-md);
}

.emoji-popover-header {
  border-color: var(--ui-line);
  background: var(--ui-surface);
}

.details-panel {
  border-color: var(--ui-line);
  background: var(--ui-surface-raised);
}

.details-toolbar {
  position: sticky;
  z-index: 4;
  top: 0;
  display: flex;
  height: 52px;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-bottom: 1px solid var(--ui-line);
  background: color-mix(in srgb, var(--ui-surface-raised) 94%, transparent);
  backdrop-filter: blur(12px);
}

.details-toolbar strong {
  font-size: 13px;
}

.details-toolbar button {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 9px;
  background: var(--ui-surface-muted);
  color: var(--ui-muted);
}

.details-toolbar svg {
  width: 15px;
}

.details-identity {
  padding: 24px 18px 18px;
}

.details-identity > .avatar {
  width: 60px;
  height: 60px;
  border-radius: 17px;
  box-shadow: var(--ui-shadow-sm);
  font-size: 19px;
}

.details-identity h2 {
  color: var(--ui-ink);
  font-size: 16px;
}

.details-identity > p {
  margin-bottom: 0;
  color: var(--ui-muted);
  font-size: 11px;
}

.details-tabs {
  display: grid;
  margin: 0 12px;
  padding: 4px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-radius: 11px;
  background: var(--ui-surface-muted);
}

.details-tabs button {
  display: flex;
  min-width: 0;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 8px;
  background: transparent;
  color: var(--ui-muted);
  font-size: 11px;
}

.details-tabs button.is-active {
  background: var(--ui-surface);
  box-shadow: var(--ui-shadow-sm);
  color: var(--ui-mint-strong);
  font-weight: 700;
}

.details-tabs small {
  font-size: 9px;
}

.details-tab-panel {
  min-height: 220px;
}

.detail-tab-section {
  border-top: 0;
}

.member-detail-list > button {
  padding: 9px;
  border-radius: 10px;
}

.member-detail-list strong {
  color: var(--ui-ink);
  font-size: 12px;
}

.member-detail-list small {
  color: var(--ui-muted);
  font-size: 10px;
}

.announcement-card {
  border-color: #eadca6;
  background: var(--ui-yellow-soft);
}

.announcement-card p {
  color: var(--ui-muted);
  font-size: 10px;
}

.detail-file-list {
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
}

.detail-file-list > button {
  display: flex;
  width: 100%;
  min-width: 0;
  align-items: center;
  gap: 10px;
  padding: 9px;
  border-radius: 10px;
  background: transparent;
  color: var(--ui-ink);
  text-align: left;
}

.detail-file-list > button:hover {
  background: var(--ui-mint-pale);
}

.detail-file-list > button > span {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 9px;
  background: var(--ui-mint-soft);
  color: var(--ui-mint-strong);
}

.detail-file-list > button > div {
  display: grid;
  min-width: 0;
  flex: 1;
}

.detail-file-list strong,
.detail-file-list small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-file-list strong {
  font-size: 11px;
}

.detail-file-list small {
  margin-top: 3px;
  color: var(--ui-muted);
  font-size: 9px;
}

.detail-file-list > button > svg {
  width: 14px;
  color: var(--ui-muted);
}

.detail-empty {
  display: grid;
  min-height: 220px;
  padding: 28px;
  place-items: center;
  align-content: center;
  color: var(--ui-muted);
  text-align: center;
}

.detail-empty > svg {
  width: 28px;
  height: 28px;
  margin-bottom: 10px;
}

.detail-empty strong {
  color: var(--ui-ink-soft);
  font-size: 12px;
}

.detail-empty p {
  margin: 6px 0 0;
  font-size: 10px;
  line-height: 1.6;
}

.detail-wide-action {
  border-color: var(--ui-line);
  background: var(--ui-surface);
  color: var(--ui-ink-soft);
}

.settings-content {
  max-width: 920px;
  gap: 18px;
  padding: 26px 30px 44px;
}

.profile-summary-card,
.settings-section {
  border-color: var(--ui-line);
  border-radius: 14px;
  background: var(--ui-surface);
  box-shadow: var(--ui-shadow-sm);
}

.settings-section-heading {
  border-color: var(--ui-line);
  background: var(--ui-surface-raised);
}

.setting-info-row {
  background: var(--ui-surface);
  color: var(--ui-ink);
}

.setting-theme-button:hover {
  background: var(--ui-mint-pale);
}

.content-page,
.file-center > .file-table {
  background: var(--ui-surface);
}

.file-center > .file-table {
  border-color: var(--ui-line);
}

.app-dialog {
  border-color: var(--ui-line-strong);
  background: var(--ui-surface);
  box-shadow: var(--ui-shadow-md);
  color: var(--ui-ink);
}

.app-dialog form > footer,
.app-dialog > footer {
  border-color: var(--ui-line);
  background: var(--ui-surface-raised);
}

.dialog-field input,
.dialog-field select,
.dialog-field textarea {
  border-color: var(--ui-line-strong);
  background: var(--ui-surface);
  color: var(--ui-ink);
}

.auth-panel {
  background: var(--ui-surface-raised);
}

.auth-card {
  border-color: var(--ui-line);
  background: var(--ui-surface);
  box-shadow: var(--ui-shadow-md);
}

.auth-input {
  border-color: var(--ui-line-strong);
  background: var(--ui-surface);
}

.auth-input input {
  color: var(--ui-ink);
}

:root[data-theme="dark"] .window-bar,
:root[data-theme="dark"] .sidebar,
:root[data-theme="dark"] .details-panel,
:root[data-theme="dark"] .chat-header,
:root[data-theme="dark"] .composer,
:root[data-theme="dark"] .popover,
:root[data-theme="dark"] .emoji-popover-header,
:root[data-theme="dark"] .file-message,
:root[data-theme="dark"] .media-message,
:root[data-theme="dark"] .message-bubble,
:root[data-theme="dark"] .quick-chat-actions button,
:root[data-theme="dark"] .sidebar-header-actions button {
  background: var(--ui-surface);
}

:root[data-theme="dark"] .chat-view {
  background:
    radial-gradient(circle at 94% 5%, rgba(176, 139, 48, 0.12), transparent 26%),
    linear-gradient(145deg, #151f1a, #18251f 62%, #211f17);
}

:root[data-theme="dark"] .is-mine .message-bubble {
  border-color: #39644f;
  background: #284c3b;
}

:root[data-theme="dark"] .conversation-item.is-active {
  border-color: #3d716a !important;
  background: #254742 !important;
}

:root[data-theme="dark"] .conversation-item.is-active .conversation-top strong {
  color: #f1faf7;
}

:root[data-theme="dark"] .conversation-item.is-active .conversation-bottom,
:root[data-theme="dark"] .conversation-item.is-active .conversation-top time {
  color: #b7cdc7;
}

:root[data-theme="dark"] .conversation-item:hover {
  background: var(--ui-surface-muted);
}

:root[data-theme="dark"] .chat-announcement,
:root[data-theme="dark"] .announcement-card,
:root[data-theme="dark"] .is-mine .file-message {
  border-color: #65552b;
  background: #40371f;
  color: #ebdca9;
}

:root[data-theme="dark"] .chat-announcement small,
:root[data-theme="dark"] .announcement-card p {
  color: #c7b985;
}

:root[data-theme="dark"] .auth-story {
  background:
    radial-gradient(circle at 18% 82%, rgba(185, 142, 44, 0.15), transparent 24%),
    radial-gradient(circle at 82% 18%, rgba(94, 181, 135, 0.17), transparent 28%),
    linear-gradient(145deg, #10271f, #183d30 58%, #344b38);
}

@keyframes message-in {
  from {
    transform: translateY(4px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 1260px) {
  :root {
    --sidebar-width: 288px;
  }

  .workspace {
    grid-template-columns: minmax(0, 1fr) 276px;
  }

  .chat-scroll {
    padding-right: 5%;
    padding-left: 5%;
  }
}

@media (max-width: 1080px) {
  .workspace {
    grid-template-columns: minmax(0, 1fr);
  }

  .details-panel {
    display: none;
  }

  .composer {
    margin-right: 14px;
    margin-left: 14px;
  }
}

@media (max-width: 900px) {
  .app-layout {
    grid-template-columns: 64px 280px minmax(0, 1fr);
  }

  .chat-actions .icon-button:nth-child(2) {
    display: none;
  }
}

@media (max-width: 720px) {
  .app-layout {
    display: block;
  }

  .rail {
    height: 60px;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    border-color: var(--ui-line);
    background: var(--rail);
  }

  .rail-primary,
  .rail-secondary {
    display: contents;
  }

  .brand-mark,
  .profile-button {
    display: none;
  }

  .rail-button {
    width: 44px;
    height: 44px;
    margin: auto;
  }

  .rail-button.is-active::before {
    bottom: -7px;
  }

  .sidebar,
  .workspace {
    bottom: 60px;
  }

  .chat-view {
    grid-template-rows: 66px minmax(0, 1fr) auto;
  }

  .chat-header {
    height: 66px;
    gap: 7px;
    padding: 0 8px;
  }

  .chat-heading h2 {
    font-size: 15px;
  }

  .chat-heading > div > span,
  .chat-heading p {
    font-size: 9px;
  }

  .chat-actions {
    gap: 2px;
  }

  .chat-actions .icon-button:nth-child(1),
  .chat-actions .icon-button:nth-child(2) {
    display: none;
  }

  .icon-button {
    width: 34px;
    height: 34px;
  }

  .chat-scroll {
    padding: 14px 12px 22px;
  }

  .encryption-note {
    max-width: 100%;
    font-size: 9px;
  }

  .chat-announcement {
    padding: 8px 10px;
  }

  .message-row {
    max-width: 94%;
  }

  .message-bubble {
    font-size: 14px;
  }

  .composer {
    min-height: 142px;
    margin: 0 8px 8px;
    padding: 8px 9px;
    border-radius: 15px;
  }

  .composer-toolbar button {
    width: 30px;
  }

  .composer-toolbar small {
    display: none;
  }

  .composer textarea {
    font-size: 14px;
  }

  .send-button {
    height: 31px;
  }

  .emoji-popover {
    bottom: 128px;
  }

  .toast-region {
    right: 10px;
    left: 10px;
  }

  .toast {
    width: 100%;
    min-width: 0;
    max-width: none;
  }
}

@media (max-width: 380px) {
  .chat-heading p {
    display: none;
  }

  .chat-heading > div > span {
    display: none;
  }

  .composer-toolbar button {
    width: 28px;
  }

  .send-button span {
    display: none;
  }

  .send-button {
    width: 34px;
    padding: 0;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
