*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 14px;
  color: #1f2937;
  background: #f9fafb;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: #1A73E8;
  text-decoration: none;
}
a:hover {
  color: #4285F4;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  cursor: pointer;
  font-family: inherit;
}

input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.text-muted {
  color: #6b7280;
}

.text-sm {
  font-size: 13px;
}

.text-xs {
  font-size: 12px;
}

.font-medium {
  font-weight: 500;
}

.font-semibold {
  font-weight: 600;
}

.font-bold {
  font-weight: 700;
}

.app-layout {
  display: flex;
  min-height: 100vh;
}

.main-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin-left: 220px;
  transition: margin-left 250ms ease;
}
@media (max-width: 1023px) {
  .main-wrapper {
    margin-left: 0;
  }
}
.sidebar-collapsed .main-wrapper {
  margin-left: 64px;
}

.page-content {
  flex: 1;
  overflow-y: auto;
}
@media (max-width: 767px) {
  .page-content {
    padding: 16px;
  }
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
  flex-wrap: wrap;
}
.page-header__left {
  min-width: 0;
}
.page-header__left h1 {
  font-size: 22px;
  font-weight: 700;
  color: #111827;
  line-height: 1.2;
}
.page-header__left p {
  font-size: 13px;
  color: #6b7280;
  margin-top: 3px;
}
.page-header__actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  flex-shrink: 0;
}

.two-col-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: start;
}
@media (max-width: 1023px) {
  .two-col-layout {
    grid-template-columns: 1fr;
  }
}

.stats-row {
  display: grid;
  gap: 16px;
}
.stats-row--3 {
  grid-template-columns: repeat(3, 1fr);
}
.stats-row--4 {
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 1023px) {
  .stats-row--4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-row--3 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 639px) {
  .stats-row--4, .stats-row--3 {
    grid-template-columns: 1fr;
  }
}

.section-heading {
  font-size: 13px;
  font-weight: 600;
  color: #9ca3af;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.divider {
  height: 1px;
  background: #e5e7eb;
  margin: 20px 0;
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 220px;
  height: 100vh;
  background: #ffffff;
  border-right: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  z-index: 100;
  overflow: hidden;
  transition: width 250ms ease, transform 250ms ease;
}
@media (max-width: 1023px) {
  .sidebar {
    transform: translateX(-100%);
    width: 220px;
  }
  .sidebar.is-open {
    transform: translateX(0);
  }
}
.sidebar-collapsed .sidebar {
  width: 64px;
  overflow: visible;
}
.sidebar-collapsed .sidebar .sidebar-brand-name,
.sidebar-collapsed .sidebar .nav-group-label,
.sidebar-collapsed .sidebar .nav-item span,
.sidebar-collapsed .sidebar .sidebar-user-info {
  display: none;
}
.sidebar-collapsed .sidebar .nav-item {
  justify-content: center;
  padding: 10px;
}
.sidebar-collapsed .sidebar .nav-item svg {
  flex-shrink: 0;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 16px 18px;
  border-bottom: 1px solid #e5e7eb;
  flex-shrink: 0;
  min-height: 58px;
  text-decoration: none;
}
.sidebar-brand:hover {
  text-decoration: none;
}

.sidebar-brand-icon {
  width: 32px;
  height: 32px;
  background: transparent;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sidebar-brand-icon svg {
  width: 28px;
  height: 28px;
}

.sidebar-brand-name {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.sidebar-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 12px 0;
  scrollbar-width: thin;
  scrollbar-color: #d1d5db transparent;
}
.sidebar-scroll::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
.sidebar-scroll::-webkit-scrollbar-track {
  background: transparent;
}
.sidebar-scroll::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 9999px;
}
.sidebar-scroll::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

.nav-group {
  margin-bottom: 4px;
}
.nav-group + .nav-group {
  margin-top: 8px;
}

.nav-group-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #9ca3af;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 18px 4px;
  white-space: nowrap;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 18px;
  border-radius: 0;
  font-size: 13px;
  font-weight: 500;
  color: #4b5563;
  text-decoration: none;
  transition: background 150ms ease, color 150ms ease;
  position: relative;
  white-space: nowrap;
}
.nav-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #9ca3af;
  transition: color 150ms ease;
}
.nav-item:hover {
  background: #f9fafb;
  color: #1f2937;
  text-decoration: none;
}
.nav-item:hover svg {
  color: #4b5563;
}
.nav-item.is-active, .nav-item[aria-current=page] {
  background: #E8F0FE;
  color: #4285F4;
  font-weight: 600;
}
.nav-item.is-active::before, .nav-item[aria-current=page]::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #4285F4;
  border-radius: 0 4px 4px 0;
}
.nav-item.is-active svg, .nav-item[aria-current=page] svg {
  color: #4285F4;
}
.nav-item.nav-item--top {
  padding: 9px 18px;
  font-size: 14px;
}

.nav-badge {
  margin-left: auto;
  background: #E8F0FE;
  color: #4285F4;
  font-size: 11px;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 9999px;
  border: 1px solid #C5D9FD;
}

.sidebar-footer {
  border-top: 1px solid #e5e7eb;
  padding: 12px;
  flex-shrink: 0;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 150ms ease;
}
.sidebar-user:hover {
  background: #f9fafb;
}

.sidebar-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  background: #E8F0FE;
  border: 2px solid #C5D9FD;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  font-size: 13px;
  font-weight: 600;
  color: #4285F4;
}
.sidebar-user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar-user-info {
  min-width: 0;
  flex: 1;
}

.sidebar-user-name {
  font-size: 13px;
  font-weight: 600;
  color: #1f2937;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-user-email {
  font-size: 12px;
  color: #9ca3af;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.4);
  z-index: 99;
}
@media (max-width: 1023px) {
  .sidebar-open .sidebar-overlay {
    display: block;
  }
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
  padding: 0 20px;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 200;
  gap: 16px;
  flex-shrink: 0;
}

.topbar-left {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  min-width: 0;
}

.topbar-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: none;
  background: transparent;
  border-radius: 8px;
  color: #6b7280;
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease;
  flex-shrink: 0;
}
.topbar-toggle:hover {
  background: #f3f4f6;
  color: #374151;
}
.topbar-toggle svg {
  width: 20px;
  height: 20px;
}

.topbar-search {
  flex: 1;
  max-width: 460px;
  position: relative;
}

.topbar-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  pointer-events: none;
}
.topbar-search-icon svg {
  width: 16px;
  height: 16px;
}

.topbar-search-input {
  width: 100%;
  height: 36px;
  padding: 0 12px 0 38px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 13px;
  color: #374151;
  background: #f9fafb;
  transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}
.topbar-search-input::placeholder {
  color: #9ca3af;
}
.topbar-search-input:focus {
  outline: none;
  background: #ffffff;
  border-color: #C5D9FD;
  outline: none;
  box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.18);
}

.topbar-search-kbd {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  color: #9ca3af;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  padding: 1px 5px;
  pointer-events: none;
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  flex-shrink: 0;
}

.topbar-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: none;
  background: transparent;
  border-radius: 8px;
  color: #6b7280;
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease;
  position: relative;
  text-decoration: none;
}
.topbar-icon-btn:hover {
  background: #f3f4f6;
  color: #374151;
}
.topbar-icon-btn svg {
  width: 18px;
  height: 18px;
}

.topbar-badge {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 8px;
  height: 8px;
  background: #EA4335;
  border-radius: 9999px;
  border: 2px solid #ffffff;
}

.topbar-lang {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  padding: 0 10px;
  height: 34px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: transparent;
  font-size: 13px;
  color: #4b5563;
  cursor: pointer;
  transition: background 150ms ease;
}
.topbar-lang:hover {
  background: #f9fafb;
}
.topbar-lang svg {
  width: 14px;
  height: 14px;
}

.topbar-divider {
  width: 1px;
  height: 22px;
  background: #e5e7eb;
  margin: 0 4px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 16px;
  height: 36px;
  font-size: 13px;
  font-weight: 500;
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease, box-shadow 150ms ease, opacity 150ms ease;
  white-space: nowrap;
  line-height: 1;
}
.btn svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.18);
}
.btn:disabled, .btn.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}
.btn.is-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.8;
}

.btn-primary {
  background: #4285F4;
  border-color: #4285F4;
  color: #ffffff;
}
.btn-primary:hover {
  background: #3367D6;
  border-color: #3367D6;
}
.btn-primary:active {
  background: rgb(27.444, 108.112, 241.756);
}

.btn-outline {
  background: #ffffff;
  border-color: #d1d5db;
  color: #374151;
}
.btn-outline:hover {
  background: #f9fafb;
  border-color: #d1d5db;
  color: #1f2937;
}

.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: #4b5563;
}
.btn-ghost:hover {
  background: #f3f4f6;
  color: #1f2937;
}

.btn-danger {
  background: #EA4335;
  border-color: #EA4335;
  color: #ffffff;
}
.btn-danger:hover {
  background: rgb(231.1183856502, 41.202690583, 25.2816143498);
}

.btn-danger-outline {
  background: #ffffff;
  border-color: #F5C6C2;
  color: #EA4335;
}
.btn-danger-outline:hover {
  background: #FCE8E6;
}

.btn-success {
  background: #34A853;
  border-color: #34A853;
  color: #ffffff;
}
.btn-success:hover {
  background: rgb(44.7672727273, 144.6327272727, 71.4554545455);
}

.btn-sm {
  height: 30px;
  padding: 0 12px;
  font-size: 12px;
  border-radius: 4px;
}
.btn-sm svg {
  width: 13px;
  height: 13px;
}

.btn-lg {
  height: 42px;
  padding: 0 22px;
  font-size: 14px;
}
.btn-lg svg {
  width: 17px;
  height: 17px;
}

.btn-xl {
  height: 48px;
  padding: 0 28px;
  font-size: 15px;
}

.btn-icon {
  width: 36px;
  height: 36px;
  padding: 0;
}
.btn-icon.btn-sm {
  width: 30px;
  height: 30px;
}
.btn-icon.btn-lg {
  width: 42px;
  height: 42px;
}

.btn-group {
  display: inline-flex;
}
.btn-group .btn {
  border-radius: 0;
}
.btn-group .btn:first-child {
  border-radius: 8px 0 0 8px;
}
.btn-group .btn:last-child {
  border-radius: 0 8px 8px 0;
}
.btn-group .btn:not(:first-child) {
  margin-left: -1px;
}

.card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #e5e7eb;
  gap: 12px;
}
.card-header h3, .card-header .card-title {
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
}
.card-header p, .card-header .card-subtitle {
  font-size: 12px;
  color: #6b7280;
  margin-top: 2px;
}

.card-body {
  padding: 20px;
}

.card-footer {
  padding: 14px 20px;
  border-top: 1px solid #e5e7eb;
  background: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.stat-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  padding: 20px;
  transition: box-shadow 150ms ease;
}
.stat-card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
}

.stat-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.stat-card-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.stat-card-icon svg {
  width: 18px;
  height: 18px;
}
.stat-card-icon--primary {
  background: #E8F0FE;
  color: #4285F4;
}
.stat-card-icon--success {
  background: #E6F4EA;
  color: #34A853;
}
.stat-card-icon--warning {
  background: #FEF7E0;
  color: #F9AB00;
}
.stat-card-icon--info {
  background: #dbeafe;
  color: #2563eb;
}
.stat-card-icon--danger {
  background: #FCE8E6;
  color: #EA4335;
}

.stat-card-label {
  font-size: 12px;
  font-weight: 500;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.stat-card-value {
  font-size: 28px;
  font-weight: 700;
  color: #111827;
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat-card-meta {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin-top: 10px;
  font-size: 12px;
  color: #6b7280;
}

.stat-card-progress {
  margin-top: 14px;
}
.stat-card-progress-bar {
  height: 4px;
  background: #f3f4f6;
  border-radius: 9999px;
  overflow: hidden;
  margin-bottom: 6px;
}
.stat-card-progress-bar-fill {
  height: 100%;
  background: #4285F4;
  border-radius: 9999px;
  transition: width 350ms ease;
}
.stat-card-progress-labels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #9ca3af;
}

.metric-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  padding: 16px 20px;
  position: relative;
  overflow: visible;
}
.metric-card-label {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.metric-card-value {
  font-size: 28px;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.02em;
  line-height: 1;
}
.metric-card-sub {
  font-size: 12px;
  color: #9ca3af;
  margin-top: 4px;
}
.metric-card-sparkline {
  position: absolute;
  right: 12px;
  bottom: 10px;
  width: 72px;
  height: 32px;
  opacity: 0.6;
}

.promo-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  overflow: visible;
}
.promo-card-content {
  max-width: 480px;
}
.promo-card h2 {
  font-size: 22px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 8px;
}
.promo-card p {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 20px;
}
.promo-card-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}
.promo-card-illustration {
  flex-shrink: 0;
  width: 140px;
  opacity: 0.9;
}
@media (max-width: 767px) {
  .promo-card-illustration {
    display: none;
  }
}

.info-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
@media (max-width: 767px) {
  .info-card-grid {
    grid-template-columns: 1fr;
  }
}

.info-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  transition: box-shadow 150ms ease, border-color 150ms ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.info-card:hover {
  border-color: #C5D9FD;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
  text-decoration: none;
  color: inherit;
}
.info-card-icon {
  width: 40px;
  height: 40px;
  background: #f3f4f6;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.info-card-icon svg {
  width: 18px;
  height: 18px;
  color: #6b7280;
}
.info-card-title {
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 3px;
}
.info-card-desc {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.5;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.6;
  white-space: nowrap;
}
.badge--primary {
  background: #E8F0FE;
  color: #4285F4;
  border: 1px solid #C5D9FD;
}
.badge--success {
  background: #E6F4EA;
  color: #34A853;
  border: 1px solid #A8D5B5;
}
.badge--warning {
  background: #FEF7E0;
  color: #F9AB00;
  border: 1px solid #FDD663;
}
.badge--danger {
  background: #FCE8E6;
  color: #EA4335;
  border: 1px solid #F5C6C2;
}
.badge--info {
  background: #dbeafe;
  color: #2563eb;
  border: 1px solid #93c5fd;
}
.badge--gray {
  background: #f3f4f6;
  color: #4b5563;
  border: 1px solid #e5e7eb;
}
.badge--dark {
  background: #1f2937;
  color: #ffffff;
  border: 1px solid #374151;
}
.badge--new {
  background: #dbeafe;
  color: #2563eb;
  border: 1px solid #93c5fd;
}
.badge--draft {
  background: #f3f4f6;
  color: #6b7280;
  border: 1px solid #e5e7eb;
}
.badge--scheduled {
  background: #faf0ff;
  color: #7c3aed;
  border: 1px solid #ddd6fe;
}
.badge--sending {
  background: #FEF7E0;
  color: #F9AB00;
  border: 1px solid #FDD663;
}
.badge--sent {
  background: #E6F4EA;
  color: #34A853;
  border: 1px solid #A8D5B5;
}
.badge--paused {
  background: #f3f4f6;
  color: #6b7280;
  border: 1px solid #e5e7eb;
}
.badge--failed {
  background: #FCE8E6;
  color: #EA4335;
  border: 1px solid #F5C6C2;
}
.badge--subscribed {
  background: #E6F4EA;
  color: #34A853;
  border: 1px solid #A8D5B5;
}
.badge--unsubscribed {
  background: #f3f4f6;
  color: #6b7280;
  border: 1px solid #e5e7eb;
}
.badge--bounced {
  background: #FCE8E6;
  color: #EA4335;
  border: 1px solid #F5C6C2;
}
.badge--complained {
  background: #FEF7E0;
  color: #F9AB00;
  border: 1px solid #FDD663;
}
.badge--deliverable {
  background: #E6F4EA;
  color: #34A853;
  border: 1px solid #A8D5B5;
}
.badge--risky {
  background: #FEF7E0;
  color: #F9AB00;
  border: 1px solid #FDD663;
}
.badge--unverified {
  background: #f3f4f6;
  color: #6b7280;
  border: 1px solid #e5e7eb;
}
.badge--ab {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.badge-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}
.badge-dot::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 9999px;
  flex-shrink: 0;
}
.badge-dot--online::before {
  background: #34A853;
}
.badge-dot--online {
  color: #374151;
}
.badge-dot--offline::before {
  background: #d1d5db;
}
.badge-dot--offline {
  color: #6b7280;
}
.badge-dot--error::before {
  background: #EA4335;
}
.badge-dot--error {
  color: #374151;
}
.badge-dot--warning::before {
  background: #F9AB00;
}
.badge-dot--warning {
  color: #374151;
}

.table-wrap {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  gap: 12px;
  flex-wrap: wrap;
  border-bottom: 1px solid #e5e7eb;
}
.table-toolbar-left, .table-toolbar-right {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  flex-wrap: wrap;
}

.table-scroll {
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #d1d5db transparent;
}
.table-scroll::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
.table-scroll::-webkit-scrollbar-track {
  background: transparent;
}
.table-scroll::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 9999px;
}
.table-scroll::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.data-table thead {
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
}
.data-table th {
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  text-align: left;
  white-space: nowrap;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  user-select: none;
}
.data-table th.sortable {
  cursor: pointer;
}
.data-table th.sortable:hover {
  color: #374151;
}
.data-table th.sortable .sort-icon {
  display: inline-flex;
  flex-direction: column;
  gap: 1px;
  margin-left: 4px;
  vertical-align: middle;
}
.data-table th.sortable .sort-icon svg {
  width: 12px;
  height: 12px;
  color: #d1d5db;
}
.data-table th.sortable.sort-asc .sort-icon svg:first-child {
  color: #4285F4;
}
.data-table th.sortable.sort-desc .sort-icon svg:last-child {
  color: #4285F4;
}
.data-table td {
  padding: 12px 16px;
  color: #374151;
  vertical-align: middle;
  border-bottom: 1px solid #e5e7eb;
}
.data-table tbody tr {
  transition: background 100ms ease;
}
.data-table tbody tr:hover {
  background: #f9fafb;
}
.data-table tbody tr:last-child td {
  border-bottom: none;
}
.data-table tbody tr.is-selected {
  background: #E8F0FE;
}

.table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-top: 1px solid #e5e7eb;
  gap: 12px;
  flex-wrap: wrap;
}
.table-footer-info {
  font-size: 12px;
  color: #6b7280;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
}

.page-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  color: #4b5563;
  background: #ffffff;
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}
.page-btn:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}
.page-btn.is-active {
  background: #4285F4;
  border-color: #4285F4;
  color: #ffffff;
}
.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}
.page-btn svg {
  width: 14px;
  height: 14px;
}

.table-search {
  position: relative;
}
.table-search svg {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  color: #9ca3af;
  pointer-events: none;
}
.table-search input {
  height: 34px;
  padding: 0 10px 0 32px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 13px;
  color: #374151;
  background: #ffffff;
  width: 220px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.table-search input::placeholder {
  color: #9ca3af;
}
.table-search input:focus {
  outline: none;
  border-color: #C5D9FD;
  outline: none;
  box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.18);
}

.table-filter-select {
  height: 34px;
  padding: 0 30px 0 10px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 13px;
  color: #374151;
  background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%239ca3af'%3E%3Cpath fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 11.17l3.71-3.94a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z' clip-rule='evenodd'/%3E%3C/svg%3E") no-repeat right 8px center/16px;
  appearance: none;
  cursor: pointer;
  transition: border-color 150ms ease;
}
.table-filter-select:focus {
  outline: none;
  border-color: #C5D9FD;
}

.table-checkbox {
  width: 16px;
  height: 16px;
  accent-color: #4285F4;
  cursor: pointer;
}

.contact-email-cell {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}

.contact-avatar {
  width: 28px;
  height: 28px;
  border-radius: 9999px;
  background: #E8F0FE;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: #4285F4;
  flex-shrink: 0;
  border: 1px solid #C5D9FD;
}

.rate-cell-value {
  font-weight: 600;
  color: #1f2937;
}
.rate-cell-bar {
  height: 2px;
  background: #f3f4f6;
  border-radius: 9999px;
  margin-top: 4px;
  width: 60px;
}
.rate-cell-bar-fill {
  height: 100%;
  background: #4285F4;
  border-radius: 9999px;
}

.form-group {
  margin-bottom: 18px;
}
.form-group:last-child {
  margin-bottom: 0;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (max-width: 639px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  margin-bottom: 6px;
}
.form-label .required {
  color: #EA4335;
  margin-left: 3px;
}

.form-hint {
  font-size: 12px;
  color: #9ca3af;
  margin-top: 5px;
  line-height: 1.5;
}

.form-error {
  font-size: 12px;
  color: #EA4335;
  margin-top: 5px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.form-error svg {
  width: 13px;
  height: 13px;
}

.form-input, .form-select, .form-textarea {
  display: block;
  width: 100%;
  height: 38px;
  padding: 0 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 13px;
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  color: #1f2937;
  background: #ffffff;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.form-input::placeholder, .form-select::placeholder, .form-textarea::placeholder {
  color: #9ca3af;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: #C5D9FD;
  outline: none;
  box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.18);
}
.form-input.has-error, .has-error.form-select, .has-error.form-textarea {
  border-color: #F5C6C2;
  background: #FCE8E6;
}
.form-input:disabled, .form-select:disabled, .form-textarea:disabled {
  background: #f9fafb;
  color: #9ca3af;
  cursor: not-allowed;
}

.form-textarea {
  height: auto;
  padding: 10px 12px;
  resize: vertical;
  min-height: 90px;
  line-height: 1.5;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%239ca3af'%3E%3Cpath fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 11.17l3.71-3.94a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
  padding-right: 34px;
  cursor: pointer;
}

.input-with-icon {
  position: relative;
}
.input-with-icon .input-icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  pointer-events: none;
}
.input-with-icon .input-icon svg {
  width: 16px;
  height: 16px;
}
.input-with-icon .input-icon--left {
  left: 11px;
}
.input-with-icon .input-icon--left + .form-input, .input-with-icon .input-icon--left + .form-textarea, .input-with-icon .input-icon--left + .form-select {
  padding-left: 34px;
}
.input-with-icon .input-icon--right {
  right: 11px;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  cursor: pointer;
  font-size: 13px;
  color: #374151;
  line-height: 1.4;
}
.form-check input[type=checkbox],
.form-check input[type=radio] {
  width: 16px;
  height: 16px;
  margin-top: 1px;
  accent-color: #4285F4;
  flex-shrink: 0;
  cursor: pointer;
}

.form-toggle {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 22px;
}
.form-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.form-toggle input:checked + .toggle-track {
  background: #4285F4;
}
.form-toggle input:checked + .toggle-track::after {
  transform: translateX(16px);
}
.form-toggle input:focus + .toggle-track {
  outline: none;
  box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.18);
}
.form-toggle .toggle-track {
  position: absolute;
  inset: 0;
  background: #d1d5db;
  border-radius: 9999px;
  transition: background 150ms ease;
  cursor: pointer;
}
.form-toggle .toggle-track::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 16px;
  height: 16px;
  background: #ffffff;
  border-radius: 9999px;
  transition: transform 150ms ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.upload-zone {
  border: 2px dashed #e5e7eb;
  border-radius: 12px;
  padding: 40px 24px;
  text-align: center;
  background: #f9fafb;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease;
}
.upload-zone:hover, .upload-zone.is-dragover {
  border-color: #C5D9FD;
  background: #E8F0FE;
}
.upload-zone-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  margin: 0 auto 16px;
}
.upload-zone-icon svg {
  width: 24px;
  height: 24px;
  color: #9ca3af;
}
.upload-zone-title {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}
.upload-zone-title span {
  color: #4285F4;
}
.upload-zone-sub {
  font-size: 12px;
  color: #9ca3af;
}

.color-swatches {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.color-swatch {
  width: 26px;
  height: 26px;
  border-radius: 9999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 150ms ease;
}
.color-swatch:hover {
  transform: scale(1.15);
}
.color-swatch.is-active {
  border-color: #1f2937;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.45);
  backdrop-filter: blur(2px);
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 250ms ease;
}
.modal-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15), 0 8px 16px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
  transform: translateY(12px);
  transition: transform 250ms ease;
  overflow: hidden;
}
.modal-overlay.is-open .modal {
  transform: translateY(0);
}
.modal--sm {
  max-width: 400px;
}
.modal--md {
  max-width: 540px;
}
.modal--lg {
  max-width: 720px;
}
.modal--xl {
  max-width: 900px;
}
.modal--2xl {
  max-width: 1100px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid #e5e7eb;
  flex-shrink: 0;
  gap: 12px;
}
.modal-header h3, .modal-header .modal-title {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
}
.modal-header p, .modal-header .modal-subtitle {
  font-size: 12px;
  color: #6b7280;
  margin-top: 2px;
}

.modal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: none;
  background: transparent;
  border-radius: 8px;
  color: #9ca3af;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 150ms ease, color 150ms ease;
}
.modal-close:hover {
  background: #f3f4f6;
  color: #374151;
}
.modal-close svg {
  width: 18px;
  height: 18px;
}

.modal-body {
  padding: 22px;
  overflow-y: auto;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: #d1d5db transparent;
}
.modal-body::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
.modal-body::-webkit-scrollbar-track {
  background: transparent;
}
.modal-body::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 9999px;
}
.modal-body::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  border-top: 1px solid #e5e7eb;
  background: #f9fafb;
  flex-shrink: 0;
  gap: 10px;
}
.modal-footer-right {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin-left: auto;
}

.dropdown-wrap {
  position: relative;
  display: inline-block;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0px !important;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
  min-width: 160px;
  z-index: 300;
  padding: 5px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 150ms ease, transform 150ms ease;
}
.dropdown-menu.is-open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.dropdown-menu--right {
  left: auto;
  right: 0;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 13px;
  color: #374151;
  cursor: pointer;
  transition: background 100ms ease;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  text-decoration: none;
}
.dropdown-item svg {
  width: 15px;
  height: 15px;
  color: #9ca3af;
}
.dropdown-item:hover {
  background: #f9fafb;
  color: #1f2937;
}
.dropdown-item--danger {
  color: #EA4335;
}
.dropdown-item--danger svg {
  color: #EA4335;
}
.dropdown-item--danger:hover {
  background: #FCE8E6;
}

.dropdown-divider {
  height: 1px;
  background: #e5e7eb;
  margin: 4px 0;
}

.alert {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 13px;
  border: 1px solid transparent;
}
.alert-icon {
  flex-shrink: 0;
}
.alert-icon svg {
  width: 18px;
  height: 18px;
}
.alert-body {
  flex: 1;
}
.alert-title {
  font-weight: 600;
  margin-bottom: 2px;
}
.alert-close {
  flex-shrink: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: currentColor;
  opacity: 0.5;
  padding: 2px;
}
.alert-close:hover {
  opacity: 1;
}
.alert-close svg {
  width: 16px;
  height: 16px;
}
.alert--info {
  background: #dbeafe;
  border-color: #93c5fd;
  color: #1e3a8a;
}
.alert--success {
  background: #E6F4EA;
  border-color: #A8D5B5;
  color: #14532d;
}
.alert--warning {
  background: #FEF7E0;
  border-color: #FDD663;
  color: #78350f;
}
.alert--danger {
  background: #FCE8E6;
  border-color: #F5C6C2;
  color: #7f1d1d;
}

.progress-bar {
  height: 6px;
  background: #f3f4f6;
  border-radius: 9999px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: #4285F4;
  border-radius: 9999px;
  transition: width 350ms ease;
}
.progress-bar-fill--success {
  background: #34A853;
}
.progress-bar-fill--warning {
  background: #F9AB00;
}
.progress-bar-fill--danger {
  background: #EA4335;
}
.progress-bar-fill--info {
  background: #2563eb;
}

.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 14px 18px;
  background: #111827;
  color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.08);
  font-size: 13px;
  min-width: 280px;
  max-width: 380px;
  pointer-events: all;
  animation: toastIn 250ms ease forwards;
}
.toast-icon svg {
  width: 18px;
  height: 18px;
}
.toast--success {
  background: #34A853;
}
.toast--danger {
  background: #EA4335;
}
.toast--warning {
  background: #1f2937;
}
@keyframes toastIn {
  from {
    transform: translateX(20px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.wizard-steps {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  margin-bottom: 28px;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 0;
}

.wizard-step {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 0 20px 14px;
  font-size: 13px;
  font-weight: 500;
  color: #9ca3af;
  position: relative;
  cursor: default;
}
.wizard-step::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: transparent;
  transition: background 150ms ease;
}
.wizard-step-number {
  width: 24px;
  height: 24px;
  border-radius: 9999px;
  background: #e5e7eb;
  color: #6b7280;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 150ms ease, color 150ms ease;
}
.wizard-step.is-active {
  color: #4285F4;
}
.wizard-step.is-active::after {
  background: #4285F4;
}
.wizard-step.is-active .wizard-step-number {
  background: #4285F4;
  color: #ffffff;
}
.wizard-step.is-done {
  color: #34A853;
}
.wizard-step.is-done .wizard-step-number {
  background: #34A853;
  color: #ffffff;
}

.dashboard-welcome {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
  overflow: hidden;
  position: relative;
}
.dashboard-welcome::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 200px;
  height: 200px;
  background: #E8F0FE;
  border-radius: 9999px;
  opacity: 0.6;
}
.dashboard-welcome-body {
  position: relative;
  z-index: 1;
}
.dashboard-welcome h2 {
  font-size: 22px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 4px;
}
.dashboard-welcome p {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  flex-wrap: wrap;
}
.dashboard-welcome p a {
  color: #1A73E8;
  font-weight: 500;
}
.dashboard-welcome-meta {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #6b7280;
}
.dashboard-welcome-meta span {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
}
.dashboard-welcome-meta span svg {
  width: 13px;
  height: 13px;
}
.dashboard-welcome-illustration {
  flex-shrink: 0;
  width: 120px;
  opacity: 0.8;
  position: relative;
  z-index: 1;
}
@media (max-width: 767px) {
  .dashboard-welcome-illustration {
    display: none;
  }
}

.quick-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.chart-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}
.chart-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #e5e7eb;
  flex-wrap: wrap;
  gap: 12px;
}
.chart-card-header-left h3 {
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
}
.chart-card-header-left p {
  font-size: 12px;
  color: #9ca3af;
  margin-top: 2px;
}
.chart-card-tabs {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
}
.chart-card-tab {
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  color: #6b7280;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease;
}
.chart-card-tab:hover {
  background: #f3f4f6;
  color: #374151;
}
.chart-card-tab.is-active {
  background: #4285F4;
  color: #ffffff;
}
.chart-card-body {
  padding: 20px;
  height: 280px;
  position: relative;
}
.chart-card-body canvas {
  width: 100% !important;
  height: 100% !important;
}
.chart-card-legend {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  padding: 12px 20px;
  border-top: 1px solid #e5e7eb;
  background: #f9fafb;
  flex-wrap: wrap;
}
.chart-card-legend-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  font-size: 12px;
  color: #6b7280;
}
.chart-card-legend-item-dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
}

.health-widget {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  padding: 18px 20px;
}
.health-widget h4 {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 14px;
}
.health-widget-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #e5e7eb;
  font-size: 13px;
}
.health-widget-row:last-child {
  border-bottom: none;
}
.health-widget-row-label {
  color: #4b5563;
}

.campaign-name-cell h4 {
  font-size: 13px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 2px;
}
.campaign-name-cell p {
  font-size: 12px;
  color: #9ca3af;
}

.sent-cell-count {
  font-weight: 600;
  color: #1f2937;
}
.sent-cell-total {
  font-size: 12px;
  color: #9ca3af;
}

.wizard-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 22px;
  align-items: start;
}
@media (max-width: 1023px) {
  .wizard-layout {
    grid-template-columns: 1fr;
  }
}

.wizard-form-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  overflow: visible;
}

.wizard-sidebar-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  padding: 18px;
  position: sticky;
  top: 78px;
}

.review-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #e5e7eb;
  font-size: 13px;
}
.review-row:last-child {
  border-bottom: none;
}
.review-row-label {
  color: #6b7280;
  font-weight: 500;
}
.review-row-value {
  color: #1f2937;
  font-weight: 500;
}

.analytics-hero {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  padding: 24px 28px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.analytics-hero-info h2 {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 4px;
}
.analytics-hero-info p {
  font-size: 13px;
  color: #6b7280;
}
.analytics-hero-badges {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}

.analytics-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 22px;
}
@media (max-width: 1023px) {
  .analytics-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 639px) {
  .analytics-metrics {
    grid-template-columns: 1fr;
  }
}

.analytics-metric {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  padding: 18px 20px;
  text-align: center;
}
.analytics-metric-label {
  font-size: 12px;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
  margin-bottom: 8px;
}
.analytics-metric-value {
  font-size: 28px;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.02em;
}
.analytics-metric-sub {
  font-size: 12px;
  color: #9ca3af;
  margin-top: 4px;
}

.cw-main {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

.cw-stepbar {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  padding: 0 20px;
  height: 54px;
  flex-shrink: 0;
  position: relative;
  gap: 0;
}

.cw-stepbar-back {
  position: absolute;
  left: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #6b7280;
  text-decoration: none;
  padding: 6px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #ffffff;
  cursor: pointer;
  transition: background 150ms ease;
}
.cw-stepbar-back:hover {
  background: #f9fafb;
  color: #374151;
}
.cw-stepbar-back svg {
  width: 14px;
  height: 14px;
}

.cw-steps {
  display: flex;
  align-items: center;
  gap: 0;
}

.cw-step-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  height: 54px;
  font-size: 13px;
  font-weight: 500;
  color: #9ca3af;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 150ms ease, border-color 150ms ease;
  white-space: nowrap;
}
.cw-step-item svg {
  width: 16px;
  height: 16px;
}
.cw-step-item .cw-step-check {
  display: none;
}
.cw-step-item.is-active {
  color: #1f2937;
  border-bottom-color: #2563eb;
  font-weight: 600;
}
.cw-step-item.is-done {
  color: #34A853;
}
.cw-step-item.is-done .cw-step-check {
  display: inline-flex;
}
.cw-step-item.is-done .cw-step-num {
  display: none;
}

.cw-step-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
}

.cw-step-sep {
  color: #d1d5db;
  margin: 0 2px;
  font-size: 18px;
  line-height: 1;
  user-select: none;
}

.cw-stepbar-title {
  position: absolute;
  right: 20px;
  font-size: 12px;
  color: #6b7280;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cw-step-panel {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.cw-step-panel[hidden] {
  display: none !important;
}

.cw-editor-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  padding: 0 14px;
  height: 48px;
  flex-shrink: 0;
  overflow-x: auto;
}

.cw-toolbar-left {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.cw-toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.cw-tb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  min-width: 32px;
  padding: 0 8px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #ffffff;
  font-size: 12px;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  transition: background 150ms ease;
  white-space: nowrap;
  gap: 5px;
}
.cw-tb-btn svg {
  width: 15px;
  height: 15px;
}
.cw-tb-btn:hover {
  background: #f9fafb;
}
.cw-tb-btn.is-active {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #2563eb;
}

.cw-tb-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #1f2937;
  padding: 0 8px;
}
.cw-tb-label svg {
  width: 15px;
  height: 15px;
  color: #6b7280;
}

.cw-tb-sep {
  width: 1px;
  height: 24px;
  background: #e5e7eb;
  margin: 0 4px;
  flex-shrink: 0;
}

.cw-tb-save {
  background: #34A853;
  color: #ffffff;
  border-color: #34A853;
}
.cw-tb-save:hover {
  background: #15803d;
}

.cw-tb-continue {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
  font-size: 12px;
  padding: 0 14px;
}
.cw-tb-continue:hover {
  background: #1d4ed8;
}

.cw-tb-merge {
  font-family: monospace;
  font-size: 12px;
  letter-spacing: -0.5px;
}

.cw-editor-body {
  flex: 1;
  display: flex;
  overflow: hidden;
}

.cw-palette {
  width: 160px;
  flex-shrink: 0;
  background: #f8fafc;
  border-right: 1px solid #e5e7eb;
  overflow-y: auto;
  padding: 12px 8px;
}

.cw-palette-title {
  font-size: 10px;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0 6px 8px;
}

.cw-palette-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  margin-bottom: 6px;
  cursor: grab;
  font-size: 12px;
  font-weight: 500;
  color: #374151;
  transition: border-color 150ms ease, box-shadow 150ms ease;
  user-select: none;
}
.cw-palette-item:hover {
  border-color: #93c5fd;
  box-shadow: 0 1px 4px rgba(37, 99, 235, 0.1);
}
.cw-palette-item:active {
  cursor: grabbing;
}
.cw-palette-item svg {
  width: 14px;
  height: 14px;
  color: #6b7280;
  flex-shrink: 0;
}

.cw-palette-divider {
  height: 1px;
  background: #e5e7eb;
  margin: 8px 0;
}

.cw-palette-section {
  font-size: 10px;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 6px;
}

.cw-canvas-wrap {
  flex: 1;
  overflow-y: auto;
  background: #e9ecef;
  padding: 24px;
  display: flex;
  justify-content: center;
}

.cw-email-frame {
  width: 620px;
  background: #ffffff;
  min-height: 480px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.12);
  border-radius: 4px;
  position: relative;
}

.cw-canvas-dropzone {
  min-height: 48px;
  transition: background 150ms ease;
}
.cw-canvas-dropzone.drag-over {
  background: #eff6ff;
}

.cw-drop-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  color: #9ca3af;
  font-size: 13px;
  border: 2px dashed #d1d5db;
  border-radius: 6px;
  margin: 12px;
  pointer-events: none;
}

.email-block {
  position: relative;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.1s;
}
.email-block:hover {
  border-color: #93c5fd;
}
.email-block.is-selected {
  border-color: #2563eb;
}
.email-block .eb-drag-handle {
  display: none;
  position: absolute;
  left: -28px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background: #2563eb;
  border-radius: 4px;
  align-items: center;
  justify-content: center;
  cursor: grab;
  color: #ffffff;
}
.email-block.is-selected .eb-drag-handle {
  display: flex;
}
.email-block .eb-delete {
  display: none;
  position: absolute;
  top: -10px;
  right: -10px;
  width: 20px;
  height: 20px;
  background: #ef4444;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  z-index: 10;
}
.email-block.is-selected .eb-delete {
  display: flex;
}

.eb-text-block {
  padding: 12px 24px;
  font-size: 14px;
  line-height: 1.7;
  color: #1f2937;
}
.eb-text-block[contenteditable]:focus {
  outline: none;
}

.eb-heading-block {
  padding: 12px 24px;
  font-size: 22px;
  font-weight: 700;
  color: #111827;
}
.eb-heading-block[contenteditable]:focus {
  outline: none;
}

.eb-image-block {
  padding: 12px 24px;
  text-align: center;
}
.eb-image-block img {
  max-width: 100%;
  border-radius: 4px;
  display: block;
  margin: 0 auto;
}

.eb-image-placeholder {
  background: #f3f4f6;
  border: 2px dashed #d1d5db;
  border-radius: 6px;
  height: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  font-size: 13px;
  gap: 8px;
  cursor: pointer;
}
.eb-image-placeholder svg {
  width: 32px;
  height: 32px;
}

.eb-button-block {
  padding: 16px 24px;
  text-align: center;
}
.eb-button-block a {
  display: inline-block;
  padding: 12px 28px;
  background: #2563eb;
  color: #ffffff;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.eb-divider-block {
  padding: 8px 24px;
}
.eb-divider-block hr {
  border: none;
  border-top: 1px solid #e5e7eb;
}

.eb-spacer-block {
  height: 32px;
}

.eb-2col-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.eb-2col-col {
  padding: 12px 16px;
  font-size: 13px;
  color: #374151;
  border: 1px dashed transparent;
}
.eb-2col-col[contenteditable]:focus {
  outline: none;
  border-color: #93c5fd;
}

.eb-footer-block {
  padding: 16px 24px;
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
  text-align: center;
  font-size: 12px;
  color: #6b7280;
  line-height: 1.7;
}
.eb-footer-block a {
  color: #2563eb;
}

.eb-social-block {
  padding: 12px 24px;
  text-align: center;
}

.eb-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e5e7eb;
  margin: 0 4px;
}
.eb-social-icon svg {
  width: 18px;
  height: 18px;
  color: #374151;
}

.eb-inline-toolbar {
  position: absolute;
  top: -44px;
  left: 0;
  z-index: 20;
  background: #1f2937;
  border-radius: 6px;
  padding: 4px 6px;
  display: none;
  align-items: center;
  gap: 2px;
  white-space: nowrap;
}

.email-block.is-selected .eb-inline-toolbar {
  display: flex;
}

.eb-inline-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  border: none;
  background: transparent;
  color: #d1d5db;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  transition: background 0.1s;
}
.eb-inline-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}
.eb-inline-btn svg {
  width: 14px;
  height: 14px;
}

.eb-inline-sep {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.2);
  margin: 0 3px;
}

.cw-settings {
  width: 260px;
  flex-shrink: 0;
  background: #ffffff;
  border-left: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.cw-settings-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #e5e7eb;
  flex-shrink: 0;
}

.cw-settings-hdr-title {
  font-size: 13px;
  font-weight: 700;
  color: #1f2937;
}

.cw-settings-hdr-nav {
  display: flex;
  gap: 4px;
}
.cw-settings-hdr-nav button {
  width: 24px;
  height: 24px;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  background: #ffffff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  font-size: 12px;
  transition: background 150ms ease;
}
.cw-settings-hdr-nav button:hover {
  background: #f9fafb;
}

.cw-settings-body {
  flex: 1;
  overflow-y: auto;
}

.cw-settings-block-type {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid #f3f4f6;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
}
.cw-settings-block-type svg {
  width: 16px;
  height: 16px;
  color: #6b7280;
}

.cw-settings-tabs {
  display: flex;
  border-bottom: 1px solid #e5e7eb;
}

.cw-settings-tab {
  flex: 1;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: border-color 150ms ease;
  color: #9ca3af;
}
.cw-settings-tab svg {
  width: 16px;
  height: 16px;
}
.cw-settings-tab.is-active {
  border-bottom-color: #2563eb;
  color: #2563eb;
}

.cw-settings-section {
  padding: 14px 16px;
  border-bottom: 1px solid #f3f4f6;
}

.cw-settings-section-title {
  font-size: 11px;
  font-weight: 700;
  color: #374151;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cw-settings-section-title span {
  font-size: 14px;
  color: #9ca3af;
  cursor: pointer;
}

.cw-settings-label {
  font-size: 10px;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.cw-settings-select {
  width: 100%;
  padding: 7px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 12px;
  color: #374151;
  font-family: inherit;
  margin-bottom: 12px;
}

.cw-settings-input {
  width: 100%;
  padding: 7px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 12px;
  color: #374151;
  font-family: inherit;
  margin-bottom: 12px;
}

.cw-settings-4col {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 28px;
  gap: 4px;
  margin-bottom: 12px;
  align-items: center;
}
.cw-settings-4col input {
  padding: 6px 4px;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  font-size: 11px;
  text-align: center;
  width: 100%;
}
.cw-settings-4col label {
  font-size: 10px;
  color: #9ca3af;
  text-align: center;
  display: block;
  margin-top: 2px;
}

.cw-settings-link-btn {
  width: 24px;
  height: 24px;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  background: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
}
.cw-settings-link-btn svg {
  width: 12px;
  height: 12px;
}

.cw-settings-empty {
  padding: 32px 16px;
  text-align: center;
  color: #9ca3af;
  font-size: 13px;
}
.cw-settings-empty svg {
  width: 32px;
  height: 32px;
  margin: 0 auto 10px;
  color: #d1d5db;
  display: block;
}

.cw-content-area {
  flex: 1;
  overflow-y: auto;
  background: #f3f4f6;
  padding: 32px 20px;
  max-width: 850px;
}

.cw-content-card {
  max-width: 720px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
}

.cw-card-hdr {
  padding: 20px 24px;
  border-bottom: 1px solid #e5e7eb;
}
.cw-card-hdr h2 {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 2px;
}
.cw-card-hdr p {
  font-size: 13px;
  color: #6b7280;
}

.cw-card-body {
  padding: 24px;
}

.cw-card-footer {
  padding: 16px 24px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cw-form-group {
  margin-bottom: 20px;
}
.cw-form-group:last-child {
  margin-bottom: 0;
}

.cw-form-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.cw-form-row input[type=checkbox] {
  width: 16px;
  height: 16px;
  accent-color: #2563eb;
  flex-shrink: 0;
}

.cw-subject-wrap {
  position: relative;
}
.cw-subject-wrap input {
  padding-right: 40px;
}

.cw-subject-dots {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 16px;
  cursor: pointer;
  letter-spacing: -1px;
}

.cw-recipients-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
}

.cw-recipients-tab {
  padding: 7px 18px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #6b7280;
}
.cw-recipients-tab.is-active {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}
.cw-recipients-tab.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  text-decoration: line-through;
}

.cw-incl-card {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 16px;
}

.cw-incl-card-hdr {
  padding: 14px 18px;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
}
.cw-incl-card-hdr h4 {
  font-size: 14px;
  font-weight: 700;
  color: #2563eb;
  margin-bottom: 2px;
}
.cw-incl-card-hdr p {
  font-size: 12px;
  color: #374151;
}

.cw-incl-table {
  width: 100%;
}
.cw-incl-table th {
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
  padding: 10px 16px;
  border-bottom: 1px solid #f3f4f6;
  text-align: left;
}

.cw-incl-row td {
  padding: 10px 16px;
  border-bottom: 1px solid #f9fafb;
  vertical-align: middle;
}
.cw-incl-row:last-child td {
  border-bottom: none;
}

.cw-incl-select {
  width: 100%;
  padding: 7px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 13px;
  font-family: inherit;
}

.cw-incl-actions {
  display: flex;
  gap: 4px;
}

.cw-incl-act {
  width: 28px;
  height: 28px;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  background: #ffffff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #374151;
  font-weight: 700;
}

.cw-contact-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #1f2937;
  color: #ffffff;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  margin-top: 16px;
}
.cw-contact-badge .num {
  background: #2563eb;
  color: #ffffff;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.cw-review-section {
  border-bottom: 1px solid #f3f4f6;
  padding: 18px 24px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.cw-review-section:last-child {
  border-bottom: none;
}

.cw-review-lbl {
  font-size: 12px;
  font-weight: 700;
  color: #374151;
  margin-bottom: 4px;
}

.cw-review-val {
  font-size: 13px;
  color: #1f2937;
}

.cw-review-subval {
  font-size: 12px;
  color: #6b7280;
  margin-top: 2px;
}

.cw-review-edit {
  font-size: 12px;
  font-weight: 500;
  color: #6b7280;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 5px 12px;
  background: #ffffff;
  cursor: pointer;
  white-space: nowrap;
}
.cw-review-edit:hover {
  background: #f9fafb;
}

.cw-email-preview {
  border: 2px dashed #d4b800;
  border-radius: 4px;
  background: #ffffff;
  padding: 20px;
  min-height: 140px;
  margin: 0 24px 20px;
}
.cw-email-preview p {
  font-size: 13px;
  color: #374151;
}
.cw-email-preview .ep-footer {
  margin-top: 24px;
  color: #9ca3af;
  font-size: 12px;
}
.cw-email-preview .ep-footer a {
  color: #2563eb;
}

.cw-schedule-section {
  border-top: 1px solid #e5e7eb;
  padding: 20px 24px;
}

.cw-schedule-title {
  font-size: 14px;
  font-weight: 700;
  color: #374151;
  margin-bottom: 4px;
}

.cw-schedule-desc {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 16px;
}

.cw-schedule-divider {
  height: 1px;
  background: #e5e7eb;
  margin: 16px 0;
}

.cw-schedule-q {
  font-size: 13px;
  font-weight: 700;
  color: #374151;
  margin-bottom: 12px;
}

.cw-radio-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 13px;
  color: #374151;
  cursor: pointer;
}
.cw-radio-item input[type=radio] {
  width: 16px;
  height: 16px;
  accent-color: #2563eb;
}

.cw-send-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #34A853;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 11px 22px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 16px;
}
.cw-send-btn:hover {
  background: #15803d;
}

.cw-test-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  color: #374151;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 7px 16px;
  font-size: 13px;
  cursor: pointer;
}
.cw-test-btn:hover {
  background: #f9fafb;
}

.contact-row {
  cursor: pointer;
  transition: background 150ms ease;
}
.contact-row:hover {
  background: #f0f7ff !important;
}
.contact-row td:first-child {
  cursor: default;
}

.contact-detail-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 20px;
  align-items: start;
}
@media (max-width: 1023px) {
  .contact-detail-layout {
    grid-template-columns: 1fr;
  }
}

.cd-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.cd-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #6b7280;
}
.cd-breadcrumb a {
  color: #6b7280;
  text-decoration: none;
}
.cd-breadcrumb a:hover {
  color: #111827;
}
.cd-breadcrumb__sep {
  color: #d1d5db;
}
.cd-breadcrumb__current {
  color: #111827;
  font-weight: 500;
}

.cd-nav-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cd-header {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  padding: 20px 24px;
  margin-bottom: 0;
}

.cd-header-meta {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.cd-avatar {
  width: 64px;
  height: 64px;
  border-radius: 9999px;
  background: #f3f4f6;
  border: 2px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #9ca3af;
}
.cd-avatar svg {
  width: 34px;
  height: 34px;
}

.cd-info {
  flex: 1;
  min-width: 0;
}

.cd-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.cd-name {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
}

.cd-badge-type {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 10px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 500;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  color: #374151;
  cursor: pointer;
  transition: background 150ms ease;
}
.cd-badge-type svg {
  width: 11px;
  height: 11px;
}
.cd-badge-type:hover {
  background: #f9fafb;
}

.cd-badge-status {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 10px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 500;
  background: #E6F4EA;
  border: 1px solid #A8D5B5;
  color: #34A853;
  cursor: pointer;
  transition: background 150ms ease;
}
.cd-badge-status svg {
  width: 11px;
  height: 11px;
}
.cd-badge-status:hover {
  background: #bbf7d0;
}

.cd-email-line {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 2px;
}

.cd-added-line {
  font-size: 12px;
  color: #9ca3af;
  margin-bottom: 10px;
}

.cd-action-bar {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cd-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
  font-size: 12px;
  color: #374151;
  cursor: pointer;
  transition: background 150ms ease;
}
.cd-action-btn svg {
  width: 14px;
  height: 14px;
}
.cd-action-btn:hover {
  background: #f9fafb;
}

.cd-lt-area {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  border-top: 1px solid #e5e7eb;
  margin-top: 16px;
  padding-top: 16px;
}

.cd-lt-section {
  flex: 1;
  min-width: 160px;
}

.cd-lt-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #4b5563;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.cd-lt-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  background: #ffffff;
  color: #6b7280;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  padding: 0;
  transition: background 150ms ease;
}
.cd-lt-add:hover {
  background: #f3f4f6;
}

.cd-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.cd-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  background: #f3f4f6;
  border-radius: 4px;
  font-size: 12px;
  color: #374151;
}

.cd-chip-remove {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  color: #9ca3af;
  font-size: 14px;
  line-height: 1;
  margin-left: 2px;
}
.cd-chip-remove:hover {
  color: #374151;
}

.cd-tabs {
  display: flex;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-bottom: none;
  border-radius: 10px 10px 0 0;
  padding: 0 20px;
  overflow-x: auto;
  margin-top: 16px;
  scrollbar-width: thin;
  scrollbar-color: #d1d5db transparent;
}
.cd-tabs::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
.cd-tabs::-webkit-scrollbar-track {
  background: transparent;
}
.cd-tabs::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 9999px;
}
.cd-tabs::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

.cd-tab {
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 500;
  color: #6b7280;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  text-decoration: none;
  transition: color 150ms ease, border-color 150ms ease;
}
.cd-tab:hover {
  color: #111827;
}
.cd-tab.is-active {
  color: #2563eb;
  border-bottom-color: #2563eb;
}

.cd-tab-panel {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-top: none;
  border-radius: 0 0 10px 10px;
  padding: 24px;
}

.cd-overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
@media (max-width: 767px) {
  .cd-overview-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.cd-section-title {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 16px;
}

.cd-form-group {
  margin-bottom: 14px;
}
.cd-form-group:last-of-type {
  margin-bottom: 0;
}

.cd-dob-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}

.cd-prefix-row {
  display: grid;
  grid-template-columns: 110px 1fr 1fr;
  gap: 12px;
}

.cd-addr-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.cd-custom-fields-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 12px;
  color: #374151;
  background: #ffffff;
  cursor: pointer;
  margin-top: 16px;
  transition: background 150ms ease;
}
.cd-custom-fields-btn svg {
  width: 14px;
  height: 14px;
}
.cd-custom-fields-btn:hover {
  background: #f9fafb;
}

.cd-update-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
}

.cd-email-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #e5e7eb;
}
.cd-email-item:last-child {
  border-bottom: none;
}

.cd-form-sub-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #e5e7eb;
  font-size: 13px;
}
.cd-form-sub-item:last-child {
  border-bottom: none;
}

.cd-note-card {
  background: #fffbeb;
  border: 1px solid #FDD663;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 10px;
  font-size: 13px;
  color: #374151;
}

.cd-note-meta {
  font-size: 12px;
  color: #9ca3af;
  margin-top: 6px;
}

.cd-activity-list {
  margin-top: 20px;
}

.cd-activity-label {
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.cd-activity-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #e5e7eb;
}
.cd-activity-item:last-child {
  border-bottom: none;
}

.cd-activity-dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: #2563eb;
  margin-top: 5px;
  flex-shrink: 0;
}
.cd-activity-dot--green {
  background: #34A853;
}

.cd-empty {
  text-align: center;
  padding: 40px 0;
  color: #9ca3af;
  font-size: 13px;
}
.cd-empty svg {
  width: 36px;
  height: 36px;
  margin: 0 auto 10px;
  color: #d1d5db;
  display: block;
}

.cd-aside {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  padding: 20px;
  position: sticky;
  top: 78px;
}

.cd-aside-title {
  font-size: 13px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e5e7eb;
}

.cd-aside-empty {
  font-size: 12px;
  color: #9ca3af;
  text-align: center;
  padding: 16px 0;
  line-height: 1.7;
}

.import-wizard {
  max-width: 780px;
}

.column-mapping-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.column-mapping-table th {
  padding: 10px 14px;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.column-mapping-table td {
  padding: 10px 14px;
  border-bottom: 1px solid #e5e7eb;
  color: #374151;
  vertical-align: middle;
}
.column-mapping-table tbody tr:last-child td {
  border-bottom: none;
}

.canvas-wrapper {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  height: calc(100vh - 180px);
  min-height: 540px;
  overflow: hidden;
  position: relative;
  background: #f8f9fb;
  background-image: radial-gradient(circle, #d1d5db 1px, transparent 1px);
  background-size: 24px 24px;
}

.canvas-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  height: 100%;
  gap: 16px;
  text-align: center;
  padding: 40px;
}
.canvas-placeholder-icon {
  width: 64px;
  height: 64px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
}
.canvas-placeholder-icon svg {
  width: 28px;
  height: 28px;
  color: #9ca3af;
}
.canvas-placeholder h3 {
  font-size: 16px;
  font-weight: 600;
  color: #374151;
}
.canvas-placeholder p {
  font-size: 13px;
  color: #9ca3af;
  max-width: 340px;
  line-height: 1.6;
}

.canvas-toolbar {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 5px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
}

.canvas-minimap {
  position: absolute;
  bottom: 16px;
  right: 16px;
  width: 160px;
  height: 100px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.workflow-node {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  padding: 12px 16px;
  min-width: 200px;
  max-width: 260px;
  display: inline-block;
}
.workflow-node-type {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9ca3af;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
}
.workflow-node-type svg {
  width: 12px;
  height: 12px;
}
.workflow-node-title {
  font-size: 13px;
  font-weight: 600;
  color: #1f2937;
}
.workflow-node-sub {
  font-size: 12px;
  color: #6b7280;
  margin-top: 3px;
}
.workflow-node--trigger {
  border-color: #C5D9FD;
}
.workflow-node--trigger .workflow-node-type {
  color: #4285F4;
}
.workflow-node--action {
  border-color: #93c5fd;
}
.workflow-node--action .workflow-node-type {
  color: #2563eb;
}
.workflow-node--condition {
  border-color: #FDD663;
}
.workflow-node--condition .workflow-node-type {
  color: #F9AB00;
}

.automation-item {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: box-shadow 150ms ease;
}
.automation-item:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
}
.automation-item-info {
  flex: 1;
  min-width: 0;
}
.automation-item-name {
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.automation-item-meta {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  font-size: 12px;
  color: #9ca3af;
}
.automation-item-meta svg {
  width: 13px;
  height: 13px;
}
.automation-item-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  flex-shrink: 0;
}

.settings-tabs {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  border-bottom: 2px solid #e5e7eb;
  margin-bottom: 24px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #d1d5db transparent;
}
.settings-tabs::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
.settings-tabs::-webkit-scrollbar-track {
  background: transparent;
}
.settings-tabs::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 9999px;
}
.settings-tabs::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

.settings-tab {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  color: #6b7280;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 150ms ease, border-color 150ms ease;
}
.settings-tab svg {
  width: 15px;
  height: 15px;
}
.settings-tab:hover {
  color: #374151;
}
.settings-tab.is-active {
  color: #4285F4;
  border-bottom-color: #4285F4;
}

.settings-panel {
  display: none;
}
.settings-panel.is-active {
  display: block;
}

.settings-section {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  margin-bottom: 22px;
  overflow: hidden;
}
.settings-section-header {
  padding: 16px 22px;
  border-bottom: 1px solid #e5e7eb;
}
.settings-section-header h3 {
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
}
.settings-section-header p {
  font-size: 12px;
  color: #6b7280;
  margin-top: 3px;
}
.settings-section-body {
  padding: 22px;
}
.settings-section-footer {
  padding: 14px 22px;
  border-top: 1px solid #e5e7eb;
  background: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.settings-section--danger {
  border-color: #F5C6C2;
}
.settings-section--danger .settings-section-header {
  background: #FCE8E6;
  border-color: #F5C6C2;
}
.settings-section--danger .settings-section-header h3 {
  color: #EA4335;
}

.team-member-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #e5e7eb;
  gap: 12px;
}
.team-member-row:last-child {
  border-bottom: none;
}
.team-member-row-left {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
}
.team-member-row-avatar {
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  background: #E8F0FE;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: #4285F4;
  border: 1px solid #C5D9FD;
  flex-shrink: 0;
}
.team-member-row-name {
  font-size: 13px;
  font-weight: 600;
  color: #1f2937;
}
.team-member-row-email {
  font-size: 12px;
  color: #9ca3af;
}
.team-member-row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}

.smtp-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  margin-bottom: 16px;
}
.smtp-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #e5e7eb;
  background: #f9fafb;
}
.smtp-card-header-title {
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
}
.smtp-card-body {
  padding: 20px;
}

.smtp-test-result {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  margin-top: 14px;
}
.smtp-test-result--success {
  background: #E6F4EA;
  color: rgb(39.9454545455, 129.0545454545, 63.7590909091);
  border: 1px solid #A8D5B5;
}
.smtp-test-result--error {
  background: #FCE8E6;
  color: rgb(231.5986547085, 45.5022421525, 29.9013452915);
  border: 1px solid #F5C6C2;
}
.smtp-test-result svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.rw-main {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
  min-height: 0;
}

.rw-stepbar {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  height: 54px;
  position: relative;
  flex-shrink: 0;
}

.rw-stepbar-back {
  position: absolute;
  left: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #6b7280;
  text-decoration: none;
}
.rw-stepbar-back:hover {
  color: #111827;
}

.rw-stepbar-title {
  position: absolute;
  right: 20px;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  max-width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rw-steps {
  display: flex;
  align-items: center;
  gap: 0;
}

.rw-step-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 20px;
  height: 54px;
  font-size: 13px;
  font-weight: 500;
  color: #9ca3af;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  user-select: none;
  transition: color 150ms ease;
}
.rw-step-item.is-active {
  color: #1f2937;
  border-bottom-color: #2563eb;
}
.rw-step-item.is-active .rw-step-num {
  background: #2563eb;
  color: #ffffff;
}
.rw-step-item.is-done {
  color: #34A853;
}
.rw-step-item.is-done .rw-step-num {
  display: none;
}
.rw-step-item.is-done .rw-step-check {
  display: block;
}

.rw-step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #e5e7eb;
  font-size: 11px;
  font-weight: 700;
  color: #6b7280;
  flex-shrink: 0;
}

.rw-step-check {
  display: none;
  width: 18px;
  height: 18px;
  color: #34A853;
}

.rw-step-sep {
  width: 24px;
  height: 1px;
  background: #e5e7eb;
  flex-shrink: 0;
}

.rw-step-panel {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.rw-step-panel[hidden] {
  display: none !important;
}

.rw-editor-toolbar {
  height: 48px;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  gap: 8px;
  flex-shrink: 0;
}

.rw-toolbar-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.rw-toolbar-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.rw-tbtn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 32px;
  padding: 0 10px;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  font-size: 12px;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  transition: background 150ms ease;
}
.rw-tbtn:hover {
  background: #f9fafb;
}
.rw-tbtn svg {
  width: 14px;
  height: 14px;
}

.rw-tbtn-icon {
  width: 28px;
  height: 28px;
  padding: 0;
}

.rw-tbtn-sep {
  width: 1px;
  height: 24px;
  background: #e5e7eb;
  margin: 0 4px;
}

.rw-tbtn-save {
  background: #34A853;
  color: #ffffff;
  border-color: #34A853;
}
.rw-tbtn-save:hover {
  background: #15803d;
}

.rw-tbtn-next {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}
.rw-tbtn-next:hover {
  background: #1d4ed8;
}

.rw-editor-body {
  flex: 1;
  display: flex;
  overflow: hidden;
}

.rw-palette {
  width: 160px;
  background: #f8fafc;
  border-right: 1px solid #e5e7eb;
  padding: 12px 8px;
  overflow-y: auto;
  flex-shrink: 0;
}

.rw-palette-label {
  font-size: 10px;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 8px 4px 6px;
}

.rw-palette-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 10px 6px;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  cursor: grab;
  font-size: 11px;
  font-weight: 500;
  color: #374151;
  text-align: center;
  margin-bottom: 6px;
  user-select: none;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.rw-palette-item:hover {
  border-color: #93c5fd;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1);
}
.rw-palette-item:active {
  cursor: grabbing;
}
.rw-palette-item svg {
  width: 20px;
  height: 20px;
  color: #6b7280;
}

.rw-canvas-wrap {
  flex: 1;
  overflow-y: auto;
  background: #e9ecef;
  padding: 24px;
  display: flex;
  justify-content: center;
}

.rw-email-frame {
  width: 620px;
  background: #ffffff;
  min-height: 480px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.12);
  border-radius: 2px;
  position: relative;
}

.rw-drop-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 48px 24px;
  color: #9ca3af;
  font-size: 13px;
  text-align: center;
  border: 2px dashed #d1d5db;
  margin: 16px;
  border-radius: 6px;
}
.rw-drop-hint svg {
  width: 32px;
  height: 32px;
  color: #d1d5db;
}

.rw-email-footer {
  padding: 16px;
  text-align: center;
  font-size: 11px;
  color: #9ca3af;
  border-top: 1px solid #f3f4f6;
  margin-top: 8px;
}

.rw-email-block {
  position: relative;
  border: 2px solid transparent;
  transition: border-color 150ms ease;
}
.rw-email-block:hover {
  border-color: #93c5fd;
}
.rw-email-block.is-selected {
  border-color: #2563eb;
}

.eb-inline-toolbar {
  position: absolute;
  top: -40px;
  left: 0;
  background: #1f2937;
  border-radius: 6px;
  padding: 4px;
  display: none;
  align-items: center;
  gap: 2px;
  z-index: 10;
  white-space: nowrap;
}

.email-block.is-selected .eb-inline-toolbar {
  display: flex;
}

.eb-tool-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  border: none;
  background: transparent;
  color: #e5e7eb;
  cursor: pointer;
}
.eb-tool-btn:hover {
  background: #374151;
}
.eb-tool-btn svg {
  width: 13px;
  height: 13px;
}

.rw-settings {
  width: 260px;
  border-left: 1px solid #e5e7eb;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  flex-shrink: 0;
}

.rw-settings-header {
  padding: 12px 16px;
  border-bottom: 1px solid #f3f4f6;
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.rw-settings-body {
  padding: 14px 16px;
  flex: 1;
  overflow-y: auto;
}

.rw-settings-section {
  margin-bottom: 18px;
}

.rw-settings-section-title {
  font-size: 10px;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.rw-prop-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.rw-prop-label {
  font-size: 11px;
  color: #6b7280;
}

.rw-prop-select {
  font-size: 11px;
  padding: 4px 6px;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  color: #374151;
}

.rw-pad-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.rw-pad-field {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.rw-pad-field label {
  font-size: 9px;
  color: #9ca3af;
  text-transform: uppercase;
}
.rw-pad-field input {
  font-size: 11px;
  padding: 4px 6px;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  width: 100%;
}

.rw-color-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}

.rw-swatch {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  cursor: pointer;
  border: 2px solid transparent;
}
.rw-swatch.is-active, .rw-swatch:hover {
  border-color: #2563eb;
}

.rw-content-area {
  flex: 1;
  overflow-y: auto;
  padding: 32px;
}

.rw-content-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 28px 32px;
  margin-bottom: 20px;
  margin-left: auto;
  margin-right: auto;
}
.rw-content-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.rw-content-card h3 svg {
  width: 18px;
  height: 18px;
  color: #2563eb;
}

.rw-step-footer {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 8px;
}

.rw-step-back-link {
  font-size: 13px;
  color: #6b7280;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}
.rw-step-back-link:hover {
  color: #111827;
}

.freq-pills {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.freq-pill {
  flex: 1;
  padding: 10px 8px;
  text-align: center;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #6b7280;
  cursor: pointer;
  transition: all 150ms ease;
}
.freq-pill.is-active {
  border-color: #2563eb;
  background: #eff6ff;
  color: #2563eb;
  font-weight: 600;
}

.day-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.day-pill {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  transition: all 150ms ease;
}
.day-pill.is-active {
  border-color: #2563eb;
  background: #2563eb;
  color: #ffffff;
}

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

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

.end-opts {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.end-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #374151;
}
.end-opt input[type=radio] {
  accent-color: #2563eb;
}

.rw-recip-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  margin-bottom: 16px;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
  overflow: hidden;
}

.rw-recip-card-header {
  padding: 16px 24px;
  border-bottom: 1px solid #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.rw-recip-card-header h4 {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  margin: 0;
}

.rw-recip-table {
  width: 100%;
  border-collapse: collapse;
}
.rw-recip-table td {
  padding: 10px 16px;
  border-bottom: 1px solid #f3f4f6;
  font-size: 13px;
  vertical-align: middle;
}
.rw-recip-table td:last-child {
  width: 80px;
}

.rw-contact-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  color: #15803d;
  margin: 12px 24px;
}

.rw-review-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #f3f4f6;
}
.rw-review-row:last-child {
  border-bottom: none;
}

.rw-review-label {
  width: 140px;
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding-top: 2px;
}

.rw-review-value {
  flex: 1;
  font-size: 13px;
  color: #374151;
}

.rw-review-edit {
  margin-left: auto;
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 500;
  color: #2563eb;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.rw-preview-box {
  border: 2px dashed #fbbf24;
  border-radius: 8px;
  background: #fffbeb;
  padding: 20px;
  text-align: center;
}

.rw-schedule-radio {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rw-radio-opt {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  cursor: pointer;
}
.rw-radio-opt.is-selected {
  border-color: #2563eb;
  background: #eff6ff;
}
.rw-radio-opt input[type=radio] {
  accent-color: #2563eb;
  margin-top: 1px;
}

.rw-radio-opt-body {
  flex: 1;
}

.rw-radio-opt-title {
  font-size: 13px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 2px;
}

.rw-radio-opt-desc {
  font-size: 12px;
  color: #6b7280;
}

.sb-topbar {
  display: flex;
  align-items: center;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  height: 54px;
  padding: 0 20px;
  gap: 12px;
  position: relative;
  flex-shrink: 0;
}

.sb-topbar-back {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #6b7280;
  text-decoration: none;
}
.sb-topbar-back:hover {
  color: #111827;
}

.sb-topbar-divider {
  width: 1px;
  height: 20px;
  background: #e5e7eb;
}

.sb-topbar-name {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  min-width: 200px;
}
.sb-topbar-name input {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  border: none;
  outline: none;
  background: transparent;
  width: 260px;
}
.sb-topbar-name input:focus {
  background: #f9fafb;
  border-radius: 4px;
  padding: 2px 6px;
}

.sb-topbar-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  background: #FEF7E0;
  color: #F9AB00;
}

.sb-topbar-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sb-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 32px;
  padding: 0 14px;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  font-size: 12px;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  font-family: inherit;
  transition: background 150ms ease;
}
.sb-btn:hover {
  background: #f9fafb;
}

.sb-btn-primary {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}
.sb-btn-primary:hover {
  background: #1d4ed8;
}

.sb-btn-success {
  background: #34A853;
  color: #ffffff;
  border-color: #34A853;
}
.sb-btn-success:hover {
  background: #15803d;
}

.sb-layout {
  display: flex;
  height: calc(100vh - 54px);
  overflow: hidden;
}

.sb-config {
  width: 300px;
  background: #ffffff;
  border-right: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex-shrink: 0;
}

.sb-config-header {
  padding: 16px 20px;
  border-bottom: 1px solid #f3f4f6;
}
.sb-config-header h3 {
  font-size: 13px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 2px;
}
.sb-config-header p {
  font-size: 11px;
  color: #9ca3af;
  margin: 0;
}

.sb-config-body {
  padding: 16px 20px;
  flex: 1;
  overflow-y: auto;
}

.sb-field {
  margin-bottom: 16px;
}
.sb-field label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 5px;
}
.sb-field input, .sb-field select, .sb-field textarea {
  width: 100%;
  padding: 7px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 13px;
  color: #374151;
  font-family: inherit;
  outline: none;
  background: #ffffff;
}
.sb-field input:focus, .sb-field select:focus, .sb-field textarea:focus {
  border-color: #93c5fd;
}
.sb-field textarea {
  resize: vertical;
  min-height: 68px;
  line-height: 1.5;
}

.sb-stat-row {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.sb-stat {
  flex: 1;
  background: #f9fafb;
  border: 1px solid #f3f4f6;
  border-radius: 8px;
  padding: 10px 12px;
}

.sb-stat-val {
  font-size: 20px;
  font-weight: 700;
  color: #111827;
}

.sb-stat-label {
  font-size: 10px;
  color: #9ca3af;
  font-weight: 500;
  margin-top: 1px;
}

.sb-section-label {
  font-size: 10px;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.sb-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.sb-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
  color: #2563eb;
}
.sb-tag button {
  border: none;
  background: none;
  cursor: pointer;
  font-size: 14px;
  color: #93c5fd;
  padding: 0;
  line-height: 1;
}

.sb-canvas {
  flex: 1;
  overflow-y: auto;
  padding: 28px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sb-canvas-inner {
  width: 100%;
  max-width: 560px;
}

.sb-trigger-block {
  background: #ffffff;
  border: 2px solid #2563eb;
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 0;
  position: relative;
}

.sb-trigger-block-label {
  font-size: 10px;
  font-weight: 700;
  color: #2563eb;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.sb-trigger-block-label svg {
  width: 14px;
  height: 14px;
}

.sb-trigger-title {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 6px;
}

.sb-trigger-desc {
  font-size: 12px;
  color: #6b7280;
}

.sb-trigger-edit {
  position: absolute;
  top: 14px;
  right: 14px;
}

.sb-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  position: relative;
  margin: 0;
}

.sb-connector-line {
  width: 2px;
  background: #d1d5db;
  flex: 1;
  min-height: 16px;
}

.sb-connector-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #9ca3af;
  flex-shrink: 0;
}

.sb-delay-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  padding: 5px 12px 5px 8px;
  font-size: 12px;
  color: #374151;
  cursor: pointer;
  position: relative;
  z-index: 1;
  margin: 4px 0;
  white-space: nowrap;
}
.sb-delay-pill:hover {
  border-color: #93c5fd;
  background: #eff6ff;
}
.sb-delay-pill svg {
  width: 13px;
  height: 13px;
  color: #9ca3af;
}

.sb-delay-pill-val {
  font-weight: 600;
  color: #1f2937;
}

.sb-email-step {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px 20px;
  width: 100%;
  position: relative;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.sb-email-step:hover {
  border-color: #93c5fd;
  box-shadow: 0 2px 12px rgba(37, 99, 235, 0.08);
}
.sb-email-step.is-selected {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.sb-email-step:hover .sb-step-remove {
  opacity: 1;
}

.sb-step-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  color: #2563eb;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.sb-step-badge svg {
  width: 12px;
  height: 12px;
}

.sb-step-subject {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sb-step-subject input {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  border: none;
  outline: none;
  background: transparent;
  flex: 1;
  font-family: inherit;
}
.sb-step-subject input:focus {
  background: #f9fafb;
  border-radius: 4px;
  padding: 0 4px;
}

.sb-step-meta {
  font-size: 11px;
  color: #9ca3af;
  margin-bottom: 12px;
}

.sb-step-actions {
  display: flex;
  gap: 8px;
}

.sb-step-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 5px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  font-size: 11px;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  font-family: inherit;
  transition: background 150ms ease;
}
.sb-step-btn:hover {
  background: #f9fafb;
}

.sb-step-btn-primary {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #2563eb;
}
.sb-step-btn-primary:hover {
  background: #dbeafe;
}

.sb-step-remove {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 26px;
  height: 26px;
  border-radius: 5px;
  border: none;
  background: #FCE8E6;
  color: #ef4444;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 150ms ease;
}
.sb-step-remove svg {
  width: 12px;
  height: 12px;
}

.sb-condition-block {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 12px;
  padding: 14px 18px;
  width: 100%;
  position: relative;
}

.sb-condition-label {
  font-size: 10px;
  font-weight: 700;
  color: #F9AB00;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.sb-condition-title {
  font-size: 13px;
  font-weight: 600;
  color: #92400e;
  margin-bottom: 4px;
}

.sb-condition-branches {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.sb-branch {
  flex: 1;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px dashed #d1d5db;
  text-align: center;
  font-size: 12px;
  color: #9ca3af;
  cursor: pointer;
  transition: border-color 150ms ease;
}
.sb-branch:hover {
  border-color: #93c5fd;
  color: #2563eb;
}

.sb-branch-yes {
  border-color: #a7f3d0;
  background: #ecfdf5;
  color: #059669;
  font-weight: 600;
}

.sb-branch-no {
  border-color: #fecaca;
  background: #fef2f2;
  color: #EA4335;
  font-weight: 600;
}

.sb-add-step {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px;
  border: 2px dashed #d1d5db;
  border-radius: 10px;
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  color: #9ca3af;
  cursor: pointer;
  font-family: inherit;
  transition: all 150ms ease;
  margin-top: 4px;
}
.sb-add-step:hover {
  border-color: #2563eb;
  color: #2563eb;
  background: #eff6ff;
}
.sb-add-step svg {
  width: 16px;
  height: 16px;
}

.sb-add-menu {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  padding: 6px;
  display: none;
  min-width: 200px;
  position: absolute;
  z-index: 100;
}
.sb-add-menu.is-open {
  display: block;
}

.sb-add-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 6px;
  font-size: 13px;
  color: #374151;
  cursor: pointer;
  transition: background 0.1s;
}
.sb-add-menu-item:hover {
  background: #f9fafb;
}
.sb-add-menu-item svg {
  width: 16px;
  height: 16px;
}

.sb-add-menu-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sb-details {
  width: 280px;
  background: #ffffff;
  border-left: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex-shrink: 0;
  transition: width 0.2s;
}

.sb-details-header {
  padding: 14px 18px;
  border-bottom: 1px solid #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sb-details-header h4 {
  font-size: 13px;
  font-weight: 700;
  color: #111827;
  margin: 0;
}

.sb-details-close {
  border: none;
  background: none;
  cursor: pointer;
  color: #9ca3af;
  padding: 2px;
}
.sb-details-close:hover {
  color: #374151;
}

.sb-details-body {
  padding: 16px 18px;
  overflow-y: auto;
  flex: 1;
}

.sb-details-section {
  margin-bottom: 18px;
}

.sb-details-section-title {
  font-size: 10px;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.sb-step-stat-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.sb-step-stat-label {
  font-size: 11px;
  color: #6b7280;
  width: 60px;
  flex-shrink: 0;
}

.sb-step-stat-bar {
  flex: 1;
  height: 4px;
  background: #f3f4f6;
  border-radius: 2px;
}

.sb-step-stat-fill {
  height: 100%;
  border-radius: 2px;
  background: #2563eb;
}

.sb-step-stat-val {
  font-size: 11px;
  font-weight: 600;
  color: #374151;
  width: 36px;
  text-align: right;
}

.aud-tabs {
  display: flex;
  gap: 0;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  margin-bottom: 20px;
  overflow: hidden;
}

.aud-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  font-size: 13px;
  font-weight: 500;
  color: #6b7280;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 150ms ease, border-color 150ms ease, background 150ms ease;
  white-space: nowrap;
}
.aud-tab svg {
  width: 16px;
  height: 16px;
}
.aud-tab:hover {
  color: #111827;
  background: #f9fafb;
}
.aud-tab.is-active {
  color: #2563eb;
  border-bottom-color: #2563eb;
  background: #ffffff;
  font-weight: 600;
}

.section-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
  flex-wrap: wrap;
}

.section-hdr-left h2 {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  display: flex;
  align-items: center;
  gap: 6px;
}
.section-hdr-left p {
  font-size: 12px;
  color: #6b7280;
  margin-top: 3px;
}

.section-hdr-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tbl-search {
  position: relative;
}
.tbl-search input {
  padding: 7px 12px 7px 34px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 13px;
  color: #374151;
  width: 200px;
  outline: none;
  font-family: inherit;
}
.tbl-search input:focus {
  border-color: #93c5fd;
}
.tbl-search svg {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: #9ca3af;
}

.act-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: opacity 150ms ease;
}
.act-btn:hover {
  opacity: 0.85;
}
.act-btn svg {
  width: 14px;
  height: 14px;
  color: #ffffff;
  stroke: currentColor;
}

.act-btn--edit {
  background: #2563eb;
}

.act-btn--settings {
  background: #2563eb;
}

.act-btn--delete {
  background: #ef4444;
}

.tbl-title-link {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
  font-size: 13px;
}
.tbl-title-link:hover {
  text-decoration: underline;
}

.sub-label {
  font-size: 11px;
  color: #6b7280;
  display: block;
}

.modal-body-gray {
  background: #f9fafb;
  padding: 24px;
}

.modal-field-grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.tc-main {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.tc-back-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: #6b7280;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s;
}
.tc-back-link svg {
  width: 14px;
  height: 14px;
}
.tc-back-link:hover {
  color: #1f2937;
}

.tc-fields-strip {
  flex-shrink: 0;
  padding: 16px 24px 12px;
  border-bottom: 1px solid #e5e7eb;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tc-page-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tc-page-title {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  margin: 0;
}

.tc-fields-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 14px;
  align-items: end;
}
@media (max-width: 767px) {
  .tc-fields-row {
    grid-template-columns: 1fr;
  }
}

.tc-field-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.tc-field-group--title { /* wider col */ }

.tc-label {
  font-size: 12px;
  font-weight: 600;
  color: #4b5563;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.tc-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 13px;
  color: #1f2937;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
  box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.18);
}
.tc-input::placeholder {
  color: #9ca3af;
}
.tc-input--subject {
  padding-right: 40px;
}

.tc-subject-wrap {
  position: relative;
}

.tc-subject-personalize {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  background: #f9fafb;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
}
.tc-subject-personalize svg {
  width: 14px;
  height: 14px;
}
.tc-subject-personalize:hover {
  background: #fff;
  color: #1f2937;
}

.tc-editor-area {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.tc-editor-area .cw-editor-body {
  flex: 1;
  min-height: 0;
}

.af-main {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.af-topbar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  border-bottom: 1px solid #e5e7eb;
  background: #fff;
  gap: 12px;
  z-index: 10;
}

.af-topbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.af-topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.af-breadcrumb-link {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  text-decoration: none;
}
.af-breadcrumb-link:hover {
  color: #2563eb;
}

.af-breadcrumb-sep {
  color: #9ca3af;
  font-size: 13px;
}

.af-funnel-name {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}

.af-draft-badge {
  font-size: 12px;
  font-weight: 700;
  color: #dc2626;
  padding: 1px 0;
}

.af-name-input {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  border: 1px solid #2563eb;
  border-radius: 4px;
  padding: 2px 8px;
  outline: none;
  font-family: inherit;
}

.af-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  color: #6b7280;
  transition: background 0.12s, color 0.12s;
}
.af-icon-btn svg {
  width: 15px;
  height: 15px;
}
.af-icon-btn:hover {
  background: #f9fafb;
  color: #1f2937;
}

.af-flag-btn {
  border-color: transparent;
  background: none;
}

.af-toggle-group,
.af-status-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.af-toggle-label {
  font-size: 12px;
  color: #4b5563;
  font-weight: 500;
}

.af-toggle-switch {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
  cursor: pointer;
}
.af-toggle-switch input {
  display: none;
}

.af-toggle-thumb {
  position: absolute;
  inset: 0;
  background: #e5e7eb;
  border-radius: 10px;
  transition: background 0.2s;
}
.af-toggle-thumb::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  top: 2px;
  left: 2px;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.af-toggle-switch input:checked + .af-toggle-thumb {
  background: #2563eb;
}
.af-toggle-switch input:checked + .af-toggle-thumb::after {
  transform: translateX(16px);
}

.af-workspace {
  flex: 1;
  min-height: 0;
  display: flex;
  overflow: hidden;
}

.af-canvas {
  flex: 1;
  min-width: 0;
  overflow: auto;
  background-color: #f5f6f8;
  background-image: radial-gradient(circle, #d1d5db 1px, transparent 1px);
  background-size: 22px 22px;
  padding: 40px 60px 80px;
  scrollbar-width: thin;
  scrollbar-color: #d1d5db transparent;
}
.af-canvas::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
.af-canvas::-webkit-scrollbar-track {
  background: transparent;
}
.af-canvas::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 9999px;
}
.af-canvas::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

.af-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 700px;
}

.af-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.af-connector-line {
  width: 2px;
  height: 24px;
  background: #9ca3af;
}

.af-add-circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid #6b7280;
  background: #fff;
  cursor: pointer;
  font-size: 18px;
  font-weight: 300;
  line-height: 1;
  color: #4b5563;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
  position: relative;
  z-index: 2;
}
.af-add-circle:hover {
  border-color: #2563eb;
  color: #2563eb;
  background: #dbeafe;
}

.af-node {
  position: relative;
  width: 280px;
  padding: 16px 20px;
  border-radius: 8px;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: box-shadow 0.15s, border-color 0.15s;
}
.af-node:hover {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}
.af-node.is-selected {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.af-node--trigger {
  background: #fef9c3;
  border-color: #f5e05a;
}
.af-node--condition {
  background: #fee2e2;
  border-color: #fca5a5;
}
.af-node--tag {
  background: #ede9fe;
  border-color: #c4b5fd;
  text-align: left;
  width: 100%;
  border-radius: 6px;
}
.af-node--email {
  background: #ccfbf1;
  border-color: #5eead4;
  text-align: left;
  width: 100%;
  border-radius: 6px;
}
.af-node--wait {
  background: #fff;
  border-color: #e5e7eb;
  text-align: left;
  width: 100%;
  border-radius: 6px;
}
.af-node--end {
  background: #fef3c7;
  border-color: #fcd34d;
  text-align: center;
  width: 100%;
  border-radius: 6px;
}

.af-node-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin: 0 auto 6px;
  color: #6b7280;
}
.af-node-icon svg {
  width: 18px;
  height: 18px;
}
.af-node-icon--wait {
  color: #9ca3af;
}

.af-node--tag .af-node-icon,
.af-node--email .af-node-icon,
.af-node--wait .af-node-icon {
  margin: 0 auto 4px;
}

.af-node-title {
  font-size: 13px;
  font-weight: 700;
  color: #111827;
  line-height: 1.3;
  margin-bottom: 3px;
}

.af-node-sub {
  font-size: 11px;
  color: #6b7280;
  line-height: 1.3;
}

.af-node-collapse {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.af-node-collapse button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border: 1px solid #fca5a5;
  border-radius: 3px;
  background: #fff;
  cursor: pointer;
  font-size: 10px;
  color: #6b7280;
}
.af-node-collapse button:hover {
  background: #f9fafb;
}

.af-branch-root {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.af-branch-hline {
  width: 60%;
  height: 2px;
  background: #9ca3af;
  position: relative;
  margin-top: 0;
}

.af-branch-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  width: 100%;
  max-width: 800px;
}

.af-branch-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.af-branch-vline-top {
  width: 2px;
  height: 20px;
  background: #9ca3af;
}

.af-branch-vline {
  width: 2px;
  height: 16px;
  background: #9ca3af;
}

.af-branch-pill {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  z-index: 2;
}
.af-branch-pill--no {
  border: 2px solid #f87171;
  color: #ef4444;
  background: #fff;
}
.af-branch-pill--yes {
  border: 2px solid #374151;
  color: #1f2937;
  background: #fff;
}

.af-branch-box {
  width: 100%;
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.af-branch-box--no {
  border: 1.5px solid #fca5a5;
  background: rgba(255, 241, 242, 0.3);
}
.af-branch-box--yes {
  border: 1.5px solid #374151;
  background: rgba(249, 250, 251, 0.5);
}

.af-branch-inner-line {
  width: 2px;
  height: 14px;
  background: #d1d5db;
  flex-shrink: 0;
}

.af-add-action-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 10px 16px;
  border: 1.5px dashed #e5e7eb;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: #2563eb;
  justify-content: center;
  transition: background 0.12s, border-color 0.12s;
}
.af-add-action-btn svg {
  width: 12px;
  height: 12px;
}
.af-add-action-btn:hover {
  background: #dbeafe;
  border-color: #2563eb;
}

.af-panel {
  width: 400px;
  flex-shrink: 0;
  border-left: 1px solid #e5e7eb;
  background: #fff;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.af-panel-content {
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.af-panel-hdr {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 12px;
  border-bottom: 1px solid #e5e7eb;
  flex-shrink: 0;
}

.af-panel-title {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  line-height: 1.3;
}

.af-panel-badge {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}
.af-panel-badge--trigger {
  background: #ede9fe;
  color: #7c3aed;
}
.af-panel-badge--action {
  background: #dbeafe;
  color: #2563eb;
}
.af-panel-badge--condition {
  background: #fee2e2;
  color: #dc2626;
}

.af-panel-desc {
  font-size: 12px;
  color: #6b7280;
  margin-top: 4px;
  line-height: 1.4;
}

.af-panel-close {
  flex-shrink: 0;
  font-size: 18px;
  line-height: 1;
  color: #9ca3af;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 2px;
}
.af-panel-close:hover {
  color: #374151;
}

.af-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scrollbar-width: thin;
  scrollbar-color: #d1d5db transparent;
}
.af-panel-body::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
.af-panel-body::-webkit-scrollbar-track {
  background: transparent;
}
.af-panel-body::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 9999px;
}
.af-panel-body::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

.af-panel-footer {
  flex-shrink: 0;
  padding: 12px 18px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f9fafb;
}

.af-form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.af-form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.af-label {
  font-size: 12px;
  font-weight: 600;
  color: #4b5563;
}

.af-input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 13px;
  color: #1f2937;
  font-family: inherit;
  outline: none;
  outline: none;
  box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.18);
}

.af-textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 13px;
  color: #1f2937;
  font-family: inherit;
  outline: none;
  resize: vertical;
  outline: none;
  box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.18);
}

.af-select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 13px;
  color: #1f2937;
  font-family: inherit;
  outline: none;
  background: #fff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.18);
}

.af-settings-card {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.af-settings-card-title {
  font-size: 12px;
  font-weight: 700;
  color: #374151;
  margin-bottom: 2px;
}

.af-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: #374151;
  cursor: pointer;
}
.af-checkbox-row input {
  margin-top: 2px;
  flex-shrink: 0;
}

.af-radio-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.af-radio {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.af-radio-label {
  font-size: 13px;
  color: #374151;
}
.af-radio-label--active {
  color: #2563eb;
  font-weight: 600;
}

.af-condition-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.af-condition-row .af-select {
  flex: 1;
  min-width: 80px;
}
.af-condition-row .af-input {
  flex: 0 0 80px;
}

.af-add-condition-btn {
  font-size: 12px;
  color: #2563eb;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-weight: 600;
  text-align: left;
}
.af-add-condition-btn:hover {
  text-decoration: underline;
}

.af-delete-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid #fee2e2;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  color: #ef4444;
  margin-left: auto;
}
.af-delete-btn:hover {
  background: #fee2e2;
}

.af-tag-selector {
  display: flex;
  gap: 6px;
  align-items: stretch;
}

.af-tag-selected {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 6px 8px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  min-height: 38px;
  align-items: center;
}

.af-tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  background: #e5e7eb;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  color: #374151;
}
.af-tag-chip button {
  background: none;
  border: none;
  cursor: pointer;
  color: #6b7280;
  font-size: 12px;
  padding: 0;
  line-height: 1;
}

.af-tag-input {
  border: none;
  outline: none;
  font-size: 12px;
  color: #374151;
  flex: 1;
  min-width: 80px;
  font-family: inherit;
}

.af-tag-add-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #4b5563;
  color: #fff;
  font-size: 20px;
  font-weight: 300;
  cursor: pointer;
}
.af-tag-add-btn:hover {
  background: #1f2937;
}

.af-add-search-wrap {
  padding: 12px 18px;
  border-bottom: 1px solid #e5e7eb;
  flex-shrink: 0;
}

.af-add-search {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 13px;
  color: #374151;
  font-family: inherit;
  outline: none;
  outline: none;
  box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.18);
}

.af-add-tabs {
  display: flex;
  border-bottom: 2px solid #e5e7eb;
  flex-shrink: 0;
}

.af-add-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 10px 8px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  color: #6b7280;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.12s;
}
.af-add-tab svg {
  width: 13px;
  height: 13px;
}
.af-add-tab:hover {
  color: #1f2937;
}
.af-add-tab.is-active {
  color: #2563eb;
  border-bottom-color: #2563eb;
  font-weight: 600;
}

.af-add-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 18px;
  scrollbar-width: thin;
  scrollbar-color: #d1d5db transparent;
}
.af-add-body::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
.af-add-body::-webkit-scrollbar-track {
  background: transparent;
}
.af-add-body::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 9999px;
}
.af-add-body::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

.af-add-section-label {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 6px;
}

.af-add-section-desc {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.4;
  margin-bottom: 16px;
}

.af-add-group-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #4b5563;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  padding: 2px 8px;
  margin-bottom: 12px;
}

.af-block-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}
.af-block-grid--dark {
  background: #374151;
  border-color: #374151;
}

.af-block-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px 12px;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.12s, box-shadow 0.12s;
}
.af-block-card:hover {
  border-color: #2563eb;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1);
}
.af-block-card--active {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.af-block-card--goal {
  background: #fef9c3;
  border-color: #f5e05a;
}
.af-block-card--goal:hover {
  border-color: #d97706;
}
.af-block-card--cond {
  background: #fee2e2;
  border-color: #fca5a5;
}
.af-block-card--cond:hover {
  border-color: #dc2626;
}
.af-block-card--white {
  background: #fff;
}

.af-block-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  color: #4b5563;
}
.af-block-icon svg {
  width: 16px;
  height: 16px;
}

.af-block-name {
  font-size: 13px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 5px;
  line-height: 1.2;
}

.af-block-desc {
  font-size: 11px;
  color: #6b7280;
  line-height: 1.4;
}

.af-add-popup {
  position: fixed;
  z-index: 9999;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
  padding: 6px;
  min-width: 280px;
}

.af-add-popup-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: none;
  border-radius: 8px;
  background: none;
  cursor: pointer;
  text-align: left;
  transition: background 0.1s;
}
.af-add-popup-item:hover {
  background: #f9fafb;
}

.af-add-popup-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4b5563;
}
.af-add-popup-icon svg {
  width: 15px;
  height: 15px;
}

.af-add-popup-title {
  font-size: 13px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 2px;
}

.af-add-popup-desc {
  font-size: 11px;
  color: #6b7280;
  line-height: 1.4;
}

.af-template-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 4px 0;
}
@media (max-width: 767px) {
  .af-template-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.af-template-card {
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  padding: 20px 16px;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s, box-shadow 0.15s;
  background: #fff;
}
.af-template-card:hover {
  border-color: #2563eb;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}
.af-template-card--scratch {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-style: dashed;
}

.af-template-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  color: #6b7280;
  font-size: 18px;
  font-weight: 300;
}
.af-template-icon svg {
  width: 18px;
  height: 18px;
}

.af-template-name {
  font-size: 13px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 6px;
  line-height: 1.3;
}

.af-template-desc {
  font-size: 11px;
  color: #6b7280;
  line-height: 1.4;
}

.fb-main {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
}

.fb-topbar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 20px;
  height: 56px;
  border-bottom: 1px solid #e5e7eb;
  background: #fff;
}

.fb-topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.fb-back-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: #6b7280;
  text-decoration: none;
  white-space: nowrap;
}
.fb-back-link svg {
  width: 14px;
  height: 14px;
}
.fb-back-link:hover {
  color: #1f2937;
}

.fb-name-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.fb-form-name {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 4px 8px;
  outline: none;
  background: transparent;
}
.fb-form-name:hover {
  border-color: #e5e7eb;
  background: #f9fafb;
}
.fb-form-name:focus {
  border-color: #4285F4;
  background: #fff;
  box-shadow: 0 0 0 3px #E8F0FE;
}

.fb-draft-badge {
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
  background: #f3f4f6;
  border-radius: 99px;
  padding: 2px 8px;
}

.fb-topbar-center {
  display: flex;
  align-items: center;
  gap: 2px;
  background: #f3f4f6;
  border-radius: 8px;
  padding: 3px;
}

.fb-tab-btn {
  padding: 5px 14px;
  font-size: 13px;
  font-weight: 500;
  color: #6b7280;
  border: none;
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.fb-tab-btn:hover {
  color: #1f2937;
}
.fb-tab-btn.is-active {
  background: #fff;
  color: #111827;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.fb-topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fb-workspace {
  flex: 1;
  min-height: 0;
  display: flex;
  overflow: hidden;
}

.fb-palette {
  width: 240px;
  flex-shrink: 0;
  border-right: 1px solid #e5e7eb;
  background: #fff;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #d1d5db transparent;
}
.fb-palette::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
.fb-palette::-webkit-scrollbar-track {
  background: transparent;
}
.fb-palette::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 9999px;
}
.fb-palette::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}
.fb-palette {
  display: flex;
  flex-direction: column;
}

.fb-palette-search {
  padding: 12px 14px;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
}
.fb-palette-search input {
  width: 100%;
  padding: 7px 10px 7px 32px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 13px;
  color: #1f2937;
  background: #f9fafb url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.8' stroke='%239ca3af'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M21 21l-5.197-5.197m0 0A7.5 7.5 0 105.196 5.196a7.5 7.5 0 0010.607 10.607z'/%3E%3C/svg%3E") no-repeat 8px center/16px;
  outline: none;
  font-family: inherit;
}
.fb-palette-search input:focus {
  border-color: #4285F4;
  background-color: #fff;
}

.fb-palette-section {
  padding: 14px 14px 6px;
}

.fb-palette-label {
  font-size: 10px;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
}

.fb-palette-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 6px;
}

.fb-field-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 10px 6px;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  cursor: grab;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
  user-select: none;
}
.fb-field-chip:hover {
  border-color: #4285F4;
  background: #E8F0FE;
  box-shadow: 0 1px 4px rgba(92, 45, 14, 0.1);
}
.fb-field-chip:active {
  cursor: grabbing;
}
.fb-field-chip.is-dragging {
  opacity: 0.5;
}
.fb-field-chip svg {
  width: 18px;
  height: 18px;
  color: #6b7280;
}
.fb-field-chip span {
  font-size: 11px;
  font-weight: 500;
  color: #4b5563;
  text-align: center;
  line-height: 1.2;
}
.fb-field-chip:hover svg, .fb-field-chip:hover span {
  color: #4285F4;
}

.fb-canvas-wrap {
  flex: 1;
  overflow-y: auto;
  background: #f5f6f8;
  padding: 32px 24px;
  scrollbar-width: thin;
  scrollbar-color: #d1d5db transparent;
}
.fb-canvas-wrap::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
.fb-canvas-wrap::-webkit-scrollbar-track {
  background: transparent;
}
.fb-canvas-wrap::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 9999px;
}
.fb-canvas-wrap::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

.fb-canvas {
  max-width: 640px;
  margin: 0 auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.fb-canvas-header {
  padding: 28px 28px 20px;
  border-bottom: 1px solid #e5e7eb;
}

.fb-form-title-input {
  width: 100%;
  font-size: 20px;
  font-weight: 700;
  color: #111827;
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  margin-bottom: 6px;
}
.fb-form-title-input::placeholder {
  color: #d1d5db;
}
.fb-form-title-input:focus {
  background: #f9fafb;
  border-radius: 4px;
  padding: 2px 4px;
  margin-left: -4px;
}

.fb-form-desc-input {
  width: 100%;
  font-size: 13px;
  color: #6b7280;
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  resize: none;
}
.fb-form-desc-input::placeholder {
  color: #d1d5db;
}
.fb-form-desc-input:focus {
  background: #f9fafb;
  border-radius: 4px;
  padding: 2px 4px;
  margin-left: -4px;
}

.fb-fields-list {
  padding: 16px 28px;
  min-height: 120px;
  position: relative;
}

.fb-drop-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 40px 20px;
  border: 2px dashed #e5e7eb;
  border-radius: 10px;
  color: #9ca3af;
  font-size: 13px;
  text-align: center;
}
.fb-drop-hint svg {
  width: 28px;
  height: 28px;
  color: #d1d5db;
}
.fb-drop-hint strong {
  color: #6b7280;
}

.fb-drop-zone-active {
  background: #E8F0FE;
  border-color: #4285F4;
  color: #4285F4;
}
.fb-drop-zone-active svg {
  color: #4285F4;
}

.fb-field-item {
  position: relative;
  padding: 14px 0;
  border-bottom: 1px solid #f9fafb;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.12s;
}
.fb-field-item:last-child {
  border-bottom: none;
}
.fb-field-item:hover {
  background: #f9fafb;
}
.fb-field-item.is-selected {
  background: #E8F0FE;
  border-radius: 8px;
}
.fb-field-item.is-selected .fb-field-actions {
  opacity: 1;
}
.fb-field-item.is-selected .fb-field-drag {
  opacity: 1;
}
.fb-field-item.is-dragging-over::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 3px;
  background: #4285F4;
  border-radius: 2px;
}

.fb-field-drag {
  position: absolute;
  left: -20px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  opacity: 0;
  cursor: grab;
  color: #9ca3af;
  transition: opacity 0.15s;
}
.fb-field-drag svg {
  width: 14px;
  height: 14px;
}
.fb-field-drag:hover {
  color: #4b5563;
}

.fb-field-inner {
  padding: 0 10px;
}

.fb-field-label-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.fb-field-label {
  font-size: 13px;
  font-weight: 600;
  color: #1f2937;
}

.fb-field-required {
  color: #ef4444;
  font-size: 13px;
  font-weight: 700;
}

.fb-field-help {
  font-size: 11px;
  color: #9ca3af;
  margin-top: 4px;
}

.fb-field-actions {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.15s;
}

.fb-field-action-btn {
  width: 26px;
  height: 26px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  transition: color 0.12s, background 0.12s;
}
.fb-field-action-btn svg {
  width: 13px;
  height: 13px;
}
.fb-field-action-btn:hover {
  background: #f9fafb;
  color: #374151;
}
.fb-field-action-btn--danger:hover {
  background: #fee2e2;
  color: #ef4444;
  border-color: #fca5a5;
}

.fb-input-preview, .fb-select-preview, .fb-textarea-preview {
  width: 100%;
  padding: 8px 12px;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  font-size: 13px;
  color: #9ca3af;
  background: #fff;
  pointer-events: none;
}

.fb-textarea-preview {
  height: 80px;
  resize: none;
  display: block;
}

.fb-select-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.fb-select-preview svg {
  width: 14px;
  height: 14px;
  color: #9ca3af;
}

.fb-radio-group, .fb-checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fb-radio-item, .fb-checkbox-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #374151;
}

.fb-radio-dot {
  width: 16px;
  height: 16px;
  border: 1.5px solid #e5e7eb;
  border-radius: 50%;
  flex-shrink: 0;
}

.fb-checkbox-box {
  width: 16px;
  height: 16px;
  border: 1.5px solid #e5e7eb;
  border-radius: 4px;
  flex-shrink: 0;
}

.fb-section-break {
  border: none;
  border-top: 2px solid #e5e7eb;
  margin: 8px 0;
}

.fb-section-label {
  font-size: 15px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 4px;
}

.fb-rating-row {
  display: flex;
  gap: 6px;
}

.fb-rating-star {
  font-size: 20px;
  color: #e5e7eb;
}
.fb-rating-star--filled {
  color: #f59e0b;
}

.fb-canvas-footer {
  padding: 20px 28px 28px;
}

.fb-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  background: #4285F4;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}

.fb-settings {
  width: 300px;
  flex-shrink: 0;
  border-left: 1px solid #e5e7eb;
  background: #fff;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.fb-settings-tabs {
  display: flex;
  border-bottom: 1px solid #e5e7eb;
  flex-shrink: 0;
}

.fb-settings-tab {
  flex: 1;
  padding: 12px 8px;
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  border: none;
  background: transparent;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.15s;
  text-align: center;
}
.fb-settings-tab:hover {
  color: #1f2937;
}
.fb-settings-tab.is-active {
  color: #4285F4;
  border-bottom-color: #4285F4;
}

.fb-settings-body {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #d1d5db transparent;
}
.fb-settings-body::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
.fb-settings-body::-webkit-scrollbar-track {
  background: transparent;
}
.fb-settings-body::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 9999px;
}
.fb-settings-body::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

.fb-settings-panel {
  display: none;
  padding: 16px;
}
.fb-settings-panel.is-visible {
  display: block;
}

.fb-settings-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 40px 20px;
  color: #9ca3af;
  font-size: 13px;
  text-align: center;
}
.fb-settings-empty svg {
  width: 28px;
  height: 28px;
  color: #d1d5db;
}

.fb-settings-group {
  margin-bottom: 16px;
}

.fb-settings-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 5px;
}

.fb-settings-input, .fb-settings-select, .fb-settings-textarea {
  width: 100%;
  padding: 7px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 13px;
  color: #1f2937;
  font-family: inherit;
  outline: none;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
  box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.18);
}
.fb-settings-input::placeholder, .fb-settings-select::placeholder, .fb-settings-textarea::placeholder {
  color: #9ca3af;
}

.fb-settings-textarea {
  resize: vertical;
  min-height: 64px;
}

.fb-settings-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.8' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19.5 8.25l-7.5 7.5-7.5-7.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 14px;
  padding-right: 28px;
  cursor: pointer;
}

.fb-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
}

.fb-toggle-label {
  font-size: 13px;
  font-weight: 500;
  color: #374151;
}

.fb-toggle {
  position: relative;
  width: 36px;
  height: 20px;
  flex-shrink: 0;
}
.fb-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.fb-toggle-track {
  position: absolute;
  inset: 0;
  background: #e5e7eb;
  border-radius: 99px;
  cursor: pointer;
  transition: background 0.2s;
}
.fb-toggle-track::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 50%;
  top: 3px;
  left: 3px;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.fb-toggle input:checked + .fb-toggle-track {
  background: #4285F4;
}
.fb-toggle input:checked + .fb-toggle-track::after {
  transform: translateX(16px);
}

.fb-options-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 8px;
}

.fb-option-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.fb-option-row input {
  flex: 1;
  padding: 6px 8px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 12px;
  color: #1f2937;
  font-family: inherit;
  outline: none;
  outline: none;
  box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.18);
}
.fb-option-row button {
  width: 22px;
  height: 22px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: #9ca3af;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}
.fb-option-row button svg {
  width: 13px;
  height: 13px;
}
.fb-option-row button:hover {
  background: #fee2e2;
  color: #ef4444;
}

.fb-add-option-btn {
  font-size: 12px;
  color: #4285F4;
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}
.fb-add-option-btn svg {
  width: 13px;
  height: 13px;
}
.fb-add-option-btn:hover {
  text-decoration: underline;
}

.fb-divider {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 14px 0;
}

.fb-color-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.fb-color-swatch {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.12s, border-color 0.12s;
}
.fb-color-swatch:hover {
  transform: scale(1.15);
}
.fb-color-swatch.is-active {
  border-color: #111827;
}

.fb-width-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.fb-width-btn {
  padding: 7px;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  font-size: 12px;
  font-weight: 500;
  color: #4b5563;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.12s, color 0.12s;
}
.fb-width-btn:hover {
  border-color: #4285F4;
  color: #4285F4;
}
.fb-width-btn.is-active {
  border-color: #4285F4;
  background: #E8F0FE;
  color: #4285F4;
}
