:root {
  --sales-mono: var(--font-mono);
  --outcome-sold: var(--accent);
  --outcome-not-sold: #747c82;
  --outcome-bid-to: #d7dcdf;
  --outcome-unrecorded: #849097;
}

.sales-app {
  min-width: 0;
  background: #090b0d;
}

.sales-app h1,
.sales-app h2,
.sales-app h3 { font-family: var(--font-display); }

.sales-main,
.sales-footer {
  width: min(1200px, calc(100% - 48px));
  min-width: 0;
  margin-inline: auto;
}

.breadcrumbs {
  padding: 20px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.breadcrumbs ol {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumbs li + li::before {
  margin-right: 9px;
  color: #626a70;
  content: "/";
}

.breadcrumbs a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  text-underline-offset: 3px;
}

.sales-hero {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  gap: 64px;
  align-items: end;
  padding: 96px 0 64px;
  border-bottom: 1px solid var(--line);
}

.sales-hero-heading { min-width: 0; display: grid; gap: 32px; }

.sales-kicker,
.section-label {
  margin: 0 0 16px;
  color: var(--muted);
  font-family: var(--sales-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.sales-hero h1 {
  max-width: 840px;
  font-size: 56px;
  line-height: 1;
  letter-spacing: -.03em;
}

.sales-hero-media {
  min-width: 0;
  margin: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.sales-hero-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  display: block;
  object-fit: cover;
  filter: saturate(.9) contrast(1.02);
}

.sales-hero-media figcaption {
  min-height: 44px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 10px 0;
  color: var(--muted);
  font-family: var(--sales-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.sales-hero-media figcaption span:first-child { color: var(--ink); }

.sales-hero-copy {
  max-width: 650px;
  color: #b8bec2;
  font-size: 16px;
  line-height: 1.65;
}

.sales-hero-copy p { margin: 0 0 18px; }
.sales-hero-copy a,
.method-summary a,
.sales-footer a { color: #fff; text-underline-offset: 3px; }

.sales-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  margin: 28px 0;
}

.sales-hero-actions a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 700;
}

.sales-primary-link {
  padding: 0 18px;
  color: #090b0d !important;
  background: var(--accent);
  text-decoration: none;
}

.sales-scope {
  color: var(--ink);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.025em;
}

.snapshot-meta {
  color: var(--muted);
  font-size: 13px;
}

.snapshot-meta code {
  color: #d7dbde;
  font-family: var(--sales-mono);
  font-size: 12px;
}

.sales-boundary {
  display: grid;
  grid-template-columns: minmax(190px, .28fr) minmax(0, 1fr);
  gap: 32px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
  color: #b4babd;
  font-size: 14px;
  line-height: 1.6;
}

.sales-boundary-intro strong { color: var(--ink); }
.sales-boundary-intro p { max-width: 38ch; margin: 10px 0 0; }

.market-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.market-summary > div {
  min-width: 0;
  padding: 16px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.market-summary dt { min-height: 38px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.market-summary dd { margin: 10px 0 0; }
.market-summary strong { display: block; color: #fff; font-family: var(--sales-mono); font-size: 17px; font-variant-numeric: tabular-nums; line-height: 1.2; }
.market-summary span { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; }

.sales-section-index {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.sales-section-index a {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: 1px solid var(--line);
  color: #c9ced1;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}

.sales-section-index a:last-child { border-right: 1px solid var(--line); }
.sales-section-index a:hover { color: #fff; border-bottom: 2px solid var(--accent); }

#list-your-ultima,
#last-observed,
#prices,
#countries,
#models,
#records,
#leads { scroll-margin-top: calc(var(--app-header-height) + 16px); }

.sales-listing-invite {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, .72fr);
  margin-top: 48px;
  border: 1px solid var(--line);
  background: #0f1215;
}

.sales-listing-invite-copy,
.sales-listing-invite-action { min-width: 0; padding: 28px; }
.sales-listing-invite-copy { border-right: 1px solid var(--line); }
.sales-listing-invite-copy h2 { margin: 0; font-size: 32px; line-height: 1.05; letter-spacing: -.03em; }
.sales-listing-invite-copy > p:last-child { max-width: 660px; margin: 18px 0 0; color: #b8bec2; font-size: 15px; line-height: 1.65; }
.sales-listing-invite-action { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.sales-listing-invite-action > p { max-width: 430px; margin: 14px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }

.sales-listing-cta {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid var(--accent);
  border-radius: var(--control-radius);
  color: #090b0d;
  background: var(--accent);
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

button.sales-listing-cta:disabled {
  border-color: #596066;
  color: #c7cccf;
  background: #22272a;
  cursor: not-allowed;
  opacity: 1;
}

.sales-section {
  min-width: 0;
  padding: 96px 0;
  border-bottom: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, .62fr);
  gap: 32px;
  align-items: end;
  margin-bottom: 32px;
}

.section-heading h2,
.method-summary h2 {
  margin: 0;
  font-size: 40px;
  line-height: 1.05;
  letter-spacing: -.035em;
}

.section-heading > p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.observation-log { position: relative; }
.observation-list { border-top: 1px solid #4a2626; }

.observation-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(125px, .45fr) minmax(260px, 1.4fr) minmax(180px, .7fr) minmax(130px, .45fr);
  gap: 24px;
  align-items: center;
  padding: 20px 18px 20px 24px;
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: transparent;
}

.observation-row h3 { margin: 0 0 4px; font-size: 21px; line-height: 1.1; }
.observation-row p { margin: 0; color: var(--muted); font-size: 13px; }
.observation-row .observation-facts { margin-top: 9px; color: #e0e3e5; font-family: var(--sales-mono); font-size: 13px; font-variant-numeric: tabular-nums; line-height: 1.45; }
.observation-row time,
.observation-row strong { display: block; font-family: var(--sales-mono); font-size: 13px; font-variant-numeric: tabular-nums; }
.observation-row span { display: block; color: var(--muted); font-size: 12px; }
.observation-row a { min-height: 44px; display: inline-flex; align-items: center; color: #fff; font-size: 13px; text-underline-offset: 3px; }
.observation-row .observation-evidence { margin-top: 8px; color: #f2b544; font-size: 12px; font-weight: 700; }
.observation-price { justify-self: end; text-align: right; }
.observation-price strong { font-size: 20px; line-height: 1.15; }
.observation-price-entry { display: block; }
.observation-price-entry > strong { color: #fff; }
.observation-price-entry + .observation-price-entry { margin-top: 10px; }
.observation-price .observation-price-gbp {
  display: block;
  margin-top: 4px;
  color: #b5bdc2;
  font-family: var(--sales-mono);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  line-height: 1.35;
}
.observation-price .observation-country { margin-top: 4px; }
.observation-date small { display: block; max-width: 15ch; margin-top: 7px; color: #8f979c; font-size: 12px; line-height: 1.4; }
.observation-source a > span[aria-hidden="true"] { margin-left: 5px; color: inherit; font-size: inherit; transition: transform 150ms ease-out; }
.observation-source a:hover > span[aria-hidden="true"] { transform: translate(2px, -2px); }

.observation-row.has-media {
  grid-template-columns: minmax(220px, .85fr) minmax(260px, 1.25fr) minmax(170px, .62fr) minmax(120px, .42fr) minmax(140px, .48fr);
}

.sales-listing-photo {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 3 / 2;
  background: #050607;
}

.sales-listing-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.sales-listing-photo.is-missing {
  display: grid;
  place-items: center;
  min-height: 132px;
  background: #0f1215;
  color: #7f878c;
}

.sales-listing-photo.is-missing > span {
  padding: 10px;
  font-family: var(--sales-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-align: center;
}
.sales-source-photo-link > span > span { display: inline; padding: 0; font: inherit; letter-spacing: inherit; }
.sales-source-photo-link {
  align-content: center;
  gap: 4px;
  border-color: #61747d !important;
  color: #f2f5f6 !important;
  text-decoration: none;
  transition: border-color 150ms ease-out, background-color 150ms ease-out;
}
.sales-source-photo-link:hover { border-color: var(--accent) !important; background: #1b252a !important; }
.sales-source-photo-link:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.sales-source-photo-link small { padding: 0 12px; color: #b7c5ca; font-size: 12px; line-height: 1.4; text-align: center; }

.observation-reference,
.ledger-identifiers {
  display: block;
  margin-top: 7px;
  color: #aeb4b8 !important;
  font-family: var(--sales-mono);
  font-size: 11px !important;
  font-variant-numeric: tabular-nums;
}

.bar-filter {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--control-radius);
  color: var(--ink);
  background: #101316;
  font: inherit;
  cursor: pointer;
}

.bar-filter[aria-pressed="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.bar-filter:disabled { opacity: .56; cursor: default; }

.chart-data {
  margin-top: 14px;
  border: 1px solid var(--line);
  background: #0f1215;
}

.chart-data summary {
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 10px 14px;
  color: #dfe2e4;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.chart-data summary::after,
.remaining-price-records > summary::after {
  margin-left: auto;
  color: var(--accent);
  content: "+";
  font-family: var(--sales-mono);
  font-size: 18px;
}

.chart-data[open] > summary::after,
.remaining-price-records[open] > summary::after { content: "−"; }

.table-scroll { max-width: 100%; overflow-x: auto; }
.chart-data table { width: 100%; min-width: 560px; border-collapse: collapse; }
.chart-data th,
.chart-data td { padding: 10px 13px; border-top: 1px solid var(--line); text-align: right; font-family: var(--sales-mono); font-size: 12px; }
.chart-data th:first-child { text-align: left; }

.price-story-plots {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.price-plot {
  min-width: 0;
  border: 1px solid var(--line);
  background: #0d1012;
}

.price-plot > header {
  display: flex;
  gap: 24px;
  justify-content: space-between;
  align-items: end;
  padding: 20px;
  border-bottom: 1px solid var(--line);
}

.price-plot > header span,
.price-plot > header p {
  color: var(--muted);
  font-family: var(--sales-mono);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.price-plot > header h3 { margin: 7px 0 0; font-size: 22px; }
.price-plot > header p { margin: 0; color: #fff; white-space: nowrap; }

.price-plot-scroll {
  max-width: 100%;
  overflow: hidden;
}

.price-plot-scroll:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.price-plot-svg {
  width: min(100%, 960px);
  height: auto;
  display: block;
  margin-inline: auto;
  padding: 10px;
  overflow: visible;
}

.price-axis { stroke: #626a70; stroke-width: 1; }
.price-axis-label { fill: #b2b8bc; font-family: var(--sales-mono); font-size: 12px; font-variant-numeric: tabular-nums; }
.price-plot-hit-area { fill: transparent; pointer-events: all; }
.price-plot-point { fill: var(--accent); stroke: #090b0d; stroke-width: 2; }
.price-plot-svg a:hover .price-plot-point,
.price-plot-svg a:focus .price-plot-point { fill: #fff; stroke: var(--accent); stroke-width: 3; }
.chart-scroll-hint { display: none; }
.price-table-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: #fff;
}

.remaining-price-records {
  margin-top: 32px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.remaining-price-records > summary {
  min-height: 52px;
  display: flex;
  align-items: center;
  color: #fff;
  font-weight: 750;
  cursor: pointer;
}

.remaining-price-records > p { max-width: 68ch; color: var(--muted); font-size: 13px; line-height: 1.6; }

.price-cohort-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.price-cohort {
  min-height: 190px;
  padding: 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: transparent;
}

.price-cohort header { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-family: var(--sales-mono); font-size: 12px; }
.price-cohort header span { color: var(--accent); font-weight: 800; letter-spacing: .1em; }
.price-cohort h3 { margin: 28px 0 9px; font-size: 18px; }
.price-cohort p { margin: 0 0 8px; color: #fff; font-family: var(--sales-mono); font-size: 15px; font-variant-numeric: tabular-nums; }
.price-cohort small { color: var(--muted); font-size: 12px; line-height: 1.5; }

.bar-list { display: grid; gap: 8px; margin: 0; }
.country-section .bar-list,
.model-section .bar-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bar-entry,
.bar-entry dt { min-width: 0; margin: 0; }
.bar-filter {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(130px, .9fr) minmax(120px, 1.5fr) 44px;
  gap: 14px;
  align-items: center;
  padding: 8px 12px;
  text-align: left;
}

.bar-filter span { overflow: hidden; font-size: 13px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.bar-filter strong { font-family: var(--sales-mono); font-size: 13px; text-align: right; }
.bar-filter meter { width: 100%; height: 12px; border: 0; background: #252a2e; }
.bar-filter meter::-webkit-meter-bar { border: 0; border-radius: 0; background: #252a2e; }
.bar-filter meter::-webkit-meter-optimum-value { background: var(--accent); }
.bar-filter meter::-moz-meter-bar { background: var(--accent); }

.country-lede {
  max-width: 24ch;
  margin: 0 0 32px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.025em;
}

.model-taxonomy-note {
  max-width: 62ch;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.country-story {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, .6fr);
  gap: 32px;
  align-items: center;
  margin-bottom: 40px;
  padding: 24px;
  border: 1px solid var(--line);
  background: #0d1012;
}

.country-strip { width: 100%; height: auto; display: block; }
.country-strip rect { stroke: #090b0d; stroke-width: 2; }
.country-strip text { fill: #9ba2a7; font-family: var(--sales-mono); font-size: 11px; }
.country-uk { fill: var(--accent); }
.country-us { fill: #a96a3f; }
.country-other { fill: #40464b; }
.country-story dl { display: grid; gap: 10px; margin: 0; }
.country-story dl > div { display: flex; gap: 16px; justify-content: space-between; padding-bottom: 9px; border-bottom: 1px solid var(--line); }
.country-story dt { color: var(--muted); font-size: 12px; }
.country-story dd { display: flex; gap: 10px; margin: 0; font-family: var(--sales-mono); font-size: 12px; }
.country-story dd span { color: var(--muted); }

.notable-strip {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.notable-item {
  min-width: 0;
  min-height: 230px;
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.notable-value { margin: 0 0 42px; color: #fff; font-family: var(--sales-mono); font-size: 36px; font-variant-numeric: tabular-nums; font-weight: 750; letter-spacing: -.04em; }
.notable-item h3 { margin: 0 0 10px; font-size: 18px; }
.notable-item > p:last-child { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }

.sales-filters {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(240px, 1.6fr) repeat(4, minmax(135px, .8fr));
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  background: #0f1215;
}

/* With JavaScript disabled the static ledger is the useful fallback, not a
   grid of controls that cannot be operated. sales.js adds this class before
   enabling the filters. */
html:not(.sales-enhanced) .sales-filters { display: none; }

.sales-filters label {
  min-width: 0;
  display: grid;
  gap: 6px;
  color: #c4c9cc;
  font-size: 12px;
  font-weight: 700;
}

.sales-filters input,
.sales-filters select,
.sales-filters button {
  width: 100%;
  min-height: 44px;
  padding: 0 11px;
  border: 1px solid #4d555b;
  border-radius: var(--control-radius);
  color: var(--ink);
  background: #090b0d;
  font: inherit;
  font-size: 13px;
}

.sales-filters button { align-self: end; color: #fff; font-weight: 750; cursor: pointer; }
.sales-filters :disabled { opacity: .8; cursor: default; }
.filter-search { grid-row: span 2; }

.sales-filter-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
}

#sales-copy-view {
  width: auto;
  min-width: 144px;
  padding-inline: 14px;
  border-color: #656e74;
  background: transparent;
}

#sales-copy-status {
  min-height: 18px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.result-summary {
  min-height: 24px;
  margin: 20px 0 12px;
  color: #d7dbde;
  font-family: var(--sales-mono);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.ledger-scroll {
  border: 1px solid var(--line);
  background: #0d1012;
}

.sales-ledger {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
  table-layout: fixed;
}

.sales-ledger th:first-child { width: 51%; }
.sales-ledger th:nth-child(2) { width: 25%; }
.sales-ledger th:nth-child(3) { width: 24%; }

/* The horizontal ledger scroller owns sticky positioning, so headers remain in flow. */
.sales-ledger th {
  padding: 16px 22px;
  border-bottom: 1px solid #555d62;
  color: #b8bec2;
  background: #15191c;
  font-size: 12px;
  letter-spacing: 0;
  text-align: left;
}

.sales-ledger td {
  padding: 22px;
  border-bottom: 1px solid var(--line);
  color: #c8cdd0;
  font-size: 14px;
  line-height: 1.5;
  vertical-align: top;
}

.sales-ledger tr:last-child td { border-bottom: 0; }
.sales-ledger tr[hidden] { display: none; }
.sales-ledger tbody tr:focus { outline: 2px solid var(--accent); outline-offset: -2px; scroll-margin-top: 96px; }
.sales-ledger td > strong,
.sales-ledger td > time { display: block; color: #fff; font-weight: 700; }
.sales-ledger td > time,
.price-line strong { font-family: var(--sales-mono); font-variant-numeric: tabular-nums; }
.sales-ledger td > small,
.price-line small { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.date-with-precision { display: flex; gap: 8px; align-items: baseline; }
.date-with-precision time { color: #fff; font-family: var(--sales-mono); font-variant-numeric: tabular-nums; font-weight: 700; }
.precision-mark,
.country-note { color: var(--accent); font-family: var(--sales-mono); font-size: 11px; font-weight: 800; text-decoration: none; cursor: help; }
.country-note { display: inline-flex; margin-top: 6px; }
.ledger-country { margin-top: 12px !important; }
.ledger-country .country-note { margin: 0 0 0 3px; }
.ledger-outcome { display: block; margin-bottom: 8px; font-size: 17px; line-height: 1.25; }
.ledger-record-source { margin-top: 16px; padding-top: 10px; border-top: 1px solid var(--line); }
.ledger-record-source a { font-size: 13px; }
.ledger-model,
.ledger-identifiers,
.ledger-source,
.ledger-discovery { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.ledger-source { margin-top: 9px; color: #c4c9cc; }
.ledger-discovery { color: #858d92; }
.ledger-photo-origin { display: block; margin-top: 7px; color: #a8b8c0; font-size: 12px; }
.ledger-car-summary {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(150px, 176px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.ledger-car-summary.no-photo { grid-template-columns: minmax(0, 1fr); }
.ledger-car-summary.no-photo .sales-ledger-thumb { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.ledger-car-title { display: block; color: #fff; font-size: 17px; font-weight: 750; line-height: 1.3; }
.sales-ledger-thumb {
  width: 100%;
  margin: 0;
  overflow: hidden;
  border: 1px solid #3a4044;
  aspect-ratio: 3 / 2;
  background: #050607;
}
.sales-ledger-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.sales-ledger-thumb.is-missing {
  display: grid;
  place-items: center;
  padding: 8px;
  color: #777f84;
  background-color: #101315;
  text-align: center;
}
.sales-ledger-thumb.is-missing span {
  font-family: var(--sales-mono);
  font-size: 9px;
  line-height: 1.35;
  letter-spacing: .06em;
}
.ledger-quick-facts {
  display: flex !important;
  flex-wrap: wrap;
  gap: 5px 10px;
  margin-top: 7px !important;
  color: #c3c8cb !important;
  font-family: var(--sales-mono);
  font-variant-numeric: tabular-nums;
}
.ledger-quick-facts span + span::before {
  margin-right: 10px;
  color: var(--accent);
  content: "·";
}
.sales-ledger a { min-height: 44px; display: inline-flex; align-items: center; color: #fff; text-underline-offset: 3px; }
.sales-ledger .ledger-car-title a { min-height: 0; }
.price-line { display: block; margin-bottom: 9px; }
.price-fx { display: block; margin-top: 5px; color: #9ca5aa; font-size: 11px; line-height: 1.5; }
.price-fx a { min-height: auto; color: inherit; text-underline-offset: 2px; }
.not-recorded { color: var(--muted); }
.sales-price-token { display: none; }

.sales-load-more {
  min-height: 44px;
  margin-top: 20px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--accent);
  color: #fff;
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.sales-load-more:hover { color: var(--accent); }
.sales-data-use { margin: 24px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.sales-data-use a { color: #fff; text-underline-offset: 3px; }

.listing-state {
  width: fit-content;
  margin-top: 9px;
  padding: 3px 7px;
  border: 1px solid #566067;
  color: #cfd4d7;
  font-family: var(--sales-mono);
  font-size: 11px;
  line-height: 1.4;
}

.listing-state-live { border-color: #795f25; color: #f0c96e; background: rgba(121, 95, 37, .12); }
.listing-source-status {
  margin: 8px 0 0;
  color: #d7b46a;
  font-family: var(--sales-mono);
  font-size: 11px;
  line-height: 1.45;
}
.listing-source-status span { color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.sales-empty,
.sales-notice { padding: 16px; border: 1px solid var(--line); color: #c6cbce; background: #0f1215; font-size: 14px; line-height: 1.6; }

.lead-list { border-top: 1px solid var(--line); }
.lead-row {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(260px, 1fr) minmax(150px, .4fr);
  gap: 24px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.lead-row h3 { margin: 6px 0 0; font-size: 16px; }
.lead-row p { margin: 0; color: var(--muted); font-size: 13px; }
.lead-row a { min-height: 44px; display: inline-flex; align-items: center; color: #fff; font-size: 13px; text-underline-offset: 3px; }
.lead-status { color: #e6bd66; font-size: 11px; font-weight: 800; letter-spacing: .1em; }
.lead-date { display: block; margin-top: 8px; color: var(--muted); font-family: var(--sales-mono); font-size: 11px; }
.lead-record ul { margin: 8px 0 0; padding-left: 18px; color: #b9c0c4; font-size: 12px; line-height: 1.55; }
.lead-source { justify-self: end; }

.priced-lead-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 48px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.priced-lead {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(110px, .4fr) minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding: 20px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.priced-lead > strong { color: #fff; font-family: var(--sales-mono); font-size: 18px; font-variant-numeric: tabular-nums; }
.priced-lead h3 { margin: 0 0 5px; font-size: 15px; }
.priced-lead p { margin: 0; color: var(--muted); font-size: 12px; }
.priced-lead small { display: block; margin-top: 7px; color: #b9c0c4; font-size: 11px; line-height: 1.5; }
.priced-lead a { display: inline-flex; min-height: 44px; align-items: center; color: #fff; font-size: 12px; text-underline-offset: 3px; }
.lead-correction-link { margin: 24px 0 0; }
.lead-correction-link a { min-height: 44px; display: inline-flex; align-items: center; color: #fff; font-size: 14px; text-underline-offset: 3px; }
.lead-contribution { max-width: 760px; margin: 32px 0 0; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lead-contribution p { margin: 0; color: #c1c7ca; font-size: 15px; line-height: 1.7; }
.lead-contribution p + p { margin-top: 16px; }
.lead-contribution a { min-height: 44px; display: inline-flex; align-items: center; color: #fff; font-weight: 700; text-underline-offset: 3px; }
.lead-contribution small { display: block; margin-top: 12px; color: var(--muted); font-size: 12px; line-height: 1.55; }

.sales-car-file { padding-bottom: 96px; }
.sales-car-file-header { max-width: 960px; padding: 88px 0 56px; border-bottom: 1px solid var(--line); }
.sales-car-file-header h1 { max-width: 13ch; margin: 0; font-size: clamp(44px, 6vw, 76px); line-height: .98; letter-spacing: -.04em; }
.sales-car-file-header > p:not(.sales-kicker) { max-width: 63ch; margin: 28px 0 0; color: #b8bec2; font-size: 17px; line-height: 1.7; }
.sales-car-file-header dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 44px 0 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.sales-car-file-header dl div { min-width: 0; padding: 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sales-car-file-header dt { color: var(--muted); font-family: var(--sales-mono); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.sales-car-file-header dd { margin: 7px 0 0; color: var(--ink); font-family: var(--sales-mono); font-size: 12px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.sales-car-event-list { border-top: 1px solid var(--line); }
.sales-car-event { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; padding: 32px 0; border-bottom: 1px solid var(--line); }
.sales-car-event-media { width: 220px; margin: 0; border: 1px solid #3a4044; aspect-ratio: 3 / 2; background: #050607; overflow: hidden; }
.sales-car-event-media img { width: 100%; height: 100%; display: block; object-fit: cover; }
.sales-car-event-media.is-missing { display: grid; place-items: center; padding: 12px; color: #777f84; background: #101315; text-align: center; }
.sales-car-event-media.is-missing > span { font-family: var(--sales-mono); font-size: 12px; letter-spacing: .06em; }
.sales-car-event-media.sales-source-photo-link { display: grid; }
.sales-car-event-copy { min-width: 0; }
.sales-car-event-copy .section-label { margin-bottom: 12px; }
.sales-car-event h2 { margin: 0; font-size: clamp(24px, 3vw, 36px); letter-spacing: -.03em; }
.sales-car-event-meta { margin: 12px 0 0; color: #aeb5b9; font-family: var(--sales-mono); font-size: 12px; line-height: 1.6; }
.sales-car-identifiers { display: block; margin-top: 10px; color: var(--muted); font-size: 12px; }
.sales-car-event-outcome { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 22px 0 0; }
.sales-car-event-outcome strong { color: #fff; }
.sales-car-event-outcome span { color: var(--muted); font-size: 13px; }
.sales-car-evidence { max-width: 760px; margin: 18px 0 0; padding: 14px 0 0 16px; border-left: 2px solid var(--accent); }
.sales-car-evidence p { margin: 0; color: #fff; font-size: 13px; }
.sales-car-evidence ul { margin: 8px 0 0; padding-left: 18px; color: #b8bec2; font-size: 13px; line-height: 1.55; }
.sales-car-evidence li + li { margin-top: 5px; }
.sales-car-event-prices { margin-top: 16px; }
.sales-car-event-actions { display: flex; flex-wrap: wrap; gap: 12px 20px; margin: 20px 0 0; }
.sales-car-event-actions a,
.sales-car-file-return a { min-height: 44px; display: inline-flex; align-items: center; color: #fff; font-size: 14px; text-underline-offset: 3px; }
.sales-car-file-return { margin: 32px 0 0; }

.method-summary {
  display: grid;
  grid-template-columns: minmax(250px, .75fr) minmax(0, 1.25fr);
  gap: 64px;
}

.method-summary p { max-width: 780px; margin: 0 0 16px; color: #b8bec2; font-size: 15px; line-height: 1.7; }

.sales-footer {
  min-height: 120px;
  display: block;
  padding-block: 28px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.sales-footer p { max-width: 1100px; margin: 0; }

.methodology-article {
  width: min(980px, 100%);
  margin: 0 auto;
  padding: clamp(52px, 7vw, 92px) 0;
}

.methodology-title {
  padding-bottom: clamp(44px, 6vw, 76px);
  border-bottom: 1px solid var(--line);
}

.methodology-title h1 { font-size: 56px; }
.methodology-title > p:not(.sales-kicker) { max-width: 760px; margin: 28px 0 0; color: #b8bec2; font-size: 18px; line-height: 1.7; }
.methodology-title dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 42px 0 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.methodology-title dl div { padding: 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.methodology-title dt { color: var(--muted); font-size: 11px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.methodology-title dd { margin: 8px 0 0; color: #fff; font-family: var(--sales-mono); font-size: 13px; }
.methodology-article section { display: grid; grid-template-columns: minmax(160px, .35fr) minmax(0, 1fr); column-gap: 44px; padding: clamp(40px, 6vw, 68px) 0; border-bottom: 1px solid var(--line); }
.methodology-article section .section-label { grid-row: 1 / span 3; }
.methodology-article section h2 { margin: 0 0 18px; font-size: clamp(27px, 3vw, 40px); letter-spacing: -.035em; }
.methodology-article section p:not(.section-label) { grid-column: 2; margin: 0 0 16px; color: #b8bec2; font-size: 15px; line-height: 1.75; }
.methodology-article section a { color: #fff; text-underline-offset: 3px; }

@media (hover: hover) and (pointer: fine) {
  .bar-filter:not(:disabled):hover { border-color: #656e74; background: #171b1f; }
  .sales-ledger tbody tr:hover { background: #121619; }
}

@media (max-width: 1120px) {
  .price-cohort-grid,
  .market-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sales-section-index { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sales-section-index a:nth-child(n + 5) { border-top: 1px solid var(--line); }
  .sales-section-index a:nth-child(4n) { border-right: 1px solid var(--line); }
  .price-story-plots { grid-template-columns: 1fr; }
  .sales-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .filter-search { grid-row: auto; grid-column: span 2; }
  .observation-row { grid-template-columns: minmax(120px, .45fr) minmax(260px, 1.3fr) minmax(170px, .7fr); }
  .observation-row > div:last-child { grid-column: 2 / -1; }
  .observation-row.has-media { grid-template-columns: minmax(210px, .7fr) minmax(260px, 1.1fr) minmax(160px, .55fr); }
  .observation-row.has-media .sales-listing-photo { grid-row: 1 / span 2; }
  .observation-row.has-media .observation-date { grid-column: 2; }
  .observation-row.has-media .observation-source { grid-column: 3; }

  .sales-ledger td { padding: 18px 16px; }
  .ledger-car-summary { grid-template-columns: 140px minmax(0, 1fr); gap: 14px; }
}

@media (max-width: 820px) {
  .sales-hero,
  .section-heading,
  .sales-boundary,
  .sales-listing-invite,
  .country-story,
  .method-summary { grid-template-columns: 1fr; }
  .sales-hero { align-items: start; gap: 32px; }
  .sales-boundary { gap: 8px; }
  .sales-listing-invite-copy { border-right: 0; border-bottom: 1px solid var(--line); }
  .notable-strip { grid-template-columns: 1fr; }
  .observation-row { grid-template-columns: 1fr 1.4fr; }
  .observation-row.has-media { grid-template-columns: 1fr 1fr; }
  .observation-row.has-media .sales-listing-photo { grid-column: 1 / -1; }
  .observation-row.has-media .observation-car { grid-column: 1 / -1; }
  .observation-row.has-media .observation-date,
  .observation-row.has-media .observation-source { grid-column: auto; }
  .observation-row.has-media .observation-date { grid-column: 1; grid-row: 3; }
  .observation-row.has-media .observation-price { grid-column: 2; grid-row: 3; }
  .sales-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-search { grid-column: 1 / -1; }
  .sales-car-event { grid-template-columns: 180px minmax(0, 1fr); gap: 24px; }
  .sales-car-event-media { width: 180px; }
  .sales-footer { align-items: flex-start; flex-direction: column; justify-content: center; padding-block: 28px; }
}

@media (max-width: 680px) {
  .sales-main,
  .sales-footer { width: min(100% - 28px, 1360px); }
  .sales-hero { padding: 64px 0; }
  .sales-hero h1 { font-size: 40px; }
  .methodology-title h1 { font-size: 40px; }
  .sales-section { padding: 64px 0; }
  .sales-section-index { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sales-section-index a:nth-child(n + 4) { border-top: 1px solid var(--line); }
  .sales-section-index a:nth-child(4n) { border-right: 0; }
  .sales-section-index a:nth-child(3n) { border-right: 1px solid var(--line); }
  .section-heading h2,
  .method-summary h2 { font-size: 28px; }
  .price-cohort-grid,
  .sales-filters,
  .market-summary,
  .priced-lead-list { grid-template-columns: 1fr; }
  .country-section .bar-list,
  .model-section .bar-list { grid-template-columns: 1fr; }
  .filter-search { grid-column: auto; }
  .sales-filter-actions { align-items: start; }
  .observation-row,
  .lead-row { grid-template-columns: 1fr; gap: 11px; }
  .lead-source { justify-self: start; }
  .observation-row.has-media { grid-template-columns: 1fr; }
  .observation-row.has-media .sales-listing-photo,
  .observation-row.has-media .observation-car,
  .observation-row.has-media .observation-date,
  .observation-row.has-media .observation-source { grid-column: auto; grid-row: auto; }
  .observation-price { justify-self: start; text-align: left; }
  .observation-row.has-media .observation-price { grid-column: auto; grid-row: auto; }
  .price-plot > header { align-items: start; flex-direction: column; }
  .price-plot-scroll {
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-color: var(--accent) #171a1d;
  }
  .price-plot-svg { min-width: 760px; }
  .chart-scroll-hint {
    display: block;
    margin: 0;
    padding: 10px 20px 14px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-family: var(--sales-mono);
    font-size: 11px;
  }
  .bar-filter { grid-template-columns: minmax(0, 1fr) minmax(72px, .8fr) 34px; gap: 8px; }
  .bar-filter span {
    overflow: visible;
    line-height: 1.3;
    text-overflow: clip;
    white-space: normal;
  }
  .methodology-title dl,
  .methodology-article section,
  .sales-car-file-header dl { grid-template-columns: 1fr; }
  .methodology-article section .section-label { grid-row: auto; }
  .methodology-article section p:not(.section-label) { grid-column: 1; }
  .sales-car-file { padding-bottom: 64px; }
  .sales-car-file-header { padding: 64px 0 40px; }
  .sales-car-event { grid-template-columns: 1fr; gap: 18px; }
  .sales-car-event-media { width: 100%; max-width: 360px; }

}

@media (max-width: 420px) {
  .ledger-car-summary { grid-template-columns: 1fr; gap: 12px; }
}

@media print {
  @page { margin: 12mm; }

  .sales-app {
    --ink: #111;
    --muted: #444;
    --line: #999;
    color: #111;
    background: #fff;
  }

  .sales-app .site-header,
  .sales-app .breadcrumbs,
  .sales-app .sales-section-index,
  .sales-app .sales-listing-invite,
  .sales-app .sales-hero-actions,
  .sales-app .sales-filters,
  .sales-app .sales-load-more,
  .sales-app .sales-hero-media,
  .sales-app #global-search-dialog { display: none !important; }

  .sales-main,
  .sales-footer { width: 100%; }

  .sales-hero { grid-template-columns: 1fr; padding: 0 0 14mm; }
  .sales-section { padding: 10mm 0; break-inside: avoid; }
  .sales-boundary,
  .sales-listing-invite,
  .observation-row,
  .chart-data,
  .price-cohort,
  .notable-item,
  .priced-lead,
  .ledger-scroll,
  .lead-row { color: #111; background: transparent; border-color: #999; }

  .sales-app h1,
  .sales-app h2,
  .sales-app h3,
  .sales-app .sales-ledger td > strong,
  .sales-app .sales-ledger td > time,
  .sales-app .ledger-car-title,
  .sales-app .priced-lead > strong,
  .sales-app a { color: #111; }

  .sales-app .sales-ledger { min-width: 0; }
  .sales-app .ledger-scroll { overflow: visible; }
  .sales-app .sales-ledger th { color: #111; background: transparent; }
  .sales-app .sales-ledger td { color: #222; border-color: #999; }
  .sales-app .sales-listing-photo,
  .sales-app .sales-ledger-thumb { border-color: #777; }
}

@media (forced-colors: active) {
  .sales-boundary,
  .observation-row,
  .price-cohort,
  .notable-item,
  .priced-lead,
  .sales-filters,
  .ledger-scroll,
  .lead-row { border-color: CanvasText; color: CanvasText; background: Canvas; }
  .bar-filter,
  .sales-filters input,
  .sales-filters select,
  .sales-filters button { border-color: ButtonText; color: ButtonText; background: Canvas; }
  .bar-filter[aria-pressed="true"] { outline: 3px solid Highlight; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}

/* Put browsing first; retain the archive detail below the adverts. */
.sales-hero { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); padding: 36px 0 28px; gap: 32px; }
.sales-hero h1 { max-width: 20ch; font-size: clamp(34px, 3.5vw, 54px); }
.sales-hero-copy { padding: 0; align-self: center; }
.sales-hero-heading { gap: 12px; }
.sales-hero-heading .sales-kicker { margin-bottom: 0; }
.sales-section-index { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.observation-log { padding-top: 32px; }
.recent-filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 16px; align-items: end; margin: 24px 0 12px; }
.recent-filters label { display: grid; gap: 6px; font-size: 14px; }
.recent-filters select, .recent-filters button { min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--control-radius); background: #111618; color: var(--ink); font: inherit; width: 100%; }
.recent-filters button { cursor: pointer; }
.recent-filter-note, #recent-result-summary { color: var(--muted); font-size: 13px; }
.recent-filters :focus-visible, .observation-row a:focus-visible, .observation-price-history summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.observation-photo-link { display: block; min-width: 0; }
.sales-gallery { align-self: start; min-width: 0; border: 1px solid #40515a; }
.sales-gallery .sales-gallery-enlarge { display: block; position: relative; color: #fff; text-decoration: none; cursor: zoom-in; }
.sales-gallery .sales-listing-photo { border: 0; }
.sales-gallery a:focus-visible, .sales-gallery button:focus-visible, #sales-photo-dialog button:focus-visible { outline: 3px solid #ff751f; outline-offset: 3px; }
.sales-gallery span[aria-hidden="true"] { display: inline; color: inherit; font-size: inherit; }
.sales-gallery-toolbar { display: flex; align-items: center; gap: 5px; min-height: 56px; padding: 5px 8px 5px 14px; border-top: 1px solid #40515a; background: #151d21; color: #f1f5f6; }
.sales-gallery-controls { display: flex; align-items: center; gap: 5px; }
.sales-gallery-controls[hidden] { display: none; }
.sales-gallery-controls button,
.sales-gallery .sales-gallery-expand { display: grid; flex: 0 0 44px; place-items: center; width: 44px; height: 44px; min-height: 44px; padding: 0; border: 1px solid #3f4b50; border-radius: var(--control-radius); background: #202a2e; color: #f1f5f6; cursor: pointer; }
.sales-gallery-controls button { font: inherit; }
.sales-gallery-toolbar .gallery-icon { position: relative; display: block; width: 18px; height: 18px; }
.gallery-icon-previous::before,
.gallery-icon-next::before { position: absolute; top: 4px; width: 9px; height: 9px; border: solid currentColor; content: ""; transform: rotate(45deg); }
.gallery-icon-previous::before { left: 6px; border-width: 0 0 2px 2px; }
.gallery-icon-next::before { right: 6px; border-width: 2px 2px 0 0; }
.gallery-icon-expand::before,
.gallery-icon-expand::after { position: absolute; width: 6px; height: 6px; border: solid currentColor; content: ""; }
.gallery-icon-expand::before { top: 2px; left: 2px; border-width: 2px 0 0 2px; }
.gallery-icon-expand::after { right: 2px; bottom: 2px; border-width: 0 2px 2px 0; }
.sales-gallery-controls button:hover,
.sales-gallery .sales-gallery-expand:hover { border-color: #bdc9cd; background: #334047; }
.sales-gallery .sales-gallery-count { flex: 1 1 auto; color: #d7e0e3; font-family: var(--font-body); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.3; white-space: nowrap; }
.sales-gallery .sales-gallery-expand { margin-left: 5px; text-decoration: none; }
.sales-car-event-gallery { width: 220px; }
.sales-gallery-open { overflow: hidden; }
#sales-photo-dialog { width: min(1180px, calc(100vw - 40px)); height: min(900px, calc(100dvh - 32px)); max-width: none; max-height: calc(100dvh - 32px); padding: 0; border: 1px solid #80949b; color: #23353d; background: #f3f5f0; }
#sales-photo-dialog[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
#sales-photo-dialog::backdrop { background: #03090eed; }
#sales-photo-dialog > header { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 20px; }
#sales-photo-dialog h2 { margin: 0; color: #23353d; font-size: 24px; }
.sales-photo-credit { margin: 4px 0 0; color: #4c626d; font-size: 12px; }
#sales-photo-dialog button { min-height: 44px; padding: 8px 14px; border: 1px solid #869a9e; border-radius: var(--control-radius); background: #fff; color: #23353d; font: inherit; white-space: nowrap; cursor: pointer; }
#sales-photo-dialog button:hover { background: #e2eae5; }
.sales-photo-close { flex-shrink: 0; }
.sales-photo-stage { display: grid; min-height: 0; place-items: center; background: #111a1e; }
.sales-photo-stage img { display: block; min-height: 0; width: 100%; height: 100%; object-fit: contain; }
.sales-photo-stage img[hidden] { display: none; }
.sales-photo-error { color: #fff; padding: 24px; }
#sales-photo-dialog > footer { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; color: #23353d; background: #f3f5f0; }
.sales-photo-count { margin-inline: auto; font-size: 13px; white-space: nowrap; }
@media (max-width: 820px) {
  .sales-car-event { grid-template-columns: 220px minmax(0, 1fr); }
  .sales-car-event-gallery { width: 220px; }
}
@media (max-width: 680px) {
  .sales-car-event { grid-template-columns: 1fr; }
  .sales-car-event-gallery { width: 100%; max-width: 360px; }
  #sales-photo-dialog { width: calc(100vw - 16px); height: calc(100dvh - 16px); max-height: calc(100dvh - 16px); }
  #sales-photo-dialog > header, #sales-photo-dialog > footer { padding: 10px; }
  #sales-photo-dialog h2 { font-size: 20px; }
}
.observation-row[hidden] { display: none; }
.observation-car h3 a { font-size: inherit; }
.observation-photo-link .sales-listing-photo { width: 100%; }
.observation-car h3 a { color: inherit; text-decoration: none; }
.observation-car h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.observation-price-label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.observation-price-history { margin-top: 10px; font-size: 13px; text-align: left; }
.observation-price-history summary { cursor: pointer; text-decoration: underline; text-underline-offset: 3px; padding: 8px 0; }
.observation-price-history ol { list-style: none; padding: 0; margin: 8px 0; }
.observation-price-history li { padding: 8px 0; border-top: 1px solid var(--line); }
.observation-price-history time { display: block; color: var(--muted); font-size: 12px; }
.sales-car-file-header { padding-top: 32px; }
.sales-car-file-header dl { grid-template-columns: minmax(100px, .5fr) minmax(0, 1fr); }

/* Keep the market graphics in the same dark visual language as the records. */
.price-plot, .chart-data, .notable-item, .remaining-price-records {
  color: #f3f3f1;
  background: #111619;
  border-color: #343d42;
}
.price-plot > header { border-top: 3px solid var(--accent); background: #192024; }
.price-plot > header h3, .price-plot > header p, .price-table-link, .price-detail-link { color: #f3f3f1; }
.price-plot-svg { width: min(100%, 1080px); padding: 18px 16px 0; }
.price-axis { stroke: #6d7b81; }
.price-axis-label, .price-axis-caption { fill: #b3bec3; font-family: var(--sales-mono); }
.price-axis-caption { font-size: 10px; }
.price-grid { stroke: #354248; stroke-width: .65; pointer-events: none; }
.price-grid-year { stroke-dasharray: 2 4; }
.price-point-anchor { fill: none; stroke: #788990; stroke-width: .8; pointer-events: none; }
.price-plot-point { fill: #ff751f; stroke: #111619; stroke-width: 1.4; }
.price-plot[data-currency="USD"] .price-plot-point { fill: #67b8d9; }
.price-plot[data-currency="USD"] > header { border-top-color: #67b8d9; }
.price-plot-svg a:hover .price-plot-point,
.price-plot-svg a:focus .price-plot-point,
.price-plot-svg a[data-point-selected] .price-plot-point { fill: #fff; stroke: var(--accent); stroke-width: 2; }
.price-point-detail { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 20px; min-height: 70px; background: #20292d; border-block: 1px solid #39454b; }
.price-point-detail p { margin: 0; font-size: 14px; font-weight: 650; line-height: 1.6; }
.price-detail-link { flex-shrink: 0; min-height: 44px; display: inline-flex; align-items: center; text-underline-offset: 3px; font-size: 13px; }
.price-detail-link[hidden] { display: none; }
.price-plot[data-currency="GBP"] { border: 0; background: transparent; }
.price-plot-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, 310px); gap: 18px; }
.price-plot-main, .price-model-ranges { min-width: 0; border: 1px solid #405057; border-radius: 10px; background: #161e22; }
.price-plot-main > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 28px 30px 12px; }
.price-plot-main > header span, .price-model-ranges > .section-label { font-family: var(--sales-mono); color: var(--accent); font-size: 12px; font-weight: 750; letter-spacing: .1em; }
.price-plot-main > header h3 { margin: 8px 0 4px; color: #fff; font-size: clamp(25px, 2.7vw, 34px); }
.price-chart-subtitle { margin: 0; color: #bed0d5; font-size: 15px; }
.price-model-filter { display: flex; align-items: center; gap: 8px; color: #cbd7da; font-size: 13px; white-space: nowrap; }
.price-model-filter select { min-height: 44px; padding: 7px 28px 7px 12px; color: #fff; border: 1px solid #53636b; border-radius: var(--control-radius); background: #243137; font-family: var(--font-body); }
.price-model-filter select:disabled { display: none; }
.price-plot-main .price-plot-svg { width: 100%; padding: 0 18px; }
.price-plot-main .price-plot-point.model-gtr, .model-swatch.model-gtr { fill: #ff743e; background: #ff743e; }
.price-plot-main .price-plot-point.model-evolution, .model-swatch.model-evolution { fill: #95e5ef; background: #95e5ef; }
.price-plot-main .price-plot-point.model-rs, .model-swatch.model-rs { fill: #fff; background: #fff; }
.price-plot-main .price-plot-point.model-other, .model-swatch.model-other { fill: #a9b8bf; background: #a9b8bf; }
.model-plot-legend { display: flex; flex-wrap: wrap; gap: 12px 24px; margin: 4px 30px 0; padding: 18px 0 8px; border-top: 1px solid #405057; }
.model-legend-item { display: inline-flex; gap: 8px; align-items: center; color: #e9f0f1; font-size: 14px; }
.model-swatch { width: 12px; height: 12px; border-radius: 50%; }
.price-year-note { margin: 0 30px 22px; color: #aebfc5; font-size: 12px; line-height: 1.5; }
.price-model-ranges { padding: 28px 26px; }
.price-model-ranges h4 { margin: 12px 0 3px; color: #fff; font-size: 27px; }
.price-model-ranges > p { margin: 0 0 25px; color: #bed0d5; font-size: 14px; }
.model-range { margin: 22px 0; }
.model-range > div:first-child { display: flex; justify-content: space-between; gap: 10px; color: #fff; font-size: 16px; }
.model-range > div:first-child span { color: #b6c4c9; font-size: 13px; }
.model-range p { margin: 11px 0 0; color: #d2e0e3; font-family: var(--sales-mono); font-size: 12px; }
.model-range-amount { display: flex; align-items: center; gap: 9px; }
.model-range-amount .model-swatch { flex: 0 0 auto; }
.price-model-ranges .price-point-detail { display: block; min-height: 0; margin-top: 25px; padding: 14px; border: 0; border-radius: 8px; background: #26333a; }
.price-model-ranges .price-point-detail p { font-size: 14px; }
.price-model-ranges .price-detail-link { margin-top: 7px; }
@media (max-width: 950px) { .price-plot-layout { grid-template-columns: 1fr; } .price-model-ranges { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 15px; } .price-model-ranges > .section-label, .price-model-ranges h4, .price-model-ranges > p, .price-model-ranges .price-point-detail { grid-column: 1 / -1; } }
@media (max-width: 680px) { .price-plot-main > header { display: block; padding: 22px 18px 12px; } .price-model-filter { margin-top: 12px; } .price-model-ranges { display: block; padding: 22px 18px; } .model-plot-legend { margin-inline: 18px; } .price-year-note { margin-inline: 18px; } }
.chart-data summary { color: #f3f3f1; }
.chart-data summary:hover, .remaining-price-records > summary:hover { background: #273136; }
.chart-data summary:focus-visible, .remaining-price-records > summary:focus-visible, .price-detail-link:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.price-plot-data { margin-top: 0; border: 0; border-top: 1px solid #343d42; background: #111619; }
.price-plot-data td:nth-child(2), .price-plot-data th:nth-child(2) { text-align: left; }
.notable-strip { gap: 14px; border: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.notable-item { min-height: 0; padding: 26px; border: 1px solid #343d42; border-top: 3px solid var(--accent); }
.notable-value { margin-bottom: 22px; font-size: clamp(28px, 3vw, 40px); color: #fff; }
.notable-item h3 { color: #fff; }
.remaining-price-records { border: 1px solid #343d42; padding: 0 20px; }
.remaining-price-records > summary { color: #fff; padding: 20px 0; min-height: 64px; }
.remaining-price-records .price-cohort { color: #fff; background: #151c20; }
.remaining-price-records .price-cohort h3, .remaining-price-records .price-cohort > p { color: #fff; }
@media (max-width: 820px) {
  .notable-strip { grid-template-columns: 1fr; }
  .notable-item { padding: 22px; }
}
@media (max-width: 680px) {
  .price-point-detail { flex-direction: column; align-items: start; gap: 2px; }
}
@media (min-width: 681px) and (max-width: 980px) {
  .observation-row.has-media .observation-photo-link { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  .sales-hero { grid-template-columns: 1fr; padding: 24px 0; gap: 12px; }
  .sales-hero-copy p { margin-bottom: 10px; }
  .observation-log .section-heading { gap: 10px; margin-bottom: 16px; }
  .observation-log .section-heading .section-label { margin-bottom: 8px; }
  .sales-hero h1 { font-size: 38px; }
  .sales-section-index a { padding: 12px 8px; font-size: 13px; }
  .recent-filters { grid-template-columns: 1fr 1fr; gap: 12px; }
  .observation-row.has-media .observation-photo-link { grid-column: 1; }
  .observation-date { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
  .observation-source a, .observation-evidence { display: inline-flex; align-items: center; min-height: 44px; }
  .sales-car-file-header dl { grid-template-columns: 1fr; }
}

/* Sales overview: centred introduction above a compact browse index. */
.sales-main { width: min(1340px, calc(100% - 56px)); }
.sales-breadcrumbs ol { justify-content: center; }
.sales-hero { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 20px; padding: clamp(46px, 5vw, 72px) 0 38px; border-bottom: 0; text-align: center; }
.sales-hero-heading { justify-items: center; gap: 18px; }
.sales-hero h1 { max-width: 21ch; margin: 0; font-size: clamp(44px, 5vw, 68px); line-height: 1.02; }
.sales-hero-copy { align-self: center; text-align: center; }
.sales-hero-copy::before { content: ""; display: block; width: 54px; height: 2px; margin: 0 auto 16px; background: var(--accent); }
.sales-hero-copy p { margin: 0; white-space: nowrap; }
.sales-section-index { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; border-block: 1px solid var(--line); }
.sales-section-index a,
.sales-section-index a:last-child { min-height: 54px; padding: 0 14px; justify-content: center; border: 0; border-bottom: 2px solid transparent; font-size: 14px; }
.sales-section-index a:hover,
.sales-section-index a:focus-visible { border-bottom-color: var(--accent); }
.observation-log { max-width: 1180px; margin-inline: auto; padding-top: 42px; }
.historical-disclosure { border-block: 1px solid var(--line); }
.historical-disclosure > summary { min-height: 124px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 4px; color: #fff; cursor: pointer; list-style: none; }
.historical-disclosure > summary::-webkit-details-marker { display: none; }
.historical-disclosure > summary:hover .historical-toggle { color: var(--accent); }
.historical-disclosure > summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.historical-heading { margin: 8px 0 0; font-size: clamp(30px, 3vw, 43px); line-height: 1.1; }
.historical-toggle { flex-shrink: 0; color: #d4dcdf; font-size: 14px; font-weight: 700; }
.historical-toggle::after { display: inline-block; margin-left: 12px; color: var(--accent); content: "+"; font-size: 24px; line-height: 1; vertical-align: middle; }
.historical-disclosure[open] .historical-toggle::after { content: "−"; }
.historical-content { padding: 6px 0 38px; }
.recent-filters { grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 10px; margin: 20px 0 10px; padding: 12px; border: 1px solid #354047; background: #111619; }
.recent-filters label { gap: 5px; color: #acb7bd; font-size: 11px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.recent-filters select { background: #1b2428; border-color: #46545b; }
.recent-filters button { width: auto; padding-inline: 16px; border-color: transparent; background: transparent; color: #fff; font-size: 13px; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.recent-filter-note { margin: 0 0 8px; font-size: 14px; line-height: 1.5; }
#recent-result-summary { margin: 12px 0; font-size: 15px; font-weight: 700; }
.observation-list { border-top-color: #435059; }
.observation-row.has-media {
  position: relative;
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
  gap: clamp(24px, 3vw, 40px);
  align-items: center;
  padding: 26px 0;
  border-left: 0;
}
.observation-row.has-media .observation-photo-link { grid-column: 1; grid-row: 1; }
.observation-row.has-media .observation-details {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
}
.observation-mainline { display: grid; grid-template-columns: minmax(0, 1fr) minmax(175px, 27%); gap: 24px; align-items: start; }
.observation-row.has-media .observation-car,
.observation-row.has-media .observation-price { grid-column: auto; grid-row: auto; }
.observation-row.has-media .observation-price { justify-self: stretch; padding-top: 2px; text-align: left; }
.observation-row h3 { font-size: clamp(28px, 2.5vw, 34px); line-height: 1.08; }
.observation-row p { font-size: 15px; }
.observation-row .observation-facts { font-family: inherit; font-size: 16px; line-height: 1.5; }
.observation-row .observation-evidence { font-size: 15px; }
.observation-price strong { font-family: inherit; font-size: clamp(24px, 2vw, 28px); font-weight: 750; letter-spacing: -.025em; }
.observation-price-label { font-size: 13px; }
.observation-price-entry + .observation-price-entry { padding-top: 10px; border-top: 1px solid var(--line); }
.observation-price .observation-country { margin-top: 10px; font-size: 15px; }
.observation-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 4px 32px; padding-top: 14px; border-top: 1px solid #354047; }
.observation-date { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding-top: 0; }
.observation-date small { margin: 0; max-width: none; font-size: 14px; }
.observation-row .observation-date time { font-family: inherit; font-size: 16px; }
.observation-row .observation-source a { font-size: 16px; font-weight: 700; }
.observation-row .sales-event-anchor { position: absolute; width: 1px; height: 1px; overflow: hidden; }
.observation-row.is-cross-listed .observation-mainline { grid-template-columns: minmax(0, 1fr); }
.observation-row.is-cross-listed.has-shared-price .observation-mainline { grid-template-columns: minmax(0, 1fr) minmax(175px, 27%); }
.observation-advert-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid #354047; }
.observation-advert-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px 20px; padding: 8px 0; border-bottom: 1px solid #354047; }
.observation-advert-list:not(.has-individual-prices) li { grid-template-columns: minmax(0, 1fr); }
.observation-advert-list .observation-advert-link { min-width: 0; color: #b7c5ca; font-size: 15px; }
.observation-advert-list a { display: inline-flex; min-height: 40px; color: #fff; font-size: 16px; font-weight: 700; }
.observation-advert-list a > span[aria-hidden="true"] { display: inline; margin-left: 5px; color: var(--accent); font-size: inherit; }
.observation-advert-list small { display: block; color: #aebbc1; font-size: 13px; }
.observation-advert-list .observation-advert-price { display: block; text-align: right; }
.observation-advert-list .observation-advert-price strong { display: block; color: #fff; font-family: inherit; font-size: 20px; font-weight: 750; white-space: nowrap; }
.observation-advert-list .observation-price-gbp { display: block; color: #b5bdc2; font-size: 13px; }
.observation-row.is-cross-listed .observation-meta { padding-top: 0; border-top: 0; }
.sales-gallery { border-color: #35454d; }
.sales-gallery-toolbar { border-top-color: #35454d; }
.sales-filters { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 18px; border-color: #354047; background: #111619; }
.sales-filters label { gap: 7px; }
.filter-search { grid-column: span 2; grid-row: auto; }
.sales-filter-actions { grid-column: span 4; align-items: center; justify-content: flex-end; }
.sales-filter-actions button { width: auto; padding-inline: 16px; }
.result-summary { margin: 22px 0 14px; font-family: inherit; font-size: 14px; }
.ledger-scroll { background: #101518; }
.sales-ledger th { color: #c3cdd1; background: #1b2428; text-transform: uppercase; font-size: 11px; letter-spacing: .08em; }
.sales-ledger tbody tr { transition: background-color 160ms ease-out; }
.sales-ledger td { border-color: #303a3f; }
.sales-ledger-thumb { border-color: #35454d; }
.sales-ledger .price-line strong { color: #fff; font-size: 17px; }
.sales-ledger .price-line small { line-height: 1.45; }

@media (max-width: 1120px) {
  .observation-row.has-media { grid-template-columns: minmax(245px, 34%) minmax(0, 1fr); gap: 24px; }
  .observation-row.has-media .observation-details { grid-column: 2; grid-row: 1; }
  .observation-mainline { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .observation-row.is-cross-listed.has-shared-price .observation-mainline { grid-template-columns: minmax(0, 1fr); }
  .observation-meta { column-gap: 12px; }
  .observation-row.has-media .observation-price { justify-self: start; padding-top: 0; text-align: left; }
  .sales-ledger th:first-child { width: 52%; }
  .sales-ledger th:nth-child(2) { width: 24%; }
  .sales-ledger th:nth-child(3) { width: 24%; }
}

@media (max-width: 820px) {
  .sales-main { width: min(100% - 32px, 1340px); }
  .sales-hero { grid-template-columns: 1fr; gap: 18px; padding: 40px 0 28px; }
  .sales-hero-copy p { white-space: normal; }
  .sales-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-search,
  .sales-filter-actions { grid-column: span 2; }
  .ledger-scroll { overflow: visible; border: 0; background: transparent; }
  .sales-ledger,
  .sales-ledger tbody,
  .sales-ledger tr,
  .sales-ledger td { display: block; width: 100%; min-width: 0; }
  .sales-ledger thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .sales-ledger tr { margin-bottom: 18px; border: 1px solid #354047; background: #111619; }
  .sales-ledger td { padding: 18px; border-bottom: 1px solid #354047; }
  .sales-ledger td::before { display: none; }
  .sales-ledger td:last-child { border-bottom: 0; }
  .ledger-car-summary { grid-template-columns: 176px minmax(0, 1fr); }
  .ledger-outcome { font-size: 19px; }
  .ledger-record-source { margin-top: 10px; }
}

@media (max-width: 680px) {
  .sales-main { width: min(100% - 28px, 1340px); }
  .sales-hero h1 { font-size: clamp(36px, 10vw, 46px); }
  .sales-section-index { gap: 0 8px; }
  .sales-section-index a,
  .sales-section-index a:last-child { padding: 0 7px; font-size: 13px; }
  .historical-disclosure > summary { align-items: flex-start; flex-direction: column; gap: 8px; }
  .historical-toggle { align-self: flex-end; }
  .recent-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .recent-filters label:nth-child(3) { grid-column: 1; }
  .recent-filters button { grid-column: 2; justify-self: end; }
  .observation-row.has-media { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 18px 0 24px; }
  .observation-row.has-media .observation-photo-link { grid-column: 1; grid-row: 1; }
  .observation-row.has-media .observation-details { grid-column: 1; grid-row: 2; gap: 14px; padding-top: 14px; }
  .observation-row.has-media .observation-car { padding-top: 0; }
  .observation-row.has-media .observation-price { border-top: 1px solid #354047; padding-top: 12px; }
  .observation-price .observation-country { margin-top: 6px; }
  .observation-meta { align-items: flex-start; flex-direction: column; gap: 0; padding-top: 10px; }
  .observation-row.has-media .observation-date { padding-top: 4px; }
  .observation-advert-list li { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .observation-advert-list .observation-advert-price { padding-bottom: 6px; text-align: left; }
  .sales-filters { gap: 10px; padding: 12px; }
  .sales-filters .filter-search { grid-column: span 2; }
  .sales-filter-actions { justify-content: flex-start; }
  .ledger-car-summary { grid-template-columns: 1fr; }
  .sales-ledger-thumb { max-width: none; }
  .sales-ledger td { padding: 14px; }
  .sales-ledger td[data-label="Result"],
  .sales-ledger td[data-label="Price evidence"] { padding-top: 12px; }
  .sales-ledger .ledger-car-title a { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .sales-ledger tbody tr { transition: none; }
}
