:root {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  color: #243d36;
  background: #f5f6f2;
  font-synthesis: none;
  line-height: 1.55;
  font-size: 14px;
  --green: #185344;
  --muted: #7a8780;
  --line: #e3e8e1;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea {
  font: inherit;
}
button,
a,
input,
textarea {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #b9d970;
  outline-offset: 3px;
}
a {
  color: inherit;
  text-decoration: none;
}
[hidden] {
  display: none !important;
}
h1,
h2,
p {
  margin: 0;
}
h1 {
  font-size: 36px;
  line-height: 1.2;
  letter-spacing: -1.2px;
  font-weight: 600;
}
h2 {
  font-size: 16px;
  font-weight: 650;
}
.muted {
  color: var(--muted);
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 750;
  color: #829080;
}
.brand-dot {
  color: #97bf54;
}
.brand-mark {
  background: #c6e794;
  color: #1b493a;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: inline-grid;
  place-items: center;
  font-size: 25px;
  font-weight: 500;
  flex-shrink: 0;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 244px;
  background: #153d34;
  color: #e7efe5;
  padding: 32px 22px;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  letter-spacing: -0.7px;
  font-weight: 650;
  white-space: nowrap;
}
.brand-dot {
  margin-left: -8px;
}
.nav-label {
  margin: 58px 12px 15px;
  color: #8aa79b;
}
.sidebar nav {
  display: grid;
  gap: 8px;
}
.sidebar nav a {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 13px;
  border-radius: 8px;
  color: #aac0b6;
}
.sidebar nav a.nav-active {
  background: #2d5248;
  color: #e5f6d2;
  border: 1px solid #47665a;
}
.sidebar-note {
  margin-top: auto;
  border-top: 1px solid #36564b;
  padding: 24px 8px 20px;
  font-size: 12px;
}
.sidebar-note p {
  font-size: 11px;
  color: #92ad9f;
  margin: 8px 0 0 13px;
}
.small-dot {
  display: inline-block;
  background: #b6d978;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 7px;
}
.logout {
  background: none;
  border: none;
  color: #b7c9bf;
  text-align: left;
  font-size: 12px;
  padding: 10px 8px;
}
.workspace {
  margin-left: 244px;
}
.topbar {
  height: 76px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 42px;
  background: #fafbf8;
  font-size: 12px;
  gap: 16px;
}
.topbar .muted {
  padding: 0 14px;
}
.admin-pill {
  display: flex;
  gap: 8px;
  align-items: center;
  color: #63816a;
}
.admin-pill span {
  color: #405348;
}
.content {
  max-width: 1400px;
  padding: 38px 42px;
  margin: auto;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}
.page-heading .eyebrow {
  margin-bottom: 12px;
}
.page-heading .muted {
  margin-top: 12px;
  font-size: 13px;
}
.outline-pill {
  border: 1px solid #dbe3d3;
  border-radius: 5px;
  padding: 8px 10px;
  font-size: 9px;
  letter-spacing: 1px;
  white-space: nowrap;
  background: #f1f4eb;
  color: #708061;
}
.connection-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.connection-symbol {
  height: 44px;
  width: 44px;
  background: #f0f5e7;
  color: #557441;
  border-radius: 50%;
  font-size: 27px;
  display: grid;
  place-items: center;
}
.connection-copy {
  flex: 1;
  min-width: 200px;
}
.connection-copy h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 14px;
}
.connection-copy p {
  font-size: 12px;
  margin-top: 4px;
}
.badge {
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 5px;
  font-weight: 500;
  background: #f0f2eb;
  color: #6b795d;
}
.badge.online {
  background: #e6f2df;
  color: #377047;
}
.badge.warning {
  background: #fff0d6;
  color: #956215;
}
.primary,
.secondary {
  border-radius: 7px;
  padding: 11px 16px;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}
.primary {
  border: 1px solid var(--green);
  background: var(--green);
  color: #fff;
}
.primary:hover:not(:disabled) {
  background: #216b56;
}
.secondary {
  background: #fff;
  border: 1px solid #dbe3d6;
  color: #3d5547;
}
.secondary:hover {
  background: #f5f8f0;
}
.compose-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
  align-items: start;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 25px;
}
.card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 23px;
}
.card-heading > div {
  display: flex;
  align-items: center;
  gap: 10px;
}
.step {
  font-size: 10px;
  font-weight: 600;
  border: 1px solid #dfe6d8;
  color: #7e8d72;
  border-radius: 5px;
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
}
.text-button {
  border: 0;
  background: transparent;
  padding: 5px 0;
  color: #52754a;
  font-size: 11px;
  font-weight: 600;
}
.danger {
  color: #a85448;
}
label {
  display: block;
  font-size: 12px;
  font-weight: 650;
  margin: 20px 0 8px;
}
label > span:not(.check-label span) {
  font-weight: 400;
  color: #89928a;
  font-size: 10px;
  margin-left: 8px;
}
input:not([type='checkbox']),
textarea {
  display: block;
  width: 100%;
  border: 1px solid #dce3d7;
  background: #fff;
  border-radius: 7px;
  padding: 12px;
  color: #294236;
  outline: none;
  font-size: 13px;
}
input:focus,
textarea:focus {
  border-color: #83a56e;
  box-shadow: 0 0 0 3px #eaf1e3;
}
textarea {
  resize: vertical;
  line-height: 1.7;
  min-height: 100px;
}
input::placeholder,
textarea::placeholder {
  color: #a1aaa0;
}
.message-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-bottom: 6px;
  max-height: 180px;
  overflow: auto;
}
.message-choice {
  background: #f6f8f2;
  border: 1px solid #e0e6d9;
  border-radius: 6px;
  padding: 7px 11px;
  font-size: 11px;
  max-width: 100%;
  overflow-wrap: anywhere;
  color: #6d7d62;
}
.message-choice.selected {
  background: #edf4e4;
  border-color: #9fbb7e;
  color: #426135;
}
.empty {
  font-size: 12px;
  color: #89917f;
  padding: 16px 0;
}
.field-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 10px;
  color: #8d9788;
  margin-top: 8px;
}
.form-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 23px;
}
.form-actions .muted {
  font-size: 10px;
}
.field-help {
  font-size: 11px;
  color: #8a9587;
  margin-top: 9px;
  line-height: 1.7;
}
.recipient-count {
  background: #f3f7ec;
  border: 1px dashed #d9e3cd;
  border-radius: 6px;
  padding: 9px 12px;
  font-size: 11px;
  color: #6c8354;
  margin-top: 15px;
  overflow-wrap: anywhere;
}
.recipient-count.error {
  color: #ae5142;
  background: #fff3ee;
}
.preview {
  background: #f4f5ee;
  border: 1px solid #e8eadd;
  border-radius: 9px;
  padding: 18px;
  margin-top: 24px;
}
.preview .eyebrow {
  font-size: 8px;
  letter-spacing: 1.5px;
}
.message-bubble {
  margin-top: 14px;
  background: #e1efcd;
  border: 1px solid #d4e4bc;
  border-radius: 0 9px 9px 9px;
  padding: 14px;
  font-size: 12px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 260px;
  overflow: auto;
  color: #4b6240;
}
.check-label {
  display: flex;
  gap: 9px;
  font-size: 11px;
  align-items: flex-start;
  font-weight: 400;
  color: #72816c;
  margin-top: 22px;
}
.check-label input {
  accent-color: var(--green);
  margin: 3px 0 0;
  flex-shrink: 0;
}
.send-button {
  width: 100%;
  justify-content: space-between;
  margin-top: 16px;
}
.history {
  margin-top: 24px;
}
.history .card-heading {
  margin-bottom: 4px;
}
.campaign {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 18px 0;
  margin-top: 12px;
}
.campaign h3 {
  font-size: 13px;
  margin: 0 0 5px;
  overflow-wrap: anywhere;
}
.campaign p {
  font-size: 11px;
  color: #87927f;
}
.campaign-stats {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.campaign-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}
.error {
  font-size: 12px;
  color: #ac5146;
  margin-top: 9px;
}
.notice {
  position: fixed;
  right: 24px;
  top: 18px;
  max-width: min(480px, 90vw);
  background: #213f33;
  color: #fff;
  box-shadow: 0 8px 30px #0002;
  border: 1px solid #51765e;
  border-radius: 8px;
  padding: 13px 20px;
  z-index: 10;
  font-size: 13px;
}
.notice.error {
  background: #884235;
  color: #fff;
}
#qr-area {
  flex-basis: 100%;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  text-align: center;
  font-size: 12px;
  color: #738169;
}
#qr-image {
  background: #fff;
  padding: 8px;
  max-width: 100%;
  height: auto;
}
#qr-area button {
  margin-top: 12px;
}
footer {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  letter-spacing: 1.5px;
  color: #9aa18e;
  margin: 30px 0 5px;
}
footer span {
  letter-spacing: 0;
}
.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: radial-gradient(ellipse at top right, #e6eedb, transparent 65%), #f5f6f2;
}
.login-card {
  max-width: 470px;
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 42px;
}
.login-card .eyebrow {
  margin: 25px 0 15px;
}
.login-card h1 {
  font-size: 34px;
}
.login-card > .muted {
  margin: 17px 0 25px;
  font-size: 13px;
}
.login-card .primary {
  margin-top: 25px;
  width: 100%;
  justify-content: space-between;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px;
  max-width: 760px;
  width: calc(100% - 32px);
  max-height: 85vh;
  color: #294236;
}
dialog::backdrop {
  background: #18362c88;
}
pre {
  font: inherit;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #f4f7ee;
  padding: 15px;
  border-radius: 7px;
  font-size: 13px;
  max-height: 220px;
  overflow: auto;
}
.recipient-row {
  display: grid;
  grid-template-columns: 140px 140px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 12px;
}
.recipient-row span {
  overflow-wrap: anywhere;
}
@media (min-width: 1500px) {
  .content {
    padding-top: 50px;
  }
  .compose-grid {
    gap: 30px;
  }
  .card {
    padding: 30px;
  }
}
@media (max-width: 1150px) {
  .sidebar {
    width: 210px;
    padding: 28px 15px;
  }
  .brand {
    font-size: 18px;
  }
  .workspace {
    margin-left: 210px;
  }
  .content {
    padding: 30px 25px;
  }
  .topbar {
    padding: 0 25px;
  }
  .compose-grid {
    gap: 18px;
  }
  .card {
    padding: 20px;
  }
  .page-heading h1 {
    font-size: 29px;
  }
  .outline-pill {
    display: none;
  }
}
@media (max-width: 850px) {
  .sidebar {
    position: static;
    width: auto;
    padding: 16px 22px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
  }
  .sidebar-note,
  .nav-label {
    display: none;
  }
  .sidebar nav {
    display: flex;
    order: 1;
    flex-basis: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }
  .sidebar nav a {
    flex-shrink: 0;
    padding: 10px;
    font-size: 12px;
  }
  .workspace {
    margin-left: 0;
  }
  .topbar {
    height: 50px;
  }
  .compose-grid {
    grid-template-columns: 1fr;
  }
  .page-heading h1 {
    font-size: 29px;
  }
  .content {
    padding: 26px 20px;
  }
  .connection-card {
    padding: 17px;
  }
  .connection-card > .secondary {
    width: 100%;
  }
  .campaign {
    grid-template-columns: 1fr;
  }
  .campaign-actions {
    justify-content: flex-end;
  }
  .recipient-row {
    grid-template-columns: 1fr 1fr;
  }
  .recipient-row span:last-child {
    grid-column: 1/-1;
  }
  footer {
    gap: 15px;
  }
  .login-card {
    padding: 28px;
  }
  .login-card h1 {
    font-size: 30px;
  }
  .card-heading {
    gap: 8px;
  }
  .card-heading h2 {
    font-size: 14px;
  }
}
