:root {
  --bg: #f7f7f9;
  --surface: #fff;
  --surface2: #f4f4f6;
  --border: #e5e7eb;
  --border2: #d1d5db;
  --sidebar-bg: #061d51;
  --sidebar-hover: #ffffff14;
  --sidebar-active: #ffffff24;
  --sidebar-text: #fff9;
  --sidebar-text-active: #fff;
  --accent: #2563eb;
  --accent2: #1d4ed8;
  --accent-dim: #2563eb1a;
  --accent-dim2: #2563eb0f;
  --text: #111827;
  --text2: #6b7280;
  --text3: #9ca3af;
  --purple: #9133fe;
  --purple-dim: #9133fe1a;
  --blue: #30a2d6;
  --blue-dim: #30a2d61a;
  --green: #45e990;
  --green-dim: #19f37c1a;
  --red: #ef4444;
  --red-dim: #ef44441a;
  --radius: 10px;
  --sidebar-w: 285px;
}
:root.dark {
  --bg: #0f1117;
  --surface: #1a1c25;
  --surface2: #252830;
  --border: #2e3140;
  --border2: #3a3e4f;
  --sidebar-bg: #0a0e1a;
  --text: #e5e7eb;
  --text2: #9ca3af;
  --text3: #6b7280;
  --accent-dim: #2563eb26;
  --accent-dim2: #2563eb14;
  --purple-dim: #9133fe26;
  --blue-dim: #30a2d626;
  --green-dim: #19f37c26;
  --red-dim: #ef444426;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  scrollbar-width: thin;
  scrollbar-color: var(--border2) transparent;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  display: block;
  max-width: 100%;
}
button {
  font-family: inherit;
}
html,
body {
  height: 100%;
}
body {
  font-family:
      "Inter",
      -apple-system,
      BlinkMacSystemFont,
      "Segoe UI",
      Roboto,
      sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 13.5px;
  overflow: hidden;
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 500px;
}
thead th {
  padding: 10px 18px;
  text-align: left;
  font-size: 11px;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border);
  font-weight: 500;
  white-space: nowrap;
  background: var(--surface2);
  position: sticky;
  top: 0;
}
tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.1s;
}
tbody tr:last-child {
  border-bottom: none;
}
tbody tr:hover {
  background: var(--surface2);
}
tbody td {
  padding: 12px 18px;
  color: var(--text2);
  vertical-align: middle;
  white-space: nowrap;
}
td.wrap {
  white-space: normal;
  min-width: 180px;
}
.sb-chat {
  z-index: 100 !important;
}
.table-group-head td {
  padding: 8px 18px 7px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
}
.preview-modal .modal {
  width: 720px;
  max-width: 95vw;
  height: 80vh;
  display: flex;
  flex-direction: column;
}
.preview-modal .modal iframe {
  flex: 1;
  border: none;
  border-radius: 0 0 12px 12px;
  background: #fff;
}
#app {
  display: flex;
  width: 100%;
  height: 100dvh;
  position: relative;
}
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}
.content {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}
.content > :not(.site-footer) {
  flex-shrink: 0;
}
.content > .site-footer {
  flex-shrink: 0;
}
.content::-webkit-scrollbar {
  width: 5px;
}
.content::-webkit-scrollbar-track {
  background: transparent;
}
.content::-webkit-scrollbar-thumb {
  background: var(--border2);
  border-radius: 3px;
}
.sidebar {
  width: var(--sidebar-w);
  background: var(--sidebar-bg);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  z-index: 20;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: #00000080;
  z-index: 19;
}
.sidebar-overlay.visible {
  display: block;
}
.logo {
  padding: 18px 20px 15px;
  border-bottom: 1px solid #ffffff14;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo img {
  height: 24px;
  width: auto;
  margin-bottom: 5px;
}
.team-selector {
  position: relative;
  margin-left: auto;
  margin-right: -10px;
}
.team-selector-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  border-radius: 8px;
  padding: 4px 8px 4px 4px;
  cursor: pointer;
  transition: all 0.15s;
}
.team-selector-toggle:hover {
  background: #ffffff14;
  border-color: #fff3;
}
.team-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}
.team-avatar.small {
  width: 22px;
  height: 22px;
  font-size: 10px;
}
.team-chevron {
  font-size: 9px;
  color: #ffffff80;
  transition: transform 0.2s;
}
.team-selector.open .team-chevron {
  transform: rotate(180deg);
}
.team-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 200px;
  background: var(--sidebar-bg);
  border: 1px solid #ffffff1f;
  border-radius: 10px;
  padding: 4px;
  z-index: 50;
  box-shadow: 0 8px 24px #0000004d;
}
.team-selector.open .team-dropdown {
  display: block;
}
.team-dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 7px;
  font-size: 12.5px;
  color: #ffffffb3;
  cursor: pointer;
  transition: all 0.12s;
  white-space: nowrap;
  text-decoration: none;
}
.team-dropdown-item:hover {
  background: #ffffff14;
  color: #fff;
}
.team-dropdown-item.active {
  color: #fff;
}
.team-dropdown-divider {
  height: 1px;
  background: #ffffff14;
  margin: 4px 0;
}
.team-create-icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  border-radius: 50%;
  background: #ffffff1a;
  color: #ffffff80;
}
.logo-close {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: #ffffff80;
  padding: 4px;
}
.logo-close i {
  font-size: 18px;
}
.topbar {
  height: 68px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 12px;
  background: var(--surface);
  flex-shrink: 0;
}
.topbar-title {
  font-size: 15px;
  font-weight: 600;
  flex: 1;
  color: var(--text);
  min-width: 0;
}
.topbar-title span {
  color: var(--text3);
  font-weight: 400;
  font-size: 13px;
}
.topbar-usage {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
  padding-right: 20px;
  margin-right: 10px;
  border-right: 1px solid #e5e7eb;
}
.topbar-usage-text {
  font-size: 12px;
  color: var(--text3);
  font-weight: 500;
  white-space: nowrap;
}
.topbar-usage-track {
  width: 100px;
  height: 5px;
  background: var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.topbar-usage-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 10px;
  transition: width 0.3s;
}
.language-selector {
  position: relative;
}
.language-selector-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: none;
  color: var(--text2);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
  flex-shrink: 0;
}
.language-selector-btn:hover {
  background: var(--surface2);
  color: var(--text);
}
.language-selector-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 150px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 24px #0000001a;
  z-index: 100;
  padding: 4px;
}
.language-selector.open .language-selector-dropdown {
  display: block;
}
.language-option {
  display: block;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--text2);
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.1s;
}
.language-option:hover {
  background: var(--hover);
  color: var(--text);
}
.language-option.active {
  color: var(--accent);
  font-weight: 600;
}
.topbar-icon {
  display: none;
}
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text2);
  padding: 6px;
  margin: -6px;
  border-radius: 8px;
}
.hamburger:hover {
  opacity: 0.25M;
}
.hamburger i {
  font-size: 18px;
  display: block;
}
.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  width: 34px;
  height: 34px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--text2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  flex-shrink: 0;
}
.theme-toggle:hover {
  background: var(--surface2);
  color: var(--text);
}
.footer-links a {
  color: var(--text3);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-links a:hover {
  color: var(--text2);
}
#toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 600;
  display: none;
  background: #1f2937;
  color: #fff;
  border-radius: 10px;
  padding: 10px 18px;
  font-size: 13px;
  white-space: nowrap;
  box-shadow: 0 4px 20px #0003;
  pointer-events: none;
}
.nav {
  flex: 1;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--sidebar-text);
  transition: all 0.15s;
  font-size: 13px;
  user-select: none;
  text-decoration: none;
}
.nav-item:hover {
  background: var(--sidebar-hover);
  color: var(--sidebar-text-active);
}
.nav-item.active {
  background: var(--sidebar-active);
  color: var(--sidebar-text-active);
}
.nav-item.disabled {
  opacity: 0.35;
  position: relative;
}
.nav-item.disabled::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  cursor: not-allowed;
}
.nav-item i {
  font-size: 14px;
  width: 16px;
  text-align: center;
  flex-shrink: 0;
}
.nav-divider {
  height: 1px;
  background: var(--sidebar-hover);
  margin: 10px;
}
.nav-badge {
  margin-left: auto;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 20px;
  min-width: 20px;
  text-align: center;
}
.sidebar-footer {
  padding: 12px 10px 14px;
  border-top: 1px solid #ffffff14;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.usage-widget {
  background: #ffffff0f;
  border-radius: 9px;
  padding: 11px 12px;
  border: 1px solid #ffffff14;
}
.usage-label {
  font-size: 11px;
  color: #ffffff80;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.usage-count {
  font-size: 11px;
  color: #ffffffbf;
  font-weight: 500;
}
.usage-bar-track {
  height: 5px;
  background: var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.sidebar .usage-bar-track {
  background: #ffffff1a;
}
.usage-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 10px;
  width: 20%;
}
.usage-sub {
  font-size: 11px;
  color: #ffffff59;
  margin-top: 6px;
}
.btn-upgrade {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: linear-gradient(45deg, #3576ff, #1ccc6e);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 9px 12px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.15s;
  width: 100%;
}
.btn-upgrade:hover {
  opacity: 0.88;
  color: #fff;
  text-decoration: none;
}
.btn-upgrade i {
  font-size: 12px;
}
.user-pill {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 9px;
  background: #ffffff0f;
  border: 1px solid #ffffff14;
}
.user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
}
.user-email {
  font-size: 10.5px;
  color: #ffffff73;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.logout-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: none;
  border: none;
  color: #ffffff59;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  flex-shrink: 0;
  text-decoration: none;
}
.logout-btn:hover {
  color: #fff;
  background: #ffffff1a;
}
.logout-btn i {
  font-size: 14px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  border: none;
  transition: all 0.15s;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}
.btn i {
  font-size: 12px;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent2);
}
.btn-primary:active {
  background: var(--accent2);
  opacity: 0.9;
}
.btn-ghost {
  background: var(--surface);
  color: var(--text2);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  color: var(--text);
  border-color: var(--border2);
}
.btn-danger {
  background: var(--purple-dim);
  color: var(--purple);
  border: 1px solid #9133fe33;
}
.btn-sm {
  padding: 5px 10px;
  font-size: 12px;
}
.btn-icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text3);
  font-size: 12px;
  cursor: pointer;
  flex-shrink: 0;
}
.btn-icon:hover {
  color: var(--text);
  border-color: var(--border2);
}
.btn-icon-sm {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text3);
  font-size: 14px;
  cursor: pointer;
  flex-shrink: 0;
}
.btn-icon-sm:hover {
  color: var(--text);
  border-color: var(--border2);
}
.btn-outline {
  background: none;
  border: 1px solid var(--border);
  color: var(--text2);
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 8px;
  transition: all 0.15s;
}
.btn-outline:hover {
  background: var(--surface2);
  color: var(--text);
}
.btn-outline:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.alert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.4;
}
.alert i {
  flex-shrink: 0;
  font-size: 20px;
}
.alert-notice {
  background: #f7f7f9;
  color: #4a4a4f;
}
.alert-success {
  background: #edf7ed;
  color: #1e6e1e;
}
.alert-error {
  background: #fdeded;
  color: #8e1e1e;
}
.alert-warning {
  background: #fff8e6;
  color: #7a5d00;
}
.alert-warning a {
  color: inherit;
  text-decoration: underline;
}
.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text3);
  flex-shrink: 0;
  cursor: help;
}
.status-dot.connected {
  background: var(--green);
  box-shadow: 0 0 0 2px #19f37c2e;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}
.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.badge-active {
  background: var(--green-dim);
  color: var(--green);
  border: 1px solid #19f37c33;
}
.badge-active::before {
  background: var(--green);
}
.badge-inactive {
  background: var(--surface2);
  color: var(--text3);
  border: 1px solid var(--border);
}
.badge-inactive::before {
  background: var(--text3);
}
.badge-delivered {
  background: var(--green-dim);
  color: var(--green);
  border: 1px solid #19f37c33;
}
.badge-delivered::before {
  background: var(--green);
}
.badge-failed {
  background: var(--purple-dim);
  color: var(--purple);
  border: 1px solid #9133fe33;
}
.badge-failed::before {
  background: var(--purple);
}
.badge-pending {
  background: var(--blue-dim);
  color: var(--blue);
  border: 1px solid #30a2d633;
}
.badge-pending::before {
  background: var(--blue);
}
.badge-denied,
.badge-blocked {
  background: var(--blue-dim);
  color: var(--blue);
  border: 1px solid #30a2d633;
}
.badge-denied::before,
.badge-blocked::before {
  background: var(--blue);
}
.badge-rejected {
  background: var(--blue-dim);
  color: var(--blue);
  border: 1px solid #30a2d633;
}
.badge-rejected::before {
  background: var(--blue);
}
.badge-snoozed {
  background: #fef3cd;
  color: #856404;
  border: 1px solid #85640433;
}
.badge-snoozed::before {
  background: #856404;
}
.toggle {
  position: relative;
  display: inline-block;
  width: 34px;
  height: 18px;
  cursor: pointer;
  flex-shrink: 0;
}
.toggle input {
  display: none;
}
.toggle-track {
  position: absolute;
  inset: 0;
  background: var(--border2);
  border-radius: 20px;
  transition: background 0.2s;
}
.toggle input:checked + .toggle-track {
  background: var(--accent);
}
.toggle-thumb {
  position: absolute;
  left: 2px;
  top: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--surface);
  transition: transform 0.2s;
  pointer-events: none;
  z-index: 1;
}
.toggle input:checked ~ .toggle-thumb {
  transform: translateX(16px);
}
.content-alert {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  flex: 1 1 auto;
  min-height: 0;
  max-width: 672px;
  margin: 0 auto;
  width: 100%;
}
.content-alert-illustration {
  display: block;
  max-width: 256px;
  margin-bottom: 35px;
}
.card-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.card-panel-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 14px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.chart-range-select {
  margin-left: auto;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  color: var(--text2);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 8px;
  cursor: pointer;
  outline: none;
}
.modal-overlay {
  position: fixed;
  inset: 0;
  background: #00000073;
  backdrop-filter: blur(4px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.open {
  display: flex;
}
.modal {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 16px;
  width: 100%;
  max-width: 520px;
  box-shadow: 0 8px 40px #00000040;
  animation: modalIn 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  max-height: 92dvh;
  overflow-y: auto;
}
.modal.modal-lg {
  max-width: 750px;
}
.modal.modal-sm {
  max-width: 375px;
}
.modal-head {
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}
.modal-head-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.modal-head-icon i {
  font-size: 14px;
  color: var(--accent);
}
.modal-head-icon-confirm {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-bottom: 10px;
}
.modal-head-icon-confirm i {
  font-size: 42px;
  color: var(--accent);
}
.modal-title {
  font-weight: 600;
  font-size: 15px;
  flex: 1;
}
.modal-close {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: none;
  border: 1px solid var(--border);
  color: var(--text3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  flex-shrink: 0;
}
.modal-close:hover {
  background: var(--surface2);
  color: var(--text);
}
.modal-close i {
  font-size: 13px;
}
.modal-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  padding: 0 20px;
}
.modal-tab {
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text3);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  font-family: inherit;
  margin-bottom: -1px;
  transition:
      color 0.15s,
      border-color 0.15s;
}
.modal-tab:hover:not(:disabled) {
  color: var(--text2);
}
.modal-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.modal-tab:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.modal-body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.modal-footer {
  background: var(--surface2);
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.form-input {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 13px;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition:
      border-color 0.15s,
      box-shadow 0.15s;
  width: 100%;
  -webkit-appearance: none;
}
.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.form-input::placeholder {
  color: var(--text3);
}
.form-input-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}
.table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.table-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  gap: 8px;
}
.table-header-title {
  font-weight: 600;
  font-size: 14px;
  flex: 1;
  min-width: 120px;
}
.table-scroll {
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
}
.table-scroll::-webkit-scrollbar {
  height: 4px;
}
.table-scroll::-webkit-scrollbar-track {
  background: transparent;
}
.table-scroll::-webkit-scrollbar-thumb {
  background: var(--border2);
  border-radius: 2px;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 6px 11px;
  width: 200px;
  min-width: 140px;
}
.search-box input {
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  width: 100%;
}
.search-box input::placeholder {
  color: var(--text3);
}
.search-box i {
  font-size: 12px;
  color: var(--text3);
  flex-shrink: 0;
}
.th-sort {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text3);
  text-decoration: none;
  font-weight: 600;
  font-size: 11px;
  white-space: nowrap;
  transition: color 0.15s;
}
.th-sort i {
  font-size: 9px;
  opacity: 0.3;
  transition: opacity 0.15s;
}
.th-sort:hover {
  color: var(--text);
}
.th-sort:hover i {
  opacity: 0.6;
}
.th-sort.active {
  color: var(--accent);
}
.th-sort.active i {
  opacity: 1;
}
.day-sep td {
  padding: 8px 18px 7px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
  border-top: 1px solid var(--border);
  pointer-events: none;
  white-space: nowrap;
}
.day-sep:first-child td {
  border-top: none;
}
tbody tr.day-sep:hover {
  background: var(--surface2);
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 16px 0;
}
.pagination-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text2);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: all 0.15s;
}
.pagination-btn:hover {
  background: var(--surface2);
  color: var(--text);
}
.pagination-num {
  min-width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 500;
  color: var(--text2);
  border-radius: 6px;
  transition: all 0.15s;
}
.pagination-num:hover {
  background: var(--surface2);
  color: var(--text);
}
.pagination-num.active {
  background: var(--accent);
  color: #fff;
}
.pagination-dots {
  color: var(--text3);
  font-size: 12px;
  padding: 0 2px;
}
.pagination-btn i {
  font-size: 10px;
}
.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: none;
  color: var(--text3);
  cursor: pointer;
  transition: all 0.15s;
  margin-left: 4px;
}
.action-btn i {
  font-size: 13px;
}
.action-btn:hover {
  background: var(--surface2);
  color: var(--text);
  border-color: var(--border2);
}
.action-btn.danger:hover {
  background: var(--purple-dim);
  color: var(--purple);
  border-color: #9133fe4d;
}
.msg-filtered {
  position: absolute;
  background: var(--accent);
  top: 15px;
  right: -2.5px;
  border-radius: 100px;
  color: #fff;
  width: 18px;
  height: 18px;
  font-size: 10px;
  padding: 4px;
  text-align: center;
}
.sender-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--surface2);
}
.sender-avatar-xl {
  width: 32px;
  height: 32px;
}
.sparkline {
  width: 80px;
  height: 20px;
  flex-shrink: 0;
}
.sparkline polyline {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.alias-suffix {
  display: flex;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition:
      border-color 0.15s,
      box-shadow 0.15s;
}
.alias-suffix:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.alias-suffix input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  padding: 10px 13px;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  min-width: 0;
}
.alias-suffix input::placeholder {
  color: var(--text3);
}
.alias-suffix-label {
  display: flex;
  align-items: center;
  padding: 0 13px;
  background: var(--surface);
  border-left: 1px solid var(--border);
  color: var(--text3);
  font-size: 12.5px;
  white-space: nowrap;
  flex-shrink: 0;
}
.alias-suffix-select {
  background: var(--surface);
  border: none;
  border-left: 1px solid var(--border);
  color: var(--text2);
  font-size: 12.5px;
  font-family: inherit;
  padding: 0 13px;
  outline: none;
  cursor: pointer;
  flex-shrink: 0;
}
.tab-panel {
  display: none;
  animation: fadeIn 0.18s ease;
  height: 100%;
  overflow: hidden;
  flex-direction: column;
}
.tab-panel.active {
  display: flex;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.stat-label {
  font-size: 11px;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.stat-value {
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}
.stat-value.green {
  color: var(--green);
}
.stat-value.blue {
  color: var(--blue);
}
.stat-value.purple {
  color: var(--purple);
}
.stat-sub {
  font-size: 11px;
  color: var(--text3);
  margin-top: 6px;
}
.placeholder-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 360px;
  gap: 14px;
  color: var(--text3);
  text-align: center;
  padding: 20px;
}
.placeholder-icon {
  width: 58px;
  height: 58px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}
.api-endpoint {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 8px;
  overflow: hidden;
}
.api-endpoint-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  cursor: pointer;
  user-select: none;
}
.api-endpoint-head:hover {
  background: var(--surface2);
}
.api-chevron {
  margin-left: auto;
  font-size: 11px;
  color: var(--text3);
  transition: transform 0.2s;
}
.api-endpoint.open .api-chevron {
  transform: rotate(180deg);
}
.api-endpoint-body {
  display: none;
  padding: 15px;
  border-top: 1px solid var(--border);
}
.api-endpoint.open .api-endpoint-body {
  display: block;
}
.api-method {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  font-family: inherit;
  letter-spacing: 0.3px;
  flex-shrink: 0;
}
.api-method-get {
  background: var(--green-dim);
  color: var(--green);
}
.api-method-post {
  background: var(--blue-dim);
  color: var(--blue);
}
.api-method-patch {
  background: #f59e0b1f;
  color: #f59e0b;
}
.api-method-delete {
  background: var(--purple-dim);
  color: var(--purple);
}
.api-param-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.api-param-table {
  width: 100%;
  font-size: 13px;
  border-collapse: collapse;
}
.api-param-table td {
  padding: 6px 10px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.api-param-table td:first-child {
  white-space: nowrap;
  width: 160px;
  color: var(--text);
}
.api-param-table td:last-child {
  color: var(--text2);
}
.api-param-table tr:last-child td {
  border-bottom: none;
}
.api-code {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 10px;
  line-height: 1.5;
  color: var(--text);
  overflow-x: auto;
  margin: 0;
  font-family: "SF Mono", "Fira Code", "Cascadia Code", monospace;
}
.provider-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  transition: all 0.15s;
}
.provider-btn:hover {
  border-color: var(--accent);
  background: var(--accent-dim2);
}
.provider-btn img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}
.type-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  transition:
      border-color 0.15s,
      background 0.15s;
}
.type-btn:hover {
  border-color: var(--accent);
  background: var(--accent-dim2);
}
.type-btn img {
  width: 96px;
  height: 96px;
}
.sample-grid {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 330px;
  overflow-y: auto;
}
.sample-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  background: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 12.5px;
  color: var(--text);
  text-align: left;
  width: 100%;
}
.sample-row:hover {
  background: var(--surface2);
}
.sample-row-icon {
  font-size: 13px;
  color: var(--text3);
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}
.sample-row-chevron {
  font-size: 10px;
  color: var(--text3);
  transition: transform 0.2s;
}
.sample-collapse.open .sample-row-chevron {
  transform: rotate(180deg);
}
.sample-collapse.open {
  background: var(--bg);
  border-radius: 8px;
}
.sample-body {
  display: none;
  padding: 6px 12px 12px 40px;
}
.sample-collapse.open .sample-body {
  display: block;
}
.sample-rule-group {
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: 7px;
}
.sample-group-connector {
  font-size: 10px;
  font-weight: 700;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 10px;
  text-align: center;
}
.sample-rule {
  font-size: 12px;
  color: var(--text2);
  padding: 3px 0;
}
.sample-rule-comp {
  font-weight: 600;
  background: #eaeaeb;
  padding: 2px 5px;
  border-radius: 5px;
}
.sample-rule-prefix {
  font-size: 10px;
  font-weight: 700;
  color: var(--text3);
  text-transform: uppercase;
  margin-right: 5px;
}
.spam-slider {
  width: 100%;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: linear-gradient(to right, #16a34a, #65a30d, #ca8a04, #ea780e, #dc2626);
  border-radius: 2px;
  outline: none;
}
.spam-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--surface);
  cursor: pointer;
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb, 99, 102, 241), 0.15);
  transition: box-shadow 0.15s;
}
.spam-slider::-webkit-slider-thumb:hover {
  box-shadow: 0 0 0 5px rgba(var(--accent-rgb, 99, 102, 241), 0.2);
}
.spam-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--surface);
  cursor: pointer;
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb, 99, 102, 241), 0.15);
}
.spam-slider::-moz-range-track {
  height: 4px;
  background: transparent;
  border: none;
}
.spam-score {
  font-size: 11px;
  font-weight: 600;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  cursor: pointer;
}
.cb-wrap {
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text2);
  user-select: none;
  line-height: 1.4;
}
.cb-wrap input[type="checkbox"] {
  display: none;
}
.cb-box {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  border: 1.5px solid var(--border2);
  border-radius: 4px;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.cb-wrap input:checked + .cb-box {
  background: var(--accent);
  border-color: var(--accent);
}
.cb-box i {
  font-size: 9px;
  color: #fff;
  opacity: 0;
  transition: opacity 0.1s;
}
.cb-wrap input:checked + .cb-box i {
  opacity: 1;
}
.cb-wrap:hover .cb-box {
  border-color: var(--accent);
}
.toggle-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text2);
  user-select: none;
}
.toggle-wrap input[type="checkbox"] {
  display: none;
}
.toggle-wrap .toggle-track {
  width: 36px;
  height: 20px;
  background: var(--border);
  border-radius: 10px;
  position: relative;
  transition: background 0.2s;
  flex-shrink: 0;
}
.toggle-wrap .toggle-thumb {
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: transform 0.2s;
}
.toggle-wrap input:checked + .toggle-track {
  background: var(--accent);
}
.toggle-wrap input:checked + .toggle-track .toggle-thumb {
  transform: translateX(16px);
}
.relay-threshold-inline .spam-slider {
  flex: 1;
  min-width: 60px;
  max-width: 100px;
}
.imap-test-success {
  color: #22c55e;
  background: #22c55e14;
}
.imap-test-error {
  color: var(--purple);
  background: var(--purple-dim);
}
.info-collapse {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.info-collapse summary {
  padding: 10px 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.info-collapse summary::-webkit-details-marker {
  display: none;
}
.info-collapse summary::after {
  content: "\f078";
  font-family: "Font Awesome 7 Free";
  font-weight: 900;
  font-size: 10px;
  color: var(--text3);
  transition: transform 0.2s;
}
.info-collapse[open] summary::after {
  transform: rotate(180deg);
}
.info-collapse ul {
  padding: 0 14px 12px 30px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.relay-domain-usage-track {
  width: 48px;
  height: 4px;
  background: var(--surface2);
  border-radius: 2px;
  overflow: hidden;
}
.relay-quick-add-body {
  padding: 12px 14px 14px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.relay-quick-inline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: end;
  column-gap: 10px;
  row-gap: 10px;
}
.relay-quick-inline .relay-quick-msg {
  grid-column: 1 / -1;
}
@media (max-width: 900px) {
  .relay-quick-inline {
      grid-template-columns: 1fr;
  }
}
.logic-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.logic-option {
  display: flex;
  align-items: center;
  cursor: pointer;
}
.logic-option input {
  display: none;
}
.logic-pill {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid var(--border);
  color: var(--text2);
  cursor: pointer;
  transition: all 0.15s;
  background: var(--surface2);
}
.logic-option input:checked + .logic-pill {
  background: var(--accent-dim);
  color: var(--accent);
  border-color: #2563eb4d;
}
.rule-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.rule-row:first-child {
  border-top: 1px solid var(--border);
}
.rule-connector {
  font-size: 10px;
  font-weight: 700;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  min-width: 55px;
  text-align: center;
  flex-shrink: 0;
}
.rule-select {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 7px 10px;
  font-family: inherit;
  font-size: 12.5px;
  color: var(--text);
  outline: none;
  cursor: pointer;
  transition: border-color 0.15s;
  -webkit-appearance: none;
  padding-right: 28px;
}
.rule-select:focus {
  border-color: var(--accent);
}
.select-wrapper {
  position: relative;
  display: inline-block;
  flex-shrink: 0;
}
.select-wrapper i {
  position: absolute;
  right: 9px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  color: #9ca3af;
  pointer-events: none;
}
.rule-input {
  flex: 1;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 7px 10px;
  font-family: inherit;
  font-size: 12.5px;
  color: var(--text);
  outline: none;
  min-width: 0;
  transition: border-color 0.15s;
}
.rule-input:focus {
  border-color: var(--accent);
}
.rule-delete {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: none;
  border: 1px solid var(--border);
  color: var(--text3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  flex-shrink: 0;
}
.rule-delete:hover {
  background: var(--purple-dim);
  color: var(--purple);
  border-color: #9133fe4d;
}
.rule-delete i {
  font-size: 11px;
}
.group-card {
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 14px;
  background: var(--surface);
  transition: border-color 0.15s;
}
.group-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.group-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.group-logic-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
.group-logic-label {
  font-size: 11px;
  color: var(--text3);
  font-weight: 500;
}
.group-logic-pill {
  padding: 2px 10px;
  border-radius: 16px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid var(--border);
  color: var(--text2);
  cursor: pointer;
  transition: all 0.15s;
  background: var(--surface2);
}
.group-logic-option {
  display: flex;
  cursor: pointer;
}
.group-logic-option input {
  display: none;
}
.group-logic-option input:checked + .group-logic-pill {
  background: var(--accent-dim);
  color: var(--accent);
  border-color: #2563eb4d;
}
.group-delete {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: none;
  border: 1px solid transparent;
  color: var(--text3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  flex-shrink: 0;
}
.group-delete:hover {
  background: var(--purple-dim);
  color: var(--purple);
  border-color: #9133fe4d;
}
.group-delete i {
  font-size: 11px;
}
.group-connector-row {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 0;
}
.group-connector {
  font-size: 10px;
  font-weight: 700;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--surface2);
  padding: 3px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
}
.group-card.test-match {
  border-color: #c1f3c6;
  background: #f6fdf6;
}
.group-card.test-no-match {
  border-color: #fbcccc;
  background: #fff8f8;
}
:root.dark .group-card.test-match {
  border-color: #1a4a2e;
  background: #0f1f16;
}
:root.dark .group-card.test-no-match {
  border-color: #4a1a1a;
  background: #1f0f0f;
}
.rule-indicator {
  font-size: 18px;
  flex-shrink: 0;
  color: var(--border2);
}
.rule-row.test-match > .rule-indicator {
  color: var(--green);
}
.rule-row.test-no-match > .rule-indicator {
  color: var(--red);
}
#test-result {
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
}
#test-result i {
  margin-right: 4px;
}
#test-result.test-result-match {
  background: var(--green-dim);
  color: var(--green);
}
#test-result.test-result-no-match {
  background: var(--red-dim);
  color: var(--red);
}
.action-option {
  border: 1px solid var(--border);
  border-radius: 9px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.15s;
}
.action-option-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
}
.action-radio {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--border2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s;
}
.action-radio-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
}
.action-option-label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  flex: 1;
}
.action-option-icon {
  font-size: 16px;
  color: var(--text3);
}
.action-option-body {
  padding: 0 14px 14px 40px;
  display: flex;
  flex-direction: column;
}
.billing-toggle {
  display: flex;
  gap: 4px;
  background: var(--surface2);
  border-radius: 10px;
  padding: 4px;
  width: fit-content;
  margin-bottom: 20px;
}
.billing-btn {
  background: none;
  border: none;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text2);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.billing-btn.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 3px #0000001a;
}
.billing-save {
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
}
.snoozer-day input {
  display: none;
}
.snoozer-day span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface2);
  font-size: 11px;
  font-weight: 500;
  color: var(--text3);
  transition: all 0.15s;
}
.snoozer-day input:checked + span {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.gatekeeper-tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 20px;
  background: var(--green-dim);
  color: var(--green);
  border: 1px solid #10b98133;
  font-size: 12px;
  font-weight: 500;
}
.sb-chat-btn {
  background: linear-gradient(45deg, #3576ff, #15f27c);
}
.auth-split {
  display: flex;
  min-height: 100vh;
}
.auth-left {
  flex: 0 0 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: var(--surface);
  overflow-y: auto;
}
.auth-left-inner {
  width: 100%;
  max-width: 380px;
}
.auth-right {
  flex: 1;
  background: #061d51 url(/assets/images/authentication/background.png) repeat-x center bottom;
  background-size: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.auth-didyouknow {
  position: relative;
  z-index: 1;
  padding: 28px 32px;
  max-width: 380px;
  text-align: center;
}
.auth-dyk-text {
  font-size: 14px;
  line-height: 1.6;
  color: #fffc;
}
.auth-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
  margin-top: 4px;
  width: 100%;
}
.auth-btn:hover {
  background: var(--accent2);
}
.auth-btn:active {
  background: var(--accent2);
  opacity: 0.9;
}
.auth-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.auth-error {
  background: var(--purple-dim);
  color: var(--purple);
  border: 1px solid #9133fe33;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 16px;
}
.auth-success {
  background: var(--green-dim);
  color: var(--green);
  border: 1px solid #10b98133;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 16px;
}
.mailbox-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.15s;
}
.mailbox-card:hover {
  border-color: var(--border2);
}
.mailbox-icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mailbox-icon img {
  height: 100%;
  width: 100%;
}
.mailbox-add {
  border-style: dashed;
  border-color: var(--border2);
  cursor: pointer;
  min-height: 120px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text3);
  transition: all 0.15s;
}
.mailbox-add:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim2);
}
.shield-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.shield-rule {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 12.5px;
  color: var(--text2);
  line-height: 1.5;
}
.domain-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
}
.dns-record-type {
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}
.dns-code {
  font-family: "SF Mono", Monaco, Consolas, monospace;
  font-size: 12px;
  color: var(--text);
  background: var(--surface);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border);
  word-break: break-all;
}
.alias-mailbox-icon img {
  width: 40px;
  height: 40px;
  margin-bottom: 6px;
}
.gauge-inline {
  background: var(--bg);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.gauge-wrap {
  width: 80px;
  flex-shrink: 0;
}
.gauge-svg {
  width: 100%;
  height: auto;
  display: block;
}
.toggle-panel {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.15s;
}
.toggle-panel:hover {
  border-color: var(--accent);
}
.toggle-panel-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 4px;
}
.toggle-panel .toggle-wrap {
  flex-shrink: 0;
  margin-left: auto;
}
.dash-chart-wrap {
  flex: 1;
  min-height: 260px;
  position: relative;
}
.protection-ring-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 0 8px;
}
.protection-ring {
  position: relative;
  width: 130px;
  height: 130px;
}
.protection-ring svg {
  transform: rotate(-90deg);
  width: 130px;
  height: 130px;
}
.protection-ring .ring-bg {
  fill: none;
  stroke: var(--surface2);
  stroke-width: 10;
}
.protection-ring .ring-fill {
  fill: none;
  stroke: var(--green);
  stroke-width: 10;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s ease;
}
.protection-ring-label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.dash-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dash-bar-stack {
  display: flex;
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
  background: var(--surface2);
}
.dash-top-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--surface2);
}
.dash-recent-from {
  width: 180px;
  flex-shrink: 0;
  min-width: 0;
  overflow: hidden;
}
.contact-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}
.cb-unset {
  background: var(--surface2);
  color: var(--text3);
  border: 1px solid var(--border);
}
.cb-whitelisted {
  background: var(--green-dim);
  color: var(--green);
  border: 1px solid #10b98133;
}
.cb-prioritized {
  background: var(--blue-dim);
  color: var(--blue);
  border: 1px solid #3b82f633;
}
.cb-muted {
  background: var(--blue-dim);
  color: var(--blue);
  border: 1px solid #30a2d633;
}
.cb-blocked {
  background: var(--purple-dim);
  color: var(--purple);
  border: 1px solid #9133fe33;
}
.state-info-row {
  padding: 15px 20px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
}
.state-info-row:last-child {
  border-bottom: none;
}
.state-info-row .contact-badge {
  flex-shrink: 0;
  width: 90px;
  justify-content: center;
  margin-top: 2px;
}
.state-info-row span:last-child {
  line-height: 1.5;
}
.drag-handle {
  cursor: grab;
  color: var(--text3);
  margin-right: 8px;
  user-select: none;
  opacity: 0.5;
}
.drag-handle:active {
  cursor: grabbing;
}
tr.drag-active {
  opacity: 0.9;
  background: var(--surface);
  box-shadow: 0 4px 16px #00000026;
  border-radius: 4px;
}
tr.drag-placeholder td {
  background: var(--surface2);
  border: 2px dashed var(--border2);
}
.contact-state-dropdown {
  position: fixed;
  z-index: 400;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 10px;
  box-shadow: 0 8px 30px #0000001f;
  min-width: 160px;
  overflow: hidden;
}
.contact-state-dropdown-inner {
  padding: 6px;
}
.contact-state-dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}
.contact-menu-item {
  display: flex;
  align-items: center;
  padding: 5px 6px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.1s;
}
.contact-menu-item:hover {
  background: var(--surface2);
}
.contact-profile {
  display: grid;
  grid-template-columns: 250px 1fr 1fr 2fr;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 20px;
  overflow: hidden;
}
.contact-profile > div {
  padding: 20px;
}
.contact-profile > div + div {
  border-left: 1px solid var(--border);
}
.contact-avatar-img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 10px;
}
.contact-name-count {
  font-size: 11px;
  color: var(--text3);
  background: var(--surface2);
  padding: 1px 7px;
  border-radius: 10px;
  flex-shrink: 0;
}
.contact-category-switch {
  cursor: pointer;
  border-radius: 4px;
  padding: 1px 4px;
  margin: -1px -4px;
  transition: background 0.15s;
}
.contact-category-switch:hover {
  background: var(--surface2);
}
.category-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  cursor: pointer;
  font-size: 13px;
  transition: background 0.1s;
}
.category-list-item:hover {
  background: var(--surface2);
}
.category-list-item.active {
  color: var(--accent);
}
.contact-profile-chart {
  display: flex;
  flex-direction: column;
  padding-bottom: 0 !important;
}
.contact-chart-wrap {
  flex: 1;
  min-height: 80px;
  position: relative;
}
.subscription-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.subscription-item:last-child {
  border-bottom: none;
}
.subscription-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text3);
  flex-shrink: 0;
  margin-top: 5px;
}
.subscription-dot.active {
  background: var(--green);
}
.plan-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  transition: border-color 0.15s;
}
.plan-card:hover {
  border-color: var(--border2);
}
.plan-featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.plan-badge {
  position: absolute;
  top: -10px;
  right: 16px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 6px;
  letter-spacing: 0.02em;
}
.plan-btn {
  width: 100%;
  justify-content: center;
}
.plan-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  margin-bottom: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.plan-status-active {
  color: var(--green);
  background: var(--green-dim);
}
.plan-status-trialing {
  color: var(--blue);
  background: var(--blue-dim);
}
.plan-status-past_due {
  color: var(--red);
  background: var(--red-dim);
}
.plan-status-canceled,
.plan-status-unpaid {
  color: var(--red);
  background: var(--red-dim);
}
.cloud-grid-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px 10px 10px;
  border-radius: 8px;
  transition: background 0.15s;
  position: relative;
}
.cloud-grid-item:hover {
  background: var(--surface2);
}
.cloud-grid-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  flex-shrink: 0;
}
.cloud-grid-icon img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.cloud-grid-actions {
  display: flex;
  gap: 2px;
  margin-top: 6px;
  opacity: 0;
  transition: opacity 0.15s;
}
.cloud-grid-item:hover .cloud-grid-actions {
  opacity: 1;
}
.team-role-badge {
  display: inline-block;
  padding: 1px 7px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  border-radius: 4px;
  vertical-align: middle;
  margin-left: 4px;
}
.team-role-badge.owner {
  background: var(--accent-dim);
  color: var(--accent);
}
.team-role-badge.admin {
  background: #f59e0b1f;
  color: #f59e0b;
}
.team-role-badge.member {
  background: var(--green-dim);
  color: #34d399;
}
.team-role-badge.pending {
  background: #9ca3af1f;
  color: var(--text3);
}
.team-members-table {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow-x: auto;
}
.team-member-row {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  gap: 16px;
  border-bottom: 1px solid var(--border);
}
.team-member-row:last-child {
  border-bottom: none;
}
.team-member-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
}
.team-member-avatar-pending {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text3);
  font-size: 13px;
}
.perm-modal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}
.perm-modal-row:last-child {
  border-bottom: none;
}
.perm-modal-scope {
  font-size: 13px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.perm-modal-scope i {
  width: 16px;
  text-align: center;
  color: var(--text3);
  font-size: 12px;
}
.perm-seg {
  display: flex;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.perm-seg-btn {
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
  border: none;
  background: transparent;
  color: var(--text3);
  cursor: pointer;
  transition:
      background 0.15s,
      color 0.15s;
  border-right: 1px solid var(--border);
}
.perm-seg-btn:last-child {
  border-right: none;
}
.perm-seg-btn:hover {
  background: var(--surface2);
}
.perm-seg-btn.active[data-value="off"] {
  background: var(--surface2);
  color: var(--text);
}
.perm-seg-btn.active[data-value="read"] {
  background: var(--blue);
  color: #fff;
}
.perm-seg-btn.active[data-value="write"] {
  background: var(--green);
  color: #fff;
}
.perm-seg-btn.active[data-value="on"] {
  background: var(--blue);
  color: #fff;
}
.perm-modal-note {
  margin-top: 8px;
  padding: 10px 12px;
  background: var(--surface2);
  border-radius: var(--radius);
  font-size: 12px;
  color: var(--text3);
  display: flex;
  align-items: center;
  gap: 8px;
}
.btn-danger-text {
  color: #ef4444;
  border-color: transparent;
}
.btn-danger-text:hover {
  background: #ef444414;
  color: #dc2626;
}
@media (max-width: 1100px) {
  .dash-recent-from {
      width: 140px;
  }
}
.d-mobile-only {
  display: none !important;
}
@media (max-width: 768px) {
  .content-alert {
      justify-content: flex-start;
  }
  .d-mobile-only {
      display: block !important;
  }
  .d-desktop-only {
      display: none !important;
  }
  body {
      font-size: 14px;
  }
  .sidebar {
      position: fixed;
      top: 0;
      left: 0;
      bottom: 0;
      transform: translateX(-100%);
      z-index: 300;
      width: 280px;
  }
  .sidebar.open {
      transform: translateX(0);
  }
  .logo-close {
      display: flex;
      align-items: center;
      justify-content: center;
  }
  .team-selector {
      margin-right: 0;
  }
  .topbar-icon {
      display: block;
      width: 28px;
      height: 28px;
  }
  .hamburger {
      display: flex;
  }
  .content {
      padding: 16px 14px;
  }
  .stat-card {
      padding: 14px;
  }
  .stat-value {
      font-size: 22px;
  }
  .contact-profile {
      grid-template-columns: 1fr;
  }
  .contact-profile > div + div {
      border-left: none;
      border-top: 1px solid var(--border);
  }
  .contact-chart-wrap {
      min-height: 100px;
  }
  .modal-overlay {
      align-items: flex-end;
      padding: 0;
  }
  .modal {
      border-radius: 20px 20px 0 0;
      max-width: 100%;
  }
  .topbar-title span {
      display: none;
  }
  .topbar {
      padding: 0 14px;
      background: #061d51;
      border-bottom-color: transparent;
  }
  .topbar-title {
      color: #fff;
  }
  .hamburger {
      color: #fff;
  }
  .language-selector-btn,
  .theme-toggle {
      border: none;
      color: #fff;
      padding-right: 0;
  }
  .language-selector-btn:hover,
  .theme-toggle:hover,
  .hamburger:hover {
      background: none;
      color: #fff;
  }
  .table-wrap {
      border-radius: 10px;
  }
  .table-scroll {
      -webkit-overflow-scrolling: touch;
  }
  .table-header {
      padding: 12px 14px;
  }
  .search-box {
      width: 100%;
  }
  .auth-split {
      flex-direction: column;
  }
  .auth-left {
      flex: none;
      padding: 32px 20px;
      min-height: auto;
  }
  .auth-right {
      display: none;
  }
  .dash-chart-wrap {
      height: 200px;
  }
  .dash-recent-from {
      width: 120px;
      flex-shrink: 0;
  }
  #toast {
      font-size: 12.5px;
  }
  .cloud-grid-actions {
      opacity: 1;
  }
  .btn span {
      display: none;
  }
  .btn {
      padding: 8px 10px;
  }
}
@media (max-width: 420px) {
  .stat-label {
      font-size: 10px;
  }
  .stat-value {
      font-size: 20px;
  }
}
@keyframes fadeIn {
  from {
      opacity: 0;
      transform: translateY(4px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}
@keyframes modalIn {
  from {
      opacity: 0;
      transform: scale(0.96) translateY(10px);
  }
  to {
      opacity: 1;
      transform: scale(1) translateY(0);
  }
}
.ab-letters {
  display: flex;
  gap: 2px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  flex-shrink: 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.ab-scroll {
  max-height: 350px;
  max-height: min(350px, 40dvh);
  overflow-y: auto;
  flex: 1 1 auto;
}
.ab-letter {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border: none;
  border-radius: 6px;
  background: none;
  color: var(--text3);
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.ab-letter:hover {
  background: var(--surface2);
  color: var(--text);
}
.ab-letter.active {
  background: var(--accent);
  color: #fff;
}
.ab-contact {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border: none;
  border-bottom: 1px solid var(--border);
  background: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  font-size: 13px;
  color: var(--text);
  transition: background 0.12s;
  width: 100%;
}
.ab-contact:last-child {
  border-bottom: none;
}
.ab-contact:hover {
  background: var(--surface2);
}
.ab-status {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  color: var(--text3);
  font-size: 13px;
}
.ab-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  border-top: 1px solid var(--border);
}
.ab-footer .btn:disabled {
  opacity: 0.35;
  cursor: default;
}
.ab-picker-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text2);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s;
  flex: 1;
  min-width: 0;
}
.ab-picker-btn:hover {
  border-color: var(--accent);
  color: var(--text);
}
.ab-picker-btn i {
  font-size: 11px;
  color: var(--text3);
}
.ab-picker-btn .ab-picker-label {
  flex: 1;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tooltip {
  position: fixed;
  z-index: 99999;
  padding: 5px 10px;
  background: var(--text);
  color: var(--bg);
  font-size: 12px;
  line-height: 1.4;
  border-radius: 6px;
  pointer-events: none;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.15s;
}
.tooltip.visible {
  opacity: 1;
}
.relay-flow-diagram {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
}
.relay-flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 20px;
  background: var(--bg-2);
  border-radius: 10px;
  border: 1px solid var(--border);
  min-width: 100px;
}
.relay-flow-step-accent {
  background: var(--accent-dim);
  border-color: var(--accent);
}
.relay-flow-step-accent .relay-flow-icon {
  color: var(--accent);
}
.relay-flow-icon {
  font-size: 18px;
  color: var(--text-2);
}
.relay-flow-label {
  font-size: 12px;
  color: var(--text-2);
  font-weight: 500;
  white-space: nowrap;
}
.relay-flow-arrow {
  color: var(--text-3);
  font-size: 14px;
  flex-shrink: 0;
}
@media (max-width: 640px) {
  .relay-flow-diagram {
      flex-wrap: wrap;
      justify-content: center;
  }
  .relay-flow-step {
      min-width: 80px;
      padding: 10px 14px;
  }
}
.relay-domain-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  padding: 0;
}
.relay-domain-right {
  padding: 0;
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}
.relay-panel-tabs {
  background: var(--surface2);
  display: flex;
  border-bottom: 1px solid var(--border);
  padding: 0 12px;
}
.relay-panel-tab {
  padding: 9px 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text3);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  font-family: inherit;
  margin-bottom: -1px;
  transition:
      color 0.15s,
      border-color 0.15s;
}
.relay-panel-tab:hover {
  color: var(--text2);
}
.relay-panel-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.relay-panel-body {
  padding: 12px 16px 16px;
  display: none;
}
.relay-panel-body.active {
  display: block;
}
.symbol-group {
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-bottom: 8px;
}
.symbol-group summary {
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
}
.symbol-group summary::-webkit-details-marker {
  display: none;
}
.symbol-group summary::after {
  content: "\f078";
  font-family: "Font Awesome 7 Free";
  font-weight: 900;
  font-size: 9px;
  color: var(--text3);
  margin-left: auto;
  transition: transform 0.2s;
}
.symbol-group[open] summary::after {
  transform: rotate(180deg);
}
.symbol-group summary i {
  font-size: 11px;
  color: var(--text3);
}
.symbol-group .relay-domain-right .toggle-panel {
  padding: 8px 10px;
}
.relay-domain-right .toggle-panel-icon {
  width: 28px;
  height: 28px;
}
@media (max-width: 980px) {
  .relay-domain-split {
    grid-template-columns: 1fr;
  }
  .relay-domain-right {
    border-left: 0;
    border-top: 1px solid var(--border);
  }
}
.relay-notice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f59e0b14;
  border: 1px solid #f59e0b40;
  color: var(--text-2);
  font-size: 12.5px;
  line-height: 1.5;
}
.relay-notice i {
  color: #f59e0b;
  margin-top: 2px;
  flex-shrink: 0;
}
.modal-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  padding: 16px 20px 20px;
  border-bottom: 1px solid var(--border);
}
.modal-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  min-width: 80px;
}
.modal-step-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-2);
  color: var(--text3);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}
.modal-step-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--text3);
  text-align: center;
}
.modal-step.active .modal-step-circle {
  border-color: var(--accent);
  background: var(--accent-dim);
  color: var(--accent);
}
.modal-step.active .modal-step-label {
  color: var(--accent);
}
.modal-step.done .modal-step-circle {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}
.modal-step.done .modal-step-label {
  color: var(--text2);
}
.modal-step-divider {
  flex: 1 1 auto;
  height: 1px;
  background: var(--border);
  margin: 14px 4px 0;
  min-width: 24px;
  max-width: 60px;
}
.modal-step-divider.done {
  background: var(--accent);
}
.deliver-menu {
  position: absolute;
  right: 0;
  top: 100%;
  z-index: 400;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 8px;
  box-shadow: 0 8px 24px #0000001f;
  min-width: 180px;
  overflow: hidden;
  padding: 4px;
}
.deliver-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--text2);
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
}
.deliver-menu-item:hover {
  background: var(--surface2);
  color: var(--text);
}
.deliver-menu-item i {
  width: 14px;
  text-align: center;
  font-size: 12px;
}
.tag-input-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  cursor: text;
  min-height: 36px;
  align-items: center;
}
.tag-input-wrap:focus-within {
  border-color: var(--accent);
}
.tag-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 5px;
  font-size: 12px;
  color: var(--text);
  white-space: nowrap;
}
.tag-remove {
  cursor: pointer;
  font-size: 10px;
  color: var(--text3);
  padding: 2px;
}
.tag-remove:hover {
  color: var(--red);
}
.tag-input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 13px;
  color: var(--text);
  flex: 1;
  min-width: 120px;
  padding: 2px 0;
}
.tag-input::placeholder {
  color: var(--text3);
}
