:root {
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #263b37;
  background: #f6f8f7;
  font-size: 14px;
  font-synthesis: none;
  --green: #216e5d;
  --border: #e5ebe7;
  --muted: #7b8984;
  --dark: #133e36;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #a0d5c1;
  outline-offset: 2px;
}
input,
textarea,
select {
  width: 100%;
  border: 1px solid #dce5df;
  border-radius: 7px;
  background: white;
  color: #263b37;
  padding: 11px 12px;
  outline: none;
}
input:focus,
textarea:focus,
select:focus {
  border-color: #60a68d;
  box-shadow: 0 0 0 3px #c2e7d629;
}
textarea {
  resize: vertical;
  line-height: 1.7;
}
label {
  display: block;
  font-size: 13px;
  color: #56665f;
  margin-top: 20px;
}
label input,
label select,
label textarea {
  margin-top: 8px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 23px;
  font-weight: 650;
  letter-spacing: -0.6px;
}
h2 {
  font-size: 19px;
  font-weight: 600;
}
h3 {
  font-size: 14px;
  font-weight: 600;
}
[hidden] {
  display: none !important;
}
.muted {
  color: var(--muted);
  font-size: 12px;
}
.primary {
  border: 0;
  border-radius: 7px;
  background: var(--green);
  color: white;
  padding: 11px 20px;
  font-weight: 550;
}
.primary:hover {
  background: #185342;
}
.secondary {
  border: 1px solid #cfded5;
  background: #fff;
  border-radius: 7px;
  padding: 10px 16px;
  color: #315c4d;
}
.quiet {
  border: 0;
  background: transparent;
  color: #4e7666;
  padding: 8px;
  border-radius: 5px;
  font-size: 12px;
}
.quiet:hover {
  background: #eaf2ed;
}
.full {
  width: 100%;
}
.error {
  color: #b4493f;
  font-size: 13px;
  line-height: 1.5;
}
.brand-symbol {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border: 1px solid #699084;
  border-radius: 15px;
  font-size: 25px;
  color: #e7f2e9;
}
.brand-symbol.small {
  width: 39px;
  height: 39px;
  border-radius: 12px;
  font-size: 22px;
  margin: 0 auto 35px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 2.5px;
}
.login-screen {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #fff;
}
.login-intro {
  background: #163f37;
  color: #d4e6da;
  padding: 70px 11%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.login-intro .eyebrow {
  margin-top: 100px;
  color: #97b7a5;
}
.login-intro h1 {
  font-size: 48px;
  line-height: 1.5;
  letter-spacing: -1px;
  margin: 25px 0;
}
.login-intro > p:last-of-type {
  color: #abc4b6;
  line-height: 1.8;
}
.intro-footer {
  margin-top: auto;
  padding-top: 100px;
  font-size: 12px;
  color: #8aaa9a;
}
.login-card {
  width: min(370px, 80%);
  margin: auto;
}
.login-card h2 {
  font-size: 26px;
  margin-bottom: 12px;
}
.login-card .primary {
  width: 100%;
  margin-top: 20px;
}
.login-card .error {
  min-height: 20px;
  margin-top: 16px;
}
.workspace {
  height: 100dvh;
  display: flex;
  overflow: hidden;
}
.rail {
  width: 76px;
  flex-shrink: 0;
  background: var(--dark);
  padding: 24px 10px 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rail-button {
  width: 100%;
  border: 0;
  background: transparent;
  color: #9fbbad;
  font-size: 12px;
  padding: 13px 0;
  border-radius: 8px;
}
.rail-button:hover,
.rail-button.selected {
  background: #2b5548;
  color: white;
}
.rail-bottom {
  margin-top: auto;
  display: grid;
  gap: 10px;
  justify-items: center;
}
.profile-avatar {
  width: 34px;
  height: 34px;
  border: 1px solid #97b5a1;
  border-radius: 50%;
  background: #d5dfc5;
  color: #254b3d;
}
.inbox {
  width: 306px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-right: 1px solid var(--border);
}
.inbox-header {
  padding: 29px 23px 21px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.inbox-header p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 10px;
}
.connection-dot,
.tiny-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #62a98b;
}
.connection-dot.offline {
  background: #d38a54;
}
.search-wrap {
  padding: 0 20px;
}
.search-wrap input {
  background: #f4f7f5;
  border: 0;
  font-size: 12px;
  padding: 12px;
}
.filters {
  display: flex;
  gap: 6px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.filters button {
  background: transparent;
  border: 0;
  color: #839087;
  padding: 7px 13px;
  border-radius: 5px;
  font-size: 12px;
}
.filters button.active {
  background: #e9f2eb;
  color: #24674f;
  font-weight: 600;
}
.conversation-list {
  overflow-y: auto;
  flex: 1;
  padding: 8px 10px;
}
.conversation-item {
  width: 100%;
  padding: 15px 12px;
  border: 0;
  background: transparent;
  border-radius: 8px;
  display: flex;
  gap: 11px;
  text-align: left;
  margin-bottom: 4px;
}
.conversation-item:hover {
  background: #f5f8f5;
}
.conversation-item.active {
  background: #eaf3ec;
}
.avatar {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  flex-shrink: 0;
  border-radius: 12px;
  background: #e2ece1;
  color: #537958;
  font-size: 15px;
  font-weight: 600;
}
.avatar.tone-1 {
  background: #f0e9dc;
  color: #99835c;
}
.avatar.tone-2 {
  background: #e2e9f0;
  color: #6e88a0;
}
.avatar.tone-3 {
  background: #ede4e2;
  color: #a0817b;
}
.avatar.large {
  width: 59px;
  height: 59px;
  font-size: 21px;
  border-radius: 18px;
}
.conversation-body {
  min-width: 0;
  flex: 1;
}
.conversation-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.conversation-line strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
}
.conversation-line time {
  color: #8c9991;
  font-size: 10px;
  white-space: nowrap;
}
.conversation-preview {
  font-size: 12px;
  color: #829088;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  margin-top: 8px;
  max-width: 190px;
}
.conversation-meta {
  margin-top: 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mini-label {
  font-size: 10px;
  color: #779884;
}
.unread-badge {
  background: #448e6b;
  color: #fff;
  font-size: 10px;
  border-radius: 10px;
  min-width: 17px;
  line-height: 17px;
  text-align: center;
  padding: 0 4px;
}
.inbox-footer {
  padding: 17px 23px;
  font-size: 11px;
  color: #839087;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 9px;
  align-items: center;
}
.empty-list {
  text-align: center;
  color: #8b968e;
  padding: 50px 15px;
  line-height: 1.9;
  font-size: 12px;
}
.empty-conversation {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 13px;
  background: #f5f7f4;
}
.empty-conversation h2 {
  font-size: 20px;
  font-weight: 500;
  margin-top: 8px;
}
.empty-conversation p {
  font-size: 13px;
  color: #8a958c;
}
.empty-mark {
  display: grid;
  place-items: center;
  width: 67px;
  height: 67px;
  background: #e5ede3;
  color: #739078;
  border-radius: 23px;
  font-size: 31px;
}
.empty-conversation .setup-hint {
  max-width: 330px;
  text-align: center;
  font-size: 12px;
  line-height: 1.8;
  margin-top: 8px;
}
.chat-panel {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  background: #f5f7f4;
}
.chat-header {
  height: 91px;
  padding: 20px 28px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 13px;
}
.chat-title {
  flex: 1;
  min-width: 0;
}
.chat-title h2 {
  font-size: 17px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-title p {
  color: #89958d;
  font-size: 11px;
  margin-top: 7px;
}
.conversation-toolbar {
  height: 53px;
  flex-shrink: 0;
  padding: 0 27px;
  border-bottom: 1px solid #e8ede7;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fafbf9;
}
.conversation-toolbar > div {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.mode-badge {
  font-size: 11px;
  color: #52765b;
  background: #e9f0e5;
  border-radius: 5px;
  padding: 5px 9px;
  white-space: nowrap;
}
.messages {
  flex: 1;
  overflow: auto;
  padding: 23px 30px 30px;
  scroll-behavior: smooth;
}
.load-more {
  display: block;
  text-align: center;
  margin: 8px auto 20px;
  padding: 6px 12px;
  background: transparent;
  border: 0;
  color: #83928a;
  font-size: 11px;
}
.message-row {
  display: flex;
  gap: 10px;
  margin: 22px 0;
  align-items: flex-start;
}
.message-row.out {
  flex-direction: row-reverse;
}
.message-row .avatar {
  width: 29px;
  height: 29px;
  font-size: 11px;
  border-radius: 9px;
}
.message-row.out .avatar {
  background: #d7e7db;
  color: #547a58;
}
.message-body {
  max-width: min(80%, 600px);
  min-width: 70px;
}
.message-meta {
  color: #8c988e;
  font-size: 10px;
  margin-bottom: 8px;
  display: flex;
  gap: 9px;
}
.out .message-meta {
  justify-content: flex-end;
}
.bubble {
  background: #fff;
  border: 1px solid #e5ebe2;
  border-radius: 0 11px 11px 11px;
  padding: 12px 15px;
  font-size: 13px;
  line-height: 1.85;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #3d4f42;
}
.out .bubble {
  background: #dcebdc;
  border-color: #d6e5d5;
  border-radius: 11px 0 11px 11px;
}
.bubble img {
  max-width: 100%;
  max-height: 280px;
  display: block;
  border-radius: 6px;
}
.message-status {
  font-size: 10px;
  color: #94a18e;
  text-align: right;
  margin-top: 6px;
  line-height: 1.7;
}
.message-status.problem {
  color: #b6744b;
}
.date-divider {
  font-size: 10px;
  text-align: center;
  color: #9aa492;
  margin: 8px 0 22px;
}
.composer {
  border-top: 1px solid var(--border);
  background: #fff;
  padding: 18px 26px 20px;
  flex-shrink: 0;
}
.composer-title {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #68796c;
  margin-bottom: 9px;
}
.composer textarea {
  border: 0;
  box-shadow: none;
  padding: 3px 0;
  resize: none;
  min-height: 75px;
}
.composer textarea:focus {
  box-shadow: none;
}
.composer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}
.composer-footer .primary {
  font-size: 12px;
  padding: 10px 17px;
  white-space: nowrap;
}
.composer-footer .primary span {
  margin-left: 20px;
}
.details {
  width: 265px;
  flex-shrink: 0;
  border-left: 1px solid var(--border);
  background: white;
  padding: 27px 22px;
  overflow-y: auto;
}
.details-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.details-heading h2 {
  font-size: 15px;
}
.details-heading button {
  font-size: 10px;
}
.customer-summary {
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: 29px 0 15px;
}
.customer-summary h3 {
  font-size: 16px;
  margin-top: 13px;
}
.channel-label {
  font-size: 10px;
  color: #90a08e;
  margin-top: 8px;
}
.details label {
  font-size: 11px;
  margin-top: 18px;
}
.details input,
.details select,
.details textarea {
  font-size: 12px;
  padding: 9px 10px;
}
.details .secondary {
  font-size: 12px;
  margin-top: 13px;
}
.customer-id {
  margin-top: 23px;
  border-top: 1px solid var(--border);
  padding-top: 17px;
  color: #8a978a;
  font-size: 10px;
}
.customer-id code {
  display: block;
  font-family: monospace;
  font-size: 10px;
  overflow-wrap: anywhere;
  line-height: 1.6;
  margin-top: 8px;
}
.activity {
  border-top: 1px solid var(--border);
  margin-top: 21px;
  padding-top: 20px;
}
.activity h3 {
  font-size: 12px;
  margin-bottom: 14px;
}
.audit-item {
  font-size: 11px;
  color: #879580;
  margin: 14px 0;
  line-height: 1.7;
}
.audit-item time {
  display: block;
  font-size: 10px;
  color: #a0a99a;
}
.toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  padding: 13px 22px;
  background: #244d3f;
  color: white;
  border-radius: 9px;
  box-shadow: 0 6px 24px #17372626;
  max-width: min(90%, 650px);
  font-size: 13px;
  z-index: 10;
}
.toast.failure {
  background: #8f4938;
}
dialog {
  width: min(620px, 92vw);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 25px;
  color: #263b37;
  max-height: 85dvh;
  box-shadow: 0 20px 80px #17372629;
}
dialog::backdrop {
  background: #13382c55;
  backdrop-filter: blur(3px);
}
.modal-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.modal-heading h2 {
  font-size: 18px;
}
.modal-copy {
  color: #748477;
  font-size: 13px;
  line-height: 1.9;
  margin-bottom: 16px;
}
.integration-card {
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 16px;
  margin: 14px 0;
}
.integration-card h3 {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.integration-card p {
  margin-top: 11px;
  font-size: 12px;
  line-height: 1.8;
  color: #748477;
}
.integration-card code {
  display: block;
  font-size: 12px;
  background: #f3f6f1;
  padding: 10px;
  margin-top: 12px;
  overflow-wrap: anywhere;
}
.status-pill {
  font-size: 10px;
  color: #9b7e4b;
  background: #f8f0e0;
  border-radius: 4px;
  padding: 4px 7px;
}
.status-pill.ready {
  color: #4a8058;
  background: #e8f2e4;
}
.team-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.team-row div {
  flex: 1;
}
.team-row p {
  font-size: 11px;
  color: #91a08e;
  margin-top: 5px;
}
.team-row button {
  font-size: 11px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.form-grid label {
  margin-top: 12px;
}
.modal-form .primary {
  margin-top: 18px;
}
.modal-form h3 {
  margin-top: 22px;
}
.mobile-only {
  display: none;
}
@media (min-width: 1600px) {
  .inbox {
    width: 330px;
  }
  .details {
    width: 300px;
  }
  .messages {
    padding: 25px 45px;
  }
  .chat-header {
    padding-left: 40px;
  }
  .composer {
    padding-left: 40px;
    padding-right: 40px;
  }
}
@media (max-width: 1180px) {
  .details {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 3;
    box-shadow: -12px 0 35px #203b3420;
  }
  .inbox {
    width: 280px;
  }
  .conversation-toolbar {
    padding: 0 20px;
  }
  .conversation-toolbar .muted {
    font-size: 10px;
  }
}
@media (max-width: 720px) {
  .rail {
    width: 58px;
    padding: 18px 6px;
  }
  .brand-symbol.small {
    width: 34px;
    height: 34px;
  }
  .inbox {
    width: calc(100vw - 58px);
  }
  .empty-conversation {
    display: none;
  }
  .workspace.chat-open .inbox {
    display: none;
  }
  .chat-panel {
    min-width: 0;
  }
  .chat-header {
    padding: 15px;
    height: 77px;
  }
  .chat-header .avatar {
    display: none;
  }
  .chat-header .quiet {
    font-size: 11px;
  }
  .mobile-only {
    display: block;
  }
  .conversation-toolbar {
    height: auto;
    min-height: 50px;
    padding: 7px 12px;
    gap: 6px;
  }
  .conversation-toolbar > div {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
  .messages {
    padding: 16px 12px;
  }
  .message-body {
    max-width: 85%;
  }
  .composer {
    padding: 13px;
  }
  .composer-hint {
    font-size: 10px;
  }
  .composer-footer .muted {
    font-size: 10px;
  }
  .details {
    width: 280px;
  }
  .login-screen {
    grid-template-columns: 1fr;
  }
  .login-intro {
    display: none;
  }
  .login-card {
    margin: 18vh auto;
  }
  .conversation-preview {
    max-width: 65vw;
  }
}
