.exfil-hero {
  padding-block: var(--sp-6) var(--sp-5);
}

.exfil-hero .rule {
  margin-top: var(--sp-6);
}

.exfil-grid {
  align-items: stretch;
}

.upload-card,
.receipt-card {
  display: flex;
  flex-direction: column;
}

.upload-card .card-body,
.receipt-card .card-body {
  flex: 1;
}

.route-steps {
  align-content: start;
}

.route-steps .stat {
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--border);
}

.route-steps .stat:last-child {
  border-bottom: 0;
}

.dropzone {
  position: relative;
  min-height: 320px;
  gap: var(--sp-3);
  text-align: center;
  border: var(--bw) dashed var(--border);
  border-radius: var(--r-lg);
  background:
    linear-gradient(135deg, var(--accent-soft), transparent 38%),
    linear-gradient(315deg, var(--jade-soft), transparent 42%),
    var(--surface);
  transition: border-color var(--t), background-color var(--t), transform var(--t);
}

.dropzone.is-dragging {
  border-color: var(--accent);
  background-color: var(--accent-soft);
  transform: translateY(-1px);
}

.dropzone input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.dropzone .seal {
  width: 4.75rem;
  height: 4.75rem;
  font-size: 2.5rem;
}

.upload-actions {
  align-self: flex-end;
}

.queue {
  display: grid;
  gap: var(--sp-3);
  padding: 0;
  list-style: none;
}

.queue-card [hidden] {
  display: none !important;
}

.queue-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--sp-3) var(--sp-4);
  align-items: center;
  padding: var(--sp-4);
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--paper-2);
}

.queue-main {
  min-width: 0;
}

.queue-name,
.queue-saved {
  overflow-wrap: anywhere;
}

.queue-name {
  font-weight: 500;
  color: var(--ink);
}

.queue-saved {
  color: var(--muted);
  font-size: var(--fs-sm);
}

.progress {
  grid-column: 1 / -1;
  height: 0.45rem;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--paper-3);
}

.progress span {
  display: block;
  width: 0%;
  height: 100%;
  background: var(--accent);
  transition: width var(--t);
}

.queue-item[data-state="done"] .progress span {
  width: 100%;
  background: var(--jade);
}

.queue-item[data-state="error"] .progress span {
  width: 100%;
  background: var(--gold);
}

@media (max-width: 760px) {
  .exfil-hero {
    padding-block: var(--sp-5) var(--sp-4);
  }

  .dropzone {
    min-height: 260px;
  }

  .route-steps {
    grid-template-columns: 1fr;
  }

  .queue-item {
    grid-template-columns: 1fr;
  }

  .upload-actions {
    align-self: stretch;
  }
}
