/* PulseBot v22.0.0 — deterministic controls and one final visual standard for rebuilt modules. */

body#pulsebot-app.dashboard-module-v2177 {
  --pb2200-panel: #0f141b;
  --pb2200-panel-soft: #0c1117;
  --pb2200-input: #090e14;
  --pb2200-line: rgba(255,255,255,.08);
  --pb2200-line-strong: rgba(255,255,255,.13);
  --pb2200-text: #eef2f7;
  --pb2200-text-2: #c7d0dc;
  --pb2200-muted: #929caa;
  --pb2200-soft: #6f7987;
  --pb2200-blue: #3b82f6;
  --pb2200-blue-hover: #4b8df7;
  --pb2200-blue-soft: rgba(59,130,246,.09);
  --pb2200-blue-line: rgba(59,130,246,.32);
}

/* ---------- hard reset: module status switch ---------- */
body#pulsebot-app.dashboard-module-v2177 .module-form .form-section:has([data-module-switch]) {
  overflow: hidden !important;
}

body#pulsebot-app.dashboard-module-v2177 .module-form .form-section:has([data-module-switch]) .form-section-head {
  min-height: 52px !important;
  padding: 15px 18px !important;
}

body#pulsebot-app.dashboard-module-v2177 .module-form .form-section:has([data-module-switch]) .form-section-body {
  padding: 0 !important;
}

body#pulsebot-app.dashboard-module-v2177 .module-form [data-module-switch].switch-row {
  min-height: 76px !important;
  width: 100% !important;
  display: grid !important;
  grid-template-columns: minmax(0,1fr) auto !important;
  align-items: center !important;
  gap: 24px !important;
  margin: 0 !important;
  padding: 16px 18px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body#pulsebot-app.dashboard-module-v2177 .module-form [data-module-switch] .switch-copy {
  min-width: 0 !important;
  display: grid !important;
  gap: 4px !important;
  margin: 0 !important;
}

body#pulsebot-app.dashboard-module-v2177 .module-form [data-module-switch] .switch-copy strong {
  margin: 0 !important;
  color: var(--pb2200-text) !important;
  font-size: .86rem !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
}

body#pulsebot-app.dashboard-module-v2177 .module-form [data-module-switch] .switch-copy span {
  margin: 0 !important;
  color: var(--pb2200-muted) !important;
  font-size: .75rem !important;
  font-weight: 400 !important;
  line-height: 1.45 !important;
}

body#pulsebot-app.dashboard-module-v2177 .module-form [data-module-switch] .switch-control {
  min-width: 120px !important;
  width: auto !important;
  height: 24px !important;
  display: grid !important;
  grid-template-columns: auto 44px !important;
  align-items: center !important;
  justify-content: end !important;
  gap: 10px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body#pulsebot-app.dashboard-module-v2177 .module-form [data-module-switch] .switch-state {
  min-width: 0 !important;
  margin: 0 !important;
  color: var(--pb2200-muted) !important;
  font-size: .75rem !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

body#pulsebot-app.dashboard-module-v2177 .module-form [data-module-switch] .switch-control:has(input:checked) .switch-state {
  color: #a9cbff !important;
}

body#pulsebot-app.dashboard-module-v2177 .module-form [data-module-switch] label.toggle {
  all: unset !important;
  position: relative !important;
  box-sizing: border-box !important;
  width: 44px !important;
  height: 24px !important;
  min-width: 44px !important;
  min-height: 24px !important;
  display: block !important;
  border-radius: 999px !important;
  cursor: pointer !important;
}

body#pulsebot-app.dashboard-module-v2177 .module-form [data-module-switch] label.toggle > input[role="switch"] {
  position: absolute !important;
  inset: 0 !important;
  z-index: 2 !important;
  width: 44px !important;
  height: 24px !important;
  min-width: 44px !important;
  min-height: 24px !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 0 !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  cursor: pointer !important;
}

body#pulsebot-app.dashboard-module-v2177 .module-form [data-module-switch] label.toggle > .toggle-track {
  position: absolute !important;
  inset: 0 !important;
  box-sizing: border-box !important;
  width: 44px !important;
  height: 24px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid #46515f !important;
  border-radius: 999px !important;
  background: #1a212b !important;
  box-shadow: none !important;
  transform: none !important;
}

body#pulsebot-app.dashboard-module-v2177 .module-form [data-module-switch] label.toggle > .toggle-track::before,
body#pulsebot-app.dashboard-module-v2177 .module-form [data-module-switch] label.toggle > .toggle-track::after {
  content: none !important;
  display: none !important;
}

body#pulsebot-app.dashboard-module-v2177 .module-form [data-module-switch] label.toggle > .toggle-track {
  --pb2200-knob-x: 3px;
}

body#pulsebot-app.dashboard-module-v2177 .module-form [data-module-switch] label.toggle > .toggle-track > * {
  display: none !important;
}

body#pulsebot-app.dashboard-module-v2177 .module-form [data-module-switch] label.toggle::after {
  content: "" !important;
  position: absolute !important;
  z-index: 1 !important;
  top: 4px !important;
  left: 4px !important;
  width: 16px !important;
  height: 16px !important;
  border-radius: 50% !important;
  background: #b9c3cf !important;
  box-shadow: none !important;
  transform: translateX(0) !important;
  transition: transform .16s ease, background-color .16s ease !important;
  pointer-events: none !important;
}

body#pulsebot-app.dashboard-module-v2177 .module-form [data-module-switch] label.toggle:has(input:checked) > .toggle-track {
  border-color: var(--pb2200-blue) !important;
  background: var(--pb2200-blue) !important;
}

body#pulsebot-app.dashboard-module-v2177 .module-form [data-module-switch] label.toggle:has(input:checked)::after {
  background: #fff !important;
  transform: translateX(20px) !important;
}

body#pulsebot-app.dashboard-module-v2177 .module-form [data-module-switch] label.toggle:has(input:focus-visible) > .toggle-track {
  outline: 2px solid rgba(59,130,246,.35) !important;
  outline-offset: 2px !important;
}

/* ---------- hard reset: checkbox rows ---------- */
body#pulsebot-app.dashboard-module-v2177 .module-form label.check {
  position: relative !important;
  min-width: 0 !important;
  min-height: 48px !important;
  display: grid !important;
  grid-template-columns: 16px minmax(0,1fr) !important;
  align-items: center !important;
  gap: 10px !important;
  margin: 0 !important;
  padding: 11px 13px !important;
  border: 1px solid var(--pb2200-line) !important;
  border-radius: 10px !important;
  background: rgba(255,255,255,.012) !important;
  color: var(--pb2200-text-2) !important;
  box-shadow: none !important;
  transform: none !important;
  cursor: pointer !important;
}

body#pulsebot-app.dashboard-module-v2177 .module-form label.check:hover {
  border-color: rgba(255,255,255,.15) !important;
  background: rgba(255,255,255,.022) !important;
}

body#pulsebot-app.dashboard-module-v2177 .module-form label.check:has(> input[type="checkbox"]:checked) {
  border-color: var(--pb2200-blue-line) !important;
  background: rgba(59,130,246,.035) !important;
}

body#pulsebot-app.dashboard-module-v2177 .module-form label.check > input[type="checkbox"] {
  position: absolute !important;
  top: 50% !important;
  left: 13px !important;
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  min-height: 16px !important;
  margin: -8px 0 0 !important;
  padding: 0 !important;
  opacity: 0 !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  pointer-events: auto !important;
  cursor: pointer !important;
  z-index: 2 !important;
}

body#pulsebot-app.dashboard-module-v2177 .module-form label.check > .check-box {
  position: relative !important;
  grid-column: 1 !important;
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  min-height: 16px !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid #536071 !important;
  border-radius: 4px !important;
  background: var(--pb2200-input) !important;
  box-shadow: none !important;
  pointer-events: none !important;
}

body#pulsebot-app.dashboard-module-v2177 .module-form label.check > .check-box::before {
  content: none !important;
  display: none !important;
}

body#pulsebot-app.dashboard-module-v2177 .module-form label.check > .check-box::after {
  content: "" !important;
  position: absolute !important;
  top: 3px !important;
  left: 3px !important;
  width: 7px !important;
  height: 4px !important;
  border-left: 2px solid #fff !important;
  border-bottom: 2px solid #fff !important;
  opacity: 0 !important;
  transform: rotate(-45deg) scale(.8) !important;
  transition: opacity .12s ease, transform .12s ease !important;
}

body#pulsebot-app.dashboard-module-v2177 .module-form label.check > input[type="checkbox"]:checked + .check-box {
  border-color: var(--pb2200-blue) !important;
  background: var(--pb2200-blue) !important;
}

body#pulsebot-app.dashboard-module-v2177 .module-form label.check > input[type="checkbox"]:checked + .check-box::after {
  opacity: 1 !important;
  transform: rotate(-45deg) scale(1) !important;
}

body#pulsebot-app.dashboard-module-v2177 .module-form label.check > input[type="checkbox"]:focus-visible + .check-box {
  outline: 2px solid rgba(59,130,246,.35) !important;
  outline-offset: 2px !important;
}

body#pulsebot-app.dashboard-module-v2177 .module-form label.check > .check-text {
  grid-column: 2 !important;
  min-width: 0 !important;
  color: var(--pb2200-text-2) !important;
  font-size: .79rem !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
}

/* Legacy check labels without a visual span remain deterministic. */
body#pulsebot-app.dashboard-module-v2177 .module-form label.check:not(:has(.check-box)) {
  grid-template-columns: 16px minmax(0,1fr) !important;
}

body#pulsebot-app.dashboard-module-v2177 .module-form label.check:not(:has(.check-box)) > input[type="checkbox"] {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  grid-column: 1 !important;
  width: 16px !important;
  height: 16px !important;
  margin: 0 !important;
  opacity: 1 !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  border: 1px solid #536071 !important;
  border-radius: 4px !important;
  background: var(--pb2200-input) !important;
}

body#pulsebot-app.dashboard-module-v2177 .module-form label.check:not(:has(.check-box)) > input[type="checkbox"]:checked {
  border-color: var(--pb2200-blue) !important;
  background: var(--pb2200-blue) center / 10px 10px no-repeat !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M2.2 6.3 4.8 9 9.8 3'/%3E%3C/svg%3E") !important;
}

/* Native multi-picker checkboxes, same exact dimensions and blue state. */
body#pulsebot-app.dashboard-module-v2177 .module-form .multi-picker-option > input[type="checkbox"] {
  position: relative !important;
  inset: auto !important;
  flex: 0 0 16px !important;
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  min-height: 16px !important;
  max-width: 16px !important;
  max-height: 16px !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 1 !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  border: 1px solid #536071 !important;
  border-radius: 4px !important;
  background: var(--pb2200-input) !important;
  box-shadow: none !important;
  cursor: pointer !important;
}

body#pulsebot-app.dashboard-module-v2177 .module-form .multi-picker-option > input[type="checkbox"]::before,
body#pulsebot-app.dashboard-module-v2177 .module-form .multi-picker-option > input[type="checkbox"]::after {
  content: none !important;
  display: none !important;
}

body#pulsebot-app.dashboard-module-v2177 .module-form .multi-picker-option > input[type="checkbox"]:checked {
  border-color: var(--pb2200-blue) !important;
  background: var(--pb2200-blue) center / 10px 10px no-repeat !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M2.2 6.3 4.8 9 9.8 3'/%3E%3C/svg%3E") !important;
}

/* ---------- final one-to-one format for Last Letter, Giveaways and Photos ---------- */
body#pulsebot-app:is(.dashboard-active-lastletter,.dashboard-active-giveaways,.dashboard-active-photos) {
  --pb-module-bg: #0b0f14;
  --pb-module-panel: #0f141b;
  --pb-module-panel-soft: #0c1117;
  --pb-module-line: rgba(255,255,255,.08);
  --pb-module-line-strong: rgba(255,255,255,.13);
  --pb-module-text: #eef2f7;
  --pb-module-text-2: #c7d0dc;
  --pb-module-muted: #929caa;
  --pb-module-soft: #6f7987;
  --pb-module-blue: #3b82f6;
  --pb-module-blue-hover: #4b8df7;
  --pb-module-blue-soft: rgba(59,130,246,.09);
  --pb-module-blue-line: rgba(59,130,246,.32);
}

body#pulsebot-app:is(.dashboard-active-lastletter,.dashboard-active-giveaways,.dashboard-active-photos) .content-stack {
  gap: 18px !important;
}

body#pulsebot-app:is(.dashboard-active-lastletter,.dashboard-active-giveaways,.dashboard-active-photos) .module-panel {
  padding: 24px !important;
  border: 1px solid var(--pb2200-line) !important;
  border-radius: 20px !important;
  background: rgba(10,14,19,.96) !important;
  box-shadow: none !important;
  overflow: visible !important;
  font-family: Inter, system-ui, sans-serif !important;
}

body#pulsebot-app:is(.dashboard-active-lastletter,.dashboard-active-giveaways,.dashboard-active-photos) .module-headline {
  min-height: 58px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 20px !important;
  margin: 0 0 22px !important;
  padding: 0 0 20px !important;
  border-bottom: 1px solid var(--pb2200-line) !important;
}

body#pulsebot-app:is(.dashboard-active-lastletter,.dashboard-active-giveaways,.dashboard-active-photos) .module-heading-copy {
  min-width: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 13px !important;
}

body#pulsebot-app:is(.dashboard-active-lastletter,.dashboard-active-giveaways,.dashboard-active-photos) .module-heading-icon {
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  display: grid !important;
  place-items: center !important;
  border: 1px solid var(--pb2200-line-strong) !important;
  border-radius: 11px !important;
  background: rgba(255,255,255,.025) !important;
  color: #b8c6da !important;
  box-shadow: none !important;
}

body#pulsebot-app:is(.dashboard-active-lastletter,.dashboard-active-giveaways,.dashboard-active-photos) .module-heading-icon svg {
  width: 17px !important;
  height: 17px !important;
}

body#pulsebot-app:is(.dashboard-active-lastletter,.dashboard-active-giveaways,.dashboard-active-photos) .module-headline h2 {
  margin: 0 0 5px !important;
  color: var(--pb2200-text) !important;
  font-size: 1.02rem !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
  letter-spacing: -.015em !important;
}

body#pulsebot-app:is(.dashboard-active-lastletter,.dashboard-active-giveaways,.dashboard-active-photos) .module-headline p {
  margin: 0 !important;
  color: var(--pb2200-muted) !important;
  font-size: .84rem !important;
  line-height: 1.55 !important;
}

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

body#pulsebot-app:is(.dashboard-active-lastletter,.dashboard-active-giveaways,.dashboard-active-photos) .module-status.on {
  border-color: var(--pb2200-blue-line) !important;
  background: var(--pb2200-blue-soft) !important;
  color: #bcd6ff !important;
}

body#pulsebot-app:is(.dashboard-active-lastletter,.dashboard-active-giveaways,.dashboard-active-photos) .module-status::before,
body#pulsebot-app:is(.dashboard-active-lastletter,.dashboard-active-giveaways,.dashboard-active-photos) .module-status::after {
  content: none !important;
  display: none !important;
}

body#pulsebot-app:is(.dashboard-active-lastletter,.dashboard-active-giveaways,.dashboard-active-photos) .module-form {
  display: grid !important;
  grid-template-columns: minmax(0,1fr) !important;
  gap: 18px !important;
  margin: 0 !important;
  padding: 0 0 74px !important;
}

body#pulsebot-app:is(.dashboard-active-lastletter,.dashboard-active-giveaways,.dashboard-active-photos) .module-form > * {
  min-width: 0 !important;
}

body#pulsebot-app:is(.dashboard-active-lastletter,.dashboard-active-giveaways,.dashboard-active-photos) .module-panel-special {
  margin: 0 !important;
  padding: 2px 2px 15px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--pb2200-line) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body#pulsebot-app:is(.dashboard-active-lastletter,.dashboard-active-giveaways,.dashboard-active-photos) .module-panel-special h2 {
  margin: 0 0 6px !important;
  color: var(--pb2200-text) !important;
  font-size: .94rem !important;
  font-weight: 600 !important;
  letter-spacing: -.012em !important;
}

body#pulsebot-app:is(.dashboard-active-lastletter,.dashboard-active-giveaways,.dashboard-active-photos) .module-panel-special p {
  max-width: 760px !important;
  margin: 0 !important;
  color: var(--pb2200-muted) !important;
  font-size: .78rem !important;
  line-height: 1.55 !important;
}

body#pulsebot-app:is(.dashboard-active-lastletter,.dashboard-active-giveaways,.dashboard-active-photos) .form-section,
body#pulsebot-app:is(.dashboard-active-lastletter,.dashboard-active-giveaways,.dashboard-active-photos) .plan-limit-card,
body#pulsebot-app:is(.dashboard-active-lastletter,.dashboard-active-giveaways,.dashboard-active-photos) .plan-limit-label {
  margin: 0 !important;
  overflow: visible !important;
  border: 1px solid var(--pb2200-line) !important;
  border-radius: 14px !important;
  background: var(--pb2200-panel-soft) !important;
  box-shadow: none !important;
}

body#pulsebot-app:is(.dashboard-active-lastletter,.dashboard-active-giveaways,.dashboard-active-photos) .form-section-head {
  min-height: 54px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 18px !important;
  margin: 0 !important;
  padding: 15px 18px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--pb2200-line) !important;
  border-radius: 0 !important;
  background: transparent !important;
}

body#pulsebot-app:is(.dashboard-active-lastletter,.dashboard-active-giveaways,.dashboard-active-photos) .form-section-head h3 {
  margin: 0 !important;
  color: var(--pb2200-text) !important;
  font-size: .88rem !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  letter-spacing: -.01em !important;
}

body#pulsebot-app:is(.dashboard-active-lastletter,.dashboard-active-giveaways,.dashboard-active-photos) .form-section-head p {
  margin: 4px 0 0 !important;
  color: var(--pb2200-muted) !important;
  font-size: .73rem !important;
  line-height: 1.45 !important;
}

body#pulsebot-app:is(.dashboard-active-lastletter,.dashboard-active-giveaways,.dashboard-active-photos) .form-section-body {
  padding: 18px !important;
}

body#pulsebot-app:is(.dashboard-active-lastletter,.dashboard-active-giveaways,.dashboard-active-photos) .module-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0,1fr)) !important;
  gap: 16px !important;
  margin: 0 0 16px !important;
}

body#pulsebot-app:is(.dashboard-active-lastletter,.dashboard-active-giveaways,.dashboard-active-photos) .module-grid:last-child {
  margin-bottom: 0 !important;
}

body#pulsebot-app:is(.dashboard-active-lastletter,.dashboard-active-giveaways,.dashboard-active-photos) .check-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0,1fr)) !important;
  gap: 10px !important;
  margin: 0 0 16px !important;
}

body#pulsebot-app:is(.dashboard-active-lastletter,.dashboard-active-giveaways,.dashboard-active-photos) .check-grid:last-child {
  margin-bottom: 0 !important;
}

body#pulsebot-app:is(.dashboard-active-lastletter,.dashboard-active-giveaways,.dashboard-active-photos) .field {
  min-width: 0 !important;
  display: grid !important;
  gap: 8px !important;
  margin: 0 0 16px !important;
}

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

body#pulsebot-app:is(.dashboard-active-lastletter,.dashboard-active-giveaways,.dashboard-active-photos) .field > label {
  margin: 0 !important;
  color: var(--pb2200-text-2) !important;
  font-size: .78rem !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
}

body#pulsebot-app:is(.dashboard-active-lastletter,.dashboard-active-giveaways,.dashboard-active-photos) .field > small {
  margin: -1px 0 0 !important;
  color: var(--pb2200-muted) !important;
  font-size: .7rem !important;
  line-height: 1.45 !important;
}

body#pulsebot-app:is(.dashboard-active-lastletter,.dashboard-active-giveaways,.dashboard-active-photos) :is(input:not([type="checkbox"]):not([type="radio"]):not([type="color"]),select,textarea) {
  width: 100% !important;
  min-height: 44px !important;
  margin: 0 !important;
  padding: 10px 12px !important;
  border: 1px solid var(--pb2200-line-strong) !important;
  border-radius: 10px !important;
  background: var(--pb2200-input) !important;
  color: var(--pb2200-text) !important;
  font: 500 .82rem/1.4 Inter, system-ui, sans-serif !important;
  box-shadow: none !important;
  outline: 0 !important;
}

body#pulsebot-app:is(.dashboard-active-lastletter,.dashboard-active-giveaways,.dashboard-active-photos) textarea {
  min-height: 104px !important;
  resize: vertical !important;
}

body#pulsebot-app:is(.dashboard-active-lastletter,.dashboard-active-giveaways,.dashboard-active-photos) :is(input:not([type="checkbox"]):not([type="radio"]):not([type="color"]),select,textarea):focus {
  border-color: var(--pb2200-blue) !important;
  box-shadow: 0 0 0 3px rgba(59,130,246,.1) !important;
}

body#pulsebot-app:is(.dashboard-active-lastletter,.dashboard-active-giveaways,.dashboard-active-photos) .btn {
  min-height: 40px !important;
  padding: 0 14px !important;
  border-radius: 10px !important;
  font-size: .83rem !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  box-shadow: none !important;
  transform: none !important;
}

body#pulsebot-app:is(.dashboard-active-lastletter,.dashboard-active-giveaways,.dashboard-active-photos) .btn-primary:not(.danger) {
  border: 1px solid var(--pb2200-blue) !important;
  background: var(--pb2200-blue) !important;
  color: #fff !important;
}

body#pulsebot-app:is(.dashboard-active-lastletter,.dashboard-active-giveaways,.dashboard-active-photos) .btn-primary:not(.danger):hover,
body#pulsebot-app:is(.dashboard-active-lastletter,.dashboard-active-giveaways,.dashboard-active-photos) .btn-primary:not(.danger):focus-visible {
  border-color: var(--pb2200-blue-hover) !important;
  background: var(--pb2200-blue-hover) !important;
  box-shadow: none !important;
}

body#pulsebot-app:is(.dashboard-active-lastletter,.dashboard-active-giveaways,.dashboard-active-photos) .btn-ghost {
  border: 1px solid var(--pb2200-line-strong) !important;
  background: transparent !important;
  color: var(--pb2200-text-2) !important;
}

body#pulsebot-app:is(.dashboard-active-lastletter,.dashboard-active-giveaways,.dashboard-active-photos) .btn-ghost:hover {
  border-color: rgba(255,255,255,.2) !important;
  background: rgba(255,255,255,.035) !important;
}

body#pulsebot-app:is(.dashboard-active-lastletter,.dashboard-active-giveaways,.dashboard-active-photos) :is(.notice-card,.gallery-policy-note,.lastletter-private-note,.empty-state) {
  border: 1px solid var(--pb2200-line) !important;
  border-radius: 10px !important;
  background: rgba(255,255,255,.012) !important;
  box-shadow: none !important;
}

body#pulsebot-app:is(.dashboard-active-lastletter,.dashboard-active-giveaways,.dashboard-active-photos) .module-form > .module-savebar {
  position: fixed !important;
  right: 24px !important;
  bottom: 22px !important;
  z-index: 80 !important;
  width: auto !important;
  min-height: 46px !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin: 0 !important;
  padding: 5px !important;
  border: 1px solid var(--pb2200-line-strong) !important;
  border-radius: 12px !important;
  background: rgba(10,14,19,.96) !important;
  box-shadow: 0 12px 34px rgba(0,0,0,.34) !important;
}

body#pulsebot-app:is(.dashboard-active-lastletter,.dashboard-active-giveaways,.dashboard-active-photos) .module-savebar .notice {
  display: none !important;
}

@media (max-width: 820px) {
  body#pulsebot-app.dashboard-module-v2177 .module-form [data-module-switch].switch-row {
    gap: 16px !important;
  }

  body#pulsebot-app:is(.dashboard-active-lastletter,.dashboard-active-giveaways,.dashboard-active-photos) :is(.module-grid,.check-grid) {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 560px) {
  body#pulsebot-app.dashboard-module-v2177 .module-form [data-module-switch].switch-row {
    grid-template-columns: 1fr !important;
    align-items: start !important;
  }

  body#pulsebot-app.dashboard-module-v2177 .module-form [data-module-switch] .switch-control {
    min-width: 0 !important;
    justify-content: start !important;
  }

  body#pulsebot-app:is(.dashboard-active-lastletter,.dashboard-active-giveaways,.dashboard-active-photos) .module-panel {
    padding: 18px !important;
    border-radius: 16px !important;
  }

  body#pulsebot-app:is(.dashboard-active-lastletter,.dashboard-active-giveaways,.dashboard-active-photos) .form-section-body {
    padding: 16px !important;
  }

  body#pulsebot-app:is(.dashboard-active-lastletter,.dashboard-active-giveaways,.dashboard-active-photos) .module-form > .module-savebar {
    right: 12px !important;
    bottom: 12px !important;
  }
}

/* v22.0.1 — checkbox mark cleanup only. Module switches intentionally untouched. */
body#pulsebot-app.dashboard-module-v2177 .module-form label.check {
  grid-template-columns: 14px minmax(0, 1fr) !important;
  gap: 10px !important;
}

body#pulsebot-app.dashboard-module-v2177 .module-form label.check > input[type="checkbox"] {
  left: 13px !important;
  width: 14px !important;
  height: 14px !important;
  min-width: 14px !important;
  min-height: 14px !important;
  margin-top: -7px !important;
}

body#pulsebot-app.dashboard-module-v2177 .module-form label.check > .check-box {
  width: 14px !important;
  height: 14px !important;
  min-width: 14px !important;
  min-height: 14px !important;
  border-radius: 4px !important;
}

body#pulsebot-app.dashboard-module-v2177 .module-form label.check > .check-box::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
  background: center / 8px 8px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 5.15 4.15 7.2 8 3.15' fill='none' stroke='%23fff' stroke-width='1.65' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  opacity: 0 !important;
  transform: none !important;
  transition: opacity .12s ease !important;
}

body#pulsebot-app.dashboard-module-v2177 .module-form label.check > input[type="checkbox"]:checked + .check-box::after {
  opacity: 1 !important;
  transform: none !important;
}

body#pulsebot-app.dashboard-module-v2177 .module-form label.check:not(:has(.check-box)) {
  grid-template-columns: 14px minmax(0, 1fr) !important;
}

body#pulsebot-app.dashboard-module-v2177 .module-form label.check:not(:has(.check-box)) > input[type="checkbox"],
body#pulsebot-app.dashboard-module-v2177 .module-form .multi-picker-option > input[type="checkbox"] {
  flex-basis: 14px !important;
  width: 14px !important;
  height: 14px !important;
  min-width: 14px !important;
  min-height: 14px !important;
  max-width: 14px !important;
  max-height: 14px !important;
  border-radius: 4px !important;
}

body#pulsebot-app.dashboard-module-v2177 .module-form label.check:not(:has(.check-box)) > input[type="checkbox"]:checked,
body#pulsebot-app.dashboard-module-v2177 .module-form .multi-picker-option > input[type="checkbox"]:checked {
  background-color: var(--pb2200-blue) !important;
  background-position: center !important;
  background-size: 8px 8px !important;
  background-repeat: no-repeat !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 5.15 4.15 7.2 8 3.15' fill='none' stroke='%23fff' stroke-width='1.65' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
}
