:root {
  --ink:#26252a;
  --leaf:#efe3d7;
  --line:#dedbd8;
  --muted:#595459;
}

body {
  background:#faf8f6;
  color:var(--ink);
}

.skip-link {
  position:fixed;
  top:8px;
  left:8px;
  transform:translateY(-160%);
  z-index:20;
  background:white;
  padding:12px;
  border-radius:8px;
}

.skip-link:focus {
  transform:none;
}

.bar {
  min-height:70px;
  height:auto;
  gap:19px;
}

header {
  background:#252528;
  border-color:#49464b;
}

.brand {
  display:inline-flex;
  align-items:center;
  gap:6px;
}

.brand-logo {
  display: block;
  flex: none;
  width: 36px;
  height: 36px;
  background: var(--hero-accent);
  -webkit-mask: url("/octanescope-assets/import-autohaus-mark.png") center / contain no-repeat;
  mask: url("/octanescope-assets/import-autohaus-mark.png") center / contain no-repeat;
}

.brand b {
  color:var(--leaf);
  font-weight:800;
}

.header-actions {
  display:flex;
  align-items:center;
  gap:9px;
  flex-shrink:0;
}

.header-actions button,.more-nav summary {
  min-height:40px;
}

.sell-nav span {
  font-weight:600;
  margin-left:2px;
}

.more-nav {
  position:relative;
  color:#fff;
}

.more-nav summary {
  display:flex;
  align-items:center;
  cursor:pointer;
  list-style:none;
  border:1px solid #52695a;
  border-radius:7px;
  padding:0 10px;
  font-size:14px;
}

.more-nav summary::-webkit-details-marker {
  display:none;
}

.more-nav>div {
  position:absolute;
  top:calc(100% + 6px);
  right:0;
  min-width:185px;
  border:1px solid var(--line);
  background:#fff;
  box-shadow:0 8px 28px #26252a26;
  border-radius:10px;
  padding:5px;
}

.more-nav button {
  display:block;
  width:100%;
  background:#fff;
  color:var(--ink);
  border:0;
  text-align:left;
  padding:8px;
  border-radius:6px;
  white-space:nowrap;
}

.more-nav button:hover {
  background:#f4eeeb;
}

.hero {
  padding:42px 0 44px;
  background:radial-gradient(ellipse at 78% 15%,#58413d,#2a272a 65%,#242326);
}

.hero-layout {
  grid-template-columns:1.05fr 1fr;
  gap:5%;
}

.hero h1 {
  font-size:clamp(42px,5vw,76px);
}

.hero .intro {
  color:#d5e0d7;
}

.hero-image {
  position:relative;
  margin:0;
  min-width:0;
  border:1px solid #526859;
  border-radius:16px;
  overflow:hidden;
  background:#233e34;
  box-shadow:0 18px 34px #11201c88;
}

.hero-image img {
  display:block;
  width:100%;
  height:clamp(220px,25vw,355px);
  object-fit:cover;
}

.hero-image figcaption {
  position:absolute;
  bottom:11px;
  right:11px;
  padding:4px 8px;
  background:#12231ee8;
  color:#fff;
  font-size:12px;
  border-radius:5px;
}

.listing-head h2 {
  line-height:1.15;
}

.panel {
  border-color:var(--line);
  box-shadow:0 2px 8px #1c372508;
}

.advanced {
  gap:9px;
}

.advanced label,.filters label {
  font-weight:650;
  color:#51464b;
}

.advanced select,.filters select {
  min-height:40px;
}

.sample-listings summary {
  font-weight:750;
  cursor:pointer;
}

.sample-listings .grid {
  margin-top:15px;
}

.live-results {
  grid-template-columns:repeat(auto-fit,minmax(215px,1fr));
  gap:12px;
}

.live-car {
  display:block;
  border:1px solid var(--line);
  border-radius:11px;
  padding:0;
  overflow:hidden;
  background:#fff;
}

.live-car img {
  width:100%;
  height:145px;
  border-radius:0;
  display:block;
}

.live-car>div {
  padding:12px;
}

.live-car p {
  margin:5px 0 0;
}

.live-result-count {
  grid-column:1/-1;
  color:var(--muted);
  margin:2px 0;
  font-size:14px;
}

.listing-page>.market-link {
  display:inline-block;
  margin-top:3px;
}

.listing-page .metrics {
  max-width:700px;
}

@media(max-width:1000px) {
  .bar {
    gap:10px;
  }
  .bar nav {
    gap:12px;
  }
}

@media(max-width:850px) {
  .bar {
    padding:8px 0 0;
  }
  .header-actions {
    margin-left:auto;
  }
  .bar nav {
    height:41px;
  }
  .hero {
    padding:28px 0;
  }
  .hero-image img {
    height:235px;
  }
}

@media(max-width:620px) {
  .bar {
    width:calc(100% - 24px);
    gap:3px 6px;
  }
  .brand {
    font-size:16px;
  }
  .header-actions {
    gap:4px;
  }
  .more-nav summary {
    padding:0 7px;
  }
  .upgrade-nav {
    padding:7px 8px;
    font-size:13px;
  }
  .saved-nav span {
    display:none;
  }
  .saved-nav {
    padding:6px;
  }
  .hero h1 {
    font-size:clamp(36px,10vw,57px);
  }
  .hero-image img {
    height:155px;
    object-position:center 56%;
  }
  .hero-image figcaption {
    font-size:11px;
  }
  .hero-layout {
    gap:16px;
  }
  .hero .intro {
    margin-bottom:15px;
  }
  .quick {
    gap:6px;
  }
  .advanced select {
    max-width:100%;
  }
  .live-results {
    grid-template-columns:1fr 1fr;
  }
  .live-car img {
    height:112px;
  }
  .live-car>div {
    padding:9px;
  }
  .listing-head {
    gap:6px;
  }
}

@media(max-width:360px) {
  .live-results {
    grid-template-columns:1fr;
  }
  .brand b {
    display:none;
  }
}

@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior:auto;
  }
  *,*::before,*::after {
    transition:none!important;
    animation:none!important;
  }
}

#shared-listing-form select,.seller-price input {
  width:100%;
  display:block;
  background:white;
  border:1px solid var(--line);
  border-radius:7px;
  padding:9px;
  margin:5px 0;
  font:inherit;
}

.seller-price {
  margin:15px 0;
}

.listing-page>.buyer-section {
  padding-top:18px;
}

.listing-page>.buyer-section h2 {
  margin-bottom:6px;
}

.listing-page>.buyer-section .table-wrap {
  max-width:780px;
}

.filter-toggle {
  display:none;
}

#search-form,.hero-layout>div {
  min-width:0;
}

@media(max-width:620px) {
  .hero-layout {
    grid-template-columns:minmax(0,1fr);
  }
  .filter-toggle {
    display:inline-block;
  }
  .filters {
    justify-content:space-between;
    align-items:center;
  }
  #advanced:not(.filters-open) {
    display:none;
  }
  .advanced {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    align-items:stretch;
  }
  .header-actions button,.more-nav summary {
    min-height:44px;
  }
  #search-form button {
    padding-inline:9px;
  }
  #search-form input {
    font-size:16px;
  }
}

.watch-button {
  margin:6px 8px;
}

.watch-button[aria-pressed=true] {
  border-color:#6b9e50;
  background:#e6f2d9;
}

.saved-search {
  align-items:center;
}

.saved-search>.market-link {
  margin-right:auto;
}

.brand-compact {
  display:none;
}

@media(max-width:620px) {
  .brand {
    flex:0 1 auto;
  }
  .brand-full {
    display:none;
  }
  .brand-compact {
    display:inline;
  }
  .brand .brand-logo {
    width:26px;
    height:26px;
  }
  .brand {
    gap:4px;
    font-size:15px;
  }
}

@media(max-width:340px) {
  .brand-compact b {
    display:none;
  }
}

.seller-photo-grid {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:9px;
  margin-bottom:12px;
}

.seller-photo {
  margin:0;
  background:#f5efeb;
  border:1px solid var(--line);
  border-radius:8px;
  overflow:hidden;
}

.seller-photo img {
  display:block;
  width:100%;
  height:clamp(78px,12vw,160px);
  object-fit:cover;
}

.seller-photo figcaption {
  padding:7px;
  font-size:13px;
  color:var(--ink);
}

@media(max-width:600px) {
  .seller-photo-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

.report-output {
  margin-top:12px;
}

.report-output table {
  max-width:780px;
}

.report-output>p:last-child {
  margin-bottom:0;
}

.listing-page .buyer-section>a.market-link {
  display:inline-block;
  margin-bottom:12px;
}

.offer-extras {
  border:1px solid var(--line);
  border-radius:8px;
  padding:8px 10px;
  margin:9px 0;
  background:#f5f8f1;
}

.offer-extras summary {
  cursor:pointer;
  font-weight:700;
}

.offer-extras p {
  margin-bottom:5px;
}

.copy-offer-status {
  margin-left:5px;
}

.load-listings {
  display:block;
  margin-top:12px;
}

.inventory-results > .live-result-count {
  margin:8px 0;
}

.live-results:empty {
  display:none;
}

.live-results:empty+.load-listings {
  display:none;
}

.vin-tools {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  margin:10px 0;
}

.vin-tools .muted {
  margin:0;
  font-size:13px;
}

.inventory-price {
  display:block;
  font-size:19px;
  margin-top:5px;
}

.live-car p.inventory-source {
  color:#754544;
  font-size:12px;
  font-weight:700;
  margin:0 0 4px;
}

.partner-photo-placeholder {
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  gap:4px;
  text-align:center;
  min-height:145px;
  background:linear-gradient(140deg,#3b3335,#5b4845);
  color:#fff;
}

.partner-photo-placeholder span {
  font-weight:800;
}

.partner-photo-placeholder small {
  color:#d3e5d8;
  font-size:12px;
}

@media(max-width:620px) {
  .partner-photo-placeholder {
    min-height:112px;
  }
}

.compare-bar {
  position:sticky;
  top:82px;
  z-index:3;
  box-shadow:0 4px 12px #20352318;
}

@media(max-width:620px) {
  .compare-bar {
    top:4px;
  }
}

.live-search select {
  display:block;
  width:100%;
  font:inherit;
  border:1px solid var(--line);
  border-radius:7px;
  color:var(--ink);
  background:white;
  padding:8px;
  margin-top:4px;
}

.gallery-tile {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #e8ebe5;
  overflow: hidden;
}

.gallery-tile img {
  display: block;
}

.photo-lightbox {
  width: min(1100px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  padding: 10px;
  background: #13231d;
  color: white;
}

.photo-lightbox > img {
  display: block;
  width: 100%;
  height: min(72dvh, 720px);
  object-fit: contain;
}

.photo-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 0 0;
}

.photo-counter {
  margin: 0;
  font-size: 14px;
}

@media(max-width:460px) {
  .photo-lightbox > img {
    height: 58dvh;
  }

  .photo-controls button {
    min-height: 44px;
  }
}

.saved-search {
  flex-wrap: wrap;
}

.watch-price {
  flex-basis: 100%;
  margin: -2px 0 8px;
}

#auction-browser .source-buttons {
  margin-bottom: 12px;
}

#auction-results .market-link {
  display: block;
  margin-bottom: 8px;
}

.workspace[data-market-view]:not([data-market-view="inventory"]):not([data-market-view="market"]) .listing-head {
  padding: clamp(18px, 4vw, 34px);
  margin-bottom: 12px;
  border: 1px solid #e0d5cd;
  border-radius: 15px;
  background: linear-gradient(120deg, #f3eeea, #efe8e1);
  align-items: flex-start;
}

.workspace[data-market-view="sell"] .listing-head,
.workspace[data-market-view="saved"] .listing-head {
  background: linear-gradient(120deg, #f3eeea, #f7f3ef);
}

.listing-head h2 {
  margin-bottom: 6px;
}

.panel > h3 {
  letter-spacing: -.025em;
}

.report-output thead,
.listing-page table thead {
  background: #f1ebe5;
}

.report-output tbody tr:nth-child(even),
.listing-page table tbody tr:nth-child(even) {
  background: #f9f6f2;
}

.auction-bid {
  display: grid;
  gap: 2px;
  margin: 10px 0;
  padding: 10px;
  border: 1px solid #e5d9d3;
  border-radius: 8px;
  background: #f4ece7;
}

.auction-bid span,
.auction-bid small {
  color: var(--muted);
  font-size: 13px;
}

.auction-bid strong {
  font-size: 20px;
}

.live-car .auction-estimate {
  margin-top: 10px;
  color: var(--ink);
  font-weight: 650;
}

.auction-estimate:empty {
  display: none;
}

@media(max-width: 620px) {
  .workspace[data-market-view="auctions"] .live-results {
    grid-template-columns: 1fr;
  }
}

.panel,
.grid > *,
.live-search label {
  min-width: 0;
}

@media(max-width:620px) {
  .grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .snapshot-head {
    flex-wrap: wrap;
  }

  .live-search label {
    max-width: 100%;
  }
}

#review-queue input:not([type="checkbox"]) {
  display: block;
  max-width: 100%;
  margin-top: 4px;
}

#review-queue .report-output,
#review-queue .review-item {
  overflow-wrap: anywhere;
}

:root {
  --accent: #ff876f;
  --hero-accent: #ff9e89;
  --accent-ink: #2b1713;
  --link: #963b2c;
  --soft-surface: #fff1eb;
}

.outline b,
.hero .eyebrow,
.hero h1 em {
  color: var(--hero-accent);
}

.pulse {
  background: var(--hero-accent);
}

#search-form button,
.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

nav button.active {
  color: #f1e4db;
  border-color: var(--hero-accent);
}

.market-link,
.tag {
  color: var(--link);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline-color: #b94d38;
}

#categories button.selected {
  background: #963b2c;
  border-color: #963b2c;
}

.compare-bar,
.metrics div,
.offer-extras,
.watch-button[aria-pressed=true] {
  background: var(--soft-surface);
  border-color: var(--line);
}

.location-search {
  align-items: end;
  margin: 9px 0;
}

.location-search .primary,
.location-search .secondary {
  min-height: 41px;
}

.location-help {
  margin: 4px 0 12px;
}

.live-car p.location-result {
  color: var(--link);
  font-weight: 700;
}

@media(max-width:620px) {
  .location-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

.deal-summary {
  margin: 14px 0 20px;
  padding: clamp(12px, 3vw, 24px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff1eb;
}

.deal-summary h2 {
  margin: 0 0 10px;
  letter-spacing: -.025em;
}

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

.deal-metric {
  display: grid;
  align-content: start;
  gap: 3px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
}

.deal-metric span,
.deal-metric small {
  color: var(--muted);
  font-size: 13px;
}

.deal-metric strong {
  font-size: clamp(17px, 3.5vw, 25px);
  overflow-wrap: anywhere;
}

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

.deal-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
}

#price-history,
#comparable-sales,
#comparable-asks,
#offer-tools {
  scroll-margin-top: 80px;
}

@media(max-width: 700px) {
  .deal-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media(max-width: 620px) {
  #price-history,
  #comparable-sales,
  #comparable-asks,
  #offer-tools {
    scroll-margin-top: 10px;
  }
}

.history-fields,
.offer-evidence {
  margin: 12px 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--soft-surface);
}

.history-fields legend {
  padding: 0 4px;
  font-weight: 750;
}

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

.history-links a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
}

.vehicle-history p,
.offer-evidence p {
  margin-bottom: 6px;
}

.vehicle-history h4 {
  margin: 10px 0 4px;
}

.compact-history {
  margin-top: 10px;
  border-top: 1px solid var(--line);
}

.deal-metrics {
  grid-template-columns: repeat(auto-fit, minmax(138px, 1fr));
}

@media(max-width:620px) {
  .deal-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.hero-image {
  border: 1px solid #ffffff36;
  box-shadow: 0 20px 50px #17121766;
}
.source-buttons a {
  background: var(--soft-surface);
  color: var(--link);
}
.analysis-intro {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.analysis-intro section {
  padding: clamp(16px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #faf8f6;
}
.analysis-intro section:nth-child(2) {
  background: var(--soft-surface);
  border-color: #e7b5a8;
}
.analysis-intro summary {
  color: var(--link);
  cursor: pointer;
  font-weight: 700;
}
.pro-example div + div { margin-top: 8px; }
.pro-example dd { margin: 0; font-size: 1.18rem; font-weight: 750; }
@media(max-width: 640px) {
  .analysis-intro { grid-template-columns: 1fr; }
}

.auction-calendar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 12px;
  margin: 12px 0 24px;
}

.auction-calendar-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--soft-surface);
}

.auction-calendar-card h4, .auction-calendar-card p { margin: 0; }
.auction-calendar-card a { margin-top: auto; }
#auction-links { margin-bottom: 24px; }

.hero-market {
  min-width: 0;
  padding: clamp(16px, 3vw, 30px);
  background: #fffaf7;
  color: var(--ink);
  border: 1px solid #ffb2a266;
  border-radius: 20px;
  box-shadow: 0 24px 54px #13101555;
}

.hero-market-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: start;
  gap: 6px 12px;
}

.hero-market-heading .tag, .hero-market-heading h2 { margin: 0; }
.hero-market-heading h2 { font-size: clamp(23px, 3vw, 36px); letter-spacing: -.04em; }
#hero-market-badge {
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--soft-surface);
  color: var(--link);
  font-size: 13px;
  font-weight: 700;
}
.hero-market-label, .hero-market-note { color: var(--muted); font-size: 14px; }
.hero-market-label { margin: 4px 0 12px; }
#hero-market-search {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}
#market-query {
  flex: 1 1 170px;
  width: 100%;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
#hero-market-chart svg { display: block; width: 100%; height: auto; }
#hero-market-chart text { fill: var(--muted); font: 15px system-ui, sans-serif; }
.market-gridline { stroke: var(--line); }
.market-price-line { stroke: #c9533e; stroke-width: 3; }
.market-price-point { fill: #c9533e; stroke: #fff; stroke-width: 2; }
.hero-market-values { margin-bottom: 8px; font-size: 14px; }
.hero-market-values summary { cursor: pointer; }
.hero-market .market-link { font-weight: 750; text-decoration: underline; }

.upgrade-nav { white-space: nowrap; }
.pro-order { max-width: 800px; width: 100%; }
.pro-order-summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 16px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--soft-surface);
}
.pro-order-summary p { margin-bottom: 0; }
.pro-order-price strong { font-size: 2rem; }
.pro-benefits { padding-left: 22px; }
.pro-benefits li + li { margin-top: 8px; }

.enthusiast-models {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(min(100%, 225px),1fr));
  gap:12px;
  margin-top:12px;
}
.enthusiast-models article {
  padding:14px;
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--soft-surface);
}
.enthusiast-models h4, .enthusiast-models p { margin:0 0 6px; }
.enthusiast-models a { display:inline-block; margin-right:12px; }

.enthusiast-thumb {
  position:relative;
  margin:0 0 12px;
  background:var(--soft-surface);
  border-radius:8px;
  overflow:hidden;
}
.enthusiast-thumb img { display:block; width:100%; aspect-ratio:16/9; object-fit:cover; }
.enthusiast-thumb figcaption { padding:4px 7px; font-size:12px; color:var(--muted); }
.public-sales-report { margin:18px 0; }

.brand-full small { font-size: .57em; font-weight: 600; letter-spacing: 0; color: #e0d6d3; }

#search-form {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,.55fr) minmax(0,.65fr) auto;
  gap:6px;
  align-items:stretch;
  padding:8px;
}
#search-form label {
  min-width:0;
  display:grid;
  grid-template-rows:auto 1fr;
  align-items:center;
  gap:2px;
  padding:3px 5px;
  color:var(--ink);
}
#search-form label span { font-size:13px; font-weight:750; }
#search-form input,#search-form select {
  min-width:0;
  width:100%;
  font-size:16px;
  padding:5px 0;
  border:0;
  background:#fff;
  color:var(--ink);
}
#search-form button { align-self:stretch; white-space:nowrap; padding-inline:10px; }
@media(max-width:1080px){
  #search-form { grid-template-columns:repeat(2,minmax(0,1fr)); }
  #search-form .home-keyword,#search-form button { grid-column:1/-1; }
}

.analysis-intro a.primary {
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:8px 12px;
  border-radius:8px;
  font-weight:750;
}

.offer-print-summary { display:none; }
@media print {
  body.printing-offer > :not(.offer-print-summary) { display:none !important; }
  body.printing-offer { background:#fff; color:#000; }
  body.printing-offer .offer-print-summary {
    display:block;
    padding:16px;
    overflow-wrap:anywhere;
  }
  .offer-print-summary li { break-inside:avoid; margin-bottom:12px; }
  .offer-print-summary li p { margin:0; }
}

#home-vehicle-filters { grid-column:1/-1; }
.vehicle-filters { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; }
#results-vehicle-filters { margin-top:16px; }
#results-vehicle-filters label { display:grid; gap:4px; min-width:0; font-size:14px; font-weight:650; }
#results-vehicle-filters select { width:100%; min-width:0; border:1px solid var(--line); border-radius:8px; padding:8px; background:#fff; color:var(--ink); }
@media(max-width:620px){
  .vehicle-filters { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

.hero-market-snapshot { display:grid; gap:3px; margin:10px 0; padding:10px 12px; border:1px solid var(--line); border-radius:9px; }
.hero-market-snapshot span { font-size:13px; color:var(--muted); }
.hero-market-snapshot strong { font-size:22px; line-height:1.2; }
.market-year-label { margin:12px 0 6px; font-size:14px; font-weight:650; }
.market-year-options button { min-height:40px; }
@media(max-width:1000px){
  .hero-layout { grid-template-columns:minmax(0,1fr); gap:22px; }
  #search-form { max-width:none; }
}
@media(max-width:620px){
  #hero-market-search button { min-height:44px; }
  #market-query { font-size:16px; }
}

.hero-market-change { display:grid; gap:3px; margin:8px 0 12px; }
.hero-market-change strong { color:var(--ink); font-size:clamp(20px,3vw,29px); font-variant-numeric:tabular-nums; }
.hero-market-change span { color:var(--muted); font-size:13px; }

.trend-filters { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; flex:0 0 100%; min-width:0; margin:0; padding:0; border:0; }
.trend-filters label { display:grid; gap:4px; min-width:0; font-size:13px; font-weight:650; }
.trend-filters select { width:100%; min-width:0; min-height:42px; padding:5px; border:1px solid var(--line); border-radius:8px; background:#fff; color:var(--ink); }
@media(max-width:460px){
  .trend-filters { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .trend-filters label:nth-child(2){ grid-column:2; }
}

.market-plot-frame { border:1px solid var(--line); border-radius:12px; background:#fff; padding:8px 8px 2px; }
.market-point-reading { min-height:32px; padding:6px 9px; border-radius:7px; background:var(--soft-surface); color:var(--ink); font-size:13px; font-weight:650; }
#hero-market-chart text { font-size:13px; }
.market-price-line { stroke-linecap:round; }
.market-point-guide { stroke:#d7c9c3; stroke-width:1; stroke-dasharray:3 4; }
.market-point-control { cursor:pointer; outline:none; }
.market-point-hit { fill:transparent; }
.market-point-control:is(:focus-visible,[aria-pressed=true]) .market-price-point { fill:#8f3022; stroke-width:2.5; r:6.5; }
.hero-market-change { display:flex; align-items:center; flex-wrap:wrap; gap:4px 10px; margin:8px 0 12px; }
.hero-market-change .market-change-period { flex-basis:100%; }
.hero-market-change .market-change-value { padding:3px 7px; border-radius:6px; background:#eeeae7; font-weight:750; }
.hero-market-change .market-change-value[data-direction=up] { color:#21553b; background:#e7f3eb; }
.hero-market-change .market-change-value[data-direction=down] { color:#8e342b; background:#fbece8; }
.hero-market-values { margin-top:9px; }

.trend-filters label[hidden] { display: none; }
.calendar-sales { margin-block: 12px; }
.calendar-sales h3 { margin: 0 0 8px; font-size: 1rem; }
.calendar-sales svg { display: block; width: 100%; height: auto; }
.calendar-sales svg text { fill: var(--muted); font-size: 14px; }
.calendar-sale-records { margin: 8px 0; padding-inline-start: 24px; }
.calendar-sale-records li { padding-block: 7px; }
.calendar-sale-records span { display: block; font-size: .875rem; color: var(--muted); }

.sale-history-trend { fill: none; stroke: #187782; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.sale-history-dot { fill: #b74632; stroke: white; stroke-width: 1; }
.sale-history-dot-hollow { fill: white; stroke: #b74632; stroke-width: 2; }
