/* Original scanner graphics, scoped inside the Veri-Hub capture panel. */
.fingerprint-visual {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin: 4px 0 20px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, #f6f8fb, #f6f8fb);
}

.fingerprint-frame {
  position: relative;
  display: grid;
  place-items: center;
  width: 128px;
  height: 128px;
  overflow: hidden;
  border: 2px solid #a9bccb;
  border-radius: 22px;
  background: #ffffff;
  color: #17344c;
  transition: color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.fingerprint-frame > svg {
  width: 84px;
  height: 84px;
}

.fingerprint-beam {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
  box-shadow: 0 0 14px 4px rgba(23,59,91,0.45);
  opacity: 0;
}

.fingerprint-visual.scanning .fingerprint-frame {
  color: var(--green);
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(23,59,91,0.12), 0 0 24px rgba(23,59,91,0.25);
  animation: fingerprint-glow 1.4s ease-in-out infinite;
}

.fingerprint-visual.scanning .fingerprint-beam {
  opacity: 1;
  animation: fingerprint-sweep 1.6s ease-in-out infinite;
}

.fingerprint-visual.done .fingerprint-frame { color: #16a34a; border-color: #16a34a; background: #f8fafc; }
.fingerprint-visual.failed .fingerprint-frame { color: #dc2626; border-color: #dc2626; background: #fef2f2; }

.fingerprint-badge {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: #ffffff;
}

.fingerprint-badge.ok { background: #16a34a; }
.fingerprint-badge.bad { background: #dc2626; }

.fingerprint-caption {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
}

.fingerprint-visual.scanning .fingerprint-caption { color: var(--green-deep); }

@keyframes fingerprint-sweep {
  0% { top: 0; }
  50% { top: calc(100% - 3px); }
  100% { top: 0; }
}

@keyframes fingerprint-glow {
  50% { box-shadow: 0 0 0 7px rgba(23,59,91,0.08), 0 0 34px rgba(23,59,91,0.35); }
}

@media (prefers-reduced-motion: reduce) {
  .fingerprint-visual.scanning .fingerprint-frame,
  .fingerprint-visual.scanning .fingerprint-beam,
  .scanner-pill .scanner-pill-dot { animation: none; }
}


.scanner-art { position: relative; display: grid; place-items: center; width: 170px; height: 170px; }
.scanner-orbit { position: absolute; border: 1px solid #dce4ec; border-radius: 50%; pointer-events: none; }
.scanner-orbit-outer { inset: 0; border-style: dashed; opacity: .7; }
.scanner-orbit-inner { inset: 12px; }
.scanner-control-card .fingerprint-frame { width: 122px; height: 122px; border: 1px solid #c9d5e2; border-radius: 50%; background: linear-gradient(145deg, #ffffff, #f6f8fb); box-shadow: 0 6px 24px #17344c0d; }
.scanner-control-card .fingerprint-frame > svg { width: 76px; height: 76px; }
.captured-fingerprint-preview { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; background: #f5f5f5; filter: grayscale(1) contrast(1.12); }
.scanner-control-card .fingerprint-badge { right: 13px; bottom: 12px; }
.scanner-eyebrow { color: var(--scanner-accent); font-size: .62rem; letter-spacing: .16em; font-weight: 800; }
.scanner-preview-unavailable { display: inline-flex; margin-top: 13px; color: var(--scanner-muted); font-size: .68rem; line-height: 1.4; }
.scanner-preview-synthetic { display: inline-flex; margin-top: 13px; color: var(--scanner-muted); font-size: .68rem; line-height: 1.4; }
.scanner-control-card .fingerprint-caption { margin: 9px 0; text-align: left; font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 750; letter-spacing: -.035em; color: var(--scanner-ink); }
.scanner-guidance { max-width: 360px; margin: 0; font-size: .82rem; line-height: 1.65; color: var(--scanner-muted); }
.scanner-countdown { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; margin-top: 14px; font-size: .72rem; color: var(--scanner-accent); background: var(--scanner-surface); border-radius: 7px; font-variant-numeric: tabular-nums; }
.scanner-countdown-dot { width: 6px; height: 6px; background: currentColor; border-radius: 50%; }
.scanner-quality-panel { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.scanner-quality-gauge { flex: 0 0 88px; width: 88px; height: 88px; position: relative; }
.scanner-quality-gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.scanner-quality-gauge circle { fill: none; stroke-width: 6; }
.quality-track { stroke: #e8ecf1; }
.quality-progress { stroke: var(--scanner-accent); stroke-linecap: round; }
.quality-value { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 750; line-height: 1.1; color: var(--scanner-ink); font-variant-numeric: tabular-nums; }
.quality-value small { margin-top: 3px; font-size: .62rem; font-weight: 500; color: var(--scanner-muted); }
.scanner-quality-copy { display: grid; gap: 5px; }
.scanner-quality-copy strong { font-size: .82rem; color: var(--scanner-ink); }
.scanner-quality-copy span { font-size: .72rem; color: var(--scanner-muted); line-height: 1.5; }

.live-capture-panel{--scanner-accent:#17344c;--scanner-surface:#f4f7fa;--scanner-ink:#142636;--scanner-muted:#536b80;--green:#17344c;--green-deep:#17344c}
.live-capture-panel .fingerprint-visual{grid-template-columns:170px minmax(0,1fr);align-items:center;justify-items:stretch;gap:26px;border:1px solid #dce4ec;background:radial-gradient(ellipse at 8% 40%,#eef4f9,transparent 70%),#fff;padding:24px;margin:18px 0;border-radius:18px}
.live-capture-panel .fingerprint-frame{width:122px;height:122px;border-radius:50%;border-width:1px}
.live-capture-panel .fingerprint-caption{text-align:left}
.live-capture-panel [hidden]{display:none!important}
.live-capture-panel select{width:100%;padding:12px;border:1px solid #dce4ec;border-radius:12px;background:#fff;color:#17344c}
.live-capture-panel .scanner-quality-panel{margin-top:14px}
.live-capture-panel #live-verification-message{white-space:pre-line;overflow-wrap:anywhere}
@media(max-width:580px){.live-capture-panel .fingerprint-visual{grid-template-columns:1fr;justify-items:center;text-align:center;padding:18px}.live-capture-panel .fingerprint-caption{text-align:center}.live-capture-panel .scanner-quality-panel{justify-content:center}}

.nira-stage-list{list-style:none;padding:0;margin:18px 0;display:grid;gap:8px}.nira-stage-list li{display:flex;gap:10px;align-items:center;padding:12px 14px;border:1px solid #dce4ec;border-radius:12px;background:#fff;font-size:13px;color:#526b7f}.nira-stage-list li.processing{border-color:#17344c;color:#17344c;background:#f1f6fa}.nira-stage-list li.completed{color:#237244}.nira-stage-list li.failed{color:#a63e33}.nira-stage-list small{margin-left:auto;white-space:nowrap}.nira-stage-icon{font-weight:800;width:18px}.nira-response-card{border:1px solid #dce4ec;border-radius:16px;background:#fff;padding:18px;margin:18px 0;color:#17344c}.nira-response-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.nira-response-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:18px 0}.nira-response-facts>div{display:grid;gap:5px;overflow-wrap:anywhere}.nira-response-facts span{font-size:11px;color:#61798c}.nira-response-facts strong{font-size:13px}.nira-response-card pre{font:11px/1.6 monospace;max-height:350px;overflow:auto;padding:14px;background:#f5f8fa;border-radius:12px;white-space:pre-wrap;overflow-wrap:anywhere}.nira-response-card summary{cursor:pointer;font-size:12px;font-weight:700}@media(max-width:480px){.nira-response-facts{grid-template-columns:1fr}.nira-stage-list li{font-size:11px}}
.badge.valid{background:#e9f4ee;color:#276347;border-color:#cce2d5}.badge.invalid{background:#fff0e9;color:#a34c2c;border-color:#f4d6c4}
