[hidden],
input[type="hidden"] {
  display: none !important;
}
:root {
  --navy: #102d40;
  --teal: #008d79;
  --mint: #e7f5f0;
  --ink: #203846;
  --muted: #71808d;
  --line: #e5ebed;
  --bg: #f5f7f8;
  --white: #fff;
  --radius: 15px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font:
    14px/1.5 Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
h1,
h2,
h3,
p {
  margin: 0;
}
a {
  color: var(--teal);
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 11px 17px;
  cursor: pointer;
  white-space: normal;
  font-weight: 600;
  line-height: 1.35;
  transition: 0.16s;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
button:hover,
.button:hover {
  filter: brightness(0.96);
  transform: translateY(-1px);
}
.primary {
  background: var(--teal);
  color: #fff;
}
.secondary {
  background: #fff;
  border-color: #dce5e7;
  color: var(--ink);
}
.danger {
  background: #fff3f3;
  color: #bf4450;
  border-color: #f6dfe2;
}
.light {
  background: #fff;
  color: var(--navy);
}
.small {
  font-size: 12px;
  padding: 8px 12px;
}
.wide {
  width: 100%;
}
.icon-button {
  background: transparent;
  padding: 5px;
  color: inherit;
}
label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 17px;
}
input,
textarea,
select {
  width: 100%;
  min-width: 0;
  background: #fff;
  border: 1px solid #dce3e6;
  border-radius: 9px;
  padding: 11px 12px;
  color: var(--ink);
  outline: none;
  font-weight: 400;
}
input:focus,
textarea:focus,
select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px #008d7910;
}
textarea {
  resize: vertical;
}
label small {
  color: var(--muted);
  font-size: 11px;
}
.check {
  flex-direction: row;
  align-items: flex-start;
  gap: 9px;
  font-weight: 400;
}
.check input {
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  accent-color: var(--teal);
}
.grid-two,
.grid-three {
  display: grid;
  gap: 18px;
}
.grid-two {
  grid-template-columns: 1fr 1fr;
}
.grid-three {
  grid-template-columns: repeat(3, 1fr);
}
.form-actions,
.actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.form-actions {
  margin-top: 9px;
  justify-content: space-between;
}
.form-actions small {
  color: var(--muted);
  max-width: 260px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 29px;
  font-weight: 750;
  letter-spacing: -1.3px;
  color: var(--navy);
}
.brand > img {
  width: 43px;
  height: 43px;
}
.brand span span {
  color: var(--teal);
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 244px;
  background: #fff;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 30px 20px;
  z-index: 5;
}
.sidebar .brand {
  margin: 0 7px 40px;
}
.nav-caption {
  font-size: 9px;
  color: #9aa6ad;
  letter-spacing: 1.8px;
  margin: 0 15px 14px;
}
.sidebar nav {
  display: grid;
  gap: 6px;
}
.sidebar nav a {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 14px;
  color: #73818b;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 500;
}
.sidebar nav a.active {
  background: #e8f5ef;
  color: #087e6f;
}
.sidebar nav a:hover {
  background: #f3f8f6;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 22px 0 0;
  display: flex;
  align-items: center;
  gap: 9px;
  border-top: 1px solid var(--line);
  font-size: 11px;
}
.sidebar-bottom strong {
  display: block;
  font-weight: 600;
  max-width: 114px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sidebar-bottom small {
  display: block;
  color: var(--muted);
  font-size: 9px;
}
.sidebar-bottom form {
  margin-left: auto;
}
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--mint);
  color: var(--teal);
  font-size: 14px;
}
.workspace {
  margin-left: 244px;
  min-height: 100vh;
}
.topbar {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 23px 38px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.breadcrumb {
  font-size: 10px;
  color: #8a989f;
}
.topbar h1 {
  font-size: 23px;
  letter-spacing: -0.6px;
  margin-top: 3px;
  font-weight: 650;
}
.top-right {
  display: flex;
  align-items: center;
  gap: 24px;
}
.online-dot {
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
}
.online-dot:before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #04a882;
  border-radius: 50%;
  margin-right: 7px;
}
.company-switch {
  display: flex;
  gap: 8px;
  align-items: end;
}
.company-switch label {
  margin: 0;
  min-width: 160px;
  font-size: 9px;
}
.company-switch select {
  padding: 7px 9px;
  font-size: 11px;
}
.page-body {
  padding: 30px 38px;
  max-width: 1800px;
  margin: auto;
}
.workspace-footer {
  text-align: center;
  padding: 0 30px 23px;
  font-size: 10px;
  color: #a0abb0;
}
.welcome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(115deg, #103d44, #0a685d);
  border-radius: 17px;
  padding: 32px 35px;
  color: #fff;
  overflow: hidden;
  position: relative;
  margin-bottom: 25px;
}
.welcome .eyebrow {
  color: #a6d8c5;
  font-size: 9px;
}
.welcome h2 {
  font-size: 27px;
  letter-spacing: -0.6px;
  margin: 9px 0;
}
.welcome p {
  font-size: 12px;
  color: #c3deda;
  max-width: 380px;
  margin-bottom: 20px;
}
.welcome .button {
  font-size: 11px;
  padding: 10px 15px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.8px;
  font-weight: 600;
  color: var(--teal);
}
.welcome-art {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 16px;
  min-width: 210px;
  color: #aad6c9;
  font-size: 9px;
  padding-right: 25px;
}
.orb {
  width: 115px;
  height: 115px;
  display: grid;
  place-items: center;
  border-radius: 34px;
  transform: rotate(-12deg);
  background: #ffffff12;
  box-shadow:
    0 0 0 20px #ffffff04,
    0 0 0 42px #ffffff03;
}
.orb svg {
  width: 48px;
  height: 48px;
  transform: rotate(12deg);
  stroke: #ccf0df;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 17px;
  margin-bottom: 25px;
}
.stats article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 19px 22px;
  position: relative;
  min-height: 105px;
}
.stats small {
  color: var(--muted);
  font-size: 11px;
  display: block;
}
.stats strong {
  display: block;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -1px;
  margin-top: 6px;
}
.stat-icon {
  position: absolute;
  right: 18px;
  top: 18px;
  background: #f1f7f4;
  color: var(--teal);
  padding: 7px;
  border-radius: 9px;
}
.stat-icon svg {
  width: 16px;
  height: 16px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 23px;
  margin-bottom: 22px;
  min-width: 0;
}
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 21px;
}
.section-title h2,
.card > h2 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.2px;
}
.table-scroll {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 11px;
}
th {
  color: #91a0a8;
  background: #f8fafb;
  font-size: 10px;
  font-weight: 500;
  padding: 12px 14px;
  text-align: left;
  white-space: nowrap;
}
td {
  padding: 16px 14px;
  border-bottom: 1px solid #f0f3f4;
  vertical-align: middle;
  min-width: 85px;
}
tr:last-child td {
  border-bottom: 0;
}
.record-link {
  font-weight: 600;
  color: #2b4956;
}
.muted {
  color: var(--muted);
  font-size: 11px;
}
small.muted {
  display: block;
  margin-top: 4px;
  font-size: 10px;
}
.badge {
  display: inline-flex;
  border-radius: 6px;
  font-size: 9px;
  padding: 5px 8px;
  white-space: nowrap;
}
.badge.good {
  background: #eaf7f0;
  color: #168769;
}
.badge.bad {
  background: #fff0f1;
  color: #b4525d;
}
.badge.neutral {
  background: #f0f4f7;
  color: #7e8d9d;
}
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
}
.toolbar p {
  color: var(--muted);
  font-size: 12px;
}
.section-grid {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 24px;
}
.empty {
  padding: 35px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}
.campaign-heading {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  align-items: center;
  padding: 6px 0 26px;
}
.campaign-heading h2 {
  font-size: 24px;
  margin: 7px 0;
}
.campaign-heading p {
  color: var(--muted);
  margin-bottom: 10px;
}
.retry-bar {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.retry-bar button {
  font-size: 11px;
}
.filters {
  display: flex;
  align-items: end;
  gap: 12px;
  margin-bottom: 15px;
}
.filters label {
  margin: 0;
  min-width: 200px;
}
.filters + p {
  margin: 15px 0;
}
.pager {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}
.qr-box {
  text-align: center;
  max-width: 430px;
  margin: auto;
}
.qr-box img {
  width: 260px;
  max-width: 100%;
}
.qr-box p {
  font-size: 12px;
  color: var(--muted);
  margin: 18px 0;
}
.error-text {
  color: #b64a57;
}
.chat-layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr) 235px;
  gap: 18px;
  min-height: 620px;
}
.chat-list {
  padding: 0;
  overflow: hidden;
}
.chat-search {
  display: flex;
  gap: 7px;
  padding: 17px;
  border-bottom: 1px solid var(--line);
}
.chat-search input {
  font-size: 10px;
  padding: 10px;
  min-width: 0;
}
.chat-list-items {
  max-height: 680px;
  overflow: auto;
}
.chat-contact {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 18px 13px;
  border-bottom: 1px solid #f1f4f5;
  color: var(--ink);
}
.chat-contact > div:nth-child(2) {
  min-width: 0;
  flex: 1;
}
.chat-contact strong {
  font-size: 11px;
  font-weight: 600;
}
.chat-contact p {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 10px;
  color: var(--muted);
  margin-top: 5px;
}
.chat-contact small {
  font-size: 9px;
  color: #9aa6ad;
}
.chat-contact.selected {
  background: #eef8f4;
  border-left: 3px solid var(--teal);
  padding-left: 10px;
}
.contact-avatar {
  background: #e7f1ed;
  color: #69978c;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 10px;
  flex-shrink: 0;
}
.unread {
  border-radius: 50%;
  background: var(--teal);
  color: white;
  padding: 2px 6px;
  font-size: 8px;
}
.chat-detail {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}
.chat-header {
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.chat-header h2 {
  font-size: 14px;
}
.chat-header .muted {
  font-size: 9px;
}
.messages {
  flex: 1;
  background: #f5f8f6;
  padding: 24px;
  overflow: auto;
  height: 410px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.bubble {
  max-width: 85%;
  padding: 13px 16px;
  background: #fff;
  border: 1px solid #e6eee8;
  border-radius: 12px 12px 12px 2px;
  align-self: flex-start;
}
.bubble p {
  font-size: 12px;
  overflow-wrap: anywhere;
}
.bubble small {
  display: block;
  font-size: 8px;
  color: #8a9c94;
  margin-top: 8px;
}
.bubble .badge {
  font-size: 8px;
  margin-top: 5px;
}
.bubble.out {
  align-self: flex-end;
  background: #dff4e9;
  border-color: #d5e9dc;
  border-radius: 12px 12px 2px 12px;
}
.composer {
  padding: 18px;
}
.composer select {
  font-size: 11px;
  padding: 8px;
}
.composer label {
  margin-bottom: 10px;
}
.composer .form-actions small {
  font-size: 9px;
}
.composer button {
  font-size: 11px;
}
.chat-tools {
  padding: 18px;
  height: fit-content;
}
.chat-tools h2 {
  margin-bottom: 23px;
}
.chat-tools select {
  font-size: 11px;
}
.chat-tools button {
  font-size: 10px;
}
.chat-tools hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 23px 0;
}
.chat-empty {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--muted);
  gap: 16px;
}
.chat-empty svg {
  width: 54px;
  height: 54px;
  color: var(--teal);
  opacity: 0.5;
}
.chat-empty h2 {
  color: var(--ink);
  font-size: 20px;
}
.chat-empty p {
  font-size: 12px;
}
.login-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.login-story {
  background: linear-gradient(145deg, #103745 0%, #104a48 60%, #117360 100%);
  color: #fff;
  padding: 43px 10%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.login-story:after {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  border: 1px solid #ffffff08;
  border-radius: 50%;
  bottom: -180px;
  right: -200px;
  box-shadow:
    0 0 0 60px #ffffff03,
    0 0 0 120px #ffffff02;
}
.login-story .brand {
  color: #fff;
  letter-spacing: -1px;
}
.login-story .brand span span {
  color: #8ce0be;
}
.login-story .brand img {
  width: 40px;
  height: 40px;
}
.story-main {
  margin: auto 0;
  padding: 80px 0;
}
.login-story .eyebrow {
  color: #a6d4c6;
  font-size: 9px;
}
.login-story h1 {
  font-size: clamp(39px, 4.3vw, 68px);
  line-height: 1.12;
  letter-spacing: -2.5px;
  font-weight: 600;
  margin: 25px 0;
}
.login-story p {
  font-size: 12px;
  line-height: 1.9;
  color: #b0d0c8;
}
.story-signal {
  display: flex;
  gap: 5px;
  align-items: center;
  margin-top: 43px;
  height: 34px;
}
.story-signal i {
  display: block;
  background: #79d7b6;
  width: 3px;
  border-radius: 4px;
  height: 20px;
}
.story-signal i:nth-child(2n) {
  height: 30px;
}
.story-signal i:nth-child(3n) {
  height: 13px;
}
.story-signal span {
  font-size: 10px;
  margin-left: 15px;
  color: #b9d9ce;
}
.login-story > small {
  font-size: 10px;
  color: #8fb6aa;
}
.login-form {
  background: #fafbfb;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 50px;
  position: relative;
}
.login-box {
  width: 100%;
  max-width: 370px;
}
.small-brand {
  color: var(--teal);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.6px;
}
.login-box h2 {
  font-size: 28px;
  letter-spacing: -0.8px;
  margin-top: 16px;
  font-weight: 650;
}
.login-box > p {
  font-size: 12px;
  color: var(--muted);
  margin: 12px 0 35px;
}
.login-box label {
  font-size: 11px;
  margin-bottom: 21px;
}
.login-box input {
  padding: 14px;
  background: #fff;
}
.login-box .primary {
  margin-top: 8px;
  padding: 14px;
  justify-content: space-between;
}
.login-help {
  border-top: 1px solid var(--line);
  padding-top: 23px;
  margin-top: 29px;
  color: #95a0a7;
  font-size: 10px;
  text-align: center;
}
.login-form footer {
  position: absolute;
  bottom: 30px;
  font-size: 10px;
  color: #a0abb1;
}
@media (min-width: 1600px) {
  .page-body {
    padding: 40px 50px;
  }
  .topbar {
    padding-left: 50px;
    padding-right: 50px;
  }
}
@media (max-width: 1250px) {
  .sidebar {
    width: 210px;
    padding: 28px 15px;
  }
  .workspace {
    margin-left: 210px;
  }
  .page-body {
    padding: 25px;
  }
  .topbar {
    padding: 20px 25px;
  }
  .online-dot {
    display: none;
  }
  .chat-layout {
    grid-template-columns: 240px minmax(0, 1fr);
  }
  .chat-tools {
    grid-column: 2;
  }
  .chat-list {
    grid-row: span 2;
  }
  .section-grid {
    grid-template-columns: 290px minmax(0, 1fr);
  }
  .campaign-heading {
    flex-direction: column;
    align-items: flex-start;
  }
  .welcome-art {
    min-width: 160px;
    padding: 0;
  }
  .stats article {
    padding: 18px;
  }
  .stat-icon {
    display: none;
  }
}
@media (max-width: 800px) {
  .sidebar {
    position: static;
    width: 100%;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
    border-right: 0;
  }
  .sidebar .brand {
    margin: 0;
    font-size: 24px;
  }
  .sidebar .brand img {
    width: 33px;
    height: 33px;
  }
  .sidebar .nav-caption,
  .sidebar-bottom {
    display: none;
  }
  .sidebar nav {
    display: flex;
    overflow: auto;
    gap: 5px;
    margin-top: 14px;
  }
  .sidebar nav a {
    padding: 9px 12px;
    font-size: 10px;
    white-space: nowrap;
  }
  .sidebar nav svg {
    display: none;
  }
  .workspace {
    margin: 0;
  }
  .topbar {
    padding: 20px;
    align-items: flex-start;
  }
  .topbar h1 {
    font-size: 20px;
  }
  .top-right {
    gap: 0;
  }
  .company-switch label {
    min-width: 110px;
  }
  .company-switch select {
    max-width: 140px;
  }
  .company-switch button {
    display: none;
  }
  .page-body {
    padding: 20px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .stats article {
    padding: 15px;
    min-height: 90px;
  }
  .stats strong {
    font-size: 26px;
  }
  .welcome {
    padding: 25px;
  }
  .welcome h2 {
    font-size: 24px;
  }
  .welcome-art {
    display: none;
  }
  .card {
    padding: 18px;
  }
  .section-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .grid-three {
    gap: 10px;
  }
  .chat-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .chat-list {
    max-height: 260px;
    grid-row: auto;
  }
  .chat-list-items {
    max-height: 190px;
  }
  .chat-tools {
    grid-column: auto;
  }
  .chat-empty {
    grid-column: auto;
    min-height: 250px;
  }
  .chat-detail {
    min-height: 550px;
  }
  .messages {
    height: 350px;
  }
  .login-layout {
    grid-template-columns: 1fr;
  }
  .login-story {
    padding: 25px 30px;
  }
  .story-main {
    padding: 35px 0;
  }
  .login-story h1 {
    font-size: 35px;
    letter-spacing: -1.5px;
  }
  .login-story p,
  .story-signal,
  .login-story > small {
    display: none;
  }
  .login-form {
    padding: 40px 25px 75px;
    min-height: 520px;
  }
  .login-box h2 {
    font-size: 25px;
  }
  .toolbar {
    align-items: flex-start;
  }
  .filters {
    flex-wrap: wrap;
  }
  .grid-two {
    grid-template-columns: 1fr;
  }
  .filters label {
    min-width: 170px;
  }
  .form-actions small {
    max-width: 180px;
  }
  .campaign-heading h2 {
    font-size: 22px;
  }
}

.topbar > div:first-child {
  min-width: 200px;
}
.section-title h2 {
  white-space: nowrap;
}
.badge {
  width: max-content;
}
.welcome > div:first-child {
  min-width: 400px;
}
.welcome .button {
  width: max-content;
}
@media (max-width: 800px) {
  .topbar {
    flex-wrap: wrap;
  }
  .welcome > div:first-child {
    min-width: 0;
  }
}
.setup-page{max-width:760px;margin:45px auto;padding:0 20px}.setup-page>.brand{margin-bottom:25px}.setup-page .card{padding:34px}.setup-page h1{font-size:27px;margin:12px 0}.setup-page h2{font-size:16px;margin:25px 0 17px}.setup-page p{margin:15px 0;line-height:1.8}.setup-checks{display:flex;flex-wrap:wrap;gap:7px;margin:25px 0}.setup-error{padding:15px;background:#fff0f1;color:#a84050;border-radius:8px}.setup-success .button{margin:10px 8px 0 0}.form-subtitle{font-size:13px;margin:20px 0 14px}.card hr{border:0;border-top:1px solid var(--line);margin:18px 0}
