/* Public verification flow — light minimal UI (matches face-prep reference) */
:root {
  --v-bg: #ffffff;
  --v-text: #000000;
  --v-muted: #8e8e93;
  --v-border: #e8e8e8;
  --v-track: #e5e5ea;
  --v-fill: #000000;
  --v-art-bg: #f2f2f7;
  --v-card: #ffffff;
  --v-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  --v-radius: 16px;
  --v-radius-lg: 20px;
  --v-blue: #5856d6;
  --v-danger: #c62828;
  --v-danger-bg: #ffebee;
}

* {
  box-sizing: border-box;
}

body.verify-app {
  margin: 0;
  min-height: 100vh;
  font-family: "Lay Grotesk", Verdana, sans-serif;
  background: var(--v-bg);
  color: var(--v-text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.verify-app a {
  color: var(--v-text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.verify-app a:hover {
  opacity: 0.7;
}

.verify-wrap {
  max-width: 420px;
  margin: 0 auto;
  padding: 0.5rem 1.25rem 2.5rem;
}

.verify-page-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
  color: var(--v-text);
  letter-spacing: -0.02em;
}

.verify-page-lead {
  color: var(--v-muted);
  font-size: 0.8rem;
  margin: 0 0 0.5rem;
}

/* Client invite details (wizard intro) */
.verify-invite-summary {
  margin: 0 0 1.125rem;
  padding: 0;
  background: var(--v-art-bg);
  border: 1px solid var(--v-border);
  border-radius: var(--v-radius);
  box-shadow: var(--v-shadow);
  text-align: left;
  overflow: hidden;
}

.verify-invite-summary__head {
  padding: 0.9rem 1.1rem 0.75rem;
  border-bottom: 1px solid var(--v-border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0.2) 100%);
}

.verify-invite-summary__title {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--v-text);
  line-height: 1.3;
}

.verify-invite-summary__grid {
  margin: 0;
  padding: 0;
}

.verify-invite-summary__row {
  display: grid;
  grid-template-columns: minmax(5.75rem, 36%) 1fr;
  gap: 0.45rem 0.85rem;
  align-items: baseline;
  padding: 0.4rem 1.1rem;
  border-bottom: 1px solid var(--v-border);
  transition: background 0.15s ease;
}

.verify-invite-summary__row:last-child {
  border-bottom: none;
}

@media (hover: hover) {
  .verify-invite-summary__row:hover {
    background: rgba(255, 255, 255, 0.35);
  }
}

@media (max-width: 360px) {
  .verify-invite-summary__row {
    grid-template-columns: 1fr;
    gap: 0.2rem;
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
  }
}

.verify-invite-summary__row dt {
  margin: 0;
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--v-muted);
  line-height: 1.35;
}

.verify-invite-summary__row dd {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--v-text);
  word-break: break-word;
  line-height: 1.45;
}

.verify-invite-summary__placeholder {
  color: var(--v-muted);
  font-weight: 400;
}

.verify-invite-summary__code {
  display: inline-block;
  max-width: 100%;
  padding: 0.22rem 0.55rem;
  font-size: 0.8125rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--v-text);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--v-border);
  border-radius: 8px;
  word-break: break-all;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.verify-invite-summary--fallback {
  padding: 1rem 1.1rem;
}

.verify-invite-summary--fallback .verify-invite-summary__fallback-ref {
  margin: 0 0 0.5rem;
  font-size: 0.9375rem;
  color: var(--v-text);
  line-height: 1.45;
}

.verify-invite-summary--fallback .verify-invite-summary__fallback-hint {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--v-muted);
  line-height: 1.5;
}

.verify-invite-required__title {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.65rem;
  color: var(--v-text);
}

.verify-invite-required__text {
  margin: 0 0 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--v-text);
}

.verify-invite-required__hint {
  margin: 0;
}

.verify-invite-code-form {
  margin: 0 0 1rem;
  text-align: left;
}

.verify-invite-code-form__label {
  display: block;
  color: var(--v-muted);
  font-size: 0.8125rem;
  margin-bottom: 0.35rem;
}

.verify-invite-code-form__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: stretch;
}

.verify-invite-code-form__input {
  flex: 1 1 12rem;
  min-width: 0;
  padding: 0.8rem 1rem;
  border: 1.5px solid #c5c5c5;
  background: #fff;
  color: var(--v-text);
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.verify-invite-code-form__input::placeholder {
  color: #8e8e8e;
}

.verify-invite-code-form__input:focus {
  border-color: #2d5fba;
}

.verify-invite-code-form__btn {
  flex: 0 0 auto;
  margin: 0 !important;
  white-space: nowrap;
}

.verify-pending-review {
  text-align: center;
}

.verify-pending-review__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 0.75rem;
  border-radius: 50%;
  background: var(--v-art-bg);
  color: var(--v-text);
}

.verify-pending-review__icon svg {
  opacity: 0.85;
}

.verify-pending-review__title {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.65rem;
  color: var(--v-text);
}

.verify-pending-review__text {
  margin: 0 0 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--v-text);
  text-align: left;
}

.verify-pending-review__hint {
  margin: 0;
  text-align: left;
}

/* Progress bar */
.verify-progress {
  height: 4px;
  border-radius: 2px;
  background: var(--v-track);
  overflow: hidden;
  margin-bottom: 0.3rem;
}

.verify-progress__fill {
  height: 100%;
  background: var(--v-fill);
  border-radius: 2px;
  width: 25%;
  transition: width 0.35s ease;
}

.verify-step-meta {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  color: var(--v-muted);
}

/* Cards */
.verify-app .card {
  background: var(--v-card);
  border: 1px solid var(--v-border);
  border-radius: var(--v-radius);
  padding: 0.8rem 0.8rem;
  margin-bottom: 1rem;
  box-shadow: var(--v-shadow);
}

.verify-app .card > p:first-child {
  margin-top: 0;
}

.verify-app .card p {
  color: #525252;
  font-size: 0.85rem;
}

.verify-app .sub {
  color: var(--v-muted);
  font-size: 0.75rem;
  margin-bottom: 0.75rem;
}

/* Ensure hidden works (label { display:block } can beat [hidden] in some browsers) */
.verify-app #frontUploadBlock[hidden],
.verify-app #backUploadBlock[hidden],
.verify-app label.upload-zone[hidden] {
  display: none !important;
}

.verify-app .cam-panel[hidden] {
  display: none !important;
}

/* Upload zone */
label.upload-zone {
  display: block;
  border: 2px dashed #d1d1d6;
  border-radius: 12px;
  padding: 1rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  background: #fafafa;
}

label.upload-zone:hover,
label.upload-zone.dragover {
  border-color: var(--v-text);
  background: #f5f5f7;
}

.upload-zone input[type="file"] {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
}

/* Buttons */
.verify-app .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.2rem;
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: inherit;
  border: 1.5px solid #6ea8e6;
  border-radius: 10px;
  cursor: pointer;
  background: #6ea8e6;
  color: #fff;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.verify-app .btn:hover:not(:disabled) {
  background: #5a96d6;
  border-color: #5a96d6;
  opacity: 1;
}

.verify-app .btn:active:not(:disabled) {
  background: #4e87c4;
  border-color: #4e87c4;
}

.verify-app .btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.verify-app .btn-secondary {
  background: #fff;
  color: var(--v-text);
  border: 1.5px solid #c5c5c5;
}

.verify-app .btn-secondary:hover:not(:disabled) {
  background: #f7f7f7;
  border-color: #aaa;
  opacity: 1;
}

.verify-app .btn-ghost {
  background: transparent;
  color: var(--v-text);
  border: 1.5px solid #c5c5c5;
  border-radius: 10px;
}

.verify-app .btn-ghost:hover:not(:disabled) {
  background: #f7f7f7;
  border-color: #aaa;
  opacity: 1;
}

.row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.choice-row {
  margin-bottom: 0.75rem;
}

/* Bottom toolbar: Back + File + Camera (step 2) or File + Camera (step 1) */
.step-action-bar {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.8rem;
  border-top: 1px solid var(--v-border);
}

.step-action-bar--two .step-action,
.step-action-bar--three .step-action {
  flex: 1;
  min-width: 0;
}

/* ID / bill upload / face selfie: hide bottom toolbar when camera mode is open */
.verify-app .step-action-bar.step-action-bar--three,
.verify-app #faceStepToolbar {
  max-height: 9rem;
  transition:
    opacity 0.28s ease,
    transform 0.28s cubic-bezier(0.33, 1, 0.68, 1),
    max-height 0.34s ease,
    margin-top 0.32s ease,
    padding-top 0.32s ease,
    border-top-width 0.22s ease,
    border-top-color 0.22s ease;
}

.verify-app #faceStepToolbar {
  max-height: 6rem;
}

.verify-app .step-action-bar.step-action-bar--three.step-action-bar--hidden-for-cam,
.verify-app #faceStepToolbar.step-action-bar--hidden-for-cam {
  opacity: 0;
  transform: translateY(0.65rem);
  max-height: 0;
  margin-top: 0;
  padding-top: 0;
  border-top-width: 0;
  border-top-color: transparent;
  overflow: hidden;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .verify-app .step-action-bar.step-action-bar--three,
  .verify-app #faceStepToolbar {
    transition-duration: 0.01ms;
  }

  .verify-app .step-action-bar.step-action-bar--three.step-action-bar--hidden-for-cam,
  .verify-app #faceStepToolbar.step-action-bar--hidden-for-cam {
    transform: none;
  }
}

.step-action-bar--single {
  justify-content: center;
}

.step-action-bar--single.step-action-bar--align-end {
  justify-content: flex-end;
}

.step-action-bar--single .step-action {
  flex: 0 1 auto;
  min-width: 5.75rem;
  padding-left: 1.35rem;
  padding-right: 1.35rem;
}

/* When primary is first in markup (e.g. Datei then Kamera), show primary on the right */
.step-action-bar--two.step-action-bar--primary-right {
  flex-direction: row-reverse;
}

.step-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.55rem 0.6rem;
  border: 1.5px solid #c5c5c5;
  border-radius: 10px;
  background: #fff;
  color: var(--v-text);
  cursor: pointer;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.1s ease;
}

.step-action:hover:not(:disabled) {
  background: #f7f7f7;
  border-color: #aaa;
}

.step-action:active:not(:disabled) {
  transform: scale(0.97);
  background: #efefef;
}

.step-action:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.step-action--primary {
  background: #6ea8e6;
  color: #fff;
  border-color: #6ea8e6;
}

.step-action--primary:hover:not(:disabled) {
  background: #5a96d6;
  border-color: #5a96d6;
}

.step-action--primary:active:not(:disabled) {
  background: #4e87c4;
  border-color: #4e87c4;
  transform: scale(0.97);
}

.step-action__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  color: inherit;
}

.step-action__label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: inherit;
}

.cam-panel {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--v-border);
}

/* Face step — reference layout */
.face-prep__title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.65rem;
  color: var(--v-text);
  letter-spacing: -0.02em;
}

.face-prep__lead {
  margin: 0 0 1.25rem;
  font-size: 0.85rem;
  color: var(--v-muted);
  line-height: 1.45;
}

/* Ausweisprüfung — document type list (Personalausweis / Reisepass) */
.id-doc-type-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 0 0 1rem;
}

.id-doc-type-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  margin: 0;
  padding: 0.6rem 0.85rem;
  border: 1px solid #e6e9ef;
  background: #f6f7fa;
  box-shadow: 0 1px 2px rgba(0, 24, 60, 0.04);
  color: #00183c;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.id-doc-type-row:hover {
  border-color: rgba(48, 150, 255, 0.4);
  background: #f0f5fc;
  box-shadow: 0 2px 6px rgba(0, 24, 60, 0.06);
}

.id-doc-type-row:active {
  transform: scale(0.998);
}

.id-doc-type-row--selected {
  border-color: rgba(48, 150, 255, 0.55);
  background: #e9f3ff;
  box-shadow: 0 0 0 1px rgba(98, 175, 255, 0.28);
}

.id-doc-type-row__icon-ring {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: none;
}

.id-doc-type-row__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.id-doc-type-row__icon img {
  width: auto;
  height: auto;
  max-width: 3.5rem;
  max-height: 3.5rem;
  object-fit: contain;
  display: block;
}

.id-doc-type-row__text {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
}

.id-doc-type-row__label {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: #00183c;
  line-height: 1.2;
}

.id-doc-type-row__sub {
  font-size: 0.6875rem;
  font-weight: 500;
  color: #6b7280;
  line-height: 1.25;
}

/* ID front/back — specimen reference thumbnails */
.id-specimen {
  margin: 0 0 1rem;
  padding: 1rem 1rem 0.85rem;
  text-align: center;
  background: var(--v-art-bg);
  border-radius: var(--v-radius-lg);
}

.id-specimen img {
  width: 100%;
  max-width: 200px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 10px;
  box-shadow: var(--v-shadow);
  border: 1px solid var(--v-border);
}

.id-specimen__cap {
  margin: 0.65rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--v-muted);
}

.face-prep__art {
  background: var(--v-art-bg);
  border-radius: var(--v-radius-lg);
  padding: 1.5rem 1.25rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.face-prep__video {
  width: 100%;
  max-width: 280px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 12px;
  background: #000;
  object-fit: contain;
  -webkit-touch-callout: none;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.face-prep__tips {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 17rem;
}

.face-prep__tips li {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  color: var(--v-muted);
  line-height: 1.35;
}

.face-prep__tips li:last-child {
  margin-bottom: 0;
}

.face-prep__icon {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  margin-top: 0.1rem;
  color: var(--v-muted);
  opacity: 0.9;
}

.face-prep__icon svg {
  width: 14px;
  height: 14px;
  display: block;
}

.face-live {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--v-border);
}

.face-live__label {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--v-text);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.face-live__viewport {
  position: relative;
  border-radius: var(--v-radius-lg);
  overflow: hidden;
  background: #000;
  margin-bottom: 1rem;
  min-height: min(72vh, 520px);
  isolation: isolate;
}

.face-viewport__start {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.28);
  z-index: 2;
  pointer-events: auto;
}

.face-viewport__start[hidden] {
  display: none !important;
  pointer-events: none;
}

/* Live camera overlay: face frame + hint + capture (matches mobile selfie UI) */
.face-live-ui {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0) 42%,
    rgba(0, 0, 0, 0.35) 68%,
    rgba(0, 0, 0, 0.88) 88%,
    #000 100%
  );
}

.face-live-ui[hidden] {
  display: none !important;
}

.face-live-ui__frame-area {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8% 6% 0.35rem;
  pointer-events: none;
}

/* Stadium / capsule — vertical face oval */
.face-frame-guide {
  width: min(76%, 15.5rem);
  aspect-ratio: 3 / 4.1;
  max-height: min(58vh, 26rem);
  min-height: 12.5rem;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
  background: transparent;
  flex-shrink: 0;
}

/* Beat .verify-app .card p { color } */
.verify-app .face-live-ui .face-frame-hint {
  position: relative;
  z-index: 1;
  margin: 0 auto;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  color: #ffffff !important;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: center;
  max-width: calc(100% - 2rem);
  line-height: 1.35;
  pointer-events: none;
  text-shadow:
    0 0 1px rgba(0, 0, 0, 1),
    0 1px 4px rgba(0, 0, 0, 0.85),
    0 0 18px rgba(0, 0, 0, 0.55);
  -webkit-text-fill-color: #ffffff;
}

.face-live-ui__footer {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  padding: 0.65rem 1rem 1.15rem;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: auto;
}

.face-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.face-icon-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.face-icon-btn:not(:disabled):active {
  transform: scale(0.94);
}

.face-icon-btn--start {
  width: 4.25rem;
  height: 4.25rem;
  background: #fff;
  color: #000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.face-icon-btn--start:hover:not(:disabled) {
  opacity: 0.95;
}

/* White circle + camera icon (after camera starts) */
.face-icon-btn--capture-scan {
  width: 3.85rem;
  height: 3.85rem;
  background: #fff;
  color: #000;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.38);
}

.face-icon-btn--capture-scan:hover:not(:disabled) {
  opacity: 0.94;
}

.face-icon-btn__scan-icon {
  display: block;
}

/* Fill the viewport so overlays never sit over empty letterboxing (was all black on mobile) */
.face-live__viewport .face-video,
.verify-app .face-live__viewport #videoPreview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  display: block;
  object-fit: cover;
  object-position: center center;
  background: #000;
  z-index: 0;
  transform: translateZ(0);
}

.verify-app .id-video {
  width: 100%;
  max-height: 400px;
  border-radius: 12px;
  background: #000;
  object-fit: cover;
}

/* ID front/back camera: taller preview + overlay icon controls */
.id-cam-viewport {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #1a1a1a;
  margin-top: 0.5rem;
}

.id-cam-viewport--tall {
  min-height: min(46vh, 400px);
}

.verify-app #videoFront.id-video--tall,
.verify-app #videoBack.id-video--tall,
.id-video--tall {
  width: 100%;
  min-height: min(40vh, 300px);
  height: min(53vh, 400px);
  max-height: min(52vh, 400px);
  display: block;
  object-fit: cover;
  object-position: center center;
  border-radius: 0;
  background: #111;
  position: relative;
  z-index: 0;
}

.id-cam-start {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.28);
  z-index: 2;
  pointer-events: auto;
}

.id-cam-start[hidden] {
  display: none !important;
  pointer-events: none;
}

.id-cam-live {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  pointer-events: none;
  padding-bottom: 0.25rem;
}

.id-cam-live[hidden] {
  display: none !important;
}

/* Must beat .verify-app .card p { color } */
.verify-app .cam-panel .id-cam-hint {
  margin: 0 auto 0.5rem;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  color: #ffffff !important;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-align: center;
  max-width: calc(100% - 1.5rem);
  line-height: 1.35;
  text-shadow:
    0 0 1px rgba(0, 0, 0, 1),
    0 1px 4px rgba(0, 0, 0, 0.85),
    0 0 16px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  -webkit-text-fill-color: #ffffff;
}

.id-cam-footer {
  flex-shrink: 0;
  padding: 0.65rem 1rem 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: auto;
}

.id-cam-panel-actions {
  margin-top: 0.85rem;
  display: flex;
  justify-content: center;
}

.id-cam-panel-actions .step-action--compact {
  flex: 0 1 auto;
  min-width: 5.75rem;
  padding-left: 1.2rem;
  padding-right: 1.2rem;
}

/* Messages */
.verify-app .msg {
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 0.875rem;
  margin-top: 1rem;
}

.verify-app .msg.error {
  background: var(--v-danger-bg);
  color: var(--v-danger);
}

.verify-app .msg.ok {
  background: #e8f5e9;
  color: #2e7d32;
}

.verify-app .ref-box {
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 1rem;
  padding: 0.85rem 1rem;
  background: var(--v-art-bg);
  border-radius: 10px;
  word-break: break-all;
  margin: 1rem 0;
  border: 1px solid var(--v-border);
}

.verify-success-hero {
  text-align: center;
  padding: 0.25rem 0 0.5rem;
}

.verify-success-hero__icon {
  width: 4.5rem;
  height: 4.5rem;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #e8f5e9;
  color: #2e7d32;
}

.verify-success-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 0.65rem;
  letter-spacing: -0.02em;
  color: var(--v-text);
}

.verify-success-lead {
  margin: 0 auto 1.25rem;
  max-width: 22rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--v-text);
}

.verify-success-sub {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0 auto;
  max-width: 24rem;
  text-align: left;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: var(--v-art-bg);
  border: 1px solid var(--v-border);
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--v-muted);
}

.verify-success-sub__icon {
  flex-shrink: 0;
  margin-top: 0.1rem;
  color: var(--v-muted);
  display: flex;
}

/* Status page */
.verify-app .status-lookup-title {
  font-size: 1.375rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.verify-app .form-row {
  margin-bottom: 1rem;
}

.verify-app .form-row label {
  display: block;
  color: var(--v-muted);
  font-size: 0.8125rem;
  margin-bottom: 0.35rem;
}

.verify-app .form-row input,
.verify-app .form-row textarea {
  width: 100%;
  max-width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--v-border);
  background: #fafafa;
  color: var(--v-text);
  border-radius: 10px;
  font-size: 1rem;
}

.verify-app .badge.pending {
  background: #fff8e1;
  color: #f57f17;
}

.verify-app .badge.in_progress {
  background: #e0f2fe;
  color: #0369a1;
}

.verify-app .badge.approved {
  background: #e8f5e9;
  color: #2e7d32;
}

.verify-app .badge.rejected {
  background: #ffebee;
  color: #c62828;
}

/* Full-screen loading (wizard uploads, camera, submit) */
body.verify-app.verify-loading-on {
  overflow: hidden;
  touch-action: none;
}

.verify-app .verify-loading {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
}

.verify-app .verify-loading[hidden] {
  display: none !important;
}

.verify-app .verify-loading__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.verify-app .verify-loading__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 2rem;
  min-width: 200px;
  max-width: 90vw;
  background: var(--v-card);
  border: 1px solid var(--v-border);
  border-radius: var(--v-radius-lg);
  box-shadow: var(--v-shadow);
  text-align: center;
}

.verify-app .verify-loading__spinner {
  width: 42px;
  height: 42px;
  border: 3px solid var(--v-track);
  border-top-color: var(--v-fill);
  border-radius: 50%;
  animation: verify-loading-spin 0.7s linear infinite;
}

.verify-app .verify-loading__label {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--v-muted);
  line-height: 1.4;
}

@keyframes verify-loading-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .verify-app .verify-loading__spinner {
    animation: none;
    border-color: var(--v-border);
    border-top-color: var(--v-fill);
    opacity: 0.9;
  }
}

/* Wizard step: external link in iframe */
.verify-app .verify-iframe-card {
  text-align: left;
}

.verify-app .verify-iframe-placeholder {
  margin: 0;
  padding: 2rem 1.25rem;
  text-align: center;
  color: var(--v-muted);
  background: var(--v-art-bg);
  border-radius: var(--v-radius);
  border: 1px dashed var(--v-border);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.verify-app .verify-iframe-wrap {
  width: 100%;
  min-height: 280px;
  border: 1px solid var(--v-border);
  border-radius: var(--v-radius);
  overflow: hidden;
  background: #fff;
}

.verify-app .verify-wizard-iframe {
  display: block;
  width: 100%;
  height: min(70vh, 640px);
  border: 0;
}

/* Square corners: all wizard buttons */
.verify-app .step-action,
.verify-app .btn,
.verify-app .btn-secondary,
.verify-app .btn-ghost,
.verify-app .id-doc-type-row,
.verify-app .face-icon-btn--start,
.verify-app .face-icon-btn--capture-scan {
  border-radius: 0;
}
