:root {
  color-scheme: light;
  --bg: #f2f4ef;
  --panel: #fff;
  --ink: #172b24;
  --muted: #77837d;
  --line: #e6ebe5;
  --green: #315a42;
  --accent: #d9ef99;
  --soft: #eef3e9;
  --danger: #b43e3e;
  --bubble: #f0f3ef;
  --shadow: 0 12px 50px #162b2412;
  font-family: Inter, "Segoe UI", sans-serif;
  font-size: 14px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}
body.dark {
  color-scheme: dark;
  --bg: #101c17;
  --panel: #182820;
  --ink: #e5eee6;
  --muted: #9aa99f;
  --line: #2b4033;
  --green: #9ec685;
  --accent: #cee999;
  --soft: #263c2b;
  --bubble: #26382b;
  --shadow: 0 12px 50px #0003;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
summary {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  border: 0;
  border-radius: 10px;
  padding: 11px 16px;
  color: inherit;
  background: var(--soft);
  font-weight: 600;
}
button:hover {
  filter: brightness(0.96);
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid #8dab66;
  outline-offset: 3px;
}
input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  color: var(--ink);
  padding: 13px 14px;
  outline: none;
}
input:focus,
textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px #85a76722;
}
textarea {
  resize: none;
}
label {
  display: grid;
  gap: 9px;
  font-weight: 600;
  margin: 20px 0;
}
h1,
h2,
p {
  margin: 0;
}
h2 {
  font-size: 19px;
  letter-spacing: -0.5px;
}
p {
  line-height: 1.6;
}
ol {
  list-style: none;
  padding: 0;
  margin: 0;
}
[hidden] {
  display: none !important;
}
.topbar {
  height: 84px;
  padding: 0 4%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.brand {
  color: var(--ink);
  text-decoration: none;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 11px;
}
.brand-icon {
  background: var(--ink);
  color: var(--accent);
  border-radius: 11px;
  width: 40px;
  height: 40px;
  text-align: center;
  line-height: 40px;
  font-size: 34px;
}
.brand-note {
  font-size: 12px;
  letter-spacing: 0;
  font-weight: 400;
  color: var(--muted);
  border-left: 1px solid var(--line);
  padding-left: 14px;
  margin-left: 4px;
}
.top-actions {
  display: flex;
  gap: 14px;
  align-items: center;
}
.top-actions > span {
  font-size: 12px;
  color: var(--muted);
}
.icon-button {
  padding: 0;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: transparent;
  font-size: 20px;
  border-radius: 9px;
}
.ghost {
  background: transparent;
  border: 1px solid var(--line);
  padding: 8px 12px;
  font-size: 12px;
}
.primary {
  background: var(--ink);
  color: var(--panel);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.primary span {
  font-size: 19px;
}
.login-layout {
  max-width: 1080px;
  margin: 60px auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 80px;
  padding: 35px 24px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 23px;
}
.intro h1 {
  font-size: clamp(46px, 5vw, 69px);
  line-height: 1.06;
  letter-spacing: -3px;
  font-weight: 700;
}
.intro h1 span {
  color: #82a859;
}
.lead {
  margin-top: 25px;
  font-size: 17px;
  color: var(--muted);
}
.intro-art {
  margin-top: 40px;
  max-width: 400px;
  position: relative;
  padding: 20px 0;
}
.art-message {
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 18px 18px 18px 3px;
  background: var(--panel);
  box-shadow: var(--shadow);
  max-width: 290px;
  font-size: 16px;
  transform: rotate(-3deg);
}
.art-message span {
  display: block;
  text-align: right;
  font-size: 10px;
  margin-top: 6px;
  color: var(--muted);
}
.art-message.reply {
  margin: 8px 0 0 65px;
  background: var(--accent);
  color: #203721;
  border-radius: 18px 18px 3px 18px;
  transform: rotate(3deg);
}
.art-presence {
  margin-top: 25px;
  color: var(--muted);
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.art-presence i,
.dot {
  width: 7px;
  height: 7px;
  display: inline-block;
  border-radius: 50%;
  background: #adb7ad;
  flex-shrink: 0;
}
.dot.online,
.art-presence i {
  background: #80ad59;
}
.dot.away,
.dot.idle {
  background: #d4a953;
}
.dot.dnd {
  background: #c66363;
}
.intro-footer {
  font-size: 11px;
  color: var(--muted);
  margin-top: 35px;
}
.login-card {
  align-self: start;
  padding: 38px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.mini-logo {
  font-size: 38px;
  color: var(--green);
  display: block;
  margin-bottom: 20px;
}
.login-card h2 {
  font-size: 26px;
  margin-bottom: 10px;
}
.muted {
  color: var(--muted);
}
.login-card .primary {
  width: 100%;
  margin-top: 30px;
}
.login-note {
  margin-top: 25px;
  font-size: 12px;
  color: var(--muted);
}
.form-error {
  color: var(--danger);
  font-size: 12px;
}
.client-layout {
  height: calc(100dvh - 118px);
  min-height: 400px;
  margin: 17px 3%;
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--panel);
  box-shadow: var(--shadow);
}
.sidebar {
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.self {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 24px 20px;
  border-bottom: 1px solid var(--line);
}
.self > div {
  flex: 1;
  min-width: 0;
}
.self strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}
.self select {
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  max-width: 160px;
}
.avatar {
  width: 42px;
  height: 42px;
  background: var(--soft);
  color: var(--green);
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}
.self .avatar {
  background: var(--accent);
  color: #213e31;
}
.sidebar-heading {
  display: flex;
  align-items: center;
  padding: 20px 18px 10px;
  gap: 4px;
}
.sidebar-heading h2 {
  flex: 1;
}
.plus {
  background: var(--soft);
}
.search {
  width: calc(100% - 36px);
  margin: 0 18px;
  background: var(--bg);
  font-size: 12px;
  padding: 11px 14px;
}
.tabs {
  display: flex;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  margin: 13px 18px 5px;
}
.tabs button {
  border-radius: 0;
  padding: 13px 2px;
  background: transparent;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  flex: 1;
}
.tabs button.active {
  color: var(--green);
  border-bottom-color: var(--green);
}
.tabs span {
  font-size: 10px;
  background: var(--soft);
  border-radius: 5px;
  padding: 2px 5px;
  margin-left: 3px;
}
.contact-list {
  flex: 1;
  overflow: auto;
  padding: 6px 10px;
}
.contact {
  width: 100%;
  display: flex;
  gap: 12px;
  align-items: center;
  background: transparent;
  text-align: left;
  padding: 12px 10px;
  margin: 3px 0;
  border-radius: 12px;
  font-weight: 400;
}
.contact.selected {
  background: var(--soft);
}
.contact-main {
  min-width: 0;
  flex: 1;
}
.contact-name {
  display: block;
  font-size: 13px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.contact-meta {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.unread {
  background: var(--green);
  color: var(--panel);
  font-size: 10px;
  padding: 3px 6px;
  border-radius: 10px;
}
.empty-state {
  padding: 30px 16px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
  line-height: 1.8;
}
.sidebar-footer {
  font-size: 10px;
  color: var(--muted);
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 6px;
  align-items: center;
}
.sidebar-footer button {
  margin-left: auto;
  font-size: 10px;
  padding: 5px 7px;
}
.room-add {
  margin: 10px 18px;
  font-size: 12px;
}
.chat-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  position: relative;
}
.chat-header {
  min-height: 92px;
  padding: 20px 28px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 12px;
}
.chat-heading {
  flex: 1;
  min-width: 0;
}
.chat-heading h2 {
  font-size: 17px;
  overflow-wrap: anywhere;
}
.chat-heading p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
}
.chat-menu {
  position: relative;
}
.chat-menu summary {
  list-style: none;
  cursor: pointer;
}
.chat-menu summary::-webkit-details-marker {
  display: none;
}
.menu {
  position: absolute;
  right: 0;
  top: 40px;
  z-index: 5;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 6px;
  min-width: 220px;
}
.menu button {
  display: block;
  background: transparent;
  text-align: left;
  width: 100%;
  font-size: 12px;
}
.danger {
  color: var(--danger);
}
.message-search {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 28px;
  border-bottom: 1px solid var(--line);
}
.message-search input {
  padding: 7px 11px;
  font-size: 11px;
  background: var(--bg);
  max-width: 300px;
}
.message-search span {
  font-size: 11px;
  color: var(--muted);
}
.messages {
  flex: 1;
  overflow: auto;
  padding: 20px 28px;
  background: radial-gradient(circle at 100% 0%, var(--soft), transparent 60%);
  scroll-behavior: smooth;
}
.empty-conversation {
  height: 100%;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}
.empty-conversation .flower {
  color: var(--green);
  font-size: 72px;
  opacity: 0.4;
}
.message {
  display: flex;
  margin: 10px 0;
}
.message.out {
  justify-content: flex-end;
}
.bubble {
  max-width: min(78%, 620px);
  background: var(--bubble);
  border-radius: 14px 14px 14px 3px;
  padding: 13px 16px;
  min-width: 100px;
}
.out .bubble {
  background: var(--accent);
  color: #203721;
  border-radius: 14px 14px 3px 14px;
}
.message-body {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.65;
  font-size: 13px;
}
.message-body a {
  color: inherit;
  text-decoration: underline;
}
.message-meta {
  font-size: 10px;
  opacity: 0.6;
  margin-top: 7px;
  text-align: right;
}
.date-divider {
  text-align: center;
  font-size: 10px;
  color: var(--muted);
  margin: 18px 0;
}
.typing {
  font-size: 11px;
  min-height: 25px;
  padding: 3px 28px;
  color: var(--green);
}
.composer {
  display: flex;
  align-items: flex-end;
  gap: 9px;
  padding: 10px 22px 5px;
}
.composer textarea {
  min-height: 46px;
  max-height: 160px;
  background: var(--bg);
  line-height: 1.55;
  flex: 1;
}
.composer button {
  height: 46px;
  flex-shrink: 0;
}
.composer-note {
  font-size: 10px;
  padding: 7px 28px 14px;
  color: var(--muted);
}
.room-members {
  padding: 9px 28px;
  font-size: 11px;
  background: var(--soft);
  overflow-wrap: anywhere;
}
.mobile {
  display: none;
}
dialog {
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  width: min(450px, calc(100% - 32px));
  box-shadow: var(--shadow);
}
dialog::backdrop {
  background: #10201888;
  backdrop-filter: blur(3px);
}
.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 15px;
}
.dialog-header h2 {
  font-size: 21px;
}
dialog .primary {
  width: 100%;
  margin-top: 22px;
}
.dialog-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.dialog-actions .primary {
  width: auto;
  margin: 0;
}
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--panel);
  border-radius: 12px;
  padding: 14px 22px;
  z-index: 30;
  max-width: calc(100% - 30px);
  box-shadow: var(--shadow);
  font-size: 13px;
}
.toast.error {
  background: #9e3535;
  color: white;
}
@media (min-width: 1500px) {
  .client-layout {
    max-width: 1500px;
    margin-left: auto;
    margin-right: auto;
  }
}
@media (max-width: 900px) {
  .login-layout {
    gap: 35px;
    margin-top: 25px;
  }
  .login-card {
    padding: 28px;
  }
  .client-layout {
    grid-template-columns: 270px minmax(0, 1fr);
    margin: 12px 2%;
    height: calc(100dvh - 108px);
  }
  .chat-header {
    padding: 16px;
  }
  .messages {
    padding: 15px;
  }
  .bubble {
    max-width: 90%;
  }
  .composer {
    padding: 10px;
  }
  .composer .primary {
    font-size: 0;
    gap: 0;
    padding: 0;
    width: 44px;
    justify-content: center;
  }
  .composer .primary span {
    font-size: 22px;
  }
  .composer-note {
    padding: 8px 15px;
    font-size: 9px;
  }
}
@media (max-width: 620px) {
  .topbar {
    height: 65px;
    padding: 0 16px;
  }
  .brand-note {
    display: none;
  }
  .top-actions {
    gap: 5px;
  }
  .top-actions > span {
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .brand {
    font-size: 19px;
  }
  .brand-icon {
    width: 33px;
    height: 33px;
    line-height: 33px;
    font-size: 29px;
  }
  .login-layout {
    display: block;
    margin: 20px auto;
    padding: 15px;
    max-width: 440px;
  }
  .intro {
    padding: 10px 15px 25px;
  }
  .intro h1 {
    font-size: 43px;
    letter-spacing: -2px;
  }
  .intro .lead {
    font-size: 14px;
    margin-top: 15px;
  }
  .eyebrow {
    font-size: 9px;
    margin-bottom: 16px;
  }
  .intro-art,
  .intro-footer {
    display: none;
  }
  .login-card {
    padding: 25px;
  }
  .mini-logo {
    display: none;
  }
  .login-card h2 {
    font-size: 23px;
  }
  .client-layout {
    margin: 0;
    height: calc(100dvh - 65px);
    border: 0;
    border-radius: 0;
    display: flex;
    min-height: 0;
  }
  .sidebar {
    width: 100%;
    border: 0;
  }
  .chat-panel {
    display: none;
    width: 100%;
  }
  .client-layout.conversation .sidebar {
    display: none;
  }
  .client-layout.conversation .chat-panel {
    display: flex;
  }
  .mobile {
    display: grid;
  }
  .chat-header {
    min-height: 78px;
    gap: 8px;
  }
  .chat-header .avatar {
    width: 35px;
    height: 35px;
  }
  .message-search {
    padding: 10px 15px;
  }
  .chat-heading h2 {
    font-size: 15px;
  }
  .chat-heading p {
    font-size: 10px;
  }
  .bubble {
    max-width: 88%;
  }
  .composer-note {
    font-size: 9px;
  }
  .sidebar-footer {
    padding-bottom: max(15px, env(safe-area-inset-bottom));
  }
  .composer-note {
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }
}

.contact-uin {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin: 2px 0;
}
.uin-card {
  display: block;
  font-size: 36px;
  letter-spacing: 3px;
  padding: 20px;
  background: #edf7f0;
  border-radius: 14px;
  color: #183b2b;
}
#register-success button {
  margin-top: 12px;
}
a.ghost {
  text-decoration: none;
}

.avatar {
  overflow: hidden;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
.social-tools {
  display: flex;
  gap: 6px;
  padding: 0 20px 12px;
}
.social-tools button {
  font-size: 12px;
  padding: 9px 10px;
  flex: 1;
  white-space: nowrap;
}
.request-count {
  display: inline-grid;
  place-items: center;
  background: var(--green);
  color: var(--panel);
  border-radius: 50%;
  min-width: 19px;
  height: 19px;
  margin-left: 3px;
  font-size: 10px;
}
.attachment-drafts {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 10px 22px 0;
  max-height: 130px;
  overflow: auto;
}
.attachment-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 6px 3px 12px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 11px;
  max-width: 100%;
}
.attachment-chip span {
  overflow-wrap: anywhere;
}
.attachment-chip button {
  padding: 5px;
}
.upload-progress {
  margin: 5px 22px;
  font-size: 11px;
  color: var(--muted);
}
.attachment-card {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 140px;
  max-width: 300px;
  padding: 8px 0;
  white-space: normal;
}
.attachment-photo {
  max-width: 100%;
  max-height: 280px;
  display: block;
  object-fit: contain;
  border-radius: 12px;
  background: var(--panel);
}
.attachment-link {
  font-weight: 600;
  overflow-wrap: anywhere;
}
.attachment-card small {
  font-size: 10px;
}
.graphic-smile {
  width: 28px;
  height: 28px;
  vertical-align: middle;
  display: inline-block;
  margin: 0 2px;
}
.smile-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 20px;
}
.smile-choice {
  display: grid;
  place-items: center;
  padding: 12px;
}
.smile-choice .graphic-smile {
  width: 42px;
  height: 42px;
}
.smile-pack-tabs {
  display: flex;
  gap: 10px;
}
.large-avatar {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  font-size: 24px;
}
.profile-avatar-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.profile-avatar-row button {
  font-size: 11px;
  padding: 8px;
  margin: 3px;
}
.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.check-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  line-height: 1.5;
  margin: 9px 0;
}
.check-label input {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  margin: 0;
  accent-color: var(--green);
}
#profile-privacy {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}
.wide-dialog {
  width: min(680px, calc(100% - 32px));
}
dialog {
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
}
.directory-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 130px 90px;
  gap: 8px;
  align-items: center;
}
.directory-form .primary {
  margin: 0;
}
.directory-result {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.directory-info {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.directory-info strong,
.directory-info small {
  display: block;
}
.directory-info p {
  font-size: 12px;
  line-height: 1.5;
  margin: 8px 0 0;
}
.directory-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}
.directory-actions .primary {
  margin: 0;
  font-size: 11px;
}
.directory-actions .ghost {
  font-size: 11px;
}
.request-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.request-info {
  min-width: 0;
  overflow-wrap: anywhere;
}
.request-info small {
  display: block;
  margin-top: 4px;
}
.request-info p {
  font-size: 12px;
  line-height: 1.5;
}
.request-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}
.request-actions .primary {
  margin: 0;
  font-size: 11px;
}
.request-status {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}
.composer textarea {
  min-width: 0;
}
.composer #attach-button {
  font-size: 25px;
}
@media (max-width: 620px) {
  .social-tools {
    padding: 0 14px 10px;
  }
  .directory-form {
    grid-template-columns: minmax(0, 1fr) 110px;
  }
  .directory-form .primary {
    grid-column: 1/-1;
  }
  .directory-result {
    flex-wrap: wrap;
    gap: 10px;
  }
  .directory-actions {
    width: 100%;
    flex-direction: row;
    justify-content: flex-end;
  }
  .directory-actions .primary {
    width: auto;
  }
  .request-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .request-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .request-actions .primary {
    width: auto;
  }
  .attachment-drafts {
    padding: 6px 12px 0;
  }
  .profile-grid {
    grid-template-columns: 1fr;
  }
  #profile-dialog {
    padding: 20px;
  }
  .composer {
    gap: 5px;
  }
  .composer .icon-button {
    padding: 8px;
  }
  .composer-note {
    font-size: 9px;
  }
}

#voice-button {
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
#voice-button.recording {
  background: #b43e3e;
  color: white;
}
.voice-status {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 10px 16px;
  background: var(--soft);
  flex-shrink: 0;
  font-size: 12px;
}
#voice-status-text {
  flex: 1;
  min-width: 0;
}
.voice-status.recording #voice-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #b43e3e;
  flex-shrink: 0;
}
.voice-card {
  width: min(320px, 100%);
  min-width: 0;
}
.voice-label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
}
.voice-player {
  display: block;
  width: 100%;
  height: 44px;
  min-width: 0;
  margin-bottom: 6px;
}
.voice-card .attachment-link {
  font-size: 11px;
  font-weight: 400;
}
@media (max-width: 760px), (max-width: 1000px) and (max-height: 500px) {
  .composer {
    flex-wrap: wrap;
  }
  .composer textarea {
    flex: 1 1 calc(100% - 54px);
    order: 1;
  }
  .composer #send-button {
    order: 2;
  }
  .composer #attach-button {
    order: 3;
  }
  .composer #emoji-button {
    order: 4;
  }
  .composer #voice-button {
    order: 5;
    margin-left: auto;
    width: 52px;
    background: var(--soft);
    border-radius: 14px;
  }
  .composer #voice-button.recording {
    background: #b43e3e;
  }
  .voice-status {
    flex-wrap: wrap;
    padding: 8px 12px;
  }
  .voice-card {
    width: min(300px, 100%);
  }
  .typing:empty {
    display: none;
  }
}
