:root {
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  color: #233b40;
  background: #f5f7f8;
  font-size: 14px;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
aside {
  width: 245px;
  background: #142f31;
  color: #adc3c3;
  position: fixed;
  inset: 0 auto 0 0;
  padding: 34px 22px;
  z-index: 2;
}
.brand {
  display: flex;
  align-items: center;
  color: #fff;
  font-size: 29px;
  letter-spacing: -1.2px;
  font-weight: 720;
  text-decoration: none;
}
.mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: #a7e6c8;
  color: #173b35;
  border-radius: 10px;
  margin-right: 11px;
  font-size: 30px;
}
.brand-dot {
  color: #a7e6c8;
}
.eyebrow {
  font-size: 10px !important;
  font-weight: 650;
  letter-spacing: 1.5px;
  color: #73868b;
}
aside > .eyebrow {
  font-size: 9px !important;
  color: #829e9e;
  margin: 27px 0 33px;
}
nav {
  display: grid;
  gap: 6px;
}
nav a {
  display: flex;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  border-radius: 8px;
  padding: 13px 12px;
  font-size: 16px;
}
nav a span {
  font-size: 12px;
}
nav a:hover {
  background: #203f40;
  color: white;
}
nav a.active {
  background: #285044;
  color: #c1f3d7;
}
.sidebar-foot {
  position: absolute;
  bottom: 25px;
  font-size: 11px;
}
.sidebar-foot p {
  font-size: 10px;
  color: #829e9e;
}
.connection-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #a7e6c8;
  margin-right: 8px;
}
main {
  margin-left: 245px;
  padding: 36px 42px;
  max-width: 1690px;
}
header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 30px;
}
h1 {
  font-size: 30px;
  letter-spacing: -1px;
  margin: 10px 0 9px;
  font-weight: 650;
}
h2 {
  font-size: 18px;
  margin: 0 0 9px;
  letter-spacing: -0.35px;
}
h3 {
  font-size: 14px;
  margin: 0 0 8px;
}
p {
  line-height: 1.65;
  color: #75868a;
  margin: 8px 0 15px;
}
header p {
  font-size: 12px;
}
.badge {
  display: inline-block;
  white-space: nowrap;
  background: #e8f5ed;
  color: #246849;
  padding: 6px 10px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.5px;
}
.badge.neutral {
  background: #eaf0f2;
  color: #637980;
}
.badge.warning {
  background: #fff0d9;
  color: #916717;
}
.badge.danger {
  background: #fde9e7;
  color: #a3453a;
}
.panel,
.metric,
.card {
  background: white;
  border: 1px solid #e1e8e9;
  border-radius: 12px;
  padding: 24px;
}
.panel {
  margin-bottom: 20px;
}
.section-head {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.section-head p {
  font-size: 12px;
  margin-bottom: 0;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  margin-bottom: 22px;
}
.metric {
  padding: 20px;
}
.metric small {
  font-size: 10px;
  letter-spacing: 1px;
  color: #75888d;
}
.metric strong {
  display: block;
  font-size: 33px;
  margin: 15px 0 6px;
  font-weight: 600;
}
.metric p {
  font-size: 11px;
  margin: 0;
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.card h3 {
  font-size: 16px;
}
.card p {
  font-size: 12px;
}
.card-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}
.card .actions {
  margin-top: 20px;
}
.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
button {
  background: #25745e;
  color: white;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 10px 15px;
  font: inherit;
  font-size: 12px;
  font-weight: 550;
  cursor: pointer;
  justify-self: start;
}
button:hover {
  background: #1d604d;
}
button.secondary {
  background: #fff;
  color: #48636a;
  border-color: #dce5e7;
}
button.secondary:hover {
  background: #f2f7f5;
}
button.danger {
  background: #fff5f3;
  color: #a33d33;
  border-color: #f3d4ce;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #8bc9b2;
  outline-offset: 3px;
}
input,
select,
textarea {
  width: 100%;
  min-width: 0;
  background: #fbfcfc;
  border: 1px solid #dce5e7;
  border-radius: 7px;
  padding: 11px 12px;
  font: inherit;
  font-size: 13px;
  color: #233b40;
}
select {
  appearance: none;
  padding-right: 38px;
  background-image: linear-gradient(45deg, transparent 50%, #5a7076 50%),
    linear-gradient(135deg, #5a7076 50%, transparent 50%);
  background-position:
    right 19px center,
    right 14px center;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  text-overflow: ellipsis;
  cursor: pointer;
}
textarea {
  resize: vertical;
  min-height: 90px;
}
label {
  display: grid;
  gap: 7px;
  font-size: 12px;
  color: #5a7076;
}
form {
  display: grid;
  gap: 17px;
}
label.check {
  display: flex;
  align-items: flex-start;
  line-height: 1.6;
}
input[type='checkbox'] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin: 2px 0;
}
form .hint {
  margin: 0;
  font-size: 11px;
}
.workspace-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.workspace-toolbar label {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 9px;
  letter-spacing: 1px;
}
.workspace-toolbar select {
  width: 220px;
  background-color: white;
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 12px;
}
th {
  font-size: 9px;
  letter-spacing: 0.8px;
  color: #839397;
  font-weight: 600;
  text-transform: uppercase;
  white-space: nowrap;
}
th,
td {
  padding: 15px 11px;
  border-bottom: 1px solid #edf1f2;
}
td {
  max-width: 240px;
  overflow-wrap: anywhere;
}
td:first-child,
th:first-child {
  padding-left: 0;
}
td:last-child,
th:last-child {
  padding-right: 0;
}
tbody tr:last-child td {
  border: 0;
}
.empty {
  text-align: center;
  padding: 42px 15px;
  color: #829397;
  font-size: 13px;
  line-height: 1.8;
}
.empty strong {
  display: block;
  color: #49646b;
  margin-bottom: 7px;
  font-size: 15px;
}
.login {
  max-width: 490px;
  margin: 60px auto;
}
.login h2 {
  font-size: 25px;
}
.login > p {
  font-size: 13px;
}
.section-icon {
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  border-radius: 12px;
  background: #e5f3ec;
  color: #25745e;
  font-size: 25px;
  margin-bottom: 25px;
}
.login button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 13px 15px;
}
.login .hint {
  border-top: 1px solid #edf1f2;
  padding-top: 20px;
  margin-top: 25px;
  font-size: 11px;
}
#notice {
  padding: 13px 17px;
  background: #e5f3eb;
  border: 1px solid #cce5d7;
  border-radius: 8px;
  color: #306a50;
  font-size: 13px;
  margin: 0 0 20px;
}
#notice.error {
  background: #fdf0ed;
  color: #9c4034;
  border-color: #efd5cf;
}
dialog {
  border: 1px solid #dce5e7;
  border-radius: 14px;
  padding: 28px;
  width: min(560px, calc(100% - 28px));
  max-height: 90vh;
  color: inherit;
  box-shadow: 0 20px 100px #142f3133;
}
dialog::backdrop {
  background: #102a2d77;
  backdrop-filter: blur(3px);
}
.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.dialog-heading h2 {
  margin: 0;
}
.icon-button {
  font-size: 20px !important;
  padding: 2px 10px;
}
dialog > p {
  font-size: 12px;
  margin: 14px 0 22px;
}
code {
  display: block;
  padding: 16px;
  background: #eff6f2;
  border: 1px solid #d9e9df;
  border-radius: 7px;
  overflow-wrap: anywhere;
  font-size: 12px;
  margin: 15px 0 22px;
}
.inbox-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
}
.conversation-list {
  display: grid;
  gap: 8px;
  align-content: start;
}
.conversation-list button {
  width: 100%;
  text-align: left;
  padding: 15px;
  background: #fff;
  border: 1px solid #e1e8e9;
  color: #35535a;
}
.conversation-list button.selected {
  background: #eaf5ef;
  border-color: #9acdb4;
}
.conversation-list small {
  display: block;
  color: #809398;
  font-size: 10px;
  margin-top: 7px;
}
.thread {
  min-height: 350px;
  max-height: 480px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0;
}
.bubble {
  max-width: 85%;
  padding: 13px 16px;
  border-radius: 12px;
  background: #eff3f4;
  align-self: flex-start;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.5;
}
.bubble.outbound {
  background: #e4f2e9;
  align-self: flex-end;
}
.bubble small {
  display: block;
  font-size: 9px;
  color: #7b9290;
  margin-top: 7px;
}
.setting-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid #edf1f2;
  padding: 18px 0;
  font-size: 13px;
}
.setting-row:last-child {
  border: 0;
}
.muted {
  color: #84969a;
  font-size: 11px;
}
.form-panel {
  max-width: 720px;
}
.pagination {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}
.helper {
  background: #f3f8f5;
  padding: 15px;
  border-radius: 8px;
  font-size: 12px;
  color: #5d7770;
  line-height: 1.7;
  margin-bottom: 20px;
}
[hidden] {
  display: none !important;
}
@media (min-width: 1400px) {
  main {
    padding: 44px 58px;
  }
}
@media (max-width: 1050px) {
  aside {
    width: 210px;
    padding: 30px 16px;
  }
  main {
    margin-left: 210px;
    padding: 26px;
  }
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .inbox-grid {
    grid-template-columns: 220px minmax(0, 1fr);
  }
}
@media (max-width: 720px) {
  aside {
    position: static;
    width: 100%;
    padding: 18px;
  }
  .brand {
    font-size: 25px;
  }
  aside > .eyebrow,
  .sidebar-foot {
    display: none;
  }
  nav {
    display: flex;
    overflow: auto;
    margin-top: 20px;
    gap: 5px;
    padding-bottom: 3px;
  }
  nav a {
    flex-shrink: 0;
    padding: 10px;
  }
  nav a span {
    font-size: 11px;
  }
  main {
    margin: 0;
    padding: 22px 16px;
  }
  header {
    align-items: flex-start;
    margin-bottom: 25px;
  }
  h1 {
    font-size: 25px;
  }
  header .badge {
    font-size: 8px;
    margin-top: 3px;
  }
  header p {
    font-size: 11px;
  }
  .metrics {
    gap: 10px;
  }
  .metric {
    padding: 16px;
  }
  .metric strong {
    font-size: 28px;
  }
  .panel,
  .card {
    padding: 19px;
  }
  .workspace-toolbar label {
    display: grid;
    gap: 6px;
  }
  .workspace-toolbar select {
    width: 195px;
  }
  .inbox-grid {
    grid-template-columns: 1fr;
  }
  .conversation-list {
    max-height: 220px;
    overflow: auto;
  }
  .login {
    margin: 25px auto;
  }
  .section-head {
    align-items: flex-start;
  }
  .section-head button {
    flex-shrink: 0;
  }
  .setting-row {
    font-size: 12px;
  }
  .badge {
    white-space: normal;
  }
  .table-wrap table {
    min-width: 640px;
  }
  td .badge,
  td:first-child {
    white-space: nowrap;
  }
}
form > div {
  display: grid;
  gap: 17px;
}
select:disabled {
  opacity: 0.7;
}
nav a {
  white-space: nowrap;
}
.inbox-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 14px;
}
.quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}
.quick-replies button {
  padding: 6px 11px;
  font-size: 12px;
  min-height: 0;
}
.simulate-form {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed #cfdcdb;
}
.login form + form {
  margin-top: 0;
}
.link-button,
.login .link-button {
  background: none;
  border: 0;
  color: #1f6f5c;
  padding: 0;
  width: auto;
  display: inline;
  font-size: 11px;
  text-decoration: underline;
  cursor: pointer;
  min-height: 0;
}
.user-projects {
  display: grid;
  gap: 6px;
  margin: 4px 0 6px;
}
.user-projects legend {
  font-size: 12px;
  color: #5d7472;
  margin-bottom: 4px;
}
fieldset.user-projects {
  border: 1px solid #e3eaea;
  border-radius: 8px;
  padding: 10px 12px;
}
.account-form {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #edf1f2;
}
.demo-accounts {
  display: grid;
  gap: 8px;
  margin: 20px 0 0;
  padding: 14px;
  border: 1px dashed #b9d3cc;
  border-radius: 10px;
  background: #f3f9f6;
}
.demo-accounts > strong {
  font-size: 13px;
}
.demo-accounts > span {
  font-size: 12px;
  color: #5d7472;
}
.login .demo-account {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3px;
  justify-content: stretch;
  text-align: left;
  background: #fff;
  color: #233b40;
  border: 1px solid #d7e5e1;
  padding: 10px 12px;
  font-weight: 400;
}
.login .demo-account:hover {
  border-color: #1f6f5c;
}
.demo-account b {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1f6f5c;
}
.demo-account span,
.demo-account code {
  font-size: 12px;
  overflow-wrap: anywhere;
}
.demo-account code {
  display: block;
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  color: #233b40;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.webhook-list {
  display: grid;
  gap: 12px;
}
.webhook-url {
  overflow-wrap: anywhere;
}
.webhook-card .actions {
  flex-wrap: wrap;
}
.webhook-log {
  margin-top: 10px;
}
.webhook-log .setting-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 12px;
}
.webhook-log .setting-row .actions {
  justify-content: flex-end;
  align-items: center;
  margin: 0;
}
.webhook-log .setting-row button {
  padding: 6px 11px;
  font-size: 12px;
}
@media (max-width: 640px) {
  .webhook-log .setting-row {
    grid-template-columns: 1fr;
  }
  .webhook-log .setting-row .actions {
    justify-content: flex-start;
  }
}
.webhook-add {
  border: 1px solid #e3eaea;
  border-radius: 8px;
  padding: 12px 14px;
  display: grid;
  gap: 10px;
  margin-top: 16px;
}
.webhook-events {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 4px 12px;
}

.maintenance .setting-row {
  gap: 16px;
  align-items: flex-start;
}
.maintenance .setting-row > strong,
.maintenance .setting-row > .result,
.maintenance .setting-row > .backup-list {
  text-align: right;
  overflow-wrap: anywhere;
  max-width: 70%;
}
.maintenance .result .badge {
  margin-right: 4px;
}
.maintenance .error-text {
  color: #b42318;
  font-size: 13px;
}
@media (max-width: 640px) {
  .maintenance .setting-row {
    flex-direction: column;
    gap: 4px;
  }
  .maintenance .setting-row > strong,
  .maintenance .setting-row > .result,
  .maintenance .setting-row > .backup-list {
    text-align: left;
    max-width: 100%;
  }
}
