.upload-page {
  gap: 1.35rem;
}

.upload-card {
  background:
    radial-gradient(circle at top right, rgba(0, 113, 227, 0.1), transparent 28%),
    var(--card-bg);
}

.upload-shell {
  display: grid;
  gap: 1.15rem;
}

.upload-intro {
  display: grid;
  gap: 0.45rem;
  max-width: 40rem;
}

.upload-eyebrow {
  display: inline-flex;
  width: fit-content;
  padding: 0.34rem 0.68rem;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.upload-intro h2 {
  font-size: 1.6rem;
  letter-spacing: -0.03em;
}

.upload-intro p {
  color: var(--muted);
  line-height: 1.7;
}

.drop-zone {
  border: 1.5px dashed rgba(0, 113, 227, 0.28);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.3));
  min-height: 13.5rem;
  padding: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
  transition-delay: var(--hover-out-delay);
}

[data-theme="dark"] .drop-zone {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.54));
}

.drop-zone:hover,
.drop-zone.dragover {
  border-color: rgba(0, 113, 227, 0.48);
  background: linear-gradient(180deg, rgba(0, 113, 227, 0.08), rgba(255, 255, 255, 0.46));
  box-shadow: var(--hover-shadow);
  transition-delay: 0s;
}

.drop-zone-inner {
  display: grid;
  gap: 0.55rem;
  max-width: 28rem;
}

.drop-zone-title {
  font-size: 1.15rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.drop-zone-note {
  color: var(--muted);
  line-height: 1.65;
}

.file-name {
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.48);
  color: var(--text);
  font-weight: 600;
  word-break: break-word;
}

[data-theme="dark"] .file-name {
  background: rgba(15, 23, 42, 0.52);
}

.preview-panel {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.42);
}

[data-theme="dark"] .preview-panel {
  background: rgba(15, 23, 42, 0.46);
}

.preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.preview-head h5 {
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.preview {
  width: 100%;
  min-height: 18rem;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  background: rgba(244, 246, 251, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

[data-theme="dark"] .preview {
  background: rgba(10, 15, 24, 0.8);
}

.preview-image {
  max-width: min(100%, 24rem);
  max-height: 22rem;
  object-fit: contain;
  transition: transform 0.3s ease;
  border-radius: var(--radius-sm);
  display: block;
}

.upload-form {
  display: grid;
  gap: 1rem;
  padding-top: 0.35rem;
}

.upload-destination {
  display: grid;
  gap: 0.45rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.42);
}

[data-theme="dark"] .upload-destination {
  background: rgba(15, 23, 42, 0.46);
}

.upload-destination label {
  font-weight: 700;
  letter-spacing: -0.01em;
}

.upload-destination p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.shared-file-box {
  display: grid;
  gap: 0.5rem;
  padding: 1rem;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.34);
}

.shared-file-box strong {
  letter-spacing: -0.01em;
}

.shared-file-value {
  color: var(--muted);
  word-break: break-word;
}

.job-list {
  display: grid;
  gap: 0.9rem;
}

.job-card {
  display: grid;
  gap: 0.85rem;
  padding: 1rem 1.05rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.48);
  box-shadow: var(--shadow-soft);
}

[data-theme="dark"] .job-card {
  background: rgba(15, 23, 42, 0.52);
}

.job-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.job-title {
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.job-close {
  border: none;
  background: transparent;
  color: var(--danger);
  font-size: 1rem;
  cursor: pointer;
}

.job-status,
.job-result {
  color: var(--muted);
  line-height: 1.6;
}

.job-progress-bar {
  width: 100%;
  height: 0.55rem;
  background: rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  overflow: hidden;
}

.job-progress-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

@media (max-width: 640px) {
  .preview-head {
    align-items: stretch;
    flex-direction: column;
  }

  .preview-head .btn {
    width: 100%;
  }

  .preview {
    min-height: 14rem;
  }

  .preview-image {
    max-height: 18rem;
  }
}
