.qbc-bc-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(2px);
}

.qbc-bc-modal {
  width: min(1080px, 100%);
  max-height: min(92vh, 940px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.32);
  color: #0f172a;
  font-size: 13px;
}

.qbc-bc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  background: linear-gradient(120deg, #0f172a 0%, #1e293b 55%, #0f766e 100%);
  color: #f8fafc;
}

.qbc-bc-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.qbc-bc-title-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 15px;
}

.qbc-bc-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qbc-bc-header-button {
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.qbc-bc-header-button:hover,
.qbc-bc-header-button.is-active {
  background: rgba(255, 255, 255, 0.18);
}

.qbc-bc-close {
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: inherit;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.qbc-bc-close:hover {
  background: rgba(255, 255, 255, 0.28);
}

.qbc-bc-body {
  padding: 16px 20px 20px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.qbc-bc-status {
  min-height: 20px;
  color: #64748b;
  font-size: 12.5px;
}

.qbc-bc-status.is-success {
  color: #047857;
}

.qbc-bc-status.is-error {
  color: #b91c1c;
}

.qbc-bc-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
}

.qbc-bc-stat {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}

.qbc-bc-stat.is-online {
  border-color: #a7f3d0;
  background: linear-gradient(160deg, #ecfdf5, #f8fafc);
}

.qbc-bc-stat.is-offline {
  border-color: #fecaca;
  background: linear-gradient(160deg, #fef2f2, #f8fafc);
}

.qbc-bc-stat.is-pending {
  border-color: #fde68a;
  background: linear-gradient(160deg, #fffbeb, #f8fafc);
}

.qbc-bc-stat.is-active {
  border-color: #bfdbfe;
  background: linear-gradient(160deg, #eff6ff, #f8fafc);
}

.qbc-bc-stat-value {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  color: #0f172a;
}

.qbc-bc-stat-label {
  margin-top: 2px;
  color: #64748b;
  font-size: 12px;
}

.qbc-bc-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.qbc-bc-input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  color: #0f172a;
  font-size: 13px;
  outline: none;
}

.qbc-bc-input:focus {
  border-color: #0f766e;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.qbc-bc-search {
  flex: 1 1 220px;
  min-width: 180px;
}

.qbc-bc-tabs {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: #f1f5f9;
}

.qbc-bc-tab {
  padding: 5px 12px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #475569;
  font-size: 12px;
  cursor: pointer;
}

.qbc-bc-tab.is-active {
  background: #0f766e;
  color: #fff;
}

.qbc-bc-auto {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #475569;
  font-size: 12px;
  user-select: none;
}

.qbc-bc-button {
  padding: 7px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  color: #0f172a;
  font-size: 12.5px;
  cursor: pointer;
}

.qbc-bc-button.is-ghost:hover {
  background: #f1f5f9;
}

.qbc-bc-button.is-primary {
  border-color: #0f766e;
  background: #0f766e;
  color: #fff;
}

.qbc-bc-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.qbc-bc-table-wrap {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: auto;
}

.qbc-bc-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.qbc-bc-table th {
  padding: 10px 12px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  color: #475569;
  font-size: 12px;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
}

.qbc-bc-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.qbc-bc-table tr:last-child td {
  border-bottom: none;
}

.qbc-bc-row.is-online td {
  background: #fbfefd;
}

.qbc-bc-index {
  color: #94a3b8;
  font-variant-numeric: tabular-nums;
}

.qbc-bc-name {
  font-weight: 600;
  color: #0f172a;
}

.qbc-bc-sub {
  margin-top: 2px;
  color: #94a3b8;
  font-size: 11.5px;
}

.qbc-bc-cell-name {
  min-width: 150px;
  max-width: 280px;
}

.qbc-bc-cell-name .qbc-bc-name,
.qbc-bc-cell-name .qbc-bc-sub {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qbc-bc-qq {
  color: #475569;
  font-variant-numeric: tabular-nums;
}

.qbc-bc-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  white-space: nowrap;
}

.qbc-bc-pill.is-online {
  background: #dcfce7;
  color: #15803d;
}

.qbc-bc-pill.is-offline {
  background: #fee2e2;
  color: #b91c1c;
}

.qbc-bc-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.qbc-bc-cell-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.qbc-bc-mini {
  padding: 4px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #334155;
  font-size: 11.5px;
  cursor: pointer;
}

.qbc-bc-mini:hover {
  background: #f1f5f9;
}

.qbc-bc-mini.is-primary {
  border-color: #0f766e;
  background: #0f766e;
  color: #fff;
}

.qbc-bc-mini.is-danger {
  border-color: #fecaca;
  color: #b91c1c;
}

.qbc-bc-mini.is-danger:hover {
  background: #fef2f2;
}

.qbc-bc-empty {
  padding: 26px 10px;
  color: #94a3b8;
  text-align: center;
}

.qbc-bc-hint {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f0fdfa;
  border: 1px solid #ccfbf1;
  color: #0f766e;
  font-size: 12px;
}

.qbc-bc-hint-title {
  font-weight: 700;
}

.qbc-bc-settings {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.qbc-bc-section-title {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}

.qbc-bc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.qbc-bc-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.qbc-bc-field-wide {
  grid-column: 1 / -1;
}

.qbc-bc-label {
  color: #475569;
  font-size: 12px;
}

.qbc-bc-check {
  display: flex;
  align-items: center;
  min-height: 34px;
}

.qbc-bc-textarea {
  min-height: 84px;
  resize: vertical;
  font-family: Consolas, "SFMono-Regular", ui-monospace, Menlo, "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", monospace;
  font-size: 12px;
}

.qbc-bc-actions {
  display: flex;
  justify-content: flex-end;
}

.qbc-bc-detail td {
  background: #f8fafc;
}

.qbc-bc-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  padding: 4px 2px;
}

.qbc-bc-detail-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.qbc-bc-detail-label {
  color: #94a3b8;
  font-size: 11.5px;
}

.qbc-bc-detail-value {
  color: #1e293b;
  font-size: 12.5px;
  word-break: break-all;
}

@media (max-width: 820px) {
  .qbc-bc-overlay {
    padding: 10px;
  }

  .qbc-bc-modal {
    max-height: 94vh;
    border-radius: 14px;
  }

  .qbc-bc-body {
    padding: 12px;
  }

  .qbc-bc-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .qbc-bc-stat {
    padding: 10px;
  }

  .qbc-bc-stat-value {
    font-size: 18px;
  }

  .qbc-bc-toolbar {
    gap: 6px;
  }

  .qbc-bc-table {
    min-width: 680px;
  }
}
