:root {
  --ink: #172c29;
  --muted: #75827d;
  --green: #19664f;
  --line: #e1e7e2;
  --paper: #f6f8f5;
  --lime: #d5eaaa;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font:
    14px/1.55 system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--paper);
}
a {
  color: var(--green);
  text-decoration: none;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  cursor: pointer;
  background: var(--green);
  color: white;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 10px 17px;
  font-weight: 600;
}
button:hover {
  filter: brightness(0.94);
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button.secondary {
  background: white;
  color: var(--ink);
  border-color: var(--line);
}
button.link {
  padding: 0;
  background: none;
  color: var(--green);
}
button.icon {
  padding: 0 10px;
  background: transparent;
  color: var(--ink);
  font-size: 27px;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #cbd6ce;
  border-radius: 6px;
  background: white;
  padding: 10px 12px;
  color: var(--ink);
}
textarea {
  min-height: 100px;
  resize: vertical;
}
input[type="checkbox"] {
  width: auto;
}
label {
  display: block;
  margin: 15px 0 5px;
  font-weight: 550;
}
label small {
  font-weight: 400;
}
small,
.muted {
  color: var(--muted);
}
small {
  display: block;
}
h1 {
  font-size: 34px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -1px;
  margin: 9px 0;
}
h2 {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 10px;
}
h3 {
  font-size: 16px;
  margin: 0;
}
p {
  margin: 8px 0 18px;
}
aside {
  width: 246px;
  position: fixed;
  inset: 0 auto 0 0;
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 30px 22px;
  display: flex;
  flex-direction: column;
}
.brand {
  font-size: 32px;
  font-weight: 750;
  letter-spacing: -1.3px;
  color: var(--green);
  display: block;
}
.brand span {
  display: block;
  font-size: 8px;
  letter-spacing: 2px;
  margin: 0 0 0 37px;
}
.workspace {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 42px 0 30px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.workspace strong {
  font-size: 12px;
}
.workspace small {
  font-size: 10px;
}
.avatar {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: #e6eee4;
  color: #43633b;
  width: 34px;
  height: 34px;
  border-radius: 8px;
}
.nav {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  color: #6a7a72;
  padding: 12px;
  margin: 4px 0;
  font-size: 13px;
}
.nav.active {
  background: #e9f0e6;
  color: var(--green);
}
.aside-bottom {
  margin-top: auto;
  display: grid;
  gap: 12px;
  font-size: 12px;
}
.shell {
  margin-left: 246px;
}
header {
  height: 76px;
  border-bottom: 1px solid var(--line);
  padding: 0 38px;
  background: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}
.pill {
  font-size: 10px;
  background: #edf4e9;
  color: #487139;
  border-radius: 20px;
  padding: 6px 12px;
}
.main {
  padding: 36px 38px;
  min-height: calc(100vh - 130px);
  max-width: 1600px;
  margin: auto;
}
.heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 1.8px;
  font-weight: 700;
  color: #68836b;
}
.heading p {
  font-size: 13px;
  margin: 10px 0 0;
}
.tabs {
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 28px;
  margin-bottom: 26px;
  overflow: auto;
}
.tabs button {
  background: none;
  color: var(--muted);
  border-radius: 0;
  padding: 12px 0;
  font-size: 13px;
  white-space: nowrap;
}
.tabs button.active {
  color: var(--green);
  border-bottom: 2px solid var(--green);
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.stat {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 9px;
  padding: 21px;
}
.stat small {
  font-size: 11px;
}
.stat strong {
  display: block;
  font-size: 29px;
  font-weight: 550;
  margin: 8px 0 0;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  margin: 16px 0;
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
  gap: 10px;
}
.card-head p {
  font-size: 12px;
  margin: 4px 0 0;
}
.card-body {
  padding: 24px;
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
}
th {
  background: #fafcf8;
  color: #7d887f;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  font-size: 9px;
  font-weight: 600;
  text-align: left;
  padding: 14px 24px;
  white-space: nowrap;
}
td {
  border-top: 1px solid #edf0eb;
  padding: 18px 24px;
}
td strong {
  font-weight: 600;
  display: block;
  font-size: 13px;
}
td small {
  font-size: 10px;
}
.badge {
  display: inline-block;
  border-radius: 4px;
  background: #edf3e9;
  color: #43713f;
  padding: 3px 8px;
  font-size: 10px;
  text-transform: capitalize;
  white-space: nowrap;
}
.badge.failed,
.badge.rejected,
.badge.dead {
  background: #fbe9e6;
  color: #a34b3e;
}
.badge.queued,
.badge.pending,
.badge.scheduled,
.badge.unknown,
.badge.needs_review {
  background: #fff4d9;
  color: #937627;
}
.empty {
  padding: 64px 20px;
  text-align: center;
  color: #7c8b80;
}
.empty .empty-icon {
  font-size: 38px;
  color: #729368;
  margin-bottom: 12px;
}
.empty h3 {
  color: var(--ink);
  margin-bottom: 6px;
}
.empty p {
  font-size: 13px;
}
.toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
}
.toolbar input,
.toolbar select {
  width: auto;
}
.pager {
  padding: 15px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  border-top: 1px solid var(--line);
}
.pager button {
  padding: 6px 14px;
}
.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.info {
  background: #edf3e7;
  padding: 15px 20px;
  border-radius: 7px;
  font-size: 12px;
  color: #526c48;
  margin: 15px 0;
}
.errorlist {
  color: #a14435;
  font-size: 12px;
}
.helptext {
  font-size: 11px;
  color: var(--muted);
}
.helptext ul {
  padding-left: 16px;
}
.auth {
  width: min(440px, calc(100% - 30px));
  margin: 7vh auto;
  padding: 32px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.auth .brand {
  margin-bottom: 40px;
}
.auth button {
  margin-top: 15px;
  width: 100%;
}
.auth p {
  font-size: 13px;
}
.auth form p {
  margin: 12px 0;
}
.auth ul {
  font-size: 11px;
}
.auth label {
  font-size: 12px;
}
.auth h1 {
  font-size: 29px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 26px;
  width: min(620px, 95vw);
  max-height: 90vh;
  color: var(--ink);
}
dialog::backdrop {
  background: #102b2466;
  backdrop-filter: blur(3px);
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
dialog form button {
  margin-top: 18px;
}
.form-error {
  color: #a14435;
  font-size: 12px;
  margin-top: 12px;
}
.form-note {
  font-size: 12px;
  color: var(--muted);
}
.chat-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 450px;
}
.contact-list {
  border-right: 1px solid var(--line);
}
.contact {
  width: 100%;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: white;
  color: var(--ink);
  text-align: left;
  padding: 17px 22px;
  font-size: 12px;
}
.contact:hover {
  background: #f1f5ed;
}
.chat-panel {
  padding: 24px;
  background: #fcfdf9;
}
.bubble {
  padding: 12px 16px;
  background: #edf3e5;
  border-radius: 10px;
  margin: 10px 0 10px auto;
  width: 85%;
  white-space: pre-wrap;
  font-size: 13px;
}
.bubble.in {
  background: white;
  border: 1px solid var(--line);
  margin: 10px auto 10px 0;
}
.bubble small {
  font-size: 9px;
  margin-top: 8px;
}
.thread {
  max-height: 480px;
  overflow: auto;
}
.otp-value {
  font-variant-numeric: tabular-nums;
  letter-spacing: 2px;
  font-weight: 700;
}
.code {
  background: #132e26;
  color: #dbedce;
  padding: 20px;
  border-radius: 8px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 12px;
}
#notice {
  padding: 12px 18px;
  background: #fff3d8;
  border: 1px solid #e8d7b3;
  border-radius: 7px;
  margin-bottom: 18px;
  font-size: 13px;
}
footer {
  padding: 16px 38px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
}
@media (max-width: 1000px) {
  aside {
    width: 200px;
    padding: 24px 16px;
  }
  .shell {
    margin-left: 200px;
  }
  .main {
    padding: 26px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .chat-layout {
    grid-template-columns: 210px 1fr;
  }
}
@media (max-width: 700px) {
  aside {
    position: static;
    width: 100%;
    padding: 15px;
  }
  .brand span,
  .workspace,
  .aside-bottom {
    display: none;
  }
  aside nav {
    display: flex;
    overflow: auto;
    margin-top: 8px;
  }
  .nav {
    white-space: nowrap;
    width: auto;
    font-size: 11px;
  }
  .brand {
    font-size: 25px;
  }
  .shell {
    margin: 0;
  }
  header {
    height: 50px;
    padding: 0 18px;
  }
  .pill {
    font-size: 8px;
  }
  .main {
    padding: 24px 16px;
  }
  .heading h1 {
    font-size: 29px;
  }
  .stats {
    gap: 9px;
  }
  .stat {
    padding: 14px;
  }
  .stat strong {
    font-size: 24px;
  }
  .tabs {
    gap: 18px;
  }
  .tabs button {
    font-size: 12px;
  }
  .grid2,
  .chat-layout {
    grid-template-columns: 1fr;
  }
  .contact-list {
    max-height: 180px;
    overflow: auto;
    border-right: 0;
  }
  .card-head {
    padding: 18px;
  }
  .card-head button {
    font-size: 11px;
  }
  td,
  th {
    padding: 13px 16px;
  }
  footer {
    padding: 16px;
  }
  footer span {
    display: none;
  }
}
