/* Registration: one page scroller, readable fields and native file selection. */
.wrap { max-width: 640px; }
.brand { margin-bottom: 14px; }
.progress-shell, .card { box-shadow: none; }
.card { background: #0d1b30; border-radius: 20px; }
.intro { font-size: 15px; line-height: 1.5; }
.file-picker {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 52px;
  width: 100%;
  border: 1px solid #4a6794;
  border-radius: 12px;
  background: #152a4c;
  color: #edf4ff;
  font-size: 15px;
  font-weight: 750;
  overflow: hidden;
}
.file-picker .file {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.file-picker:focus-within { outline: 3px solid #8eb8ff; outline-offset: 3px; }
.file-picker:has(.invalid) { border-color: #ff9292; background: #361b26; }
.file-state { white-space: normal; overflow-wrap: anywhere; line-height: 1.5; }
.doc-top { flex-wrap: wrap; gap: 8px; }
.doc-title { flex: 1 1 160px; font-size: 15px; line-height: 1.35; }
.doc-badge { font-size: 11px; }
.doc-help, .required-note { color: #b3c0d3; font-size: 13px; }
.review-docs li { min-width: 0; overflow-wrap: anywhere; line-height: 1.45; }
.review-docs li::before { flex: 0 0 20px; }
.action-inner { box-shadow: none; border-radius: 18px; }
.action-btn { border-radius: 12px; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid #8eb8ff;
  outline-offset: 3px;
}
@media (max-width: 460px) {
  h1 { font-size: 32px; line-height: 1.1; margin-top: 20px; }
  .page-nav { margin-bottom: 10px; }
  .brand img { width: 106px; }
  .progress-shell { padding: 13px; border-radius: 16px; }
  .card { padding: 16px; }
  .action-inner { grid-template-columns: minmax(80px,.38fr) minmax(0,1fr); padding: 8px; gap: 8px; }
  .action-btn { min-height: 52px; padding: 10px; }
  .role-card, .vehicle-card { border-radius: 14px; }
  .camera-shell video { height: clamp(220px,38dvh,300px); }
}
@media (max-width: 350px) {
  .review-item { display: grid; gap: 6px; }
  .review-value { text-align: left; max-width: 100%; }
  .save-state { font-size: 11px; padding-inline: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .step, .progress-fill { animation: none; transition: none; }
}

/* Keep the registration shell and actions inside the visible viewport. */
body[data-scroll-mode="viewport"] > .wrap {
  display: flex;
  flex-direction: column;
  width: min(100%, 640px);
  padding: max(8px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
}
body[data-scroll-mode="viewport"] > .wrap[hidden] { display: none; }
.page-nav { flex: 0 0 auto; min-height: 28px; margin-bottom: 6px; }
.save-state { min-height: 28px; max-width: 100%; font-size: 11px; }
.brand { flex: 0 0 auto; margin-bottom: 10px; }
.brand img { width: 96px; }
.brand-divider { height: 24px; }
.brand-product { font-size: 11px; }
#wizard { flex: 1 1 auto; min-height: 0; scrollbar-width: thin; }
.progress-shell { padding: 10px 12px; border-radius: 14px; }
.progress-track { margin-top: 8px; height: 5px; }
h1 { font-size: clamp(24px, 6.8vw, 34px); margin: 14px 0 7px; line-height: 1.1; }
.intro { font-size: 14px; line-height: 1.4; margin-bottom: 12px; }
h2 { font-size: 18px; line-height: 1.25; }
.card { padding: 14px; margin: 8px 0; }
.card-lead { font-size: 14px; line-height: 1.4; margin-bottom: 12px; }
.role-card { min-height: 104px; padding: 12px; font-size: 16px; }
.role-card .icon { font-size: 24px; margin-bottom: 8px; }
.rule { font-size: 12px; line-height: 1.4; padding: 10px; margin-top: 10px; }
.action-bar { position: static; flex: 0 0 auto; padding: 8px 0 0; background: none; }
.action-inner { padding: 6px; gap: 8px; }
.action-btn { min-height: 48px; }
#success { min-height: 0; overflow-y: auto; touch-action: pan-y; }
@media (max-height: 650px) {
  .page-nav { margin-bottom: 2px; }
  .brand { margin-bottom: 6px; }
  h1 { margin-top: 10px; font-size: 24px; }
  .intro, .card-lead { font-size: 13px; margin-bottom: 8px; }
  .role-card { min-height: 92px; }
}

.progress-shell { flex:0 0 auto; margin-bottom:4px; }
.field { margin:10px 0; }
.input { min-height:48px; padding:12px; }
@media (max-width:480px) { #pageTitle { font-size:clamp(24px,6.8vw,30px); } }
