:root {
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #192b45;
  background: #f5f7fb;
  font-size: 15px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  background: white;
  padding: 20px 6%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e1e7ee;
}
.brand {
  color: #163b70;
  text-decoration: none;
  display: flex;
  gap: 12px;
  align-items: center;
  font-weight: 850;
  font-size: 23px;
  letter-spacing: 1px;
}
.brand small {
  display: block;
  font-size: 12px;
  letter-spacing: 0;
  font-weight: 550;
  margin-top: 4px;
  color: #65758a;
}
.brand-mark {
  background: #1954a5;
  color: white;
  border-bottom: 5px solid #efc43c;
  border-radius: 8px;
  padding: 10px 15px;
  font-size: 29px;
}
.role {
  font-size: 11px;
  color: #65758a;
}
.role select {
  font-size: 13px;
  min-height: 38px;
  margin-top: 3px;
}
.demo {
  padding: 12px 6%;
  background: #fff5d0;
  font-size: 12px;
  color: #695314;
  line-height: 1.5;
}
.demo strong {
  font-size: 10px;
  letter-spacing: 1px;
  margin-right: 12px;
}
nav {
  display: flex;
  padding: 12px 6%;
  gap: 8px;
  background: white;
  border-bottom: 1px solid #e1e7ee;
  overflow: auto;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  min-height: 46px;
  border: 1px solid #cbd5e2;
  border-radius: 8px;
  padding: 10px 17px;
  background: white;
  color: #23446d;
  font-weight: 650;
  cursor: pointer;
}
button:hover {
  background: #edf3fc;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
nav button {
  border-color: transparent;
  white-space: nowrap;
}
nav button.active {
  background: #eaf1fc;
  color: #164b95;
}
.primary {
  background: #1954a5;
  color: white;
  border-color: #1954a5;
}
.primary:hover {
  background: #123f80;
}
.danger {
  background: #a72d2d;
  color: white;
  border-color: #a72d2d;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #e3ae18;
  outline-offset: 3px;
}
main {
  max-width: 1030px;
  margin: auto;
  padding: 24px 28px 0;
}
.heading {
  margin: 12px 0 28px;
}
.eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.8px;
  color: #4774ad;
}
h1 {
  font-size: 32px;
  letter-spacing: -1px;
  margin: 8px 0;
}
h2 {
  font-size: 18px;
  margin: 0;
}
p {
  color: #65758a;
  line-height: 1.6;
  margin: 8px 0 16px;
}
.card {
  background: white;
  border: 1px solid #dde5ef;
  border-radius: 12px;
  padding: 26px;
  margin-bottom: 20px;
  box-shadow: 0 2px 3px #192b4503;
}
.card-title {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 23px;
}
.step {
  display: grid;
  place-items: center;
  background: #edf3fc;
  color: #1954a5;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  font-weight: 750;
}
#draft-status {
  margin-left: auto;
  color: #63758e;
  font-size: 12px;
}
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.wide {
  grid-column: 1/-1;
}
label {
  display: block;
  font-weight: 650;
  font-size: 13px;
}
input,
select,
textarea {
  display: block;
  width: 100%;
  margin-top: 8px;
  min-height: 46px;
  padding: 12px;
  border: 1px solid #ccd7e5;
  border-radius: 7px;
  background: white;
  color: #192b45;
}
textarea {
  resize: vertical;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #82a8dc;
  border-color: #1954a5;
}
small {
  display: block;
  color: #6f7c8f;
  font-size: 12px;
  line-height: 1.5;
  margin-top: 6px;
  font-weight: 400;
}
.muted {
  color: #7b8798;
  font-weight: 400;
}
.photo-placeholder {
  border: 1px dashed #a7bad3;
  background: #f8fafd;
  border-radius: 8px;
  min-height: 85px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #6985a8;
  font-size: 30px;
}
.photo-placeholder span {
  font-size: 13px;
}
.save-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0 25px;
  color: #6f7c8f;
  font-size: 12px;
}
.save-bar strong {
  display: block;
  color: #294d78;
  font-size: 15px;
  margin-top: 4px;
}
.search {
  margin-bottom: 22px;
  max-width: 500px;
}
.vehicle-list {
  display: grid;
  gap: 16px;
}
.vehicle-list .card {
  margin: 0;
}
.vehicle-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.stock {
  font-size: 12px;
  letter-spacing: 0.7px;
  font-weight: 800;
  color: #1954a5;
}
.badge {
  display: inline-block;
  background: #fff3c7;
  color: #775b0a;
  border-radius: 6px;
  padding: 6px 9px;
  font-size: 11px;
  font-weight: 750;
}
.badge.available {
  background: #e6f3ef;
  color: #26715a;
}
.badge.scrapped {
  background: #f7e7e7;
  color: #8d3333;
}
.vehicle-title {
  font-size: 21px;
  margin: 13px 0 7px;
}
.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.empty {
  padding: 50px 20px;
  text-align: center;
  background: white;
  border: 1px dashed #cbd5e2;
  border-radius: 12px;
  color: #6f7c8f;
}
.thumbs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 14px 0;
}
.thumbs img {
  width: 110px;
  height: 85px;
  object-fit: cover;
  border-radius: 8px;
}
.upload-state {
  font-size: 13px;
  line-height: 1.6;
  color: #566d89;
}
.error {
  background: #fff0ee;
  color: #902b25;
  border: 1px solid #e6b4ae;
  padding: 14px;
  border-radius: 8px;
  margin-bottom: 20px;
}
.success {
  background: #eaf4ed;
  color: #286039;
  padding: 14px;
  border-radius: 8px;
  margin-bottom: 20px;
}
footer {
  padding: 35px 0;
  color: #8591a1;
  font-size: 11px;
  text-align: center;
}
.hidden {
  display: none !important;
}
dialog {
  max-width: 700px;
  width: 92%;
  max-height: 85vh;
  border: 1px solid #cad8e8;
  border-radius: 12px;
  padding: 24px;
}
dialog::backdrop {
  background: #102c4f88;
}
dialog h2 {
  margin: 20px 0;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #f4f7fb;
  padding: 15px;
  font-size: 12px;
}
.history-event {
  border-bottom: 1px solid #dce4ef;
  padding: 16px 0;
}
.upload-box {
  padding: 16px;
  background: #f4f7fb;
  border-radius: 8px;
  margin: 15px 0;
}
.confirm {
  border: 2px solid #efc43c;
  margin-top: 20px;
}
.confirm label {
  margin-top: 16px;
}
@media (max-width: 600px) {
  header {
    padding: 14px 18px;
  }
  .brand {
    font-size: 18px;
  }
  .brand small {
    font-size: 10px;
  }
  .brand-mark {
    font-size: 22px;
    padding: 8px 11px;
  }
  .role {
    max-width: 112px;
  }
  nav {
    padding: 8px 12px;
    gap: 0;
  }
  nav button {
    font-size: 12px;
    padding: 10px;
  }
  main {
    padding: 20px 16px 0;
  }
  .demo {
    padding: 10px 18px;
    font-size: 11px;
  }
  h1 {
    font-size: 28px;
  }
  .card {
    padding: 20px 17px;
  }
  .grid {
    grid-template-columns: 1fr;
    gap: 19px;
  }
  .wide {
    grid-column: auto;
  }
  #draft-status {
    font-size: 10px;
  }
  .card-title {
    gap: 8px;
  }
  h2 {
    font-size: 16px;
  }
  .save-bar {
    gap: 15px;
  }
  .save-bar button {
    font-size: 13px;
  }
  .vehicle-top {
    align-items: flex-start;
  }
  .photo-placeholder span {
    font-size: 11px;
  }
}

.intake-preview img,
#private-proof-content img {
  display: block;
  max-width: 100%;
  max-height: 300px;
  object-fit: contain;
  margin: 14px 0;
  border: 1px solid #dce4ef;
  border-radius: 8px;
}
.check-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
}
.check-label input,
#decoder-results input[type="checkbox"] {
  width: 22px;
  min-height: 22px;
  margin: 0;
  flex-shrink: 0;
}
#vin-result label {
  margin-top: 16px;
}
#decoder-results label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
}

.decoder-missing {
  border-color: #b97800;
  background: #fff9df;
}
