:root {
  --detail-ink: #102039;
  --detail-text: #344257;
  --detail-muted: #788493;
  --detail-line: #e7ebef;
  --detail-soft: #f6f8fa;
  --detail-green: #0f8a62;
  --detail-green-soft: #ddf5eb;
  --detail-gold: #b98a3d;
  --detail-yellow: #a46d08;
  --detail-yellow-soft: #fff8e4;
  --detail-red: #c64a4a;
  --detail-red-soft: #fff0f0;
  --detail-cyan-soft: #e9f8fb;
  --detail-shadow: 0 8px 24px rgba(31, 47, 67, 0.045);
}

.detail-page {
  background:
    radial-gradient(circle at 85% 10%, rgba(221, 227, 234, 0.2), transparent 28rem),
    #fbfcfd;
}

.detail-page button {
  touch-action: manipulation;
}

.detail-page .listing-topbar {
  position: relative;
}

.detail-main {
  min-height: calc(100dvh - 72px);
  padding-bottom: 50px;
}

.detail-shell {
  width: min(1440px, calc(100% - 48px));
  margin-inline: auto;
}

.detail-crumb-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
}

.back-link,
.record-pager,
.record-pager button {
  display: inline-flex;
  align-items: center;
}

.back-link {
  gap: 7px;
  color: var(--detail-text);
  font-family: var(--listing-sans);
  font-size: var(--fs-base);
  font-weight: 600;
}

.back-link svg {
  width: 15px;
  height: 15px;
}

.record-pager {
  gap: 13px;
}

.record-pager button {
  min-height: 38px;
  gap: 5px;
  padding: 0;
  color: #526071;
  background: transparent;
  border: 0;
  font-family: var(--listing-sans);
  font-size: var(--fs-sm);
}

.record-pager button svg {
  width: 14px;
  height: 14px;
}

.record-pager strong {
  min-width: 34px;
  color: var(--detail-ink);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-align: center;
}

.vehicle-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 126px;
}

.vehicle-heading-copy {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 16px;
}

.vehicle-heading-copy > img {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  object-fit: contain;
}

.vehicle-heading h1 {
  margin: 0;
  color: var(--detail-ink);
  font-family: var(--listing-sans);
  font-size: var(--fs-4xl);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.025em;
}

.vehicle-heading-copy p {
  margin: 5px 0 0;
  color: var(--detail-ink);
  font-family: var(--listing-sans);
  font-size: var(--fs-xl);
  line-height: 1.1;
}

.vehicle-heading-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.vehicle-heading-tags span {
  padding: 5px 13px;
  color: #667382;
  background: #f1f3f5;
  border-radius: 999px;
  font-size: var(--fs-sm);
  line-height: 1;
}

.vehicle-heading-tags .is-success {
  color: #207958;
  background: var(--detail-green-soft);
}

.vehicle-heading-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.vehicle-heading-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 103px;
  height: 40px;
  gap: 8px;
  padding: 0 13px;
  color: #26364a;
  background: #fff;
  border: 1px solid #dfe4e9;
  border-radius: 6px;
  box-shadow: 0 3px 10px rgba(16, 32, 57, 0.025);
  font-family: var(--listing-sans);
  font-size: var(--fs-sm);
  font-weight: 600;
  transition:
    border-color var(--listing-ease),
    box-shadow var(--listing-ease),
    color var(--listing-ease);
}

.vehicle-heading-actions button:hover {
  border-color: #b9c1ca;
  box-shadow: 0 6px 16px rgba(16, 32, 57, 0.07);
}

.vehicle-heading-actions button svg {
  width: 17px;
  height: 17px;
}

.vehicle-heading-actions .danger-action:hover {
  color: #a23434;
  border-color: #e8b8b8;
}

.detail-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1.82fr) minmax(0, 1fr);
  height: 359px;
  gap: 12px;
  margin-top: 8px;
}

.gallery-main {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #e7eaed;
  border-radius: 8px;
}

.gallery-main > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-arrow {
  position: absolute;
  z-index: 2;
  top: 50%;
  width: 45px;
  height: 52px;
  padding: 0;
  background: transparent;
  border: 0;
  transform: translateY(-50%);
}

.gallery-arrow.is-left {
  left: 4px;
}

.gallery-arrow.is-right {
  right: 4px;
}

.gallery-arrow svg {
  width: 20px;
  height: 20px;
  opacity: 0;
}

.gallery-counter {
  position: absolute;
  right: 14px;
  bottom: 13px;
  opacity: 0;
}

.gallery-thumbs {
  display: grid;
  min-width: 0;
  min-height: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.5fr);
  gap: 8px;
}

.gallery-thumbs button {
  position: relative;
  min-width: 0;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  background: #e7eaed;
  border: 2px solid transparent;
  border-radius: 7px;
  transition:
    border-color var(--listing-ease),
    opacity var(--listing-ease);
}

.gallery-thumbs button:hover,
.gallery-thumbs button[aria-pressed="true"] {
  border-color: var(--detail-gold);
}

.gallery-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.key-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  height: 132px;
  gap: 12px;
  margin-top: 24px;
}

.metric-card,
.detail-card {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--detail-line);
  border-radius: 8px;
  box-shadow: var(--detail-shadow);
}

.metric-card {
  position: relative;
  min-width: 0;
  padding: 16px 17px 14px;
}

.metric-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.metric-card-top > span {
  color: #566375;
  font-family: var(--listing-sans);
  font-size: var(--fs-base);
  font-weight: 600;
}

.metric-card-top i {
  display: grid;
  width: 33px;
  height: 33px;
  flex: 0 0 33px;
  place-items: center;
  color: var(--detail-ink);
  background: #f4f6f8;
  border-radius: 8px;
}

.metric-card-top svg {
  width: 17px;
  height: 17px;
}

.metric-card > strong {
  display: block;
  margin-top: 7px;
  color: var(--detail-ink);
  font-family: var(--listing-sans);
  font-size: var(--fs-xl);
  font-weight: 600;
  line-height: 1.05;
}

.metric-card > strong.metric-positive {
  color: var(--detail-green);
}

.metric-card > em {
  display: block;
  margin-top: 6px;
  color: var(--detail-green);
  font-size: var(--fs-sm);
  font-style: normal;
  font-weight: 600;
}

.metric-card > small {
  display: block;
  margin-top: 8px;
  color: #87919d;
  font-family: var(--listing-sans);
  font-size: var(--fs-xs);
  line-height: 1.45;
}

.detail-section-gap {
  margin-top: 24px;
}

.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(0, 1.145fr) minmax(0, 0.97fr);
  min-height: 446px;
  gap: 12px;
}

.detail-card {
  min-width: 0;
  padding: 14px 16px;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 26px;
  margin-bottom: 10px;
}

.card-header h2 {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 8px;
  margin: 0;
  color: var(--detail-ink);
  font-family: var(--listing-sans);
  font-size: var(--fs-md);
  font-weight: 600;
  line-height: 1.15;
}

.card-header h2 svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.card-header > button {
  min-height: 30px;
  padding: 0 7px;
  color: #536176;
  background: #f7f8fa;
  border: 0;
  border-radius: 5px;
  font-family: var(--listing-sans);
  font-size: var(--fs-xs);
  font-weight: 600;
}

.card-header > button:hover {
  color: var(--detail-ink);
  background: #eef1f4;
}

.spec-list {
  display: grid;
  gap: 0;
  margin: 0;
}

.spec-list > div {
  display: grid;
  grid-template-columns: minmax(0, 46%) minmax(0, 54%);
  align-items: center;
  min-height: 30px;
  border-bottom: 1px solid #f0f2f4;
}

.spec-list > div:last-child {
  border-bottom: 0;
}

.spec-list dt,
.spec-list dd {
  margin: 0;
  font-family: var(--listing-sans);
  font-size: var(--fs-sm);
  line-height: 1.35;
}

.spec-list dt {
  color: #718091;
}

.spec-list dd {
  color: #26364a;
  font-weight: 500;
}

.copy-mini {
  display: inline-grid;
  width: 22px;
  height: 22px;
  margin-left: 3px;
  padding: 0;
  place-items: center;
  vertical-align: middle;
  color: #687587;
  background: transparent;
  border: 0;
}

.copy-mini svg {
  width: 12px;
  height: 12px;
}

.overview-side-stack {
  display: grid;
  min-width: 0;
  grid-template-rows: minmax(0, 1.63fr) minmax(0, 1fr);
  gap: 12px;
}

.location-card,
.insurance-card {
  padding: 14px;
}

.location-card > img {
  width: 100%;
  height: 145px;
  object-fit: cover;
  border-radius: 6px;
}

.location-address {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 12px;
}

.location-address > svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin-top: 1px;
}

.location-address p {
  display: flex;
  min-width: 0;
  flex-direction: column;
  margin: 0;
  font-family: var(--listing-sans);
}

.location-address strong {
  color: var(--detail-ink);
  font-size: var(--fs-sm);
}

.location-address span {
  margin-top: 3px;
  color: #687587;
  font-size: var(--fs-xs);
  line-height: 1.25;
}

.insurance-content {
  display: grid;
  grid-template-columns: 35px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding-top: 4px;
}

.axa-logo {
  position: relative;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  overflow: hidden;
  color: #fff;
  background: #163c93;
  font-family: Arial, sans-serif;
  font-size: var(--fs-sm);
  font-weight: 700;
}

.axa-logo::after {
  position: absolute;
  width: 47px;
  height: 1px;
  background: #e85f60;
  content: "";
  transform: rotate(-47deg);
}

.insurance-content > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.insurance-content strong {
  color: var(--detail-ink);
  font-family: var(--listing-sans);
  font-size: var(--fs-sm);
}

.insurance-content small {
  margin-top: 2px;
  overflow: hidden;
  color: #7b8794;
  font-family: var(--listing-sans);
  font-size: var(--fs-xs);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.insurance-content > b {
  color: var(--detail-ink);
  font-family: var(--listing-sans);
  font-size: var(--fs-base);
  white-space: nowrap;
}

.insurance-content > b small {
  display: inline;
  margin: 0;
  color: #718091;
  font-size: var(--fs-xs);
  font-weight: 400;
}

.finance-grid,
.bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  height: 280px;
  gap: 12px;
}

.chart-card {
  padding: 14px 16px 11px;
}

.value-chart {
  height: calc(100% - 36px);
}

.value-chart > svg {
  width: 100%;
  height: 100%;
}

.chart-gridlines path {
  fill: none;
  stroke: #e8ebee;
  stroke-width: 1;
}

.chart-axis-labels {
  fill: #84909c;
  font-family: var(--listing-sans);
  font-size: var(--fs-sm);
}

.chart-area {
  fill: url("#chart-fill");
}

.chart-line {
  fill: none;
  stroke: var(--detail-gold);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.chart-points circle {
  fill: var(--detail-gold);
  stroke: #fff;
  stroke-width: 2;
}

.chart-tooltip rect {
  fill: #fff;
  stroke: #dde2e7;
}

.chart-tooltip text {
  fill: var(--detail-ink);
  font-family: var(--listing-sans);
  font-size: var(--fs-xs);
  text-anchor: middle;
}

.chart-tooltip text:first-of-type {
  font-weight: 600;
}

.finance-list {
  display: grid;
  margin: 2px 0 0;
}

.finance-list > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 39px;
  border-bottom: 1px solid #eef1f3;
}

.finance-list > div:last-child {
  border-bottom: 0;
}

.finance-list dt,
.finance-list dd {
  margin: 0;
  font-family: var(--listing-sans);
  font-size: var(--fs-sm);
}

.finance-list dt {
  color: #657283;
}

.finance-list dt span {
  display: block;
  margin-top: 2px;
  color: #8d96a0;
  font-size: var(--fs-xs);
}

.finance-list dd {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--detail-ink);
}

.finance-list dd strong {
  font-size: var(--fs-sm);
}

.finance-list dd small {
  color: #818c98;
  font-size: var(--fs-xs);
}

.finance-list .is-total dd strong {
  color: var(--detail-gold);
  font-size: var(--fs-md);
}

.finance-list .is-profit dd strong {
  color: var(--detail-green);
  font-size: var(--fs-md);
}

.records-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr);
  height: 340px;
  gap: 12px;
}

.timeline-list,
.document-list,
.condition-card ul,
.highlights-card ul,
.watchpoints-card ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.timeline-list {
  position: relative;
}

.timeline-list::before {
  position: absolute;
  top: 21px;
  bottom: 20px;
  left: 17px;
  width: 1px;
  background: #e3e8ec;
  content: "";
}

.timeline-list li {
  position: relative;
  display: grid;
  grid-template-columns: 34px 73px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 54px;
  gap: 7px;
}

.timeline-list i {
  position: relative;
  z-index: 1;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #1f4b94;
  background: #e9f0ff;
  border: 1px solid #dbe5f5;
  border-radius: 50%;
  font-style: normal;
}

.timeline-list i.is-orange {
  color: #9b5b25;
  background: #fff1e7;
  border-color: #f0dfd2;
}

.timeline-list i.is-cyan {
  color: #147486;
  background: var(--detail-cyan-soft);
  border-color: #d7edf1;
}

.timeline-list i svg {
  width: 15px;
  height: 15px;
}

.timeline-list time,
.timeline-list p,
.timeline-list b {
  font-family: var(--listing-sans);
  font-size: var(--fs-xs);
}

.timeline-list time {
  color: #687587;
  white-space: nowrap;
}

.timeline-list p {
  display: flex;
  min-width: 0;
  flex-direction: column;
  margin: 0;
}

.timeline-list p strong {
  overflow: hidden;
  color: var(--detail-ink);
  font-size: var(--fs-sm);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timeline-list p span {
  margin-top: 3px;
  color: #7e8995;
}

.timeline-list b {
  color: var(--detail-ink);
  font-size: var(--fs-sm);
  font-weight: 600;
  white-space: nowrap;
}

.timeline-list b small {
  display: block;
  color: #7e8995;
  font-size: var(--fs-xs);
  font-weight: 400;
}

.document-list li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto 29px 29px;
  align-items: center;
  min-height: 54px;
  border-bottom: 1px solid #eef1f3;
}

.document-list li:last-child {
  border-bottom: 0;
}

.document-list > li > svg {
  width: 17px;
  height: 17px;
  color: #566679;
}

.document-list p {
  display: flex;
  min-width: 0;
  flex-direction: column;
  margin: 0;
  font-family: var(--listing-sans);
}

.document-list p strong {
  overflow: hidden;
  color: var(--detail-ink);
  font-size: var(--fs-sm);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.document-list p small {
  margin-top: 3px;
  color: #87919c;
  font-size: var(--fs-xs);
}

.document-list time {
  padding-inline: 8px;
  color: #697687;
  font-family: var(--listing-sans);
  font-size: var(--fs-xs);
  white-space: nowrap;
}

.document-list button {
  display: grid;
  width: 29px;
  height: 34px;
  padding: 0;
  place-items: center;
  color: #526174;
  background: transparent;
  border: 0;
}

.document-list button svg {
  width: 14px;
  height: 14px;
}

.condition-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) repeat(2, minmax(0, 1fr));
  height: 265px;
  gap: 12px;
}

.condition-card ul {
  display: grid;
}

.condition-card li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 44px;
  border-bottom: 1px solid #eef1f3;
}

.condition-card li:last-child {
  border-bottom: 0;
}

.condition-card li > svg {
  width: 17px;
  height: 17px;
}

.condition-card li p {
  display: flex;
  min-width: 0;
  flex-direction: column;
  margin: 0;
  font-family: var(--listing-sans);
}

.condition-card li strong {
  color: var(--detail-ink);
  font-size: var(--fs-sm);
}

.stars {
  margin-top: 2px;
  color: #d5a63d;
  font-family: var(--listing-sans);
  font-size: var(--fs-sm);
  letter-spacing: 1px;
}

.stars i {
  color: #dfe3e7;
  font-style: normal;
}

.condition-card li b {
  color: var(--detail-green);
  font-family: var(--listing-sans);
  font-size: var(--fs-sm);
  font-weight: 500;
}

.condition-card li b.is-good {
  color: var(--detail-yellow);
}

.highlights-card {
  background: linear-gradient(145deg, #fff 0 32%, #eefaf7 100%);
}

.watchpoints-card {
  background: linear-gradient(145deg, #fff 0 32%, #fff9ea 100%);
}

.highlights-card .card-header h2,
.highlights-card li svg {
  color: var(--detail-green);
}

.watchpoints-card .card-header h2,
.watchpoints-card li svg {
  color: var(--detail-yellow);
}

.highlights-card ul,
.watchpoints-card ul {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}

.highlights-card li,
.watchpoints-card li {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  align-items: start;
  gap: 6px;
  color: #304055;
  font-family: var(--listing-sans);
  font-size: var(--fs-xs);
  line-height: 1.35;
}

.highlights-card li svg,
.watchpoints-card li svg {
  width: 13px;
  height: 13px;
}

.bottom-grid {
  height: 235px;
}

.work-table {
  font-family: var(--listing-sans);
}

.work-table > div {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) 82px 70px 73px;
  align-items: center;
  min-height: 41px;
  border-bottom: 1px solid #eef1f3;
  color: #36465a;
  font-size: var(--fs-xs);
}

.work-table > div:last-child {
  border-bottom: 0;
}

.work-table .work-head {
  min-height: 30px;
  color: #788493;
  font-size: var(--fs-xs);
}

.work-table strong {
  color: var(--detail-ink);
  font-size: var(--fs-xs);
  font-weight: 600;
}

.work-table em {
  justify-self: start;
  padding: 5px 9px;
  color: #9b6813;
  background: #fff3d8;
  border-radius: 4px;
  font-size: var(--fs-xs);
  font-style: normal;
}

.work-table em.is-optional {
  color: #b64646;
  background: #ffeded;
}

.notes-card {
  position: relative;
}

.notes-card > p {
  margin: 5px 0 0;
  color: #455367;
  font-family: var(--listing-sans);
  font-size: var(--fs-sm);
  line-height: 1.48;
}

.notes-card > time {
  position: absolute;
  right: 16px;
  bottom: 13px;
  color: #8b959f;
  font-family: var(--listing-sans);
  font-size: var(--fs-xs);
}

.delete-dialog {
  width: min(440px, calc(100% - 32px));
  padding: 0;
  color: var(--detail-ink);
  background: transparent;
  border: 0;
}

.delete-dialog::backdrop {
  background: rgba(12, 24, 42, 0.5);
  backdrop-filter: blur(4px);
}

.delete-dialog form {
  position: relative;
  padding: 32px;
  text-align: center;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 24px 70px rgba(12, 24, 42, 0.22);
}

.delete-dialog-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  background: transparent;
  border: 0;
}

.delete-dialog-close svg {
  width: 18px;
  height: 18px;
}

.delete-dialog-icon {
  width: 42px;
  height: 42px;
  padding: 10px;
  color: var(--detail-red);
  background: var(--detail-red-soft);
  border-radius: 50%;
}

.delete-dialog h2 {
  margin: 17px 0 0;
  font-family: var(--listing-sans);
  font-size: var(--fs-2xl);
}

.delete-dialog p {
  margin: 10px 0 0;
  color: #657283;
  line-height: 1.55;
}

.delete-dialog form > div {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 24px;
}

.delete-dialog form > div button {
  min-height: 44px;
  border-radius: 7px;
  font-weight: 600;
}

.dialog-cancel {
  color: var(--detail-ink);
  background: #f3f5f7;
  border: 1px solid #e2e6ea;
}

.dialog-delete {
  color: #fff;
  background: #a93e3e;
  border: 1px solid #a93e3e;
}

@media (max-width: 980px) {
  .vehicle-heading {
    height: auto;
    min-height: 126px;
    gap: 20px;
    padding-block: 18px;
  }

  .vehicle-heading-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .detail-gallery {
    grid-template-columns: minmax(0, 1.55fr) minmax(280px, 1fr);
  }

  .overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .overview-side-stack {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
  }

  .overview-grid,
  .finance-grid,
  .records-grid,
  .condition-grid,
  .bottom-grid {
    height: auto;
  }

  .general-card,
  .technical-card {
    min-height: 446px;
  }

  .location-card,
  .insurance-card {
    min-height: 220px;
  }

  .chart-card,
  .finance-card {
    min-height: 280px;
  }

  .maintenance-card,
  .documents-card {
    min-height: 340px;
  }

  .condition-card,
  .highlights-card,
  .watchpoints-card {
    min-height: 265px;
  }

  .work-card,
  .notes-card {
    min-height: 235px;
  }
}

@media (max-width: 759px) {
  .detail-main {
    min-height: calc(100dvh - 64px);
    padding-bottom: 32px;
  }

  .detail-shell {
    width: calc(100% - 32px);
  }

  .detail-crumb-row {
    height: 58px;
  }

  .record-pager {
    gap: 4px;
  }

  .record-pager button {
    width: 44px;
    min-width: 44px;
    justify-content: center;
    font-size: 0;
  }

  .record-pager button:last-child {
    flex-direction: row-reverse;
  }

  .record-pager button svg {
    width: 18px;
    height: 18px;
  }

  .vehicle-heading {
    align-items: stretch;
    flex-direction: column;
    padding-block: 10px 22px;
  }

  .vehicle-heading-copy > img {
    width: 54px;
    height: 54px;
    flex-basis: 54px;
  }

  .vehicle-heading h1 {
    font-size: var(--fs-3xl);
  }

  .vehicle-heading-copy p {
    font-size: var(--fs-xl);
  }

  .vehicle-heading-tags {
    flex-wrap: wrap;
  }

  .vehicle-heading-tags span {
    padding: 6px 11px;
    font-size: var(--fs-sm);
  }

  .vehicle-heading-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .vehicle-heading-actions button {
    min-width: 0;
    min-height: 44px;
    padding-inline: 8px;
    font-size: var(--fs-sm);
  }

  .detail-gallery {
    height: auto;
    grid-template-columns: 1fr;
    margin-top: 0;
  }

  .gallery-main {
    aspect-ratio: 1.72;
  }

  .gallery-thumbs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(2, 92px);
  }

  .key-metrics {
    height: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metric-card {
    min-height: 132px;
  }

  .overview-grid,
  .finance-grid,
  .records-grid,
  .condition-grid,
  .bottom-grid {
    grid-template-columns: 1fr;
  }

  .overview-side-stack {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .general-card,
  .technical-card,
  .location-card,
  .insurance-card,
  .chart-card,
  .finance-card,
  .maintenance-card,
  .documents-card,
  .condition-card,
  .highlights-card,
  .watchpoints-card,
  .work-card,
  .notes-card {
    min-height: 0;
  }

  .location-card > img {
    height: auto;
    aspect-ratio: 1.9;
  }

  .chart-card {
    min-height: 280px;
  }

  .maintenance-card,
  .documents-card {
    min-height: 340px;
  }

  .timeline-list li {
    grid-template-columns: 34px 70px minmax(0, 1fr) auto;
  }

  .condition-card,
  .highlights-card,
  .watchpoints-card {
    min-height: 250px;
  }

  .work-card {
    overflow-x: auto;
  }

  .work-table {
    min-width: 520px;
  }

  .notes-card {
    min-height: 235px;
  }
}

@media (max-width: 460px) {
  .detail-crumb-row {
    height: 54px;
  }

  .back-link {
    font-size: var(--fs-sm);
  }

  .vehicle-heading-copy {
    align-items: flex-start;
    gap: 11px;
  }

  .vehicle-heading-copy > img {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
  }

  .vehicle-heading h1 {
    font-size: var(--fs-3xl);
  }

  .vehicle-heading-copy p {
    font-size: var(--fs-lg);
  }

  .vehicle-heading-actions button {
    gap: 5px;
    font-size: var(--fs-sm);
  }

  .vehicle-heading-actions button svg {
    width: 15px;
    height: 15px;
  }

  .gallery-thumbs {
    grid-template-rows: repeat(2, 76px);
    gap: 6px;
  }

  .key-metrics {
    gap: 10px;
  }

  .metric-card {
    min-height: 142px;
    padding: 14px 13px;
  }

  .metric-card > strong {
    font-size: var(--fs-xl);
  }

  .metric-card-top > span {
    font-size: var(--fs-sm);
  }

  .detail-card {
    padding-inline: 14px;
  }

  .card-header h2 {
    font-size: var(--fs-md);
  }

  .spec-list > div {
    grid-template-columns: minmax(0, 44%) minmax(0, 56%);
  }

  .timeline-list li {
    grid-template-columns: 32px minmax(0, 1fr) auto;
    min-height: 68px;
  }

  .timeline-list::before {
    left: 16px;
  }

  .timeline-list i {
    grid-row: 1 / 3;
    width: 32px;
    height: 32px;
  }

  .timeline-list time {
    grid-column: 2;
    align-self: end;
  }

  .timeline-list p {
    grid-column: 2;
    align-self: start;
  }

  .timeline-list b {
    grid-column: 3;
    grid-row: 1 / 3;
  }

  .document-list li {
    grid-template-columns: 24px minmax(0, 1fr) 29px 29px;
  }

  .document-list time {
    display: none;
  }

  .finance-list dd {
    align-items: flex-end;
    flex-direction: column;
    gap: 2px;
  }

  .insurance-content {
    grid-template-columns: 35px minmax(0, 1fr) auto;
  }

  .work-card {
    overflow-x: visible;
  }

  .work-table {
    min-width: 0;
  }

  .work-table > div {
    grid-template-columns: minmax(0, 1.5fr) 60px 55px 58px;
    font-size: var(--fs-xs);
  }

  .work-table em {
    padding-inline: 6px;
    font-size: var(--fs-xs);
  }

  .delete-dialog form {
    padding: 28px 20px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .detail-page *,
  .detail-page *::before,
  .detail-page *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
