@font-face {
  font-family: Inter;
  src: url("inter-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font:
    14px/1.5 Inter,
    "Segoe UI",
    sans-serif;
  background: var(--background);
  color: var(--foreground);
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--card);
  min-height: 38px;
  padding: 8px 13px;
  font-weight: 550;
}
button:hover {
  background: var(--muted);
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.primary:hover {
  background: #0059dd;
}
.quiet {
  border-color: transparent;
  background: none;
}
.danger {
  color: #b42332;
}
a {
  color: var(--primary);
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 29px;
  font-weight: 650;
  letter-spacing: -0.9px;
  line-height: 1.25;
}
h2 {
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.3px;
}
h3 {
  font-size: 15px;
}
p {
  color: var(--muted-foreground);
}
small {
  font-size: 12px;
}
:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 3px;
}
.skip {
  position: fixed;
  top: -70px;
  left: 20px;
  z-index: 99;
  padding: 12px;
  background: var(--card);
}
.skip:focus {
  top: 10px;
}
.topbar {
  height: 66px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 27px;
  background: #09090b;
  color: #f4f4f5;
  border-bottom: 1px solid #25262c;
}
.topbar img {
  width: 81px;
  height: 36px;
  object-fit: contain;
}
.brand {
  font-size: 17px;
  letter-spacing: -0.3px;
}
.brand small {
  font-size: 12px;
  display: block;
  color: #a1a1aa;
  letter-spacing: 0;
}
.divider {
  height: 27px;
  border-left: 1px solid #393a40;
}
.right {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  font-size: 12px;
}
.topbar button {
  background: #18191d;
  color: #f4f4f5;
  border-color: #393a40;
}
.role {
  color: #9bc3ff;
  background: #142748;
  border: 1px solid #2a4978;
  border-radius: 5px;
  padding: 3px 8px;
  font-size: 11px;
  text-transform: capitalize;
}
.layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  min-height: calc(100vh - 66px);
}
aside {
  padding: 22px 12px;
  background: var(--card);
  border-right: 1px solid var(--border);
}
.nav-label {
  padding: 0 12px 9px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.3px;
  color: var(--muted-foreground);
  font-weight: 650;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  border: 0;
  background: none;
  margin: 3px 0;
  padding: 10px 12px;
  font-size: 13px;
  color: var(--muted-foreground);
}
.icon {
  width: 18px;
  height: 18px;
  flex: none;
}
.nav-item.active {
  background: var(--accent);
  color: var(--accent-foreground);
}
.nav-group {
  margin-top: 26px;
}
.aside-note {
  font-size: 11px;
  padding: 14px 12px;
  border-top: 1px solid var(--border);
  margin-top: 28px;
  line-height: 1.7;
}
.main {
  padding: 27px 32px 40px;
  max-width: 1700px;
  width: 100%;
  margin: 0 auto;
}
.eyebrow {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted-foreground);
  margin-bottom: 9px;
  font-weight: 650;
}
.hero {
  display: flex;
  align-items: start;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 24px;
}
.hero p {
  margin-top: 9px;
  max-width: 700px;
  font-size: 13px;
}
.actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.hero .actions {
  padding-top: 6px;
}
.ribbon {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px 17px;
  margin-bottom: 22px;
}
.ribbon .label {
  font-size: 11px;
  color: var(--muted-foreground);
  margin-right: 7px;
}
.spacer {
  margin-left: auto;
}
.ribbon small {
  color: var(--muted-foreground);
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}
.stat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.stat > span {
  display: block;
  font-size: 12px;
  color: var(--muted-foreground);
}
.stat strong {
  font-size: 33px;
  display: block;
  letter-spacing: -1px;
  margin: 9px 0 4px;
  font-weight: 650;
}
.stat small {
  color: var(--muted-foreground);
  font-size: 11px;
}
.panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}
.panel-head {
  padding: 20px 22px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.panel-head p {
  margin-top: 5px;
  font-size: 12px;
}
.panel-body {
  padding: 22px;
}
.grid2 {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
}
.step {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.step:last-child {
  border: 0;
}
.step-number {
  height: 28px;
  width: 28px;
  display: grid;
  place-items: center;
  flex: none;
  color: var(--accent-foreground);
  background: var(--accent);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 650;
}
.step p {
  font-size: 12px;
  margin-top: 5px;
  line-height: 1.7;
}
.step button {
  margin-left: auto;
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}
th {
  padding: 13px 20px;
  background: var(--muted);
  color: var(--muted-foreground);
  font-weight: 550;
  font-size: 11px;
  white-space: nowrap;
}
td {
  padding: 15px 20px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
td small {
  display: block;
  margin-top: 4px;
  color: var(--muted-foreground);
}
tbody tr:hover {
  background: var(--muted);
}
.badge {
  display: inline-block;
  padding: 3px 8px;
  border: 1px solid var(--border);
  background: var(--muted);
  border-radius: 5px;
  font-size: 10px;
  text-transform: capitalize;
  white-space: nowrap;
}
.blue {
  color: var(--accent-foreground);
  background: var(--accent);
}
.green {
  color: #087754;
  background: #e8f7ef;
  border-color: #c4e6d4;
}
.amber {
  color: #976408;
  background: #fff6dd;
  border-color: #f0dfa6;
}
.red {
  color: #a72438;
  background: #fff0f1;
  border-color: #edd0d5;
}
[data-theme="dark"] .green {
  color: #7ee3b6;
  background: #123128;
  border-color: #255346;
}
[data-theme="dark"] .amber {
  color: #f5cc78;
  background: #352b12;
  border-color: #66532b;
}
.empty {
  padding: 58px 22px;
  text-align: center;
}
.empty-icon {
  display: inline-grid;
  place-items: center;
  background: var(--accent);
  color: var(--accent-foreground);
  height: 48px;
  width: 48px;
  border-radius: 12px;
  margin-bottom: 18px;
}
.empty h3 {
  font-size: 17px;
}
.empty p {
  max-width: 430px;
  margin: 9px auto 20px;
  font-size: 13px;
  line-height: 1.8;
}
.search {
  display: flex;
  gap: 10px;
}
.search input {
  width: 250px;
}
input,
select,
textarea {
  border: 1px solid var(--input);
  background: var(--card);
  border-radius: 7px;
  padding: 9px 11px;
  min-height: 40px;
  min-width: 0;
}
input[type="checkbox"] {
  min-height: auto;
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
}
textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.6;
}
.footer {
  display: flex;
  justify-content: space-between;
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  color: var(--muted-foreground);
  font-size: 11px;
  align-items: center;
  gap: 10px;
}
.note {
  padding: 14px 17px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--muted);
  font-size: 12px;
  line-height: 1.8;
  margin: 0 0 20px;
  color: var(--muted-foreground);
}
.note strong {
  color: var(--foreground);
}
.provider-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.provider {
  padding: 22px;
}
.provider h3 {
  font-size: 17px;
}
.provider .badge {
  margin: 13px 0;
}
.provider p {
  font-size: 12px;
  line-height: 1.8;
  min-height: 44px;
  margin-bottom: 18px;
}
.provider .actions {
  margin-top: 20px;
}
.page-foot {
  color: var(--muted-foreground);
  font-size: 10px;
  display: flex;
  gap: 12px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.page-foot span:last-child {
  margin-left: auto;
}
dialog {
  width: min(660px, calc(100vw - 32px));
  max-height: 92dvh;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--foreground);
  background: var(--card);
  box-shadow: 0 30px 100px #0005;
}
dialog.wide {
  width: min(980px, calc(100vw - 32px));
}
dialog::backdrop {
  background: #0008;
}
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 21px 24px;
  border-bottom: 1px solid var(--border);
}
.dialog-head h2 {
  font-size: 20px;
}
.dialog-content {
  padding: 24px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}
.form-grid label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  font-weight: 550;
}
.form-grid input,
.form-grid textarea,
.form-grid select {
  width: 100%;
  font-weight: 400;
}
.full {
  grid-column: 1/-1;
}
.hint {
  font-weight: 400;
  font-size: 11px;
  color: var(--muted-foreground);
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 23px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.form-error {
  font-size: 12px;
  white-space: pre-wrap;
  color: #b42332;
  margin-top: 15px;
}
.auth {
  min-height: 100vh;
  display: grid;
  place-content: center;
  padding: 25px;
}
.auth-card {
  width: min(440px, calc(100vw - 40px));
  padding: 30px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0 0 14px 14px;
  box-shadow: var(--shadow-sm);
}
.wordmark {
  background: #09090b;
  padding: 24px 30px;
  border-radius: 14px 14px 0 0;
  display: flex;
  gap: 15px;
  align-items: center;
  color: #fff;
  width: min(440px, calc(100vw - 40px));
}
.wordmark img {
  width: 84px;
  height: 36px;
  object-fit: contain;
}
.auth-card h1 {
  font-size: 23px;
}
.auth-card p {
  font-size: 12px;
  line-height: 1.8;
  margin: 10px 0 23px;
}
.auth form {
  display: grid;
  gap: 17px;
}
.auth label {
  font-size: 12px;
  display: grid;
  gap: 7px;
}
.auth input {
  width: 100%;
}
.timeline {
  padding: 0;
  list-style: none;
  max-height: 340px;
  overflow: auto;
  margin: 20px 0;
}
.timeline li {
  padding: 14px 0 14px 15px;
  border-left: 2px solid var(--border);
  margin: 0 0 8px;
}
.timeline p {
  font-size: 12px;
  white-space: pre-wrap;
  margin-top: 8px;
}
.timeline small {
  color: var(--muted-foreground);
}
pre {
  font-size: 11px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 290px;
  overflow: auto;
  padding: 15px;
  background: var(--muted);
  border-radius: 7px;
}
#toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--foreground);
  color: var(--card);
  border-radius: 8px;
  padding: 12px 18px;
  box-shadow: 0 6px 30px #0003;
  z-index: 999;
  max-width: 500px;
  font-size: 12px;
}
#toast:empty {
  display: none;
}
.error-state {
  padding: 30px;
  color: #b42332;
}
.check-label {
  display: flex !important;
  align-items: start;
  gap: 9px;
}
.check-label input {
  width: 16px;
  margin-top: 2px;
  flex: none;
}
.connection-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}
.connection-row:last-child {
  border: 0;
}
.connection-row span {
  color: var(--muted-foreground);
}
.mobile-toggle {
  display: none;
}
@media (max-width: 1100px) {
  .layout {
    grid-template-columns: 180px minmax(0, 1fr);
  }
  .main {
    padding: 24px;
  }
  .stats {
    gap: 10px;
  }
  .grid2 {
    grid-template-columns: 1fr;
  }
  .stat {
    padding: 17px;
  }
  .hero {
    flex-wrap: wrap;
  }
  .topbar {
    padding: 0 20px;
  }
  .right > span {
    display: none;
  }
}
@media (max-width: 760px) {
  .layout {
    display: block;
  }
  aside {
    display: none;
  }
  .menu-open aside {
    display: block;
  }
  .mobile-toggle {
    display: block;
  }
  .topbar {
    padding: 0 14px;
    gap: 10px;
  }
  .brand {
    font-size: 15px;
  }
  .topbar img {
    width: 62px;
  }
  .right {
    gap: 6px;
  }
  .topbar button {
    font-size: 11px;
    padding: 6px 8px;
  }
  .divider {
    display: none;
  }
  .main {
    padding: 23px 14px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .provider-grid {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 26px;
  }
  .panel-head {
    padding: 17px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-grid .full {
    grid-column: 1;
  }
  .dialog-content {
    padding: 18px;
  }
  .dialog-head {
    padding: 16px 18px;
  }
  .search {
    width: 100%;
  }
  .search input {
    width: 100%;
  }
  .ribbon {
    padding: 12px;
  }
  .ribbon .label {
    width: 100%;
  }
  .spacer {
    margin: 0;
  }
  .page-foot {
    flex-wrap: wrap;
  }
  .page-foot span:last-child {
    margin: 0;
  }
  .footer {
    flex-wrap: wrap;
  }
  th,
  td {
    padding: 12px;
  }
  input,
  select,
  textarea {
    font-size: 16px;
  }
  .step {
    flex-wrap: wrap;
  }
  .step button {
    margin-left: 42px;
  }
  .brand small,
  .role {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

.campaign-step {
  border: 1px solid var(--border, #dce1e8);
  border-radius: 10px;
  padding: 16px;
  margin: 0 0 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.campaign-step legend {
  font-weight: 700;
  padding: 0 6px;
}
.message-preview {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: inherit;
  padding: 16px;
  background: var(--background);
  border-radius: 8px;
}
@media (max-width: 600px) {
  .campaign-step {
    grid-template-columns: 1fr;
  }
}
