.upload-sidebar-card {
  display: grid;
  gap: 0.75rem;
  padding: 1rem 0 0;
}

.upload-sidebar-copy {
  min-width: 0;
}

.upload-dropzone-title {
  color: rgba(255, 255, 255, 0.96);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.25;
}

.upload-dropzone-copytext {
  margin-top: 0.35rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.84rem;
  line-height: 1.45;
}

.upload-dropzone-sidebar {
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 0.95rem;
  min-height: 18rem;
  padding: 1.15rem;
}

.upload-dropzone-sidebar .pdf-dropzone-copy,
.upload-dropzone-sidebar .pdf-dropzone-hint,
.upload-dropzone-sidebar .pdf-dropzone-message {
  width: 100%;
}

.upload-sidebar-button {
  width: 100%;
}

.upload-queue-shell-main {
  min-height: 0;
}

.pdf-dropzone {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  padding: 1.1rem 1.15rem;
  border: 1px dashed rgba(124, 196, 255, 0.24);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.pdf-dropzone.is-dragover {
  background: rgba(78, 166, 255, 0.1);
  border-color: rgba(124, 196, 255, 0.45);
  transform: translateY(-1px);
}

.pdf-dropzone-copy {
  min-width: 0;
}

.pdf-dropzone-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pdf-dropzone-button {
  white-space: nowrap;
}

.pdf-dropzone-hint {
  grid-column: 1 / -1;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.82rem;
  line-height: 1.4;
}

.pdf-dropzone-message {
  grid-column: 1 / -1;
  font-size: 0.86rem;
}

.upload-queue-shell {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 1.25rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
}

.upload-queue-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.upload-queue-list {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  gap: 0.9rem;
  overflow: auto;
  padding-right: 0.25rem;
}

.upload-job-card {
  padding: 1rem 1rem 0.95rem;
  border-radius: 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.03);
}

.upload-job-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.upload-job-copy {
  min-width: 0;
}

.upload-job-eyebrow {
  color: rgba(124, 196, 255, 0.92);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.upload-job-title {
  margin-top: 0.35rem;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
}

.upload-job-meta {
  margin-top: 0.35rem;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.9rem;
}

.upload-job-details {
  margin-top: 0.35rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.88rem;
}

.upload-job-status-pill,
.upload-file-status {
  flex-shrink: 0;
  border-radius: 999px;
  border: 1px solid rgba(124, 196, 255, 0.16);
  background: rgba(124, 196, 255, 0.08);
  color: #d6ecff;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.upload-job-status-pill {
  padding: 0.45rem 0.8rem;
}

.upload-job-files {
  margin-top: 0.95rem;
  display: grid;
  gap: 0.6rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.upload-file-block {
  display: grid;
  gap: 0.35rem;
  height: 100%;
  padding: 0.65rem 0.7rem 0.7rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.03);
}

.upload-file-body {
  display: grid;
  gap: 0.3rem;
}

.upload-file-steps {
  display: grid;
  gap: 0.3rem;
  padding-left: 0;
}

.upload-job-actions {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: stretch;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.upload-job-actions .upload-step-row {
  flex: 1 1 10rem;
  min-width: 0;
}

.upload-job-footer {
  margin-left: auto;
  display: flex;
  justify-content: flex-end;
}

.upload-job-footer .upload-job-edit-btn {
  margin-left: auto;
}

.upload-job-edit-btn {
  padding: 0.68rem 1rem;
}

.upload-file-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.9rem;
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.upload-file-copy {
  min-width: 0;
}

.upload-file-name {
  color: rgba(255, 255, 255, 0.94);
  font-weight: 600;
  word-break: break-word;
}

.upload-file-meta {
  margin-top: 0.25rem;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.88rem;
  line-height: 1.4;
}

.upload-file-status {
  padding: 0.38rem 0.72rem;
}

.upload-step-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.48rem 0.65rem;
  border-radius: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.upload-step-icon {
  width: 1.35rem;
  height: 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 1.35rem;
  border-radius: 999px;
  border: 1px solid rgba(124, 196, 255, 0.2);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.7rem;
  font-weight: 800;
}

.upload-step-copy {
  min-width: 0;
}

.upload-step-label {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.84rem;
  line-height: 1.2;
}

.upload-step-active {
  border-color: rgba(124, 196, 255, 0.42);
  background: rgba(78, 166, 255, 0.12);
}

.upload-step-active .upload-step-icon {
  border-color: rgba(124, 196, 255, 0.5);
  background: rgba(124, 196, 255, 0.16);
  color: #fff;
}

.upload-step-done {
  border-color: rgba(82, 203, 133, 0.42);
  background: rgba(82, 203, 133, 0.08);
}

.upload-step-done .upload-step-icon {
  border-color: rgba(82, 203, 133, 0.7);
  background: rgba(82, 203, 133, 0.16);
  color: #8ff0b1;
}

.upload-step-done .upload-step-label {
  color: rgba(255, 255, 255, 0.9);
}

.upload-step-failed {
  border-color: rgba(239, 68, 68, 0.4);
  background: rgba(239, 68, 68, 0.08);
}

.upload-step-failed .upload-step-icon {
  border-color: rgba(239, 68, 68, 0.6);
  background: rgba(239, 68, 68, 0.16);
  color: #ffb3b3;
}

.upload-empty-state {
  padding: 1rem 1.05rem;
  border-radius: 1rem;
  border: 1px dashed rgba(124, 196, 255, 0.22);
  color: rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.02);
}

@media (max-width: 768px) {
  .pdf-dropzone {
    grid-template-columns: 1fr;
  }

  .pdf-dropzone-actions {
    justify-content: flex-start;
  }

  .upload-queue-header,
  .upload-job-top,
  .upload-file-row {
    flex-direction: column;
  }

  .upload-job-status-pill,
  .upload-file-status {
    align-self: flex-start;
  }

  .upload-step-row {
    align-items: flex-start;
  }

  .upload-job-files {
    grid-template-columns: 1fr;
  }

  .upload-job-steps .upload-step-row {
    flex-basis: 100%;
  }
}

@media (min-width: 769px) and (max-width: 1200px) {
  .upload-job-files {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

html[data-theme="light"] .pdf-dropzone {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.12);
}

html[data-theme="light"] .pdf-dropzone.is-dragover {
  background: rgba(78, 166, 255, 0.08);
  border-color: rgba(43, 120, 214, 0.32);
}

html[data-theme="light"] .upload-queue-shell,
html[data-theme="light"] .upload-job-card,
html[data-theme="light"] .upload-empty-state {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.09);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.06);
}

html[data-theme="light"] .upload-file-row {
  background: transparent;
}

html[data-theme="light"] .upload-file-block {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.09);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.06);
}

html[data-theme="light"] .upload-job-title,
html[data-theme="light"] .upload-file-name {
  color: #0f172a;
}

html[data-theme="light"] .upload-job-meta,
html[data-theme="light"] .upload-job-details,
html[data-theme="light"] .upload-file-meta,
html[data-theme="light"] .upload-empty-state {
  color: rgba(15, 23, 42, 0.64);
}

html[data-theme="light"] .upload-step-row {
  background: rgba(15, 23, 42, 0.02);
  border-color: rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .upload-step-label {
  color: rgba(15, 23, 42, 0.82);
}

html[data-theme="light"] .upload-step-icon {
  border-color: rgba(15, 23, 42, 0.12);
  color: rgba(15, 23, 42, 0.72);
}

html[data-theme="light"] .upload-step-active {
  background: rgba(78, 166, 255, 0.08);
  border-color: rgba(43, 120, 214, 0.24);
}

html[data-theme="light"] .upload-step-done {
  background: rgba(82, 203, 133, 0.08);
  border-color: rgba(82, 203, 133, 0.28);
}

html[data-theme="light"] .upload-step-failed {
  background: rgba(239, 68, 68, 0.07);
  border-color: rgba(239, 68, 68, 0.24);
}
