/* Public, token-authenticated document upload page (guest checkout links). */

.du-page {
  min-height: 100svh;
  background:
    radial-gradient(circle at 12% -10%, rgba(19, 42, 142, 0.09), transparent 46%),
    radial-gradient(circle at 92% 4%, rgba(255, 122, 26, 0.12), transparent 44%),
    #f6f7fb;
  padding: 0 0 64px;
}

.du-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 720px;
  margin: 0 auto;
  padding: 20px 20px 0;
}

.du-bar img { height: 30px; width: auto; display: block; }

/* Nothing from the storefront chrome belongs on a one-job upload page. */
body:has(.du-page) .rcy-fab,
body:has(.du-page) #ral-fab,
body:has(.du-page) .rv-dock { display: none !important; }

.du-safe {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(14, 17, 22, 0.06), 0 0 0 1px rgba(14, 17, 22, 0.06);
  padding: 7px 13px;
  font-size: 12px;
  font-weight: 700;
  color: #4b5563;
  white-space: nowrap;
}

.du-wrap { max-width: 720px; margin: 0 auto; padding: 26px 20px 0; }

.du-h1 {
  font-family: var(--font-display, inherit);
  font-size: clamp(1.7rem, 5.2vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: #0e1116;
  margin: 0;
}

.du-lede { margin: 10px 0 0; font-size: 15px; line-height: 1.55; color: #5b6472; }

.du-prog {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  border-radius: 18px;
  background: #fff;
  padding: 14px 16px;
  box-shadow: 0 10px 30px -22px rgba(14, 17, 22, 0.5), 0 0 0 1px rgba(14, 17, 22, 0.06);
}

.du-prog-track {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: #eceff5;
  overflow: hidden;
}

.du-prog-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #132a8e, #ff7a1a);
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.du-prog-num { font-size: 13px; font-weight: 800; color: #0e1116; white-space: nowrap; }

.du-cards { display: grid; gap: 16px; margin-top: 18px; }

.du-card {
  position: relative;
  border-radius: 22px;
  background: #fff;
  padding: 18px;
  box-shadow: 0 18px 44px -30px rgba(14, 17, 22, 0.55), 0 0 0 1px rgba(14, 17, 22, 0.06);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.du-card.is-done { box-shadow: 0 18px 44px -30px rgba(5, 150, 105, 0.55), 0 0 0 1.5px rgba(5, 150, 105, 0.45); }
.du-card.is-busy { opacity: 0.75; }

.du-card-head { display: flex; align-items: flex-start; gap: 13px; }

.du-ic {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 14px;
  background: #eef1fa;
  color: #132a8e;
}

.du-card.is-done .du-ic { background: #e7f7f0; color: #059669; }

.du-card-title { margin: 0; font-size: 16px; font-weight: 800; color: #0e1116; letter-spacing: -0.01em; }
.du-card-hint { margin: 3px 0 0; font-size: 13px; line-height: 1.45; color: #6b7280; }

.du-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  flex: none;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.du-chip--ok { background: #e7f7f0; color: #047857; }
.du-chip--warn { background: #fff4e5; color: #b45309; }

.du-drop {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 14px;
  border: 2px dashed #d5dae6;
  border-radius: 16px;
  background: #fafbfe;
  padding: 18px 16px;
  font-size: 14px;
  font-weight: 700;
  color: #132a8e;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}

.du-drop:hover { border-color: #132a8e; background: #f2f5ff; }
.du-drop:active { transform: scale(0.995); }
.du-drop:disabled { cursor: default; opacity: 0.6; }

.du-file {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 14px;
  border-radius: 16px;
  background: #f7f8fc;
  padding: 11px;
}

.du-thumb {
  width: 62px;
  height: 46px;
  flex: none;
  border-radius: 10px;
  object-fit: cover;
  background: #eceff5;
}

.du-thumb--doc { display: grid; place-items: center; color: #6b7280; }
.du-file-name { margin: 0; font-size: 13px; font-weight: 700; color: #0e1116; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.du-file-sub { margin: 2px 0 0; font-size: 12px; color: #6b7280; }

.du-acts { display: flex; gap: 8px; margin-left: auto; flex: none; }

.du-mini {
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(14, 17, 22, 0.1);
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 800;
  color: #374151;
  cursor: pointer;
  transition: box-shadow 0.2s ease, color 0.2s ease;
}

.du-mini:hover { box-shadow: 0 0 0 1.5px rgba(14, 17, 22, 0.28); color: #0e1116; }
.du-mini--bad:hover { color: #e11d48; box-shadow: 0 0 0 1.5px rgba(225, 29, 72, 0.4); }

.du-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 12px 0 0;
  border-radius: 14px;
  padding: 10px 12px;
  font-size: 12.5px;
  line-height: 1.45;
  font-weight: 600;
}

.du-note--bad { background: #fff1f2; color: #be123c; }
.du-note--warn { background: #fff7ed; color: #b45309; }
.du-note svg { flex: none; margin-top: 1px; }

.du-retake { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

.du-done {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
  border-radius: 22px;
  background: linear-gradient(135deg, #0f766e, #059669);
  color: #fff;
  padding: 18px;
  box-shadow: 0 22px 50px -30px rgba(5, 150, 105, 0.9);
}

.du-done-ring {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.du-done p { margin: 0; }
.du-done-t { font-size: 16px; font-weight: 800; }
.du-done-s { font-size: 13px; opacity: 0.9; margin-top: 2px !important; }

.du-foot { margin: 22px 0 0; font-size: 12px; line-height: 1.6; color: #8b94a3; text-align: center; }

.du-state {
  max-width: 520px;
  margin: 60px auto 0;
  border-radius: 24px;
  background: #fff;
  padding: 34px 26px;
  text-align: center;
  box-shadow: 0 22px 60px -40px rgba(14, 17, 22, 0.6), 0 0 0 1px rgba(14, 17, 22, 0.06);
}

.du-state h2 { margin: 16px 0 0; font-size: 20px; font-weight: 800; color: #0e1116; }
.du-state p { margin: 8px 0 0; font-size: 14px; line-height: 1.55; color: #6b7280; }

.du-spin { animation: du-spin 0.9s linear infinite; }
@keyframes du-spin { to { transform: rotate(360deg); } }

@media (max-width: 599px) {
  .du-wrap { padding-top: 20px; }
  .du-card { padding: 16px; border-radius: 20px; }
  .du-acts { width: 100%; margin: 8px 0 0; }
  .du-file { flex-wrap: wrap; }
}
