:root {
  color-scheme: dark;
  --bg: #050507;
  --panel: #101014;
  --panel-2: #171721;
  --ink: #f7f3ff;
  --muted: #aaa2b5;
  --soft: #6f667a;
  --line: rgba(255, 255, 255, 0.11);
  --accent: #ff4fa3;
  --accent-2: #ff8bc6;
  --good: #4de1a1;
  --sold: #8b8494;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 79, 163, 0.24), transparent 28%),
    radial-gradient(circle at 84% 8%, rgba(255, 139, 198, 0.14), transparent 24%),
    linear-gradient(180deg, #07070a 0%, #050507 48%, #0c0910 100%);
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

.shell {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 54px;
}

.search-panel,
.loading-view {
  min-height: calc(100vh - 56px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  padding-bottom: 8vh;
}

.brand-row {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  color: var(--ink);
  font-weight: 900;
  letter-spacing: 0;
}

.brand-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  box-shadow: 0 0 0 1px var(--line), 0 0 34px rgba(255, 79, 163, 0.34);
}

h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(42px, 7vw, 86px);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1;
  letter-spacing: 0;
}

.search-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  width: min(900px, 100%);
  padding: 8px;
  background: rgba(16, 16, 20, 0.92);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.search-form input {
  width: 100%;
  min-height: 62px;
  border: 0;
  outline: 0;
  padding: 0 20px;
  color: var(--ink);
  background: transparent;
  font-size: 19px;
}

.search-form input::placeholder {
  color: var(--soft);
}

.search-form button,
.back-button,
.ghost-button {
  border: 0;
  border-radius: 7px;
  cursor: pointer;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.search-form button {
  min-width: 132px;
  min-height: 62px;
  padding: 0 24px;
  color: #09090d;
  background: var(--accent);
  font-weight: 900;
}

.back-button,
.ghost-button {
  min-height: 40px;
  padding: 0 15px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
}

.search-form button:hover,
.back-button:hover,
.ghost-button:hover {
  transform: translateY(-1px);
}

.quick-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 850px;
}

.quick-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  padding: 10px 15px;
  cursor: pointer;
  color: var(--ink);
}

.quick-chip:hover {
  border-color: var(--accent);
  color: var(--accent-2);
}

.loading-view {
  align-items: center;
  text-align: center;
}

.loading-view p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.6;
}

.bike-stage {
  position: relative;
  width: min(620px, 100%);
  height: 280px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 78% 22%, rgba(255, 79, 163, 0.28), transparent 17%),
    linear-gradient(180deg, #171827 0%, #10101a 58%, #08080c 100%);
  box-shadow: var(--shadow);
}

.hk-skyline {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 49px;
  height: 128px;
}

.tower {
  position: absolute;
  bottom: 0;
  width: 44px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0 4px, transparent 4px 13px),
    linear-gradient(180deg, rgba(255, 79, 163, 0.18), rgba(255, 255, 255, 0.05));
  opacity: 0.72;
}

.tower-1 {
  left: 7%;
  height: 76px;
}

.tower-2 {
  left: 22%;
  height: 116px;
  clip-path: polygon(45% 0, 55% 0, 55% 18%, 100% 18%, 100% 100%, 0 100%, 0 18%, 45% 18%);
}

.tower-3 {
  left: 42%;
  height: 96px;
}

.tower-4 {
  right: 23%;
  height: 132px;
  width: 34px;
}

.tower-5 {
  right: 7%;
  height: 84px;
}

.hk-sign {
  position: absolute;
  top: 28px;
  left: 34px;
  padding: 8px 14px;
  border: 2px solid var(--accent);
  border-radius: 6px;
  color: var(--accent-2);
  background: rgba(5, 5, 7, 0.72);
  font-weight: 900;
  box-shadow: 0 0 24px rgba(255, 79, 163, 0.42);
}

.taxi-light {
  position: absolute;
  top: 52px;
  right: 44px;
  width: 76px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #050507;
  background: #f8e84c;
  font-size: 13px;
  font-weight: 950;
  transform: rotate(-6deg);
}

.road {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 42px;
  height: 5px;
  background: repeating-linear-gradient(90deg, var(--accent) 0 54px, transparent 54px 92px);
  animation: road 650ms linear infinite;
}

.bike {
  position: absolute;
  left: 50%;
  bottom: 38px;
  width: 230px;
  height: 118px;
  transform: translateX(-50%);
  animation: bob 780ms ease-in-out infinite;
}

.wheel {
  position: absolute;
  bottom: 0;
  width: 58px;
  height: 58px;
  border: 7px solid var(--ink);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 620ms linear infinite;
}

.wheel-left {
  left: 8px;
}

.wheel-right {
  right: 16px;
}

.bike-body {
  position: absolute;
  left: 56px;
  bottom: 36px;
  width: 120px;
  height: 46px;
  border-radius: 52% 38% 38% 46%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: inset -18px -10px 0 rgba(0, 0, 0, 0.2);
}

.bike-front {
  position: absolute;
  right: 32px;
  bottom: 50px;
  width: 48px;
  height: 28px;
  border-radius: 0 24px 18px 0;
  background: var(--ink);
  transform: rotate(-8deg);
}

.bike-tail {
  position: absolute;
  left: 42px;
  bottom: 54px;
  width: 38px;
  height: 22px;
  border-radius: 18px 0 0 18px;
  background: var(--accent);
}

.seat {
  position: absolute;
  left: 86px;
  top: 24px;
  width: 58px;
  height: 12px;
  border-radius: 999px;
  background: var(--ink);
}

.handle {
  position: absolute;
  right: 18px;
  top: 22px;
  width: 58px;
  height: 34px;
  border-top: 6px solid var(--ink);
  border-right: 6px solid var(--ink);
  border-radius: 0 14px 0 0;
  transform: rotate(-12deg);
}

.helmet {
  position: absolute;
  left: 116px;
  top: 2px;
  width: 34px;
  height: 34px;
  border-radius: 50% 50% 46% 46%;
  background: var(--accent-2);
}

@keyframes road {
  to {
    background-position-x: -92px;
  }
}

@keyframes bob {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-8px);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.results,
.detail-view {
  padding-top: 10px;
}

.result-search-form {
  position: sticky;
  top: 10px;
  z-index: 20;
  display: grid;
  grid-template-columns: 42px minmax(240px, 620px) auto;
  gap: 10px;
  align-items: center;
  width: min(780px, 100%);
  margin: 0 0 18px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(16, 16, 20, 0.9);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
}

.result-back,
.result-submit {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.result-back {
  width: 42px;
  height: 42px;
  padding: 0;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
  font-size: 34px;
  line-height: 0.8;
}

.result-search-form input {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(247, 243, 255, 0.3);
  border-radius: 999px;
  outline: 0;
  padding: 0 16px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
  font-size: 17px;
  font-weight: 800;
}

.result-submit {
  min-height: 42px;
  padding: 0 18px;
  color: #07070a;
  background: var(--accent);
  font-weight: 950;
}

.results-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin: 18px 0 24px;
}

.back-button {
  margin-bottom: 18px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent-2);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.meta-card,
.market-panel,
.analysis-card,
.vehicle-card,
.detail-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(16, 16, 20, 0.88);
  box-shadow: var(--shadow);
}

.meta-card {
  min-width: 132px;
  padding: 18px;
  text-align: right;
}

.meta-card span {
  display: block;
  color: var(--accent);
  font-size: 38px;
  font-weight: 950;
}

.meta-card small {
  color: var(--muted);
}

.insight-grid {
  margin-bottom: 18px;
}

.market-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 16px;
  align-items: stretch;
  padding: 14px;
  overflow: hidden;
}

.price-chart {
  width: 100%;
  min-height: 300px;
  padding: 0;
}

.price-chart svg {
  display: block;
  width: 100%;
  height: auto;
}

.analysis-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 10px 4px 10px 10px;
  justify-content: center;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.stat-row span {
  color: var(--muted);
}

.stat-row strong {
  color: var(--ink);
  font-size: 20px;
  text-align: right;
}

.stat-row.median {
  margin: 2px 0;
  padding: 14px 12px;
  border: 1px solid rgba(255, 79, 163, 0.42);
  border-radius: 8px;
  background: rgba(255, 79, 163, 0.12);
  box-shadow: 0 0 28px rgba(255, 79, 163, 0.16);
}

.stat-row.median span {
  color: var(--accent-2);
}

.stat-row.median strong {
  color: var(--accent);
  font-size: 24px;
}

.status {
  min-height: 26px;
  margin: 12px 0;
  color: var(--muted);
}

.masonry {
  column-count: 3;
  column-gap: 18px;
}

.vehicle-card {
  display: inline-block;
  width: 100%;
  overflow: hidden;
  margin: 0 0 18px;
  break-inside: avoid;
}

.vehicle-button {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.vehicle-image {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #15151f;
}

.vehicle-image img,
.slide img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  object-fit: contain;
  object-position: center top;
}

.no-photo {
  min-height: 160px;
  display: grid;
  place-items: center;
  color: rgba(247, 243, 255, 0.3);
  font-weight: 950;
}

.vehicle-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.image-info {
  display: block;
  padding: 12px 14px 14px;
  background: #101014;
}

.card-subtitle,
.card-meta {
  color: rgba(247, 243, 255, 0.74);
  font-size: 13px;
}

.badge {
  border-radius: 999px;
  padding: 6px 9px;
  color: #07070a;
  background: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.badge.available {
  background: var(--good);
}

.badge.sold {
  color: var(--ink);
  background: var(--sold);
}

.badge.recommended {
  background: var(--accent-2);
}

.badge.low-price {
  background: var(--accent-2);
}

.badge.nearly-new {
  color: #07100b;
  background: #a2ffd1;
}

.badge.low-owner {
  color: #120711;
  background: #ffd1ec;
}

.vehicle-title {
  margin: 0 0 6px;
  font-size: 21px;
  line-height: 1.18;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.price {
  color: var(--accent);
  font-size: 25px;
  font-weight: 950;
  margin: 8px 0 0;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 10px;
}

.tag {
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
  font-size: 13px;
}

.description {
  color: var(--muted);
  line-height: 1.58;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.skeleton {
  display: grid;
  place-items: center;
  min-height: 260px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 18px;
  align-items: start;
}

.detail-panel {
  padding: 18px;
}

.detail-summary,
.detail-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(16, 16, 20, 0.9);
  box-shadow: var(--shadow);
}

.detail-summary {
  padding: 22px;
}

.detail-seller-row,
.detail-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.detail-seller-row {
  margin-bottom: 22px;
  justify-content: flex-start;
}

.seller-avatar {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #07070a;
  background: var(--accent-2);
  font-weight: 950;
}

.detail-seller-row strong,
.detail-seller-row span {
  display: block;
}

.detail-seller-row span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.detail-badges {
  position: static;
}

.detail-condition {
  color: var(--accent-2);
  font-size: 20px;
}

.detail-price {
  margin: 22px 0 18px;
  color: var(--accent);
  font-size: clamp(44px, 8vw, 78px);
  line-height: 0.95;
  font-weight: 950;
}

.detail-title {
  margin: 0 0 12px;
  font-size: clamp(30px, 5vw, 58px);
  line-height: 1;
}

.detail-copy {
  max-width: 760px;
  margin: 0;
  color: var(--ink);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.7;
  white-space: pre-line;
}

.detail-contact {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, max-content));
  gap: 10px;
  margin-top: 18px;
}

.detail-contact div {
  min-width: 160px;
  border: 1px solid rgba(255, 79, 163, 0.28);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(255, 79, 163, 0.1);
}

.detail-contact span {
  display: block;
  margin-bottom: 5px;
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 900;
}

.detail-contact strong {
  display: block;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.detail-section {
  margin-top: 16px;
  padding: 18px;
}

.detail-section h2 {
  margin: 0 0 14px;
  font-size: 26px;
  line-height: 1.28;
}

.detail-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.detail-section-head h2 {
  margin: 0;
}

.detail-photos h2 {
  padding-bottom: 2px;
}

.photo-download-button {
  min-height: 38px;
  border: 1px solid rgba(255, 79, 163, 0.42);
  border-radius: 7px;
  padding: 0 14px;
  color: #07070a;
  background: var(--accent);
  font-size: 14px;
  font-weight: 950;
  cursor: pointer;
}

.photo-download-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.facts-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.fact-item {
  min-width: 0;
}

.fact-item span {
  display: block;
  margin-bottom: 7px;
  color: var(--soft);
  font-size: 14px;
  font-weight: 800;
}

.fact-item strong {
  display: block;
  color: var(--ink);
  font-size: 19px;
  line-height: 1.35;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.photo-tile {
  display: block;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  padding: 0;
  background: var(--panel);
  cursor: zoom-in;
}

.photo-tile img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center top;
}

.vehicle-image img,
.photo-tile img {
  clip-path: inset(0 0 8% 0);
  margin-bottom: -8%;
}

.photo-empty {
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
}

.detail-comments {
  display: grid;
  gap: 10px;
}

.detail-comment,
.detail-empty {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.detail-comment header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.detail-comment header strong {
  color: var(--accent-2);
}

.detail-comment header span,
.detail-empty {
  color: var(--muted);
}

.detail-comment p {
  margin: 0;
  color: var(--ink);
  line-height: 1.58;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.88);
}

.lightbox img {
  max-width: min(100%, 1080px);
  max-height: 88vh;
  border-radius: 8px;
  clip-path: inset(0 0 8% 0);
  object-fit: contain;
}

.lightbox-close {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: rgba(16, 16, 20, 0.9);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.carousel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.slides {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.slides::-webkit-scrollbar {
  display: none;
}

.slide {
  min-width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  scroll-snap-align: start;
}

.carousel-controls {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: flex;
  gap: 8px;
}

.carousel-controls button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: rgba(0, 0, 0, 0.66);
  cursor: pointer;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.field {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.field span {
  display: block;
  margin-bottom: 5px;
  color: var(--soft);
  font-size: 12px;
}

.field strong {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.35;
}

.comment-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.comment {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.comment header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: var(--accent-2);
  font-weight: 800;
}

.comment p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

@media (max-width: 900px) {
  .results-header,
  .detail-hero {
    grid-template-columns: 1fr;
  }

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

  .market-panel {
    grid-template-columns: 1fr;
  }

  .results-header {
    align-items: stretch;
  }

  .meta-card {
    text-align: left;
  }

  .masonry {
    column-count: 2;
  }
}

@media (max-width: 640px) {
  .shell {
    width: 100%;
    padding: 0 14px 34px;
  }

  .search-form {
    grid-template-columns: 1fr;
  }

  .search-form button {
    width: 100%;
  }

  .masonry {
    column-count: 2;
    column-gap: 10px;
  }

  .results {
    padding-top: 10px;
  }

  .result-search-form {
    top: 0;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 8px;
    width: auto;
    margin: 0 -2px 12px;
    padding: 10px 0 8px;
    border: 0;
    border-radius: 0;
    background: linear-gradient(180deg, rgba(5, 5, 7, 0.96), rgba(5, 5, 7, 0.84));
    box-shadow: none;
  }

  .result-back {
    width: 34px;
    height: 34px;
    background: transparent;
  }

  .result-search-form input {
    min-height: 40px;
    border: 2px solid rgba(247, 243, 255, 0.72);
    padding: 0 14px;
    font-size: 16px;
  }

  .result-submit {
    min-height: 38px;
    padding: 0 12px;
    color: #07070a;
    background: var(--accent);
    font-size: 13px;
    font-weight: 950;
  }

  .results-header,
  .status {
    display: none;
  }

  .insight-grid {
    display: block;
    margin: 0 0 12px;
  }

  .market-panel {
    gap: 8px;
    padding: 8px;
    border-radius: 8px;
  }

  .analysis-card {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding: 0;
  }

  .stat-row {
    display: grid;
    gap: 2px;
    justify-items: start;
    padding: 7px 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
  }

  .stat-row span {
    font-size: 11px;
  }

  .stat-row strong {
    font-size: 13px;
    text-align: left;
  }

  .stat-row.median {
    margin: 0;
    padding: 7px 8px;
  }

  .stat-row.median strong {
    font-size: 15px;
  }

  .vehicle-card {
    margin-bottom: 10px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .vehicle-badges {
    top: 8px;
    left: 8px;
    right: 8px;
    gap: 5px;
  }

  .image-info {
    position: static;
    display: block;
    padding: 8px 2px 12px;
    background: transparent;
    border-top: 0;
  }

  .vehicle-image {
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.05);
  }

  .vehicle-title {
    margin: 0 0 5px;
    color: var(--ink);
    font-size: 16px;
    line-height: 1.2;
  }

  .card-subtitle {
    color: #aaa4b4;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
  }

  .price {
    font-size: 20px;
    line-height: 1.05;
    margin-top: 7px;
  }

  .tag {
    padding: 4px 7px;
    font-size: 11px;
  }

  .description {
    display: none;
    font-size: 12px;
    line-height: 1.45;
  }

  .badge {
    padding: 5px 7px;
    font-size: 11px;
  }

  h1 {
    font-size: 43px;
  }

  .price-chart {
    min-height: 0;
    padding: 0;
  }

  .price-chart svg {
    min-height: 0;
  }

  .field-grid {
    grid-template-columns: 1fr;
  }

  .detail-view {
    padding: 10px 0 28px;
  }

  .detail-view > .back-button {
    margin: 0 0 10px;
  }

  .detail-summary,
  .detail-section {
    margin-left: -14px;
    margin-right: -14px;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .detail-summary {
    padding: 18px 14px 22px;
    background: rgba(16, 16, 20, 0.9);
    color: var(--ink);
  }

  .detail-seller-row span,
  .detail-summary .detail-copy,
  .detail-summary .detail-title {
    color: var(--ink);
  }

  .detail-summary .detail-copy {
    font-size: 18px;
    line-height: 1.65;
  }

  .detail-contact {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 14px;
  }

  .detail-contact div {
    min-width: 0;
    padding: 9px 10px;
  }

  .detail-contact strong {
    font-size: 15px;
  }

  .detail-price {
    margin: 18px 0;
    color: var(--accent);
    font-size: 48px;
  }

  .detail-condition {
    color: var(--accent-2);
    background: transparent;
  }

  .detail-section {
    padding: 14px;
    background: rgba(16, 16, 20, 0.9);
    color: var(--ink);
  }

  .detail-section h2,
  .fact-item strong,
  .detail-comment p {
    color: var(--ink);
  }

  .detail-section h2 {
    margin-bottom: 10px;
    font-size: 23px;
    line-height: 1.32;
  }

  .detail-section-head {
    margin-bottom: 10px;
  }

  .photo-download-button {
    min-height: 34px;
    padding: 0 10px;
    font-size: 12px;
  }

  .facts-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 14px;
    row-gap: 0;
    overflow: visible;
    padding-bottom: 0;
  }

  .fact-item {
    min-width: 0;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 6px;
    align-items: baseline;
    padding: 7px 0;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 0;
    background: transparent;
  }

  .fact-item span {
    margin-bottom: 0;
    font-size: 11px;
  }

  .fact-item strong {
    font-size: 14px;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }

  .photo-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .photo-tile {
    border-radius: 8px;
    background: var(--panel);
  }

  .detail-comment,
  .detail-empty {
    background: rgba(255, 255, 255, 0.04);
  }
}

.site-footer {
  width: min(1200px, calc(100% - 32px));
  margin: -22px auto 34px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--accent-2);
}

@media (max-width: 640px) {
  .site-footer {
    width: 100%;
    margin: 0;
    padding: 14px;
    flex-direction: column;
    align-items: flex-start;
    background: #050507;
    border-top-color: rgba(255, 255, 255, 0.1);
    font-size: 11px;
  }
}
