:root {
  --ink: #263c32;
  --muted: #798078;
  --line: #e5e7df;
  --paper: #f7f8f2;
  --white: #fff;
  --green: #2c493a;
  --lime: #e4edc7;
  --orange: #c96946;
  --radius: 13px;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 14px;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
button,
a {
  touch-action: manipulation;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  color: inherit;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #a4bd77;
  outline-offset: 3px;
}
svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.shell {
  display: grid;
  grid-template-columns: 238px 1fr;
  min-height: 100dvh;
}
.sidebar {
  background: #f0f2e9;
  border-right: 1px solid #dfe4d6;
  padding: 35px 20px 20px;
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0 auto 0 0;
  width: 238px;
  z-index: 20;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  font-size: 29px;
  letter-spacing: -1.5px;
  font-weight: 650;
}
.brand img {
  height: 34px;
  width: 34px;
}
.brand-tag {
  font-size: 10px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  margin: 11px 12px 37px;
  color: #7a8776;
}
.workspace-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 27px;
  padding: 12px 10px;
  border: 1px solid #dce1d3;
  border-radius: 9px;
  background: #f7f8f2;
  font-size: 12px;
}
.workspace-switch strong {
  display: block;
  font-size: 12px;
}
.workspace-switch small {
  color: var(--muted);
  display: block;
  margin-top: 3px;
}
.workspace-avatar {
  width: 30px;
  height: 30px;
  background: #e0e5d3;
  display: grid;
  place-items: center;
  border-radius: 7px;
  font-weight: 600;
}
.nav-label {
  text-transform: uppercase;
  letter-spacing: 1.6px;
  color: #89927f;
  font-size: 9px;
  font-weight: 700;
  margin: 20px 12px 12px;
}
.nav-link {
  border: 0;
  background: transparent;
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  border-radius: 7px;
  color: #737d70;
  margin-bottom: 4px;
  font-size: 12px;
}
.nav-link.active {
  background: #e0e6d4;
  color: #2d4836;
  font-weight: 600;
}
.nav-link:hover {
  background: #e6eadc;
}
.nav-link .count {
  margin-left: auto;
  font-size: 10px;
  color: #7b886e;
}
.nav-link svg {
  width: 17px;
  height: 17px;
}
.org-nav {
  margin-top: 10px;
  border-top: 1px solid #dfe4d6;
  padding-top: 5px;
}
.org-dot {
  width: 8px;
  height: 8px;
  border-radius: 3px;
  flex-shrink: 0;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 24px;
}
.tip-card {
  border: 1px solid #dce2d0;
  border-radius: 10px;
  padding: 16px 14px;
  background: #edf0e2;
}
.tip-card p {
  font-family: Georgia, serif;
  font-size: 17px;
  line-height: 1.45;
  margin: 9px 0;
}
.tip-card small {
  font-size: 10px;
  line-height: 1.6;
  color: #7c886d;
}
.profile {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding: 5px 6px;
}
.avatar {
  background: #dee3d4;
  border-radius: 50%;
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 650;
}
.profile strong {
  font-size: 11px;
  display: block;
}
.profile small {
  font-size: 10px;
  color: #8c9386;
}
.profile .icon-btn {
  margin-left: auto;
}
.main {
  grid-column: 2;
  min-width: 0;
}
.topbar {
  height: 79px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 44px;
  background: var(--paper);
}
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #858b7d;
  font-size: 11px;
}
.breadcrumbs b {
  color: #56604d;
  font-weight: 500;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 18px;
}
.searchbox {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #e3e6da;
  border-radius: 7px;
  padding: 8px 11px;
  background: #fcfcf8;
}
.searchbox svg {
  width: 15px;
  height: 15px;
  color: #8b9380;
}
.searchbox input {
  border: 0;
  padding: 0;
  background: transparent;
  width: 160px;
  outline: none;
  font-size: 11px;
}
.searchbox kbd {
  font-size: 10px;
  background: #f0f2e9;
  color: #9a9f8f;
  border-radius: 3px;
  padding: 2px 4px;
}
.local-label {
  font-size: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #8d9583;
}
.local-label i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #80945b;
}
.content {
  padding: 37px 44px 50px;
  max-width: 1600px;
  margin: auto;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 1.8px;
  font-weight: 600;
  text-transform: uppercase;
  color: #909779;
  margin-bottom: 11px;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 29px;
}
h1 {
  font:
    normal 36px/1.2 Georgia,
    "Times New Roman",
    serif;
  letter-spacing: -1.1px;
  margin: 0 0 10px;
}
h2 {
  font-size: 16px;
  letter-spacing: -0.3px;
  font-weight: 600;
  margin: 0;
}
h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}
.subheading {
  font-size: 12px;
  color: #8c9285;
  line-height: 1.7;
  margin: 0;
}
.btn {
  border: 1px solid var(--line);
  background: #fff;
  padding: 11px 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 550;
  white-space: nowrap;
  min-height: 38px;
}
.btn svg {
  width: 15px;
  height: 15px;
}
.btn:hover {
  background: #f1f3e9;
}
.btn.primary {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
  box-shadow: 0 2px 3px #243c3210;
}
.btn.primary:hover {
  background: #1f392c;
}
.btn.danger {
  color: #b4523c;
  border-color: #eedad1;
}
.btn.small {
  padding: 7px 10px;
  min-height: 30px;
  font-size: 10px;
}
.btn.text {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  color: #7a856f;
}
.btn.secondary {
  background: #eef1e6;
  border-color: #e1e5d5;
}
.icon-btn {
  border: 0;
  background: transparent;
  padding: 6px;
  display: inline-grid;
  place-items: center;
  border-radius: 6px;
}
.icon-btn:hover {
  background: #e6eadc;
}
.icon-btn svg {
  width: 17px;
  height: 17px;
}
.button-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 17px;
  margin-bottom: 34px;
}
.stat {
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 21px 21px 18px;
  background: #fff;
  position: relative;
}
.stat:first-child {
  background: #edf1e2;
  border-color: #dfe6d0;
}
.stat-top {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #7f8876;
  align-items: center;
}
.stat-top svg {
  width: 17px;
  height: 17px;
  color: #a3ad91;
}
.stat-value {
  font-size: 30px;
  line-height: 1;
  letter-spacing: -1.2px;
  margin: 17px 0 10px;
  font-weight: 500;
}
.stat-foot {
  font-size: 9px;
  color: #9a9f90;
}
.stat-foot b {
  color: #708251;
  font-weight: 500;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 20px;
  gap: 15px;
}
.section-heading h2 span {
  font-size: 10px;
  color: #8e977d;
  font-weight: 500;
  margin-left: 7px;
  background: #ebeee0;
  padding: 3px 7px;
  border-radius: 5px;
}
.section-heading p {
  font-size: 10px;
  color: #8c9384;
  margin: 7px 0 0;
}
.view-controls {
  display: flex;
  border: 1px solid var(--line);
  padding: 3px;
  border-radius: 6px;
  gap: 2px;
}
.view-controls button {
  border: 0;
  background: transparent;
  border-radius: 4px;
  padding: 5px 7px;
  display: grid;
  place-items: center;
  color: #979f8b;
}
.view-controls .selected {
  background: white;
  color: #5d6d4c;
  box-shadow: 0 1px 3px #263c3210;
}
.view-controls svg {
  height: 13px;
  width: 13px;
}
.org-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 19px;
  margin-bottom: 35px;
}
.org-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  padding: 23px;
  position: relative;
  transition:
    box-shadow 0.15s,
    transform 0.15s;
}
.org-card:hover {
  box-shadow: 0 5px 18px #283c3210;
  transform: translateY(-2px);
}
.org-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.org-logo {
  height: 47px;
  width: 47px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  font:
    23px Georgia,
    serif;
  letter-spacing: -1px;
  background: color-mix(in srgb, var(--brand-color), white 89%);
  color: var(--brand-color);
}
.org-logo svg {
  width: 25px;
  height: 25px;
}
.connected {
  border: 1px solid #e3e8d7;
  background: #f5f7ed;
  border-radius: 12px;
  color: #7e8b65;
  font-size: 8px;
  padding: 4px 7px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.connected i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #8a9e69;
}
.org-card h3 {
  font-size: 16px;
  margin: 19px 0 5px;
}
.org-card .industry {
  font-size: 10px;
  color: #969c8d;
}
.org-card-numbers {
  display: flex;
  gap: 30px;
  margin-top: 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid #edf0e7;
}
.org-card-numbers strong {
  font-size: 17px;
  font-weight: 550;
  display: block;
  margin-bottom: 5px;
}
.org-card-numbers small {
  font-size: 9px;
  color: #8d9583;
}
.org-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 15px;
  font-size: 9px;
  color: #a1a695;
}
.org-card-footer .link {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #5d704b;
  font-size: 10px;
  font-weight: 600;
}
.org-card-footer svg {
  width: 13px;
  height: 13px;
}
.org-card > a.stretch:after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
}
.org-grid.list {
  grid-template-columns: 1fr;
}
.org-grid.list .org-card {
  display: flex;
  align-items: center;
  gap: 25px;
}
.org-grid.list .org-card h3 {
  margin: 0;
}
.org-grid.list .org-card-numbers {
  margin: 0 0 0 auto;
  padding: 0;
  border: 0;
}
.org-grid.list .org-card-top .connected,
.org-grid.list .org-card-footer {
  display: none;
}
.banner {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #ecefe2;
  border: 1px solid #dfe5d0;
  border-radius: 11px;
  padding: 21px 24px;
  margin-bottom: 35px;
  position: relative;
  overflow: hidden;
}
.banner-icon {
  height: 44px;
  width: 44px;
  border: 1px solid #d4ddc2;
  background: #e4eacb;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #788a54;
}
.banner h3 {
  font-family: Georgia, serif;
  font-size: 18px;
  font-weight: normal;
  letter-spacing: -0.3px;
  margin-bottom: 6px;
}
.banner p {
  font-size: 10px;
  color: #849171;
  margin: 0;
  line-height: 1.6;
}
.banner .btn {
  margin-left: auto;
  background: #f8f9f1;
  border-color: #d7dfc5;
  color: #687c4c;
}
.table-wrap {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: auto;
  background: #fff;
}
table {
  border-collapse: collapse;
  width: 100%;
  white-space: nowrap;
  text-align: left;
}
th {
  padding: 13px 19px;
  background: #f3f5ed;
  border-bottom: 1px solid var(--line);
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #929a86;
  font-weight: 600;
}
td {
  padding: 17px 19px;
  border-bottom: 1px solid #edf0e6;
  font-size: 10px;
  color: #87917c;
}
tr:last-child td {
  border: 0;
}
td strong {
  font-size: 11px;
  color: #4b5e43;
  display: block;
  font-weight: 550;
}
td small {
  font-size: 9px;
  color: #a0a795;
  display: block;
  margin-top: 4px;
}
.message-title {
  display: flex;
  align-items: center;
  gap: 11px;
}
.message-icon {
  padding: 9px;
  background: #f2f4eb;
  border-radius: 7px;
  color: #8f9d7f;
  display: grid;
  place-items: center;
}
.message-icon svg {
  width: 15px;
  height: 15px;
}
.badge {
  padding: 4px 8px;
  border-radius: 4px;
  background: #f1f1e9;
  color: #8a8d77;
  font-size: 9px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.badge:before {
  content: "";
  width: 4px;
  height: 4px;
  background: currentColor;
  border-radius: 50%;
}
.badge.completed,
.badge.subscribed {
  background: #edf4e7;
  color: #789563;
}
.badge.queued,
.badge.sending {
  background: #edf0fa;
  color: #7186ad;
}
.badge.failed,
.badge.unsubscribed {
  background: #fcf0e9;
  color: #b97e61;
}
.badge.draft {
  background: #f4f1e6;
  color: #a29264;
}
.row-link:hover td {
  background: #fafbf7;
}
.row-link {
  cursor: pointer;
}
.footer-note {
  margin-top: 25px;
  text-align: center;
  color: #a7ad9a;
  font-size: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.footer-note svg {
  width: 11px;
  height: 11px;
}
.tabs {
  display: flex;
  gap: 25px;
  border-bottom: 1px solid var(--line);
  margin: 0 0 27px;
  overflow-x: auto;
}
.tab {
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 0 2px 14px;
  font-size: 11px;
  color: #929b85;
  background: transparent;
  white-space: nowrap;
}
.tab.active {
  border-color: #6b8052;
  color: #426039;
  font-weight: 600;
}
.org-heading {
  display: flex;
  gap: 16px;
  align-items: center;
}
.org-heading .org-logo {
  height: 56px;
  width: 56px;
  font-size: 27px;
}
.org-heading h1 {
  font-size: 31px;
  margin-bottom: 5px;
}
.panel {
  border: 1px solid var(--line);
  border-radius: 11px;
  background: white;
  padding: 25px;
}
.panel-title {
  font-size: 14px;
  margin: 0 0 8px;
}
.panel-desc {
  font-size: 11px;
  color: #89927e;
  line-height: 1.7;
  margin: 0 0 23px;
}
.settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.8fr);
  gap: 23px;
  align-items: start;
}
.settings-side {
  display: grid;
  gap: 20px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
  min-width: 0;
}
.field label {
  font-size: 10px;
  font-weight: 550;
  color: #66745c;
}
.field label .optional {
  font-weight: 400;
  color: #a0a794;
  margin-left: 5px;
}
input,
textarea,
select {
  color: #4e6047;
  width: 100%;
  border: 1px solid #dde3d5;
  background: #fff;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 12px;
  min-height: 39px;
  outline: none;
}
input:focus,
textarea:focus,
select:focus {
  border-color: #8f9d79;
  box-shadow: 0 0 0 3px #8f9d7915;
}
input::placeholder,
textarea::placeholder {
  color: #a7ad9c;
}
textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.8;
}
.field small {
  font-size: 10px;
  color: #929b86;
  line-height: 1.5;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-row.wide {
  grid-template-columns: 1fr 110px;
}
.form-divider {
  height: 1px;
  background: var(--line);
  margin: 23px 0;
}
.error-message {
  color: #ac573e;
  background: #fcf1eb;
  padding: 10px 13px;
  border-radius: 6px;
  font-size: 11px;
  margin-bottom: 15px;
  line-height: 1.6;
}
.notice {
  padding: 13px 15px;
  border: 1px solid #e6e1ce;
  background: #f8f5e9;
  color: #9c8b55;
  font-size: 11px;
  line-height: 1.7;
  border-radius: 8px;
  margin-bottom: 20px;
  display: flex;
  gap: 10px;
}
.notice svg {
  width: 16px;
  height: 16px;
  margin-top: 2px;
}
.notice.green {
  border-color: #dde5d0;
  background: #f0f5e7;
  color: #81956b;
}
.empty {
  padding: 45px 20px;
  text-align: center;
  color: #929b85;
  font-size: 12px;
}
.empty svg {
  height: 30px;
  width: 30px;
  margin-bottom: 12px;
}
.empty h3 {
  color: #5e7054;
  margin: 4px 0 9px;
}
.empty p {
  font-size: 11px;
  line-height: 1.7;
}
.empty .btn {
  margin-top: 10px;
}
.filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 15px;
}
.filter-row .searchbox {
  background: white;
}
.filter-row .searchbox input {
  width: 210px;
  min-height: 20px;
}
.assets-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.asset-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}
.asset-image {
  height: 160px;
  background: repeating-conic-gradient(#f3f4ed 0% 25%, #fff 0% 50%) 50%/16px
    16px;
  display: grid;
  place-items: center;
  padding: 20px;
}
.asset-image img {
  max-height: 120px;
  max-width: 100%;
  object-fit: contain;
}
.asset-meta {
  padding: 16px;
  font-size: 11px;
}
.asset-meta small {
  display: block;
  color: #9ca38f;
  font-size: 9px;
  margin-top: 7px;
}
.composer-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.composer-form {
  background: white;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 25px;
}
.channel-switch {
  display: flex;
  background: #f2f4eb;
  padding: 4px;
  border-radius: 7px;
  margin-bottom: 24px;
  gap: 5px;
}
.channel-switch button {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 9px;
  font-size: 11px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #879577;
}
.channel-switch button svg {
  height: 15px;
  width: 15px;
}
.channel-switch button.selected {
  background: white;
  box-shadow: 0 1px 3px #0000000d;
  color: #4b6340;
}
.merge-row {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: #9aa38c;
  margin-top: -10px;
  margin-bottom: 15px;
  align-items: center;
}
.merge-row button {
  border: 0;
  background: transparent;
  font-size: 9px;
  color: #758b5a;
  padding: 4px;
}
.preview-panel {
  position: sticky;
  top: 20px;
}
.preview-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
  padding: 0 2px;
}
.preview-toolbar h3 {
  font-size: 11px;
  font-weight: 500;
  display: flex;
  gap: 7px;
  align-items: center;
}
.preview-toolbar h3 svg {
  height: 14px;
  width: 14px;
  color: #8c9c79;
}
.preview-toolbar small {
  font-size: 9px;
  color: #9ba38f;
}
.preview-frame {
  background: #ecefe3;
  border: 1px solid #e1e6d6;
  border-radius: 12px;
  padding: 25px 15px;
  min-height: 560px;
  display: flex;
  justify-content: center;
  transition: all 0.2s;
}
.preview-frame iframe {
  border: 0;
  width: 100%;
  min-height: 560px;
  background: #f4f3ef;
  max-width: 100%;
  transition: width 0.2s;
}
.preview-frame.mobile iframe {
  width: 320px;
}
.preview-foot {
  text-align: center;
  color: #9aa48a;
  font-size: 9px;
  line-height: 1.6;
  margin: 13px 0;
}
.preview-envelope {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 10px;
  padding: 14px;
  font-size: 10px;
  color: #8b967f;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.preview-envelope strong {
  color: #647458;
  font-weight: 500;
}
.phone-frame {
  width: 295px;
  border: 7px solid #455543;
  border-radius: 35px;
  min-height: 480px;
  padding: 20px 15px;
  background: #fff;
  position: relative;
}
.phone-top {
  text-align: center;
  font-size: 10px;
  color: #9ba78e;
  margin: 14px 0 28px;
}
.sms-bubble {
  background: #eef1e7;
  padding: 14px 16px;
  line-height: 1.7;
  border-radius: 15px 15px 15px 3px;
  font-size: 12px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #617254;
}
.phone-speaker {
  width: 65px;
  height: 5px;
  background: #52624b;
  margin: 0 auto;
  border-radius: 5px;
}
.preview-frame.sms {
  align-items: center;
}
.save-state {
  font-size: 10px;
  color: #9ba58e;
  margin-right: 10px;
}
.api-code {
  background: #25392f;
  color: #d0dcc4;
  border-radius: 9px;
  padding: 22px;
  overflow: auto;
  font:
    10px/1.9 ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 18px 0 0;
}
.api-code .comment {
  color: #7f9875;
}
.key-token {
  padding: 15px;
  background: #f0f4e7;
  border: 1px solid #d6e1c4;
  border-radius: 8px;
  word-break: break-all;
  font: 12px/1.8 monospace;
  margin: 15px 0;
}
.scope-list {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.checkbox {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: #758369;
}
.checkbox input {
  width: 15px;
  min-height: 15px;
  height: 15px;
  accent-color: #547344;
}
.docs-endpoints {
  padding: 0;
  margin: 20px 0;
  list-style: none;
}
.docs-endpoints li {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #edf0e6;
  font-size: 10px;
  align-items: center;
}
.docs-endpoints code {
  color: #7c8e6a;
  overflow-wrap: anywhere;
}
.docs-endpoints b {
  font-size: 9px;
  min-width: 35px;
}
.login-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100dvh;
}
.login-story {
  background: #233e30;
  color: #e8eddb;
  padding: 50px 70px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.login-story {
  align-items: center;
  justify-content: center;
  text-align: center;
}
.login-brand {
  width: 100%;
}
.login-story .brand {
  justify-content: center;
  padding: 0;
  color: #fff;
  font-size: clamp(44px, 5vw, 72px);
  gap: 16px;
}
.login-story .brand img {
  width: 88px;
  height: 88px;
}
.login-story .login-subtitle {
  margin: 24px 0 0;
  color: #b4c7db;
  font-size: 20px;
  line-height: 1.5;
}
.login-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.login-form {
  width: 330px;
}
.login-form h2 {
  font:
    32px Georgia,
    serif;
  letter-spacing: -1px;
  margin-bottom: 32px;
}
.login-form > p {
  font-size: 12px;
  color: #8a947d;
  line-height: 1.8;
  margin-bottom: 32px;
}
.login-form .btn {
  width: 100%;
  margin-top: 5px;
}
.login-form .field label {
  font-size: 11px;
}
.login-form .field {
  margin-bottom: 21px;
}
.login-foot {
  border-top: 1px solid var(--line);
  font-size: 10px;
  line-height: 1.8;
  color: #a0a891;
  margin-top: 28px;
  padding-top: 22px;
}
.login-foot svg {
  width: 12px;
  height: 12px;
  vertical-align: middle;
  margin-right: 4px;
}
.initial-loading {
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  font:
    40px Georgia,
    serif;
}
.initial-loading span {
  font: 12px system-ui;
  margin-top: 15px;
  color: #94a084;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fdfef9;
  width: 490px;
  max-width: calc(100vw - 30px);
  max-height: 90dvh;
  padding: 28px;
  box-shadow: 0 25px 100px #1f342c30;
  color: var(--ink);
}
dialog::backdrop {
  background: #24392d66;
  backdrop-filter: blur(3px);
}
.modal-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.modal-heading h2 {
  font:
    26px Georgia,
    serif;
}
.modal-subtitle {
  font-size: 11px;
  color: #919d82;
  line-height: 1.8;
  margin-bottom: 23px;
}
.modal-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 22px;
}
.upload-drop {
  border: 1px dashed #b9c5a8;
  border-radius: 9px;
  padding: 25px;
  text-align: center;
  background: #f7f9f1;
  margin-bottom: 20px;
}
.upload-drop input {
  background: #fff;
  margin-top: 15px;
  font-size: 10px;
}
.upload-drop p {
  font-size: 11px;
  color: #8d9c7c;
  line-height: 1.7;
}
.modal-form .notice {
  font-size: 10px;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translate(-50%, 20px);
  opacity: 0;
  background: #2f4938;
  color: #edf4df;
  font-size: 12px;
  padding: 14px 23px;
  border-radius: 9px;
  box-shadow: 0 4px 20px #24392d25;
  z-index: 100;
  transition: 0.2s;
  pointer-events: none;
  max-width: 90vw;
  line-height: 1.6;
}
#toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
#toast.error {
  background: #9f543c;
}
.mobile-menu {
  display: none;
}
.pager {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 15px;
  margin-top: 15px;
  font-size: 10px;
  color: #8c9b7e;
}
.demo-note {
  font-size: 9px;
  color: #a4ab98;
  margin-bottom: 0;
}
.section-space {
  margin-top: 30px;
}
.spinner {
  display: inline-block;
  height: 14px;
  width: 14px;
  border: 2px solid #98a889;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (min-width: 1500px) {
  .content {
    padding-top: 45px;
  }
  .org-card {
    padding: 27px;
  }
  .stats-grid {
    gap: 22px;
  }
  .org-grid {
    gap: 24px;
  }
}
@media (max-width: 1200px) {
  .sidebar {
    width: 210px;
    padding-left: 14px;
    padding-right: 14px;
  }
  .shell {
    grid-template-columns: 210px 1fr;
  }
  .content {
    padding: 30px;
  }
  .topbar {
    padding: 0 30px;
  }
  .org-card {
    padding: 18px;
  }
  .org-card-numbers {
    gap: 20px;
  }
  .org-grid {
    gap: 13px;
  }
  .stat {
    padding: 18px 15px;
  }
  .searchbox input {
    width: 120px;
  }
  .assets-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .login-story {
    padding: 45px;
  }
  .login-story h1 {
    font-size: 51px;
  }
}
@media (max-width: 1000px) {
  .org-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-grid {
    gap: 12px;
  }
  .topbar-right .local-label {
    display: none;
  }
  .composer-layout {
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }
  .composer-form {
    padding: 19px;
  }
  .content {
    padding: 27px 24px;
  }
  .topbar {
    padding: 0 24px;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .settings-side {
    grid-template-columns: 1fr 1fr;
  }
  .tip-card {
    display: none;
  }
  .assets-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 760px) {
  .shell {
    display: block;
  }
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s;
    width: 238px;
    box-shadow: 20px 0 60px #22382a20;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .main {
    width: 100%;
  }
  .mobile-menu {
    display: grid;
  }
  .topbar {
    height: 65px;
    padding: 0 20px;
    gap: 8px;
  }
  .breadcrumbs {
    gap: 8px;
    flex: 1;
    font-size: 10px;
  }
  .topbar-right {
    gap: 8px;
  }
  .topbar .searchbox {
    padding: 7px;
  }
  .topbar .searchbox input {
    width: 95px;
    font-size: 10px;
  }
  .topbar .searchbox kbd {
    display: none;
  }
  .content {
    padding: 28px 20px;
  }
  .page-heading {
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 23px;
  }
  h1 {
    font-size: 29px;
  }
  .subheading {
    font-size: 11px;
  }
  .page-heading > .btn {
    padding: 9px 11px;
    font-size: 10px;
    margin-top: 19px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 28px;
  }
  .stat-value {
    font-size: 28px;
  }
  .org-grid {
    gap: 13px;
    margin-bottom: 27px;
  }
  .org-card {
    padding: 17px;
  }
  .org-card h3 {
    font-size: 14px;
  }
  .org-card .connected {
    font-size: 7px;
    padding: 3px 5px;
  }
  .org-logo {
    height: 38px;
    width: 38px;
    font-size: 20px;
  }
  .org-card-numbers {
    gap: 20px;
    margin-top: 20px;
  }
  .org-card-numbers strong {
    font-size: 15px;
  }
  .org-card-numbers small {
    font-size: 8px;
  }
  .org-card-footer {
    font-size: 8px;
  }
  .banner {
    padding: 18px;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 28px;
  }
  .banner-icon {
    display: none;
  }
  .banner h3 {
    font-size: 17px;
  }
  .banner p {
    font-size: 10px;
  }
  .banner .btn {
    margin: 3px 0 0;
  }
  .section-heading h2 {
    font-size: 14px;
  }
  .section-heading {
    margin-bottom: 16px;
  }
  .settings-side {
    grid-template-columns: 1fr;
  }
  .org-heading .org-logo {
    height: 43px;
    width: 43px;
    font-size: 22px;
  }
  .org-heading h1 {
    font-size: 26px;
  }
  .org-heading {
    gap: 12px;
  }
  .tabs {
    gap: 20px;
    margin-bottom: 22px;
  }
  .composer-layout {
    grid-template-columns: 1fr;
  }
  .preview-panel {
    position: static;
  }
  .preview-frame {
    min-height: 450px;
  }
  .composer-actions {
    justify-content: flex-end;
  }
  .page-heading.composer-heading {
    flex-wrap: wrap;
  }
  .composer-heading .button-row {
    width: 100%;
    justify-content: flex-end;
  }
  .filter-row {
    flex-wrap: wrap;
  }
  .filter-row .searchbox {
    flex: 1;
  }
  .filter-row .searchbox input {
    width: 100%;
  }
  .login-layout {
    grid-template-columns: 1fr;
  }
  .login-story {
    padding: 27px 30px 32px;
    min-height: 300px;
  }
  .login-story h1 {
    font-size: 34px;
    letter-spacing: -1px;
    margin: 21px 0 10px;
    max-width: 300px;
  }
  .login-story p {
    font-size: 11px;
    margin: 0;
    max-width: 320px;
  }
  .login-story .brand-tag,
  .login-story footer {
    display: none;
  }
  .login-story .brand {
    font-size: 25px;
  }
  .login-story .brand img {
    width: 30px;
    height: 30px;
  }
  .login-main {
    padding: 37px 25px 45px;
  }
  .login-form h2 {
    font-size: 29px;
  }
  .org-grid.list .org-card {
    flex-wrap: wrap;
    gap: 15px;
  }
  .org-grid.list .org-card .industry {
    display: none;
  }
  .org-grid.list .org-card-numbers {
    margin-left: auto;
  }
  .table-wrap td {
    padding: 14px 15px;
  }
  .table-wrap th {
    padding: 12px 15px;
  }
  .panel {
    padding: 20px;
  }
  .assets-grid {
    gap: 15px;
  }
}
@media (max-width: 420px) {
  .org-grid {
    grid-template-columns: 1fr;
  }
  .org-card {
    padding: 22px;
  }
  .org-card h3 {
    font-size: 16px;
  }
  .org-logo {
    height: 43px;
    width: 43px;
  }
  .org-card-numbers {
    gap: 40px;
  }
  .org-card-footer {
    font-size: 9px;
  }
  .org-card .connected {
    font-size: 8px;
  }
  .org-card-numbers strong {
    font-size: 18px;
  }
  .org-card-numbers small {
    font-size: 9px;
  }
  .topbar .searchbox input {
    width: 75px;
  }
  .page-heading .button-row .btn {
    font-size: 10px;
    padding: 9px;
  }
  .org-heading .org-logo {
    display: none;
  }
  .assets-grid {
    grid-template-columns: 1fr 1fr;
  }
  .asset-image {
    height: 120px;
    padding: 10px;
  }
  .asset-image img {
    max-height: 90px;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .form-row.wide {
    grid-template-columns: 1fr 95px;
    gap: 13px;
  }
  .view-controls {
    display: none;
  }
  .filter-row .button-row {
    width: 100%;
  }
  .filter-row .button-row .btn {
    flex: 1;
  }
  .page-heading h1 {
    font-size: 27px;
  }
  .page-heading > .btn {
    font-size: 9px;
  }
  .page-heading .subheading {
    max-width: 220px;
  }
}

/* Reference theme: navy navigation, ivory header, and blue-gray workspace. */
:root {
  color-scheme: light;
  --ink: #1b3d67;
  --muted: #738196;
  --line: #d2dce8;
  --paper: #eaf1f6;
  --white: #fff;
  --green: #1c416f;
  --lime: #dce8f5;
  --orange: #ae6a2d;
  --surface: #fff;
  --raised: #f1f5fa;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
}
.main {
  padding-top: 79px;
}
.topbar {
  position: fixed;
  inset: 0 0 auto;
  height: 79px;
  padding: 0 22px;
  gap: 24px;
  background: #f7f6f0;
  border-color: #dce0e4;
  z-index: 30;
}
.topbar-brand {
  flex: 0 0 192px;
  padding: 0 8px;
  font-family: Georgia, serif;
  color: #173b66;
}
.brand-period {
  color: #328fb7;
}
.breadcrumbs {
  display: none;
}
.topbar-right {
  flex: 1;
  min-width: 0;
  gap: 24px;
}
.topbar .searchbox {
  flex: 1;
  max-width: 740px;
  padding: 13px 18px;
  border-radius: 12px;
  background: #fff;
  border-color: var(--line);
}
.topbar .searchbox input {
  width: 100%;
  font-size: 15px;
  min-height: 18px;
}
.topbar .searchbox kbd {
  font-family: inherit;
}
.local-label {
  margin-left: auto;
  letter-spacing: 0.8px;
  font-size: 10px;
}
.sidebar {
  top: 79px;
  padding-top: 22px;
  background: #0d294b;
  border-color: #15385f;
}
.workspace-switch {
  background: #15355a;
  border-color: #24486e;
  color: #e3ecf5;
  margin-bottom: 20px;
}
.workspace-switch small,
.brand-tag,
.nav-label,
.nav-link .count,
.tip-card small,
.profile small {
  color: #a9bece;
}
.workspace-avatar,
.sidebar .avatar {
  background: #23476e;
  color: #e7f0f8;
}
.nav-label {
  letter-spacing: 1.5px;
  font-size: 10px;
}
.nav-link {
  color: #b3c8d3;
  font-size: 15px;
  min-height: 45px;
}
.nav-link svg {
  color: #369bc6;
  width: 20px;
  height: 20px;
}
.nav-link.active {
  background: #233f62;
  color: #fff;
  box-shadow: inset 3px 0 #379bc6;
}
.nav-link:hover,
.sidebar .icon-btn:hover {
  background: #1b3b60;
}
.org-nav {
  border-color: #264768;
}
.sidebar .profile {
  color: #edf2f8;
}
.profile strong {
  font-size: 12px;
}
.profile small {
  font-size: 11px;
}
.sidebar .icon-btn {
  color: #a9bece;
}
.tip-card {
  background: #15355a;
  border-color: #29496b;
  color: #dce8f3;
}
.tip-card > svg {
  color: #3b9bc3;
}
.content {
  padding-top: 43px;
}
h1 {
  font-size: 42px;
  color: #193e6a;
}
h2 {
  font-size: 19px;
}
h3 {
  font-size: 17px;
}
.eyebrow {
  color: #728094;
  font-size: 11px;
  letter-spacing: 1.5px;
}
.subheading {
  font-size: 14px;
}
.btn {
  background: #fff;
  color: #1c416f;
  border-color: var(--line);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 1px 2px #15365c08;
}
.btn:hover,
.row-link:hover td {
  background: #f0f5fa;
}
.btn.primary {
  background: #1c416f;
  border-color: #1c416f;
  color: #fff;
}
.btn.primary:hover {
  background: #285181;
}
.btn.secondary {
  background: #e3ecf7;
  border-color: #c2d1e3;
  color: #244e7f;
}
.btn.text {
  background: transparent;
  border-color: transparent;
  color: #315b89;
  box-shadow: none;
}
.btn.small {
  font-size: 12px;
}
.btn.danger {
  color: #a14f38;
  border-color: #e5cbbf;
}
.icon-btn:hover {
  background: #e4ecf5;
}
button:focus-visible,
a:focus-visible {
  outline-color: #3f9cc7;
}
.stat,
.stat:first-child,
.org-card,
.table-wrap,
.panel,
.asset-card,
.composer-form,
.preview-envelope,
dialog {
  background: #fff;
  border-color: var(--line);
  box-shadow: 0 2px 5px #1c416f0b;
  border-radius: 14px;
}
.stat-top {
  color: #647892;
  font-size: 13px;
}
.stat-top svg {
  color: #315f92;
}
.stat-value {
  font-size: 38px;
}
.stat-foot {
  color: #748198;
  font-size: 11px;
}
.stat-foot b {
  color: #315b89;
}
.section-heading h2 {
  font-size: 19px;
}
.section-heading h2 span {
  background: #dce6f2;
  color: #496c95;
  font-size: 11px;
}
.section-heading p {
  color: #748198;
  font-size: 13px;
}
.view-controls {
  border-color: var(--line);
}
.view-controls button {
  color: #7b8aa1;
}
.view-controls .selected {
  background: #fff;
  color: #1c416f;
}
.org-card:hover {
  box-shadow: 0 5px 15px #1c416f14;
}
.org-card h3 {
  font-size: 19px;
}
.org-card .industry,
.org-card-numbers small,
.org-card-footer {
  color: #728299;
  font-size: 12px;
}
.org-card-numbers {
  border-color: #dce4ed;
}
.org-card-numbers strong {
  font-size: 23px;
}
.org-card-footer .link {
  color: #1d497b;
  font-size: 12px;
}
.connected {
  color: #3b628b;
  background: #edf3f9;
  border-color: #d1deed;
  font-size: 10px;
}
.connected i,
.local-label i {
  background: #318db8;
}
.banner {
  background: #e0e9f4;
  border-color: #bdcfe3;
}
.banner h3 {
  font-size: 21px;
}
.banner p {
  color: #607b9a;
  font-size: 13px;
}
.banner-icon {
  background: #cfdef0;
  border-color: #adc3dc;
  color: #2b6095;
}
.banner .btn {
  background: #fff;
  border-color: #bdcfe3;
  color: #1c416f;
}
th {
  background: #d9e2ec;
  color: #758295;
  font-size: 10px;
  border-color: #d1dce9;
}
td {
  color: #355a87;
  font-size: 14px;
  border-color: #d8e1ed;
}
td strong {
  color: #234974;
  font-size: 14px;
}
td small {
  color: #748198;
  font-size: 12px;
}
.message-icon {
  background: #edf3f9;
  color: #357aa7;
}
.badge {
  background: #e6ebf1;
  color: #5a7089;
  font-size: 11px;
}
.badge.completed,
.badge.subscribed {
  background: #dceee7;
  color: #26715d;
}
.badge.queued,
.badge.sending {
  background: #dce8f9;
  color: #3266a6;
}
.badge.failed,
.badge.unsubscribed {
  background: #f4e5db;
  color: #9a5a31;
}
.badge.draft {
  background: #e7e3f3;
  color: #6a5b9d;
}
.footer-note {
  color: #7c8da1;
  font-size: 11px;
}
.tab {
  color: #6b8099;
  font-size: 14px;
}
.tab.active {
  color: #1c416f;
  border-color: #318fba;
}
.org-heading h1 {
  font-size: 35px;
}
.panel-title {
  font-size: 18px;
}
.panel-desc,
.field small,
.empty p {
  color: #71829a;
  font-size: 13px;
}
.field label {
  color: #355778;
  font-size: 13px;
}
.field label .optional {
  color: #8190a3;
}
input,
textarea,
select {
  background: #fff;
  color: #284c77;
  border-color: #cbd8e7;
  border-radius: 9px;
  font-size: 14px;
}
input::placeholder,
textarea::placeholder {
  color: #8593a7;
}
input:focus,
textarea:focus,
select:focus {
  border-color: #568fc4;
  box-shadow: 0 0 0 3px #3b83c21a;
}
input[type="checkbox"] {
  accent-color: #1c416f;
}
.notice {
  background: #f5ede1;
  color: #8c602f;
  border-color: #e3cfb4;
  font-size: 13px;
}
.notice.green,
.key-token {
  background: #e1ecf8;
  color: #365f8e;
  border-color: #c0d3eb;
}
.error-message {
  background: #f7e7df;
  color: #a14f38;
}
.empty {
  color: #748198;
}
.empty h3 {
  color: #1c416f;
}
.filter-row .searchbox {
  background: #fff;
}
.asset-image {
  background: repeating-conic-gradient(#eaf0f6 0% 25%, #fff 0% 50%) 50%/16px
    16px;
}
.asset-meta {
  font-size: 13px;
}
.asset-meta small {
  color: #7e8ea3;
  font-size: 11px;
}
.channel-switch {
  background: #e5edf6;
}
.channel-switch button {
  color: #637e9d;
  font-size: 13px;
}
.channel-switch button.selected {
  background: #fff;
  color: #1c416f;
}
.merge-row,
.preview-toolbar small,
.preview-foot,
.save-state {
  color: #7186a0;
  font-size: 12px;
}
.merge-row button {
  color: #2e689e;
  font-size: 12px;
}
.preview-toolbar h3 {
  font-size: 14px;
}
.preview-toolbar h3 svg {
  color: #3b7ba8;
}
.preview-frame {
  background: #dce6f0;
  border-color: #c5d4e5;
}
.preview-envelope {
  color: #6c829c;
  font-size: 13px;
}
.preview-envelope strong {
  color: #2b507d;
}
.preview-frame iframe,
.phone-frame {
  color-scheme: light;
  background: #fff;
}
.phone-frame {
  border-color: #284b74;
}
.phone-top {
  color: #71839a;
}
.phone-speaker {
  background: #284b74;
}
.sms-bubble {
  background: #e1ebf7;
  color: #294e7b;
}
.api-code {
  background: #143354;
  color: #e0ecf8;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.api-code .comment {
  color: #a0bad5;
}
.docs-endpoints li {
  border-color: var(--line);
}
.docs-endpoints code {
  color: #3a6d9b;
}
.checkbox {
  color: #526e90;
  font-size: 13px;
}
.login-story {
  background: #0d294b;
}
.login-story .brand,
.login-story h1 {
  color: #f6f7fa;
}
.login-story h1 em {
  color: #a9d2e7;
}
.login-story .brand-tag,
.login-story p,
.login-story footer {
  color: #b4c7db;
}
.orbit,
.orbit:before,
.orbit:after {
  border-color: #4e7ca54d;
}
.login-form > p,
.login-foot {
  color: #71829a;
}
.login-form .field label {
  font-size: 14px;
}
.login-foot {
  font-size: 12px;
}
.initial-loading span,
.modal-subtitle {
  color: #71829a;
}
.modal-subtitle {
  font-size: 14px;
}
.upload-drop {
  background: #eef4fa;
  border-color: #9bb8d7;
}
.upload-drop p {
  color: #607f9f;
  font-size: 13px;
}
.upload-drop input {
  background: #fff;
}
dialog::backdrop {
  background: #0d294b66;
}
#toast {
  background: #1c416f;
  color: #fff;
}
#toast.error {
  background: #9e583b;
}
.pager,
.demo-note {
  color: #72839c;
  font-size: 12px;
}
.spinner {
  border-color: #7a9dc1;
  border-top-color: transparent;
}
@media (max-width: 1200px) {
  .topbar-brand {
    flex-basis: 164px;
  }
}
@media (max-width: 760px) {
  .main {
    padding-top: 65px;
  }
  .sidebar {
    top: 65px;
  }
  .topbar {
    height: 65px;
    padding: 0 16px;
    gap: 12px;
  }
  .topbar-brand {
    flex: 0 0 auto;
    padding: 0;
    font-size: 25px;
    gap: 7px;
  }
  .topbar-brand img {
    width: 29px;
    height: 29px;
  }
  .mobile-menu {
    order: -1;
    padding: 7px;
    background: #fff;
    border: 1px solid var(--line);
  }
  .topbar-right {
    min-width: 0;
  }
  .topbar .searchbox {
    padding: 9px;
    min-width: 0;
  }
  .topbar .searchbox input {
    width: 100%;
    font-size: 12px;
  }
  .content {
    padding-top: 29px;
  }
  h1 {
    font-size: 31px;
  }
  .org-heading h1 {
    font-size: 28px;
  }
  .org-card h3 {
    font-size: 18px;
  }
  .stat-value {
    font-size: 32px;
  }
  .org-card-numbers strong {
    font-size: 21px;
  }
  .page-heading > .btn {
    font-size: 11px;
  }
  .subheading {
    font-size: 13px;
  }
  .section-heading h2 {
    font-size: 18px;
  }
  .banner p {
    font-size: 12px;
  }
}
/* Keep account controls together without truncating the profile name. */
.sidebar-bottom {
  padding-top: 20px;
}
.profile {
  display: grid;
  grid-template-columns: 31px minmax(0, 1fr);
  gap: 10px;
}
.profile-details {
  min-width: 0;
}
.profile-details strong {
  font-size: 13px;
  line-height: 1.4;
}
.profile-details small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 3px;
}
.profile-actions {
  grid-column: 2;
  display: flex;
  align-items: center;
  gap: 8px;
}
.profile-actions .icon-btn {
  margin-left: 0;
}
.profile-actions .icon-btn svg {
  width: 19px;
  height: 19px;
}
.account-settings-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 1000px) {
  .account-settings-grid {
    grid-template-columns: 1fr;
  }
}

/* Outpost device installation and phone app layout. */
.initial-loading > img {
  display: block;
  margin: 0 auto 18px;
}
.install-app {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 11px 12px;
  border: 1px solid #cdd9e7;
  border-radius: 10px;
  color: #1c416f;
  background: #eef4fa;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}
.sidebar-bottom > .install-app {
  margin-bottom: 18px;
}
.login-form > .install-app {
  margin-top: 22px;
}
.installed-app .install-app {
  display: none;
}
.install-dialog {
  width: min(480px, calc(100% - 32px));
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  padding: 28px;
}
.install-heading {
  display: flex;
  gap: 16px;
  align-items: center;
}
.install-heading img {
  flex-shrink: 0;
  border-radius: 18px;
}
.install-heading h2 {
  font-size: 23px;
  margin: 0 0 8px;
  letter-spacing: -0.5px;
}
.install-heading p,
.install-note {
  color: #60758f;
  line-height: 1.6;
  font-size: 13px;
}
.install-heading p {
  margin: 0;
}
.install-dialog ol {
  padding-left: 22px;
  margin: 24px 0;
  line-height: 1.7;
}
.install-dialog li + li {
  margin-top: 12px;
}
.install-dialog form {
  display: flex;
  justify-content: flex-end;
  margin-top: 24px;
}
.offline-page {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 28px;
  background: #f5f7fb;
}
.offline-card {
  max-width: 400px;
  text-align: center;
}
.offline-card img {
  margin-bottom: 28px;
}
.offline-card h1 {
  font-size: 36px;
}
.offline-card p {
  color: #60758f;
  line-height: 1.7;
  margin-bottom: 28px;
}
@media (max-width: 760px) {
  .topbar {
    height: calc(65px + env(safe-area-inset-top, 0px));
    padding-top: env(safe-area-inset-top, 0px);
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
  }
  .main {
    padding-top: calc(65px + env(safe-area-inset-top, 0px));
    min-width: 0;
  }
  .sidebar {
    top: calc(65px + env(safe-area-inset-top, 0px));
    padding-bottom: max(20px, env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    overscroll-behavior: contain;
    max-width: calc(100vw - 48px);
  }
  .content {
    padding-left: max(18px, env(safe-area-inset-left, 0px));
    padding-right: max(18px, env(safe-area-inset-right, 0px));
    padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  }
  .topbar .searchbox input,
  input,
  select,
  textarea {
    font-size: 16px;
  }
  .topbar .searchbox {
    width: 100%;
  }
  .topbar-right {
    flex: 1;
  }
  .topbar .searchbox input {
    min-width: 0;
  }
  .mobile-menu,
  .icon-btn {
    min-width: 44px;
    min-height: 44px;
  }
  .login-story {
    padding: calc(24px + env(safe-area-inset-top, 0px))
      max(24px, env(safe-area-inset-left, 0px)) 26px;
    min-height: 0;
  }
  .login-story h1 {
    font-size: clamp(29px, 8vw, 38px);
    margin: 23px 0 12px;
  }
  .login-story p {
    font-size: 13px;
    line-height: 1.7;
  }
  .login-story .brand {
    font-size: 28px;
  }
  .login-story .brand img {
    width: 36px;
    height: 36px;
  }
  .login-main {
    padding: 30px max(24px, env(safe-area-inset-right, 0px))
      calc(32px + env(safe-area-inset-bottom, 0px));
  }
  .login-form {
    width: 100%;
    min-width: 0;
  }
  .page-heading {
    flex-wrap: wrap;
  }
  .page-heading > .btn {
    margin-top: 0;
    min-height: 44px;
    font-size: 13px;
  }
  .tabs {
    overflow-x: auto;
    max-width: 100%;
  }
  .tab {
    min-height: 44px;
    flex-shrink: 0;
  }
  .button-row {
    flex-wrap: wrap;
  }
  .panel,
  .content,
  .composer-layout,
  .settings-grid {
    min-width: 0;
  }
  dialog {
    max-width: calc(100vw - 24px);
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
  }
  #toast {
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    max-width: calc(100vw - 32px);
  }
}
@media (max-width: 380px) {
  .topbar {
    flex-wrap: wrap;
    height: calc(116px + env(safe-area-inset-top, 0px));
    align-content: center;
    row-gap: 6px;
  }
  .topbar-right {
    flex: 0 0 100%;
  }
  .topbar .searchbox {
    padding: 7px 10px;
  }
  .main {
    padding-top: calc(116px + env(safe-area-inset-top, 0px));
  }
  .sidebar {
    top: calc(116px + env(safe-area-inset-top, 0px));
  }
  .install-dialog {
    padding: 22px;
  }
  .install-heading {
    align-items: flex-start;
  }
  .install-heading img {
    width: 48px;
    height: 48px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sidebar {
    transition: none;
  }
}
@media (max-width: 540px) {
  .org-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .org-card {
    min-width: 0;
  }
}

/* Keep the simplified login branding centered at every screen size. */
@media (max-width: 760px) {
  .login-layout {
    grid-template-rows: auto 1fr;
  }
  .login-story {
    padding: calc(40px + env(safe-area-inset-top, 0px)) 24px 40px;
  }
  .login-story .brand {
    font-size: 48px;
  }
  .login-story .brand img {
    width: 64px;
    height: 64px;
  }
  .login-story .login-subtitle {
    margin-top: 16px;
    font-size: 18px;
  }
  .login-form {
    max-width: 330px;
  }
}

/* Approved Outpost paper-plane identity: use the complete vector lockup. */
.login-story .brand img {
  display: block;
  width: min(420px, 100%);
  height: auto;
}
.topbar-brand img {
  display: block;
  width: 172px;
  height: auto;
}
.initial-loading > img {
  width: min(240px, 80vw);
  height: auto;
}
@media (max-width: 760px) {
  .login-story .brand img {
    width: min(310px, 100%);
    height: auto;
  }
  .topbar-brand img {
    width: 142px;
    height: auto;
  }
}

/* Organization management */
.overview-stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.view-organization {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  padding: 8px 0;
}
.org-logo picture,
.org-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.org-logo:has(picture) {
  background: transparent;
  padding: 4px;
}
.org-heading .org-logo.full {
  width: 150px;
  min-width: 90px;
  max-width: 30vw;
  height: 65px;
  border-radius: 8px;
}
.branding-panel {
  margin-bottom: 28px;
}
.logo-slots {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 22px 0;
}
.logo-slot {
  min-width: 0;
}
.logo-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 14px;
}
.logo-preview.light {
  background: #fff;
  color: #6b7280;
}
.logo-preview.dark {
  background: #0d2037;
  color: #d8e3f0;
}
.logo-preview img {
  max-width: 100%;
  max-height: 80px;
  object-fit: contain;
}
.logo-preview.tiny img {
  max-width: 48px;
  max-height: 48px;
}
.recipient-filters {
  display: flex;
  align-items: end;
  gap: 14px;
  flex-wrap: wrap;
}
.recipient-filters .field {
  margin: 0;
  min-width: 150px;
}
.recipient-filters .field label {
  font-size: 11px;
}
.list-channels {
  width: fit-content;
  margin-bottom: 22px;
}
.org-card-footer {
  gap: 12px;
  flex-wrap: wrap;
}
@media (max-width: 1100px) {
  .logo-slots {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 540px) {
  .overview-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .logo-slots {
    grid-template-columns: 1fr;
  }
  .recipient-filters,
  .recipient-filters .searchbox {
    width: 100%;
  }
  .filter-row {
    align-items: stretch;
    gap: 14px;
  }
  .org-heading {
    align-items: flex-start;
  }
}

.list-channels button {
  white-space: nowrap;
  flex: 0 0 auto;
}
.organization-workspace .tab.active {
  border-color: var(--org-color);
  color: var(--org-secondary);
}
.organization-workspace .org-heading h1 {
  color: var(--org-secondary);
}
.organization-workspace .org-heading .eyebrow {
  color: var(--org-color);
}
@media (prefers-color-scheme: dark) {
  .org-logo:has(picture) {
    background: var(--org-secondary, #0d294b);
  }
}
.org-logo:has(picture) {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.org-logo picture {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}
.org-logo img {
  max-width: 100%;
  max-height: 100%;
}
.org-heading .org-logo.full:not(:has(picture)) {
  width: 65px;
  min-width: 65px;
}
