:root {
  --ink: #071a22;
  --mint: #57e4b3;
  --green: #0a9a6e;
  --paper: #f3f7f6;
  --white: #fff;
  --muted: #667d84;
  --line: #d8e3e4;
  --amber: #f4b65d;
  --shadow: 0 18px 50px rgba(5, 28, 36, 0.12);
}

/* V3 vehicle-health workspace */
.vehicle-health-card,
.service-card,
.expert-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(9, 34, 42, 0.07);
}
.vehicle-health-card .vehicle-title {
  padding: 26px 30px;
  border-bottom: 1px solid var(--line);
}
.health-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}
.health-summary > div {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 21px 22px;
  background: #fbfdfc;
}
.health-summary .rag {
  position: absolute;
  right: 18px;
  top: 20px;
}
.health-summary small,
.tyre-card > div span {
  color: #69777b;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
}
.health-summary strong {
  font-size: 20px;
  color: var(--ink);
}
.health-summary em {
  font-size: 12px;
  color: #6a777b;
  font-style: normal;
}
.road-status-panel {
  padding: 28px 30px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.road-status-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}
.road-status-head h3 {
  margin: 4px 0 2px;
  font-size: 22px;
}
.road-status-head p {
  margin: 0;
  color: #6c7b7f;
  font-size: 13px;
}
.sync-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #c8d7d2;
  background: #f5faf8;
  color: #31544a;
  padding: 10px 13px;
  border-radius: 9px;
  font-weight: 800;
  white-space: nowrap;
}
.sync-button span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #eea72d;
  box-shadow: 0 0 0 4px rgba(238, 167, 45, 0.14);
}
.road-status-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 11px;
}
.road-alert {
  position: relative;
  border: 1px solid #dce7e2;
  border-top: 4px solid #0a9a6e;
  border-radius: 12px;
  padding: 17px;
  background: #fbfdfc;
}
.road-alert.amber {
  border-top-color: #eea72d;
  background: #fffdf8;
}
.road-alert.red {
  border-top-color: #d95555;
  background: #fffafa;
}
.road-alert-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.road-icon {
  display: grid;
  place-items: center;
  min-width: 39px;
  height: 30px;
  padding: 0 7px;
  border-radius: 7px;
  background: var(--ink);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.05em;
}
.data-source {
  color: #708085;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.08em;
}
.road-alert h4 {
  margin: 16px 0 2px;
  font-size: 13px;
  color: #66767a;
}
.road-alert > strong {
  display: block;
  font-size: 21px;
  color: var(--ink);
}
.road-alert > p {
  min-height: 19px;
  margin: 4px 0 14px;
  color: #708085;
  font-size: 12px;
}
.road-state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 850;
  color: #087755;
}
.road-state.amber {
  color: #8b5d00;
}
.road-state.red {
  color: #ad3636;
}
.road-state .rag {
  width: 8px;
  height: 8px;
  box-shadow: none;
}
.insurance-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.insurance-actions button {
  border: 0;
  border-radius: 7px;
  padding: 7px 9px;
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}
.insurance-actions a {
  color: #087755;
  font-size: 11px;
  font-weight: 800;
}
.road-data-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 12px;
  padding: 11px 13px;
  border-radius: 9px;
  background: #f1f6f5;
}
.road-data-note > span {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #dcebe6;
  color: #31544a;
  font-size: 12px;
  font-weight: 900;
}
.road-data-note p {
  margin: 0;
  color: #586b70;
  font-size: 11px;
  line-height: 1.5;
}
.insurance-dialog form {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}
.insurance-dialog form label {
  color: #526870;
  font-size: 12px;
  font-weight: 750;
}
.insurance-dialog form input {
  width: 100%;
  height: 45px;
  margin-top: 5px;
  padding: 0 11px;
  border: 1px solid #cad8db;
  border-radius: 8px;
  font: inherit;
}
.rag {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #0a9a6e;
  box-shadow: 0 0 0 4px rgba(10, 154, 110, 0.12);
}
.rag.amber {
  background: #eea72d;
  box-shadow: 0 0 0 4px rgba(238, 167, 45, 0.16);
}
.rag.red {
  background: #d95555;
  box-shadow: 0 0 0 4px rgba(217, 85, 85, 0.14);
}
.tyre-panel {
  padding: 28px 30px 30px;
  background: #f6faf8;
}
.tyre-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 19px;
}
.tyre-panel-head h3 {
  font-size: 22px;
  margin: 3px 0;
}
.set-status,
.source-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #eed394;
  background: #fff8e6;
  color: #8e6100;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}
.set-status .rag {
  width: 8px;
  height: 8px;
}
.tyre-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  position: relative;
}
.tyre-card {
  background: #fff;
  border: 1px solid #dce7e2;
  border-left: 4px solid #0a9a6e;
  border-radius: 13px;
  padding: 17px 18px;
}
.tyre-card.amber {
  border-left-color: #eea72d;
}
.tyre-card > div:first-child {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.tyre-card h4 {
  margin: 11px 0 3px;
  font-size: 15px;
}
.tyre-card > strong {
  font-family: monospace;
  color: #435357;
  font-size: 12px;
}
.tyre-card dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 15px 0 0;
  gap: 11px;
}
.tyre-card dl div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.tyre-card dt {
  font-size: 10px;
  text-transform: uppercase;
  color: #7a898d;
}
.tyre-card dd {
  margin: 0;
  font-weight: 750;
  font-size: 12px;
}
.tyre-card p {
  margin: 13px 0 0;
  padding-top: 12px;
  border-top: 1px solid #eee0ba;
  color: #805e14;
  font-size: 12px;
  line-height: 1.45;
}
.tyre-alert {
  margin-top: 14px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid #ecd28d;
  background: #fff9e9;
  border-radius: 12px;
}
.tyre-alert > span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #eea72d;
  color: #fff;
  font-weight: 900;
}
.tyre-alert p {
  margin: 3px 0 0;
  font-size: 12px;
  color: #725d2a;
  line-height: 1.45;
}
.microcopy {
  font-size: 10px;
  color: #77868a;
  margin: 12px 0 0;
}
.compare-button {
  border: 1px solid #b4d5c7;
  background: #fff;
  color: #087755;
  padding: 10px 13px;
  border-radius: 9px;
  font-weight: 800;
  white-space: nowrap;
}
.compare-button:hover {
  background: #eaf8f1;
}
.compare-button.compact {
  font-size: 11px;
  padding: 7px 9px;
}
.service-card,
.expert-card {
  margin-top: 18px;
  padding: 28px 30px;
}
.service-card .section-head,
.expert-card .section-head {
  margin: 0 0 20px;
}
.service-card .section-head p,
.expert-card .section-head p {
  max-width: 720px;
  margin: 6px 0 0;
  color: #6c7b7f;
  font-size: 13px;
}
.service-filters {
  display: flex;
  gap: 7px;
  overflow: auto;
  padding-bottom: 12px;
}
.service-filters button {
  border: 1px solid var(--line);
  background: #f6f9f8;
  padding: 8px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}
.service-filters button.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.service-table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.service-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 850px;
}
.service-table th {
  text-align: left;
  background: #f5f8f7;
  padding: 11px 14px;
  color: #6d7c80;
  font-size: 10px;
  letter-spacing: 0.08em;
}
.service-table td {
  border-top: 1px solid var(--line);
  padding: 13px 14px;
  font-size: 12px;
  color: #516064;
  vertical-align: middle;
}
.service-table td:first-child strong,
.service-table td:nth-child(3) strong {
  display: block;
  color: var(--ink);
}
.service-table td:nth-child(3) small {
  display: block;
  margin-top: 3px;
  color: #7c898d;
}
.category-name {
  display: block;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #0a906a;
  margin-bottom: 3px;
}
.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 9px;
  border-radius: 999px;
  background: #eff8f4;
  font-weight: 800;
  color: #087755;
}
.status-chip.amber {
  background: #fff7e5;
  color: #926305;
}
.status-chip.red {
  background: #fff0f0;
  color: #ad3636;
}
.status-chip .rag {
  width: 7px;
  height: 7px;
  box-shadow: none;
}
.table-muted {
  color: #8a9699;
  font-size: 11px;
}
.recommendation-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.recommendation {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 19px;
  background: #fbfdfc;
}
.recommendation.priority {
  border-color: #ecd28d;
  background: #fffdf7;
}
.recommendation h3 {
  font-size: 17px;
  margin: 12px 0 7px;
}
.recommendation p {
  font-size: 12px;
  line-height: 1.55;
  color: #526166;
  margin: 0;
}
.recommendation > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 15px 0;
}
.recommendation > div strong {
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7a888c;
}
.recommendation > div span {
  font-size: 12px;
  font-weight: 750;
}
.recommendation a {
  margin-top: auto;
  color: #087755;
  font-weight: 800;
  font-size: 12px;
}
.signal {
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
  padding: 6px 8px;
  border-radius: 5px;
  background: #edf5f2;
  color: #417066;
}
.signal.disputed {
  background: #f0edf9;
  color: #655697;
}
.signal.watch {
  background: #fff0cb;
  color: #8b5d00;
}
.signal.official {
  background: #eaf5ff;
  color: #1c6593;
}
.parts-dialog {
  max-width: 690px;
}
.parts-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin: 19px 0;
}
.part-choice {
  display: flex;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--line);
  padding: 14px;
  border-radius: 11px;
  cursor: pointer;
}
.part-choice.selected {
  border-color: #0a9a6e;
  box-shadow: 0 0 0 2px rgba(10, 154, 110, 0.12);
}
.part-choice input {
  position: absolute;
  opacity: 0;
}
.part-choice span {
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #087755;
}
.part-choice b {
  font-size: 21px;
  color: var(--ink);
}
.part-choice small {
  color: #7a888c;
}
.parts-dialog fieldset {
  display: flex;
  gap: 22px;
  border: 0;
  padding: 0;
  margin: 17px 0;
}
.parts-dialog legend {
  font-size: 11px;
  font-weight: 850;
  margin-bottom: 8px;
}
.prototype-note {
  display: block;
  margin-top: 12px;
  color: #77868a;
  line-height: 1.45;
}
@media (max-width: 900px) {
  .health-summary {
    grid-template-columns: 1fr 1fr;
  }
  .recommendation-grid {
    grid-template-columns: 1fr;
  }
  .tyre-alert {
    grid-template-columns: auto 1fr;
  }
  .tyre-alert button {
    grid-column: 2;
    justify-self: start;
  }
  .source-pill {
    display: none;
  }
}
.risk-radar-card{display:block;margin-top:12px;padding:18px;border:1px solid rgba(116,236,191,.28);border-radius:12px;background:linear-gradient(145deg,#0b2630,#123a3c);color:#fff;text-decoration:none}.risk-radar-card span{display:block;color:#74ecbf;font-size:8px;font-weight:900;letter-spacing:.14em}.risk-radar-card strong{display:block;margin-top:8px;font-size:14px}.risk-radar-card p{margin:7px 0 12px;color:#b8c9cb;font-size:10px;line-height:1.5}.risk-radar-card em{color:#fff;font-size:10px;font-style:normal;font-weight:800}.risk-radar-card:hover{border-color:#74ecbf;transform:translateY(-1px)}
@media (max-width: 640px) {
  .vehicle-health-card .vehicle-title,
  .tyre-panel,
  .service-card,
  .expert-card {
    padding: 20px 17px;
  }
  .health-summary {
    grid-template-columns: 1fr 1fr;
  }
  .health-summary > div {
    padding: 16px 14px;
  }
  .health-summary strong {
    font-size: 16px;
  }
  .tyre-layout {
    grid-template-columns: 1fr;
  }
  .tyre-panel-head {
    align-items: flex-start;
    gap: 12px;
  }
  .set-status {
    font-size: 10px;
  }
  .parts-options {
    grid-template-columns: 1fr;
  }
  .tyre-alert {
    grid-template-columns: 1fr;
  }
  .tyre-alert button {
    grid-column: 1;
  }
  .service-card .section-head {
    display: block;
  }
  .service-card .section-head > button {
    margin-top: 14px;
  }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    16px/1.5 system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a {
  cursor: pointer;
}
.topbar {
  height: 76px;
  padding: 0 clamp(20px, 4.8vw, 70px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #dfe7e7;
  background: rgba(250, 252, 251, 0.94);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 30;
}
.brand {
  display: flex;
  gap: 11px;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
  font-weight: 850;
  font-size: 21px;
}
.brand-logo {
  width: 52px;
  height: 40px;
  object-fit: contain;
  flex: 0 0 auto;
  filter: drop-shadow(0 3px 5px rgba(7, 26, 34, 0.16));
}
.brand-wordmark {
  letter-spacing: -0.8px;
}
.brand em {
  font-style: normal;
  color: #10a876;
  letter-spacing: 0.02em;
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--ink);
  position: relative;
}
.brand-mark:before {
  content: "";
  width: 19px;
  height: 10px;
  border: 2px solid var(--mint);
  border-bottom: 0;
  border-radius: 7px 7px 2px 2px;
  position: absolute;
  top: 8px;
  left: 6px;
}
.brand-mark span {
  width: 22px;
  height: 9px;
  border: 2px solid white;
  border-radius: 3px;
  position: absolute;
  bottom: 7px;
  left: 5px;
}
.topbar nav {
  display: flex;
  gap: 5px;
}
.topbar nav a {
  text-decoration: none;
  color: #64787e;
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 650;
  font-size: 14px;
}
.topbar nav a:hover,
.topbar nav a.active {
  color: var(--ink);
  background: white;
  box-shadow: 0 2px 10px rgba(7, 26, 34, 0.07);
}
.session {
  display: flex;
  align-items: center;
  gap: 9px;
}
.session > span {
  color: var(--green);
}
.session > small {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: #71868c;
}
.session button {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 0;
  font-weight: 700;
}
.session i {
  font-style: normal;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--mint);
  font-size: 11px;
}
.garage-head {
  padding: 44px clamp(20px, 4.8vw, 70px) 31px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  background: linear-gradient(120deg, #fbfdfc, #eef7f5);
}
.kicker {
  color: #0a8f68;
  font-size: 10px;
  letter-spacing: 1.5px;
  font-weight: 850;
}
.garage-head h1 {
  font-size: clamp(36px, 4vw, 58px);
  line-height: 1;
  letter-spacing: -3.2px;
  margin: 10px 0 11px;
}
.garage-head p {
  color: var(--muted);
  margin: 0;
  max-width: 700px;
  font-size: 17px;
}
.head-actions {
  display: flex;
  gap: 10px;
}
.primary,
.secondary {
  border-radius: 9px;
  min-height: 48px;
  padding: 0 17px;
  font-weight: 750;
}
.primary {
  background: var(--ink);
  border: 1px solid var(--ink);
  color: white;
}
.secondary {
  background: white;
  border: 1px solid var(--line);
}
.vehicle-picker {
  margin: 21px clamp(20px, 4.8vw, 70px);
  padding: 17px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  display: grid;
  grid-template-columns: 1.3fr repeat(4, 1fr) auto;
  gap: 12px;
  align-items: end;
}
.picker-title strong,
.picker-title span {
  display: block;
}
.picker-title strong {
  font-size: 14px;
}
.picker-title span {
  font-size: 11px;
  color: var(--muted);
}
.picker-title {
  display: grid;
  min-width: 0;
  gap: 9px;
}
.picker-title .v5c-trigger {
  position: static;
  justify-self: start;
  width: max-content;
  min-height: 32px;
  border: 1px solid #b9d7cc;
  border-radius: 8px;
  background: #edf9f5;
  color: #087654;
  padding: 7px 10px;
  font-size: 11px;
  font-weight: 800;
}
.vehicle-picker label {
  font-size: 10px;
  letter-spacing: 0.7px;
  font-weight: 800;
  color: #71868b;
}
.vehicle-picker select,
.vehicle-picker input {
  width: 100%;
  height: 42px;
  margin-top: 4px;
  border: 1px solid #ccd9db;
  border-radius: 8px;
  background: white;
  padding: 0 9px;
  font-size: 13px;
}
.catalogue-search {
  grid-column: 2 / -1;
}
.vehicle-picker > button {
  height: 42px;
  border: 0;
  border-radius: 8px;
  background: var(--mint);
  font-weight: 800;
  padding: 0 15px;
}
.catalogue-match-note {
  grid-column: 2 / -1;
  margin: 0;
  padding: 9px 11px;
  border-radius: 8px;
  background: #f1f7f5;
  color: #536a70;
  font-size: 11px;
  line-height: 1.45;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: 255px minmax(0, 1fr);
  gap: 20px;
  padding: 0 clamp(20px, 4.8vw, 70px) 70px;
}
.garage-sidebar {
  background: var(--ink);
  color: white;
  border-radius: 15px;
  padding: 18px;
  height: max-content;
  position: sticky;
  top: 97px;
}
.sidebar-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4px 12px;
  font-size: 10px;
  letter-spacing: 1.1px;
  color: #7f969d;
  font-weight: 800;
}
.sidebar-label button {
  width: 25px;
  height: 25px;
  border-radius: 6px;
  border: 1px solid #486068;
  background: none;
  color: white;
}
.vehicle-listing {
  width: 100%;
  border: 0;
  background: transparent;
  color: white;
  border-radius: 10px;
  padding: 10px;
  display: grid;
  grid-template-columns: 42px 1fr 8px;
  gap: 10px;
  text-align: left;
  align-items: center;
}
.vehicle-listing.active,
.vehicle-listing:hover {
  background: rgba(87, 228, 179, 0.13);
}
.vehicle-monogram {
  width: 42px;
  height: 38px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #1c3a45;
  color: var(--mint);
  font-weight: 800;
}
.vehicle-monogram.pale {
  background: #e9f0f2;
  color: #2d4a54;
}
.vehicle-listing strong,
.vehicle-listing small,
.vehicle-listing em {
  display: block;
}
.vehicle-listing strong {
  font-size: 13px;
}
.vehicle-listing small {
  font-size: 10px;
  color: #95a9af;
}
.vehicle-listing em {
  font-style: normal;
  font-size: 9px;
  color: #68868e;
}
.garage-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid #ffffff1a;
  margin-top: 17px;
  padding-top: 16px;
  text-align: center;
}
.garage-stats div + div {
  border-left: 1px solid #ffffff1a;
}
.garage-stats strong,
.garage-stats span {
  display: block;
}
.garage-stats strong {
  color: var(--mint);
  font-size: 18px;
}
.garage-stats span {
  font-size: 8px;
  color: #7d949b;
}
.api-card {
  margin-top: 18px;
  background: #102b35;
  border: 1px solid #21414c;
  border-radius: 11px;
  padding: 15px;
}
.api-card > span {
  font-size: 8px;
  letter-spacing: 1.2px;
  color: var(--mint);
  font-weight: 800;
}
.api-card strong {
  display: block;
  font-size: 13px;
  margin-top: 6px;
}
.api-card p {
  font-size: 10px;
  color: #88a0a7;
}
.api-card button {
  border: 0;
  background: none;
  color: var(--mint);
  padding: 0;
  font-size: 10px;
}
.workspace {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.vehicle-stage,
.forecast-card,
.records-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 15px;
}
.vehicle-title {
  padding: 20px 24px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.plate {
  display: inline-block;
  background: #ffdc2e;
  color: #111;
  padding: 4px 9px;
  border: 1px solid #111;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.3px;
}
.vehicle-title h2 {
  font-size: 25px;
  margin: 8px 0 0;
}
.vehicle-title p {
  margin: 1px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.history-health {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 0 9px;
  border-left: 1px solid var(--line);
  padding-left: 20px;
}
.history-health > span {
  font-size: 8px;
  color: #7a8e94;
}
.history-health strong {
  grid-column: 2;
  grid-row: 1/3;
  font-size: 31px;
  color: var(--green);
}
.history-health strong small {
  font-size: 12px;
}
.history-health em {
  font-style: normal;
  font-size: 10px;
}
.stage-canvas {
  height: 405px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at center, #57e4b321, transparent 35%),
    linear-gradient(#0a222b, #071a22);
  border-radius: 0 0 14px 14px;
  touch-action: none;
  user-select: none;
}
.blueprint-grid {
  position: absolute;
  inset: 0;
  opacity: 0.17;
  background-image:
    linear-gradient(#7fd9e247 1px, transparent 1px),
    linear-gradient(90deg, #7fd9e247 1px, transparent 1px);
  background-size: 25px 25px;
  mask-image: radial-gradient(circle, #000 20%, transparent 70%);
}
.car-sprite {
  position: absolute;
  inset: 20px 15%;
  background: url("x5-e70-360-sprite.png") 0% 49%/800% auto no-repeat;
  filter: drop-shadow(0 25px 20px #0008);
  cursor: grab;
}
.hotspot {
  position: absolute;
  background: none;
  border: 0;
  color: white;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  text-shadow: 0 2px 8px #000;
}
.hotspot i {
  width: 17px;
  height: 17px;
  border: 2px solid var(--mint);
  border-radius: 50%;
  position: relative;
  box-shadow: 0 0 0 5px #57e4b31f;
}
.hotspot i:after {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  background: var(--mint);
  border-radius: 50%;
  inset: 4px;
}
.hotspot:hover i,
.hotspot.active i {
  box-shadow: 0 0 0 8px #57e4b333;
}
.engine {
  left: 31%;
  top: 38%;
}
.brakes {
  left: 27%;
  top: 67%;
}
.tyres {
  right: 24%;
  top: 67%;
}
.gearbox {
  left: 49%;
  top: 61%;
}
.part-popover {
  display: none;
  position: absolute;
  right: 20px;
  top: 18px;
  width: 245px;
  background: #fffffff5;
  color: var(--ink);
  border-radius: 11px;
  padding: 16px;
  box-shadow: var(--shadow);
  z-index: 4;
}
.part-popover.show {
  display: block;
}
.part-popover > button {
  position: absolute;
  right: 8px;
  top: 5px;
  border: 0;
  background: none;
  font-size: 20px;
}
.part-popover > span {
  color: var(--green);
  font-size: 8px;
  font-weight: 850;
}
.part-popover h3 {
  font-size: 16px;
  margin: 5px 0;
}
.part-popover p {
  font-size: 11px;
  color: var(--muted);
}
.part-popover div {
  border-top: 1px solid var(--line);
  padding-top: 9px;
}
.part-popover small,
.part-popover strong {
  display: block;
}
.part-popover small {
  font-size: 8px;
}
.part-popover strong {
  font-size: 11px;
}
.drag-instruction {
  position: absolute;
  left: 19px;
  bottom: 16px;
  color: white;
  display: grid;
  grid-template-columns: auto auto;
  gap: 0 8px;
  align-items: center;
}
.drag-instruction > span {
  grid-row: 1/3;
  font-size: 23px;
  color: var(--mint);
}
.drag-instruction strong {
  font-size: 10px;
}
.drag-instruction small {
  font-size: 9px;
  color: #78939c;
}
.model-notice {
  display: none;
  position: absolute;
  inset: 0;
  background: #061921e8;
  color: white;
  place-items: center;
  align-content: center;
  text-align: center;
}
.model-notice.show {
  display: grid;
}
.model-notice strong {
  font-size: 20px;
}
.model-notice span {
  font-size: 13px;
  color: #91a7ad;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 21px 23px 17px;
}
.section-head h2 {
  margin: 5px 0 0;
  font-size: 21px;
}
.section-head p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 11px;
}
.forecast-badge {
  background: #e6f8f1;
  color: #087c59;
  padding: 6px 9px;
  border-radius: 99px;
  font-size: 9px;
  font-weight: 800;
}
.driving-profile {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr auto;
  gap: 10px;
  padding: 14px 23px;
  background: #f3f7f6;
  border-block: 1px solid var(--line);
  align-items: end;
}
.driving-profile label {
  font-size: 9px;
  color: #697f85;
  font-weight: 800;
}
.unit-input {
  height: 39px;
  border: 1px solid #ccd8da;
  border-radius: 7px;
  background: white;
  display: flex;
  align-items: center;
  margin-top: 4px;
}
.unit-input input {
  min-width: 0;
  width: 100%;
  border: 0;
  background: none;
  padding-left: 9px;
  outline: none;
  font-size: 13px;
}
.unit-input span {
  font-size: 9px;
  color: #7a8e94;
  padding-right: 8px;
  white-space: nowrap;
}
.driving-profile select {
  display: block;
  width: 100%;
  height: 39px;
  border: 1px solid #ccd8da;
  border-radius: 7px;
  background: white;
  margin-top: 4px;
  padding: 0 8px;
  font-size: 12px;
}
.driving-profile button {
  height: 39px;
  border: 0;
  border-radius: 7px;
  background: var(--ink);
  color: white;
  font-size: 11px;
  font-weight: 750;
  padding: 0 13px;
}
.runway {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  padding: 20px 23px 14px;
}
.runway-item {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}
.runway-item:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--item-color);
}
.runway-item > span {
  font-size: 8px;
  color: var(--muted);
  font-weight: 800;
}
.runway-item h3 {
  font-size: 12px;
  margin: 6px 0 8px;
}
.runway-item strong {
  font-size: 14px;
  display: block;
}
.runway-item small {
  font-size: 9px;
  color: var(--muted);
}
.life-bar {
  height: 4px;
  background: #e6ecec;
  border-radius: 99px;
  margin: 11px 0 5px;
  overflow: hidden;
}
.life-bar i {
  display: block;
  height: 100%;
  width: var(--life);
  background: var(--item-color);
}
.forecast-disclaimer {
  font-size: 9px;
  color: #819399;
  padding: 0 23px 18px;
  margin: 0;
}
.record-tools,
.filter-row {
  display: flex;
  gap: 8px;
}
.record-tools button {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  padding: 7px 10px;
  font-size: 10px;
  font-weight: 750;
}
.filter-row {
  padding: 0 23px 13px;
  border-bottom: 1px solid var(--line);
}
.filter-row button {
  border: 0;
  background: transparent;
  color: #70858b;
  padding: 6px 9px;
  border-radius: 6px;
  font-size: 10px;
}
.filter-row button.active {
  background: #e6f7f1;
  color: #087c59;
}
.timeline {
  padding: 0 23px;
}
.timeline article {
  display: grid;
  grid-template-columns: 53px 12px 1fr auto;
  gap: 13px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid #e9eeee;
}
.timeline article.hidden {
  display: none;
}
.date {
  display: flex;
  gap: 5px;
  align-items: center;
}
.date strong {
  font-size: 20px;
}
.date span {
  font-size: 8px;
  color: #70858b;
}
.timeline article > i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 2px solid var(--green);
}
.record-copy > div {
  display: flex;
  align-items: center;
  gap: 8px;
}
.record-copy strong {
  font-size: 12px;
}
.record-copy p {
  font-size: 11px;
  margin: 3px 0;
}
.record-copy small {
  font-size: 9px;
  color: #819399;
}
.verified,
.owner,
.dvla {
  font-size: 8px;
  padding: 3px 6px;
  border-radius: 99px;
}
.verified {
  background: #e2f7ef;
  color: #087c59;
}
.owner {
  background: #fff2de;
  color: #986321;
}
.dvla {
  background: #e6f0fa;
  color: #285a8d;
}
.timeline article > b {
  font-size: 11px;
}
.full {
  width: 100%;
}
dialog {
  width: min(515px, calc(100% - 28px));
  border: 0;
  border-radius: 17px;
  padding: 28px;
  box-shadow: 0 30px 100px #0005;
}
dialog::backdrop {
  background: #021015b3;
  backdrop-filter: blur(5px);
}
dialog h2 {
  font-size: 26px;
  margin: 7px 0;
}
dialog > p {
  font-size: 13px;
  color: var(--muted);
}
.dialog-close {
  position: absolute;
  right: 13px;
  top: 10px;
  border: 0;
  background: none;
  font-size: 24px;
}
#record-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 18px;
}
#record-form label {
  font-size: 10px;
  font-weight: 750;
  color: #5d737a;
}
#record-form input,
#record-form select,
#record-form textarea {
  display: block;
  width: 100%;
  border: 1px solid #cad8da;
  border-radius: 7px;
  margin-top: 4px;
  padding: 9px;
  font-size: 12px;
}
#record-form textarea {
  height: 65px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.file-button {
  background: #f1f6f5;
  border: 1px dashed #b9cbce;
  border-radius: 8px;
  padding: 10px !important;
  cursor: pointer;
}
.file-button input {
  display: none !important;
}
.dropzone {
  height: 175px;
  border: 1px dashed #afc3c7;
  background: #f2f7f6;
  border-radius: 11px;
  display: grid;
  place-items: center;
  align-content: center;
  cursor: pointer;
  margin-top: 20px;
}
.dropzone > span {
  font-size: 28px;
  color: var(--green);
}
.dropzone small {
  color: var(--muted);
  font-size: 10px;
}
.dropzone input {
  display: none;
}
.scan-result {
  display: none;
  margin-top: 16px;
  border: 1px solid #cfe4de;
  background: #f0faf6;
  border-radius: 10px;
  padding: 14px;
}
.scan-result.show {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.scan-result > span,
.scan-result > .full {
  grid-column: 1/-1;
}
.scan-result small,
.scan-result strong {
  display: block;
}
.scan-result small {
  font-size: 8px;
}
.scan-result strong {
  font-size: 10px;
}
.v5c-dialog{max-width:560px}.verification-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:18px 0}.verification-steps>div{display:flex;gap:8px;padding:11px;border:1px solid #d9e4e5;border-radius:9px;background:#f8fbfa}.verification-steps b{display:grid;place-items:center;width:23px;height:23px;flex:0 0 auto;border-radius:50%;background:#dfe8e7;color:#52686e;font-size:10px}.verification-steps .done b{background:var(--green);color:#fff}.verification-steps span,.verification-steps strong,.verification-steps small{display:block}.verification-steps strong{font-size:10px}.verification-steps small{font-size:8px;color:var(--muted);margin-top:2px}.v5c-result{display:none;margin-top:14px;padding:14px;border:1px solid #cfe4de;border-radius:10px;background:#f0faf6}.v5c-result.show{display:block}.v5c-result>span{font-size:9px;font-weight:900;letter-spacing:.1em;color:var(--green)}.v5c-result dl{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:12px 0}.v5c-result dl div{padding:9px;background:#fff;border-radius:7px}.v5c-result dt{font-size:8px;color:var(--muted)}.v5c-result dd{margin:2px 0 0;font-size:11px;font-weight:800}.v5c-result .full{margin-top:4px}
#toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  background: var(--ink);
  color: white;
  padding: 12px 17px;
  border-radius: 9px;
  box-shadow: var(--shadow);
  font-size: 12px;
  font-weight: 700;
  opacity: 0;
  transform: translateY(20px);
  transition: 0.25s;
  z-index: 60;
}
#toast.show {
  opacity: 1;
  transform: none;
}
@media (max-width: 1100px) {
  .vehicle-picker {
    grid-template-columns: repeat(3, 1fr);
  }
  .catalogue-match-note {
    grid-column: 1 / -1;
  }
  .catalogue-search {
    grid-column: 1 / -1;
  }
  .picker-title {
    grid-column: 1/-1;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .garage-sidebar {
    position: static;
  }
  .runway {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 760px) {
  .topbar {
    height: 65px;
    padding: 0 16px;
  }
  .topbar nav,
  .session > small,
  .session > span {
    display: none;
  }
  .garage-head {
    padding: 33px 17px 25px;
    display: block;
  }
  .head-actions {
    margin-top: 20px;
  }
  .vehicle-picker {
    margin: 14px 17px;
    grid-template-columns: 1fr 1fr;
  }
  .picker-title {
    grid-column: 1/-1;
  }
  .vehicle-picker > button {
    grid-column: 1/-1;
  }
  .dashboard-grid {
    padding: 0 17px 50px;
  }
  .vehicle-title {
    align-items: flex-start;
  }
  .stage-canvas {
    height: 360px;
  }
  .car-sprite {
    inset: 30px 3%;
  }
  .hotspot span {
    display: none;
  }
  .engine {
    left: 20%;
  }
  .brakes {
    left: 17%;
  }
  .tyres {
    right: 14%;
  }
  .driving-profile {
    grid-template-columns: 1fr 1fr;
  }
  .driving-profile label:nth-child(3),
  .driving-profile button {
    grid-column: 1/-1;
  }
  .runway {
    grid-template-columns: 1fr 1fr;
  }
  .timeline article {
    grid-template-columns: 43px 9px 1fr;
  }
  .timeline article > b {
    display: none;
  }
  .record-copy > div {
    display: block;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 480px) {
  .head-actions {
    display: grid;
  }
  .vehicle-picker {
    grid-template-columns: 1fr;
  }
  .vehicle-picker label,
  .vehicle-picker > button {
    grid-column: 1;
  }
  .catalogue-match-note {
    grid-column: 1;
  }
  .catalogue-search {
    grid-column: 1;
  }
  .picker-title .v5c-trigger{display:block;width:100%}.verification-steps{grid-template-columns:1fr}.v5c-result dl{grid-template-columns:1fr}
  .history-health {
    padding-left: 10px;
  }
  .history-health > span,
  .history-health > em {
    display: none;
  }
  .stage-canvas {
    height: 320px;
  }
  .runway {
    grid-template-columns: 1fr;
  }
  .record-tools {
    display: none;
  }
  .filter-row {
    overflow: auto;
  }
  .timeline {
    padding: 0 15px;
  }
}
@media (max-width: 900px) {
  .road-status-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .road-status-panel {
    padding: 20px 17px;
  }
  .road-status-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .sync-button {
    width: 100%;
    justify-content: center;
  }
}
