#compat-form .compat-entry {
  margin-bottom: 18px;
}
#compat-form .compat-screenshot-trigger {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 58px;
  padding: 12px 13px;
  border: 1px solid #a2855b;
  background: #29241e;
  color: #fae5c8;
  text-align: left;
  text-transform: none;
  letter-spacing: 0;
  font-size: 16px;
  line-height: 1.35;
}
#compat-form .compat-screenshot-trigger:hover {
  background: #342c22;
}
.compat-screenshot-trigger > svg {
  width: 24px;
  height: 24px;
}
.compat-entry p, .compat-shot-help, .compat-shot-review > p {
  color: #bfc1c6;
  font-size: 14px;
  line-height: 1.5;
}
.compat-entry p {
  margin: 10px 0 0;
}
#compat-form .compat-vin {
  margin: 0 0 16px;
}
#compat-form .compat-vin[open] {
  padding-bottom: 10px;
}
.compat-input-label {
  display: block;
  margin: 0 0 7px;
  color: #dddfe1;
  font-size: 14px;
  line-height: 1.35;
}
#compat-form :is(.compat-vin, .compat-motor) input,
.compat-shot-dialog .field-grid input {
  display: block;
  width: 100%;
  min-height: 48px;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid #595c62;
  border-radius: 3px;
  background: #101114;
  color: #f4f4f2;
  font: inherit;
  font-size: 16px;
}
.compat-manual-label {
  margin: 18px 0 15px;
  color: #ced0d3;
  font-size: 14px;
  line-height: 1.35;
}
.compat-quiet {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #e4c292;
  font: inherit;
  font-size: 14px;
  line-height: 1.4;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.compat-form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  column-gap: 12px;
  margin-top: 8px;
}
#compat-form .compat-form-foot p {
  margin: 0;
}
.compat-form-message, .compat-shot-status {
  margin: 10px 0;
  color: #e7cba6;
  font-size: 14px;
  line-height: 1.5;
}
.compat-form-message.is-error, .compat-shot-status.is-error {
  color: #ffbcae;
}
.compat-motor {
  min-width: 0;
}
.compat-motor-suggestions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.compat-motor-suggestions button {
  min-height: 44px;
  min-width: 48px;
  padding: 5px 8px;
  border: 1px solid #65605a;
  border-radius: 3px;
  background: #1d1b19;
  color: #f1ddc2;
  font: inherit;
  cursor: pointer;
}
.compat-shot-dialog {
  width: min(500px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  box-sizing: border-box;
  margin: auto;
  padding: clamp(16px, 5vw, 28px);
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid #44464d;
  border-radius: 4px;
  background: #17181c;
  color: #f4f4f2;
  color-scheme: dark;
  font-family: inherit;
}
.compat-shot-dialog::backdrop {
  background: #08090bd9;
}
.compat-shot-steps {
  margin: 0;
  padding-left: 22px;
  color: #e9e9eb;
  font-size: 16px;
  line-height: 1.45;
}
.compat-shot-steps li + li {
  margin-top: 9px;
}
.compat-shot-steps li::marker {
  color: #e4c292;
}
.compat-shot-help {
  margin: 16px 0 0;
}
.compat-shot-review > p {
  margin: 0;
}
.compat-shot-actions {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}
.compat-shot-actions .button {
  min-height: 48px;
  justify-content: center;
  border-radius: 3px;
  font-size: 16px;
  line-height: 1.35;
}
.roadster-home .compat-shot-dialog .compat-shot-actions .button-dark {
  border: 1px solid #f4f4f2;
  background: #f4f4f2;
  color: #161719;
}
.compat-shot-choose {
  border: 1px solid #a2855b;
  background: #29241e;
  color: #fae5c8;
}
.compat-shot-actions .compat-quiet {
  justify-content: center;
}
.compat-shot-actions button:disabled {
  opacity: .65;
  cursor: wait;
}
.compat-shot-dialog [hidden], #compat-form [hidden] {
  display: none !important;
}
#compat-form :is(button, a, input, summary):focus-visible,
.compat-shot-dialog :is(button, input):focus-visible,
#compat-results .compat-quiet:focus-visible {
  outline: 2px solid #efd1a6;
  outline-offset: 3px;
}
#compat-results .compat-additional {
  grid-column: 1 / -1;
  margin-top: 10px;
  min-width: 0;
}
#compat-results .compat-additional summary {
  font-size: 16px;
  min-height: 50px;
}
.compat-result-count {
  margin-left: 5px;
  color: #bfc1c6;
  font-variant-numeric: tabular-nums;
}
.compat-result-group {
  margin: 15px 0 28px;
}
.compat-result-group h4 {
  margin: 0;
  color: #e4c292;
  font-size: 14px;
  font-weight: 500;
}
#compat-results .result-top {
  flex-wrap: wrap;
}
#compat-results .result-row .compat-quiet {
  margin-top: 4px;
}

#compat-results .compat-decoded {
  font-size: 14px;
  line-height: 1.4;
}

.compat-page .compat-main { max-width: 820px; }
.compat-page .compat-heading { margin-bottom: clamp(26px, 4vw, 46px); }
.compat-page .compat-heading .lead { max-width: 56ch; }
.compat-page .compat-form {
  padding: clamp(18px, 4vw, 32px);
  background: #131517;
  border: 1px solid #ffffff25;
}
.compat-page .field-grid {
  display: grid;
  gap: 15px;
}
.compat-page .field-grid label {
  display: block;
  color: #dfe0e2;
  font-size: 14px;
}
.compat-page .field-grid :is(input, select) {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 9px 12px;
  margin-top: 7px;
  border: 1px solid #65696d;
  border-radius: 3px;
  color: #f5f5f4;
  background: #0e1012;
  font: inherit;
  font-size: 16px;
}
.compat-page .field-grid select {
  appearance: none;
  padding-inline-end: 34px;
  background: #0e1012 url('/store/assets/chevron-down.svg') no-repeat right 10px center / 16px;
}
.compat-page .field-wide { grid-column: 1 / -1; }
.compat-page .equipment-details {
  margin-block: 14px;
  border-block-end: 1px solid #ffffff29;
}
.compat-page .equipment-details > summary { min-height: 48px; }
.compat-page .equipment-details .field-grid { margin: 4px 0 18px; }
.compat-page .compat-form .full-width { width: 100%; margin-top: 18px; }
.compat-page .small-caption,
.compat-page .privacy-note { color: #bfc1c6; font-size: 14px; line-height: 1.5; }
.compat-page .compat-results {
  margin-top: 28px;
  scroll-margin-top: 98px;
}
.compat-page .results-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
}
.compat-page .result-row { padding: 16px 0; border-top: 1px solid #ffffff25; }
.compat-page .result-top { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 12px; }
.compat-page .result-row p { margin: 7px 0 0; color: #c5c8cc; font-size: 15px; line-height: 1.5; }
.compat-page .result-badge { padding: 3px 8px; background: #37332c; color: #f3d6ae; font-size: 13px; }
.compat-page .result-badge[data-state="available"] { background: #243b32; color: #bbdfcc; }
.compat-page .result-badge[data-state="unsupported"] { background: #3a2c31; color: #f0c5cb; }
.compat-page .results-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 20px; }
.compat-shot-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.compat-shot-heading h2 { margin-top: 0; }
.compat-shot-close {
  min-width: 44px;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: #e1e2e4;
  font: 26px/1 Arial, sans-serif;
  cursor: pointer;
}
.compat-shot-example { margin: 14px 0 0; }
.compat-shot-example img { display: block; width: 100%; height: auto; }
.compat-shot-example figcaption { margin-top: 6px; color: #bfc1c6; font-size: 13px; }
@media (min-width: 680px) {
  .compat-page .field-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
