/* PulseBot v22.7.0 — contextual Premium information.
   Scoped additions only; existing colors, typography and controls remain unchanged. */

/* Dashboard home: compact, non-intrusive Premium card. */
body#pulsebot-app.dashboard-home-v2177 .pb2270-home-premium {
  min-width: 0;
  display: grid;
  grid-template-columns: 44px minmax(0,1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 20px 22px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  background: rgba(12,16,22,.72);
}
body#pulsebot-app.dashboard-home-v2177 .pb2270-home-premium-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(75,145,255,.24);
  border-radius: 11px;
  background: rgba(75,145,255,.07);
  color: #82b1ff;
}
body#pulsebot-app.dashboard-home-v2177 .pb2270-home-premium-icon .ui-icon {
  width: 19px;
  height: 19px;
}
body#pulsebot-app.dashboard-home-v2177 .pb2270-home-premium-copy {
  min-width: 0;
}
body#pulsebot-app.dashboard-home-v2177 .pb2270-home-premium-copy > span {
  display: block;
  margin-bottom: 4px;
  color: #7faeff;
  font-size: .66rem;
  font-weight: 650;
  letter-spacing: .09em;
  text-transform: uppercase;
}
body#pulsebot-app.dashboard-home-v2177 .pb2270-home-premium-copy h2 {
  margin: 0;
  color: #eef2f7;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.3;
}
body#pulsebot-app.dashboard-home-v2177 .pb2270-home-premium-copy ul {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 18px;
  margin: 9px 0 0;
  padding: 0;
  list-style: none;
}
body#pulsebot-app.dashboard-home-v2177 .pb2270-home-premium-copy li {
  position: relative;
  padding-left: 13px;
  color: #929ca9;
  font-size: .78rem;
  line-height: 1.45;
}
body#pulsebot-app.dashboard-home-v2177 .pb2270-home-premium-copy li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #6f9ef5;
}
body#pulsebot-app.dashboard-home-v2177 .pb2270-home-premium-action {
  min-width: 150px;
  display: grid;
  justify-items: end;
  gap: 3px;
}
body#pulsebot-app.dashboard-home-v2177 .pb2270-home-premium-action strong {
  color: #f2f5f9;
  font-size: 1rem;
  font-weight: 650;
}
body#pulsebot-app.dashboard-home-v2177 .pb2270-home-premium-action small {
  margin-bottom: 7px;
  color: #818b98;
  font-size: .7rem;
}

/* Contextual locks in Tickets and Automod. */
body#pulsebot-app.dashboard-mode .premium-lock-card.premium-lock-card-v2270 {
  display: grid !important;
  grid-template-columns: 46px minmax(0,1fr) auto !important;
  align-items: start !important;
  gap: 16px !important;
  padding: 20px !important;
  border: 1px solid rgba(255,255,255,.085) !important;
  border-radius: 14px !important;
  background: rgba(255,255,255,.018) !important;
  background-image: none !important;
  box-shadow: none !important;
}
body#pulsebot-app.dashboard-mode .premium-lock-card-v2270 .premium-lock-copy {
  min-width: 0 !important;
  display: grid !important;
  gap: 8px !important;
}
body#pulsebot-app.dashboard-mode .premium-lock-card-v2270 .premium-lock-copy > strong {
  color: #eef2f7 !important;
  font-size: .94rem !important;
  font-weight: 640 !important;
}
body#pulsebot-app.dashboard-mode .premium-lock-card-v2270 .premium-lock-copy > p {
  color: #929ca9 !important;
  font-size: .8rem !important;
  line-height: 1.5 !important;
}
body#pulsebot-app.dashboard-mode .premium-lock-benefits {
  display: grid !important;
  grid-template-columns: repeat(3,minmax(0,1fr)) !important;
  gap: 8px 14px !important;
  margin: 2px 0 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
body#pulsebot-app.dashboard-mode .premium-lock-benefits li {
  min-width: 0 !important;
  display: flex !important;
  align-items: flex-start !important;
  gap: 7px !important;
  color: #aab2bd !important;
  font-size: .75rem !important;
  line-height: 1.45 !important;
}
body#pulsebot-app.dashboard-mode .premium-lock-benefits .ui-icon {
  width: 13px !important;
  min-width: 13px !important;
  height: 13px !important;
  margin-top: 2px !important;
  color: #79aaff !important;
}
body#pulsebot-app.dashboard-mode .premium-lock-price {
  display: flex !important;
  align-items: baseline !important;
  flex-wrap: wrap !important;
  gap: 7px 12px !important;
  padding-top: 3px !important;
}
body#pulsebot-app.dashboard-mode .premium-lock-price b {
  color: #dce5f4 !important;
  font-size: .77rem !important;
  font-weight: 620 !important;
}
body#pulsebot-app.dashboard-mode .premium-lock-price span {
  color: #778392 !important;
  font-size: .7rem !important;
}
body#pulsebot-app.dashboard-mode .premium-lock-card-v2270 > .btn {
  align-self: center !important;
  white-space: nowrap !important;
}

/* Templates: one informative row before the catalog. */
body#pulsebot-app.dashboard-active-templates .template-upgrade-note-v2270 {
  grid-column: 1 / -1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  border: 1px solid rgba(255,255,255,.085);
  border-radius: 12px;
  background: rgba(255,255,255,.018);
}
body#pulsebot-app.dashboard-active-templates .template-upgrade-copy-v2270 {
  min-width: 0;
}
body#pulsebot-app.dashboard-active-templates .template-upgrade-copy-v2270 strong {
  color: #eef2f7;
  font-size: .88rem;
  font-weight: 640;
}
body#pulsebot-app.dashboard-active-templates .template-upgrade-copy-v2270 p {
  margin: 5px 0 0;
  color: #8f99a6;
  font-size: .76rem;
  line-height: 1.5;
}
body#pulsebot-app.dashboard-active-templates .template-card.is-premium-locked .template-card-actions .btn {
  opacity: 1;
  cursor: pointer;
}

/* Public Premium page: plain product use cases and UI previews. */
body#pulsebot-app.premium-context-v2270 .pb2270-audience-section,
body#pulsebot-app.premium-context-v2270 .pb2270-preview-section {
  border-top: 1px solid rgba(255,255,255,.045);
}
body#pulsebot-app.premium-context-v2270 .pb2270-audience-grid,
body#pulsebot-app.premium-context-v2270 .pb2270-preview-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 16px;
}
body#pulsebot-app.premium-context-v2270 .pb2270-audience-card {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 22px;
  border: 1px solid var(--pb-line-2);
  border-radius: var(--pb-r-lg);
  background: var(--pb-surface);
}
body#pulsebot-app.premium-context-v2270 .pb2270-audience-card > span,
body#pulsebot-app.premium-context-v2270 .pb2270-preview-card > header > span {
  width: 38px;
  height: 38px;
  min-width: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--pb-line-2);
  border-radius: var(--pb-r-sm);
  background: var(--pb-surface-3);
  color: var(--pb-text-2);
}
body#pulsebot-app.premium-context-v2270 .pb2270-audience-card .ui-icon,
body#pulsebot-app.premium-context-v2270 .pb2270-preview-card > header > span .ui-icon {
  width: 16px;
  height: 16px;
}
body#pulsebot-app.premium-context-v2270 .pb2270-audience-card h3,
body#pulsebot-app.premium-context-v2270 .pb2270-preview-card h3 {
  margin: 0;
  color: var(--pb-text);
  font-size: .96rem;
  font-weight: 600;
  line-height: 1.35;
}
body#pulsebot-app.premium-context-v2270 .pb2270-audience-card p {
  margin: 7px 0 0;
  color: var(--pb-muted);
  font-size: .84rem;
  line-height: 1.58;
}
body#pulsebot-app.premium-context-v2270 .pb2270-preview-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--pb-line-2);
  border-radius: var(--pb-r-lg);
  background: var(--pb-surface);
}
body#pulsebot-app.premium-context-v2270 .pb2270-preview-card > header {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 18px;
  border-bottom: 1px solid var(--pb-line);
}
body#pulsebot-app.premium-context-v2270 .pb2270-preview-card > header small {
  display: block;
  margin-bottom: 4px;
  color: var(--pb-soft);
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
body#pulsebot-app.premium-context-v2270 .pb2270-preview-list {
  display: grid;
}
body#pulsebot-app.premium-context-v2270 .pb2270-preview-list > div {
  min-width: 0;
  display: grid;
  grid-template-columns: 28px minmax(0,1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 56px;
  padding: 10px 18px;
  border-top: 1px solid var(--pb-line);
}
body#pulsebot-app.premium-context-v2270 .pb2270-preview-list > div:first-child {
  border-top: 0;
}
body#pulsebot-app.premium-context-v2270 .pb2270-preview-list b {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border: 1px solid var(--pb-line-2);
  border-radius: 6px;
  color: #9ab5ff;
  font-size: .68rem;
  font-weight: 600;
}
body#pulsebot-app.premium-context-v2270 .pb2270-preview-list b .ui-icon {
  width: 12px;
  height: 12px;
}
body#pulsebot-app.premium-context-v2270 .pb2270-preview-list span {
  overflow: hidden;
  color: var(--pb-text-2);
  font-size: .8rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body#pulsebot-app.premium-context-v2270 .pb2270-preview-list small {
  color: var(--pb-soft);
  font-size: .68rem;
  text-align: right;
}

/* Per-server Premium page: explicit unlock list. */
body#pulsebot-app.dashboard-premium-v2178 .pb2270-unlock-list {
  display: grid;
}
body#pulsebot-app.dashboard-premium-v2178 .pb2270-unlock-row {
  min-width: 0;
  display: grid;
  grid-template-columns: 38px minmax(0,1fr) minmax(110px,auto);
  gap: 14px;
  align-items: center;
  padding: 15px 20px;
  border-top: 1px solid rgba(255,255,255,.06);
}
body#pulsebot-app.dashboard-premium-v2178 .pb2270-unlock-row:first-child {
  border-top: 0;
}
body#pulsebot-app.dashboard-premium-v2178 .pb2270-unlock-row > span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 9px;
  background: rgba(255,255,255,.02);
  color: #8db5ff;
}
body#pulsebot-app.dashboard-premium-v2178 .pb2270-unlock-row > span .ui-icon {
  width: 15px;
  height: 15px;
}
body#pulsebot-app.dashboard-premium-v2178 .pb2270-unlock-row strong {
  color: #edf2f7;
  font-size: .84rem;
  font-weight: 620;
}
body#pulsebot-app.dashboard-premium-v2178 .pb2270-unlock-row p {
  margin: 4px 0 0;
  color: #8994a2;
  font-size: .74rem;
  line-height: 1.45;
}
body#pulsebot-app.dashboard-premium-v2178 .pb2270-unlock-row > b {
  color: #a8c2f6;
  font-size: .76rem;
  font-weight: 620;
  text-align: right;
}

@media (max-width: 980px) {
  body#pulsebot-app.dashboard-home-v2177 .pb2270-home-premium {
    grid-template-columns: 44px minmax(0,1fr);
  }
  body#pulsebot-app.dashboard-home-v2177 .pb2270-home-premium-action {
    grid-column: 2;
    min-width: 0;
    justify-items: start;
  }
  body#pulsebot-app.dashboard-mode .premium-lock-benefits {
    grid-template-columns: 1fr !important;
  }
  body#pulsebot-app.premium-context-v2270 .pb2270-audience-grid,
  body#pulsebot-app.premium-context-v2270 .pb2270-preview-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  body#pulsebot-app.dashboard-home-v2177 .pb2270-home-premium,
  body#pulsebot-app.dashboard-mode .premium-lock-card.premium-lock-card-v2270 {
    grid-template-columns: 1fr !important;
  }
  body#pulsebot-app.dashboard-home-v2177 .pb2270-home-premium-action {
    grid-column: 1;
    width: 100%;
  }
  body#pulsebot-app.dashboard-home-v2177 .pb2270-home-premium-action .btn,
  body#pulsebot-app.dashboard-mode .premium-lock-card-v2270 > .btn {
    width: 100% !important;
    justify-content: center !important;
  }
  body#pulsebot-app.dashboard-active-templates .template-upgrade-note-v2270 {
    align-items: stretch;
    flex-direction: column;
  }
  body#pulsebot-app.dashboard-active-templates .template-upgrade-note-v2270 .btn {
    width: 100%;
    justify-content: center;
  }
  body#pulsebot-app.premium-context-v2270 .pb2270-preview-list > div {
    grid-template-columns: 28px minmax(0,1fr);
  }
  body#pulsebot-app.premium-context-v2270 .pb2270-preview-list small {
    grid-column: 2;
    text-align: left;
  }
  body#pulsebot-app.dashboard-premium-v2178 .pb2270-unlock-row {
    grid-template-columns: 36px minmax(0,1fr);
    padding: 14px 16px;
  }
  body#pulsebot-app.dashboard-premium-v2178 .pb2270-unlock-row > b {
    grid-column: 2;
    text-align: left;
  }
}

/* v22.8 Premium conversion and Health Check */
.premium-health-section{display:grid;gap:18px}
.premium-health-summary{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(260px,.8fr);gap:14px}
.premium-health-score,.premium-health-counts,.premium-health-item,.premium-health-preview-grid article{border:1px solid var(--line,#2b2b31);background:var(--surface-2,#151519);border-radius:14px}
.premium-health-score{display:flex;align-items:center;gap:16px;padding:18px}
.premium-health-score>strong{font-size:2rem;line-height:1;min-width:56px}
.premium-health-score div{display:grid;gap:4px}.premium-health-score span{color:var(--muted,#999)}
.premium-health-score.is-ok>strong{color:#6ee7a8}.premium-health-score.has-issues>strong{color:#f0c36b}
.premium-health-counts{display:grid;grid-template-columns:repeat(3,1fr);overflow:hidden}
.premium-health-counts span{display:grid;place-items:center;gap:3px;padding:14px 8px;text-align:center;border-left:1px solid var(--line,#2b2b31);font-size:.78rem;color:var(--muted,#999)}
.premium-health-counts span:first-child{border-left:0}.premium-health-counts b{font-size:1.35rem;color:var(--text,#f4f4f5)}
.premium-health-list{display:grid;gap:10px}.premium-health-item{display:grid;grid-template-columns:8px minmax(0,1fr) auto;align-items:center;gap:14px;padding:14px 16px}
.premium-health-item>span{width:8px;height:8px;border-radius:50%;background:#7d7d86}.premium-health-item.critical>span{background:#ef7777}.premium-health-item.warning>span{background:#e6b75d}.premium-health-item.info>span{background:#74a8ef}
.premium-health-item div{display:grid;gap:4px}.premium-health-item p{margin:0;color:var(--muted,#aaa);line-height:1.5}.premium-health-actions{display:flex;justify-content:flex-end}
.premium-health-preview-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.premium-health-preview-grid article{display:grid;gap:5px;padding:16px}.premium-health-preview-grid span{color:var(--muted,#999);font-size:.88rem}
.admin-premium-funnel{display:grid;gap:16px;padding:20px}.admin-funnel-steps{display:grid;grid-template-columns:repeat(6,minmax(110px,1fr));gap:10px}.admin-funnel-steps article{display:grid;gap:4px;padding:14px;border:1px solid var(--line,#2b2b31);border-radius:12px;background:var(--surface-2,#151519)}
.admin-funnel-steps article>span{font-size:.72rem;color:var(--muted,#999)}.admin-funnel-steps strong{font-size:1.55rem}.admin-funnel-steps small{color:var(--muted,#aaa)}.admin-funnel-sources{display:grid;gap:8px}.admin-funnel-sources article{display:flex;justify-content:space-between;gap:14px;padding:10px 0;border-top:1px solid var(--line,#2b2b31)}.admin-funnel-sources span{color:var(--muted,#999);text-align:right}
@media(max-width:900px){.premium-health-summary{grid-template-columns:1fr}.premium-health-preview-grid{grid-template-columns:1fr}.admin-funnel-steps{grid-template-columns:repeat(2,1fr)}}
@media(max-width:620px){.premium-health-item{grid-template-columns:8px 1fr}.premium-health-item .btn{grid-column:2}.premium-health-counts{grid-template-columns:1fr}.premium-health-counts span{border-left:0;border-top:1px solid var(--line,#2b2b31)}.premium-health-counts span:first-child{border-top:0}.admin-funnel-sources article{display:grid}.admin-funnel-sources span{text-align:left}}

/* v22.8.1 — Premium account and Health Check visual alignment */
body#pulsebot-app.billing-account-page .billing-account-main {
  min-height: calc(100vh - 220px);
  padding-top: 28px;
}

body#pulsebot-app.billing-account-page .billing-account-main > .section {
  padding: 40px 0 72px !important;
}

body#pulsebot-app.billing-account-page .billing-account-head {
  width: 100%;
  max-width: 720px;
  margin: 0 0 26px;
  text-align: left;
}

body#pulsebot-app.billing-account-page .billing-account-head .kicker {
  display: block !important;
  width: auto !important;
  margin: 0 0 8px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #8792a2 !important;
  font-size: .68rem !important;
  font-weight: 650 !important;
  line-height: 1.2 !important;
  letter-spacing: .11em !important;
  text-transform: uppercase !important;
}

body#pulsebot-app.billing-account-page .billing-account-head h1 {
  max-width: none !important;
  margin: 0 !important;
  color: #f4f7fb !important;
  font-size: clamp(1.85rem, 4vw, 2.4rem) !important;
  font-weight: 650 !important;
  line-height: 1.08 !important;
  letter-spacing: -.035em !important;
}

body#pulsebot-app.billing-account-page .billing-account-head p {
  max-width: 680px !important;
  margin: 10px 0 0 !important;
  color: #98a2b0 !important;
  font-size: .92rem !important;
  line-height: 1.58 !important;
}

body#pulsebot-app.billing-account-page .billing-account-list {
  gap: 18px;
}

body#pulsebot-app.billing-account-page .billing-account-card,
body#pulsebot-app.billing-account-page .billing-account-empty {
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 16px;
  background: rgba(12,16,22,.78);
  box-shadow: none;
}

body#pulsebot-app.billing-account-page .billing-account-card {
  display: block;
  overflow: hidden;
  padding: 0;
}

body#pulsebot-app.billing-account-page .billing-account-card-head {
  min-width: 0;
  padding: 20px 22px;
  border-bottom: 1px solid rgba(255,255,255,.065);
}

body#pulsebot-app.billing-account-page .billing-account-card-head > div {
  min-width: 0;
}

body#pulsebot-app.billing-account-page .billing-account-card-head small,
body#pulsebot-app.billing-account-page .billing-account-meta small {
  color: #7f8998;
  font-size: .66rem;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: .1em;
}

body#pulsebot-app.billing-account-page .billing-account-card-head h2 {
  max-width: none !important;
  margin: 6px 0 5px !important;
  overflow-wrap: anywhere;
  color: #eef2f7 !important;
  font-size: 1.18rem !important;
  font-weight: 650 !important;
  line-height: 1.25 !important;
  letter-spacing: -.02em !important;
}

body#pulsebot-app.billing-account-page .billing-account-card-head div > span {
  color: #7f8998;
  font-size: .72rem;
}

body#pulsebot-app.billing-account-page .billing-account-card-head > .module-status {
  flex: 0 0 auto;
  min-height: 28px;
  padding: 0 10px;
  font-size: .68rem;
  white-space: nowrap;
}

body#pulsebot-app.billing-account-page .billing-account-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 0;
}

body#pulsebot-app.billing-account-page .billing-account-meta > div {
  min-width: 0;
  padding: 16px 22px;
  border: 0;
  border-left: 1px solid rgba(255,255,255,.06);
  border-radius: 0;
  background: transparent;
}

body#pulsebot-app.billing-account-page .billing-account-meta > div:first-child {
  border-left: 0;
}

body#pulsebot-app.billing-account-page .billing-account-meta strong {
  margin-top: 7px;
  overflow-wrap: anywhere;
  color: #eef2f7;
  font-size: .88rem;
  font-weight: 600;
  line-height: 1.45;
}

body#pulsebot-app.billing-account-page .billing-account-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px;
  padding: 18px 22px;
  border-top: 1px solid rgba(255,255,255,.065);
}

body#pulsebot-app.billing-account-page .billing-account-actions .btn {
  min-height: 38px;
}

body#pulsebot-app.billing-account-page .billing-account-empty {
  padding: 30px;
  text-align: left;
}

body#pulsebot-app.billing-account-page .billing-account-empty h2 {
  margin: 0 0 8px !important;
  color: #eef2f7 !important;
  font-size: 1.18rem !important;
  line-height: 1.3 !important;
  letter-spacing: -.02em !important;
}

body#pulsebot-app.billing-account-page .billing-account-empty p {
  margin: 0 0 20px;
  font-size: .9rem;
  line-height: 1.58;
}

body#pulsebot-app.dashboard-premium-v2178 .pb2211-premium-plan > .pb2211-premium-note {
  margin: 14px 22px 0;
}

body#pulsebot-app.dashboard-premium-v2178 .premium-health-section {
  display: block;
  overflow: hidden;
}

body#pulsebot-app.dashboard-premium-v2178 .premium-health-summary {
  display: grid;
  grid-template-columns: minmax(0,1.35fr) minmax(250px,.65fr);
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(255,255,255,.065);
}

body#pulsebot-app.dashboard-premium-v2178 .premium-health-score,
body#pulsebot-app.dashboard-premium-v2178 .premium-health-counts {
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 12px;
  background: rgba(255,255,255,.025);
}

body#pulsebot-app.dashboard-premium-v2178 .premium-health-score {
  min-width: 0;
  gap: 14px;
  padding: 16px;
}

body#pulsebot-app.dashboard-premium-v2178 .premium-health-score > strong {
  min-width: 48px;
  color: #f0c36b;
  font-size: 1.75rem;
  font-weight: 650;
}

body#pulsebot-app.dashboard-premium-v2178 .premium-health-score.is-ok > strong {
  color: #69d39a;
}

body#pulsebot-app.dashboard-premium-v2178 .premium-health-score div {
  min-width: 0;
  gap: 3px;
}

body#pulsebot-app.dashboard-premium-v2178 .premium-health-score b {
  overflow-wrap: anywhere;
  color: #eef2f7;
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.35;
}

body#pulsebot-app.dashboard-premium-v2178 .premium-health-score span {
  overflow-wrap: anywhere;
  color: #87919e;
  font-size: .74rem;
  line-height: 1.4;
}

body#pulsebot-app.dashboard-premium-v2178 .premium-health-counts span {
  min-width: 0;
  gap: 4px;
  padding: 13px 8px;
  border-left-color: rgba(255,255,255,.06);
  color: #87919e;
  font-size: .7rem;
  line-height: 1.3;
}

body#pulsebot-app.dashboard-premium-v2178 .premium-health-counts b {
  color: #eef2f7;
  font-size: 1.05rem;
  font-weight: 650;
}

body#pulsebot-app.dashboard-premium-v2178 .premium-health-list {
  display: grid;
  gap: 0;
}

body#pulsebot-app.dashboard-premium-v2178 .premium-health-item {
  min-width: 0;
  grid-template-columns: 8px minmax(0,1fr) auto;
  gap: 14px;
  padding: 16px 22px;
  border: 0;
  border-top: 1px solid rgba(255,255,255,.055);
  border-radius: 0;
  background: transparent;
}

body#pulsebot-app.dashboard-premium-v2178 .premium-health-item:first-child {
  border-top: 0;
}

body#pulsebot-app.dashboard-premium-v2178 .premium-health-item div {
  min-width: 0;
  gap: 4px;
}

body#pulsebot-app.dashboard-premium-v2178 .premium-health-item strong {
  overflow-wrap: anywhere;
  color: #edf1f6;
  font-size: .88rem;
  font-weight: 600;
  line-height: 1.35;
}

body#pulsebot-app.dashboard-premium-v2178 .premium-health-item p {
  overflow-wrap: anywhere;
  color: #87919e;
  font-size: .8rem;
  line-height: 1.48;
}

body#pulsebot-app.dashboard-premium-v2178 .premium-health-item .btn {
  min-height: 34px;
  padding-inline: 12px;
  white-space: nowrap;
}

body#pulsebot-app.dashboard-premium-v2178 .premium-health-actions {
  display: flex;
  justify-content: flex-end;
  padding: 16px 22px;
  border-top: 1px solid rgba(255,255,255,.065);
}

body#pulsebot-app.dashboard-premium-v2178 .premium-health-actions .btn {
  min-height: 36px;
}

body#pulsebot-app.dashboard-premium-v2178 .premium-health-preview-grid {
  padding: 18px 22px;
}

body#pulsebot-app.dashboard-premium-v2178 .premium-health-preview > .btn {
  width: max-content;
  margin: 0 22px 20px;
}

@media (max-width: 900px) {
  body#pulsebot-app.dashboard-premium-v2178 .premium-health-summary {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  body#pulsebot-app.billing-account-page .billing-account-main {
    padding-top: 16px;
  }

  body#pulsebot-app.billing-account-page .billing-account-main > .section {
    padding: 30px 0 56px !important;
  }

  body#pulsebot-app.billing-account-page .billing-account-head {
    margin-bottom: 20px;
  }

  body#pulsebot-app.billing-account-page .billing-account-head h1 {
    font-size: 1.85rem !important;
  }

  body#pulsebot-app.billing-account-page .billing-account-card-head {
    flex-direction: column;
    gap: 12px;
    padding: 18px;
  }

  body#pulsebot-app.billing-account-page .billing-account-meta {
    grid-template-columns: 1fr;
  }

  body#pulsebot-app.billing-account-page .billing-account-meta > div {
    padding: 15px 18px;
    border-left: 0;
    border-top: 1px solid rgba(255,255,255,.055);
  }

  body#pulsebot-app.billing-account-page .billing-account-meta > div:first-child {
    border-top: 0;
  }

  body#pulsebot-app.billing-account-page .billing-account-actions {
    padding: 16px 18px;
  }

  body#pulsebot-app.billing-account-page .billing-account-actions .btn {
    width: 100%;
    justify-content: center;
  }

  body#pulsebot-app.dashboard-premium-v2178 .premium-health-summary,
  body#pulsebot-app.dashboard-premium-v2178 .premium-health-item,
  body#pulsebot-app.dashboard-premium-v2178 .premium-health-actions,
  body#pulsebot-app.dashboard-premium-v2178 .premium-health-preview-grid {
    padding-left: 18px;
    padding-right: 18px;
  }

  body#pulsebot-app.dashboard-premium-v2178 .premium-health-item {
    grid-template-columns: 8px minmax(0,1fr);
  }

  body#pulsebot-app.dashboard-premium-v2178 .premium-health-item .btn {
    grid-column: 2;
    width: max-content;
  }

  body#pulsebot-app.dashboard-premium-v2178 .premium-health-counts {
    grid-template-columns: repeat(3,minmax(0,1fr));
  }

  body#pulsebot-app.dashboard-premium-v2178 .premium-health-counts span {
    border-top: 0;
    border-left: 1px solid rgba(255,255,255,.06);
  }

  body#pulsebot-app.dashboard-premium-v2178 .premium-health-counts span:first-child {
    border-left: 0;
  }

  body#pulsebot-app.dashboard-premium-v2178 .premium-health-preview > .btn {
    width: calc(100% - 36px);
    margin: 0 18px 18px;
    justify-content: center;
  }
}

@media (max-width: 420px) {
  body#pulsebot-app.dashboard-premium-v2178 .premium-health-counts {
    grid-template-columns: 1fr;
  }

  body#pulsebot-app.dashboard-premium-v2178 .premium-health-counts span {
    border-left: 0;
    border-top: 1px solid rgba(255,255,255,.06);
  }

  body#pulsebot-app.dashboard-premium-v2178 .premium-health-counts span:first-child {
    border-top: 0;
  }
}

/* v22.8.2 — Stripe success screen aligned with the dashboard */
body#pulsebot-app.billing-result-mode .billing-result-page {
  min-height: calc(100vh - 190px);
  display: block;
  padding: 28px 0 64px;
}

body#pulsebot-app.billing-result-mode .billing-result-page > .section {
  padding: 40px 0 !important;
}

body#pulsebot-app.billing-result-mode .billing-result-page .wrap {
  display: flex;
  justify-content: center;
}

body#pulsebot-app.billing-result-mode .billing-result-card {
  width: 100%;
  max-width: 640px;
  margin: 0;
  padding: 34px 36px;
  border: 1px solid rgba(255,255,255,.075) !important;
  border-radius: 16px !important;
  background: rgba(12,16,22,.82) !important;
  box-shadow: none !important;
  text-align: center;
}

body#pulsebot-app.billing-result-mode .billing-result-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 20px;
  border: 1px solid rgba(70,190,120,.28);
  border-radius: 12px;
  background: rgba(43,125,78,.12);
  color: #69d39a;
}

body#pulsebot-app.billing-result-mode .billing-result-icon .ui-icon,
body#pulsebot-app.billing-result-mode .billing-result-icon svg {
  width: 18px;
  height: 18px;
}

body#pulsebot-app.billing-result-mode .billing-result-card h1 {
  max-width: 520px !important;
  margin: 0 auto 12px !important;
  color: #f2f5f9 !important;
  font-size: clamp(1.8rem, 4vw, 2.3rem) !important;
  font-weight: 650 !important;
  line-height: 1.12 !important;
  letter-spacing: -.035em !important;
  text-wrap: balance;
}

body#pulsebot-app.billing-result-mode .billing-result-card p {
  max-width: 540px !important;
  margin: 0 auto 24px !important;
  color: #98a2b0 !important;
  font-size: .92rem !important;
  line-height: 1.62 !important;
  text-wrap: pretty;
}

body#pulsebot-app.billing-result-mode .billing-result-card .btn {
  min-height: 40px;
  padding: 0 16px;
  font-size: .86rem;
}

@media (max-width: 680px) {
  body#pulsebot-app.billing-result-mode .billing-result-page {
    min-height: calc(100vh - 160px);
    padding: 16px 0 48px;
  }

  body#pulsebot-app.billing-result-mode .billing-result-page > .section {
    padding: 28px 0 !important;
  }

  body#pulsebot-app.billing-result-mode .billing-result-card {
    padding: 28px 20px;
    border-radius: 14px !important;
  }

  body#pulsebot-app.billing-result-mode .billing-result-card h1 {
    font-size: 1.8rem !important;
  }

  body#pulsebot-app.billing-result-mode .billing-result-card p {
    font-size: .88rem !important;
  }

  body#pulsebot-app.billing-result-mode .billing-result-card .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Account-first Premium checkout and unlimited server management. */
body#pulsebot-app.billing-account-v4 .billing-account-meta {
  grid-template-columns: repeat(3, minmax(0,1fr));
}

body#pulsebot-app.billing-account-v4 .billing-slot-meter {
  display: grid;
  grid-template-columns: repeat(5, minmax(0,1fr));
  gap: 7px;
  padding: 14px 22px 18px;
  border-top: 1px solid rgba(255,255,255,.055);
}

body#pulsebot-app.billing-account-v4 .billing-slot-meter span {
  height: 5px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
}

body#pulsebot-app.billing-account-v4 .billing-slot-meter span.is-used {
  background: #6f9ef5;
}

body#pulsebot-app.billing-account-v4 .billing-account-purchase,
body#pulsebot-app.billing-account-v4 .billing-account-notice {
  margin: 0 0 30px;
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 16px;
  background: rgba(12,16,22,.78);
  box-shadow: none;
}

body#pulsebot-app.billing-account-v4 .billing-account-purchase {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 0;
  overflow: hidden;
}

body#pulsebot-app.billing-account-v4 .billing-account-purchase-copy {
  min-width: 0;
  padding: 24px 24px 22px;
}

body#pulsebot-app.billing-account-v4 .billing-account-purchase-copy > small {
  display: block;
  margin-bottom: 7px;
  color: #7f8998;
  font-size: .66rem;
  font-weight: 650;
  letter-spacing: .1em;
  text-transform: uppercase;
}

body#pulsebot-app.billing-account-v4 .billing-account-purchase-copy h2 {
  margin: 0 !important;
  color: #eef2f7 !important;
  font-size: 1.2rem !important;
  font-weight: 650 !important;
  line-height: 1.3 !important;
  letter-spacing: -.02em !important;
}

body#pulsebot-app.billing-account-v4 .billing-account-purchase-copy p {
  max-width: 650px;
  margin: 9px 0 0;
  color: #929ca9;
  font-size: .86rem;
  line-height: 1.58;
}

body#pulsebot-app.billing-account-v4 .billing-account-purchase-price {
  min-width: 180px;
  display: grid;
  align-content: center;
  justify-items: end;
  gap: 4px;
  padding: 24px;
  border-left: 1px solid rgba(255,255,255,.06);
}

body#pulsebot-app.billing-account-v4 .billing-account-purchase-price strong {
  color: #f2f5f9;
  font-size: 1.28rem;
  font-weight: 650;
}

body#pulsebot-app.billing-account-v4 .billing-account-purchase-price span {
  color: #7f8998;
  font-size: .72rem;
}

body#pulsebot-app.billing-account-v4 .billing-account-purchase-action {
  grid-column: 1 / -1;
  padding: 18px 24px 22px;
  border-top: 1px solid rgba(255,255,255,.06);
}

body#pulsebot-app.billing-account-v4 .billing-account-purchase-action > .btn {
  width: max-content;
}

body#pulsebot-app.billing-account-v4 .billing-account-notice {
  padding: 18px 20px;
}

body#pulsebot-app.billing-account-v4 .billing-account-notice strong {
  display: block;
  color: #e8edf4;
  font-size: .9rem;
  font-weight: 620;
}

body#pulsebot-app.billing-account-v4 .billing-account-notice p {
  margin: 6px 0 0;
  color: #8f99a6;
  font-size: .8rem;
  line-height: 1.55;
}

body#pulsebot-app.billing-account-v4 .billing-account-servers-head {
  max-width: none;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-top: 34px;
}

body#pulsebot-app.billing-account-v4 .billing-account-servers-head > div {
  min-width: 0;
}

body#pulsebot-app.billing-account-v4 .billing-server-card .billing-account-actions {
  padding-top: 14px;
  padding-bottom: 14px;
}

body#pulsebot-app.billing-result-account-v4 .billing-result-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}

body#pulsebot-app.billing-result-account-v4 .billing-result-card > small {
  display: block;
  max-width: 620px;
  margin: 12px auto 0;
  color: #7f8998;
  font-size: .76rem;
  line-height: 1.5;
}

@media (max-width: 760px) {
  body#pulsebot-app.billing-account-v4 .billing-account-meta {
    grid-template-columns: 1fr;
  }
  body#pulsebot-app.billing-account-v4 .billing-account-purchase {
    grid-template-columns: 1fr;
  }
  body#pulsebot-app.billing-account-v4 .billing-account-purchase-price {
    min-width: 0;
    justify-items: start;
    padding: 0 20px 20px;
    border-left: 0;
  }
  body#pulsebot-app.billing-account-v4 .billing-account-purchase-copy {
    padding: 20px 20px 14px;
  }
  body#pulsebot-app.billing-account-v4 .billing-account-purchase-action {
    padding: 17px 20px 20px;
  }
  body#pulsebot-app.billing-account-v4 .billing-account-purchase-action > .btn {
    width: 100%;
    justify-content: center;
  }
  body#pulsebot-app.billing-account-v4 .billing-account-servers-head {
    align-items: stretch;
    flex-direction: column;
  }
  body#pulsebot-app.billing-account-v4 .billing-account-servers-head > .btn {
    width: 100%;
    justify-content: center;
  }
}

body#pulsebot-app.billing-account-v4 .billing-account-purchase-action .pb-legal-consents {
  display: grid;
  gap: 9px;
  margin-bottom: 15px;
}

body#pulsebot-app.billing-account-v4 .billing-account-purchase-action .pb-legal-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #909aa7;
  font-size: .76rem;
  line-height: 1.5;
  cursor: pointer;
}

body#pulsebot-app.billing-account-v4 .billing-account-purchase-action .pb-legal-consent input {
  width: 15px;
  height: 15px;
  margin: 2px 0 0;
  flex: 0 0 auto;
  accent-color: #6f9ef5;
}

body#pulsebot-app.billing-account-v4 .billing-account-purchase-action .pb-legal-consent a {
  color: #a9bfe8;
  text-decoration: none;
}

body#pulsebot-app.billing-account-v4 .billing-account-purchase-action > small {
  display: block;
  margin-top: 10px;
  color: #7f8998;
  font-size: .72rem;
  line-height: 1.48;
}

/* v24.3 — contextual Premium CTAs + conversion dashboard */
body#pulsebot-app.dashboard-mode .premium-context-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(111,158,245,.16);
  border-radius: 9px;
  background: rgba(111,158,245,.035);
}
body#pulsebot-app.dashboard-mode .premium-context-cta-copy {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
body#pulsebot-app.dashboard-mode .premium-context-label {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 7px;
  border: 1px solid rgba(111,158,245,.2);
  border-radius: 5px;
  color: #9dbcf2;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .02em;
}
body#pulsebot-app.dashboard-mode .premium-context-cta-copy>div { min-width: 0; }
body#pulsebot-app.dashboard-mode .premium-context-cta-copy strong {
  display: block;
  color: #dce3ec;
  font-size: 12px;
  font-weight: 620;
}
body#pulsebot-app.dashboard-mode .premium-context-cta-copy p {
  margin: 3px 0 0;
  color: #788493;
  font-size: 10px;
  line-height: 1.45;
}
body#pulsebot-app.dashboard-mode .premium-context-cta>.btn {
  flex: 0 0 auto;
  min-height: 31px;
  border-color: rgba(111,158,245,.18);
  color: #a9c4f3;
}
body#pulsebot-app.dashboard-mode .premium-context-cta>.btn:hover {
  border-color: rgba(111,158,245,.3);
  background: rgba(111,158,245,.07);
}

body#pulsebot-app.admin-mode .admin-premium-range {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 14px 20px 0;
}
body#pulsebot-app.admin-mode .admin-premium-range .btn {
  min-height: 30px;
  padding-inline: 11px;
}
body#pulsebot-app.admin-mode .admin-premium-range .btn.is-active {
  border-color: rgba(111,158,245,.28);
  background: rgba(111,158,245,.08);
  color: #b7cdf4;
}
body#pulsebot-app.admin-mode .admin-premium-range>span {
  margin-left: auto;
  color: #737f8e;
  font-size: 10px;
}
body#pulsebot-app.admin-mode .admin-premium-funnel {
  padding-top: 14px;
}
body#pulsebot-app.admin-mode .admin-funnel-steps {
  grid-template-columns: repeat(5,minmax(110px,1fr));
}
body#pulsebot-app.admin-mode .admin-funnel-steps article {
  border-radius: 9px;
  background: rgba(255,255,255,.018);
}
body#pulsebot-app.admin-mode .admin-conversion-rates {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 10px;
}
body#pulsebot-app.admin-mode .admin-conversion-rates article {
  display: grid;
  gap: 4px;
  padding: 13px 14px;
  border: 1px solid rgba(255,255,255,.065);
  border-radius: 9px;
  background: rgba(255,255,255,.012);
}
body#pulsebot-app.admin-mode .admin-conversion-rates span,
body#pulsebot-app.admin-mode .admin-conversion-rates small {
  color: #788493;
  font-size: 10px;
}
body#pulsebot-app.admin-mode .admin-conversion-rates strong {
  color: #edf1f6;
  font-size: 1.15rem;
  font-weight: 650;
}
body#pulsebot-app.admin-mode .admin-conversion-section {
  display: grid;
  gap: 8px;
  padding-top: 2px;
}
body#pulsebot-app.admin-mode .admin-conversion-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}
body#pulsebot-app.admin-mode .admin-conversion-head strong {
  color: #dfe5ed;
  font-size: 12px;
  font-weight: 620;
}
body#pulsebot-app.admin-mode .admin-conversion-head span {
  color: #6f7b89;
  font-size: 9px;
}
body#pulsebot-app.admin-mode .admin-conversion-table {
  border-top: 1px solid rgba(255,255,255,.055);
}
body#pulsebot-app.admin-mode .admin-conversion-table article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 1px;
  border-bottom: 1px solid rgba(255,255,255,.045);
}
body#pulsebot-app.admin-mode .admin-conversion-table strong {
  color: #cdd5df;
  font-size: 10px;
  font-weight: 600;
  text-transform: capitalize;
}
body#pulsebot-app.admin-mode .admin-conversion-table span {
  color: #778391;
  font-size: 9px;
  text-align: right;
}
body#pulsebot-app.admin-mode .admin-conversion-trend {
  display: flex;
  align-items: end;
  gap: 3px;
  height: 64px;
  padding-top: 4px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
body#pulsebot-app.admin-mode .admin-conversion-trend i {
  position: relative;
  flex: 1 1 0;
  height: 100%;
  min-width: 2px;
}
body#pulsebot-app.admin-mode .admin-conversion-trend i>span {
  position: absolute;
  inset: auto 0 0;
  height: var(--bar);
  min-height: 2px;
  border-radius: 2px 2px 0 0;
  background: rgba(111,158,245,.38);
}
body#pulsebot-app.admin-mode .admin-premium-funnel[aria-busy="true"] { opacity: .62; }

@media(max-width:900px){
  body#pulsebot-app.admin-mode .admin-funnel-steps { grid-template-columns: repeat(2,1fr); }
  body#pulsebot-app.admin-mode .admin-conversion-rates { grid-template-columns: 1fr; }
}
@media(max-width:720px){
  body#pulsebot-app.dashboard-mode .premium-context-cta { align-items: flex-start; flex-direction: column; }
  body#pulsebot-app.dashboard-mode .premium-context-cta>.btn { width: 100%; justify-content: center; }
  body#pulsebot-app.admin-mode .admin-premium-range { flex-wrap: wrap; }
  body#pulsebot-app.admin-mode .admin-premium-range>span { width: 100%; margin-left: 0; }
  body#pulsebot-app.admin-mode .admin-conversion-head,
  body#pulsebot-app.admin-mode .admin-conversion-table article { align-items: flex-start; flex-direction: column; }
  body#pulsebot-app.admin-mode .admin-conversion-table span { text-align: left; }
}
