.qbc-upload-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgb(15 23 42 / 45%);
  backdrop-filter: blur(3px);
}

.qbc-upload-dialog {
  width: min(100%, 680px);
  max-height: min(90vh, 820px);
  overflow: auto;
  border: 1px solid #dbe2ea;
  border-radius: 8px;
  background: #fff;
  color: #172033;
  box-shadow: 0 18px 55px rgb(15 23 42 / 22%);
}

.qbc-upload-header,
.qbc-upload-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
}

.qbc-upload-header {
  border-bottom: 1px solid #e5eaf0;
}

.qbc-upload-header h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 650;
}

.qbc-upload-header p,
.qbc-upload-note,
.qbc-upload-format p {
  margin: 5px 0 0;
  color: #647084;
  font-size: 12px;
  line-height: 1.6;
}

.qbc-upload-close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #647084;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.qbc-upload-close:hover {
  background: #f1f4f7;
  color: #172033;
}

.qbc-upload-body {
  display: grid;
  gap: 14px;
  padding: 20px;
}

.qbc-upload-field {
  display: grid;
  gap: 6px;
  color: #455166;
  font-size: 12px;
  font-weight: 600;
}

.qbc-upload-field select {
  width: 100%;
  min-height: 40px;
  border: 1px solid #cfd7e2;
  border-radius: 6px;
  padding: 0 10px;
  background: #fff;
  color: #172033;
  font: inherit;
}

.qbc-upload-dropzone {
  display: grid;
  justify-items: center;
  gap: 7px;
  min-height: 190px;
  border: 1px dashed #98a8ba;
  border-radius: 7px;
  padding: 22px;
  background: #f8fafc;
  color: #536176;
  text-align: center;
  cursor: pointer;
}

.qbc-upload-dropzone:hover,
.qbc-upload-dropzone.is-dragging {
  border-color: #157a72;
  background: #edf8f6;
}

.qbc-upload-dropzone strong {
  color: #172033;
  font-size: 14px;
}

.qbc-upload-mark {
  display: grid;
  place-items: center;
  width: 64px;
  height: 34px;
  border: 1px solid #b7d7d2;
  border-radius: 5px;
  background: #e6f4f1;
  color: #12665f;
  font-size: 10px;
  font-weight: 700;
}

.qbc-upload-file-name {
  max-width: 100%;
  overflow-wrap: anywhere;
  color: #12665f;
  font-size: 13px;
  font-weight: 600;
}

.qbc-upload-file-size {
  color: #778397;
  font-size: 11px;
}

.qbc-upload-input {
  display: none;
}

.qbc-upload-format {
  border-top: 1px solid #e5eaf0;
  padding-top: 12px;
  color: #354258;
  font-size: 12px;
}

.qbc-upload-helper {
  display: grid;
  gap: 11px;
  border: 1px solid #b7d7d2;
  border-radius: 7px;
  padding: 14px;
  background: linear-gradient(135deg, #f2fbf9 0%, #f8fbfd 100%);
}

.qbc-upload-helper-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.qbc-upload-helper-head div {
  display: grid;
  gap: 4px;
}

.qbc-upload-helper-head strong {
  color: #145b55;
  font-size: 13px;
}

.qbc-upload-helper-head span:not(.qbc-upload-helper-badge) {
  color: #58716f;
  font-size: 11px;
  line-height: 1.55;
}

.qbc-upload-helper-badge {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 2px 8px;
  background: #12665f;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}

.qbc-upload-helper-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.qbc-upload-helper-button {
  min-height: 32px;
  border: 1px solid #b7d7d2;
  border-radius: 6px;
  padding: 0 10px;
  background: #fff;
  color: #12665f;
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}

.qbc-upload-helper-button:hover {
  background: #edf8f6;
}

.qbc-upload-helper-button.is-primary {
  border-color: #12665f;
  background: #12665f;
  color: #fff;
}

.qbc-upload-helper-button.is-primary:hover {
  background: #0d5751;
}

.qbc-upload-helper-preview {
  color: #455166;
  font-size: 11px;
}

.qbc-upload-helper-preview summary {
  width: fit-content;
  cursor: pointer;
  font-weight: 600;
}

.qbc-upload-helper-preview pre {
  max-height: 220px;
  overflow: auto;
  margin: 8px 0 0;
  border-radius: 6px;
  padding: 11px;
  background: #172033;
  color: #e5edf5;
  font: 10px/1.55 Consolas, "Courier New", monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.qbc-upload-format summary {
  width: fit-content;
  cursor: pointer;
  font-weight: 600;
}

.qbc-upload-format pre {
  overflow: auto;
  margin: 10px 0 0;
  border-radius: 5px;
  padding: 12px;
  background: #172033;
  color: #e5edf5;
  font: 11px/1.55 Consolas, "Courier New", monospace;
}

.qbc-upload-status {
  min-height: 20px;
  margin: 0;
  color: #59677b;
  font-size: 12px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.qbc-upload-status[data-tone="error"] {
  color: #b42318;
}

.qbc-upload-status[data-tone="success"] {
  color: #14725d;
}

.qbc-upload-status-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.qbc-upload-status-row .qbc-upload-status {
  flex: 1 1 auto;
}

.qbc-upload-status-row .qbc-upload-helper-button {
  flex: 0 0 auto;
}

.qbc-upload-hash {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  border: 1px solid #e1e7ee;
  border-radius: 6px;
  padding: 8px 10px;
  background: #f8fafc;
  color: #59677b;
  font-size: 11px;
}

.qbc-upload-hash code {
  flex: 1 1 260px;
  overflow-wrap: anywhere;
  color: #263348;
  font: 11px/1.5 Consolas, "Courier New", monospace;
}

.qbc-submission-timeline {
  flex-basis: 100%;
  display: grid;
  gap: 7px;
  margin-top: 8px;
  border: 1px solid #e1e7ee;
  border-radius: 6px;
  padding: 9px 10px;
  background: #fbfcfd;
}

.qbc-timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #7b8799;
  font-size: 11px;
  line-height: 1.5;
}

.qbc-timeline-dot {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  margin-top: 4px;
  border: 2px solid #cfd7e2;
  border-radius: 50%;
  background: #fff;
}

.qbc-timeline-item.is-done {
  color: #455166;
}

.qbc-timeline-item.is-done .qbc-timeline-dot {
  border-color: #14725d;
  background: #14725d;
}

.qbc-timeline-item.is-current {
  color: #1f5fa8;
  font-weight: 600;
}

.qbc-timeline-item.is-current .qbc-timeline-dot {
  border-color: #1f5fa8;
  background: #dbeafe;
}

.qbc-timeline-item.is-error .qbc-timeline-dot {
  border-color: #b42318;
  background: #b42318;
}

.qbc-timeline-item div {
  display: grid;
  gap: 1px;
}

.qbc-timeline-item strong {
  font-size: 11px;
}

.qbc-timeline-item span {
  font-size: 10px;
}

.qbc-timeline-hash {
  overflow-wrap: anywhere;
  color: #7b8799;
  font: 10px/1.5 Consolas, "Courier New", monospace;
}

.qbc-upload-test {
  display: grid;
  gap: 9px;
  border: 1px solid #d7e0ea;
  border-radius: 7px;
  padding: 13px;
  background: #f8fafc;
}

.qbc-upload-test-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.qbc-upload-test-head strong {
  color: #263348;
  font-size: 12px;
}

.qbc-upload-test-head span {
  color: #7b8799;
  font-size: 10px;
}

.qbc-upload-test-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.qbc-upload-test-row input,
.qbc-upload-test-row select {
  min-height: 34px;
  border: 1px solid #cfd7e2;
  border-radius: 6px;
  padding: 0 9px;
  background: #fff;
  color: #172033;
  font: inherit;
  font-size: 12px;
}

.qbc-upload-test-row input {
  flex: 1 1 220px;
}

.qbc-upload-test-row select {
  flex: 0 0 92px;
}

.qbc-upload-test pre {
  max-height: 180px;
  overflow: auto;
  margin: 0;
  border-radius: 6px;
  padding: 10px;
  background: #172033;
  color: #e5edf5;
  font: 11px/1.6 Consolas, "Courier New", monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.qbc-upload-footer {
  justify-content: flex-end;
  border-top: 1px solid #e5eaf0;
}

.qbc-upload-button,
.qbc-package-download {
  min-height: 36px;
  border: 1px solid #cfd7e2;
  border-radius: 6px;
  padding: 0 12px;
  background: #fff;
  color: #39475b;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.qbc-upload-primary {
  border-color: #12665f;
  background: #12665f;
  color: #fff;
}

.qbc-upload-primary:hover:not(:disabled) {
  background: #0d5751;
}

.qbc-upload-button:disabled,
.qbc-package-download:disabled,
.qbc-upload-dropzone:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.qbc-package-download {
  flex: 0 0 auto;
  border-color: #b7d7d2;
  color: #12665f;
}

.qbc-package-download:hover:not(:disabled) {
  background: #edf8f6;
}

.qbc-package-safe-note {
  align-self: center;
  color: #647084;
  font-size: 11px;
}

.qbc-submission-origin {
  display: inline-flex;
  align-items: center;
  margin-top: 5px;
  padding: 1px 7px;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 600;
  line-height: 18px;
  white-space: nowrap;
}

.qbc-submission-origin.is-missing {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #c2410c;
}

.qbc-submission-actions {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin-left: 8px;
}

.qbc-submission-actions.is-card {
  display: flex;
  justify-content: flex-start;
  margin: 12px 0 0;
}

.qbc-submission-action {
  min-height: 30px;
  border: 1px solid #b7d7d2;
  border-radius: 6px;
  padding: 0 10px;
  background: #fff;
  color: #12665f;
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}

.qbc-submission-action:hover {
  background: #edf8f6;
}

.qbc-submission-pending {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px dashed #c7b6f2;
  border-radius: 6px;
  background: #f6f2ff;
  color: #6d28d9;
  font-size: 11px;
}

.qbc-submission-action.is-secondary {
  border-color: #cfd7e2;
  color: #455166;
}

.qbc-submission-action.is-danger {
  border-color: #f0c4c0;
  color: #b42318;
}

.qbc-submission-action.is-danger:hover {
  background: #fff1f0;
}

.qbc-files-overlay {
  z-index: 120;
}

.qbc-files-dialog {
  width: min(100%, 920px);
}

.qbc-files-body {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
  min-height: 360px;
}

.qbc-files-list {
  display: grid;
  align-content: start;
  gap: 8px;
  max-height: 62vh;
  overflow: auto;
  border-right: 1px solid #e5eaf0;
  padding: 16px;
}

.qbc-files-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid #e1e7ee;
  border-radius: 6px;
  padding: 9px 10px;
  background: #fbfcfd;
}

.qbc-files-info {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.qbc-files-info strong {
  overflow-wrap: anywhere;
  color: #263348;
  font-size: 12px;
}

.qbc-files-info span {
  color: #7b8799;
  font-size: 10px;
}

.qbc-files-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 5px;
}

.qbc-files-preview {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
  padding: 16px;
}

.qbc-files-preview-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  color: #263348;
  font-size: 12px;
}

.qbc-files-preview-head span {
  overflow: hidden;
  color: #7b8799;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qbc-files-preview pre {
  min-height: 280px;
  max-height: 54vh;
  overflow: auto;
  margin: 0;
  border-radius: 6px;
  padding: 14px;
  background: #172033;
  color: #e5edf5;
  font: 11px/1.6 Consolas, "Courier New", monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.qbc-files-empty {
  margin: 0;
  color: #7b8799;
  font-size: 12px;
  line-height: 1.6;
}

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

  .qbc-upload-header,
  .qbc-upload-body,
  .qbc-upload-footer {
    padding-right: 14px;
    padding-left: 14px;
  }

  .qbc-upload-dropzone {
    min-height: 160px;
    padding: 16px;
  }

  .qbc-upload-helper-head {
    display: grid;
  }

  .qbc-upload-status-row {
    display: grid;
  }

  .qbc-upload-helper-badge {
    width: fit-content;
  }

  .qbc-package-safe-note {
    flex-basis: 100%;
  }

  .qbc-files-body {
    grid-template-columns: 1fr;
  }

  .qbc-files-list {
    max-height: 34vh;
    border-right: 0;
    border-bottom: 1px solid #e5eaf0;
  }
}

.qbc-upload-tier {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 12px;
  border: 1px solid #d9e6e3;
  border-radius: 8px;
  background: #f2fbf9;
}

.qbc-upload-tier-main {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

.qbc-upload-tier-badge {
  flex: none;
  padding: 2px 9px;
  border-radius: 999px;
  background: #12665f;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
}

.qbc-upload-tier-label {
  flex: none;
  color: #64748b;
  font-size: 11px;
  font-weight: 500;
}

.qbc-upload-tier-badge[data-tier="developer"] {
  background: #7c3aed;
}

.qbc-upload-tier-badge[data-tier="admin"] {
  background: #b45309;
}

.qbc-upload-tier-text {
  font-size: 11px;
  color: #45625e;
}

.qbc-upload-identity {
  border: 1px solid #d9e6e3;
  border-radius: 8px;
  padding: 0 12px 12px;
  background: #f8fcfb;
}

.qbc-upload-identity summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 0;
  color: #12665f;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.qbc-upload-identity summary::-webkit-details-marker {
  display: none;
}

.qbc-upload-identity summary::after {
  content: "展开";
  color: #64748b;
  font-size: 11px;
  font-weight: 400;
}

.qbc-upload-identity[open] summary::after {
  content: "收起";
}

.qbc-upload-identity-badge {
  flex: none;
  margin-left: auto;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e6f5f2;
  color: #12665f;
  font-size: 10px;
  font-weight: 500;
}

.qbc-upload-identity-body {
  display: grid;
  gap: 10px;
}

.qbc-upload-developer-search {
  display: grid;
  gap: 6px;
}

.qbc-upload-developer-search > label {
  display: grid;
  gap: 5px;
  color: #475569;
  font-size: 11px;
  font-weight: 600;
}

.qbc-upload-developer-search-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qbc-upload-developer-search-row input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 36px;
  border: 1px solid #cfd7e2;
  border-radius: 6px;
  padding: 6px 10px;
  background: #fff;
  color: #172033;
  font: inherit;
  font-weight: 400;
}

.qbc-upload-developer-search-row .qbc-upload-button {
  flex: none;
  min-height: 36px;
  padding: 6px 12px;
}

.qbc-upload-developer-hint {
  margin: 0;
  color: #64748b;
  font-size: 10px;
  line-height: 1.5;
}

.qbc-upload-developer-results {
  display: grid;
  gap: 6px;
  max-height: 190px;
  overflow: auto;
  padding: 6px;
  border: 1px solid #d9e6e3;
  border-radius: 7px;
  background: #fff;
}

.qbc-upload-developer-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 7px 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: #f8fafc;
  color: #172033;
  text-align: left;
  cursor: pointer;
}

.qbc-upload-developer-result:hover,
.qbc-upload-developer-result:focus-visible {
  border-color: #8fd3ca;
  background: #effbf8;
  outline: none;
}

.qbc-upload-developer-result.is-selected {
  border-color: #c4b5fd;
  background: #f6f3ff;
}

.qbc-upload-developer-result-main {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.qbc-upload-developer-result-main strong,
.qbc-upload-developer-tag-main strong {
  overflow: hidden;
  color: #172033;
  font-size: 12px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qbc-upload-developer-result-main small,
.qbc-upload-developer-tag-main small {
  overflow: hidden;
  color: #64748b;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qbc-upload-developer-result-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: none;
}

.qbc-upload-developer-result-meta em {
  padding: 2px 7px;
  border-radius: 999px;
  background: #eef2ff;
  color: #4338ca;
  font-size: 10px;
  font-style: normal;
  white-space: nowrap;
}

.qbc-upload-developer-result-meta b {
  color: #12665f;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.qbc-upload-developer-result.is-selected .qbc-upload-developer-result-meta b {
  color: #7c3aed;
}

.qbc-upload-developer-selected {
  display: grid;
  gap: 7px;
  padding-top: 8px;
  border-top: 1px solid #e2e8f0;
}

.qbc-upload-developer-selected-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #475569;
  font-size: 11px;
  font-weight: 600;
}

.qbc-upload-developer-selected-head b {
  display: inline-flex;
  min-width: 20px;
  height: 18px;
  align-items: center;
  justify-content: center;
  margin-left: 3px;
  padding: 0 5px;
  border-radius: 999px;
  background: #dff4ef;
  color: #12665f;
  font-size: 10px;
}

.qbc-upload-developer-selected-head button {
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 10px;
  cursor: pointer;
}

.qbc-upload-developer-selected-head button:disabled {
  opacity: 0.45;
  cursor: default;
}

.qbc-upload-developer-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.qbc-upload-developer-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  padding: 5px 5px 5px 9px;
  border: 1px solid #d8e2ee;
  border-radius: 7px;
  background: #fff;
  color: #172033;
}

.qbc-upload-developer-tag.is-developer {
  border-color: #c4b5fd;
  background: #faf8ff;
}

.qbc-upload-developer-tag.is-admin {
  border-color: #fcd34d;
  background: #fffbeb;
}

.qbc-upload-developer-tag.is-disabled {
  border-color: #fecaca;
  background: #fff7f7;
}

.qbc-upload-developer-tag-main {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.qbc-upload-developer-tag button {
  flex: none;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: #f1f5f9;
  color: #64748b;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}

.qbc-upload-developer-tag button:hover {
  background: #fee2e2;
  color: #b91c1c;
}

.qbc-upload-developer-empty {
  margin: 0;
  padding: 10px;
  border: 1px dashed #d8e2ee;
  border-radius: 7px;
  color: #94a3b8;
  font-size: 10px;
  text-align: center;
}

.qbc-upload-developer-empty.is-error {
  border-color: #fecaca;
  background: #fff7f7;
  color: #b91c1c;
}

.qbc-upload-identity-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.qbc-upload-field input,
.qbc-upload-field textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid #cfd7e2;
  border-radius: 6px;
  padding: 8px 10px;
  background: #fff;
  color: #172033;
  font: inherit;
  font-weight: 400;
  resize: vertical;
}

.qbc-upload-dialog.is-compact {
  max-width: 560px;
}

.qbc-mini-actions {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

html[data-theme="dark"] .qbc-upload-dialog,
html[data-theme="dark"] .qbc-files-dialog {
  background: #0f1a2b;
  border-color: #1f2d44;
  color: #e2e8f0;
}

html[data-theme="dark"] .qbc-upload-header,
html[data-theme="dark"] .qbc-upload-footer,
html[data-theme="dark"] .qbc-files-preview-head {
  background: #0b1524;
  border-color: #1f2d44;
}

html[data-theme="dark"] .qbc-upload-header h2 {
  color: #f1f5f9;
}

html[data-theme="dark"] .qbc-upload-header p,
html[data-theme="dark"] .qbc-upload-note,
html[data-theme="dark"] .qbc-upload-format p,
html[data-theme="dark"] .qbc-upload-file-size,
html[data-theme="dark"] .qbc-upload-helper-head span:not(.qbc-upload-helper-badge),
html[data-theme="dark"] .qbc-files-info span,
html[data-theme="dark"] .qbc-files-empty {
  color: #94a3b8;
}

html[data-theme="dark"] .qbc-upload-dropzone,
html[data-theme="dark"] .qbc-upload-helper,
html[data-theme="dark"] .qbc-upload-format,
html[data-theme="dark"] .qbc-files-item {
  background: #132134;
  border-color: #2a3a55;
}

html[data-theme="dark"] .qbc-upload-dropzone strong,
html[data-theme="dark"] .qbc-upload-file-name,
html[data-theme="dark"] .qbc-files-info strong {
  color: #e2e8f0;
}

html[data-theme="dark"] .qbc-upload-field input,
html[data-theme="dark"] .qbc-upload-field textarea,
html[data-theme="dark"] .qbc-upload-field select,
html[data-theme="dark"] .qbc-upload-test-row input,
html[data-theme="dark"] .qbc-upload-test-row select {
  background: #16233a;
  border-color: #2a3a55;
  color: #e2e8f0;
}

html[data-theme="dark"] .qbc-upload-tier {
  background: #12241f;
  border-color: #1f3a33;
}

html[data-theme="dark"] .qbc-upload-tier-text {
  color: #a7c4bf;
}

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

html[data-theme="dark"] .qbc-upload-button,
html[data-theme="dark"] .qbc-submission-action,
html[data-theme="dark"] .qbc-upload-helper-button {
  background: #16233a;
  border-color: #2a3a55;
  color: #cbd5e1;
}

html[data-theme="dark"] .qbc-upload-identity {
  background: #12241f;
  border-color: #1f3a33;
}

html[data-theme="dark"] .qbc-upload-identity summary {
  color: #a7c4bf;
}

html[data-theme="dark"] .qbc-upload-identity-badge {
  background: #173b33;
  color: #a7c4bf;
}

html[data-theme="dark"] .qbc-upload-developer-search > label,
html[data-theme="dark"] .qbc-upload-developer-selected-head {
  color: #cbd5e1;
}

html[data-theme="dark"] .qbc-upload-developer-search-row input,
html[data-theme="dark"] .qbc-upload-developer-results,
html[data-theme="dark"] .qbc-upload-developer-tag {
  border-color: #2a3a55;
  background: #16233a;
  color: #e2e8f0;
}

html[data-theme="dark"] .qbc-upload-developer-result {
  background: #16233a;
  color: #e2e8f0;
}

html[data-theme="dark"] .qbc-upload-developer-result:hover,
html[data-theme="dark"] .qbc-upload-developer-result:focus-visible {
  border-color: #2f766c;
  background: #173b33;
}

html[data-theme="dark"] .qbc-upload-developer-result.is-selected {
  border-color: #5b3f91;
  background: #241a3a;
}

html[data-theme="dark"] .qbc-upload-developer-result-main strong,
html[data-theme="dark"] .qbc-upload-developer-tag-main strong {
  color: #e2e8f0;
}

html[data-theme="dark"] .qbc-upload-developer-result-main small,
html[data-theme="dark"] .qbc-upload-developer-tag-main small {
  color: #94a3b8;
}

html[data-theme="dark"] .qbc-upload-developer-result-meta em {
  background: #1e293b;
  color: #c4b5fd;
}

html[data-theme="dark"] .qbc-upload-developer-selected {
  border-color: #25344d;
}

html[data-theme="dark"] .qbc-upload-developer-selected-head b {
  background: #173b33;
  color: #a7c4bf;
}

html[data-theme="dark"] .qbc-upload-developer-tag.is-developer {
  border-color: #5b3f91;
  background: #241a3a;
}

html[data-theme="dark"] .qbc-upload-developer-tag.is-admin {
  border-color: #78530b;
  background: #2b210d;
}

html[data-theme="dark"] .qbc-upload-developer-tag.is-disabled {
  border-color: #7c2d12;
  background: #2b170d;
}

html[data-theme="dark"] .qbc-upload-developer-tag button {
  background: #1e293b;
  color: #94a3b8;
}

html[data-theme="dark"] .qbc-upload-developer-empty {
  border-color: #2a3a55;
  color: #94a3b8;
}

@media (max-width: 540px) {
  .qbc-upload-developer-search-row {
    flex-wrap: wrap;
  }

  .qbc-upload-developer-search-row input,
  .qbc-upload-developer-search-row .qbc-upload-button {
    width: 100%;
  }

  .qbc-upload-developer-result {
    align-items: flex-start;
    flex-direction: column;
  }

  .qbc-upload-developer-result-meta {
    width: 100%;
    justify-content: space-between;
  }

  .qbc-upload-developer-tag {
    width: 100%;
    justify-content: space-between;
  }
}

html[data-theme="dark"] .qbc-submission-origin {
  border-color: #1e3a5f;
  background: #10243a;
  color: #93c5fd;
}

html[data-theme="dark"] .qbc-submission-origin.is-missing {
  border-color: #7c2d12;
  background: #2b170d;
  color: #fdba74;
}

html[data-theme="dark"] .qbc-submission-pending {
  background: #241a3a;
  border-color: #4c3a80;
  color: #c4b5fd;
}

html[data-theme="dark"] .qbc-files-preview pre,
html[data-theme="dark"] .qbc-upload-test pre,
html[data-theme="dark"] .qbc-upload-helper-preview pre,
html[data-theme="dark"] .qbc-upload-format pre {
  background: #0b1220;
  color: #dbeafe;
}
