/* PulseBot v21.9.7 — clean controls and rebuilt automated-message editor. */

body#pulsebot-app.dashboard-mode {
  --pb2197-blue: #3b82f6;
  --pb2197-blue-hover: #4b8df7;
  --pb2197-blue-soft: rgba(59,130,246,.08);
  --pb2197-line: rgba(255,255,255,.075);
  --pb2197-line-strong: rgba(255,255,255,.13);
  --pb2197-panel: #0d1219;
  --pb2197-panel-deep: #090e14;
  --pb2197-text: #edf2f8;
  --pb2197-muted: #929daa;
}

/* One checkbox implementation across every rebuilt module. */
body#pulsebot-app:is(
  .dashboard-active-logs,.dashboard-active-automod,.dashboard-active-verification,
  .dashboard-active-tickets,.dashboard-active-messages,.dashboard-active-statistics,
  .dashboard-active-welcome,.dashboard-active-goodbye,.dashboard-active-selfrole,
  .dashboard-active-boosts,.dashboard-active-suggestions,.dashboard-active-activity,
  .dashboard-active-levels
) .check {
  position: relative !important;
  min-height: 42px !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 9px 11px !important;
  border: 1px solid var(--pb2197-line) !important;
  border-radius: 9px !important;
  background: rgba(255,255,255,.014) !important;
  box-shadow: none !important;
  transform: none !important;
}

body#pulsebot-app:is(
  .dashboard-active-logs,.dashboard-active-automod,.dashboard-active-verification,
  .dashboard-active-tickets,.dashboard-active-messages,.dashboard-active-statistics,
  .dashboard-active-welcome,.dashboard-active-goodbye,.dashboard-active-selfrole,
  .dashboard-active-boosts,.dashboard-active-suggestions,.dashboard-active-activity,
  .dashboard-active-levels
) .check:has(input:checked) {
  border-color: rgba(59,130,246,.24) !important;
  background: rgba(59,130,246,.035) !important;
}

body#pulsebot-app:is(
  .dashboard-active-logs,.dashboard-active-automod,.dashboard-active-verification,
  .dashboard-active-tickets,.dashboard-active-messages,.dashboard-active-statistics,
  .dashboard-active-welcome,.dashboard-active-goodbye,.dashboard-active-selfrole,
  .dashboard-active-boosts,.dashboard-active-suggestions,.dashboard-active-activity,
  .dashboard-active-levels
) .check > input[type="checkbox"] {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  opacity: 0 !important;
  appearance: none !important;
  pointer-events: none !important;
}

body#pulsebot-app:is(
  .dashboard-active-logs,.dashboard-active-automod,.dashboard-active-verification,
  .dashboard-active-tickets,.dashboard-active-messages,.dashboard-active-statistics,
  .dashboard-active-welcome,.dashboard-active-goodbye,.dashboard-active-selfrole,
  .dashboard-active-boosts,.dashboard-active-suggestions,.dashboard-active-activity,
  .dashboard-active-levels
) .check > .check-box {
  position: relative !important;
  flex: 0 0 15px !important;
  width: 15px !important;
  height: 15px !important;
  min-width: 15px !important;
  min-height: 15px !important;
  max-width: 15px !important;
  max-height: 15px !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid #526071 !important;
  border-radius: 3px !important;
  background: #090e14 !important;
  color: transparent !important;
  box-shadow: none !important;
  outline: 0 !important;
  transform: none !important;
}

body#pulsebot-app:is(
  .dashboard-active-logs,.dashboard-active-automod,.dashboard-active-verification,
  .dashboard-active-tickets,.dashboard-active-messages,.dashboard-active-statistics,
  .dashboard-active-welcome,.dashboard-active-goodbye,.dashboard-active-selfrole,
  .dashboard-active-boosts,.dashboard-active-suggestions,.dashboard-active-activity,
  .dashboard-active-levels
) .check > .check-box::before {
  content: none !important;
  display: none !important;
}

body#pulsebot-app:is(
  .dashboard-active-logs,.dashboard-active-automod,.dashboard-active-verification,
  .dashboard-active-tickets,.dashboard-active-messages,.dashboard-active-statistics,
  .dashboard-active-welcome,.dashboard-active-goodbye,.dashboard-active-selfrole,
  .dashboard-active-boosts,.dashboard-active-suggestions,.dashboard-active-activity,
  .dashboard-active-levels
) .check > .check-box::after {
  content: "" !important;
  position: absolute !important;
  left: 4px !important;
  top: 2px !important;
  width: 4px !important;
  height: 7px !important;
  border: 0 !important;
  border-right: 2px solid #fff !important;
  border-bottom: 2px solid #fff !important;
  opacity: 0 !important;
  transform: rotate(45deg) !important;
}

body#pulsebot-app:is(
  .dashboard-active-logs,.dashboard-active-automod,.dashboard-active-verification,
  .dashboard-active-tickets,.dashboard-active-messages,.dashboard-active-statistics,
  .dashboard-active-welcome,.dashboard-active-goodbye,.dashboard-active-selfrole,
  .dashboard-active-boosts,.dashboard-active-suggestions,.dashboard-active-activity,
  .dashboard-active-levels
) .check > input[type="checkbox"]:checked + .check-box,
body#pulsebot-app:is(
  .dashboard-active-logs,.dashboard-active-automod,.dashboard-active-verification,
  .dashboard-active-tickets,.dashboard-active-messages,.dashboard-active-statistics,
  .dashboard-active-welcome,.dashboard-active-goodbye,.dashboard-active-selfrole,
  .dashboard-active-boosts,.dashboard-active-suggestions,.dashboard-active-activity,
  .dashboard-active-levels
) .check.is-checked > .check-box {
  border-color: var(--pb2197-blue) !important;
  background: var(--pb2197-blue) !important;
  box-shadow: none !important;
}

body#pulsebot-app:is(
  .dashboard-active-logs,.dashboard-active-automod,.dashboard-active-verification,
  .dashboard-active-tickets,.dashboard-active-messages,.dashboard-active-statistics,
  .dashboard-active-welcome,.dashboard-active-goodbye,.dashboard-active-selfrole,
  .dashboard-active-boosts,.dashboard-active-suggestions,.dashboard-active-activity,
  .dashboard-active-levels
) .check > input[type="checkbox"]:checked + .check-box::after,
body#pulsebot-app:is(
  .dashboard-active-logs,.dashboard-active-automod,.dashboard-active-verification,
  .dashboard-active-tickets,.dashboard-active-messages,.dashboard-active-statistics,
  .dashboard-active-welcome,.dashboard-active-goodbye,.dashboard-active-selfrole,
  .dashboard-active-boosts,.dashboard-active-suggestions,.dashboard-active-activity,
  .dashboard-active-levels
) .check.is-checked > .check-box::after {
  opacity: 1 !important;
}

body#pulsebot-app:is(
  .dashboard-active-logs,.dashboard-active-automod,.dashboard-active-verification,
  .dashboard-active-tickets,.dashboard-active-messages,.dashboard-active-statistics,
  .dashboard-active-welcome,.dashboard-active-goodbye,.dashboard-active-selfrole,
  .dashboard-active-boosts,.dashboard-active-suggestions,.dashboard-active-activity,
  .dashboard-active-levels
) .check > input[type="checkbox"]:focus-visible + .check-box {
  outline: 2px solid rgba(59,130,246,.5) !important;
  outline-offset: 2px !important;
}

/* One module on/off switch. Remove pseudo-elements left by previous styles. */
body#pulsebot-app:is(
  .dashboard-active-logs,.dashboard-active-automod,.dashboard-active-verification,
  .dashboard-active-tickets,.dashboard-active-messages,.dashboard-active-statistics,
  .dashboard-active-welcome,.dashboard-active-goodbye,.dashboard-active-selfrole,
  .dashboard-active-boosts,.dashboard-active-suggestions,.dashboard-active-activity,
  .dashboard-active-levels
) .switch-control {
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 118px !important;
  height: 24px !important;
  min-height: 24px !important;
  display: grid !important;
  grid-template-columns: auto 44px !important;
  align-items: center !important;
  justify-content: end !important;
  gap: 10px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body#pulsebot-app:is(
  .dashboard-active-logs,.dashboard-active-automod,.dashboard-active-verification,
  .dashboard-active-tickets,.dashboard-active-messages,.dashboard-active-statistics,
  .dashboard-active-welcome,.dashboard-active-goodbye,.dashboard-active-selfrole,
  .dashboard-active-boosts,.dashboard-active-suggestions,.dashboard-active-activity,
  .dashboard-active-levels
) .switch-state {
  margin: 0 !important;
  color: var(--pb2197-muted) !important;
  font-size: .75rem !important;
  font-weight: 550 !important;
  line-height: 24px !important;
}

body#pulsebot-app:is(
  .dashboard-active-logs,.dashboard-active-automod,.dashboard-active-verification,
  .dashboard-active-tickets,.dashboard-active-messages,.dashboard-active-statistics,
  .dashboard-active-welcome,.dashboard-active-goodbye,.dashboard-active-selfrole,
  .dashboard-active-boosts,.dashboard-active-suggestions,.dashboard-active-activity,
  .dashboard-active-levels
) .switch-control:has(input:checked) .switch-state {
  color: #a9c9fb !important;
}

body#pulsebot-app:is(
  .dashboard-active-logs,.dashboard-active-automod,.dashboard-active-verification,
  .dashboard-active-tickets,.dashboard-active-messages,.dashboard-active-statistics,
  .dashboard-active-welcome,.dashboard-active-goodbye,.dashboard-active-selfrole,
  .dashboard-active-boosts,.dashboard-active-suggestions,.dashboard-active-activity,
  .dashboard-active-levels
) .toggle {
  position: relative !important;
  flex: 0 0 44px !important;
  width: 44px !important;
  height: 24px !important;
  min-width: 44px !important;
  min-height: 24px !important;
  max-width: 44px !important;
  max-height: 24px !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
}

body#pulsebot-app:is(
  .dashboard-active-logs,.dashboard-active-automod,.dashboard-active-verification,
  .dashboard-active-tickets,.dashboard-active-messages,.dashboard-active-statistics,
  .dashboard-active-welcome,.dashboard-active-goodbye,.dashboard-active-selfrole,
  .dashboard-active-boosts,.dashboard-active-suggestions,.dashboard-active-activity,
  .dashboard-active-levels
) .toggle > input {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

body#pulsebot-app:is(
  .dashboard-active-logs,.dashboard-active-automod,.dashboard-active-verification,
  .dashboard-active-tickets,.dashboard-active-messages,.dashboard-active-statistics,
  .dashboard-active-welcome,.dashboard-active-goodbye,.dashboard-active-selfrole,
  .dashboard-active-boosts,.dashboard-active-suggestions,.dashboard-active-activity,
  .dashboard-active-levels
) .toggle > .toggle-track,
body#pulsebot-app:is(
  .dashboard-active-logs,.dashboard-active-automod,.dashboard-active-verification,
  .dashboard-active-tickets,.dashboard-active-messages,.dashboard-active-statistics,
  .dashboard-active-welcome,.dashboard-active-goodbye,.dashboard-active-selfrole,
  .dashboard-active-boosts,.dashboard-active-suggestions,.dashboard-active-activity,
  .dashboard-active-levels
) .toggle > span {
  position: absolute !important;
  inset: 0 !important;
  width: 44px !important;
  height: 24px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid #465363 !important;
  border-radius: 999px !important;
  background: #202936 !important;
  box-shadow: none !important;
  transform: none !important;
}

body#pulsebot-app:is(
  .dashboard-active-logs,.dashboard-active-automod,.dashboard-active-verification,
  .dashboard-active-tickets,.dashboard-active-messages,.dashboard-active-statistics,
  .dashboard-active-welcome,.dashboard-active-goodbye,.dashboard-active-selfrole,
  .dashboard-active-boosts,.dashboard-active-suggestions,.dashboard-active-activity,
  .dashboard-active-levels
) .toggle > .toggle-track::before,
body#pulsebot-app:is(
  .dashboard-active-logs,.dashboard-active-automod,.dashboard-active-verification,
  .dashboard-active-tickets,.dashboard-active-messages,.dashboard-active-statistics,
  .dashboard-active-welcome,.dashboard-active-goodbye,.dashboard-active-selfrole,
  .dashboard-active-boosts,.dashboard-active-suggestions,.dashboard-active-activity,
  .dashboard-active-levels
) .toggle > span::before {
  content: none !important;
  display: none !important;
}

body#pulsebot-app:is(
  .dashboard-active-logs,.dashboard-active-automod,.dashboard-active-verification,
  .dashboard-active-tickets,.dashboard-active-messages,.dashboard-active-statistics,
  .dashboard-active-welcome,.dashboard-active-goodbye,.dashboard-active-selfrole,
  .dashboard-active-boosts,.dashboard-active-suggestions,.dashboard-active-activity,
  .dashboard-active-levels
) .toggle > .toggle-track::after,
body#pulsebot-app:is(
  .dashboard-active-logs,.dashboard-active-automod,.dashboard-active-verification,
  .dashboard-active-tickets,.dashboard-active-messages,.dashboard-active-statistics,
  .dashboard-active-welcome,.dashboard-active-goodbye,.dashboard-active-selfrole,
  .dashboard-active-boosts,.dashboard-active-suggestions,.dashboard-active-activity,
  .dashboard-active-levels
) .toggle > span::after {
  content: "" !important;
  position: absolute !important;
  top: 3px !important;
  left: 3px !important;
  width: 16px !important;
  height: 16px !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: #aeb8c5 !important;
  box-shadow: none !important;
  transform: translateX(0) !important;
  transition: transform .15s ease, background-color .15s ease !important;
}

body#pulsebot-app:is(
  .dashboard-active-logs,.dashboard-active-automod,.dashboard-active-verification,
  .dashboard-active-tickets,.dashboard-active-messages,.dashboard-active-statistics,
  .dashboard-active-welcome,.dashboard-active-goodbye,.dashboard-active-selfrole,
  .dashboard-active-boosts,.dashboard-active-suggestions,.dashboard-active-activity,
  .dashboard-active-levels
) .toggle > input:checked + .toggle-track,
body#pulsebot-app:is(
  .dashboard-active-logs,.dashboard-active-automod,.dashboard-active-verification,
  .dashboard-active-tickets,.dashboard-active-messages,.dashboard-active-statistics,
  .dashboard-active-welcome,.dashboard-active-goodbye,.dashboard-active-selfrole,
  .dashboard-active-boosts,.dashboard-active-suggestions,.dashboard-active-activity,
  .dashboard-active-levels
) .toggle > input:checked + span {
  border-color: var(--pb2197-blue) !important;
  background: var(--pb2197-blue) !important;
}

body#pulsebot-app:is(
  .dashboard-active-logs,.dashboard-active-automod,.dashboard-active-verification,
  .dashboard-active-tickets,.dashboard-active-messages,.dashboard-active-statistics,
  .dashboard-active-welcome,.dashboard-active-goodbye,.dashboard-active-selfrole,
  .dashboard-active-boosts,.dashboard-active-suggestions,.dashboard-active-activity,
  .dashboard-active-levels
) .toggle > input:checked + .toggle-track::after,
body#pulsebot-app:is(
  .dashboard-active-logs,.dashboard-active-automod,.dashboard-active-verification,
  .dashboard-active-tickets,.dashboard-active-messages,.dashboard-active-statistics,
  .dashboard-active-welcome,.dashboard-active-goodbye,.dashboard-active-selfrole,
  .dashboard-active-boosts,.dashboard-active-suggestions,.dashboard-active-activity,
  .dashboard-active-levels
) .toggle > input:checked + span::after {
  background: #fff !important;
  transform: translateX(20px) !important;
}

/* Automated-message cards. */
body#pulsebot-app.dashboard-active-messages .message-rule-card {
  min-height: 66px !important;
  display: grid !important;
  grid-template-columns: minmax(0,1fr) auto !important;
  align-items: center !important;
  gap: 18px !important;
  padding: 13px 15px !important;
  border: 1px solid var(--pb2197-line) !important;
  border-radius: 10px !important;
  background: rgba(255,255,255,.014) !important;
  box-shadow: none !important;
}

body#pulsebot-app.dashboard-active-messages .message-rule-card:hover {
  border-color: var(--pb2197-line-strong) !important;
  background: rgba(255,255,255,.025) !important;
}

body#pulsebot-app.dashboard-active-messages .message-rule-actions {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

/* Rebuilt autoresponder / automessage editor. */
body#pulsebot-app.dashboard-active-messages dialog.message-rule-editor-v2197 {
  width: min(880px, calc(100vw - 32px)) !important;
  max-width: 880px !important;
  max-height: calc(100dvh - 32px) !important;
  margin: auto !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 14px !important;
  background: transparent !important;
  outline: 0 !important;
  box-shadow: none !important;
}

body#pulsebot-app.dashboard-active-messages dialog.message-rule-editor-v2197::backdrop {
  background: rgba(0,0,0,.76) !important;
  backdrop-filter: blur(2px) !important;
}

body#pulsebot-app.dashboard-active-messages .message-rule-editor-card {
  width: 100% !important;
  max-width: none !important;
  height: min(860px, calc(100dvh - 32px)) !important;
  max-height: calc(100dvh - 32px) !important;
  display: grid !important;
  grid-template-rows: auto minmax(0,1fr) auto !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 1px solid var(--pb2197-line-strong) !important;
  border-radius: 14px !important;
  background: #0c1118 !important;
  outline: 0 !important;
  box-shadow: 0 24px 70px rgba(0,0,0,.52) !important;
}

body#pulsebot-app.dashboard-active-messages .message-rule-editor-head {
  min-height: 74px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 20px !important;
  margin: 0 !important;
  padding: 16px 20px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--pb2197-line) !important;
  background: #0d1219 !important;
}

body#pulsebot-app.dashboard-active-messages .message-rule-editor-head > div {
  min-width: 0 !important;
  display: grid !important;
  gap: 4px !important;
}

body#pulsebot-app.dashboard-active-messages .message-rule-editor-head h3 {
  margin: 0 !important;
  color: var(--pb2197-text) !important;
  font-size: .98rem !important;
  font-weight: 650 !important;
  letter-spacing: -.015em !important;
}

body#pulsebot-app.dashboard-active-messages .message-rule-editor-head p {
  margin: 0 !important;
  color: var(--pb2197-muted) !important;
  font-size: .75rem !important;
  line-height: 1.45 !important;
}

body#pulsebot-app.dashboard-active-messages .message-rule-editor-head .modal-close {
  flex: 0 0 34px !important;
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  min-height: 34px !important;
  padding: 0 !important;
  border: 1px solid var(--pb2197-line-strong) !important;
  border-radius: 8px !important;
  background: transparent !important;
  color: #b5beca !important;
  outline: 0 !important;
  box-shadow: none !important;
}

body#pulsebot-app.dashboard-active-messages .message-rule-editor-head .modal-close:hover {
  border-color: rgba(255,255,255,.2) !important;
  background: rgba(255,255,255,.035) !important;
  color: #fff !important;
}

body#pulsebot-app.dashboard-active-messages .message-rule-editor-body {
  min-height: 0 !important;
  padding: 0 20px !important;
  overflow: auto !important;
  overscroll-behavior: contain !important;
  scrollbar-width: thin !important;
  scrollbar-color: rgba(255,255,255,.2) transparent !important;
}

body#pulsebot-app.dashboard-active-messages .message-rule-editor-body::-webkit-scrollbar {
  width: 7px !important;
}
body#pulsebot-app.dashboard-active-messages .message-rule-editor-body::-webkit-scrollbar-thumb {
  border-radius: 999px !important;
  background: rgba(255,255,255,.18) !important;
}

body#pulsebot-app.dashboard-active-messages .message-editor-section {
  padding: 22px 0 !important;
  border: 0 !important;
  border-top: 1px solid var(--pb2197-line) !important;
  background: transparent !important;
}

body#pulsebot-app.dashboard-active-messages .message-editor-section:first-child {
  border-top: 0 !important;
}

body#pulsebot-app.dashboard-active-messages .message-editor-section-head {
  display: grid !important;
  gap: 5px !important;
  margin-bottom: 16px !important;
}

body#pulsebot-app.dashboard-active-messages .message-editor-section-head h4 {
  margin: 0 !important;
  color: var(--pb2197-text) !important;
  font-size: .86rem !important;
  font-weight: 620 !important;
}

body#pulsebot-app.dashboard-active-messages .message-editor-section-head p {
  margin: 0 !important;
  color: var(--pb2197-muted) !important;
  font-size: .74rem !important;
  line-height: 1.5 !important;
}

body#pulsebot-app.dashboard-active-messages .message-rule-editor-card .module-grid {
  grid-template-columns: repeat(3, minmax(0,1fr)) !important;
  gap: 14px !important;
}

body#pulsebot-app.dashboard-active-messages .message-rule-editor-card .field {
  min-width: 0 !important;
  display: grid !important;
  gap: 8px !important;
  margin: 0 0 15px !important;
}

body#pulsebot-app.dashboard-active-messages .message-rule-editor-card .module-grid .field {
  margin-bottom: 0 !important;
}

body#pulsebot-app.dashboard-active-messages .message-rule-editor-card .field > label {
  color: #dfe5ec !important;
  font-size: .76rem !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
}

body#pulsebot-app.dashboard-active-messages .message-rule-editor-card :is(input:not([type="color"]),select,textarea) {
  width: 100% !important;
  min-height: 42px !important;
  padding: 9px 12px !important;
  border: 1px solid var(--pb2197-line-strong) !important;
  border-radius: 9px !important;
  background: #090e14 !important;
  color: #e7edf5 !important;
  outline: 0 !important;
  box-shadow: none !important;
}

body#pulsebot-app.dashboard-active-messages .message-rule-editor-card :is(input:not([type="color"]),select,textarea):focus {
  border-color: rgba(59,130,246,.55) !important;
  box-shadow: 0 0 0 2px rgba(59,130,246,.08) !important;
}

body#pulsebot-app.dashboard-active-messages .message-rule-editor-card textarea {
  min-height: 82px !important;
  resize: vertical !important;
}

body#pulsebot-app.dashboard-active-messages .message-rule-editor-card textarea.message-editor-description {
  min-height: 128px !important;
}

body#pulsebot-app.dashboard-active-messages .message-editor-appearance-grid {
  grid-template-columns: 130px minmax(0,1fr) !important;
}

body#pulsebot-app.dashboard-active-messages .message-editor-color {
  width: 100% !important;
  height: 42px !important;
  min-height: 42px !important;
  padding: 5px !important;
  border: 1px solid var(--pb2197-line-strong) !important;
  border-radius: 9px !important;
  background: #090e14 !important;
  cursor: pointer !important;
}

body#pulsebot-app.dashboard-active-messages .message-editor-color::-webkit-color-swatch-wrapper {
  padding: 0 !important;
}
body#pulsebot-app.dashboard-active-messages .message-editor-color::-webkit-color-swatch,
body#pulsebot-app.dashboard-active-messages .message-editor-color::-moz-color-swatch {
  border: 0 !important;
  border-radius: 5px !important;
}

body#pulsebot-app.dashboard-active-messages .message-editor-preview {
  margin-top: 18px !important;
  padding-top: 18px !important;
  border-top: 1px solid var(--pb2197-line) !important;
}

body#pulsebot-app.dashboard-active-messages .message-editor-preview :is(.embed-preview,.embed-editor-preview) {
  border: 1px solid var(--pb2197-line) !important;
  border-radius: 9px !important;
  background: #090e14 !important;
  box-shadow: none !important;
}

body#pulsebot-app.dashboard-active-messages .message-rule-editor-actions {
  position: static !important;
  min-height: 68px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 10px !important;
  margin: 0 !important;
  padding: 13px 20px !important;
  border: 0 !important;
  border-top: 1px solid var(--pb2197-line) !important;
  border-radius: 0 !important;
  background: #0d1219 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

body#pulsebot-app.dashboard-active-messages .message-rule-editor-actions .btn {
  min-width: 112px !important;
  min-height: 40px !important;
}

body#pulsebot-app.dashboard-active-messages .message-rule-editor-actions .btn-primary {
  border-color: var(--pb2197-blue) !important;
  background: var(--pb2197-blue) !important;
  color: #fff !important;
}

body#pulsebot-app.dashboard-active-messages .message-rule-editor-actions .btn-primary:hover {
  border-color: var(--pb2197-blue-hover) !important;
  background: var(--pb2197-blue-hover) !important;
}

body#pulsebot-app.dashboard-active-messages .message-rule-editor-actions .btn-ghost {
  border-color: var(--pb2197-line-strong) !important;
  background: transparent !important;
  color: #c4cdd8 !important;
}

@media (max-width: 760px) {
  body#pulsebot-app:is(
    .dashboard-active-logs,.dashboard-active-automod,.dashboard-active-verification,
    .dashboard-active-tickets,.dashboard-active-messages,.dashboard-active-statistics,
    .dashboard-active-welcome,.dashboard-active-goodbye,.dashboard-active-selfrole,
    .dashboard-active-boosts,.dashboard-active-suggestions,.dashboard-active-activity,
    .dashboard-active-levels
  ) .switch-row {
    align-items: flex-start !important;
    flex-direction: column !important;
  }

  body#pulsebot-app:is(
    .dashboard-active-logs,.dashboard-active-automod,.dashboard-active-verification,
    .dashboard-active-tickets,.dashboard-active-messages,.dashboard-active-statistics,
    .dashboard-active-welcome,.dashboard-active-goodbye,.dashboard-active-selfrole,
    .dashboard-active-boosts,.dashboard-active-suggestions,.dashboard-active-activity,
    .dashboard-active-levels
  ) .switch-control {
    width: 100% !important;
    justify-content: space-between !important;
  }

  body#pulsebot-app.dashboard-active-messages .message-rule-card {
    grid-template-columns: 1fr !important;
  }

  body#pulsebot-app.dashboard-active-messages .message-rule-actions {
    width: 100% !important;
  }

  body#pulsebot-app.dashboard-active-messages .message-rule-actions .btn {
    flex: 1 1 0 !important;
  }

  body#pulsebot-app.dashboard-active-messages .message-rule-editor-card .module-grid,
  body#pulsebot-app.dashboard-active-messages .message-editor-appearance-grid {
    grid-template-columns: 1fr !important;
  }

  body#pulsebot-app.dashboard-active-messages .message-rule-editor-body {
    padding-inline: 16px !important;
  }

  body#pulsebot-app.dashboard-active-messages .message-rule-editor-head,
  body#pulsebot-app.dashboard-active-messages .message-rule-editor-actions {
    padding-inline: 16px !important;
  }
}
