/* PulseBot v22.6.4 — tools alignment, shared module panels and compact module top bar. */

/* The module context bar follows the compact, border-only layout used across the dashboard. */
body#pulsebot-app.dashboard-module-v2177 .content-stack > .server-top {
  position: relative !important;
  width: 100% !important;
  min-height: 82px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 22px !important;
  margin: 0 !important;
  padding: 7px 4px 20px !important;
  overflow: visible !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(255,255,255,.09) !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

body#pulsebot-app.dashboard-module-v2177 .content-stack > .server-top.is-premium {
  border-color: rgba(255,255,255,.09) !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

body#pulsebot-app.dashboard-module-v2177 .content-stack > .server-top::before,
body#pulsebot-app.dashboard-module-v2177 .content-stack > .server-top::after,
body#pulsebot-app.dashboard-module-v2177 .content-stack > .server-top.is-premium::before,
body#pulsebot-app.dashboard-module-v2177 .content-stack > .server-top.is-premium::after {
  content: none !important;
  display: none !important;
}

body#pulsebot-app.dashboard-module-v2177 .server-top-copy {
  min-width: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

body#pulsebot-app.dashboard-module-v2177 .server-top-icon {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  display: grid !important;
  place-items: center !important;
  border: 1px solid rgba(82,145,224,.48) !important;
  border-radius: 10px !important;
  background: rgba(44,103,177,.07) !important;
  background-image: none !important;
  color: #9fc8f5 !important;
  box-shadow: none !important;
  filter: none !important;
}

body#pulsebot-app.dashboard-module-v2177 .server-top-icon :is(svg,.ui-icon) {
  width: 17px !important;
  height: 17px !important;
}

body#pulsebot-app.dashboard-module-v2177 .server-top small {
  display: block !important;
  margin: 0 0 3px !important;
  color: #7d8792 !important;
  font-size: .63rem !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  letter-spacing: .105em !important;
  text-transform: uppercase !important;
}

body#pulsebot-app.dashboard-module-v2177 .server-top-name-line {
  min-width: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
}

body#pulsebot-app.dashboard-module-v2177 .server-top h2 {
  max-width: min(62vw,720px) !important;
  margin: 0 !important;
  overflow: hidden !important;
  color: #edf0f3 !important;
  font-size: .98rem !important;
  font-weight: 650 !important;
  line-height: 1.25 !important;
  letter-spacing: -.012em !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  text-shadow: none !important;
}

body#pulsebot-app.dashboard-module-v2177 .server-top p {
  margin: 3px 0 0 !important;
  color: #929ba6 !important;
  font-size: .76rem !important;
  font-weight: 450 !important;
  line-height: 1.35 !important;
  letter-spacing: 0 !important;
  text-shadow: none !important;
}

body#pulsebot-app.dashboard-module-v2177 .server-top .server-premium-badge {
  min-height: 21px !important;
  padding: 0 7px !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  border-radius: 5px !important;
  background: #151a20 !important;
  background-image: none !important;
  color: #aeb7c1 !important;
  font-size: .64rem !important;
  font-weight: 620 !important;
  letter-spacing: 0 !important;
  box-shadow: none !important;
}

body#pulsebot-app.dashboard-module-v2177 .server-top > .btn.btn-ghost {
  flex: 0 0 auto !important;
  min-height: 35px !important;
  padding: 0 12px !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  border-radius: 8px !important;
  background: #14191f !important;
  background-image: none !important;
  color: #d5dae0 !important;
  font-size: .78rem !important;
  font-weight: 590 !important;
  box-shadow: none !important;
  transform: none !important;
}

body#pulsebot-app.dashboard-module-v2177 .server-top > .btn.btn-ghost:hover {
  border-color: rgba(255,255,255,.18) !important;
  background: #181e25 !important;
  color: #f0f2f4 !important;
}

/* Every page in Narzędzia uses the same content width and shell as the other categories. */
body#pulsebot-app:is(
  .dashboard-active-identity,
  .dashboard-active-backups,
  .dashboard-active-templates,
  .dashboard-active-sticky,
  .dashboard-active-other
) .content-stack {
  width: 100% !important;
  max-width: none !important;
  margin-inline: 0 !important;
  gap: 16px !important;
}

body#pulsebot-app:is(
  .dashboard-active-identity,
  .dashboard-active-backups,
  .dashboard-active-templates,
  .dashboard-active-sticky,
  .dashboard-active-other
) .content-stack > .module-panel {
  width: 100% !important;
  min-width: 0 !important;
  display: grid !important;
  gap: 18px !important;
  padding: 24px !important;
  overflow: visible !important;
  border: 1px solid var(--pb-ui-line) !important;
  border-radius: 14px !important;
  background: var(--pb-ui-bg) !important;
  background-image: none !important;
  box-shadow: none !important;
}

body#pulsebot-app:is(
  .dashboard-active-identity,
  .dashboard-active-backups,
  .dashboard-active-templates,
  .dashboard-active-sticky,
  .dashboard-active-other
) .tool-module-headline,
body#pulsebot-app:is(
  .dashboard-active-identity,
  .dashboard-active-backups,
  .dashboard-active-templates,
  .dashboard-active-sticky,
  .dashboard-active-other
) .module-headline {
  min-height: 58px !important;
  margin: 0 !important;
  padding: 0 0 18px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--pb-ui-line) !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

/* Shared panel component for every configurable module. */
body#pulsebot-app.dashboard-module-v2177 .content-stack > .module-panel .form-section {
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 1px solid var(--pb-ui-line) !important;
  border-radius: 12px !important;
  background: var(--pb-ui-panel-soft) !important;
  background-image: none !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

body#pulsebot-app.dashboard-module-v2177 .content-stack > .module-panel .form-section-head {
  min-height: 0 !important;
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 16px !important;
  margin: 0 !important;
  padding: 16px 18px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--pb-ui-line) !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

body#pulsebot-app.dashboard-module-v2177 .content-stack > .module-panel .form-section-head > div {
  min-width: 0 !important;
}

body#pulsebot-app.dashboard-module-v2177 .content-stack > .module-panel .form-section-head h3 {
  margin: 0 !important;
  color: var(--pb-ui-text) !important;
  font-size: .96rem !important;
  font-weight: 640 !important;
  line-height: 1.35 !important;
  letter-spacing: -.008em !important;
  text-shadow: none !important;
}

body#pulsebot-app.dashboard-module-v2177 .content-stack > .module-panel .form-section-head p {
  max-width: 760px !important;
  margin: 5px 0 0 !important;
  color: var(--pb-ui-muted) !important;
  font-size: .82rem !important;
  line-height: 1.55 !important;
  letter-spacing: 0 !important;
  text-shadow: none !important;
}

body#pulsebot-app.dashboard-module-v2177 .content-stack > .module-panel .form-section-body {
  margin: 0 !important;
  padding: 18px !important;
  background: transparent !important;
  background-image: none !important;
}

body#pulsebot-app.dashboard-module-v2177 .content-stack > .module-panel .module-form.form-section {
  display: block !important;
  padding: 0 !important;
}

body#pulsebot-app.dashboard-module-v2177 .content-stack > .module-panel .module-panel-special {
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 2px 17px !important;
  overflow: visible !important;
  border: 0 !important;
  border-bottom: 1px solid var(--pb-ui-line) !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

/* Small cards and rows share one restrained surface instead of category-specific effects. */
body#pulsebot-app.dashboard-module-v2177 .content-stack > .module-panel :is(
  .message-rule-card,
  .notice-card,
  .preset-card,
  .rule-card,
  .info-tile,
  .stat-config,
  .giveaway-row,
  .ticket-panel-card,
  .template-card,
  .template-history-row,
  .config-backup-row,
  .config-restore-row,
  .identity-media-row,
  .tool-neutral-note,
  .identity-preview-card,
  .template-preview-category
) {
  border: 1px solid var(--pb-ui-line) !important;
  border-radius: 10px !important;
  background: rgba(255,255,255,.018) !important;
  background-image: none !important;
  box-shadow: none !important;
  text-shadow: none !important;
  transform: none !important;
}

body#pulsebot-app.dashboard-module-v2177 .content-stack > .module-panel :is(
  .message-rule-card,
  .preset-card,
  .rule-card,
  .giveaway-row,
  .ticket-panel-card,
  .template-card,
  .template-history-row,
  .config-backup-row
):hover {
  border-color: var(--pb-ui-line-strong) !important;
  background: rgba(255,255,255,.026) !important;
  background-image: none !important;
  box-shadow: none !important;
  transform: none !important;
}

body#pulsebot-app.dashboard-active-identity .identity-workspace-v2202,
body#pulsebot-app.dashboard-active-backups .backup-controls-v2202 {
  gap: 16px !important;
}

body#pulsebot-app.dashboard-active-identity .identity-preview-card {
  overflow: hidden !important;
}

body#pulsebot-app.dashboard-active-identity .identity-settings-grid,
body#pulsebot-app.dashboard-active-backups .config-backup-list,
body#pulsebot-app.dashboard-active-backups .config-restore-list {
  gap: 10px !important;
}

body#pulsebot-app.dashboard-active-backups .backup-overview-v2202 {
  display: grid !important;
  grid-template-columns: repeat(3,minmax(0,1fr)) !important;
  gap: 10px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body#pulsebot-app.dashboard-active-backups .backup-overview-v2202 > div {
  min-width: 0 !important;
  padding: 15px 16px !important;
  border: 1px solid var(--pb-ui-line) !important;
  border-radius: 10px !important;
  background: rgba(255,255,255,.018) !important;
  background-image: none !important;
  box-shadow: none !important;
}

body#pulsebot-app.dashboard-module-v2177 :is(.tool-inline-label,.template-premium-label) {
  min-height: 22px !important;
  padding: 0 7px !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  border-radius: 5px !important;
  background: #171c22 !important;
  background-image: none !important;
  color: #aeb6bf !important;
  font-size: .68rem !important;
  font-weight: 620 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  box-shadow: none !important;
}

body#pulsebot-app.dashboard-module-v2177 .tool-lock-layout {
  min-height: 120px !important;
  margin: 0 !important;
  padding: 18px !important;
  border: 1px solid var(--pb-ui-line) !important;
  border-radius: 12px !important;
  background: var(--pb-ui-panel-soft) !important;
  background-image: none !important;
  box-shadow: none !important;
}

body#pulsebot-app.dashboard-module-v2177 .tool-lock-layout strong {
  color: var(--pb-ui-text) !important;
  font-size: .96rem !important;
  font-weight: 640 !important;
}

body#pulsebot-app.dashboard-module-v2177 .tool-lock-layout p {
  margin: 6px 0 0 !important;
  color: var(--pb-ui-muted) !important;
  font-size: .82rem !important;
  line-height: 1.55 !important;
}

/* Premium comparison: reserve more room for text values such as “Wszystkie 8”. */
body#pulsebot-app.dashboard-premium-v2178 .pb2211-premium-limits .pb2181-comparison-item {
  grid-template-columns: minmax(145px,1fr) minmax(260px,.95fr) !important;
  gap: 20px !important;
}

body#pulsebot-app.dashboard-premium-v2178 .pb2211-premium-limits .pb2181-comparison-values {
  min-width: 0 !important;
  grid-template-columns: minmax(76px,.82fr) 18px minmax(118px,1.18fr) !important;
  gap: 7px !important;
}

body#pulsebot-app.dashboard-premium-v2178 .pb2211-premium-limits .pb2181-comparison-values > span {
  min-width: 0 !important;
  display: grid !important;
  grid-template-columns: auto minmax(0,1fr) !important;
  align-items: baseline !important;
  gap: 8px !important;
  padding: 7px 0 !important;
}

body#pulsebot-app.dashboard-premium-v2178 .pb2211-premium-limits .pb2181-comparison-values small {
  min-width: max-content !important;
}

body#pulsebot-app.dashboard-premium-v2178 .pb2211-premium-limits .pb2181-comparison-values b {
  min-width: 0 !important;
  overflow: visible !important;
  text-align: right !important;
  white-space: nowrap !important;
}

@media (max-width: 1120px) {
  body#pulsebot-app.dashboard-premium-v2178 .pb2211-premium-limits .pb2181-comparison-list {
    grid-template-columns: 1fr !important;
  }

  body#pulsebot-app.dashboard-premium-v2178 .pb2211-premium-limits .pb2181-comparison-item,
  body#pulsebot-app.dashboard-premium-v2178 .pb2211-premium-limits .pb2181-comparison-item:nth-child(-n+2) {
    border-left: 0 !important;
    border-top: 1px solid rgba(255,255,255,.055) !important;
  }

  body#pulsebot-app.dashboard-premium-v2178 .pb2211-premium-limits .pb2181-comparison-item:first-child {
    border-top: 0 !important;
  }
}

@media (max-width: 760px) {
  body#pulsebot-app.dashboard-module-v2177 .content-stack > .server-top {
    min-height: 0 !important;
    align-items: flex-start !important;
    flex-direction: column !important;
    gap: 14px !important;
    padding: 4px 2px 18px !important;
  }

  body#pulsebot-app.dashboard-module-v2177 .server-top h2 {
    max-width: calc(100vw - 104px) !important;
  }

  body#pulsebot-app.dashboard-module-v2177 .server-top > .btn.btn-ghost {
    width: 100% !important;
    justify-content: center !important;
  }

  body#pulsebot-app:is(
    .dashboard-active-identity,
    .dashboard-active-backups,
    .dashboard-active-templates,
    .dashboard-active-sticky,
    .dashboard-active-other
  ) .content-stack > .module-panel {
    padding: 18px !important;
  }

  body#pulsebot-app.dashboard-module-v2177 .content-stack > .module-panel .form-section-head {
    align-items: stretch !important;
    flex-direction: column !important;
  }

  body#pulsebot-app.dashboard-active-backups .backup-overview-v2202 {
    grid-template-columns: 1fr !important;
  }

  body#pulsebot-app.dashboard-premium-v2178 .pb2211-premium-limits .pb2181-comparison-item {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
}

@media (max-width: 520px) {
  body#pulsebot-app:is(
    .dashboard-active-identity,
    .dashboard-active-backups,
    .dashboard-active-templates,
    .dashboard-active-sticky,
    .dashboard-active-other
  ) .content-stack > .module-panel {
    padding: 15px !important;
  }

  body#pulsebot-app.dashboard-module-v2177 .content-stack > .module-panel .form-section-head,
  body#pulsebot-app.dashboard-module-v2177 .content-stack > .module-panel .form-section-body {
    padding: 14px !important;
  }

  body#pulsebot-app.dashboard-module-v2177 .tool-lock-layout {
    align-items: stretch !important;
    flex-direction: column !important;
  }

  body#pulsebot-app.dashboard-premium-v2178 .pb2211-premium-limits .pb2181-comparison-values {
    grid-template-columns: minmax(68px,.8fr) 16px minmax(108px,1.2fr) !important;
  }

  body#pulsebot-app.dashboard-premium-v2178 .pb2211-premium-limits .pb2181-comparison-values > span {
    grid-template-columns: 1fr !important;
    gap: 4px !important;
  }

  body#pulsebot-app.dashboard-premium-v2178 .pb2211-premium-limits .pb2181-comparison-values b {
    text-align: left !important;
  }
}
