:root {
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #20332f;
  background: #e8eeeb;
  font-synthesis: none;
  --green: #08796b;
  --muted: #6c7d77;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
button,
input,
textarea,
a {
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #17a899;
  outline-offset: 3px;
}
input:focus,
textarea:focus {
  outline: 2px solid #159b89;
  outline-offset: 2px;
}
[hidden] {
  display: none !important;
}
.muted,
small {
  color: var(--muted);
}
.login-screen {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 28px 22px;
  background: linear-gradient(155deg, #075e54 0, #075e54 28%, #edf2ef 28%);
}
.login-card {
  width: 100%;
  max-width: 440px;
  padding: 36px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 18px 65px #123c2820;
}
.brand-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  background: #e0f3eb;
  color: var(--green);
  border-radius: 16px;
  font-size: 34px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.6px;
  font-weight: 700;
  color: var(--green);
  margin-top: 26px;
}
h1 {
  font-size: 30px;
  letter-spacing: -1.1px;
  line-height: 1.2;
}
.login-card > .muted {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 26px;
}
.login-card label {
  display: block;
  font-size: 13px;
  font-weight: 650;
  margin: 18px 0 8px;
}
.login-card input {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #d5dfd9;
  border-radius: 8px;
  background: #fbfcfb;
}
.login-card small {
  font-size: 11px;
  display: block;
  margin-top: 7px;
}
.primary {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 14px 18px;
  border: 0;
  border-radius: 8px;
  background: var(--green);
  color: white;
  font-weight: 650;
}
.login-note {
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  margin: 24px 0 0;
}
.error {
  color: #a92f2f;
  font-size: 13px;
}
.error:empty {
  display: none;
}
.app {
  height: 100dvh;
  display: flex;
  max-width: 1440px;
  margin: auto;
  overflow: hidden;
  background: #fff;
}
.sidebar {
  width: 300px;
  flex-shrink: 0;
  background: #fff;
  border-right: 1px solid #dce5df;
  display: flex;
  flex-direction: column;
}
.sidebar-top {
  height: 88px;
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wordmark {
  font-size: 27px;
  font-weight: 750;
  letter-spacing: -1.5px;
}
.wordmark span {
  color: #19aa82;
}
.small-label {
  color: #7e8d87;
  font-size: 9px;
  letter-spacing: 1.5px;
}
.sidebar-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 26px 18px;
}
.sidebar-heading h2 {
  font-size: 14px;
  margin: 0;
}
.count {
  font-size: 11px;
  background: #eef3f0;
  padding: 3px 7px;
  border-radius: 6px;
  color: #73817b;
}
.room {
  margin: 0 12px;
  padding: 17px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 10px;
}
.room.active {
  background: #e9f4ee;
}
.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-weight: 650;
}
.group {
  background: #d0e9dc;
  color: #17664b;
}
.room strong,
.sidebar-bottom strong {
  font-size: 14px;
}
.room p,
.sidebar-bottom p {
  font-size: 11px;
  color: var(--muted);
  margin: 5px 0 0;
}
.room-dot {
  height: 7px;
  width: 7px;
  border-radius: 50%;
  background: #1e9d75;
  margin-left: auto;
}
.sidebar-bottom {
  margin-top: auto;
  border-top: 1px solid #edf0ee;
  padding: 22px;
  display: flex;
  gap: 12px;
  align-items: center;
}
.personal {
  background: #f2e4cf;
  color: #89602b;
}
.conversation {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #f1eee7;
}
.chat-header {
  height: 80px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  background: #fff;
  border-bottom: 1px solid #e1e6e2;
}
.header-title h1 {
  font-size: 17px;
  letter-spacing: -0.3px;
  margin: 0;
}
.header-title p {
  font-size: 12px;
  color: var(--muted);
  margin: 5px 0 0;
}
.connection {
  font-size: 11px;
  color: #557169;
  margin-left: auto;
  max-width: 130px;
  text-align: right;
}
.connection.online {
  color: #168167;
}
.connection.online:before {
  content: " ";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #239f77;
  margin-right: 6px;
}
.icon-button {
  border: 0;
  background: transparent;
  color: #62776f;
  min-width: 44px;
  height: 44px;
  font-size: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.icon-button:hover {
  background: #e4eee7;
}
.notice {
  padding: 10px 20px;
  background: #fff7dc;
  color: #715d27;
  font-size: 12px;
  text-align: center;
}
.history-wrap {
  position: relative;
  min-height: 0;
  flex: 1;
  display: flex;
  background-image: radial-gradient(#97a99920 0.8px, transparent 0.8px);
  background-size: 19px 19px;
}
.messages {
  width: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 28px max(24px, 6%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  scrollbar-width: thin;
  scrollbar-color: #bcc9c1 transparent;
}
.day {
  align-self: center;
  margin: 12px 0 16px;
  background: #fff9;
  padding: 6px 14px;
  border-radius: 7px;
  color: #607168;
  font-size: 11px;
  box-shadow: 0 1px 2px #00000008;
}
.empty {
  margin: auto;
  text-align: center;
  max-width: 300px;
  color: #75847a;
  font-size: 13px;
  line-height: 1.7;
}
.empty .avatar {
  margin: 0 auto 18px;
  width: 68px;
  height: 68px;
  font-size: 26px;
}
.empty h2 {
  font-size: 20px;
  color: #3e5d4d;
  margin-bottom: 8px;
}
.bubble {
  align-self: flex-start;
  max-width: 78%;
  padding: 9px 12px 7px;
  background: white;
  border-radius: 0 11px 11px;
  box-shadow: 0 1px 2px #18352c12;
  overflow-wrap: anywhere;
  min-width: 105px;
}
.bubble.own {
  align-self: flex-end;
  background: #d9f7c9;
  border-radius: 11px 0 11px 11px;
}
.author {
  font-size: 12px;
  font-weight: 700;
  display: block;
  margin-bottom: 5px;
}
.author-dolzer {
  color: #16705b;
}
.author-tayrex {
  color: #a35123;
}
.author-rio {
  color: #6954a4;
}
.body {
  font-size: 14px;
  line-height: 1.55;
  white-space: pre-wrap;
}
.body a {
  color: #076d99;
}
.body code {
  background: #00000009;
  border-radius: 3px;
  padding: 1px 4px;
  font-size: 12px;
}
.body pre {
  margin: 8px 0;
  background: #20312d;
  color: #e6f3eb;
  padding: 12px;
  border-radius: 6px;
  overflow: auto;
  white-space: pre;
  max-width: 100%;
}
.body pre code {
  background: none;
  padding: 0;
}
.message-meta {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: #667d6e;
  margin-top: 4px;
}
.ticks {
  font-size: 13px;
  letter-spacing: -2px;
  padding-right: 2px;
}
.ticks.read {
  color: #087bb4;
}
.attachment-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: #00000005;
  border-radius: 6px;
  color: #315d50;
  font-size: 13px;
  text-decoration: none;
  margin-bottom: 5px;
}
.attachment-link span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.attachment-link small {
  display: block;
  margin-top: 4px;
  font-size: 10px;
}
.message-image {
  display: block;
  max-width: 100%;
  max-height: 320px;
  border-radius: 6px;
  object-fit: contain;
  margin-bottom: 7px;
}
.latest {
  position: absolute;
  bottom: 14px;
  right: 20px;
  border: 1px solid #d5e2d9;
  background: white;
  color: var(--green);
  border-radius: 24px;
  padding: 10px 16px;
  box-shadow: 0 3px 12px #0001;
  font-size: 12px;
}
.composer {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 14px 22px 6px;
  background: #f9faf8;
}
.composer textarea {
  flex: 1;
  min-width: 0;
  resize: none;
  max-height: 150px;
  line-height: 1.5;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid #e1e8e2;
  border-radius: 22px;
  font-size: 14px;
}
.send {
  border: 0;
  background: var(--green);
  color: white;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 21px;
  flex-shrink: 0;
}
.send:hover {
  background: #056558;
}
.composer-note {
  background: #f9faf8;
  text-align: center;
  font-size: 9px;
  color: #809087;
  padding: 4px 10px max(12px, env(safe-area-inset-bottom));
}
.attachment-draft {
  background: #f9faf8;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid #dce5df;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.attachment-draft img {
  width: 64px;
  height: 64px;
  border-radius: 7px;
  object-fit: cover;
}
.attachment-draft span {
  flex: 1;
  min-width: 0;
}
.chat-error {
  padding: 10px 24px;
  margin: 0;
  background: #fff1ee;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
@media (min-width: 1100px) {
  body {
    padding: 28px 40px;
    background: linear-gradient(#075e54 145px, #e3e9e5 145px);
  }
  .app {
    height: calc(100dvh - 56px);
    border-radius: 10px;
    box-shadow: 0 15px 60px #16342826;
  }
  .login-screen {
    margin: -28px -40px;
  }
}
@media (max-width: 700px) {
  .sidebar {
    display: none;
  }
  .chat-header {
    height: 74px;
    padding: 12px 16px;
    gap: 10px;
  }
  .chat-header .avatar {
    width: 40px;
    height: 40px;
  }
  .connection {
    font-size: 10px;
    max-width: 92px;
  }
  .header-title p {
    font-size: 10px;
  }
  .messages {
    padding: 16px 12px;
  }
  .bubble {
    max-width: 88%;
  }
  .composer {
    padding: 10px 10px 6px;
    gap: 6px;
  }
  .composer-note {
    font-size: 8px;
  }
  .login-card {
    padding: 28px 24px;
  }
  .login-card h1 {
    font-size: 28px;
  }
  .attachment-draft {
    padding: 10px 16px;
  }
}
