:root {
  color-scheme: light;
  --paper: #ffffff;
  --ink: #201c26;
  --muted: #716679;
  --line: #eee3ef;
  --accent: #ff3ccc;
  --soft: #fff0fc;
  --white: #ffffff;
  --green: #a60883;
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background:
    radial-gradient(ellipse 75% 35% at 92% 12%, #fff0fd, transparent 70%), #fff;
}
a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
button,
input {
  font: inherit;
}
button,
a,
input,
summary {
  -webkit-tap-highlight-color: transparent;
}
button,
summary {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.6;
}
button {
  border: 0;
}
input {
  min-width: 0;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible,
input:focus-visible {
  outline: 3px solid #b81598;
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
.wrap {
  max-width: 1120px;
  margin: auto;
  padding: 0 36px;
}
.topbar {
  height: 108px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  font-size: 26px;
  letter-spacing: -1.4px;
  font-weight: 800;
  text-decoration: none;
}
.brand img {
  margin-right: 10px;
}
.brand > span:first-of-type {
  font-weight: 450;
}
.brand-group {
  display: flex;
  align-items: center;
  gap: 23px;
}
.brand {
  font-size: 31px;
}
.brand-dot {
  height: 7px;
  width: 7px;
  border-radius: 50%;
  background: var(--accent);
  margin: 13px 0 0 3px;
}
.brand-divider {
  height: 27px;
  border-left: 1px solid var(--line);
}
.company {
  display: flex;
  align-items: center;
}
.company img {
  width: 142px;
  height: 38px;
  object-fit: contain;
}
.repo-link {
  font-size: 13px;
  text-decoration: none;
}
.repo-link span {
  font-size: 19px;
  margin-left: 8px;
}
.hero {
  padding: 68px 0 42px;
  position: relative;
  overflow: hidden;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.6px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 9px;
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}
h1 {
  font-size: clamp(44px, 7vw, 76px);
  line-height: 1.03;
  letter-spacing: -3.5px;
  font-weight: 550;
  margin: 24px 0;
}
h1 span {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  color: #d918ae;
  font-weight: 400;
}
.lead {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
  max-width: 500px;
  margin: 0;
}
.hero-decoration {
  position: absolute;
  right: 15px;
  top: 94px;
  width: 250px;
  transform: rotate(5deg);
  color: #b675aa;
}
.hero-decoration > span {
  font-family: monospace;
  font-size: 10px;
  letter-spacing: 2px;
}
.vin-lines {
  height: 72px;
  margin: 25px 0 8px;
  background: repeating-linear-gradient(
    90deg,
    #f5b4e8 0px,
    #f5b4e8 2px,
    transparent 2px,
    transparent 8px,
    #f5b4e8 8px,
    #f5b4e8 13px,
    transparent 13px,
    transparent 17px
  );
}
.hero-decoration strong {
  font-size: 90px;
  letter-spacing: -8px;
  line-height: 1;
  color: #f592dd;
  display: block;
}
.hero-decoration small {
  font-family: monospace;
  font-size: 9px;
  letter-spacing: 1px;
  display: block;
  margin-top: 15px;
}
.lookup-card {
  padding: 29px 30px 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 14px 50px #a9209112;
}
.form-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 13px;
}
.form-heading label {
  font-size: 16px;
  font-weight: 650;
}
.form-heading > span {
  font-size: 10px;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 5px 9px;
  border-radius: 5px;
  letter-spacing: 0.7px;
}
.input-row {
  display: flex;
  gap: 10px;
}
#query {
  border: 1px solid #dfc9e3;
  border-radius: 7px;
  background: #fffaff;
  padding: 17px 18px;
  flex: 1;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 17px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
#query::placeholder {
  text-transform: none;
  letter-spacing: 0;
  color: #807385;
  font-size: 15px;
}
.primary {
  background: var(--accent);
  color: #2b102b;
  border-radius: 9px;
  padding: 16px 26px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: background 0.15s;
}
.primary:hover {
  background: #f827c0;
  box-shadow: 0 4px 15px #ee38c437;
}
.primary {
  min-width: 140px;
  justify-content: center;
}
.input-meta {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  margin: 13px 0 21px;
  font-size: 11px;
  color: var(--muted);
}
.input-meta p {
  margin: 0;
}
.examples {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.examples button {
  font-size: 10px;
  background: var(--soft);
  color: var(--ink);
  border-radius: 4px;
  padding: 5px 8px;
}
.context {
  border-top: 1px solid var(--line);
  padding: 15px 0;
  font-size: 12px;
}
.context summary {
  width: fit-content;
}
.context summary span {
  margin-left: 8px;
  color: var(--muted);
  font-size: 10px;
}
.context-fields {
  display: flex;
  align-items: end;
  gap: 18px;
  padding: 19px 0 4px;
}
.context-fields label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 11px;
  flex: 1;
}
.context-fields input {
  width: 100%;
  border: 1px solid var(--line);
  padding: 10px;
  border-radius: 5px;
  background: var(--paper);
}
.context-fields p {
  flex: 2;
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}
.privacy {
  margin: 0 -30px;
  padding: 12px 30px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  background: #fff5fd;
  border-radius: 0 0 16px 16px;
}
.privacy span {
  color: var(--green);
  margin-right: 7px;
}
#result {
  margin-top: 35px;
  scroll-margin-top: 25px;
  outline: none;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
h2 {
  font-size: 28px;
  font-weight: 550;
  letter-spacing: -0.7px;
  margin: 12px 0;
}
.subtle {
  background: transparent;
  border: 1px solid var(--line);
  padding: 10px 13px;
  border-radius: 6px;
  font-size: 11px;
  color: var(--ink);
}
.subtle:hover {
  background: var(--soft);
}
.result-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--muted);
  margin: 2px 0 20px;
}
.result-meta code {
  color: var(--ink);
  letter-spacing: 1px;
  font-size: 12px;
}
.vehicle-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--line);
}
.field {
  background: var(--white);
  padding: 23px 22px;
  display: flex;
  flex-direction: column;
  align-items: start;
}
.field-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
}
.field-value {
  font-size: 25px;
  font-weight: 550;
  margin: 13px 0 17px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.field-value.unknown {
  color: #889085;
  font-size: 22px;
}
.badge {
  margin-top: auto;
  font-size: 9px;
  font-weight: 650;
  padding: 4px 7px;
  border-radius: 4px;
  background: #edf0e7;
  color: #65705e;
  letter-spacing: 0.3px;
}
.badge.resolved {
  background: #e8f1e7;
  color: #2d623f;
}
.badge.suggested,
.badge.provided {
  background: #fbefcd;
  color: #876326;
}
.badge.conflict,
.badge.ambiguous {
  background: #fff0f4;
  color: #ad2149;
}
.assumptions {
  background: #fbf1dc;
  border: 1px solid #e4d6b2;
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 12px;
  line-height: 1.7;
  margin-top: 14px;
}
.assumptions p {
  margin: 4px 0;
}
.evidence-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 32px;
}
.evidence-heading h3 {
  font-size: 14px;
  font-weight: 600;
}
.evidence-heading > span {
  font-size: 11px;
  color: var(--muted);
}
.sources {
  display: grid;
  gap: 10px;
}
.source {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  font-size: 12px;
  line-height: 1.65;
  min-width: 0;
  overflow-wrap: anywhere;
}
.source-top {
  display: flex;
  justify-content: space-between;
  gap: 15px;
}
.source h4 {
  font-size: 13px;
  line-height: 1.5;
  margin: 0 0 5px;
}
.source-publisher {
  color: var(--muted);
  font-size: 11px;
}
.source p {
  margin: 8px 0;
  color: #605166;
}
.source .source-fields {
  font-size: 10px;
  letter-spacing: 0.2px;
  color: var(--muted);
}
.source a {
  color: var(--green);
}
.source details {
  font-size: 11px;
  color: var(--muted);
  margin-top: 9px;
}
.source dl {
  display: grid;
  grid-template-columns: 95px 1fr;
  gap: 5px 12px;
}
.source dd {
  margin: 0;
}
.source dt {
  font-weight: 600;
}
.long-result {
  margin-top: 25px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fdf6ff;
}
.long-result > summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 23px 25px;
  gap: 20px;
}
.long-result > summary::-webkit-details-marker {
  display: none;
}
.long-result summary strong {
  display: block;
  font-size: 17px;
  font-weight: 550;
  margin: 8px 0;
}
.long-result summary div > span:last-child {
  font-size: 11px;
  color: var(--muted);
}
.expand-icon {
  font-size: 27px;
  font-weight: 300;
}
.long-result[open] .expand-icon {
  transform: rotate(45deg);
}
.long-content {
  border-top: 1px solid var(--line);
  padding: 20px 25px;
}
.long-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 15px;
}
.long-toolbar p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.json-tree {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
  overflow-wrap: anywhere;
  background: var(--white);
  border-radius: 6px;
  padding: 15px;
  max-height: 650px;
  overflow: auto;
}
.json-tree:empty {
  display: none;
}
.tree-node {
  margin: 3px 0;
}
.tree-node summary {
  padding: 6px;
}
.tree-node summary:hover {
  background: var(--soft);
  border-radius: 4px;
}
.tree-children {
  border-left: 1px solid var(--line);
  margin-left: 9px;
  padding-left: 16px;
}
.tree-leaf {
  padding: 6px;
  line-height: 1.6;
  white-space: pre-wrap;
}
.tree-key {
  color: #862e91;
}
.tree-hint {
  color: var(--muted);
  font-weight: 400;
}
.tree-leaf .tree-value {
  color: #a02784;
}
.tree-more {
  background: var(--soft);
  padding: 7px 11px;
  margin: 6px;
  border-radius: 4px;
  font: inherit;
  color: var(--ink);
}
#long-sources {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}
.scope-note {
  font-size: 11px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 830px;
  margin: 30px 0 45px;
}
footer.wrap {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  padding-bottom: 28px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 10px;
  color: var(--muted);
}
footer > span:first-child {
  font-size: 14px;
  color: var(--ink);
  font-weight: 650;
}
.version {
  font-family: monospace;
  font-size: 9px;
  color: var(--muted);
  font-weight: 400;
  margin-left: 7px;
}
footer a {
  text-decoration: none;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 15px;
  padding: 15px;
  background: var(--white);
  z-index: 10;
}
.skip-link:focus {
  top: 10px;
}
@media (max-width: 800px) {
  .hero-decoration {
    width: 170px;
    right: 10px;
    top: 100px;
    opacity: 0.55;
  }
  .lead {
    max-width: 400px;
  }
  .input-meta {
    align-items: start;
    flex-direction: column;
    gap: 12px;
  }
  .field {
    padding: 20px 15px;
  }
  .field-value {
    font-size: 22px;
  }
  .brand-group {
    gap: 16px;
  }
}
@media (max-width: 580px) {
  .wrap {
    padding-left: 22px;
    padding-right: 22px;
  }
  .topbar {
    height: 82px;
  }
  .brand-group {
    gap: 12px;
  }
  .company img {
    width: 102px;
    height: 30px;
  }
  .brand {
    font-size: 26px;
  }
  .repo-link {
    font-size: 11px;
  }
  .hero {
    padding-top: 43px;
    padding-bottom: 30px;
  }
  .hero-decoration {
    display: none;
  }
  h1 {
    letter-spacing: -2px;
    font-size: 53px;
  }
  .lead {
    font-size: 14px;
    line-height: 1.7;
  }
  .eyebrow {
    font-size: 9px;
    letter-spacing: 1.1px;
  }
  .lookup-card {
    padding: 22px 19px 0;
  }
  .input-row {
    flex-direction: column;
  }
  #query {
    padding: 16px 13px;
    font-size: 15px;
    width: 100%;
    letter-spacing: 0.6px;
  }
  .primary {
    justify-content: space-between;
    padding: 12px 17px;
  }
  .privacy {
    margin: 0 -19px;
    padding: 12px 19px;
    font-size: 9px;
    line-height: 1.7;
  }
  .form-heading label {
    font-size: 14px;
  }
  .form-heading > span {
    font-size: 8px;
  }
  .context-fields {
    flex-wrap: wrap;
  }
  .context-fields p {
    flex-basis: 100%;
  }
  .vehicle-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .field {
    padding: 20px;
  }
  .field-value {
    font-size: 25px;
  }
  .section-heading {
    align-items: end;
  }
  .section-heading .subtle {
    font-size: 10px;
    padding: 9px;
  }
  h2 {
    font-size: 23px;
  }
  .source {
    padding: 15px;
  }
  .source-top {
    flex-direction: column;
    gap: 4px;
  }
  .long-result > summary {
    padding: 20px;
  }
  .long-content {
    padding: 16px 12px;
  }
  .json-tree {
    padding: 8px;
    font-size: 10px;
  }
  .scope-note {
    font-size: 10px;
  }
  footer.wrap {
    flex-wrap: wrap;
    row-gap: 15px;
  }
  footer > span:nth-child(2) {
    display: none;
  }
  .source dl {
    grid-template-columns: 1fr;
    gap: 3px;
  }
  .source dd {
    margin-bottom: 6px;
  }
  .long-toolbar {
    flex-wrap: wrap;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

.spinner {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  border: 2px solid #2b102b40;
  border-top-color: #2b102b;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.error-panel {
  display: flex;
  gap: 18px;
  margin-top: 32px;
  padding: 24px;
  background: #fff4f2;
  border: 1px solid #f2b8b1;
  border-radius: 12px;
  color: #b42318;
}
.error-panel h2 {
  font-size: 18px;
  margin: 0 0 8px;
  letter-spacing: -0.2px;
}
.error-panel:focus-visible {
  outline: 2px solid #b42318;
  outline-offset: 3px;
}
.error-panel p {
  font-size: 13px;
  line-height: 1.6;
  margin: 0 0 16px;
}
.error-icon {
  flex-shrink: 0;
  border: 1px solid #df8075;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  text-align: center;
  line-height: 24px;
  font-weight: 650;
}
@media (max-width: 960px) and (min-width: 581px) {
  .hero-decoration {
    width: 160px;
    right: 0;
  }
  .lead {
    max-width: calc(100% - 180px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .spinner {
    animation: none;
  }
}

.error-panel .subtle {
  color: #b42318;
  border-color: #edb5ad;
  background: #ffffff;
}
.error-panel .subtle:hover {
  background: #ffe5e0;
}
