.spdf-wizard { max-width: 640px; margin: 0 auto; font-family: -apple-system, sans-serif; }
.spdf-steps { display: flex; gap: 16px; margin-bottom: 24px; }
.spdf-step { opacity: .4; font-weight: 600; }
.spdf-step.active { opacity: 1; }
.spdf-step span { display: inline-block; width: 22px; height: 22px; border-radius: 50%; background: #111; color: #fff; text-align: center; margin-right: 6px; font-size: 13px; }

.spdf-panel label { display: block; margin: 14px 0 6px; font-weight: 600; font-size: 14px; }
.spdf-panel input[type=text], .spdf-panel input[type=number], .spdf-panel input[type=email], .spdf-panel select {
  width: 100%; padding: 10px 12px; border: 1px solid #ddd; border-radius: 8px; font-size: 14px; box-sizing: border-box;
}
.spdf-dropzone { border: 2px dashed #bbb; border-radius: 12px; padding: 40px 20px; text-align: center; cursor: pointer; color: #666; }
.spdf-dropzone.dragover { border-color: #111; background: #fafafa; }
.spdf-hint { font-size: 12px; color: #888; margin-top: 6px; }

.spdf-btn { background: #111; color: #fff; border: none; padding: 12px 20px; border-radius: 8px; cursor: pointer; font-weight: 600; margin-top: 18px; }
.spdf-btn:disabled { background: #ccc; cursor: not-allowed; }
.spdf-btn-secondary { background: #eee; color: #111; margin-right: 8px; }

.spdf-link-row { display: flex; gap: 8px; }
.spdf-link-row input { flex: 1; }
#spdf-qr { margin: 16px 0; }
.spdf-codes { display: flex; gap: 24px; margin-top: 12px; }
.spdf-codes > div { background: #f7f7f7; padding: 10px 14px; border-radius: 8px; font-family: monospace; }

.spdf-records input { width: 60%; margin-right: 8px; }
.spdf-records-log { border-bottom: 1px solid #eee; padding: 8px 0; font-size: 13px; }

/* ---- Secure viewer ---- */
body.spdf-secure-body { margin: 0; background: #1e1e1e; -webkit-user-select: none; user-select: none; }
#spdf-viewer-root { position: relative; min-height: 100vh; }
#spdf-toolbar { position: sticky; top: 0; background: #111; color: #fff; padding: 10px 16px; display: flex; justify-content: space-between; font-family: sans-serif; z-index: 10; }
#spdf-pages { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 20px 0 60px; }
#spdf-pages canvas { max-width: 95vw; box-shadow: 0 2px 10px rgba(0,0,0,.4); }
#spdf-watermark-layer { position: fixed; inset: 0; pointer-events: none; z-index: 5; overflow: hidden; opacity: .18; color: #fff; font-size: 14px; }
#spdf-watermark-layer span { position: absolute; transform: rotate(-30deg); white-space: nowrap; }
#spdf-session-ended { position: fixed; inset: 0; background: rgba(0,0,0,.92); color: #fff; display: flex; align-items: center; justify-content: center; font-family: sans-serif; font-size: 20px; z-index: 20; }

.spdf-gate { max-width: 380px; margin: 100px auto; font-family: sans-serif; text-align: center; }
.spdf-gate input { width: 100%; padding: 10px; margin: 8px 0; border-radius: 8px; border: 1px solid #ddd; box-sizing: border-box; }
.spdf-gate button { background: #111; color: #fff; border: none; padding: 10px 18px; border-radius: 8px; cursor: pointer; }
