:root {
  color-scheme: light;
  --ink: #192741;
  --dim: #586981;
  --muted: #6d7c90;
  --line: #e3e8f0;
  --wash: #f6f8fb;
  --blue: #2f64e9;
  --blue-dark: #2451c5;
  --blue-wash: #eaf0ff;
  --rail: #192944;
  --body-font:
    Inter, 'Segoe UI', 'Noto Sans SC', 'Noto Sans CJK SC', 'PingFang SC', 'Microsoft YaHei',
    'Microsoft YaHei UI', Roboto, system-ui, sans-serif;
  font-family: var(--body-font);
  font-synthesis: none;
  color: var(--ink);
  background: #fff;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
}
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible,
a:focus-visible {
  outline: 3px solid #7d9fff;
  outline-offset: 2px;
}
[hidden] {
  display: none !important;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  color: inherit;
}
.glyph {
  display: inline-block;
  flex-shrink: 0;
  vertical-align: middle;
}
#boot {
  min-height: 100dvh;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 14px;
  color: var(--dim);
}
#boot strong {
  font:
    750 38px/1 'Segoe UI',
    sans-serif;
  letter-spacing: -2px;
  color: var(--ink);
}
#workspace {
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  display: grid;
  grid-template-columns: 74px clamp(262px, 23vw, 344px) minmax(0, 1fr) clamp(236px, 19vw, 310px);
  grid-template-rows: 61px minmax(0, 1fr);
  grid-template-areas: 'rail top top top' 'rail inbox convo detail';
  overflow: hidden;
}
.rail {
  grid-area: rail;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--rail);
  color: #cfdaee;
  z-index: 3;
}
.rail-mark {
  width: 100%;
  min-height: 61px;
  display: grid;
  place-items: center;
  border-bottom: 1px solid #ffffff12;
}
.rail-links,
.rail-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
}
.rail-links {
  margin-top: 24px;
}
.rail-bottom {
  margin-top: auto;
  padding: 12px 0 18px;
}
.rail-btn,
.rail-user {
  border: 0;
  background: transparent;
  color: #ced8ea;
  display: grid;
  place-items: center;
  padding: 0;
}
.rail-btn {
  width: 48px;
  height: 47px;
  border-radius: 12px;
}
.rail-btn .glyph {
  width: 22px;
  height: 22px;
}
.rail-btn span {
  display: none;
}
.rail-btn:hover,
.rail-user:hover {
  background: #ffffff15;
  color: #fff;
}
.rail-btn.selected {
  color: #fff;
  background: #365fd2;
}
.rail-user {
  width: 39px;
  height: 39px;
  border-radius: 50%;
}
.rail-user .avatar {
  width: 34px;
  height: 34px;
  font-size: 14px;
  border-radius: 50%;
}
.topbar {
  grid-area: top;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.brand-line {
  display: flex;
  align-items: center;
  gap: 15px;
}
.wordmark {
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: 26px;
  font-weight: 750;
  line-height: 1;
  letter-spacing: -1.8px;
}
.brand-divider {
  width: 1px;
  height: 16px;
  background: #d5dee9;
}
.workspace-name {
  font-weight: 550;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: #58677e;
}
.connection {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--dim);
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #bd862d;
}
.connection.online .status-dot {
  background: #1f9c71;
  box-shadow: 0 0 0 3px #e6f5ee;
}
.inbox {
  grid-area: inbox;
  min-height: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #fbfcfe;
  border-right: 1px solid var(--line);
}
.inbox-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 27px 22px 19px;
}
.inbox h1 {
  font-size: 27px;
  line-height: 1.2;
  letter-spacing: -0.05em;
  margin: 0;
}
.icon-btn {
  border: 0;
  background: transparent;
  color: var(--dim);
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  flex-shrink: 0;
}
.icon-btn:hover:not(:disabled) {
  background: #edf1f8;
  color: var(--ink);
}
.icon-btn:disabled {
  opacity: 0.45;
}
.new-chat {
  background: var(--blue);
  color: #fff;
  width: 33px;
  height: 33px;
  box-shadow: 0 2px 4px #2149a826;
}
.new-chat:hover:not(:disabled) {
  background: var(--blue-dark);
  color: #fff;
}
.new-chat .glyph {
  width: 17px;
  height: 17px;
}
.search-field {
  margin: 0 19px;
  padding: 0 11px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #e0e6ef;
  border-radius: 8px;
  background: #fff;
  color: #77869a;
  height: 37px;
}
.search-field:focus-within {
  border-color: #8ca9f2;
  box-shadow: 0 0 0 2px #e6eeff;
}
.search-field .glyph {
  width: 16px;
  height: 16px;
}
.search-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: none;
  font-size: 13px;
  background: transparent;
  color: var(--ink);
}
.search-field input::placeholder {
  color: #78859a;
}
.search-field kbd {
  border: 1px solid var(--line);
  border-radius: 4px;
  font: 11px/16px var(--body-font);
  padding: 0 5px;
  color: #8a96a8;
}
.filters {
  display: flex;
  gap: 7px;
  align-items: center;
  margin: 15px 19px 14px;
}
.filters button {
  border: 0;
  background: none;
  border-radius: 7px;
  padding: 5px 11px;
  font-size: 13px;
  font-weight: 550;
  color: #637188;
}
.filters button:hover {
  background: #edf1f8;
}
.filters button[aria-pressed='true'] {
  background: #e7eeff;
  color: #2a58cb;
}
#unread-total:not(:empty) {
  margin-left: 5px;
  font: 600 10px var(--body-font);
}
.chat-list {
  overflow: auto;
  flex: 1;
  padding: 0 8px 10px;
}
.chat-row {
  display: flex;
  align-items: center;
  text-align: left;
  gap: 11px;
  width: 100%;
  padding: 14px 10px;
  margin: 2px 0;
  min-height: 70px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
}
.chat-row:hover {
  background: #f0f3f9;
}
.chat-row.active {
  background: #eaf0ff;
  border-color: #dce6ff;
}
.avatar {
  --avatar-color: #9db6e5;
  display: inline-grid;
  place-items: center;
  width: 39px;
  height: 39px;
  flex-shrink: 0;
  border-radius: 50%;
  color: color-mix(in srgb, var(--avatar-color) 14%, #192c4a);
  background: color-mix(in srgb, var(--avatar-color) 75%, #fafbff);
  font: 600 16px/1 var(--body-font);
}
.avatar.group {
  border-radius: 12px;
}
.avatar.group .glyph {
  width: 21px;
  height: 21px;
  stroke-width: 1.85;
}
.avatar.small {
  width: 31px;
  height: 31px;
  font-size: 12px;
}
.avatar.large {
  width: 57px;
  height: 57px;
  font-size: 23px;
}
.avatar.large.group {
  border-radius: 16px;
}
.avatar.large.group .glyph {
  width: 29px;
  height: 29px;
}
.chat-row-copy {
  flex: 1;
  min-width: 0;
}
.chat-row-top,
.chat-row-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
}
.chat-row-top {
  margin-bottom: 6px;
}
.chat-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
  line-height: 1.3;
  font-weight: 650;
}
.chat-time {
  flex-shrink: 0;
  font-size: 11px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.preview {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  color: #56677f;
  line-height: 1.45;
}
.unread-badge {
  min-width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: var(--blue);
  color: white;
  padding: 0 4px;
  border-radius: 20px;
  font: 650 10px var(--body-font);
}
.muted-badge {
  background: #718096;
}
.directory-link {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 18px 21px;
  border: 0;
  border-top: 1px solid var(--line);
  color: #576981;
  background: none;
  font-size: 12px;
  text-align: left;
}
.directory-link:hover {
  background: #f0f3f9;
}
.directory-link .glyph {
  width: 16px;
  height: 16px;
}
.directory-link .glyph:last-child {
  margin-left: auto;
}
.list-empty,
.plain-empty {
  color: var(--muted);
  text-align: center;
  font-size: 13px;
  line-height: 1.7;
  padding: 25px 8px;
}
.conversation {
  grid-area: convo;
  position: relative;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
}
.conversation-empty {
  position: absolute;
  inset: 0;
  background: #fff;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.conversation-empty h2 {
  margin: 14px 0 20px;
  font-size: 20px;
}
.empty-symbol {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  color: var(--blue);
  background: var(--blue-wash);
}
.primary-btn,
.send-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border: 0;
  background: var(--blue);
  color: white;
  font-weight: 600;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
}
.primary-btn:hover,
.send-btn:hover:not(:disabled) {
  background: var(--blue-dark);
}
.chat-head {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 82px;
  padding: 10px clamp(17px, 2.2vw, 33px);
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.chat-head .head-copy {
  flex: 1;
  min-width: 0;
}
.head-copy h2 {
  margin: 0 0 3px;
  font-size: 19px;
  font-weight: 680;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.head-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.back-btn {
  display: none;
}
.head-action {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  background: #fff;
}
#announcement:empty {
  display: none;
}
.announcement-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  width: calc(100% - 2 * clamp(17px, 2.2vw, 33px));
  max-width: 850px;
  margin: 14px auto 0;
  padding: 10px 12px;
  border: 1px solid #dae5ff;
  border-radius: 8px;
  background: #f1f5ff;
  color: #304f8e;
  text-align: left;
}
.announcement-bar:hover {
  background: #eaf0ff;
}
.announcement-bar .glyph {
  width: 16px;
  height: 16px;
  color: #3a67c4;
}
.announcement-bar .glyph:last-child {
  margin-left: auto;
  width: 14px;
}
.announcement-bar strong {
  white-space: nowrap;
  font-size: 13px;
}
.announcement-text {
  display: block;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 13px;
}
.history {
  min-height: 0;
  flex: 1;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #cfd8e5 transparent;
}
.messages {
  max-width: 920px;
  margin: 0 auto;
  padding: 17px clamp(17px, 2.2vw, 33px) 18px;
}
.day-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 4px 0 24px;
  font-size: 11px;
  color: #748299;
}
.day-line::before,
.day-line::after {
  content: '';
  height: 1px;
  background: #e7ebf1;
  flex: 1;
}
.day-line:not(:first-child) {
  margin-top: 26px;
}
.message {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 0 0 19px;
}
.message.mine {
  flex-direction: row-reverse;
}
.message:last-child {
  margin-bottom: 0;
}
.message > .avatar {
  margin-top: 1px;
}
.message-content {
  min-width: 0;
  max-width: min(82%, 540px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.mine .message-content {
  align-items: flex-end;
}
.message-meta {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin: 0 1px 5px;
  font-size: 12px;
  color: #596b83;
}
.message-meta time {
  font-size: 11px;
  color: #69788c;
  font-variant-numeric: tabular-nums;
}
.mine .message-meta {
  flex-direction: row-reverse;
}
.bubble {
  max-width: 100%;
  background: #f0f3f8;
  color: #283853;
  padding: 9px 13px;
  border-radius: 2px 12px 12px 12px;
  font-size: 15px;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.mine .bubble {
  background: var(--blue);
  color: #fff;
  border-radius: 12px 2px 12px 12px;
}
.attachment {
  margin-top: 5px;
  max-width: 100%;
}
.file-card {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  background: #fff;
  border: 1px solid #dce3ee;
  border-radius: 10px;
  padding: 10px 12px;
  max-width: 100%;
  min-width: min(218px, 100%);
}
.file-card:hover {
  border-color: #9ab4f3;
}
.file-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 38px;
  background: #fff0ed;
  color: #b94e41;
  border-radius: 7px;
  flex-shrink: 0;
}
.file-mark.generic {
  background: #eaf0ff;
  color: #4264ae;
}
.file-label {
  min-width: 0;
  flex: 1;
}
.file-label strong,
.file-label small {
  display: block;
}
.file-label strong {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.file-label small {
  color: var(--muted);
  font: 10px/1.7 var(--body-font);
}
.file-card > .glyph {
  color: #76869c;
}
.image-thumb {
  display: block;
  border: 1px solid #dce3ed;
  padding: 0;
  background: var(--wash);
  border-radius: 10px;
  overflow: hidden;
  max-width: 100%;
}
.image-thumb img {
  display: block;
  max-width: 100%;
  max-height: 180px;
  width: auto;
  height: auto;
}
.older-wrap {
  text-align: center;
  margin: 0 0 16px;
}
.text-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 4px;
  border: 0;
  border-radius: 4px;
  background: none;
  color: #2c5bc8;
  font-size: 12px;
}
.text-btn:hover {
  text-decoration: underline;
}
.composer-area {
  margin: 0 auto;
  padding: 10px clamp(17px, 2.2vw, 33px) 11px;
  width: 100%;
  max-width: 920px;
}
.composer {
  border: 1px solid #cfd8e6;
  border-radius: 11px;
  box-shadow: 0 2px 6px #1c355807;
  background: #fff;
}
.composer:focus-within {
  border-color: #7d9ce9;
  box-shadow: 0 0 0 2px #edf2ff;
}
.composer textarea {
  display: block;
  border: 0;
  background: transparent;
  padding: 13px 14px 4px;
  resize: none;
  width: 100%;
  min-height: 41px;
  max-height: 112px;
  outline: none;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.55;
}
.composer textarea::placeholder {
  color: #8895a9;
}
.composer-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3px 8px 8px;
}
.attach-tools {
  display: flex;
  align-items: center;
  gap: 2px;
}
.attach-tools .icon-btn {
  width: 30px;
  height: 29px;
}
.attach-tools .glyph {
  width: 17px;
  height: 17px;
}
.send-btn {
  min-height: 30px;
  padding: 5px 12px;
  font-size: 12px;
}
.send-btn .glyph {
  width: 14px;
  height: 14px;
}
.send-btn:disabled {
  background: #5278d8;
  opacity: 0.8;
}
.composer-hint {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  color: #7c8899;
  font-size: 10px;
  margin: 5px 2px 0;
}
.draft-file {
  display: flex;
  align-items: center;
  gap: 7px;
  border-radius: 5px;
  background: var(--wash);
  margin: 8px 8px 0;
  padding: 4px 7px;
  font-size: 12px;
}
.draft-file span {
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.draft-file button {
  margin-left: auto;
  height: 24px;
  width: 24px;
}
.details {
  grid-area: detail;
  min-height: 0;
  min-width: 0;
  overflow: auto;
  border-left: 1px solid var(--line);
  background: #fcfdff;
}
.detail-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 25px 19px 10px;
  font-size: 14px;
  font-weight: 650;
}
.detail-head > .glyph {
  color: #708098;
  width: 16px;
  height: 16px;
}
.detail-profile {
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: 19px 15px 21px;
  text-align: center;
  gap: 4px;
}
.detail-profile strong {
  margin-top: 6px;
  font-size: 17px;
  overflow-wrap: anywhere;
}
.detail-profile small {
  font-size: 12px;
  color: var(--muted);
}
.detail-block {
  border-top: 1px solid var(--line);
  padding: 16px 19px;
}
.detail-block h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  margin: 0 0 11px;
}
.detail-block h3 > span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.detail-block h3 small {
  display: inline-grid;
  place-items: center;
  background: #eef1f7;
  color: #67748b;
  min-width: 18px;
  height: 17px;
  padding: 0 4px;
  border-radius: 4px;
  font-size: 10px;
}
.detail-block h3 .text-btn {
  font-size: 11px;
  font-weight: 500;
}
.member-row {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
}
.member-row .avatar {
  width: 26px;
  height: 26px;
  font-size: 11px;
}
.member-row strong {
  font-size: 13px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.member-row small {
  margin-left: auto;
  border: 1px solid #dfe5ef;
  border-radius: 4px;
  color: #64738a;
  padding: 1px 5px;
  font-size: 10px;
}
.detail-action {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 0;
  border: 0;
  background: none;
  text-align: left;
  color: var(--dim);
  font-size: 13px;
}
.detail-action:hover {
  color: var(--blue);
}
.detail-action .glyph {
  width: 15px;
  height: 15px;
}
.detail-action .glyph:last-child,
.detail-action .switch {
  margin-left: auto;
}
.switch {
  width: 27px;
  height: 16px;
  border-radius: 10px;
  padding: 2px;
  background: #cbd4e0;
  display: inline-flex;
  align-items: center;
}
.switch::after {
  content: '';
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 1px 2px #14203c22;
}
.switch.on {
  background: var(--blue);
  justify-content: flex-end;
}
.detail-files .file-card {
  min-width: 0;
  padding: 7px;
  margin-bottom: 6px;
  gap: 7px;
}
.detail-files .file-mark {
  width: 27px;
  height: 31px;
  border-radius: 5px;
}
.detail-files .file-label strong {
  font-size: 11px;
}
.detail-muted {
  font-size: 12px;
  color: var(--muted);
  margin: 2px 0;
  line-height: 1.6;
}
.toast-stack {
  position: fixed;
  right: 22px;
  bottom: 20px;
  width: min(340px, calc(100% - 36px));
  z-index: 1100;
  display: grid;
  gap: 7px;
  pointer-events: none;
}
.app-toast {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-radius: 9px;
  padding: 12px 15px;
  background: #253753;
  color: white;
  box-shadow: 0 4px 20px #15274429;
  font-size: 13px;
  pointer-events: auto;
  overflow-wrap: anywhere;
}
.app-toast button {
  flex-shrink: 0;
  background: transparent;
  border: 0;
  color: #c4d6ff;
  font-size: 12px;
}
.image-viewer {
  padding: 0;
  border: 0;
  border-radius: 12px;
  max-width: min(92vw, 950px);
  max-height: 90dvh;
  color: var(--ink);
}
.image-viewer::backdrop {
  background: #111c32bf;
}
.viewer-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
}
.viewer-head strong {
  flex: 1;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.viewer-head a {
  color: var(--blue);
}
.image-viewer > img {
  display: block;
  max-width: 100%;
  max-height: 74dvh;
  margin: auto;
  object-fit: contain;
}
@media (min-width: 1600px) {
  #workspace {
    grid-template-columns: 78px 345px minmax(0, 1fr) 310px;
  }
}
@media (max-width: 1150px) {
  #workspace {
    grid-template-columns: 66px 255px minmax(0, 1fr) 224px;
  }
  .detail-block {
    padding-left: 16px;
    padding-right: 16px;
  }
}
@media (max-width: 985px) {
  #workspace {
    grid-template-columns: 62px 260px minmax(0, 1fr);
    grid-template-areas: 'rail top top' 'rail inbox convo';
  }
  .details {
    display: none;
  }
}
@media (max-width: 700px) {
  #workspace {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 52px minmax(0, 1fr) auto;
    grid-template-areas: 'top' 'inbox' 'rail';
  }
  .topbar {
    padding: 0 18px;
  }
  .wordmark {
    font-size: 24px;
  }
  .brand-line {
    gap: 11px;
  }
  .rail {
    flex-direction: row;
    justify-content: space-around;
    padding: 3px 6px max(3px, env(safe-area-inset-bottom));
    background: #fff;
    border-top: 1px solid var(--line);
  }
  .rail-mark {
    display: none;
  }
  .rail-links,
  .rail-bottom {
    display: contents;
  }
  .rail-btn,
  .rail-user {
    width: 56px;
    min-height: 48px;
    color: #65748b;
    gap: 2px;
    padding: 5px 0 3px;
    align-content: center;
  }
  .rail-btn .glyph {
    width: 19px;
    height: 19px;
  }
  .rail-btn span {
    display: block;
    font-size: 12px;
  }
  .rail-btn.selected {
    background: #eff4ff;
    color: var(--blue);
  }
  .rail-btn:hover,
  .rail-user:hover {
    background: #edf2fb;
    color: var(--blue);
  }
  .rail-user .avatar {
    width: 25px;
    height: 25px;
    font-size: 11px;
  }
  .rail-user::after {
    content: '我的';
    font-size: 12px;
  }
  .inbox {
    border: 0;
  }
  .inbox-head {
    margin: 21px 20px 17px;
  }
  .filters {
    margin-bottom: 8px;
  }
  .chat-row {
    min-height: 71px;
  }
  .directory-link {
    display: none;
  }
  .chat-row .avatar {
    width: 44px;
    height: 44px;
  }
  .chat-row strong {
    font-size: 16px;
  }
  .preview {
    font-size: 14px;
  }
  .bubble {
    font-size: 16px;
  }
  .conversation {
    display: none;
  }
  #workspace.mobile-chat {
    grid-template-areas: 'convo' 'convo' 'convo';
  }
  #workspace.mobile-chat .rail,
  #workspace.mobile-chat .inbox,
  #workspace.mobile-chat .topbar {
    display: none;
  }
  #workspace.mobile-chat .conversation {
    display: flex;
  }
  .back-btn {
    display: inline-grid;
    width: 27px;
  }
  .chat-head {
    min-height: 65px;
    gap: 8px;
    padding: 6px 14px 6px 8px;
  }
  .chat-head > .avatar {
    width: 34px;
    height: 34px;
  }
  .head-copy h2 {
    font-size: 18px;
  }
  .head-copy p {
    font-size: 12px;
  }
  .announcement-bar {
    margin-top: 10px;
    width: calc(100% - 26px);
  }
  .messages {
    padding: 13px;
  }
  .message-content {
    max-width: 82%;
  }
  .composer-area {
    padding: 7px 10px max(8px, env(safe-area-inset-bottom));
  }
  .composer-hint {
    display: none;
  }
  .composer textarea {
    font-size: 16px;
  }
  .toast-stack {
    bottom: max(66px, env(safe-area-inset-bottom));
    right: 10px;
  }
}
@media (max-height: 660px) and (min-width: 701px) {
  .composer-hint {
    display: none;
  }
  .chat-head {
    min-height: 66px;
  }
  .message {
    margin-bottom: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
