:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #263329;
  background: #f6f7f1;
  --ink: #263329;
  --muted: #87907f;
  --accent: #c7ef83;
  --line: #e7eade;
  --dark: #243329;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  cursor: pointer;
  color: inherit;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
a {
  color: inherit;
  text-decoration: none;
}
[hidden] {
  display: none !important;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #83a85a;
  outline-offset: 3px;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
svg.icon {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
  flex-shrink: 0;
}
span[data-icon] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
.eyebrow {
  display: block;
  font-size: 8px;
  letter-spacing: 1.7px;
  color: #8b987c;
  font-weight: 650;
  margin-bottom: 9px;
}
.muted {
  color: #839075;
  line-height: 1.8;
  font-size: 13px;
}
.small-note {
  font-size: 11px;
  color: #8d9782;
  line-height: 1.8;
}
.error {
  font-size: 12px;
  color: #b94e43;
  line-height: 1.8;
  margin: 12px 0;
}
.button {
  border: 0;
  border-radius: 10px;
  min-height: 44px;
  padding: 12px 17px;
  font-size: 12px;
  font-weight: 550;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.button .icon {
  width: 17px;
  height: 17px;
}
.primary {
  background: var(--accent);
  color: #33462b;
}
.primary:hover {
  background: #b9e86e;
}
.secondary {
  background: #edf1e5;
  color: #657653;
}
.secondary:hover {
  background: #e3ead8;
}
.danger {
  background: #f5e7e1;
  color: #ad604a;
}
.danger:hover {
  background: #eed9cf;
}
.icon-button {
  width: 37px;
  height: 37px;
  border: 0;
  background: none;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #80916f;
  flex-shrink: 0;
}
.icon-button:hover {
  background: #eaf0e0;
}
.square-button {
  width: 37px;
  height: 37px;
  border: 0;
  border-radius: 10px;
  background: #e8f1db;
  color: #789954;
  display: grid;
  place-items: center;
}
.square-button:hover {
  background: #dcebc8;
}
input,
textarea,
select {
  background: #f7f9f2;
  border: 1px solid #e5eadd;
  border-radius: 9px;
  min-height: 45px;
  padding: 12px 13px;
  width: 100%;
  font-size: 13px;
  color: var(--ink);
}
input::placeholder,
textarea::placeholder {
  color: #a1aa97;
}
label {
  font-size: 11px;
  font-weight: 550;
  display: block;
  margin: 18px 0 9px;
}
input:focus,
textarea:focus {
  border-color: #a1b783;
}
textarea {
  resize: none;
}
input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-height: 0;
  accent-color: #74954c;
}
.checkbox-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #7f8e70;
  margin: 13px 0 20px;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -1.3px;
}
.wordmark > span {
  font-weight: 350;
  margin-left: -11px;
}
.auth-view {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: 55px 20px 30px;
  background: radial-gradient(ellipse at 50% 30%, #edf2e3, #f7f8f2 60%);
}
.auth-card {
  width: 420px;
  max-width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  margin-top: 45px;
  padding: 35px;
  box-shadow: 0 10px 50px #33402005;
}
.auth-card .eyebrow {
  font-size: 7px;
  letter-spacing: 1.3px;
}
.auth-card h1 {
  font-size: 31px;
  font-weight: 500;
  letter-spacing: -1.1px;
  margin: 18px 0 13px;
}
.auth-card > p {
  color: #8b947f;
  font-size: 12px;
  line-height: 1.9;
}
.auth-card form {
  margin-top: 25px;
}
.auth-card form > .primary {
  width: 100%;
  justify-content: space-between;
  margin-top: 22px;
}
.auth-card .auth-note {
  font-size: 10px;
  border-top: 1px solid var(--line);
  padding-top: 21px;
  margin-top: 25px;
  margin-bottom: 0;
}
.auth-card > a {
  display: block;
  font-size: 12px;
  margin-top: 18px;
  color: #789552;
  text-align: center;
}
.auth-footer {
  margin-top: 25px;
  font-size: 11px;
  color: #a0aa92;
}
.messenger-shell {
  display: grid;
  grid-template-columns: 76px 330px minmax(0, 1fr);
  height: 100dvh;
  overflow: hidden;
}
.rail {
  background: #223229;
  color: #b6c4a8;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 26px 12px 18px;
  gap: 13px;
}
.rail-logo {
  margin: 0 0 32px;
}
.rail-button {
  border: 0;
  background: none;
  width: 48px;
  height: 45px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #a8b89b;
  position: relative;
}
.rail-button:hover {
  background: #30432e;
}
.rail-button.selected {
  background: #384d30;
  color: var(--accent);
}
.rail-badge {
  position: absolute;
  right: 3px;
  top: 1px;
  min-width: 15px;
  padding: 2px 4px;
  border-radius: 10px;
  font-size: 8px;
  color: #263b20;
  background: var(--accent);
  border: 2px solid #223229;
}
.rail-bottom {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 13px;
  align-items: center;
}
.profile-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #61734b;
  color: #e9f3dd;
  font-size: 14px;
  border: 1px solid #81966b;
}
.chat-list-panel {
  background: #fbfcf8;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
}
.workspace-heading {
  padding: 29px 25px 23px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.workspace-heading h1 {
  font-size: 25px;
  letter-spacing: -0.9px;
  font-weight: 550;
  margin: 0;
}
.chat-search {
  margin: 0 20px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  background: #f0f3e9;
  border: 1px solid #eaf0df;
  border-radius: 9px;
  color: #99a58b;
}
.chat-search > .icon,
.chat-search > span .icon {
  width: 16px;
  height: 16px;
}
.chat-search input {
  border: 0;
  background: none;
  font-size: 11px;
  padding: 11px 0;
  min-height: 39px;
  outline: none;
}
.chat-search button {
  border: 0;
  background: none;
  padding: 3px;
  color: #8b9d78;
}
.chat-search button .icon {
  width: 15px;
  height: 15px;
}
.list-tabs {
  display: flex;
  gap: 6px;
  padding: 0 20px 17px;
}
.list-tabs button {
  border: 0;
  background: none;
  padding: 7px 10px;
  font-size: 10px;
  color: #9ba58e;
  border-radius: 7px;
  white-space: nowrap;
}
.list-tabs .active {
  background: #e7efd9;
  color: #6a854c;
}
.conversation-list {
  overflow: auto;
  min-height: 0;
  flex: 1;
  padding: 0 10px 15px;
}
.conversation-row {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 15px 12px;
  border: 0;
  text-align: left;
  border-radius: 11px;
  background: none;
  margin-bottom: 4px;
}
.conversation-row:hover {
  background: #f0f4e8;
}
.conversation-row.active {
  background: #eaf1df;
}
.avatar {
  width: 43px;
  height: 43px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
  font-weight: 500;
  background: #e0e9d1;
  color: #687f4c;
  position: relative;
  letter-spacing: -0.5px;
}
.avatar.group {
  border-radius: 13px;
  background: #e8dfcb;
  color: #9a8966;
}
.avatar.online:after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 1px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8ca65c;
  border: 2px solid #fbfcf8;
}
.conversation-body {
  min-width: 0;
  flex: 1;
}
.conversation-first-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
}
.conversation-first-line strong {
  font-size: 12px;
  letter-spacing: -0.15px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.conversation-first-line time {
  font-size: 9px;
  color: #9da88f;
  margin-left: auto;
  flex-shrink: 0;
}
.conversation-preview {
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 15px;
}
.conversation-preview > span:first-child {
  font-size: 10px;
  color: #98a28b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}
.conversation-preview > .icon {
  width: 13px;
  height: 13px;
  color: #a3b08e;
}
.unread-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #a7c87a;
  font-size: 9px;
  color: #fff;
  padding: 0 4px;
  flex-shrink: 0;
}
.row-pin {
  position: absolute;
  right: 13px;
  bottom: 5px;
  color: #a4b091;
}
.row-pin .icon {
  width: 10px;
  height: 10px;
}
.list-empty {
  text-align: center;
  font-size: 11px;
  color: #a0aa94;
  line-height: 1.9;
  padding: 25px 20px;
  flex: 1;
}
.connection-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  border-top: 1px solid var(--line);
  padding: 11px 21px;
  font-size: 9px;
  color: #a2ac95;
  height: 44px;
  flex-shrink: 0;
}
.connection-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #b8b79e;
}
.connection-dot.online {
  background: #83a65e;
}
.connection-dot.offline {
  background: #c28c71;
}
.connection-bar button {
  background: none;
  border: 0;
  margin-left: auto;
  color: #a0ad8c;
  padding: 4px;
}
.connection-bar .icon {
  width: 12px;
  height: 12px;
}
.conversation-panel {
  position: relative;
  min-width: 0;
  min-height: 0;
  background: #f4f6ee;
  overflow: hidden;
}
.chat-empty {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 30px;
}
.empty-art {
  height: 120px;
  width: 120px;
  border-radius: 38px;
  background: #e7eddc;
  display: grid;
  place-items: center;
  position: relative;
  margin-bottom: 31px;
  transform: rotate(-7deg);
}
.empty-art .icon {
  height: 50px;
  width: 50px;
  stroke-width: 1;
  color: #8b9f73;
}
.empty-art i {
  font-size: 45px;
  position: absolute;
  right: -14px;
  top: -18px;
  color: #a9c780;
  font-style: normal;
}
.chat-empty .eyebrow {
  font-size: 7px;
  letter-spacing: 1.4px;
}
.chat-empty h2 {
  font-size: 33px;
  letter-spacing: -1.3px;
  font-weight: 480;
  margin: 16px 0;
}
.chat-empty > p {
  font-size: 12px;
  line-height: 1.9;
  color: #929e82;
}
.chat-empty > .button {
  margin-top: 12px;
}
.empty-footnote {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-top: 38px;
  font-size: 9px;
  color: #abb49e;
}
.empty-footnote .icon {
  width: 12px;
  height: 12px;
}
.active-chat {
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 19px 26px;
  background: #fbfcf8;
  border-bottom: 1px solid var(--line);
  min-height: 81px;
  flex-shrink: 0;
}
.chat-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  background: none;
  border: 0;
  text-align: left;
  padding: 0;
  min-width: 0;
}
.chat-identity > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}
.chat-identity strong {
  font-size: 13px;
  letter-spacing: -0.1px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chat-identity small {
  font-size: 10px;
  color: #9ba88d;
  white-space: nowrap;
}
.header-actions {
  margin-left: auto;
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.message-scroll {
  padding: 28px 40px 15px;
  overflow: auto;
  min-height: 0;
  flex: 1;
  scroll-behavior: auto;
  overscroll-behavior: contain;
  background-image: radial-gradient(#8ba16b10 0.7px, transparent 0.7px);
  background-size: 16px 16px;
}
.message-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 1050px;
  margin: 0 auto;
}
.date-divider {
  text-align: center;
  font-size: 9px;
  color: #9daa8f;
  align-self: center;
  background: #e8eedf;
  padding: 5px 11px;
  border-radius: 13px;
  margin: 15px 0 12px;
}
.message {
  align-self: flex-start;
  max-width: min(78%, 600px);
  display: flex;
  flex-direction: column;
  position: relative;
  gap: 5px;
  scroll-margin: 30px;
}
.message.own {
  align-self: flex-end;
}
.bubble {
  padding: 12px 14px 8px;
  background: #fff;
  border: 1px solid #e9edde;
  border-radius: 13px 13px 13px 3px;
  min-width: 100px;
  box-shadow: 0 2px 3px #33402002;
}
.own .bubble {
  background: #e5efcf;
  border-color: #dfe9ca;
  border-radius: 13px 13px 3px 13px;
}
.message-author {
  font-size: 10px;
  font-weight: 600;
  color: #829961;
  display: block;
  margin-bottom: 7px;
}
.message-text {
  font-size: 13px;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.message-text a {
  color: #6b8d44;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.message-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  color: #a0ad8d;
  font-size: 8px;
  margin-top: 7px;
  white-space: nowrap;
}
.message-meta .icon {
  width: 12px;
  height: 12px;
  stroke-width: 1.6;
}
.message-meta .read {
  color: #73984d;
}
.message.deleted .message-text {
  font-style: italic;
  color: #a3ad95;
  font-size: 12px;
}
.message.found .bubble {
  box-shadow: 0 0 0 3px #aacb6d88;
}
.message-actions {
  position: absolute;
  left: 100%;
  top: 3px;
  width: 25px;
  height: 27px;
  margin-left: 5px;
  border: 0;
  background: #ebf0e3;
  border-radius: 7px;
  color: #9aa78a;
  opacity: 0;
  display: grid;
  place-items: center;
}
.own .message-actions {
  right: 100%;
  left: auto;
  margin-right: 5px;
  margin-left: 0;
}
.message-actions .icon {
  width: 15px;
  height: 15px;
}
.message:hover .message-actions,
.message:focus-within .message-actions {
  opacity: 1;
}
.reply-quote {
  border: 0;
  border-left: 2px solid #a7bd83;
  background: #8ca35c0c;
  width: 100%;
  text-align: left;
  padding: 7px 10px;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 8px;
  max-width: 100%;
  color: #8b9d75;
}
.reply-quote strong {
  font-size: 10px;
  font-weight: 600;
}
.reply-quote span {
  font-size: 10px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.message-file {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 180px;
  padding: 5px 0;
}
.file-icon {
  height: 37px;
  width: 37px;
  border-radius: 9px;
  background: #edf2e3;
  color: #8aa46a;
  display: grid;
  place-items: center;
}
.own .file-icon {
  background: #d7e5bc;
}
.message-file > div:last-child {
  min-width: 0;
  flex: 1;
}
.message-file strong {
  display: block;
  font-size: 11px;
  font-weight: 550;
  max-width: 230px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.message-file small {
  display: block;
  font-size: 9px;
  color: #9aaa89;
  margin-top: 6px;
}
.message-image {
  max-width: 100%;
  max-height: 310px;
  display: block;
  border-radius: 8px;
  margin: 1px 0 7px;
}
.message audio {
  width: 260px;
  max-width: 100%;
  height: 36px;
  display: block;
  margin: 6px 0;
}
.message-caption {
  margin-top: 8px;
}
.call-message {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 12px;
  padding: 5px 0;
}
.call-message .file-icon {
  color: #8ca96b;
}
.call-message strong {
  display: block;
  font-size: 12px;
  font-weight: 550;
}
.call-message small {
  font-size: 10px;
  display: block;
  color: #9ca98c;
  margin-top: 7px;
}
.call-message .button {
  margin-top: 10px;
  font-size: 10px;
  min-height: 33px;
  padding: 8px 12px;
}
.load-older {
  display: block;
  margin: 0 auto 20px;
  border: 0;
  background: #e9efde;
  color: #94a47e;
  font-size: 10px;
  padding: 8px 13px;
  border-radius: 20px;
}
.messages-empty {
  text-align: center;
  color: #a0ae90;
  font-size: 11px;
  margin-top: 50px;
}
.typing-indicator {
  height: 24px;
  padding: 3px 40px;
  color: #9cae88;
  font-size: 10px;
  flex-shrink: 0;
}
.compose-area {
  padding: 0 27px 23px;
  flex-shrink: 0;
  background: #f4f6ee;
}
.composer-row {
  display: flex;
  gap: 7px;
  align-items: flex-end;
  padding: 9px 10px;
  background: #fff;
  border: 1px solid #e4e9da;
  border-radius: 13px;
}
.composer-row textarea {
  min-height: 38px;
  max-height: 145px;
  border: 0;
  background: none;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.6;
  padding: 9px 6px;
  outline: none;
  scrollbar-width: thin;
}
.composer-row .icon-button {
  width: 33px;
  height: 37px;
}
.send-button {
  border: 0;
  background: var(--accent);
  color: #6c8c44;
  width: 39px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 10px;
  display: grid;
  place-items: center;
}
.send-button:hover {
  background: #b8e96c;
}
.send-button .icon {
  width: 19px;
  height: 19px;
}
.compose-context,
.attachment-draft {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 15px;
  margin-bottom: 8px;
  border-radius: 10px;
  background: #e9efdd;
  color: #8ba16d;
}
.compose-context > div,
.attachment-draft > div {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  flex: 1;
}
.compose-context strong,
.attachment-draft strong {
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.compose-context div > span,
.attachment-draft small {
  font-size: 10px;
  color: #98a887;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.compose-context .icon,
.attachment-draft .icon {
  width: 17px;
  height: 17px;
}
.voice-recording {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid #ecdcd3;
  border-radius: 13px;
  padding: 12px 15px;
  font-size: 12px;
  color: #a87a65;
  min-height: 59px;
}
.voice-recording strong {
  font-size: 11px;
  font-weight: 500;
}
.voice-recording > span:nth-child(3) {
  font-variant-numeric: tabular-nums;
  margin-left: auto;
  font-size: 11px;
}
.record-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c98673;
  animation: pulse 1.5s infinite;
}
.voice-recording .button {
  min-height: 34px;
  font-size: 10px;
  padding: 7px 10px;
}
.go-latest {
  position: absolute;
  bottom: 105px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 5px;
  border: 0;
  border-radius: 20px;
  background: #dce9c5;
  color: #73914f;
  box-shadow: 0 4px 15px #45582b13;
  padding: 10px 15px;
  font-size: 10px;
  z-index: 2;
}
.go-latest .icon {
  width: 14px;
  height: 14px;
}
dialog {
  border: 1px solid #e7edde;
  border-radius: 18px;
  background: #fcfdf8;
  color: var(--ink);
  padding: 28px;
  width: 430px;
  max-width: calc(100vw - 28px);
  max-height: calc(100dvh - 50px);
  box-shadow: 0 20px 90px #18251133;
  overflow: auto;
}
dialog::backdrop {
  background: #1b2b2066;
  backdrop-filter: blur(4px);
}
.wide-dialog {
  width: 600px;
}
.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.dialog-heading h2 {
  font-size: 23px;
  font-weight: 500;
  letter-spacing: -0.7px;
  margin: 0;
}
.dialog-heading > .icon-button {
  margin: -4px -8px 0 0;
}
.dialog-heading .eyebrow {
  font-size: 7px;
  letter-spacing: 1.3px;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}
.segmented {
  display: flex;
  gap: 5px;
  background: #edf2e5;
  padding: 4px;
  border-radius: 9px;
  margin-bottom: 20px;
}
.segmented button {
  border: 0;
  background: none;
  font-size: 12px;
  padding: 9px 15px;
  border-radius: 6px;
  flex: 1;
  color: #9aab87;
}
.segmented .active {
  background: #fff;
  color: #6a884b;
  box-shadow: 0 2px 5px #41522b06;
}
.people-search {
  margin: 2px 0 12px;
  min-height: 40px;
  font-size: 12px;
}
.people-list {
  max-height: 320px;
  overflow: auto;
  margin-bottom: 22px;
}
.person-row {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  border: 0;
  background: none;
  padding: 11px 6px;
  text-align: left;
  border-radius: 9px;
}
.person-row:hover {
  background: #f0f4e7;
}
.person-row .avatar {
  width: 36px;
  height: 36px;
  font-size: 13px;
}
.person-info {
  flex: 1;
  min-width: 0;
}
.person-info strong {
  display: block;
  font-size: 12px;
  font-weight: 550;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.person-info small {
  display: block;
  font-size: 10px;
  color: #a1ae92;
  margin-top: 6px;
}
.selection-check {
  width: 19px;
  height: 19px;
  border: 1px solid #d7e2c9;
  border-radius: 6px;
  color: #789b4d;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.selection-check .icon {
  width: 13px;
  height: 13px;
}
.person-row.selected .selection-check {
  background: var(--accent);
  border-color: var(--accent);
}
.new-chat-form > .button,
#create-chat-submit {
  width: 100%;
  justify-content: space-between;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 22px 0 12px;
}
.section-heading h3 {
  font-size: 12px;
  font-weight: 550;
  margin: 0;
}
.text-button {
  background: none;
  border: 0;
  font-size: 11px;
  color: #81a155;
  padding: 5px;
}
.members-list {
  margin-bottom: 22px;
}
.member-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid #edf1e7;
}
.member-row .avatar {
  width: 33px;
  height: 33px;
  font-size: 12px;
}
.member-row .person-info strong {
  font-size: 11px;
}
.member-controls {
  display: flex;
  gap: 3px;
}
.member-controls button {
  font-size: 9px;
  border: 0;
  border-radius: 6px;
  padding: 6px 7px;
  background: #edf2e4;
  color: #9bab86;
}
.chat-preferences {
  padding: 6px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.preference {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 3px;
  width: 100%;
  border: 0;
  background: none;
  color: #8a9e73;
  font-size: 12px;
  text-align: left;
}
.preference .icon {
  width: 18px;
  height: 18px;
}
.preference:hover {
  color: #627e47;
}
.inline-form {
  display: flex;
  gap: 8px;
  align-items: center;
}
.inline-form input {
  min-width: 0;
  flex: 1;
}
.inline-form .button {
  flex-shrink: 0;
  font-size: 10px;
}
.notification-preference {
  margin-top: 20px;
}
.password-details {
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 20px;
  font-size: 12px;
  color: #7f9468;
}
.password-details summary {
  cursor: pointer;
}
.password-details form .button {
  margin-top: 18px;
}
.password-details input {
  font-size: 12px;
}
#settings-dialog > .button {
  width: 100%;
  margin-top: 15px;
}
#settings-dialog > .danger {
  margin-top: 25px;
}
#invite-create-form > .button,
#invite-result > .button {
  width: 100%;
  margin-top: 20px;
}
#invite-result {
  border-top: 1px solid var(--line);
  padding-top: 4px;
  margin-top: 23px;
}
.admin-row {
  border-bottom: 1px solid var(--line);
  padding: 15px 0;
}
.admin-row-header {
  display: flex;
  gap: 10px;
  align-items: center;
}
.admin-row .avatar {
  width: 34px;
  height: 34px;
  font-size: 13px;
}
.admin-row-actions {
  display: flex;
  gap: 8px;
  margin: 13px 0 0 44px;
}
.admin-row-actions button {
  font-size: 10px;
  border: 0;
  background: #edf2e5;
  color: #8da274;
  padding: 7px 9px;
  border-radius: 7px;
}
.admin-row-actions .disable {
  background: #f4e9e2;
  color: #b28670;
}
.search-results {
  margin-top: 18px;
  max-height: 400px;
  overflow: auto;
}
.search-result {
  display: block;
  border: 0;
  background: #f1f5e9;
  padding: 14px;
  text-align: left;
  border-radius: 9px;
  width: 100%;
  margin-bottom: 9px;
}
.search-result strong {
  font-size: 11px;
  font-weight: 550;
  color: #819c62;
}
.search-result > span {
  font-size: 12px;
  line-height: 1.7;
  display: block;
  margin: 8px 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.search-result small {
  font-size: 9px;
  color: #9eaf8c;
}
.message-menu {
  position: fixed;
  z-index: 20;
  padding: 5px;
  border: 1px solid #e4ebd9;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 5px 25px #24331514;
  min-width: 145px;
}
.message-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: none;
  font-size: 11px;
  color: #8c9f76;
  padding: 10px 12px;
  border-radius: 7px;
  width: 100%;
  text-align: left;
}
.message-menu button:hover {
  background: #f0f5e7;
}
.message-menu .icon {
  width: 15px;
  height: 15px;
}
.message-menu .delete {
  color: #b7856c;
}
.toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  background: #2c412c;
  color: #e8f4db;
  padding: 13px 20px;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.7;
  z-index: 40;
  max-width: calc(100% - 30px);
  box-shadow: 0 5px 20px #19271020;
}
.mobile-only {
  display: none;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.memory-answer {
  background: #eef4e5;
  border-radius: 12px;
  padding: 18px;
  line-height: 1.8;
  font-size: 12px;
  white-space: pre-wrap;
  margin: 22px 0;
}
.recording-card {
  border: 1px solid #e4ebd8;
  border-radius: 11px;
  padding: 17px;
  margin: 15px 0;
  display: block;
  width: 100%;
  text-align: left;
  background: #f5f8ef;
}
.recording-card strong {
  display: block;
  font-size: 13px;
  font-weight: 550;
}
.recording-card small {
  font-size: 10px;
  color: #98a98a;
  margin-top: 8px;
  display: block;
}
.recording-card p {
  font-size: 12px;
  color: #8b9e79;
  line-height: 1.7;
  margin: 12px 0 0;
}
.recording-section {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 20px;
}
.recording-section h3 {
  font-size: 13px;
  font-weight: 600;
}
.recording-section p,
.recording-section li {
  font-size: 12px;
  line-height: 1.9;
  color: #7e936d;
  white-space: pre-wrap;
}
.recording-section audio {
  width: 100%;
}
.transcript {
  max-height: 350px;
  overflow: auto;
  white-space: pre-wrap;
  font-size: 12px;
  line-height: 1.9;
  color: #8b9e79;
}
.recording-state {
  display: inline-block;
  font-size: 10px;
  padding: 6px 9px;
  background: #e9efdd;
  border-radius: 6px;
  color: #8da474;
  margin: 13px 0;
}
.failed-message {
  color: #b66d50;
  font-size: 10px;
  padding: 3px 7px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.failed-message button {
  border: 0;
  background: none;
  color: #9c714e;
  font-size: 10px;
  text-decoration: underline;
}
@keyframes pulse {
  50% {
    opacity: 0.4;
  }
}
@media (min-width: 1600px) {
  .messenger-shell {
    grid-template-columns: 86px 370px minmax(0, 1fr);
  }
  .message-scroll {
    padding: 34px 70px 20px;
  }
  .compose-area {
    padding-left: 50px;
    padding-right: 50px;
  }
  .workspace-heading {
    padding: 31px 29px 25px;
  }
  .chat-header {
    padding: 22px 35px;
  }
  .bubble {
    padding: 13px 17px 9px;
  }
  .message-text {
    font-size: 14px;
  }
}
@media (max-width: 1000px) {
  .messenger-shell {
    grid-template-columns: 66px 275px minmax(0, 1fr);
  }
  .rail {
    padding: 24px 9px;
  }
  .rail-button {
    width: 43px;
    height: 43px;
  }
  .workspace-heading {
    padding: 25px 19px 21px;
  }
  .workspace-heading h1 {
    font-size: 23px;
  }
  .chat-search {
    margin: 0 14px 15px;
  }
  .list-tabs {
    padding: 0 13px 15px;
    gap: 3px;
  }
  .list-tabs button {
    font-size: 9px;
    padding: 7px;
  }
  .conversation-list {
    padding-left: 7px;
    padding-right: 7px;
  }
  .conversation-row {
    padding: 13px 10px;
    gap: 9px;
  }
  .conversation-row .avatar {
    width: 37px;
    height: 37px;
    font-size: 14px;
  }
  .conversation-first-line strong {
    font-size: 11px;
  }
  .conversation-preview > span:first-child {
    font-size: 9px;
  }
  .message-scroll {
    padding: 24px 22px 12px;
  }
  .chat-header {
    padding: 17px 19px;
  }
  .compose-area {
    padding: 0 17px 18px;
  }
  .message {
    max-width: 85%;
  }
  .message-text {
    font-size: 12px;
  }
  .message audio {
    width: 220px;
  }
  .chat-empty h2 {
    font-size: 29px;
  }
  .chat-empty > p {
    font-size: 11px;
  }
  .header-actions {
    gap: 1px;
  }
  .chat-identity {
    gap: 9px;
  }
  .chat-identity .avatar {
    width: 36px;
    height: 36px;
  }
  .chat-identity strong {
    font-size: 12px;
  }
  .typing-indicator {
    padding-left: 23px;
  }
}
@media (max-width: 700px) {
  .messenger-shell {
    grid-template-columns: 58px minmax(0, 1fr);
  }
  .rail {
    padding: 21px 6px 16px;
    gap: 12px;
  }
  .rail-logo {
    margin-bottom: 26px;
  }
  .rail-logo img {
    width: 30px;
    height: 30px;
  }
  .rail-button {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }
  .rail .icon {
    width: 20px;
    height: 20px;
  }
  .rail-bottom {
    gap: 12px;
  }
  .profile-avatar {
    width: 30px;
    height: 30px;
    font-size: 12px;
  }
  .chat-list-panel {
    border-right: 0;
  }
  .conversation-panel {
    display: none;
  }
  .workspace-heading {
    padding: 25px 20px 23px;
  }
  .workspace-heading h1 {
    font-size: 27px;
  }
  .chat-search {
    margin: 0 16px 18px;
  }
  .chat-search input {
    font-size: 12px;
    min-height: 43px;
  }
  .list-tabs {
    padding: 0 15px 16px;
    gap: 5px;
  }
  .list-tabs button {
    font-size: 10px;
    padding: 8px 10px;
  }
  .conversation-row {
    padding: 16px 12px;
    gap: 12px;
  }
  .conversation-row .avatar {
    width: 43px;
    height: 43px;
    font-size: 16px;
  }
  .conversation-first-line strong {
    font-size: 13px;
  }
  .conversation-first-line time {
    font-size: 10px;
  }
  .conversation-preview > span:first-child {
    font-size: 11px;
  }
  .connection-bar {
    height: 47px;
    font-size: 10px;
  }
  .messenger-shell.show-conversation {
    display: block;
  }
  .show-conversation .rail,
  .show-conversation .chat-list-panel {
    display: none;
  }
  .show-conversation .conversation-panel {
    display: block;
    height: 100dvh;
  }
  .mobile-only {
    display: flex;
  }
  .chat-header {
    padding: 12px 13px;
    gap: 7px;
    min-height: 72px;
  }
  .chat-header #back-to-list {
    width: 26px;
    color: #8ca777;
  }
  .chat-identity {
    gap: 8px;
    max-width: calc(100% - 150px);
  }
  .chat-identity .avatar {
    width: 34px;
    height: 34px;
    font-size: 13px;
  }
  .chat-identity strong {
    font-size: 13px;
  }
  .chat-identity small {
    font-size: 10px;
  }
  .header-actions .icon-button {
    width: 30px;
    height: 34px;
  }
  .header-actions .icon {
    width: 19px;
    height: 19px;
  }
  .message-scroll {
    padding: 17px 16px 12px;
  }
  .message {
    max-width: 85%;
    margin-left: 0;
  }
  .bubble {
    padding: 11px 12px 8px;
  }
  .message-text {
    font-size: 14px;
    line-height: 1.6;
  }
  .message-meta {
    font-size: 9px;
  }
  .message-author {
    font-size: 11px;
  }
  .message-actions {
    opacity: 1;
    width: 22px;
    height: 23px;
    margin-left: 2px;
    top: 2px;
    background: #e7eddc80;
  }
  .own .message-actions {
    margin-right: 2px;
  }
  .message-actions .icon {
    width: 13px;
    height: 13px;
  }
  .message-file strong {
    font-size: 12px;
    max-width: 180px;
  }
  .message audio {
    width: 225px;
  }
  .message-file {
    min-width: 150px;
  }
  .compose-area {
    padding: 0 10px max(12px, env(safe-area-inset-bottom));
  }
  .composer-row {
    padding: 6px 6px;
    gap: 4px;
    border-radius: 12px;
  }
  .composer-row textarea {
    font-size: 16px;
    line-height: 1.5;
    padding: 7px 3px;
  }
  .composer-row .icon-button {
    width: 29px;
    height: 38px;
  }
  .composer-row .icon {
    width: 20px;
    height: 20px;
  }
  .send-button {
    height: 38px;
    width: 36px;
  }
  .typing-indicator {
    height: 23px;
    padding-left: 18px;
    font-size: 10px;
  }
  .compose-context,
  .attachment-draft {
    padding: 8px 11px;
  }
  .voice-recording {
    padding: 10px;
    gap: 7px;
  }
  .voice-recording strong {
    font-size: 10px;
  }
  .voice-recording .button {
    font-size: 10px;
  }
  .voice-recording > .icon-button {
    width: 28px;
  }
  .toast {
    font-size: 11px;
    bottom: 18px;
    min-width: 220px;
    text-align: center;
  }
  dialog {
    padding: 24px 22px;
    max-height: calc(100dvh - 35px);
  }
  .dialog-heading h2 {
    font-size: 22px;
  }
  .dialog-heading .eyebrow {
    font-size: 6.5px;
  }
  input,
  textarea,
  select {
    font-size: 16px;
  }
  .people-search {
    font-size: 13px;
  }
  .person-row {
    padding: 13px 5px;
  }
  .person-info strong {
    font-size: 13px;
  }
  .person-info small {
    font-size: 11px;
  }
  .auth-view {
    padding: 40px 17px;
  }
  .auth-card {
    padding: 28px 25px;
    margin-top: 35px;
    border-radius: 17px;
  }
  .auth-card h1 {
    font-size: 29px;
  }
  .auth-card > p {
    font-size: 12px;
  }
  .auth-card .eyebrow {
    font-size: 6px;
  }
  .auth-card .auth-note {
    font-size: 10px;
  }
  .auth-card form > .primary {
    min-height: 47px;
  }
  .empty-footnote {
    font-size: 9px;
  }
  .message-image {
    max-height: 270px;
  }
  .message-menu {
    max-width: calc(100vw - 20px);
  }
  .go-latest {
    bottom: 100px;
    font-size: 10px;
    white-space: nowrap;
  }
  .inline-form .button {
    min-height: 44px;
  }
  .recording-section audio {
    max-width: 100%;
  }
  .member-controls button {
    font-size: 8px;
    padding: 5px;
  }
  .admin-row-actions {
    margin-left: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
