/* Crew cars: ramp-concrete base, airfield-sign placards for car numbers,
   annunciator-style status lamps. */

:root {
  --bg: #e3e7e5;
  --surface: #ffffff;
  --surface-2: #f2f4f3;
  --ink: #17212b;
  --ink-2: #4b5862;
  --line: #c6cdca;
  --sign: #f7c600;
  --sign-ink: #000000;
  --green: #1f8a3b;
  --amber: #d98a00;
  --red: #c4281c;
  --green-bg: #e2f2e6;
  --amber-bg: #fdf1d8;
  --red-bg: #fbe3e0;
  --focus: #1b6fd1;
  --radius: 10px;
  --radius-sm: 6px;
  --font: 'Barlow', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-sign: 'Barlow Semi Condensed', 'Barlow', system-ui, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #10171d;
    --surface: #19232c;
    --surface-2: #212d37;
    --ink: #e7ecee;
    --ink-2: #a3b0b8;
    --line: #34424d;
    --green: #3fbf63;
    --amber: #f2a922;
    --red: #f0574a;
    --green-bg: #173323;
    --amber-bg: #3a2c10;
    --red-bg: #3d1a17;
    --focus: #6aa8f0;
    color-scheme: dark;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.45;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-sign);
  line-height: 1.15;
  margin: 0;
}

h1 {
  font-size: 2rem;
  font-weight: 800;
}

h2 {
  font-size: 1.35rem;
  font-weight: 700;
}

h3 {
  font-size: 1.1rem;
  font-weight: 700;
}

p {
  margin: 0.4em 0;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.wrap {
  max-width: 600px;
  margin: 0 auto;
  padding: 16px 16px 48px;
}

.wrap-wide {
  max-width: 960px;
}

.muted {
  color: var(--ink-2);
}

.small {
  font-size: 0.88rem;
}

.loading,
.empty {
  padding: 32px 16px;
  text-align: center;
  color: var(--ink-2);
}

/* ---------- top bar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  padding-top: max(10px, env(safe-area-inset-top));
  background: var(--ink);
  color: #fff;
}

@media (prefers-color-scheme: dark) {
  .topbar {
    background: #0a0f13;
    border-bottom: 1px solid var(--line);
  }
}

.brand {
  font-family: var(--font-sign);
  font-weight: 800;
  font-size: 1.2rem;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.topnav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

/* ---------- placard: the car number as an airfield sign ---------- */

.placard {
  display: inline-grid;
  place-items: center;
  flex: none;
  min-width: 52px;
  height: 52px;
  padding: 0 8px;
  background: var(--sign);
  color: var(--sign-ink);
  font-family: var(--font-sign);
  font-weight: 800;
  font-size: 1.9rem;
  line-height: 1;
  border-radius: 4px;
  box-shadow:
    inset 0 0 0 3px var(--sign),
    inset 0 0 0 5px var(--sign-ink);
}

.placard-xl {
  min-width: 96px;
  height: 96px;
  font-size: 3.8rem;
  box-shadow:
    inset 0 0 0 5px var(--sign),
    inset 0 0 0 8px var(--sign-ink);
}

/* ---------- status lamp ---------- */

.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  font-size: 0.92rem;
  white-space: nowrap;
}

.lamp {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: currentColor;
  box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px currentColor;
}

.status-green {
  color: var(--green);
}

.status-yellow {
  color: var(--amber);
}

.status-red {
  color: var(--red);
}

/* ---------- dashboard ---------- */

.board-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0 18px;
}

.board-summary {
  margin: 0;
  font-family: var(--font-sign);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--ink-2);
}

.group {
  margin-bottom: 22px;
}

.group h2 {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: 1.15rem;
  padding: 0 2px 6px;
}

.group h2 .count {
  font-family: var(--font);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--ink-2);
}

.group-note {
  margin: -2px 2px 8px;
}

.rows {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.car-row + .car-row {
  border-top: 1px solid var(--line);
}

.car-row summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
}

.car-row summary::-webkit-details-marker {
  display: none;
}

.car-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.car-name {
  font-weight: 600;
  font-size: 1.05rem;
}

.car-model {
  font-weight: 400;
  color: var(--ink-2);
}

.car-sub {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
}

.car-meta {
  color: var(--ink-2);
  font-size: 0.92rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--amber-bg);
  color: var(--ink);
}

.tag-red {
  background: var(--red-bg);
}

.tag-green {
  background: var(--green-bg);
}

.chev {
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--ink-2);
  border-bottom: 2px solid var(--ink-2);
  transform: rotate(45deg);
  margin-right: 4px;
  transition: transform 0.15s;
}

details[open] > summary .chev {
  transform: rotate(225deg);
}

.car-detail {
  padding: 0 14px 14px 80px;
}

.car-detail .btn {
  margin-top: 8px;
}

.reasons {
  margin: 4px 0;
  padding: 0;
  list-style: none;
}

.reasons li {
  position: relative;
  padding: 3px 0 3px 18px;
}

.reasons li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 9px;
  height: 9px;
  border-radius: 2px;
}

.r-red::before {
  background: var(--red);
}

.r-yellow::before {
  background: var(--amber);
}

.notes h4 {
  font-size: 0.95rem;
  margin-top: 8px;
}

.empty-locs {
  margin-top: -8px;
}

@media (max-width: 420px) {
  .car-detail {
    padding-left: 14px;
  }
}

/* ---------- car page ---------- */

.car-hero {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 10px 0 18px;
}

.car-hero h1 {
  font-size: 2.3rem;
}

.car-hero .car-model {
  margin: 0 0 4px;
  font-size: 1.05rem;
}

.briefing {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.brief-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 5px solid var(--amber);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.brief-block .note {
  margin: 6px 0 0;
}

.banner {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-weight: 500;
}

.banner-red {
  background: var(--red-bg);
  border: 2px solid var(--red);
}

.squawk-list {
  margin: 6px 0 0;
  padding-left: 1.1em;
}

.squawk-list li {
  margin: 4px 0;
}

.squawk-note {
  display: block;
  font-size: 0.88rem;
  color: var(--ink-2);
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 16px;
}

.lead {
  font-size: 1.1rem;
}

.question {
  font-family: var(--font-sign);
  font-weight: 700;
  font-size: 1.4rem;
  margin-top: 12px;
}

.choice-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 12px 0 8px;
}

.done {
  text-align: left;
}

.done-mark {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--green);
  position: relative;
  margin-bottom: 12px;
}

.done-mark::after {
  content: '';
  position: absolute;
  left: 20px;
  top: 12px;
  width: 14px;
  height: 26px;
  border-right: 5px solid #fff;
  border-bottom: 5px solid #fff;
  transform: rotate(45deg);
}

.done .btn {
  margin-top: 16px;
}

/* ---------- forms ---------- */

.form h2 {
  margin-bottom: 6px;
}

.field {
  display: block;
  margin: 16px 0;
  border: 0;
  padding: 0;
}

.label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

.help {
  display: block;
  font-size: 0.88rem;
  color: var(--ink-2);
  margin-top: 5px;
}

input[type='text'],
input:not([type]),
input[type='email'],
input[type='password'],
input[type='number'],
input[type='date'],
select,
textarea {
  width: 100%;
  font: inherit;
  font-size: 1.05rem;
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 11px 12px;
  min-height: 48px;
}

textarea {
  resize: vertical;
  min-height: 84px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--focus);
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 25%, transparent);
}

::placeholder {
  color: var(--ink-2);
  opacity: 0.85;
}

.clean-qs {
  margin: 18px 0;
}

.seg {
  border: 0;
  margin: 10px 0;
  padding: 0;
}

.seg legend {
  font-weight: 500;
  padding: 0;
  margin-bottom: 6px;
}

.seg-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.seg label,
.place,
.check {
  position: relative;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.seg input,
.place input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}

.seg span,
.place span {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 8px 10px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  font-weight: 600;
  text-align: center;
}

.place span {
  justify-content: flex-start;
  text-align: left;
}

.seg input:checked + span,
.place input:checked + span {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--surface);
}

.seg input[value='0']:checked + span {
  background: var(--amber-bg);
  color: var(--ink);
  border-color: var(--amber);
}

.seg input:focus-visible + span,
.place input:focus-visible + span {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.places {
  display: grid;
  gap: 8px;
}

.places legend {
  margin-bottom: 8px;
}

.other-input {
  margin-top: 2px;
}

.check {
  gap: 12px;
  margin: 16px 0;
  padding: 12px;
  border: 1.5px solid var(--amber);
  background: var(--amber-bg);
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.check input {
  width: 24px;
  height: 24px;
  flex: none;
  accent-color: var(--ink);
}

.hint {
  margin-top: 8px;
  font-size: 0.92rem;
}

.hint summary {
  cursor: pointer;
  color: var(--ink-2);
  text-decoration: underline;
  text-underline-offset: 3px;
  width: fit-content;
}

.hint p {
  margin: 6px 0 0;
  padding: 10px 12px;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
}

.form-error {
  background: var(--red-bg);
  border: 1.5px solid var(--red);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-weight: 500;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 18px;
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--ink);
  color: var(--surface);
}

.btn-quiet {
  border-color: var(--line);
  background: var(--surface-2);
}

.btn-danger {
  border-color: var(--red);
  color: var(--red);
}

.btn-block {
  display: flex;
  width: 100%;
  margin-top: 10px;
}

.btn-sm {
  min-height: 36px;
  padding: 5px 12px;
  font-size: 0.9rem;
}

.btn:disabled {
  opacity: 0.6;
  cursor: progress;
}

/* ---------- dialog ---------- */

.brief-dialog {
  width: min(560px, calc(100vw - 24px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--ink);
}

.brief-dialog::backdrop {
  background: rgba(10, 15, 20, 0.6);
}

.brief-inner {
  display: grid;
  gap: 12px;
  padding: 18px 16px;
}

/* ---------- toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: max(20px, env(safe-area-inset-bottom));
  transform: translate(-50%, 140%);
  max-width: calc(100vw - 32px);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--surface);
  font-weight: 500;
  transition: transform 0.2s;
  z-index: 50;
}

.toast.show {
  transform: translate(-50%, 0);
}

.toast-err {
  background: var(--red);
  color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .toast,
  .chev {
    transition: none;
  }
}

/* ---------- admin ---------- */

.admin-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin: 6px 0 12px;
}

.linklike {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-bottom: 8px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
  scrollbar-width: thin;
}

.tab {
  flex: none;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-2);
  background: transparent;
  border: 1.5px solid transparent;
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  cursor: pointer;
}

.tab.on {
  color: var(--ink);
  background: var(--surface);
  border-color: var(--line);
}

.badge {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  margin-left: 4px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 0.8rem;
}

.tab-body section {
  margin-bottom: 26px;
}

.tab-body h2 {
  margin-bottom: 8px;
}

.tab-body h2 .count {
  font-family: var(--font);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink-2);
}

.admin-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 10px;
}

.admin-card > summary {
  cursor: pointer;
}

.ac-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.ac-head .placard {
  min-width: 44px;
  height: 44px;
  font-size: 1.6rem;
}

.sq-text {
  font-size: 1.1rem;
  font-weight: 500;
}

.sq-row + .sq-row {
  border-top: 1px dashed var(--line);
  margin-top: 12px;
  padding-top: 12px;
}

.field.compact {
  margin: 10px 0;
}

.field.compact .label {
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.field.compact input,
.field.compact select,
.field.compact textarea,
.loc-row input {
  min-height: 42px;
  padding: 8px 10px;
  font-size: 1rem;
}

.two {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0 12px;
}

.check-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
  font-weight: 500;
  cursor: pointer;
}

.check-inline input {
  width: 20px;
  height: 20px;
  flex: none;
  accent-color: var(--ink);
}

.btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.disclosures details {
  border-top: 1px solid var(--line);
  padding: 8px 0 0;
  margin-top: 8px;
}

.disclosures summary,
.admin-card details > summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
}

.inline-form {
  padding-top: 4px;
}

.plain-list {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
}

.plain-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}

.plain-list li:first-child {
  border-top: 0;
}

.loc-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.loc-row input {
  flex: 1 1 220px;
}

.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 14px;
}

.chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: inherit;
  font-weight: 600;
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 4px 14px 4px 4px;
  cursor: pointer;
}

.chip.on {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}

.placard-sm {
  min-width: 32px;
  height: 32px;
  font-size: 1.15rem;
  box-shadow:
    inset 0 0 0 2px var(--sign),
    inset 0 0 0 3.5px var(--sign-ink);
  border-radius: 999px;
}

.maint {
  border-left-width: 5px;
}

.maint.st-ok {
  border-left-color: var(--green);
}

.maint.st-soon,
.maint.st-nodata {
  border-left-color: var(--amber);
}

.maint.st-overdue {
  border-left-color: var(--red);
}

.mi-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 12px;
}

.mi-state {
  font-weight: 600;
}

.st-overdue .mi-state {
  color: var(--red);
}

.trip > summary {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.trip-car {
  flex: none;
  font-family: var(--font-sign);
  font-weight: 700;
  min-width: 54px;
}

.trip-main {
  display: flex;
  flex-direction: column;
}

.report {
  white-space: pre-wrap;
  font-family: var(--font);
  font-size: 0.92rem;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin: 10px 0 0;
  max-height: 480px;
  overflow: auto;
}

.banner-amber {
  background: var(--amber-bg);
  border: 1.5px solid var(--amber);
  margin-bottom: 12px;
}

/* ---------- QR cards ---------- */

.qr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.qr-card {
  background: #fff;
  color: #000;
  border: 2px solid #000;
  border-radius: 12px;
  padding: 18px;
  break-inside: avoid;
}

.qr-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.qr-title {
  font-family: var(--font-sign);
  font-weight: 800;
  font-size: 1.6rem;
}

.qr-sub {
  font-size: 1rem;
}

.qr-code {
  width: 72%;
  margin: 14px auto 6px;
}

.qr-code svg {
  display: block;
  width: 100%;
  height: auto;
}

.qr-text {
  text-align: center;
  font-weight: 600;
  font-size: 1.1rem;
  margin: 4px 0 0;
}

.qr-url {
  text-align: center;
  font-size: 0.8rem;
  margin: 2px 0 0;
}

.jump-card {
  background: #c4281c;
  color: #fff;
  border-color: #c4281c;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.jump-title {
  font-family: var(--font-sign);
  font-weight: 800;
  font-size: 2.2rem;
  line-height: 1.05;
  margin-bottom: 8px;
}

@media print {
  body {
    background: #fff;
  }
  .topbar,
  .no-print,
  .tabs,
  .admin-head,
  #toast {
    display: none !important;
  }
  .wrap {
    max-width: none;
    padding: 0;
  }
  .qr-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .qr-card {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .placard {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

.rows-empty {
  margin: 0;
  padding: 14px;
  color: var(--ink-2);
  border-style: dashed;
  background: transparent;
}

.admin-card > .field:first-child,
.admin-card > h2:first-child + .field {
  margin-top: 0;
}

/* ---------- car photos, IDs, documents ---------- */

.placard-mid {
  font-size: 1.45rem;
}

.placard-long {
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.placard-xl.placard-mid {
  font-size: 2.9rem;
  padding: 0 14px;
}

.placard-xl.placard-long {
  font-size: 1.9rem;
  padding: 0 16px;
}

.placard-sm.placard-mid,
.placard-sm.placard-long {
  font-size: 0.78rem;
  padding: 0 8px;
}

.car-thumb {
  flex: none;
  width: 76px;
  height: 56px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.car-thumb.thumb-sm {
  width: 60px;
  height: 44px;
}

.car-photo {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
  margin: 10px 0 0;
  background: var(--surface-2);
}

.car-hero.has-photo {
  margin-top: 12px;
}

.car-ids {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin: 0 0 6px;
  color: var(--ink-2);
  font-size: 0.95rem;
}

.car-photo-preview {
  display: block;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin: 6px 0;
}

.doc-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -6px 0 16px;
}

.car-detail .doc-links {
  margin: 8px 0;
}

.doc-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 14px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
}

.doc-link::before {
  content: '';
  width: 12px;
  height: 15px;
  margin-right: 8px;
  border: 2px solid currentColor;
  border-radius: 2px;
}

.visor-note {
  font-weight: 600;
}

.hint p + p {
  margin-top: 6px;
}

/* VIN check under the car form */
.vin-status {
  min-height: 1.4em;
}
.vin-status.vin-bad {
  color: var(--red);
  font-weight: 500;
}
.vin-status.vin-good {
  color: var(--green);
  font-weight: 500;
}
