* {
  box-sizing: border-box;
}

:root {
  color-scheme: light;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  color: #172033;
  background: #f5f7fb;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 90% 0%, #e9edff 0, transparent 28%),
    #f5f7fb;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.hidden {
  display: none !important;
}

/* Login */

.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(460px, 1.15fr) minmax(420px, 0.85fr);
  background: #fff;
}

.login-visual {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  padding: 48px 64px;
  color: #fff;
  background:
    radial-gradient(circle at 75% 25%, #6d7cff55, transparent 24%),
    linear-gradient(145deg, #111936 0%, #1b2752 55%, #202f65 100%);
}

.login-visual::before,
.login-visual::after {
  position: absolute;
  content: "";
  border: 1px solid #ffffff14;
  border-radius: 50%;
}

.login-visual::before {
  width: 620px;
  height: 620px;
  right: -240px;
  bottom: -260px;
}

.login-visual::after {
  width: 420px;
  height: 420px;
  right: -135px;
  bottom: -160px;
}

.product-logo,
.sidebar-logo,
.mobile-logo {
  display: flex;
  align-items: center;
  gap: 11px;
  color: inherit;
  font-size: 21px;
  font-weight: 760;
  letter-spacing: -0.4px;
  text-decoration: none;
}

.logo-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  background: linear-gradient(135deg, #7c89ff, #5062e9);
  box-shadow: 0 8px 22px #4053d655;
}

.login-copy {
  position: relative;
  z-index: 2;
  max-width: 620px;
  margin-top: clamp(130px, 22vh, 220px);
}

.eyebrow {
  color: #7180ee;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.8px;
}

.login-copy .eyebrow {
  color: #9eabff;
}

.login-copy h1 {
  max-width: 600px;
  margin: 18px 0;
  font-size: clamp(46px, 5vw, 76px);
  line-height: 1.02;
  letter-spacing: -3.5px;
}

.login-copy p {
  max-width: 580px;
  margin: 0;
  color: #bac4e3;
  font-size: 18px;
  line-height: 1.7;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 38px;
}

.trust-row span {
  padding: 9px 13px;
  border: 1px solid #ffffff1f;
  border-radius: 999px;
  color: #dbe1f8;
  font-size: 12px;
  background: #ffffff0d;
  backdrop-filter: blur(8px);
}

.visual-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  right: 8%;
  top: 12%;
  border-radius: 50%;
  background: #6577ff;
  filter: blur(130px);
  opacity: 0.2;
}

.login-panel {
  display: grid;
  place-items: center;
  padding: 48px;
  background: #fff;
}

.login-card {
  width: min(100%, 420px);
}

.mobile-logo {
  display: none;
  margin-bottom: 48px;
}

.login-card h2 {
  margin: 12px 0 8px;
  color: #151d31;
  font-size: 34px;
  letter-spacing: -1.2px;
}

.login-card > p {
  margin: 0 0 34px;
  color: #7a8499;
}

label {
  display: grid;
  gap: 8px;
  color: #3c465b;
  font-size: 13px;
  font-weight: 650;
}

.login-card label {
  margin-bottom: 18px;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid #dce1eb;
  border-radius: 10px;
  outline: none;
  color: #172033;
  background: #fff;
  transition:
    border-color 0.18s,
    box-shadow 0.18s;
}

input,
select {
  min-height: 45px;
  padding: 0 13px;
}

textarea {
  min-height: 105px;
  padding: 13px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: #6675ed;
  box-shadow: 0 0 0 4px #6675ed15;
}

input::placeholder,
textarea::placeholder {
  color: #a2aabb;
}

.primary-button {
  min-height: 46px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  font-weight: 750;
  background: linear-gradient(135deg, #6878f4, #5162df);
  box-shadow: 0 8px 20px #5263df33;
  transition:
    transform 0.18s,
    box-shadow 0.18s;
}

.primary-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px #5263df40;
}

.login-card .primary-button {
  width: 100%;
  margin-top: 8px;
}

.message {
  min-height: 20px;
  margin-top: 12px;
  color: #d97706;
  font-size: 13px;
}

.secure-note {
  display: block;
  margin-top: 18px;
  color: #a1a9b8;
  text-align: center;
}

/* Application shell */

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 28px 20px 22px;
  border-right: 1px solid #e6e9f0;
  background: #fff;
}

.sidebar-logo {
  padding: 0 10px 28px;
}

.sidebar nav {
  display: grid;
  gap: 5px;
}

.nav-label {
  margin: 12px 11px 8px;
  color: #a1a9b8;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.4px;
}

.nav-item {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 12px;
  border-radius: 10px;
  color: #687287;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}

.nav-item.active {
  color: #5363dc;
  background: #f0f2ff;
}

.nav-item.muted {
  cursor: default;
}

.nav-icon {
  width: 22px;
  color: #8993a7;
  font-size: 19px;
  text-align: center;
}

.nav-item.active .nav-icon {
  color: #5363dc;
}

.soon {
  margin-left: auto;
  padding: 3px 7px;
  border-radius: 999px;
  color: #929bad;
  font-size: 9px;
  background: #f0f2f6;
}

.sidebar-footer {
  margin-top: auto;
}

.server-status {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px;
  border: 1px solid #e8ebf1;
  border-radius: 12px;
  background: #fafbfc;
}

.status-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  margin-top: 4px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px #22c55e17;
}

.server-status strong,
.server-status small {
  display: block;
}

.server-status strong {
  color: #3c465b;
  font-size: 11px;
}

.server-status small {
  margin-top: 3px;
  color: #929bad;
  font-size: 10px;
}

.main-content {
  min-width: 0;
  padding: 36px 42px 48px;
}

.topbar {
  max-width: 1500px;
  margin: 0 auto 28px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.breadcrumb {
  color: #9099ac;
  font-size: 12px;
}

.topbar h1 {
  margin: 10px 0 6px;
  color: #161e31;
  font-size: 30px;
  letter-spacing: -1px;
}

.topbar p {
  margin: 0;
  color: #7d879b;
  font-size: 14px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.secure-badge {
  padding: 8px 11px;
  border: 1px solid #dfe4ec;
  border-radius: 999px;
  color: #687287;
  font-size: 11px;
  background: #fff;
}

.ghost-button {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid #dfe4ec;
  border-radius: 9px;
  color: #4f596d;
  font-weight: 650;
  background: #fff;
}

.designer-grid {
  max-width: 1500px;
  margin: auto;
  display: grid;
  grid-template-columns: minmax(340px, 430px) minmax(520px, 1fr);
  gap: 24px;
  align-items: start;
}

.editor-card,
.preview-card {
  overflow: hidden;
  border: 1px solid #e3e7ee;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 32px #26324f0a;
}

.section-heading {
  padding: 22px 24px 18px;
  border-bottom: 1px solid #edf0f5;
}

.section-heading > div,
.preview-toolbar > div:first-child {
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-heading h2 {
  margin: 0;
  font-size: 16px;
}

.section-heading p {
  margin: 7px 0 0 34px;
  color: #939bad;
  font-size: 11px;
}

.step-number {
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 7px;
  color: #5b6ae3;
  font-size: 9px;
  font-weight: 800;
  background: #eef0ff;
}

.form-body {
  display: grid;
  gap: 18px;
  padding: 22px 24px;
}

label small {
  color: #9aa2b3;
  font-size: 10px;
  font-weight: 500;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.color-field {
  min-height: 45px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 10px;
  border: 1px solid #dce1eb;
  border-radius: 10px;
  color: #697387;
  font-size: 12px;
}

.color-field input[type="color"] {
  width: 28px;
  min-height: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  overflow: hidden;
}

.switch-row {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 13px;
  border: 1px solid #e3e7ee;
  border-radius: 11px;
  background: #fafbfc;
}

.switch-row strong,
.switch-row small {
  display: block;
}

.switch-row strong {
  color: #3d475b;
  font-size: 12px;
}

.switch-row small {
  margin-top: 4px;
}

.switch-row input {
  width: 42px;
  min-height: 23px;
  height: 23px;
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: #ccd2de;
  cursor: pointer;
}

.switch-row input::before {
  display: block;
  width: 17px;
  height: 17px;
  margin: 3px;
  content: "";
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 5px #0002;
  transition: transform 0.18s;
}

.switch-row input:checked {
  background: #6171e9;
}

.switch-row input:checked::before {
  transform: translateX(19px);
}

.editor-footer {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 15px;
  padding: 14px 24px;
  border-top: 1px solid #edf0f5;
  background: #fbfcfd;
}

.editor-footer .message {
  margin: 0 auto 0 0;
}

.save-button {
  width: auto;
  min-width: 140px;
  padding: 0 18px;
}

.preview-card {
  position: sticky;
  top: 24px;
}

.preview-toolbar {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid #e9edf3;
}

.preview-toolbar strong {
  font-size: 13px;
}

.device-switch {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 9px;
  background: #f0f2f6;
}

.device-switch button {
  min-width: 82px;
  min-height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 7px;
  color: #7a8498;
  font-size: 11px;
  font-weight: 700;
  background: transparent;
}

.device-switch button.active {
  color: #4f5fd9;
  background: #fff;
  box-shadow: 0 2px 8px #1e2a4512;
}

.preview-stage {
  min-height: 640px;
  display: grid;
  place-items: center;
  padding: 32px;
  background:
    linear-gradient(#e7eaf0 1px, transparent 1px),
    linear-gradient(90deg, #e7eaf0 1px, transparent 1px),
    #f4f6f9;
  background-size: 24px 24px;
}

.device {
  width: 100%;
  max-width: 920px;
  overflow: hidden;
  border: 1px solid #cbd1db;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 25px 60px #26324f20;
  transition:
    width 0.25s,
    max-width 0.25s;
}

.device.desktop {
  max-width: 920px;
}

.device.mobile {
  width: 370px;
  max-width: 100%;
  border-radius: 24px;
}

.browser-bar {
  height: 44px;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 0 15px;
  border-bottom: 1px solid #e6e9ef;
  background: #f9fafb;
}

.browser-dots {
  display: flex;
  gap: 5px;
}

.browser-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d1d6df;
}

.browser-address {
  flex: 1;
  max-width: 360px;
  padding: 6px 12px;
  border-radius: 7px;
  color: #9aa2b2;
  font-size: 9px;
  background: #eef1f5;
}

.fake-site {
  position: relative;
  height: 500px;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 20%, #dfe4ff, transparent 30%),
    linear-gradient(145deg, #f8f9fc, #edf1f8);
}

.fake-nav {
  height: 58px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 25px;
  border-bottom: 1px solid #e5e9f0;
  background: #ffffffcc;
}

.fake-logo {
  width: 70px !important;
  height: 18px !important;
  margin-right: auto;
  background: #b8c1d5 !important;
}

.fake-nav span {
  width: 42px;
  height: 8px;
  border-radius: 999px;
  background: #d7dce6;
}

.fake-content {
  width: 55%;
  margin: 95px auto 0;
  display: grid;
  gap: 13px;
}

.fake-content span {
  height: 13px;
  border-radius: 999px;
  background: #dce1eb;
}

.fake-content span:first-child {
  width: 72%;
  height: 28px;
  margin: 0 auto 8px;
  background: #cbd3e3;
}

.preview-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  transition: background 0.2s;
}

.preview-overlay.dark {
  background: #10182ca8;
  backdrop-filter: blur(1.5px);
}

.preview-overlay.bottom {
  align-items: flex-end;
}

.popup-preview {
  width: min(100%, 390px);
  padding: 20px;
  border: 1px solid #ffffff80;
  border-radius: 14px;
  color: #1e2638;
  background: #fff;
  box-shadow: 0 24px 70px #11182738;
  animation: popup-in 0.25s ease-out;
}

@keyframes popup-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
}

.popup-heading {
  display: flex;
  align-items: center;
  gap: 11px;
}

.popup-heading strong {
  font-size: 13px;
}

.notification-icon {
  width: 38px;
  height: 38px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border-radius: 11px;
  color: #5969df;
  background: #eef0ff;
}

.notification-icon img {
  width: 100%;
  height: 100%;
  display: none;
  object-fit: cover;
}

.notification-icon img.visible {
  display: block;
}

.notification-icon:has(img.visible) .fallback-bell {
  display: none;
}

.fallback-bell {
  font-size: 20px;
}

.popup-preview > p {
  margin: 14px 0 18px;
  color: #6e7789;
  font-size: 12px;
  line-height: 1.55;
}

.popup-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.popup-actions button {
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  font-size: 10px;
  font-weight: 750;
  background: #6171e9;
}

.popup-actions button.later {
  color: #596276;
  background: #edf0f4;
}

.preview-note {
  padding: 13px 20px;
  border-top: 1px solid #e9edf3;
  color: #9099aa;
  font-size: 10px;
  text-align: center;
}

/* Responsive */

@media (max-width: 1150px) {
  .designer-grid {
    grid-template-columns: 1fr;
  }

  .preview-card {
    position: static;
  }

  .preview-card {
    order: -1;
  }

  .preview-stage {
    min-height: 520px;
  }

  .fake-site {
    height: 400px;
  }
}

@media (max-width: 850px) {
  .login-page {
    grid-template-columns: 1fr;
  }

  .login-visual {
    display: none;
  }

  .mobile-logo {
    display: flex;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    width: 100%;
    height: auto;
    display: block;
    padding: 18px;
    border-right: 0;
    border-bottom: 1px solid #e6e9f0;
  }

  .sidebar nav,
  .sidebar-footer {
    display: none;
  }

  .sidebar-logo {
    padding: 0;
  }

  .main-content {
    padding: 24px 18px 40px;
  }

  .topbar {
    align-items: center;
  }

  .secure-badge {
    display: none;
  }
}

@media (max-width: 600px) {
  .login-panel {
    padding: 30px 22px;
  }

  .topbar {
    display: block;
  }

  .topbar-actions {
    margin-top: 18px;
  }

  .designer-grid {
    gap: 16px;
  }

  .field-grid {
    grid-template-columns: 1fr;
  }

  .preview-toolbar {
    display: block;
  }

  .device-switch {
    margin-top: 12px;
  }

  .preview-stage {
    min-height: 510px;
    padding: 14px;
  }

  .device.desktop {
    max-width: 100%;
  }

  .fake-site {
    height: 420px;
  }

  .popup-preview {
    padding: 17px;
  }

  .popup-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .popup-actions button {
    width: 100%;
  }

  .editor-footer {
    display: block;
  }

  .save-button {
    width: 100%;
  }
}
.installation-block {
  padding: 22px 24px;
  border-top: 1px solid #edf0f5;
  background: #fff;
}

.installation-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.installation-heading > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.installation-heading strong {
  color: #30394c;
  font-size: 13px;
}

.installation-heading > span {
  padding: 5px 9px;
  border-radius: 999px;
  color: #5262dc;
  font-size: 9px;
  font-weight: 750;
  background: #eef0ff;
}

.installation-block > p {
  margin: 12px 0 14px;
  color: #8790a2;
  font-size: 11px;
  line-height: 1.6;
}

.code-box {
  position: relative;
  min-height: 100px;
  padding: 16px 76px 16px 16px;
  overflow: auto;
  border: 1px solid #29334a;
  border-radius: 11px;
  color: #cbd5f4;
  background: #111827;
}

.code-box code {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #cbd5f4;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  line-height: 1.7;
}

.code-box button {
  position: absolute;
  top: 10px;
  right: 10px;
  width: auto;
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid #ffffff1f;
  border-radius: 7px;
  color: #e5eaff;
  font-size: 9px;
  font-weight: 750;
  background: #ffffff12;
}

.code-box button:hover {
  background: #ffffff20;
}

.installation-note {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 9px;
  color: #55705e;
  font-size: 10px;
  background: #eff9f2;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #10182cb8;
  backdrop-filter: blur(5px);
}

.labels-modal {
  width: min(100%, 960px);
  max-height: calc(100vh - 48px);
  overflow: auto;
  border: 1px solid #e2e6ed;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 35px 100px #0004;
}

.modal-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 24px 28px;
  border-bottom: 1px solid #e9edf3;
  background: #fff;
}

.modal-header h2 {
  margin: 8px 0 4px;
  color: #172033;
  font-size: 24px;
  letter-spacing: -0.7px;
}

.modal-header p {
  margin: 0;
  color: #8790a2;
  font-size: 12px;
}

.modal-close {
  width: 36px;
  height: 36px;
  border: 1px solid #e1e5ec;
  border-radius: 9px;
  color: #6f798b;
  font-size: 22px;
  background: #fff;
}

.modal-close:hover {
  color: #273147;
  background: #f4f6f8;
}

.labels-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 480px;
}

.label-form,
.existing-labels {
  padding: 26px 28px;
}

.label-form {
  display: grid;
  align-content: start;
  gap: 18px;
  border-right: 1px solid #e9edf3;
}

.form-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.form-section-title strong {
  color: #30394c;
  font-size: 13px;
}

.label-form textarea {
  min-height: 118px;
}

.label-form .primary-button {
  width: 100%;
}

.labels-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.label-item {
  padding: 15px;
  border: 1px solid #e5e9f0;
  border-radius: 12px;
  background: #fafbfc;
}

.label-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.label-item-name {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #30394c;
  font-size: 13px;
  font-weight: 750;
}

.label-avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 9px;
  color: #5969df;
  background: #eef0ff;
}

.label-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.label-site-id {
  margin-top: 9px;
  color: #939bad;
  font-family: Consolas, monospace;
  font-size: 9px;
  overflow-wrap: anywhere;
}

.label-stats {
  display: flex;
  gap: 7px;
  margin-top: 11px;
}

.label-stats span {
  padding: 5px 8px;
  border-radius: 7px;
  color: #687287;
  font-size: 9px;
  background: #edf0f4;
}

.labels-loading,
.labels-empty {
  padding: 28px;
  border: 1px dashed #d8dde6;
  border-radius: 12px;
  color: #929bad;
  font-size: 12px;
  text-align: center;
}

@media (max-width: 760px) {
  .modal-backdrop {
    padding: 10px;
  }

  .labels-modal {
    max-height: calc(100vh - 20px);
  }

  .labels-layout {
    grid-template-columns: 1fr;
  }

  .label-form {
    border-right: 0;
    border-bottom: 1px solid #e9edf3;
  }

  .modal-header,
  .label-form,
  .existing-labels {
    padding: 20px;
  }
}
.label-item-header {
  align-items: center;
}

.edit-label-button {
  width: auto;
  min-height: 31px;
  padding: 0 11px;
  border: 1px solid #dfe4ec;
  border-radius: 8px;
  color: #596477;
  font-size: 9px;
  font-weight: 750;
  background: #fff;
}

.edit-label-button:hover {
  color: #5262dc;
  border-color: #cbd2fa;
  background: #f3f4ff;
}

.label-form-actions {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 10px;
}

.label-form-actions .secondary-button {
  margin: 0;
}

.label-form-actions button[hidden] {
  display: none;
}

.label-form-actions:has(
  #cancelEditLabel[hidden]
) {
  grid-template-columns: 1fr;
}

.campaigns-modal {
  width: min(100%, 1060px);
  max-height: calc(100vh - 48px);
  overflow: auto;
  border: 1px solid #e2e6ed;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 35px 100px #0004;
}

.campaign-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
}

.campaign-form,
.campaign-preview-column {
  padding: 26px 28px;
}

.campaign-form {
  display: grid;
  align-content: start;
  gap: 17px;
  border-right: 1px solid #e9edf3;
}

.campaign-preview-column {
  background: #fafbfc;
}

.notification-stage {
  margin-top: 18px;
  padding: 34px 24px;
  border: 1px solid #e1e6ed;
  border-radius: 15px;
  background:
    radial-gradient(circle at 80% 20%, #dfe4ff, transparent 34%),
    #eef1f6;
}

.notification-preview {
  display: flex;
  gap: 13px;
  padding: 17px;
  border: 1px solid #ffffffc9;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 45px #26324f1f;
}

.campaign-preview-icon {
  width: 44px;
  height: 44px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border-radius: 11px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, #7180f5, #5262dc);
}

.campaign-preview-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.notification-preview-content {
  min-width: 0;
}

.notification-preview-content strong {
  display: block;
  color: #252e40;
  font-size: 13px;
}

.notification-preview-content p {
  margin: 6px 0;
  color: #687286;
  font-size: 11px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.notification-preview-content small {
  color: #9aa2b2;
  font-size: 9px;
}

.campaign-preview-image {
  width: 100%;
  max-height: 220px;
  margin-top: 12px;
  object-fit: cover;
  border-radius: 12px;
}

.campaign-warning {
  margin-top: 14px;
  padding: 11px 13px;
  border: 1px solid #f4e5ba;
  border-radius: 10px;
  color: #8b6a19;
  font-size: 10px;
  line-height: 1.5;
  background: #fffae9;
}

.campaign-history-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 26px;
}

.campaign-history {
  max-height: 290px;
  display: grid;
  gap: 9px;
  margin-top: 13px;
  overflow: auto;
}

.campaign-history-item {
  padding: 13px;
  border: 1px solid #e4e8ef;
  border-radius: 11px;
  background: #fff;
}

.campaign-history-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.campaign-history-top strong {
  color: #374155;
  font-size: 11px;
}

.campaign-status {
  padding: 4px 7px;
  border-radius: 999px;
  color: #188546;
  font-size: 8px;
  font-weight: 750;
  background: #eaf8ef;
}

.campaign-history-item p {
  margin: 6px 0 10px;
  color: #7e8798;
  font-size: 10px;
  line-height: 1.5;
}

.campaign-history-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.campaign-history-meta span {
  padding: 4px 7px;
  border-radius: 6px;
  color: #707a8d;
  font-size: 8px;
  background: #f0f2f5;
}

@media (max-width: 820px) {
  .campaign-layout {
    grid-template-columns: 1fr;
  }

  .campaign-form {
    border-right: 0;
    border-bottom: 1px solid #e9edf3;
  }
}

.subscribers-modal {
  width: min(100%, 1180px);
  max-height: calc(100vh - 48px);
  overflow: auto;
  border: 1px solid #e2e6ed;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 35px 100px #0004;
}

.subscribers-content {
  padding: 26px 28px;
}

.subscriber-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.subscriber-toolbar label {
  width: min(100%, 320px);
}

.subscriber-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 22px 0;
}

.subscriber-stats article {
  padding: 18px;
  border: 1px solid #e4e8ef;
  border-radius: 13px;
  background: #fafbfc;
}

.subscriber-stats span {
  display: block;
  color: #8790a2;
  font-size: 10px;
}

.subscriber-stats strong {
  display: block;
  margin-top: 7px;
  color: #283247;
  font-size: 26px;
  letter-spacing: -1px;
}

.subscriber-table-wrapper {
  overflow-x: auto;
  border: 1px solid #e2e6ed;
  border-radius: 13px;
}

.subscriber-table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
}

.subscriber-table th,
.subscriber-table td {
  padding: 13px 14px;
  border-bottom: 1px solid #edf0f4;
  text-align: left;
}

.subscriber-table th {
  color: #8790a2;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.6px;
  background: #f7f8fa;
}

.subscriber-table td {
  color: #596477;
  font-size: 10px;
}

.subscriber-table tbody tr:last-child td {
  border-bottom: 0;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 8px;
  font-weight: 750;
}

.status-pill.active {
  color: #168447;
  background: #eaf8ef;
}

.status-pill.inactive {
  color: #9a5860;
  background: #faecee;
}

.status-pill::before {
  width: 5px;
  height: 5px;
  content: "";
  border-radius: 50%;
  background: currentColor;
}

.deactivate-button {
  min-height: 29px;
  padding: 0 9px;
  border: 1px solid #ead8da;
  border-radius: 7px;
  color: #a04d58;
  font-size: 8px;
  font-weight: 750;
  background: #fff;
}

.deactivate-button:hover {
  background: #fff4f5;
}

.deactivate-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.table-empty {
  padding: 42px !important;
  color: #959daf !important;
  text-align: center !important;
}

.subscriber-note {
  margin-top: 14px;
  padding: 11px 13px;
  border-radius: 9px;
  color: #657085;
  font-size: 9px;
  background: #f1f3f7;
}

@media (max-width: 700px) {
  .subscribers-content {
    padding: 20px;
  }

  .subscriber-toolbar {
    display: grid;
  }

  .subscriber-toolbar label {
    width: 100%;
  }

  .subscriber-stats {
    grid-template-columns: 1fr;
  }
}