/* PulseBot v21.8.4 — shared save controls + visual rebuild of Logs, Automod and Verification.
   Functionality and field names remain unchanged. */

body#pulsebot-app.dashboard-mode {
  --pbm-blue: #3b82f6;
  --pbm-blue-hover: #4c8df7;
  --pbm-blue-pressed: #2f6fd7;
  --pbm-blue-soft: rgba(59,130,246,.10);
  --pbm-blue-line: rgba(59,130,246,.34);
  --pbm-bg: #0b0e13;
  --pbm-surface: #10141a;
  --pbm-surface-2: #0d1117;
  --pbm-line: rgba(255,255,255,.075);
  --pbm-line-strong: rgba(255,255,255,.13);
  --pbm-text: #edf1f7;
  --pbm-text-2: #c8ced8;
  --pbm-muted: #8c96a4;
  --pbm-soft: #667180;
  --pbm-danger: #e66d7c;
}

/* Shared module save dock */
body#pulsebot-app.dashboard-mode .module-form > .module-savebar {
  position: sticky !important;
  z-index: 24 !important;
  bottom: 16px !important;
  min-height: 68px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 18px !important;
  margin: 22px 0 0 !important;
  padding: 11px 12px 11px 18px !important;
  border: 1px solid rgba(255,255,255,.10) !important;
  border-radius: 14px !important;
  background: rgba(10,13,18,.94) !important;
  backdrop-filter: blur(12px) !important;
  box-shadow: 0 14px 38px rgba(0,0,0,.26) !important;
}

body#pulsebot-app.dashboard-mode .module-savebar .notice {
  max-width: 680px !important;
  margin: 0 !important;
  color: var(--pbm-muted) !important;
  font-size: .82rem !important;
  font-weight: 400 !important;
  line-height: 1.45 !important;
}

body#pulsebot-app.dashboard-mode .module-save-button {
  position: relative !important;
  min-width: 196px !important;
  min-height: 44px !important;
  padding: 0 20px 0 38px !important;
  border: 1px solid rgba(126,174,255,.28) !important;
  border-radius: 10px !important;
  background: var(--pbm-blue) !important;
  color: #fff !important;
  font-size: .86rem !important;
  font-weight: 600 !important;
  letter-spacing: -.005em !important;
  box-shadow: none !important;
  transform: none !important;
  transition: background-color .15s ease, border-color .15s ease, opacity .15s ease !important;
}

body#pulsebot-app.dashboard-mode .module-save-button::before {
  content: "" !important;
  position: absolute !important;
  left: 20px !important;
  top: 50% !important;
  width: 7px !important;
  height: 7px !important;
  border-radius: 50% !important;
  background: rgba(255,255,255,.92) !important;
  transform: translateY(-50%) !important;
}

body#pulsebot-app.dashboard-mode .module-save-button:hover:not(:disabled) {
  background: var(--pbm-blue-hover) !important;
  border-color: rgba(166,198,255,.40) !important;
  box-shadow: none !important;
  transform: none !important;
}

body#pulsebot-app.dashboard-mode .module-save-button:active:not(:disabled) {
  background: var(--pbm-blue-pressed) !important;
}

body#pulsebot-app.dashboard-mode .module-save-button:disabled {
  opacity: .72 !important;
  cursor: wait !important;
}

body#pulsebot-app.dashboard-mode .module-save-button.saved {
  background: #326fc6 !important;
}

body#pulsebot-app.dashboard-mode .module-save-button.error {
  border-color: rgba(230,109,124,.42) !important;
  background: #9e3f4c !important;
}

/* Simple notifications */
body#pulsebot-app.dashboard-mode .toast {
  position: fixed !important;
  z-index: 150 !important;
  right: 22px !important;
  top: auto !important;
  bottom: 22px !important;
  width: min(360px, calc(100vw - 28px)) !important;
  min-height: 48px !important;
  display: flex !important;
  align-items: center !important;
  gap: 11px !important;
  padding: 12px 14px !important;
  border: 1px solid rgba(255,255,255,.11) !important;
  border-radius: 10px !important;
  background: #11161d !important;
  color: var(--pbm-text-2) !important;
  box-shadow: 0 12px 30px rgba(0,0,0,.32) !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateY(8px) !important;
  transition: opacity .14s ease, transform .14s ease, visibility .14s ease !important;
}

body#pulsebot-app.dashboard-mode .toast::before {
  content: "" !important;
  width: 7px !important;
  height: 7px !important;
  min-width: 7px !important;
  border-radius: 50% !important;
  background: var(--pbm-blue) !important;
}

body#pulsebot-app.dashboard-mode .toast.show {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

body#pulsebot-app.dashboard-mode .toast[data-type="error"] {
  border-color: rgba(230,109,124,.28) !important;
}

body#pulsebot-app.dashboard-mode .toast[data-type="error"]::before {
  background: var(--pbm-danger) !important;
}

body#pulsebot-app.dashboard-mode .toast-message {
  color: inherit !important;
  font-size: .82rem !important;
  font-weight: 500 !important;
  line-height: 1.45 !important;
}

body#pulsebot-app.dashboard-mode .toast-progress {
  display: none !important;
}

body#pulsebot-app.dashboard-mode .form-feedback {
  margin: 0 0 14px !important;
  padding: 11px 13px !important;
  border: 1px solid rgba(230,109,124,.26) !important;
  border-left: 3px solid var(--pbm-danger) !important;
  border-radius: 8px !important;
  background: rgba(230,109,124,.055) !important;
  color: #eab1b9 !important;
  font-size: .82rem !important;
  line-height: 1.5 !important;
  box-shadow: none !important;
}

/* Target pages */
body#pulsebot-app:is(.dashboard-active-logs,.dashboard-active-automod,.dashboard-active-verification) .content-stack {
  min-width: 0 !important;
  max-width: 1180px !important;
  margin-inline: auto !important;
}

body#pulsebot-app:is(.dashboard-active-logs,.dashboard-active-automod,.dashboard-active-verification) .server-top {
  min-height: 66px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 18px !important;
  margin: 0 0 18px !important;
  padding: 10px 4px 14px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--pbm-line) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body#pulsebot-app:is(.dashboard-active-logs,.dashboard-active-automod,.dashboard-active-verification) .server-top-copy {
  gap: 12px !important;
}

body#pulsebot-app:is(.dashboard-active-logs,.dashboard-active-automod,.dashboard-active-verification) .server-top-icon {
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  display: grid !important;
  place-items: center !important;
  border: 1px solid var(--pbm-line) !important;
  border-radius: 10px !important;
  background: rgba(255,255,255,.025) !important;
  color: #a9b9d3 !important;
  box-shadow: none !important;
}

body#pulsebot-app:is(.dashboard-active-logs,.dashboard-active-automod,.dashboard-active-verification) .server-top h2 {
  margin: 0 !important;
  color: var(--pbm-text) !important;
  font-size: .92rem !important;
  font-weight: 600 !important;
  letter-spacing: -.012em !important;
}

body#pulsebot-app:is(.dashboard-active-logs,.dashboard-active-automod,.dashboard-active-verification) .server-top p,
body#pulsebot-app:is(.dashboard-active-logs,.dashboard-active-automod,.dashboard-active-verification) .server-top small {
  color: var(--pbm-soft) !important;
  font-size: .68rem !important;
}

body#pulsebot-app:is(.dashboard-active-logs,.dashboard-active-automod,.dashboard-active-verification) .server-top .btn {
  min-height: 36px !important;
  border-radius: 9px !important;
  background: transparent !important;
  border-color: var(--pbm-line-strong) !important;
  color: var(--pbm-text-2) !important;
  font-size: .78rem !important;
  box-shadow: none !important;
  transform: none !important;
}

body#pulsebot-app:is(.dashboard-active-logs,.dashboard-active-automod,.dashboard-active-verification) .module-panel {
  overflow: visible !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body#pulsebot-app:is(.dashboard-active-logs,.dashboard-active-automod,.dashboard-active-verification) .module-headline {
  min-height: 96px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 24px !important;
  margin: 0 0 20px !important;
  padding: 18px 4px 22px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--pbm-line) !important;
  background: transparent !important;
  box-shadow: none !important;
}

body#pulsebot-app:is(.dashboard-active-logs,.dashboard-active-automod,.dashboard-active-verification) .module-heading-copy {
  min-width: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 15px !important;
}

body#pulsebot-app:is(.dashboard-active-logs,.dashboard-active-automod,.dashboard-active-verification) .module-heading-icon {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  display: grid !important;
  place-items: center !important;
  border: 1px solid var(--pbm-blue-line) !important;
  border-radius: 11px !important;
  background: rgba(59,130,246,.07) !important;
  color: #a9c9ff !important;
  box-shadow: none !important;
}

body#pulsebot-app:is(.dashboard-active-logs,.dashboard-active-automod,.dashboard-active-verification) .module-heading-icon svg,
body#pulsebot-app:is(.dashboard-active-logs,.dashboard-active-automod,.dashboard-active-verification) .server-top-icon svg {
  width: 18px !important;
  height: 18px !important;
}

body#pulsebot-app:is(.dashboard-active-logs,.dashboard-active-automod,.dashboard-active-verification) .module-headline h2 {
  margin: 0 !important;
  color: var(--pbm-text) !important;
  font-size: 1.3rem !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  letter-spacing: -.025em !important;
}

body#pulsebot-app:is(.dashboard-active-logs,.dashboard-active-automod,.dashboard-active-verification) .module-headline p,
body#pulsebot-app:is(.dashboard-active-logs,.dashboard-active-automod,.dashboard-active-verification) .module-headline .notice {
  max-width: 720px !important;
  margin: 5px 0 0 !important;
  color: var(--pbm-muted) !important;
  font-size: .82rem !important;
  line-height: 1.55 !important;
}

body#pulsebot-app:is(.dashboard-active-logs,.dashboard-active-automod,.dashboard-active-verification) .module-status {
  flex: 0 0 auto !important;
  min-height: 30px !important;
  display: inline-flex !important;
  align-items: center !important;
  padding: 0 10px !important;
  border: 1px solid var(--pbm-line) !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,.025) !important;
  color: var(--pbm-muted) !important;
  font-size: .7rem !important;
  font-weight: 600 !important;
  box-shadow: none !important;
}

body#pulsebot-app:is(.dashboard-active-logs,.dashboard-active-automod,.dashboard-active-verification) .module-status.on {
  border-color: rgba(77,184,132,.24) !important;
  background: rgba(77,184,132,.07) !important;
  color: #8bd2ac !important;
}

body#pulsebot-app:is(.dashboard-active-logs,.dashboard-active-automod,.dashboard-active-verification) .module-status.pending {
  border-color: var(--pbm-blue-line) !important;
  background: var(--pbm-blue-soft) !important;
  color: #a9c9ff !important;
}

body#pulsebot-app:is(.dashboard-active-logs,.dashboard-active-automod,.dashboard-active-verification) .module-form {
  display: grid !important;
  gap: 16px !important;
}

body#pulsebot-app:is(.dashboard-active-logs,.dashboard-active-automod,.dashboard-active-verification) .module-panel-special {
  margin: 0 !important;
  padding: 16px 18px !important;
  border: 0 !important;
  border-left: 2px solid var(--pbm-blue) !important;
  border-radius: 0 12px 12px 0 !important;
  background: rgba(59,130,246,.045) !important;
  box-shadow: none !important;
}

body#pulsebot-app:is(.dashboard-active-logs,.dashboard-active-automod,.dashboard-active-verification) .module-panel-special h2 {
  margin: 0 0 5px !important;
  color: var(--pbm-text) !important;
  font-size: .98rem !important;
  font-weight: 600 !important;
  letter-spacing: -.015em !important;
}

body#pulsebot-app:is(.dashboard-active-logs,.dashboard-active-automod,.dashboard-active-verification) .module-panel-special p {
  max-width: 760px !important;
  margin: 0 !important;
  color: var(--pbm-muted) !important;
  font-size: .8rem !important;
  line-height: 1.55 !important;
}

body#pulsebot-app:is(.dashboard-active-logs,.dashboard-active-automod,.dashboard-active-verification) .form-section {
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 1px solid var(--pbm-line) !important;
  border-radius: 14px !important;
  background: rgba(15,19,25,.78) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

body#pulsebot-app:is(.dashboard-active-logs,.dashboard-active-automod,.dashboard-active-verification) .form-section-head {
  display: block !important;
  margin: 0 !important;
  padding: 15px 17px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--pbm-line) !important;
  background: rgba(255,255,255,.018) !important;
}

body#pulsebot-app:is(.dashboard-active-logs,.dashboard-active-automod,.dashboard-active-verification) .form-section-head h3 {
  margin: 0 !important;
  color: var(--pbm-text) !important;
  font-size: .9rem !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  letter-spacing: -.012em !important;
}

body#pulsebot-app:is(.dashboard-active-logs,.dashboard-active-automod,.dashboard-active-verification) .form-section-head p {
  max-width: 760px !important;
  margin: 5px 0 0 !important;
  color: var(--pbm-muted) !important;
  font-size: .75rem !important;
  line-height: 1.5 !important;
}

body#pulsebot-app:is(.dashboard-active-logs,.dashboard-active-automod,.dashboard-active-verification) .form-section-body {
  padding: 17px !important;
  background: transparent !important;
}

body#pulsebot-app:is(.dashboard-active-logs,.dashboard-active-automod,.dashboard-active-verification) .field {
  gap: 7px !important;
  margin: 0 0 14px !important;
}

body#pulsebot-app:is(.dashboard-active-logs,.dashboard-active-automod,.dashboard-active-verification) .field:last-child {
  margin-bottom: 0 !important;
}

body#pulsebot-app:is(.dashboard-active-logs,.dashboard-active-automod,.dashboard-active-verification) .field > label {
  color: var(--pbm-text-2) !important;
  font-size: .77rem !important;
  font-weight: 550 !important;
  line-height: 1.35 !important;
}

body#pulsebot-app:is(.dashboard-active-logs,.dashboard-active-automod,.dashboard-active-verification) .field > small {
  color: var(--pbm-soft) !important;
  font-size: .69rem !important;
  line-height: 1.45 !important;
}

body#pulsebot-app:is(.dashboard-active-logs,.dashboard-active-automod,.dashboard-active-verification) :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea,.multi-picker-trigger) {
  width: 100% !important;
  min-height: 44px !important;
  border: 1px solid rgba(255,255,255,.10) !important;
  border-radius: 9px !important;
  background: #0b0f15 !important;
  color: var(--pbm-text) !important;
  font-size: .82rem !important;
  box-shadow: none !important;
  outline: none !important;
}

body#pulsebot-app:is(.dashboard-active-logs,.dashboard-active-automod,.dashboard-active-verification) textarea {
  min-height: 108px !important;
  line-height: 1.55 !important;
}

body#pulsebot-app:is(.dashboard-active-logs,.dashboard-active-automod,.dashboard-active-verification) select[multiple] {
  min-height: 156px !important;
  padding: 8px !important;
}

body#pulsebot-app:is(.dashboard-active-logs,.dashboard-active-automod,.dashboard-active-verification) select[multiple] option {
  padding: 8px 9px !important;
  border-radius: 6px !important;
}

body#pulsebot-app:is(.dashboard-active-logs,.dashboard-active-automod,.dashboard-active-verification) select[multiple] option:checked {
  background: #244e89 linear-gradient(0deg,#244e89,#244e89) !important;
  color: #fff !important;
}

body#pulsebot-app:is(.dashboard-active-logs,.dashboard-active-automod,.dashboard-active-verification) :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea,.multi-picker-trigger):focus {
  border-color: rgba(59,130,246,.62) !important;
  box-shadow: 0 0 0 3px rgba(59,130,246,.09) !important;
}

body#pulsebot-app:is(.dashboard-active-logs,.dashboard-active-automod,.dashboard-active-verification) .module-grid {
  gap: 13px !important;
}

body#pulsebot-app:is(.dashboard-active-logs,.dashboard-active-automod,.dashboard-active-verification) .check-grid {
  gap: 8px !important;
}

body#pulsebot-app:is(.dashboard-active-logs,.dashboard-active-automod,.dashboard-active-verification) .check {
  position: relative !important;
  min-width: 0 !important;
  min-height: 42px !important;
  display: grid !important;
  grid-template-columns: 17px minmax(0,1fr) !important;
  gap: 10px !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 9px 10px !important;
  border: 1px solid rgba(255,255,255,.065) !important;
  border-radius: 9px !important;
  background: rgba(255,255,255,.018) !important;
  color: var(--pbm-text-2) !important;
  box-shadow: none !important;
  cursor: pointer !important;
}

body#pulsebot-app:is(.dashboard-active-logs,.dashboard-active-automod,.dashboard-active-verification) .check:hover {
  border-color: rgba(255,255,255,.12) !important;
  background: rgba(255,255,255,.027) !important;
  transform: none !important;
}

body#pulsebot-app:is(.dashboard-active-logs,.dashboard-active-automod,.dashboard-active-verification) .check input[type="checkbox"] {
  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) .check-box {
  position: relative !important;
  width: 16px !important;
  height: 16px !important;
  display: block !important;
  border: 1px solid rgba(255,255,255,.18) !important;
  border-radius: 4px !important;
  background: #0a0e13 !important;
  box-shadow: none !important;
}

body#pulsebot-app:is(.dashboard-active-logs,.dashboard-active-automod,.dashboard-active-verification) .check input:checked + .check-box {
  border-color: var(--pbm-blue) !important;
  background: var(--pbm-blue) !important;
}

body#pulsebot-app:is(.dashboard-active-logs,.dashboard-active-automod,.dashboard-active-verification) .check input:checked + .check-box::after {
  content: "" !important;
  position: absolute !important;
  left: 4px !important;
  top: 1px !important;
  width: 5px !important;
  height: 8px !important;
  border: solid #fff !important;
  border-width: 0 2px 2px 0 !important;
  transform: rotate(45deg) !important;
}

body#pulsebot-app:is(.dashboard-active-logs,.dashboard-active-automod,.dashboard-active-verification) .check-text {
  min-width: 0 !important;
  color: inherit !important;
  font-size: .75rem !important;
  font-weight: 450 !important;
  line-height: 1.35 !important;
}

body#pulsebot-app:is(.dashboard-active-logs,.dashboard-active-automod,.dashboard-active-verification) .switch-row {
  min-height: 62px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 20px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

body#pulsebot-app:is(.dashboard-active-logs,.dashboard-active-automod,.dashboard-active-verification) .switch-copy strong {
  color: var(--pbm-text-2) !important;
  font-size: .8rem !important;
  font-weight: 550 !important;
}

body#pulsebot-app:is(.dashboard-active-logs,.dashboard-active-automod,.dashboard-active-verification) .switch-copy span,
body#pulsebot-app:is(.dashboard-active-logs,.dashboard-active-automod,.dashboard-active-verification) .switch-state {
  color: var(--pbm-muted) !important;
  font-size: .72rem !important;
}

body#pulsebot-app:is(.dashboard-active-logs,.dashboard-active-automod,.dashboard-active-verification) .toggle-track {
  width: 42px !important;
  height: 24px !important;
  border: 1px solid rgba(255,255,255,.13) !important;
  background: #1a2029 !important;
  box-shadow: none !important;
}

body#pulsebot-app:is(.dashboard-active-logs,.dashboard-active-automod,.dashboard-active-verification) .toggle-track::after {
  width: 18px !important;
  height: 18px !important;
  top: 2px !important;
  left: 2px !important;
  background: #aeb7c4 !important;
  box-shadow: none !important;
}

body#pulsebot-app:is(.dashboard-active-logs,.dashboard-active-automod,.dashboard-active-verification) .toggle input:checked + .toggle-track {
  border-color: rgba(59,130,246,.62) !important;
  background: var(--pbm-blue) !important;
}

body#pulsebot-app:is(.dashboard-active-logs,.dashboard-active-automod,.dashboard-active-verification) .toggle input:checked + .toggle-track::after {
  background: #fff !important;
  transform: translateX(18px) !important;
}

body#pulsebot-app:is(.dashboard-active-logs,.dashboard-active-automod,.dashboard-active-verification) .action-row {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin: 0 0 12px !important;
}

body#pulsebot-app:is(.dashboard-active-logs,.dashboard-active-automod,.dashboard-active-verification) .btn {
  box-shadow: none !important;
  transform: none !important;
}

body#pulsebot-app:is(.dashboard-active-logs,.dashboard-active-automod,.dashboard-active-verification) .btn-primary {
  border: 1px solid rgba(126,174,255,.26) !important;
  border-radius: 9px !important;
  background: var(--pbm-blue) !important;
  color: #fff !important;
  box-shadow: none !important;
}

body#pulsebot-app:is(.dashboard-active-logs,.dashboard-active-automod,.dashboard-active-verification) .btn-primary:hover {
  background: var(--pbm-blue-hover) !important;
  transform: none !important;
}

body#pulsebot-app:is(.dashboard-active-logs,.dashboard-active-automod,.dashboard-active-verification) .btn-ghost {
  border-color: rgba(255,255,255,.10) !important;
  border-radius: 9px !important;
  background: rgba(255,255,255,.025) !important;
  color: var(--pbm-text-2) !important;
}

body#pulsebot-app:is(.dashboard-active-logs,.dashboard-active-automod,.dashboard-active-verification) .btn-ghost:hover {
  border-color: rgba(255,255,255,.16) !important;
  background: rgba(255,255,255,.045) !important;
}

/* Logs */
body#pulsebot-app.dashboard-active-logs .module-form-logs {
  grid-template-columns: minmax(280px,.72fr) minmax(480px,1.28fr) !important;
  align-items: start !important;
}

body#pulsebot-app.dashboard-active-logs .module-form-logs > .module-panel-special,
body#pulsebot-app.dashboard-active-logs .module-form-logs > .form-section:nth-of-type(2),
body#pulsebot-app.dashboard-active-logs .module-form-logs > .module-savebar {
  grid-column: 1 / -1 !important;
}

body#pulsebot-app.dashboard-active-logs .module-form-logs > .form-section:nth-of-type(3) {
  grid-column: 1 !important;
}

body#pulsebot-app.dashboard-active-logs .module-form-logs > .form-section:nth-of-type(4) {
  grid-column: 2 !important;
}

body#pulsebot-app.dashboard-active-logs .logs-grid {
  grid-template-columns: repeat(2,minmax(0,1fr)) !important;
  gap: 7px !important;
}

body#pulsebot-app.dashboard-active-logs .logs-grid .check {
  min-height: 39px !important;
  padding-block: 8px !important;
}

/* Automod */
body#pulsebot-app.dashboard-active-automod .module-form-automod > .module-panel-special {
  order: -2 !important;
}

body#pulsebot-app.dashboard-active-automod .module-form-automod > .form-section:first-of-type {
  order: -1 !important;
}

body#pulsebot-app.dashboard-active-automod .preset-grid[data-automod-presets] {
  display: grid !important;
  grid-template-columns: repeat(4,minmax(0,1fr)) !important;
  gap: 8px !important;
}

body#pulsebot-app.dashboard-active-automod .preset-grid[data-automod-presets] .preset-card {
  position: relative !important;
  min-height: 122px !important;
  display: grid !important;
  align-content: start !important;
  gap: 7px !important;
  padding: 16px !important;
  overflow: hidden !important;
  border: 1px solid var(--pbm-line) !important;
  border-radius: 10px !important;
  background: rgba(255,255,255,.018) !important;
  color: var(--pbm-text-2) !important;
  box-shadow: none !important;
  transform: none !important;
}

body#pulsebot-app.dashboard-active-automod .preset-grid[data-automod-presets] .preset-card::before {
  content: none !important;
  display: none !important;
}

body#pulsebot-app.dashboard-active-automod .preset-grid[data-automod-presets] .preset-card::after {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  height: 2px !important;
  background: transparent !important;
}

body#pulsebot-app.dashboard-active-automod .preset-grid[data-automod-presets] .preset-card:hover {
  border-color: var(--pbm-line-strong) !important;
  background: rgba(255,255,255,.027) !important;
  transform: none !important;
}

body#pulsebot-app.dashboard-active-automod .preset-grid[data-automod-presets] .preset-card.active,
body#pulsebot-app.dashboard-active-automod .preset-grid[data-automod-presets] .preset-card:has(input[type="radio"]:checked) {
  border-color: var(--pbm-blue-line) !important;
  background: rgba(59,130,246,.045) !important;
  box-shadow: none !important;
}

body#pulsebot-app.dashboard-active-automod .preset-grid[data-automod-presets] .preset-card.active::after,
body#pulsebot-app.dashboard-active-automod .preset-grid[data-automod-presets] .preset-card:has(input[type="radio"]:checked)::after {
  background: var(--pbm-blue) !important;
}

body#pulsebot-app.dashboard-active-automod .preset-grid[data-automod-presets] .preset-card > input[type="radio"] {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}

body#pulsebot-app.dashboard-active-automod .preset-grid[data-automod-presets] .preset-card strong {
  margin: 0 !important;
  color: var(--pbm-text) !important;
  font-size: .82rem !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
}

body#pulsebot-app.dashboard-active-automod .preset-grid[data-automod-presets] .preset-card span {
  color: var(--pbm-muted) !important;
  font-size: .72rem !important;
  line-height: 1.5 !important;
}

body#pulsebot-app.dashboard-active-automod .automod-accordion {
  display: grid !important;
  gap: 7px !important;
}

body#pulsebot-app.dashboard-active-automod .rule-card {
  margin: 0 !important;
  overflow: hidden !important;
  border: 1px solid rgba(255,255,255,.07) !important;
  border-radius: 9px !important;
  background: rgba(255,255,255,.014) !important;
  box-shadow: none !important;
}

body#pulsebot-app.dashboard-active-automod .rule-card[open] {
  border-color: rgba(59,130,246,.24) !important;
  background: rgba(59,130,246,.025) !important;
}

body#pulsebot-app.dashboard-active-automod .rule-card > summary {
  min-height: 48px !important;
  display: grid !important;
  grid-template-columns: minmax(0,1fr) 18px !important;
  gap: 12px !important;
  align-items: center !important;
  padding: 5px 10px !important;
  list-style: none !important;
  cursor: pointer !important;
}

body#pulsebot-app.dashboard-active-automod .rule-card > summary::-webkit-details-marker {
  display: none !important;
}

body#pulsebot-app.dashboard-active-automod .rule-card > summary .check {
  min-height: 38px !important;
  padding: 7px 8px !important;
  border: 0 !important;
  background: transparent !important;
}

body#pulsebot-app.dashboard-active-automod .rule-card > summary > span:last-child {
  color: var(--pbm-soft) !important;
  font-size: .8rem !important;
  transform: rotate(0deg) !important;
  transition: transform .15s ease !important;
}

body#pulsebot-app.dashboard-active-automod .rule-card[open] > summary > span:last-child {
  transform: rotate(180deg) !important;
}

body#pulsebot-app.dashboard-active-automod .rule-options {
  padding: 15px 17px 17px !important;
  border-top: 1px solid rgba(255,255,255,.06) !important;
  background: rgba(0,0,0,.10) !important;
}

/* Verification — single-column layout with button settings inside the main section. */
body#pulsebot-app.dashboard-active-verification .module-form-verification {
  grid-template-columns: minmax(0,1fr) !important;
  align-items: start !important;
  gap: 18px !important;
  min-width: 0 !important;
  overflow: visible !important;
}

body#pulsebot-app.dashboard-active-verification .module-form-verification > * {
  grid-column: 1 !important;
  grid-row: auto !important;
  min-width: 0 !important;
}

body#pulsebot-app.dashboard-active-verification .verification-fields-grid {
  display: grid !important;
  grid-template-columns: repeat(3,minmax(0,1fr)) !important;
  gap: 16px !important;
  align-items: end !important;
  min-width: 0 !important;
}

body#pulsebot-app.dashboard-active-verification .verification-button-settings {
  margin-top: 22px !important;
  padding-top: 21px !important;
  border-top: 1px solid rgba(255,255,255,.075) !important;
}

body#pulsebot-app.dashboard-active-verification .verification-subhead {
  margin: 0 0 16px !important;
}

body#pulsebot-app.dashboard-active-verification .verification-subhead h4 {
  margin: 0 0 5px !important;
  color: #eef2f7 !important;
  font-size: .88rem !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
}

body#pulsebot-app.dashboard-active-verification .verification-subhead p {
  margin: 0 !important;
  color: #8e98a6 !important;
  font-size: .76rem !important;
  line-height: 1.55 !important;
}

body#pulsebot-app.dashboard-active-verification .verification-publish-action {
  display: flex !important;
  justify-content: flex-end !important;
  margin: 0 !important;
}

body#pulsebot-app.dashboard-active-verification .verification-publish-action .btn {
  min-height: 40px !important;
  border-color: rgba(59,130,246,.32) !important;
  background: rgba(59,130,246,.08) !important;
  color: #b7d1ff !important;
}

@media (max-width: 1120px) {
  body#pulsebot-app.dashboard-active-logs .module-form-logs {
    grid-template-columns: 1fr !important;
  }

  body#pulsebot-app.dashboard-active-logs .module-form-logs > * {
    grid-column: 1 !important;
  }

  body#pulsebot-app.dashboard-active-automod .preset-grid[data-automod-presets] {
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
  }
}

@media (max-width: 760px) {
  body#pulsebot-app.dashboard-mode .module-form > .module-savebar {
    position: relative !important;
    bottom: auto !important;
    align-items: stretch !important;
    flex-direction: column !important;
    padding: 14px !important;
  }

  body#pulsebot-app.dashboard-mode .module-save-button {
    width: 100% !important;
    min-width: 0 !important;
  }

  body#pulsebot-app.dashboard-mode .toast {
    right: 14px !important;
    bottom: 14px !important;
  }

  body#pulsebot-app:is(.dashboard-active-logs,.dashboard-active-automod,.dashboard-active-verification) .server-top,
  body#pulsebot-app:is(.dashboard-active-logs,.dashboard-active-automod,.dashboard-active-verification) .module-headline {
    align-items: flex-start !important;
    flex-direction: column !important;
  }

  body#pulsebot-app:is(.dashboard-active-logs,.dashboard-active-automod,.dashboard-active-verification) .module-status {
    align-self: flex-start !important;
  }

  body#pulsebot-app.dashboard-active-logs .logs-grid,
  body#pulsebot-app.dashboard-active-automod .preset-grid[data-automod-presets],
  body#pulsebot-app.dashboard-active-verification .verification-fields-grid,
  body#pulsebot-app:is(.dashboard-active-logs,.dashboard-active-automod,.dashboard-active-verification) .module-grid {
    grid-template-columns: 1fr !important;
  }

  body#pulsebot-app.dashboard-active-verification .module-form-verification,
  body#pulsebot-app.dashboard-active-verification .module-form-verification > *,
  body#pulsebot-app.dashboard-active-verification .form-section,
  body#pulsebot-app.dashboard-active-verification .form-section-body,
  body#pulsebot-app.dashboard-active-verification .embed-builder-grid {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }

  body#pulsebot-app.dashboard-active-verification .verification-publish-action {
    justify-content: stretch !important;
  }

  body#pulsebot-app.dashboard-active-verification .verification-publish-action .btn {
    width: 100% !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body#pulsebot-app.dashboard-mode .module-save-button,
  body#pulsebot-app.dashboard-mode .toast,
  body#pulsebot-app.dashboard-active-automod .rule-card > summary > span:last-child {
    transition: none !important;
  }
}

/* Final control conflict cleanup */
body#pulsebot-app:is(.dashboard-active-logs,.dashboard-active-automod,.dashboard-active-verification) .toggle {
  width: 44px !important;
  height: 26px !important;
  min-width: 44px !important;
  flex: 0 0 44px !important;
}

body#pulsebot-app:is(.dashboard-active-logs,.dashboard-active-automod,.dashboard-active-verification) .toggle > .toggle-track,
body#pulsebot-app:is(.dashboard-active-logs,.dashboard-active-automod,.dashboard-active-verification) .toggle > span {
  inset: auto !important;
  top: 0 !important;
  left: 0 !important;
  width: 44px !important;
  height: 26px !important;
}

body#pulsebot-app:is(.dashboard-active-logs,.dashboard-active-automod,.dashboard-active-verification) .toggle > .toggle-track::after,
body#pulsebot-app:is(.dashboard-active-logs,.dashboard-active-automod,.dashboard-active-verification) .toggle > span::after {
  top: 3px !important;
  left: 3px !important;
  width: 18px !important;
  height: 18px !important;
}

body#pulsebot-app:is(.dashboard-active-logs,.dashboard-active-automod,.dashboard-active-verification) .toggle input:checked + .toggle-track::after,
body#pulsebot-app:is(.dashboard-active-logs,.dashboard-active-automod,.dashboard-active-verification) .toggle input:checked + span::after {
  transform: translateX(18px) !important;
}

body#pulsebot-app:is(.dashboard-active-logs,.dashboard-active-automod,.dashboard-active-verification) .toggle input:focus-visible + .toggle-track,
body#pulsebot-app:is(.dashboard-active-logs,.dashboard-active-automod,.dashboard-active-verification) .toggle input:focus-visible + span {
  outline: 2px solid rgba(59,130,246,.54) !important;
  outline-offset: 3px !important;
}

body#pulsebot-app:is(.dashboard-active-logs,.dashboard-active-automod,.dashboard-active-verification) .check:has(input[type="checkbox"]:checked),
body#pulsebot-app:is(.dashboard-active-logs,.dashboard-active-automod,.dashboard-active-verification) .check.is-checked {
  border-color: rgba(59,130,246,.24) !important;
  background: rgba(59,130,246,.045) !important;
}

body#pulsebot-app:is(.dashboard-active-logs,.dashboard-active-automod,.dashboard-active-verification) .check.is-checked .check-box {
  border-color: var(--pbm-blue) !important;
  background: var(--pbm-blue) !important;
}

body#pulsebot-app:is(.dashboard-active-logs,.dashboard-active-automod,.dashboard-active-verification) .check.is-checked .check-box::after {
  left: 4px !important;
  top: 1px !important;
  width: 5px !important;
  height: 8px !important;
  border: solid #fff !important;
  border-width: 0 2px 2px 0 !important;
  transform: rotate(45deg) !important;
}

body#pulsebot-app:is(.dashboard-active-logs,.dashboard-active-automod,.dashboard-active-verification) .check input[type="checkbox"]:focus-visible + .check-box {
  outline: 2px solid rgba(59,130,246,.52) !important;
  outline-offset: 2px !important;
}

/* v21.8.5 — fixed save control, clean pickers and final no-purple pass */
body#pulsebot-app.dashboard-mode .module-form {
  padding-bottom: 96px !important;
}

body#pulsebot-app.dashboard-mode .module-form > .module-savebar {
  position: fixed !important;
  inset: auto 22px 22px auto !important;
  z-index: 980 !important;
  width: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
}

body#pulsebot-app.dashboard-mode .module-form > .module-savebar > .notice {
  display: none !important;
}

body#pulsebot-app.dashboard-mode .module-save-button {
  min-width: 196px !important;
  min-height: 46px !important;
  padding: 0 20px !important;
  border: 1px solid rgba(134,180,255,.32) !important;
  border-radius: 9px !important;
  background: #3478e5 !important;
  color: #fff !important;
  font-size: .86rem !important;
  font-weight: 600 !important;
  letter-spacing: -.005em !important;
  box-shadow: 0 12px 28px rgba(0,0,0,.30) !important;
  transform: none !important;
}

body#pulsebot-app.dashboard-mode .module-save-button::before,
body#pulsebot-app.dashboard-mode .module-save-button::after {
  content: none !important;
  display: none !important;
}

body#pulsebot-app.dashboard-mode .module-save-button:hover:not(:disabled) {
  border-color: rgba(164,199,255,.44) !important;
  background: #3d82ef !important;
  box-shadow: 0 12px 28px rgba(0,0,0,.30) !important;
  transform: none !important;
}

body#pulsebot-app.dashboard-mode .module-save-button:active:not(:disabled) {
  background: #2e69c9 !important;
}

body#pulsebot-app.dashboard-mode .module-save-button.saved {
  border-color: rgba(134,180,255,.32) !important;
  background: #3478e5 !important;
}

body#pulsebot-app.dashboard-mode .module-save-button.error {
  border-color: rgba(230,109,124,.42) !important;
  background: #a04452 !important;
}

body#pulsebot-app.dashboard-mode .toast,
body#pulsebot-app.dashboard-mode .toast.show {
  position: fixed !important;
  inset: auto 22px 80px auto !important;
  z-index: 1100 !important;
  width: min(350px, calc(100vw - 28px)) !important;
  min-width: 0 !important;
  min-height: 44px !important;
  max-height: none !important;
  display: flex !important;
  align-items: center !important;
  padding: 11px 13px !important;
  border: 1px solid #303947 !important;
  border-radius: 8px !important;
  background: #11161d !important;
  color: #e7ebf1 !important;
  box-shadow: 0 12px 28px rgba(0,0,0,.30) !important;
}

body#pulsebot-app.dashboard-mode .toast::before,
body#pulsebot-app.dashboard-mode .toast::after,
body#pulsebot-app.dashboard-mode .toast-progress {
  content: none !important;
  display: none !important;
}

body#pulsebot-app.dashboard-mode .toast[data-type="ok"],
body#pulsebot-app.dashboard-mode .toast[data-type="success"] {
  border-color: rgba(59,130,246,.38) !important;
  background: #111722 !important;
  color: #dce9ff !important;
}

body#pulsebot-app.dashboard-mode .toast[data-type="error"] {
  border-color: rgba(230,109,124,.36) !important;
  background: #191317 !important;
  color: #efd7dc !important;
}

body#pulsebot-app.dashboard-mode .toast-message {
  display: block !important;
  overflow: visible !important;
  color: inherit !important;
  font-size: .78rem !important;
  font-weight: 500 !important;
  line-height: 1.45 !important;
  white-space: normal !important;
  -webkit-line-clamp: unset !important;
}

/* Clean multi-picker for ignored channels and roles */
body#pulsebot-app:is(.dashboard-active-logs,.dashboard-active-automod) .multi-picker {
  position: relative !important;
}

body#pulsebot-app:is(.dashboard-active-logs,.dashboard-active-automod) .multi-picker-trigger {
  border-color: rgba(255,255,255,.11) !important;
  background: #0b0f15 !important;
  box-shadow: none !important;
}

body#pulsebot-app:is(.dashboard-active-logs,.dashboard-active-automod) .multi-picker.open .multi-picker-trigger {
  border-color: rgba(59,130,246,.56) !important;
  box-shadow: 0 0 0 3px rgba(59,130,246,.08) !important;
}

body#pulsebot-app:is(.dashboard-active-logs,.dashboard-active-automod) .multi-picker-count {
  min-width: 24px !important;
  height: 24px !important;
  display: inline-grid !important;
  place-items: center !important;
  border: 1px solid rgba(255,255,255,.10) !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,.04) !important;
  color: #bfc8d5 !important;
  font-size: .7rem !important;
  box-shadow: none !important;
}

body#pulsebot-app:is(.dashboard-active-logs,.dashboard-active-automod) .multi-picker-menu {
  padding: 12px !important;
  border: 1px solid rgba(255,255,255,.10) !important;
  border-radius: 12px !important;
  background: #0e1218 !important;
  box-shadow: 0 18px 42px rgba(0,0,0,.34) !important;
}

body#pulsebot-app:is(.dashboard-active-logs,.dashboard-active-automod) .multi-picker-search {
  margin-bottom: 10px !important;
  border-color: rgba(255,255,255,.10) !important;
  background: #090d12 !important;
}

body#pulsebot-app:is(.dashboard-active-logs,.dashboard-active-automod) .multi-picker-list {
  display: grid !important;
  gap: 6px !important;
  padding-right: 4px !important;
}

body#pulsebot-app:is(.dashboard-active-logs,.dashboard-active-automod) .multi-picker-option {
  min-height: 44px !important;
  display: grid !important;
  grid-template-columns: 18px minmax(0,1fr) !important;
  gap: 10px !important;
  align-items: center !important;
  padding: 9px 10px !important;
  border: 1px solid transparent !important;
  border-radius: 8px !important;
  background: rgba(255,255,255,.025) !important;
  color: #d4dae3 !important;
  box-shadow: none !important;
  transform: none !important;
}

body#pulsebot-app:is(.dashboard-active-logs,.dashboard-active-automod) .multi-picker-option:hover {
  border-color: rgba(255,255,255,.09) !important;
  background: rgba(255,255,255,.045) !important;
}

body#pulsebot-app:is(.dashboard-active-logs,.dashboard-active-automod) .multi-picker-option:has(input:checked) {
  border-color: rgba(59,130,246,.32) !important;
  background: rgba(59,130,246,.075) !important;
}

body#pulsebot-app:is(.dashboard-active-logs,.dashboard-active-automod) .multi-picker-option input[type="checkbox"] {
  position: relative !important;
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  margin: 0 !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  border: 1px solid #5b6574 !important;
  border-radius: 3px !important;
  background: #0a0e13 !important;
  box-shadow: none !important;
  outline: none !important;
}

body#pulsebot-app:is(.dashboard-active-logs,.dashboard-active-automod) .multi-picker-option input[type="checkbox"]::after {
  content: "" !important;
  position: absolute !important;
  left: 5px !important;
  top: 2px !important;
  width: 4px !important;
  height: 8px !important;
  border: solid #fff !important;
  border-width: 0 2px 2px 0 !important;
  opacity: 0 !important;
  transform: rotate(45deg) !important;
}

body#pulsebot-app:is(.dashboard-active-logs,.dashboard-active-automod) .multi-picker-option input[type="checkbox"]:checked {
  border-color: #3b82f6 !important;
  background: #3b82f6 !important;
  box-shadow: none !important;
}

body#pulsebot-app:is(.dashboard-active-logs,.dashboard-active-automod) .multi-picker-option input[type="checkbox"]:checked::after {
  opacity: 1 !important;
}

body#pulsebot-app:is(.dashboard-active-logs,.dashboard-active-automod) .multi-picker-option input[type="checkbox"]:focus-visible {
  outline: 2px solid rgba(59,130,246,.52) !important;
  outline-offset: 2px !important;
}

body#pulsebot-app:is(.dashboard-active-logs,.dashboard-active-automod) .multi-picker-actions {
  padding-top: 10px !important;
  border-top: 1px solid rgba(255,255,255,.06) !important;
}

/* Final blue checkbox pass for Logs and Automod */
body#pulsebot-app:is(.dashboard-active-logs,.dashboard-active-automod) .check:has(input:checked),
body#pulsebot-app:is(.dashboard-active-logs,.dashboard-active-automod) .check.is-checked {
  border-color: rgba(59,130,246,.26) !important;
  background: rgba(59,130,246,.055) !important;
}

body#pulsebot-app:is(.dashboard-active-logs,.dashboard-active-automod) .check input:checked + .check-box,
body#pulsebot-app:is(.dashboard-active-logs,.dashboard-active-automod) .check.is-checked .check-box {
  border-color: #3b82f6 !important;
  background: #3b82f6 !important;
  box-shadow: none !important;
}

body#pulsebot-app:is(.dashboard-active-logs,.dashboard-active-automod) input[type="checkbox"]:focus-visible,
body#pulsebot-app:is(.dashboard-active-logs,.dashboard-active-automod) input[type="radio"]:focus-visible {
  outline-color: rgba(59,130,246,.56) !important;
}

/* Automod premium elements: neutral surface, blue accent, no purple */
body#pulsebot-app.dashboard-active-automod .premium-inline-badge {
  display: inline !important;
  margin-left: 6px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #78a9f8 !important;
  font-size: .68rem !important;
  font-weight: 600 !important;
  letter-spacing: .06em !important;
  text-transform: uppercase !important;
  box-shadow: none !important;
}

body#pulsebot-app.dashboard-active-automod :is(.premium-locked-section,.automod-premium-history) {
  border-color: rgba(255,255,255,.075) !important;
  background: #0e1218 !important;
  box-shadow: none !important;
}

body#pulsebot-app.dashboard-active-automod :is(.premium-lock-card,.plan-limit-note,.plan-limit-note.is-premium) {
  border-color: rgba(255,255,255,.08) !important;
  background: rgba(255,255,255,.025) !important;
  box-shadow: none !important;
}

body#pulsebot-app.dashboard-active-automod :is(.premium-lock-icon,.premium-lock-card > span,.plan-limit-note > span) {
  border-color: rgba(59,130,246,.22) !important;
  background: rgba(59,130,246,.08) !important;
  color: #9bc0ff !important;
  box-shadow: none !important;
}

body#pulsebot-app.dashboard-active-automod .preset-grid[data-automod-presets] .preset-card::after {
  content: none !important;
  display: none !important;
}

body#pulsebot-app.dashboard-active-automod .preset-grid[data-automod-presets] .preset-card.active,
body#pulsebot-app.dashboard-active-automod .preset-grid[data-automod-presets] .preset-card:has(input[type="radio"]:checked) {
  border-color: rgba(59,130,246,.34) !important;
  background: rgba(59,130,246,.055) !important;
}

body#pulsebot-app.dashboard-active-automod .rule-card[open] {
  border-color: rgba(59,130,246,.20) !important;
  background: rgba(255,255,255,.018) !important;
}

/* Verification: flatter styling and more room for embed copy */
body#pulsebot-app.dashboard-active-verification .form-section {
  border-radius: 8px !important;
  background: #0e1218 !important;
  box-shadow: none !important;
}

body#pulsebot-app.dashboard-active-verification textarea[name="verifyDescription"] {
  min-height: 220px !important;
  resize: vertical !important;
}

body#pulsebot-app.dashboard-active-verification textarea[name="verifyContent"] {
  min-height: 132px !important;
  resize: vertical !important;
}

body#pulsebot-app.dashboard-active-verification .embed-editor-preview,
body#pulsebot-app.dashboard-active-verification .embed-preview {
  border-color: rgba(255,255,255,.08) !important;
  background: #0b0f15 !important;
  box-shadow: none !important;
}

@media (max-width: 760px) {
  body#pulsebot-app.dashboard-mode .module-form > .module-savebar {
    position: fixed !important;
    inset: auto 12px 12px auto !important;
    width: auto !important;
  }

  body#pulsebot-app.dashboard-mode .module-save-button {
    width: auto !important;
    min-width: 178px !important;
  }

  body#pulsebot-app.dashboard-mode .toast,
  body#pulsebot-app.dashboard-mode .toast.show {
    inset: auto 12px 70px 12px !important;
    width: auto !important;
    max-width: none !important;
  }
}

/* v21.8.6 — hard checkbox reset: compact, blue, no inherited purple/oversizing */
body#pulsebot-app:is(.dashboard-active-logs,.dashboard-active-automod,.dashboard-active-verification) .check {
  grid-template-columns: 15px minmax(0,1fr) !important;
  gap: 9px !important;
}

body#pulsebot-app:is(.dashboard-active-logs,.dashboard-active-automod,.dashboard-active-verification) .check > input[type="checkbox"] {
  position: absolute !important;
  inset: 0 !important;
  z-index: 3 !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 0 !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  accent-color: #3b82f6 !important;
  cursor: pointer !important;
}

body#pulsebot-app:is(.dashboard-active-logs,.dashboard-active-automod,.dashboard-active-verification) .check > .check-box {
  position: relative !important;
  z-index: 1 !important;
  width: 15px !important;
  height: 15px !important;
  min-width: 15px !important;
  min-height: 15px !important;
  max-width: 15px !important;
  max-height: 15px !important;
  border: 1px solid #586373 !important;
  border-radius: 3px !important;
  background: #090d12 !important;
  box-shadow: none !important;
}

body#pulsebot-app:is(.dashboard-active-logs,.dashboard-active-automod,.dashboard-active-verification) .check > .check-box::after {
  content: "" !important;
  position: absolute !important;
  left: 4px !important;
  top: 1px !important;
  width: 4px !important;
  height: 7px !important;
  border: solid transparent !important;
  border-width: 0 1.7px 1.7px 0 !important;
  opacity: 0 !important;
  transform: rotate(45deg) !important;
}

body#pulsebot-app:is(.dashboard-active-logs,.dashboard-active-automod,.dashboard-active-verification) .check > input[type="checkbox"]:checked + .check-box,
body#pulsebot-app:is(.dashboard-active-logs,.dashboard-active-automod,.dashboard-active-verification) .check.is-checked > .check-box {
  border-color: #3b82f6 !important;
  background: #3b82f6 !important;
  box-shadow: none !important;
}

body#pulsebot-app:is(.dashboard-active-logs,.dashboard-active-automod,.dashboard-active-verification) .check > input[type="checkbox"]:checked + .check-box::after,
body#pulsebot-app:is(.dashboard-active-logs,.dashboard-active-automod,.dashboard-active-verification) .check.is-checked > .check-box::after {
  border-color: #fff !important;
  opacity: 1 !important;
}

body#pulsebot-app:is(.dashboard-active-logs,.dashboard-active-automod,.dashboard-active-verification) .check:has(> input[type="checkbox"]:checked),
body#pulsebot-app:is(.dashboard-active-logs,.dashboard-active-automod,.dashboard-active-verification) .check.is-checked {
  border-color: rgba(59,130,246,.22) !important;
  background: rgba(59,130,246,.035) !important;
  box-shadow: none !important;
}

body#pulsebot-app:is(.dashboard-active-logs,.dashboard-active-automod) .multi-picker-option {
  grid-template-columns: 15px minmax(0,1fr) !important;
  gap: 9px !important;
  min-height: 42px !important;
}

body#pulsebot-app:is(.dashboard-active-logs,.dashboard-active-automod) .multi-picker-option > input[type="checkbox"] {
  position: relative !important;
  display: block !important;
  inline-size: 15px !important;
  block-size: 15px !important;
  width: 15px !important;
  height: 15px !important;
  min-width: 15px !important;
  min-height: 15px !important;
  max-width: 15px !important;
  max-height: 15px !important;
  flex: 0 0 15px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid #586373 !important;
  border-radius: 3px !important;
  background: #090d12 !important;
  box-shadow: none !important;
  outline: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  accent-color: #3b82f6 !important;
}

body#pulsebot-app:is(.dashboard-active-logs,.dashboard-active-automod) .multi-picker-option > input[type="checkbox"]::after {
  content: "" !important;
  position: absolute !important;
  left: 4px !important;
  top: 1px !important;
  width: 4px !important;
  height: 7px !important;
  border: solid transparent !important;
  border-width: 0 1.7px 1.7px 0 !important;
  opacity: 0 !important;
  transform: rotate(45deg) !important;
}

body#pulsebot-app:is(.dashboard-active-logs,.dashboard-active-automod) .multi-picker-option > input[type="checkbox"]:checked {
  border-color: #3b82f6 !important;
  background: #3b82f6 !important;
  box-shadow: none !important;
}

body#pulsebot-app:is(.dashboard-active-logs,.dashboard-active-automod) .multi-picker-option > input[type="checkbox"]:checked::after {
  border-color: #fff !important;
  opacity: 1 !important;
}

body#pulsebot-app:is(.dashboard-active-logs,.dashboard-active-automod) .multi-picker-option:has(> input[type="checkbox"]:checked) {
  border-color: rgba(59,130,246,.25) !important;
  background: rgba(59,130,246,.055) !important;
  box-shadow: none !important;
}

body#pulsebot-app:is(.dashboard-active-logs,.dashboard-active-automod) .multi-picker-option > input[type="checkbox"]:focus-visible,
body#pulsebot-app:is(.dashboard-active-logs,.dashboard-active-automod,.dashboard-active-verification) .check > input[type="checkbox"]:focus-visible + .check-box {
  outline: 2px solid rgba(59,130,246,.5) !important;
  outline-offset: 2px !important;
}

/* Verification mobile flow: keep the page vertically scrollable and the save action in document flow. */
@media (max-width: 760px) {
  body#pulsebot-app.dashboard-active-verification {
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }

  body#pulsebot-app.dashboard-active-verification .module-form-verification {
    touch-action: pan-y !important;
    padding-bottom: 18px !important;
  }

  body#pulsebot-app.dashboard-active-verification .module-form-verification > .module-savebar {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    display: block !important;
    margin-top: 2px !important;
  }

  body#pulsebot-app.dashboard-active-verification .module-form-verification > .module-savebar .module-save-button {
    width: 100% !important;
    min-width: 0 !important;
  }
}
