/* PulseBot v21.9.3 — community modules rebuilt against the established
   Automod / Verification / Tickets module system. Appearance only. */

body#pulsebot-app:is(
  .dashboard-active-welcome,
  .dashboard-active-goodbye,
  .dashboard-active-selfrole,
  .dashboard-active-boosts,
  .dashboard-active-suggestions
) {
  --pbc-blue: #3b82f6;
  --pbc-blue-hover: #478af2;
  --pbc-blue-pressed: #2f6fd2;
  --pbc-blue-soft: rgba(59,130,246,.055);
  --pbc-blue-line: rgba(59,130,246,.28);
  --pbc-bg: #0b0e13;
  --pbc-surface: rgba(15,19,25,.78);
  --pbc-surface-solid: #0e1218;
  --pbc-input: #0b0f15;
  --pbc-line: rgba(255,255,255,.075);
  --pbc-line-strong: rgba(255,255,255,.13);
  --pbc-text: #edf1f7;
  --pbc-text-2: #c8ced8;
  --pbc-muted: #8c96a4;
  --pbc-soft: #667180;
}

/* Main module frame — same geometry as Automod and Verification. */
body#pulsebot-app:is(
  .dashboard-active-welcome,
  .dashboard-active-goodbye,
  .dashboard-active-selfrole,
  .dashboard-active-boosts,
  .dashboard-active-suggestions
) .content-stack {
  min-width: 0 !important;
  max-width: 1180px !important;
  margin-inline: auto !important;
}

body#pulsebot-app:is(
  .dashboard-active-welcome,
  .dashboard-active-goodbye,
  .dashboard-active-selfrole,
  .dashboard-active-boosts,
  .dashboard-active-suggestions
) .module-panel {
  overflow: visible !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

body#pulsebot-app:is(
  .dashboard-active-welcome,
  .dashboard-active-goodbye,
  .dashboard-active-selfrole,
  .dashboard-active-boosts,
  .dashboard-active-suggestions
) .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(--pbc-line) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

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

body#pulsebot-app:is(
  .dashboard-active-welcome,
  .dashboard-active-goodbye,
  .dashboard-active-selfrole,
  .dashboard-active-boosts,
  .dashboard-active-suggestions
) .module-heading-icon {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  display: grid !important;
  place-items: center !important;
  border: 1px solid var(--pbc-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-welcome,
  .dashboard-active-goodbye,
  .dashboard-active-selfrole,
  .dashboard-active-boosts,
  .dashboard-active-suggestions
) .module-heading-icon svg {
  width: 18px !important;
  height: 18px !important;
}

body#pulsebot-app:is(
  .dashboard-active-welcome,
  .dashboard-active-goodbye,
  .dashboard-active-selfrole,
  .dashboard-active-boosts,
  .dashboard-active-suggestions
) .module-headline h2 {
  margin: 0 !important;
  color: var(--pbc-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-welcome,
  .dashboard-active-goodbye,
  .dashboard-active-selfrole,
  .dashboard-active-boosts,
  .dashboard-active-suggestions
) .module-headline :is(p,.notice) {
  max-width: 720px !important;
  margin: 5px 0 0 !important;
  color: var(--pbc-muted) !important;
  font-size: .82rem !important;
  line-height: 1.55 !important;
}

body#pulsebot-app:is(
  .dashboard-active-welcome,
  .dashboard-active-goodbye,
  .dashboard-active-selfrole,
  .dashboard-active-boosts,
  .dashboard-active-suggestions
) .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(--pbc-line) !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,.025) !important;
  color: var(--pbc-muted) !important;
  font-size: .7rem !important;
  font-weight: 600 !important;
  box-shadow: none !important;
}

body#pulsebot-app:is(
  .dashboard-active-welcome,
  .dashboard-active-goodbye,
  .dashboard-active-selfrole,
  .dashboard-active-boosts,
  .dashboard-active-suggestions
) .module-status::before {
  content: none !important;
  display: none !important;
}

body#pulsebot-app:is(
  .dashboard-active-welcome,
  .dashboard-active-goodbye,
  .dashboard-active-selfrole,
  .dashboard-active-boosts,
  .dashboard-active-suggestions
) .module-status.on {
  border-color: var(--pbc-blue-line) !important;
  background: var(--pbc-blue-soft) !important;
  color: #a9c9ff !important;
}

/* Form order and spacing — description, status, configuration. */
body#pulsebot-app:is(
  .dashboard-active-welcome,
  .dashboard-active-goodbye,
  .dashboard-active-selfrole,
  .dashboard-active-boosts,
  .dashboard-active-suggestions
) .module-form {
  width: 100% !important;
  min-width: 0 !important;
  display: grid !important;
  gap: 16px !important;
  padding-bottom: 96px !important;
}

body#pulsebot-app:is(
  .dashboard-active-welcome,
  .dashboard-active-goodbye,
  .dashboard-active-selfrole,
  .dashboard-active-boosts,
  .dashboard-active-suggestions
) .module-form > .module-panel-special {
  order: -2 !important;
}

body#pulsebot-app:is(
  .dashboard-active-welcome,
  .dashboard-active-goodbye,
  .dashboard-active-selfrole,
  .dashboard-active-boosts,
  .dashboard-active-suggestions
) .module-form > .form-section:first-of-type {
  order: -1 !important;
}

body#pulsebot-app:is(
  .dashboard-active-welcome,
  .dashboard-active-goodbye,
  .dashboard-active-selfrole,
  .dashboard-active-boosts,
  .dashboard-active-suggestions
) .module-panel-special {
  margin: 0 !important;
  padding: 16px 18px !important;
  border: 0 !important;
  border-left: 2px solid var(--pbc-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-welcome,
  .dashboard-active-goodbye,
  .dashboard-active-selfrole,
  .dashboard-active-boosts,
  .dashboard-active-suggestions
) .module-panel-special h2 {
  margin: 0 0 5px !important;
  color: var(--pbc-text) !important;
  font-size: .98rem !important;
  font-weight: 600 !important;
  letter-spacing: -.015em !important;
}

body#pulsebot-app:is(
  .dashboard-active-welcome,
  .dashboard-active-goodbye,
  .dashboard-active-selfrole,
  .dashboard-active-boosts,
  .dashboard-active-suggestions
) .module-panel-special p {
  max-width: 760px !important;
  margin: 0 !important;
  color: var(--pbc-muted) !important;
  font-size: .8rem !important;
  line-height: 1.55 !important;
}

/* Sections use the same subdued card system. */
body#pulsebot-app:is(
  .dashboard-active-welcome,
  .dashboard-active-goodbye,
  .dashboard-active-selfrole,
  .dashboard-active-boosts,
  .dashboard-active-suggestions
) .module-form > .form-section,
body#pulsebot-app.dashboard-active-selfrole .selfrole-section {
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 1px solid var(--pbc-line) !important;
  border-radius: 14px !important;
  background: var(--pbc-surface) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

body#pulsebot-app:is(
  .dashboard-active-welcome,
  .dashboard-active-goodbye,
  .dashboard-active-selfrole,
  .dashboard-active-boosts,
  .dashboard-active-suggestions
) .form-section-head {
  min-width: 0 !important;
  display: block !important;
  margin: 0 !important;
  padding: 15px 17px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--pbc-line) !important;
  background: rgba(255,255,255,.018) !important;
}

body#pulsebot-app:is(
  .dashboard-active-welcome,
  .dashboard-active-goodbye,
  .dashboard-active-selfrole,
  .dashboard-active-boosts,
  .dashboard-active-suggestions
) .form-section-head h3 {
  margin: 0 !important;
  color: var(--pbc-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-welcome,
  .dashboard-active-goodbye,
  .dashboard-active-selfrole,
  .dashboard-active-boosts,
  .dashboard-active-suggestions
) .form-section-head p {
  max-width: 760px !important;
  margin: 5px 0 0 !important;
  color: var(--pbc-muted) !important;
  font-size: .75rem !important;
  line-height: 1.5 !important;
}

body#pulsebot-app:is(
  .dashboard-active-welcome,
  .dashboard-active-goodbye,
  .dashboard-active-selfrole,
  .dashboard-active-boosts,
  .dashboard-active-suggestions
) .form-section-body {
  min-width: 0 !important;
  padding: 17px !important;
  background: transparent !important;
}

body#pulsebot-app:is(
  .dashboard-active-welcome,
  .dashboard-active-goodbye,
  .dashboard-active-selfrole,
  .dashboard-active-boosts,
  .dashboard-active-suggestions
) .field {
  min-width: 0 !important;
  gap: 7px !important;
  margin: 0 0 14px !important;
}

body#pulsebot-app:is(
  .dashboard-active-welcome,
  .dashboard-active-goodbye,
  .dashboard-active-selfrole,
  .dashboard-active-boosts,
  .dashboard-active-suggestions
) .field:last-child {
  margin-bottom: 0 !important;
}

body#pulsebot-app:is(
  .dashboard-active-welcome,
  .dashboard-active-goodbye,
  .dashboard-active-selfrole,
  .dashboard-active-boosts,
  .dashboard-active-suggestions
) .field > label {
  color: var(--pbc-text-2) !important;
  font-size: .77rem !important;
  font-weight: 550 !important;
  line-height: 1.35 !important;
}

body#pulsebot-app:is(
  .dashboard-active-welcome,
  .dashboard-active-goodbye,
  .dashboard-active-selfrole,
  .dashboard-active-boosts,
  .dashboard-active-suggestions
) .field > small {
  color: var(--pbc-soft) !important;
  font-size: .69rem !important;
  line-height: 1.45 !important;
}

body#pulsebot-app:is(
  .dashboard-active-welcome,
  .dashboard-active-goodbye,
  .dashboard-active-selfrole,
  .dashboard-active-boosts,
  .dashboard-active-suggestions
) .module-grid {
  min-width: 0 !important;
  gap: 13px !important;
}

/* Inputs */
body#pulsebot-app:is(
  .dashboard-active-welcome,
  .dashboard-active-goodbye,
  .dashboard-active-selfrole,
  .dashboard-active-boosts,
  .dashboard-active-suggestions
) :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: var(--pbc-input) !important;
  color: var(--pbc-text) !important;
  font-size: .82rem !important;
  box-shadow: none !important;
  outline: none !important;
}

body#pulsebot-app:is(
  .dashboard-active-welcome,
  .dashboard-active-goodbye,
  .dashboard-active-selfrole,
  .dashboard-active-boosts,
  .dashboard-active-suggestions
) :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-welcome,
  .dashboard-active-goodbye,
  .dashboard-active-selfrole,
  .dashboard-active-boosts,
  .dashboard-active-suggestions
) textarea {
  min-height: 108px !important;
  line-height: 1.55 !important;
  resize: vertical !important;
}

body#pulsebot-app:is(.dashboard-active-welcome,.dashboard-active-goodbye) textarea[name$="Description"],
body#pulsebot-app.dashboard-active-boosts textarea[name="boostDescription"] {
  min-height: 176px !important;
}

/* Compact blue checkboxes, identical across all rebuilt modules. */
body#pulsebot-app:is(
  .dashboard-active-welcome,
  .dashboard-active-goodbye,
  .dashboard-active-selfrole,
  .dashboard-active-boosts,
  .dashboard-active-suggestions
) .check-grid {
  gap: 8px !important;
}

body#pulsebot-app:is(
  .dashboard-active-welcome,
  .dashboard-active-goodbye,
  .dashboard-active-selfrole,
  .dashboard-active-boosts,
  .dashboard-active-suggestions
) .check {
  position: relative !important;
  min-width: 0 !important;
  min-height: 42px !important;
  display: grid !important;
  grid-template-columns: 16px minmax(0,1fr) !important;
  gap: 9px !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(--pbc-text-2) !important;
  box-shadow: none !important;
  cursor: pointer !important;
  transform: none !important;
}

body#pulsebot-app:is(
  .dashboard-active-welcome,
  .dashboard-active-goodbye,
  .dashboard-active-selfrole,
  .dashboard-active-boosts,
  .dashboard-active-suggestions
) .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-welcome,
  .dashboard-active-goodbye,
  .dashboard-active-selfrole,
  .dashboard-active-boosts,
  .dashboard-active-suggestions
) .check > input[type="checkbox"] {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  opacity: 0 !important;
  cursor: pointer !important;
  appearance: none !important;
}

body#pulsebot-app:is(
  .dashboard-active-welcome,
  .dashboard-active-goodbye,
  .dashboard-active-selfrole,
  .dashboard-active-boosts,
  .dashboard-active-suggestions
) .check > .check-box {
  position: relative !important;
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  min-height: 16px !important;
  display: block !important;
  border: 1px solid rgba(255,255,255,.20) !important;
  border-radius: 4px !important;
  background: #0a0e13 !important;
  box-shadow: none !important;
}

body#pulsebot-app:is(
  .dashboard-active-welcome,
  .dashboard-active-goodbye,
  .dashboard-active-selfrole,
  .dashboard-active-boosts,
  .dashboard-active-suggestions
) .check > .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;
  opacity: 0 !important;
  transform: rotate(45deg) !important;
}

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

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

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

/* Module switch */
body#pulsebot-app:is(
  .dashboard-active-welcome,
  .dashboard-active-goodbye,
  .dashboard-active-selfrole,
  .dashboard-active-boosts,
  .dashboard-active-suggestions
) .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-welcome,
  .dashboard-active-goodbye,
  .dashboard-active-selfrole,
  .dashboard-active-boosts,
  .dashboard-active-suggestions
) .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-welcome,
  .dashboard-active-goodbye,
  .dashboard-active-selfrole,
  .dashboard-active-boosts,
  .dashboard-active-suggestions
) .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-welcome,
  .dashboard-active-goodbye,
  .dashboard-active-selfrole,
  .dashboard-active-boosts,
  .dashboard-active-suggestions
) .toggle input:checked + .toggle-track {
  border-color: rgba(59,130,246,.62) !important;
  background: var(--pbc-blue) !important;
  box-shadow: none !important;
}

body#pulsebot-app:is(
  .dashboard-active-welcome,
  .dashboard-active-goodbye,
  .dashboard-active-selfrole,
  .dashboard-active-boosts,
  .dashboard-active-suggestions
) .toggle input:checked + .toggle-track::after {
  background: #fff !important;
  transform: translateX(18px) !important;
}

body#pulsebot-app:is(
  .dashboard-active-welcome,
  .dashboard-active-goodbye,
  .dashboard-active-selfrole,
  .dashboard-active-boosts,
  .dashboard-active-suggestions
) .switch-state.on {
  color: #a9c9ff !important;
}

/* Buttons: no gradients, lift, glow or purple fallback. */
body#pulsebot-app:is(
  .dashboard-active-welcome,
  .dashboard-active-goodbye,
  .dashboard-active-selfrole,
  .dashboard-active-boosts,
  .dashboard-active-suggestions
) .btn {
  border-radius: 9px !important;
  box-shadow: none !important;
  transform: none !important;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease !important;
}

body#pulsebot-app:is(
  .dashboard-active-welcome,
  .dashboard-active-goodbye,
  .dashboard-active-selfrole,
  .dashboard-active-boosts,
  .dashboard-active-suggestions
) .btn-primary {
  border: 1px solid rgba(126,174,255,.26) !important;
  background: var(--pbc-blue) !important;
  background-image: none !important;
  color: #fff !important;
  box-shadow: none !important;
}

body#pulsebot-app:is(
  .dashboard-active-welcome,
  .dashboard-active-goodbye,
  .dashboard-active-selfrole,
  .dashboard-active-boosts,
  .dashboard-active-suggestions
) .btn-primary:hover,
body#pulsebot-app:is(
  .dashboard-active-welcome,
  .dashboard-active-goodbye,
  .dashboard-active-selfrole,
  .dashboard-active-boosts,
  .dashboard-active-suggestions
) .btn-primary:focus-visible {
  border-color: rgba(156,194,255,.42) !important;
  background: var(--pbc-blue-hover) !important;
  background-image: none !important;
  box-shadow: none !important;
  transform: none !important;
}

body#pulsebot-app:is(
  .dashboard-active-welcome,
  .dashboard-active-goodbye,
  .dashboard-active-selfrole,
  .dashboard-active-boosts,
  .dashboard-active-suggestions
) .btn-ghost {
  border-color: rgba(255,255,255,.10) !important;
  background: rgba(255,255,255,.025) !important;
  background-image: none !important;
  color: var(--pbc-text-2) !important;
  box-shadow: none !important;
}

body#pulsebot-app:is(
  .dashboard-active-welcome,
  .dashboard-active-goodbye,
  .dashboard-active-selfrole,
  .dashboard-active-boosts,
  .dashboard-active-suggestions
) .btn-ghost:hover,
body#pulsebot-app:is(
  .dashboard-active-welcome,
  .dashboard-active-goodbye,
  .dashboard-active-selfrole,
  .dashboard-active-boosts,
  .dashboard-active-suggestions
) .btn-ghost:focus-visible {
  border-color: rgba(255,255,255,.16) !important;
  background: rgba(255,255,255,.045) !important;
  color: var(--pbc-text) !important;
  box-shadow: none !important;
  transform: none !important;
}

body#pulsebot-app:is(
  .dashboard-active-welcome,
  .dashboard-active-goodbye,
  .dashboard-active-selfrole,
  .dashboard-active-boosts,
  .dashboard-active-suggestions
) .action-row {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 0 0 12px !important;
}

/* Embed editor mirrors Verification. */
body#pulsebot-app:is(.dashboard-active-welcome,.dashboard-active-goodbye,.dashboard-active-selfrole) .embed-builder-grid {
  min-width: 0 !important;
  display: grid !important;
  grid-template-columns: minmax(0,1.12fr) minmax(280px,.88fr) !important;
  gap: 22px !important;
  align-items: start !important;
}

body#pulsebot-app:is(.dashboard-active-welcome,.dashboard-active-goodbye,.dashboard-active-selfrole) .embed-editor-preview,
body#pulsebot-app.dashboard-active-boosts .boost-preview-column {
  position: sticky !important;
  top: 92px !important;
  min-width: 0 !important;
  padding: 14px !important;
  border: 1px solid var(--pbc-line) !important;
  border-radius: 10px !important;
  background: var(--pbc-input) !important;
  box-shadow: none !important;
}

body#pulsebot-app:is(.dashboard-active-welcome,.dashboard-active-goodbye,.dashboard-active-selfrole,.dashboard-active-boosts) :is(.discord-embed,.embed-editor-preview,.embed-preview) {
  box-shadow: none !important;
}

/* Variables — compact rows rather than decorative cards. */
body#pulsebot-app:is(.dashboard-active-welcome,.dashboard-active-goodbye,.dashboard-active-boosts) .variable-help {
  margin-top: 18px !important;
  padding-top: 16px !important;
  border-top: 1px solid var(--pbc-line) !important;
}

body#pulsebot-app:is(.dashboard-active-welcome,.dashboard-active-goodbye,.dashboard-active-boosts) .variable-help-head {
  display: flex !important;
  align-items: baseline !important;
  justify-content: space-between !important;
  gap: 14px !important;
  margin: 0 0 10px !important;
}

body#pulsebot-app:is(.dashboard-active-welcome,.dashboard-active-goodbye,.dashboard-active-boosts) .variable-help-head strong {
  color: var(--pbc-text-2) !important;
  font-size: .78rem !important;
  font-weight: 600 !important;
}

body#pulsebot-app:is(.dashboard-active-welcome,.dashboard-active-goodbye,.dashboard-active-boosts) .variable-help-head span {
  color: var(--pbc-soft) !important;
  font-size: .69rem !important;
}

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

body#pulsebot-app:is(.dashboard-active-welcome,.dashboard-active-goodbye,.dashboard-active-boosts) .variable-chip {
  min-width: 0 !important;
  min-height: 44px !important;
  display: grid !important;
  grid-template-columns: minmax(82px,auto) minmax(0,1fr) !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 8px 10px !important;
  border: 1px solid var(--pbc-line) !important;
  border-radius: 8px !important;
  background: rgba(255,255,255,.014) !important;
  color: var(--pbc-text-2) !important;
  text-align: left !important;
  box-shadow: none !important;
  transform: none !important;
}

body#pulsebot-app:is(.dashboard-active-welcome,.dashboard-active-goodbye,.dashboard-active-boosts) .variable-chip:hover,
body#pulsebot-app:is(.dashboard-active-welcome,.dashboard-active-goodbye,.dashboard-active-boosts) .variable-chip:focus-visible {
  border-color: var(--pbc-blue-line) !important;
  background: rgba(59,130,246,.035) !important;
  color: var(--pbc-text) !important;
  box-shadow: none !important;
  transform: none !important;
}

body#pulsebot-app:is(.dashboard-active-welcome,.dashboard-active-goodbye,.dashboard-active-boosts) .variable-chip code {
  color: #9fc4ff !important;
  font-size: .74rem !important;
  font-weight: 600 !important;
}

body#pulsebot-app:is(.dashboard-active-welcome,.dashboard-active-goodbye,.dashboard-active-boosts) .variable-chip span {
  min-width: 0 !important;
  overflow: hidden !important;
  color: var(--pbc-muted) !important;
  font-size: .69rem !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

/* Self roles — two ordinary configuration flows, not promotional panels. */
body#pulsebot-app.dashboard-active-selfrole .plan-limit-note,
body#pulsebot-app.dashboard-active-selfrole .plan-limit-label {
  margin: 0 !important;
  padding: 14px 16px !important;
  border: 1px solid var(--pbc-line) !important;
  border-radius: 10px !important;
  background: rgba(255,255,255,.016) !important;
  box-shadow: none !important;
}

body#pulsebot-app.dashboard-active-selfrole .plan-limit-copy {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 18px !important;
}

body#pulsebot-app.dashboard-active-selfrole .plan-limit-copy > strong {
  color: var(--pbc-text-2) !important;
  font-size: .78rem !important;
  font-weight: 600 !important;
}

body#pulsebot-app.dashboard-active-selfrole .plan-limit-values {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 14px !important;
}

body#pulsebot-app.dashboard-active-selfrole .plan-limit-values span {
  display: inline-flex !important;
  align-items: baseline !important;
  gap: 6px !important;
  color: var(--pbc-muted) !important;
  font-size: .69rem !important;
}

body#pulsebot-app.dashboard-active-selfrole .plan-limit-values b {
  color: #9fc4ff !important;
  font-size: .75rem !important;
  font-weight: 600 !important;
}

body#pulsebot-app.dashboard-active-selfrole .selfrole-section .message-list {
  display: grid !important;
  gap: 7px !important;
}

body#pulsebot-app.dashboard-active-selfrole .selfrole-section :is(.message-rule-card,.selfrole-item) {
  min-width: 0 !important;
  display: grid !important;
  grid-template-columns: minmax(0,1fr) auto !important;
  align-items: center !important;
  gap: 14px !important;
  padding: 11px 12px !important;
  border: 1px solid var(--pbc-line) !important;
  border-radius: 9px !important;
  background: rgba(255,255,255,.016) !important;
  box-shadow: none !important;
  transform: none !important;
}

body#pulsebot-app.dashboard-active-selfrole .selfrole-section :is(.message-rule-card,.selfrole-item):hover {
  border-color: rgba(255,255,255,.12) !important;
  background: rgba(255,255,255,.025) !important;
  box-shadow: none !important;
  transform: none !important;
}

body#pulsebot-app.dashboard-active-selfrole .selfrole-section .action-row {
  justify-content: space-between !important;
  margin: 14px 0 0 !important;
  padding-top: 14px !important;
  border-top: 1px solid var(--pbc-line) !important;
}

body#pulsebot-app.dashboard-active-selfrole .counter-pill {
  min-width: 48px !important;
  min-height: 27px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 8px !important;
  border: 1px solid var(--pbc-line) !important;
  border-radius: 7px !important;
  background: rgba(255,255,255,.018) !important;
  color: var(--pbc-muted) !important;
  font-size: .7rem !important;
  box-shadow: none !important;
}

body#pulsebot-app.dashboard-active-selfrole .module-form > p {
  display: flex !important;
  justify-content: flex-end !important;
  margin: -7px 0 2px !important;
}

body#pulsebot-app.dashboard-active-selfrole [data-publish-selfrole] {
  border-color: rgba(126,174,255,.26) !important;
  background: var(--pbc-blue) !important;
  color: #fff !important;
}

/* Dialogs match the ticket editors. */
body#pulsebot-app.dashboard-active-selfrole .selfrole-editor {
  width: min(620px, calc(100vw - 28px)) !important;
  max-width: 620px !important;
  max-height: min(84vh,760px) !important;
  padding: 0 !important;
  overflow: auto !important;
  border: 1px solid var(--pbc-line-strong) !important;
  border-radius: 14px !important;
  background: #0d131c !important;
  box-shadow: 0 22px 60px rgba(0,0,0,.42) !important;
}

body#pulsebot-app.dashboard-active-selfrole .selfrole-editor::backdrop {
  background: rgba(0,0,0,.68) !important;
  backdrop-filter: blur(2px) !important;
}

body#pulsebot-app.dashboard-active-selfrole .selfrole-editor .message-editor-card {
  padding: 22px !important;
  border: 0 !important;
  border-radius: inherit !important;
  background: transparent !important;
  box-shadow: none !important;
}

body#pulsebot-app.dashboard-active-selfrole .selfrole-editor .modal-head {
  margin: 0 0 20px !important;
  padding: 0 0 16px !important;
  border-bottom: 1px solid var(--pbc-line) !important;
}

body#pulsebot-app.dashboard-active-selfrole .selfrole-editor .modal-close {
  width: 36px !important;
  height: 36px !important;
  border: 1px solid var(--pbc-line-strong) !important;
  border-radius: 9px !important;
  background: rgba(255,255,255,.025) !important;
  color: var(--pbc-text-2) !important;
  box-shadow: none !important;
}

body#pulsebot-app.dashboard-active-selfrole .selfrole-editor .savebar {
  position: static !important;
  display: flex !important;
  justify-content: flex-end !important;
  gap: 8px !important;
  margin: 20px 0 0 !important;
  padding: 16px 0 0 !important;
  border: 0 !important;
  border-top: 1px solid var(--pbc-line) !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* Boosts */
body#pulsebot-app.dashboard-active-boosts .boost-editor-layout {
  min-width: 0 !important;
  display: grid !important;
  grid-template-columns: minmax(0,1.12fr) minmax(290px,.88fr) !important;
  gap: 22px !important;
  align-items: start !important;
}

body#pulsebot-app.dashboard-active-boosts .boost-editor-fields,
body#pulsebot-app.dashboard-active-boosts .boost-preview-column {
  min-width: 0 !important;
}

body#pulsebot-app.dashboard-active-boosts .boost-preview-label {
  display: grid !important;
  gap: 3px !important;
  margin-bottom: 12px !important;
  padding-bottom: 11px !important;
  border-bottom: 1px solid var(--pbc-line) !important;
}

body#pulsebot-app.dashboard-active-boosts .boost-preview-label strong {
  color: var(--pbc-text) !important;
  font-size: .78rem !important;
  font-weight: 600 !important;
}

body#pulsebot-app.dashboard-active-boosts .boost-preview-label span {
  color: var(--pbc-muted) !important;
  font-size: .69rem !important;
}

/* Suggestions and neutral notes */
body#pulsebot-app:is(.dashboard-active-boosts,.dashboard-active-suggestions,.dashboard-active-selfrole) .notice-card {
  margin: 14px 0 0 !important;
  padding: 13px 14px !important;
  border: 1px solid var(--pbc-line) !important;
  border-radius: 9px !important;
  background: rgba(255,255,255,.016) !important;
  color: var(--pbc-muted) !important;
  box-shadow: none !important;
}

body#pulsebot-app:is(.dashboard-active-boosts,.dashboard-active-suggestions,.dashboard-active-selfrole) .notice-card strong {
  color: var(--pbc-text-2) !important;
  font-size: .76rem !important;
  font-weight: 600 !important;
}

body#pulsebot-app:is(.dashboard-active-boosts,.dashboard-active-suggestions,.dashboard-active-selfrole) .notice-card p {
  margin: 4px 0 0 !important;
  color: var(--pbc-muted) !important;
  font-size: .72rem !important;
  line-height: 1.55 !important;
}

/* No purple Premium remnants. */
body#pulsebot-app:is(
  .dashboard-active-welcome,
  .dashboard-active-goodbye,
  .dashboard-active-selfrole,
  .dashboard-active-boosts,
  .dashboard-active-suggestions
) :is(.premium-inline-badge,.premium-badge,.server-premium-badge) {
  display: inline !important;
  margin-left: 6px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-image: none !important;
  color: #78a9f8 !important;
  font-size: .68rem !important;
  font-weight: 600 !important;
  letter-spacing: .06em !important;
  text-transform: uppercase !important;
  box-shadow: none !important;
}

/* Save action is identical to every prior rebuilt module. */
body#pulsebot-app:is(
  .dashboard-active-welcome,
  .dashboard-active-goodbye,
  .dashboard-active-selfrole,
  .dashboard-active-boosts,
  .dashboard-active-suggestions
) .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:is(
  .dashboard-active-welcome,
  .dashboard-active-goodbye,
  .dashboard-active-selfrole,
  .dashboard-active-boosts,
  .dashboard-active-suggestions
) .module-form > .module-savebar > .notice {
  display: none !important;
}

body#pulsebot-app:is(
  .dashboard-active-welcome,
  .dashboard-active-goodbye,
  .dashboard-active-selfrole,
  .dashboard-active-boosts,
  .dashboard-active-suggestions
) .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;
  background-image: none !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:is(
  .dashboard-active-welcome,
  .dashboard-active-goodbye,
  .dashboard-active-selfrole,
  .dashboard-active-boosts,
  .dashboard-active-suggestions
) .module-save-button::before,
body#pulsebot-app:is(
  .dashboard-active-welcome,
  .dashboard-active-goodbye,
  .dashboard-active-selfrole,
  .dashboard-active-boosts,
  .dashboard-active-suggestions
) .module-save-button::after {
  content: none !important;
  display: none !important;
}

body#pulsebot-app:is(
  .dashboard-active-welcome,
  .dashboard-active-goodbye,
  .dashboard-active-selfrole,
  .dashboard-active-boosts,
  .dashboard-active-suggestions
) .module-save-button:hover:not(:disabled),
body#pulsebot-app:is(
  .dashboard-active-welcome,
  .dashboard-active-goodbye,
  .dashboard-active-selfrole,
  .dashboard-active-boosts,
  .dashboard-active-suggestions
) .module-save-button:focus-visible:not(:disabled) {
  border-color: rgba(164,199,255,.44) !important;
  background: #3d82ef !important;
  background-image: none !important;
  box-shadow: 0 12px 28px rgba(0,0,0,.30) !important;
  transform: none !important;
}

body#pulsebot-app:is(
  .dashboard-active-welcome,
  .dashboard-active-goodbye,
  .dashboard-active-selfrole,
  .dashboard-active-boosts,
  .dashboard-active-suggestions
) .module-save-button:active:not(:disabled) {
  background: #2e69c9 !important;
}

@media (max-width: 900px) {
  body#pulsebot-app:is(.dashboard-active-welcome,.dashboard-active-goodbye,.dashboard-active-selfrole) .embed-builder-grid,
  body#pulsebot-app.dashboard-active-boosts .boost-editor-layout {
    grid-template-columns: 1fr !important;
  }

  body#pulsebot-app:is(.dashboard-active-welcome,.dashboard-active-goodbye,.dashboard-active-selfrole) .embed-editor-preview,
  body#pulsebot-app.dashboard-active-boosts .boost-preview-column {
    position: static !important;
  }
}

@media (max-width: 640px) {
  body#pulsebot-app:is(
    .dashboard-active-welcome,
    .dashboard-active-goodbye,
    .dashboard-active-selfrole,
    .dashboard-active-boosts,
    .dashboard-active-suggestions
  ) .module-headline {
    align-items: flex-start !important;
    flex-direction: column !important;
    gap: 14px !important;
  }

  body#pulsebot-app:is(
    .dashboard-active-welcome,
    .dashboard-active-goodbye,
    .dashboard-active-selfrole,
    .dashboard-active-boosts,
    .dashboard-active-suggestions
  ) .form-section-body {
    padding: 15px !important;
  }

  body#pulsebot-app:is(.dashboard-active-welcome,.dashboard-active-goodbye,.dashboard-active-boosts) .variable-grid {
    grid-template-columns: 1fr !important;
  }

  body#pulsebot-app.dashboard-active-selfrole .plan-limit-copy {
    align-items: flex-start !important;
    flex-direction: column !important;
  }

  body#pulsebot-app.dashboard-active-selfrole .selfrole-section :is(.message-rule-card,.selfrole-item) {
    grid-template-columns: 1fr !important;
  }

  body#pulsebot-app:is(
    .dashboard-active-welcome,
    .dashboard-active-goodbye,
    .dashboard-active-selfrole,
    .dashboard-active-boosts,
    .dashboard-active-suggestions
  ) .module-form > .module-savebar {
    inset: auto 12px 12px 12px !important;
  }

  body#pulsebot-app:is(
    .dashboard-active-welcome,
    .dashboard-active-goodbye,
    .dashboard-active-selfrole,
    .dashboard-active-boosts,
    .dashboard-active-suggestions
  ) .module-save-button {
    width: 100% !important;
    min-width: 0 !important;
  }
}
