.vin-capture {
  display: grid;
  gap: 10px;
  margin-top: -7px;
}
.vin-capture-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.vin-photo-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
}
.vin-capture-status {
  min-height: 18px;
  color: #526985;
  font-size: 10px;
  line-height: 1.5;
}
.vin-capture-status[data-state="success"] { color: #0b5c3f; font-weight: 700; }
.vin-capture-status[data-state="warning"] { color: #7c4900; }
.vin-capture-status[data-state="active"] { color: #0b3b75; }
.vin-camera-panel {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #071b3a;
}
.vin-scanner-open { overflow: hidden; }
.vin-camera-panel[hidden], .vin-decode-panel[hidden] { display: none; }
.vin-camera-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  padding: max(14px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) 14px max(18px, env(safe-area-inset-left));
  color: #fff;
  background: #071b3a;
}
.vin-camera-header > div { display: grid; gap: 3px; }
.vin-camera-header strong { font-size: 16px; }
.vin-camera-header span { color: #d7e4f4; font-size: 10px; line-height: 1.4; }
.vin-camera-close {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 999px;
  color: #fff;
  background: rgba(255,255,255,.08);
  font-size: 26px;
  line-height: 1;
}
.vin-camera-panel video {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: block;
  object-fit: cover;
  background: #071b3a;
}
.vin-scan-frame {
  position: absolute;
  inset: 38% 7% auto;
  min-height: 112px;
  display: grid;
  place-items: end center;
  padding: 10px;
  border: 2px solid rgba(255,255,255,.96);
  border-radius: 12px;
  box-shadow: 0 0 0 999px rgba(7,27,58,.34);
  pointer-events: none;
}
.vin-scan-frame span {
  padding: 5px 8px;
  border-radius: 999px;
  color: #071b3a;
  background: #fff;
  font-size: 9px;
  font-weight: 800;
}
.vin-camera-actions {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px max(18px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
  background: #071b3a;
}
.vin-camera-actions .button { color: #071b3a; background: #fff; }
.vin-camera-actions .text-button { color: #fff; }
.vin-decode-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 13px;
  border: 1px solid #c8d6e6;
  border-radius: 12px;
  background: #f4f8fd;
}
.vin-decode-panel > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}
.vin-decode-panel strong {
  color: #071b3a;
  font-size: 10px;
}
.vin-decode-panel span {
  color: #405875;
  font-size: 10px;
  line-height: 1.45;
}
.vin-decode-panel .button {
  flex: 0 0 auto;
}

@media (max-width: 560px) {
  .vin-capture-actions > * {
    flex: 1 1 calc(50% - 4px);
  }
  .vin-scan-frame {
    inset: 36% 5% auto;
    min-height: 98px;
  }
  .vin-decode-panel {
    align-items: stretch;
    flex-direction: column;
  }
  .vin-decode-panel .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vin-camera-panel *, .vin-decode-panel * { scroll-behavior: auto; }
}

