.hid-scan-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.6);
  z-index: 6500;
}

.hid-scan-overlay.d-none {
  display: none;
}

.hid-scan-card {
  width: min(92vw, 460px);
  background: #ffffff;
  border-radius: 16px;
  padding: 26px 24px 22px;
  text-align: center;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.2);
}

.hid-scan-header h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
}

.hid-scan-header p {
  margin: 0 0 18px;
  color: #475569;
  font-size: 14px;
}

.hid-scan-status {
  display: inline-block;
  margin-bottom: 18px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: #e2e8f0;
  color: #475569;
}

.hid-scan-status.is-success {
  background: rgba(16, 185, 129, 0.15);
  color: #0f766e;
}

.hid-scan-status.is-error {
  background: rgba(239, 68, 68, 0.15);
  color: #991b1b;
}

.hid-scan-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.hid-scan-capture {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  height: 1px;
  width: 1px;
  border: 0;
  padding: 0;
}

body.hid-scan-open {
  overflow: hidden;
}
