.qbc-plc-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-bottom: 1px solid #f1f5f9;
  background: #f8fafc;
}

.qbc-plc-label {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
}

.qbc-plc-select {
  max-width: 46vw;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  color: #334155;
  font-size: 13px;
  padding: 6px 10px;
  outline: none;
}

.qbc-plc-select:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.15);
}

.qbc-plc-count {
  margin-left: auto;
  font-size: 12px;
  color: #94a3b8;
  white-space: nowrap;
}

html[data-theme="dark"] .qbc-plc-bar {
  border-bottom-color: #1e293b;
  background: #0b1220;
}

html[data-theme="dark"] .qbc-plc-label {
  color: #94a3b8;
}

html[data-theme="dark"] .qbc-plc-select {
  border-color: #334155;
  background: #0f172a;
  color: #e2e8f0;
}

html[data-theme="dark"] .qbc-plc-count {
  color: #64748b;
}

.qbc-plc-seg {
  display: inline-flex;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
}

.qbc-plc-seg-btn {
  border: 0;
  border-right: 1px solid #eef2f7;
  background: transparent;
  color: #475569;
  font-size: 12px;
  line-height: 1.4;
  padding: 6px 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

.qbc-plc-seg-btn:last-child {
  border-right: 0;
}

.qbc-plc-seg-btn:hover {
  background: #f1f5f9;
}

.qbc-plc-seg-btn.is-active {
  background: #2563eb;
  color: #ffffff;
  font-weight: 600;
}

.qbc-plc-empty {
  padding: 26px 16px;
  text-align: center;
  font-size: 13px;
  color: #94a3b8;
}

html[data-theme="dark"] .qbc-plc-seg {
  border-color: #334155;
  background: #0f172a;
}

html[data-theme="dark"] .qbc-plc-seg-btn {
  border-right-color: #1e293b;
  color: #cbd5e1;
}

html[data-theme="dark"] .qbc-plc-seg-btn:hover {
  background: #16233c;
}

html[data-theme="dark"] .qbc-plc-seg-btn.is-active {
  background: #2563eb;
  color: #ffffff;
}

html[data-theme="dark"] .qbc-plc-empty {
  color: #64748b;
}

@media (max-width: 640px) {
  .qbc-plc-bar {
    gap: 6px;
    padding: 8px 12px;
  }

  .qbc-plc-select {
    flex: 1 1 auto;
    max-width: none;
    min-width: 0;
  }

  .qbc-plc-seg {
    width: 100%;
  }

  .qbc-plc-seg-btn {
    flex: 1 1 0;
    text-align: center;
    padding: 7px 6px;
  }

  .qbc-plc-count {
    margin-left: 0;
    width: 100%;
  }
}
