/* Full-screen Add Documents wizard */
.rdw-root {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  flex-direction: column;
  background: linear-gradient(165deg, #0b1438 0%, #132a8e 42%, #1e3a8a 100%);
  color: #fff;
  font-family: "DM Sans", ui-sans-serif, system-ui, sans-serif;
}
.rdw-root.is-open { display: flex; }
.rdw-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  padding-top: max(1rem, env(safe-area-inset-top));
}
.rdw-brand {
  font-family: "Plus Jakarta Sans", "DM Sans", sans-serif;
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  text-transform: uppercase;
  opacity: 0.8;
}
.rdw-close {
  border: 0;
  background: rgba(255,255,255,0.12);
  color: #fff;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  cursor: pointer;
}
.rdw-progress {
  display: flex;
  gap: 0.4rem;
  padding: 0 1.25rem 0.75rem;
}
.rdw-progress span {
  flex: 1;
  height: 0.28rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
}
.rdw-progress span.is-done { background: #ff7a1a; }
.rdw-progress span.is-active { background: #fff; }
.rdw-body {
  flex: 1;
  overflow: auto;
  padding: 0.5rem 1.25rem 1.5rem;
  padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
}
.rdw-card {
  background: #fff;
  color: #0e1116;
  border-radius: 1.5rem;
  padding: 1.35rem 1.2rem 1.4rem;
  box-shadow: 0 24px 60px rgba(0,0,0,0.28);
  max-width: 520px;
  margin: 0 auto;
}
.rdw-kicker {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #132a8e;
}
.rdw-title {
  margin: 0.35rem 0 0.4rem;
  font-family: "Plus Jakarta Sans", "DM Sans", sans-serif;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.rdw-sub {
  margin: 0;
  color: #6b7280;
  font-size: 0.92rem;
  line-height: 1.45;
}
.rdw-drop {
  margin-top: 1.15rem;
  border: 1.5px dashed #d1d5db;
  border-radius: 1.15rem;
  background: #f8fafc;
  padding: 1.4rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.rdw-drop:hover, .rdw-drop.is-drag {
  border-color: #132a8e;
  background: #eef2ff;
}
.rdw-drop strong { display: block; margin-top: 0.35rem; font-size: 0.95rem; }
.rdw-drop span { display: block; margin-top: 0.2rem; font-size: 0.78rem; color: #6b7280; }
.rdw-preview {
  margin-top: 1rem;
  border-radius: 1rem;
  overflow: hidden;
  background: #0e1116;
  aspect-ratio: 16/10;
  position: relative;
}
.rdw-preview img, .rdw-preview embed {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.rdw-meta {
  margin-top: 0.85rem;
  display: grid;
  gap: 0.45rem;
}
.rdw-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}
.rdw-pill.ok { background: #ecfdf5; color: #047857; }
.rdw-pill.warn { background: #fff7ed; color: #c2410c; }
.rdw-pill.bad { background: #fef2f2; color: #b91c1c; }
.rdw-fields {
  margin-top: 0.75rem;
  background: #f8fafc;
  border-radius: 0.9rem;
  padding: 0.75rem 0.85rem;
  font-size: 0.82rem;
}
.rdw-fields dt { color: #6b7280; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.rdw-fields dd { margin: 0.1rem 0 0.55rem; font-weight: 700; }
.rdw-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.15rem;
}
.rdw-btn {
  border: 0;
  border-radius: 999px;
  padding: 0.8rem 1.15rem;
  font-weight: 800;
  font-size: 0.88rem;
  cursor: pointer;
  font-family: inherit;
}
.rdw-btn-primary {
  background: linear-gradient(135deg, #ff7a1a, #f97316);
  color: #fff;
  box-shadow: 0 10px 24px rgba(249,115,22,0.35);
  flex: 1;
}
.rdw-btn-secondary {
  background: #eef2ff;
  color: #132a8e;
}
.rdw-btn-ghost {
  background: transparent;
  color: #6b7280;
}
.rdw-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.rdw-err {
  margin-top: 0.75rem;
  color: #b91c1c;
  font-size: 0.85rem;
  font-weight: 600;
}
.rdw-done-list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}
.rdw-done-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.65rem 0;
  border-bottom: 1px solid #eef0f3;
  font-size: 0.9rem;
  font-weight: 600;
}
