:root {
  --bg: #070b11;
  --panel: #101923;
  --panel-2: #141f2c;
  --line: #26374b;
  --text: #f5f7fa;
  --muted: #9aa8b9;
  --orange: #ff7a00;
  --orange-2: #ff9d2e;
  --blue: #67aaff;
  --green: #49d992;
  --amber: #ffd05b;
  --bad: #ff6b78;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100%;
  color: var(--text);
  background: radial-gradient(circle at 50% 0, #172536 0, var(--bg) 42%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
button, input { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }

.app-shell {
  width: min(100%, 430px);
  height: 100dvh;
  max-height: 100dvh;
  min-height: 0;
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  padding: env(safe-area-inset-top) 14px 0;
  overflow: hidden;
  background: linear-gradient(180deg, #0c141e, #0a1119);
}
.topbar {
  flex: 0 0 auto;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 0 6px;
}
.brand-lockup { display: flex; align-items: center; }
.back-button {
  border: 1px solid #30445c;
  border-radius: 8px;
  background: #111c29;
  color: #e9eef5;
  padding: 8px 10px;
  font-size: 11px;
  cursor: pointer;
}
.back-button[hidden] { display: none; }
.back-button:hover, .back-button:focus-visible { border-color: var(--orange); outline: none; }
.eyebrow {
  margin: 0 0 7px;
  color: #d4dce6;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .14em;
}
.screen { display: none; }
.screen.active {
  display: block;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: 18px;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.hero-card {
  min-height: clamp(470px, calc(100dvh - 120px), 555px);
  position: relative;
  overflow: hidden;
  border: 1px solid #223348;
  border-radius: 16px;
  background: linear-gradient(180deg, #111c2a, #0b131e);
  box-shadow: 0 18px 42px #0008;
}
.hero-card::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  background: linear-gradient(90deg, rgba(5,10,17,.82) 0%, rgba(5,10,17,.42) 45%, rgba(5,10,17,0) 75%), linear-gradient(180deg, rgba(7,13,22,.12) 0%, rgba(7,13,22,.03) 38%, rgba(7,13,22,.36) 76%, rgba(7,13,22,.72) 100%);
  pointer-events: none;
}
.hero-card::after {
  content: "";
  position: absolute;
  right: -42%;
  bottom: 88px;
  left: 18%;
  height: 2px;
  background: var(--orange);
  box-shadow: 0 0 18px #ff7900aa;
  transform: rotate(-33deg);
  pointer-events: none;
}
.hero-copy { position: relative; z-index: 2; padding: 27px 20px 0; }
.hero-copy h2 {
  margin: 0;
  font-size: clamp(26px, 7vw, 34px);
  line-height: .99;
  letter-spacing: -.065em;
  font-weight: 900;
}
.hero-copy h2 span { color: #e7ebf2; }
.hero-copy p:last-child {
  max-width: 210px;
  margin: 15px 0 0;
  color: #aeb9c8;
  font-size: 11px;
  line-height: 1.4;
}
.hero-car {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  mix-blend-mode: normal;
  opacity: .92;
  filter: saturate(.9) contrast(1.1);
}
.hero-actions {
  position: absolute;
  z-index: 3;
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: grid;
  gap: 8px;
}
.wide { width: 100%; }
.primary, .secondary {
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 10px 14px;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}
.primary { color: #18110b; background: linear-gradient(180deg, var(--orange-2), var(--orange)); box-shadow: 0 7px 16px #ff790038; }
.secondary { color: #e7edf5; background: #0e151f; border-color: #2a3a4e; }
.primary:active, .secondary:active, .quick-card:active { transform: translateY(1px); }

.quick-grid { display: grid; gap: 8px; margin-top: 10px; }
.quick-card {
  width: 100%;
  min-height: 57px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid #213247;
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--text);
  text-align: left;
  background: linear-gradient(180deg, #121e2b, #0f1823);
  cursor: pointer;
}
.quick-card b { margin-left: auto; color: #8d9aae; font-size: 22px; font-weight: 400; }
.quick-text { display: grid; gap: 3px; }
.quick-text strong { font-size: 12px; }
.quick-text small { color: var(--muted); font-size: 9px; }
.quick-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; }
.ui-icon, .nav-icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.nav-icon { width: 19px; height: 19px; stroke-width: 1.8; }
.quick-icon.blue { color: var(--blue); background: #65a9ff18; }
.quick-icon.orange { color: var(--orange); background: #ff7a0018; }
.quick-icon.amber { color: var(--amber); background: #ffd05b18; }
.quick-icon.green { color: var(--green); background: #49d99218; }

.bottom-nav {
  flex: 0 0 auto;
  width: calc(100% + 28px);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin: 0 -14px;
  padding: 10px 8px calc(9px + env(safe-area-inset-bottom));
  border-top: 1px solid #263446;
  background: #0a1018f5;
  backdrop-filter: blur(14px);
}
.bottom-nav button {
  display: grid;
  justify-items: center;
  gap: 4px;
  border: 0;
  color: #7e8b9d;
  background: transparent;
  font-size: 17px;
  cursor: pointer;
}
.bottom-nav button span { font-size: 8px; }
.bottom-nav button.active { color: var(--orange); }

.section-heading { display: flex; align-items: center; justify-content: space-between; margin: 7px 2px 12px; }
.section-heading h2 { margin: 0; font-size: 23px; letter-spacing: -.04em; }
.icon-button { min-width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; color: #dce4ee; background: var(--panel); font-size: 10px; cursor: pointer; }
.hint { margin: 0 2px 12px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.remote-listing { display: grid; gap: 6px; padding: 14px; margin-bottom: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.remote-listing-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.remote-listing-top strong { max-width: 70%; color: var(--text); font-size: 13px; line-height: 1.35; }
.form-card, .results-card, .status-card, .listing-card { border: 1px solid var(--line); border-radius: 13px; background: var(--panel); box-shadow: 0 9px 23px #0003; }
.form-card { display: grid; gap: 10px; padding: 13px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
label { display: grid; gap: 5px; color: #bec9d7; font-size: 10px; font-weight: 650; }
input { width: 100%; border: 1px solid #2a3a4f; border-radius: 8px; padding: 10px; color: var(--text); background: #0b121c; font-size: 13px; outline: none; }
input:focus { border-color: var(--orange); box-shadow: 0 0 0 3px #ff79001c; }
textarea { width: 100%; resize: vertical; border: 1px solid #2a3a4f; border-radius: 8px; padding: 10px; color: var(--text); background: #0b121c; font-size: 12px; outline: none; }
textarea:focus { border-color: var(--orange); }
.note-editor { display: grid; gap: 8px; margin: 10px 0; }
.note-editor[hidden] { display: none; }
.message { margin: 0; color: var(--green); font-size: 10px; }
.results-card { display: grid; gap: 0; margin-top: 10px; padding: 13px; }
.result-line { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #243142; color: #aeb9c8; font-size: 11px; }
.result-line:last-child { border-bottom: 0; }
.result-line strong { color: #f4f7fb; font-size: 13px; }
.result-line.total strong, .result-line.total span { color: var(--orange-2); font-weight: 800; }

.feed-toolbar { display: flex; align-items: center; justify-content: space-between; margin: 0 2px 10px; }
.feed-count { color: var(--muted); font-size: 10px; }
.filter-chip { border: 1px solid #33465e; border-radius: 7px; padding: 7px 9px; color: #dce4ee; background: #121c28; font-size: 10px; cursor: pointer; }
.car-mark { position: relative; display: block; width: 48px; height: 22px; border: 2px solid var(--orange); border-radius: 12px 14px 5px 5px; transform: skewX(-12deg); }
.car-mark::before, .car-mark::after { content: ""; position: absolute; bottom: -7px; width: 7px; height: 7px; border: 2px solid var(--orange); border-radius: 50%; background: #0d151f; }
.car-mark::before { left: 5px; }
.car-mark::after { right: 5px; }
.empty-card .car-mark { margin: 0 auto; border-color: var(--amber); }
.empty-card .car-mark::before, .empty-card .car-mark::after { border-color: var(--amber); }
.listing-photo .car-mark { transform: scale(2); }
.empty-card { margin-bottom: 18px; padding: 23px 16px; border: 1px dashed #35465b; border-radius: 13px; text-align: center; background: #0d151f; }
.empty-icon { font-size: 30px; opacity: .85; }
.empty-card h3 { margin: 9px 0 6px; font-size: 15px; }
.empty-card p { max-width: 310px; margin: 0 auto 14px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.demo-preview { display: none !important; }
.demo-label { margin: 0 2px 8px; color: #68778a; }
.listing-card { max-width: 620px; overflow: hidden; padding: 0; }
.listing-photo { height: 170px; display: grid; place-items: center; background: linear-gradient(135deg, #1b2737, #0a0f17); font-size: 56px; }
.listing-body { padding: 14px; }
.pipeline { display: flex; gap: 5px; overflow-x: auto; margin: 13px 0 7px; padding-bottom: 4px; scrollbar-width: thin; }
.stage { flex: 0 0 auto; border: 1px solid #30445a; border-radius: 7px; padding: 7px 8px; color: #aeb9c8; background: #0d1621; font-size: 9px; cursor: pointer; white-space: nowrap; }
.stage.active { border-color: var(--orange); color: #1a1108; background: var(--orange); }
.listing-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0; }
.listing-actions .secondary { min-height: 35px; padding: 8px; font-size: 10px; }

.listing-body h3 { margin: 4px 0; font-size: 18px; line-height: 1.1; }
.price { margin: 8px 0; color: var(--orange-2); font-size: 21px; font-weight: 850; }
.muted { color: var(--muted); font-size: 11px; }
.small { line-height: 1.45; }
.signal-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.signal-row span { border: 1px solid #ff617044; border-radius: 5px; padding: 5px 7px; color: #ffc1c7; background: #ff617012; font-size: 9px; }
.freshness { border-radius: 6px; padding: 5px 7px; font-size: 9px; font-weight: 800; }
.freshness.fresh { color: var(--green); border: 1px solid #49d99255; background: #49d99212; }
.freshness.aging { color: var(--amber); border: 1px solid #ffd05b55; background: #ffd05b12; }
.freshness.old { color: var(--muted); border: 1px solid #6b7b8d55; background: #6b7b8d12; }
.listing-time { margin: 8px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.demo-badge { border: 1px solid #ffc44d55; border-radius: 5px; padding: 5px 7px; color: var(--amber); background: #ffc44d12; font-size: 9px; font-weight: 800; }
.status-card { display: grid; gap: 0; padding: 13px; }
.status-item { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid #243142; font-size: 11px; }
.status-item:last-child { border-bottom: 0; }
.status-item span { color: var(--muted); }
.status-item strong { text-align: right; font-size: 11px; }
.calculator-card { margin-bottom: 10px; }
.calculator-vehicle, .favorites-picker, .mot-tool, .mot-panel { border: 1px solid #2b3b50; border-radius: 13px; background: #101a26; box-shadow: 0 8px 20px #0003; }
.calculator-vehicle { display: grid; grid-template-columns: 76px minmax(0, 1fr) 34px; align-items: center; gap: 10px; min-height: 76px; margin-bottom: 10px; padding: 8px; }
.calculator-vehicle[hidden], .favorite-strip[hidden] { display: none; }
.calculator-vehicle-photo { width: 76px; height: 60px; display: grid; place-items: center; overflow: hidden; border-radius: 8px; background: #0b1119; }
.calculator-vehicle-photo img { width: 100%; height: 100%; object-fit: contain; }
.calculator-vehicle-photo.is-fallback { background: linear-gradient(135deg, #1b2a3a, #0b1119); }
.calculator-vehicle-photo .car-mark { transform: scale(.8); }
.calculator-vehicle-copy { min-width: 0; display: grid; gap: 4px; }
.calculator-vehicle-copy small { color: var(--orange-2); font-size: 8px; font-weight: 800; letter-spacing: .1em; }
.calculator-vehicle-copy strong { overflow: hidden; color: #f3f6fb; font-size: 11px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.calculator-vehicle-copy span { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.calculator-vehicle .icon-action { width: 32px; height: 32px; font-size: 18px; }
.favorites-picker { margin-bottom: 10px; padding: 11px; }
.picker-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.picker-heading > div { display: grid; gap: 3px; }
.picker-heading strong { font-size: 12px; }
.picker-heading small { color: var(--muted); font-size: 9px; }
.text-button { border: 0; padding: 4px 0; color: var(--orange-2); background: transparent; font-size: 10px; cursor: pointer; }
.favorite-strip { display: flex; gap: 8px; margin: 10px -2px 0; padding: 2px 2px 5px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; }
.favorite-card { flex: 0 0 116px; display: grid; gap: 4px; padding: 6px; border: 1px solid #30445a; border-radius: 9px; color: var(--text); background: #0d1621; text-align: left; scroll-snap-align: start; cursor: pointer; }
.favorite-card:focus-visible, .favorite-card:hover { border-color: var(--orange); outline: none; }
.favorite-photo { height: 62px; display: grid; place-items: center; overflow: hidden; border-radius: 6px; background: linear-gradient(135deg, #1b2a3a, #0b1119); }
.favorite-photo img { width: 100%; height: 100%; object-fit: contain; }
.favorite-photo .car-mark { transform: scale(.55); }
.favorite-card strong { overflow: hidden; font-size: 9px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.favorite-card small { color: var(--orange-2); font-size: 9px; }
.picker-empty { margin: 10px 0 1px; color: #718197; font-size: 10px; line-height: 1.4; }
.mot-tool { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 10px; padding: 10px; }
.mot-tool > div { display: grid; gap: 3px; }
.mot-tool strong { font-size: 11px; }
.mot-tool small { color: var(--muted); font-size: 9px; line-height: 1.3; }
.mot-tool .secondary { min-height: 34px; padding: 8px 9px; font-size: 9px; white-space: nowrap; }
.mot-panel { display: grid; gap: 9px; margin: -2px 0 10px; padding: 11px; }
.mot-panel[hidden] { display: none; }
.mot-actions { display: flex; gap: 8px; margin-top: 9px; }
.mot-actions button { flex: 1; }
.mot-saved-status { margin-top: 7px; color: #7ee0aa; font-size: 10px; font-weight: 700; }
.mot-panel .hint { margin: 0; font-size: 9px; }

.feed-toolbar > div { display: grid; gap: 3px; }
.feed-toolbar .feed-count { font-size: 12px; }
.feed-toolbar small { color: var(--muted); font-size: 9px; }
#remote-feed { display: grid; gap: 14px; }
#remote-feed[hidden] { display: none; }
.remote-listing { overflow: hidden; border: 1px solid #34475a; border-radius: 15px; background: #101a26; box-shadow: 0 10px 24px #0005; }
.remote-feed-list { display: grid; gap: 14px; }
.remote-photo { position: relative; min-height: 180px; display: grid; place-items: center; overflow: hidden; background: linear-gradient(135deg, #1b2a3a, #0b1119); }
.remote-photo.has-image { background: #0b1119; }
.remote-photo img { width: 100%; height: 235px; display: block; object-fit: contain; object-position: center; background: #0b1119; }
.remote-photo.is-fallback { grid-template-columns: 1fr; gap: 14px; align-content: center; color: #78899e; }
.remote-photo .car-mark { transform: scale(1.6); opacity: .75; }
.photo-placeholder { color: #718197; font-size: 10px; }
.listing-overlay-badge { position: absolute; top: 12px; left: 12px; z-index: 2; padding: 7px 9px; border-radius: 8px; background: #c96b13; color: #fff; font-size: 10px; font-weight: 800; }
.photo-counter { position: absolute; right: 50%; bottom: 10px; z-index: 2; transform: translateX(50%); padding: 4px 9px; border-radius: 999px; color: #f7f8fa; background: #0009; font-size: 9px; font-weight: 700; }
.remote-expanded { grid-column: 1 / -1; margin-top: 10px; padding-top: 10px; border-top: 1px solid #2b3d51; }
.remote-expanded[hidden] { display: none; }
.inline-expanded-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; color: #f0f4f8; font-size: 11px; }
.inline-expanded-heading button { border: 0; color: var(--orange-2); background: transparent; font-size: 10px; cursor: pointer; }
.inline-expanded-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.inline-expanded-grid > div { display: grid; gap: 4px; padding: 8px; border: 1px solid #26394d; border-radius: 8px; background: #0d1621; }
.inline-expanded-grid small { color: #7f91a6; font-size: 8px; }
.inline-expanded-grid strong { color: #dce5ef; font-size: 10px; }
.inline-expanded-grid button, .inline-expanded-actions button, .inline-expanded-actions a { border: 1px solid #3b536c; border-radius: 7px; padding: 7px; color: var(--orange-2); background: #101c29; font-size: 9px; text-align: center; text-decoration: none; cursor: pointer; }
.inline-expanded-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-top: 8px; }
.inline-map { display: grid; gap: 6px; margin-top: 8px; color: #dce5ef; font-size: 10px; }
.inline-map iframe { width: 100%; height: 180px; border: 0; border-radius: 8px; }
.inline-map[hidden] { display: none; }
.inline-expanded-note { margin: 8px 0 0; color: #7f91a6; font-size: 9px; line-height: 1.4; }
.inline-mot-box { display: grid; gap: 7px; margin-top: 8px; padding: 9px; border: 1px solid #2e465e; border-radius: 9px; background: #0d1621; }
.inline-mot-box label { display: grid; gap: 4px; color: #8fa1b5; font-size: 9px; }
.inline-mot-box input { min-height: 34px; }
.inline-mot-box button { min-height: 34px; border: 1px solid #3b536c; border-radius: 7px; color: var(--orange-2); background: #101c29; font-size: 9px; }
.inline-mot-box small { color: #7f91a6; font-size: 8px; }
.remote-listing.is-expanded { border-color: var(--orange); box-shadow: 0 12px 28px #0007; }
.remote-listing { display: grid; grid-template-columns: minmax(0, 1fr); }
.remote-listing-body { display: contents; }
.remote-photo { order: 1; aspect-ratio: 1.72 / 1; min-height: 0; }
.remote-photo img { width: 100%; height: 100%; object-fit: contain; }
.remote-listing-top { order: 3; margin: 16px 14px 0; }
.remote-listing-top .freshness { display: none; }
.remote-type { color: var(--orange-2); font-size: 10px; letter-spacing: .12em; }
.remote-listing h3 { order: 4; margin: 8px 14px 0; font-size: 20px; }
.remote-listing .price { order: 5; margin: 7px 14px 0; font-size: 27px; font-weight: 800; color: var(--orange-2); }
.remote-listing .old-price { order: 6; margin: 4px 14px 0; }
.remote-details.vehicle-fact-strip { order: 2; margin: 0; padding: 12px 14px; border-top: 1px solid #2a3c50; border-bottom: 1px solid #2a3c50; background: #0c141e; }
.remote-location-row { order: 7; margin: 14px; }
.remote-times { order: 8; margin: -4px 14px 0; }
.remote-signals { order: 9; margin: 12px 14px 0; }
.remote-condition { order: 10; margin: 8px 14px 0; }
.risk-meter { order: 11; margin: 14px; border: 1px solid #b8661a; border-left-width: 1px; border-radius: 10px; background: #17130f; padding: 12px; }
.remote-listing .listing-actions { order: 12; margin: 0 14px 14px; }
.remote-photo { aspect-ratio: auto; min-height: 0; }
.remote-photo img { width: 100%; height: auto; max-height: none; object-fit: contain; }
.similar-offers { align-self: flex-end; margin: 5px 0 -2px; padding: 7px 10px; border: 1px solid #4a3a21; border-radius: 9px; color: #f3a03b; background: #251a0d; font-size: 9px; font-weight: 700; }
.quick-summary { display: grid; gap: 4px; margin: 10px 0; padding: 10px 11px; border: 1px solid #70451c; border-radius: 10px; background: linear-gradient(135deg, #251a0d, #171a20); }
.quick-summary strong { color: #f39a2e; font-size: 10px; }
.quick-summary span { color: #bbc5cf; font-size: 9px; line-height: 1.35; }
.remote-times span:first-child { color: #e5edf5; font-weight: 700; }
.remote-times span:first-child::before { content: "●"; margin-right: 5px; color: #ff8b12; font-size: 8px; vertical-align: 1px; }
.negotiation-badge { order: 6; justify-self: start; margin: 5px 14px 0; padding: 4px 7px; border-radius: 6px; color: #ffbe72; background: #8c4b111c; border: 1px solid #aa641e66; font-size: 8px; font-weight: 800; }
.remote-location-row { position: relative; padding-right: 92px; }
.remote-location-row::after { content: none; }
.map-link { margin-left: auto; flex: 0 0 auto; color: var(--orange-2); font-size: 9px; font-weight: 700; text-decoration: none; }
.remote-listing .listing-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) 42px; gap: 7px; }
.remote-listing .listing-actions .mini-action, .remote-listing .listing-actions .icon-action { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 6px 5px; border: 1px solid #263a50; border-radius: 8px; color: #dce5ef; background: #0c1520; font-size: 9px; text-decoration: none; }
.remote-listing .listing-actions .action-share::before { content: "↗"; color: var(--orange-2); font-size: 13px; }
.remote-listing .listing-actions .action-facebook::before { content: "f"; width: 15px; height: 15px; display: inline-grid; place-items: center; border-radius: 50%; color: #fff; background: #4267b2; font-weight: 800; }
.remote-listing .listing-actions .action-copy::before { content: "↗"; color: var(--orange-2); font-size: 13px; }
.remote-listing .listing-actions .icon-action { border-color: var(--orange); color: var(--orange-2); background: #ff8b1214; }
.remote-photo { position: relative; }
.photo-frame { position: relative; display: block; width: 100%; height: auto; min-height: 0; line-height: 0; overflow: hidden; }
.photo-frame > img { display: block; width: 100%; height: auto; max-height: none; object-fit: contain; }
.photo-frame .photo-facts { position: absolute !important; left: 0; right: 0; bottom: 0; }
.photo-facts { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; padding: 7px 8px; background: rgba(7, 15, 24, .76); border-top: 1px solid rgba(196, 211, 225, .22); backdrop-filter: blur(3px); }
.photo-fact { min-width: 0; display: flex; align-items: center; justify-content: center; gap: 5px; padding: 0 6px; border-right: 1px solid rgba(177, 194, 211, .24); text-align: center; }
.photo-fact:last-child { border-right: 0; }
.photo-fact svg { flex: 0 0 15px; width: 15px; height: 15px; margin: 0; fill: none; stroke: #d5e0ea; stroke-width: 1.5; }
.photo-fact span { display: inline-flex; align-items: baseline; gap: 3px; min-width: 0; }
.photo-fact small { display: none; }
.photo-fact strong { overflow: hidden; max-width: 100%; color: #f1f5f8; font-size: 9px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.remote-details.vehicle-fact-strip, .remote-listing .remote-signals, .remote-listing .remote-condition { display: none !important; }
.remote-listing .listing-actions .action-facebook { order: 1; }
.remote-listing .listing-actions .action-copy { order: 2; }
.remote-listing .listing-actions .action-share { order: 3; }
.remote-listing .listing-actions .expand-action { order: 4; }
.remote-listing .listing-actions .icon-action:not(.expand-action) { order: 5; }
.remote-listing-body { display: flex; flex-direction: column; min-width: 0; padding: 0 14px 14px; }
.remote-listing-body > * { order: initial !important; }
.remote-listing .remote-listing-top { margin: 12px 0 0; }
.remote-listing h3 { margin: 8px 0 0; }
.remote-listing .price { margin: 7px 0 5px; }
.remote-listing .old-price { margin: 0; }
.remote-listing .remote-location-row { margin: 10px 0 9px; }
.remote-listing .remote-times { margin: 2px 0 8px; }
.remote-listing .listing-actions { margin: 0; }

.remote-listing-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; flex-wrap: wrap; }
.price-drop-badge { padding: 3px 6px; border-radius: 999px; background: rgba(54,185,117,.14); color: #7ee0aa; font-size: 9px; font-weight: 700; }
.risk-meter { display: grid; gap: 3px; margin: 10px 0; padding: 8px 10px; border-left: 3px solid #6f8193; background: rgba(111,129,147,.08); }
.risk-meter strong { font-size: 10px; }
.risk-meter small { color: var(--muted); font-size: 9px; }
.risk-meter.risk-medium { border-color: #e0a13d; background: rgba(224,161,61,.08); }
.risk-meter.risk-high { border-color: #e05b52; background: rgba(224,91,82,.08); }
.remote-type { color: #8fa2b8; font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.remote-listing h3 { margin: 10px 0 0; color: #f2f5f9; font-size: 20px; line-height: 1.14; }
.remote-listing .price { margin: 7px 0 5px; font-size: 25px; }
.remote-location-row { display: flex; align-items: center; gap: 8px; min-height: 44px; margin: 10px 0 9px; padding: 9px 10px; border: 1px solid #25384c; border-radius: 10px; background: #0d1621; }
.remote-location-row svg { flex: 0 0 21px; width: 21px; height: 21px; fill: none; stroke: var(--orange-2); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.remote-location-row span { display: grid; gap: 3px; min-width: 0; }
.remote-location-row small { color: #8293a6; font-size: 9px; }
.remote-location-row strong { overflow: hidden; color: #e5ebf2; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.remote-details.vehicle-fact-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin: 0 0 10px; }
.vehicle-fact-strip .remote-detail { display: grid; justify-items: center; gap: 4px; min-height: 53px; padding: 6px 2px; border: 0; border-right: 1px solid #263546; border-radius: 0; background: transparent; text-align: center; }
.vehicle-fact-strip .remote-detail:last-child { border-right: 0; }
.vehicle-fact-strip .remote-detail svg { width: 18px; height: 18px; stroke: #9aaabd; }
.vehicle-fact-strip .remote-detail span { justify-items: center; }
.vehicle-fact-strip .remote-detail small { color: #71849a; font-size: 8px; }
.vehicle-fact-strip .remote-detail strong { max-width: 100%; color: #dce5ef; font-size: 9px; }
.remote-condition { margin: 5px 0; color: #c5d0dc; font-size: 10px; }
.old-price { margin: -3px 0 8px; color: #7d8d9e; font-size: 10px; text-decoration: line-through; }
.remote-signals { display: flex; flex-wrap: wrap; gap: 5px; margin: 11px 0 2px; }
.remote-signals span { padding: 5px 7px; border: 1px solid #efaa4d66; border-radius: 5px; color: #ffd28a; background: #efaa4d12; font-size: 9px; }
.remote-times { display: grid; gap: 3px; margin: 12px 0 2px; color: #7f91a6; font-size: 9px; line-height: 1.35; }
.remote-listing .listing-actions { margin-bottom: 0; }
.secondary:disabled { cursor: not-allowed; opacity: .45; }

.remote-workflow { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.remote-workflow label { display: grid; gap: 4px; color: #8fa1b5; font-size: 9px; }
.remote-workflow select { width: 100%; min-height: 35px; border: 1px solid #2a3a4f; border-radius: 8px; padding: 7px; color: #dfe7f0; background: #0b121c; font-size: 10px; }
.remote-workflow select:focus { border-color: var(--orange); outline: none; }

.range-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; margin-top: 5px; }
input[type="range"] { width: 100%; height: 5px; padding: 0; accent-color: var(--orange); border: 0; background: #243448; cursor: pointer; }
.range-line output { min-width: 66px; color: var(--orange-2); font-size: 10px; font-variant-numeric: tabular-nums; text-align: right; }

.remote-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin: 12px 0; }
.remote-detail { display: flex; align-items: center; gap: 7px; min-width: 0; padding: 7px; border: 1px solid #223348; border-radius: 8px; background: #0d1621; }
.remote-detail svg { flex: 0 0 17px; width: 17px; height: 17px; fill: none; stroke: #8ea5bd; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.remote-detail span { min-width: 0; display: grid; gap: 2px; }
.remote-detail small { color: #71849a; font-size: 8px; }
.remote-detail strong { overflow: hidden; color: #dce5ef; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.remote-condition { margin: 5px 0; color: #c5d0dc; font-size: 10px; }
.old-price { margin: -5px 0 8px; color: #7d8d9e; font-size: 10px; text-decoration: line-through; }

.compact-actions { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) 36px; gap: 6px; margin-top: 10px; }
.mini-action { min-height: 32px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #2c4056; border-radius: 7px; padding: 7px 6px; color: #dce5ef; background: #0d1621; font-size: 9px; font-weight: 750; text-decoration: none; cursor: pointer; }
.mini-action:hover, .mini-action:focus-visible { border-color: var(--orange); outline: none; }
.icon-action { width: 37px; height: 35px; display: grid; place-items: center; border: 1px solid #2c4056; border-radius: 8px; color: #8b9caf; background: #0d1621; cursor: pointer; }
.icon-action svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
.icon-action.is-favorite { color: var(--amber); border-color: #ffd05b77; background: #ffd05b12; }
.remote-note { margin-top: 10px; border-top: 1px solid #25364a; padding-top: 8px; }
.remote-note summary { color: #9eafc1; font-size: 10px; cursor: pointer; }
.remote-note textarea { min-height: 52px; margin-top: 8px; font-size: 10px; }
.remote-note .mini-action { width: 100%; margin-top: 6px; }

@media (min-width: 700px) {
  body { padding: 24px; }
  .app-shell { width: min(100%, 1120px); padding: 0 32px 24px; border: 1px solid #263547; border-radius: 22px; box-shadow: 0 25px 70px #0008; }
  .topbar { min-height: 72px; }
  .screen#start.active { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(310px, .75fr); gap: 18px; align-items: start; }
  .screen#start .hero-card { min-height: clamp(430px, calc(100dvh - 170px), 620px); }
  .screen#start .quick-grid { margin-top: 0; }
  .screen:not(#start) { max-width: 820px; margin: 0 auto; }
  .bottom-nav { width: calc(100% + 64px); margin: 0 -32px; }
  .hero-car { height: 100%; }
}

@media (max-width: 380px) {
  .field-row { grid-template-columns: 1fr; }
  .hero-copy { padding-left: 16px; }
  .hero-copy h2 { font-size: 25px; }
  .hero-actions { right: 14px; left: 14px; }
}

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

/* Home redesign: image-led discovery surface inspired by the supplied reference. */
.app-shell { width: min(100%, 430px); padding: env(safe-area-inset-top) 14px 0; border: 0; border-radius: 0; box-shadow: none; }
.screen#start.active { display: block; max-width: none; margin: 0; }
.topbar { min-height: 62px; padding: 0 4px; justify-content: space-between; }
.brand-lockup { flex: 1; }
.brand-lockup strong { color: #f1f4f8; font-size: 14px; letter-spacing: .02em; }
.brand-lockup strong span { color: var(--orange); }
.notification-button { position: relative; width: 34px; height: 34px; display: grid; place-items: center; border: 0; color: #dce4ee; background: transparent; cursor: pointer; }
.notification-button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.notification-button i { position: absolute; top: 5px; right: 4px; width: 7px; height: 7px; border: 1px solid #111923; border-radius: 50%; background: var(--orange); }
#start.active { display: block; }
.hero-card { min-height: 470px; height: min(570px, 68dvh); border-radius: 0 0 18px 18px; border-color: #1b2c3b; background: linear-gradient(180deg, #0c1722 0%, #0b151f 54%, #0c1722 100%); box-shadow: none; }
.hero-card::before { background: linear-gradient(90deg, rgba(6,14,22,.72) 0%, rgba(6,14,22,.22) 54%, rgba(6,14,22,0) 82%), linear-gradient(180deg, rgba(7,16,25,.08), rgba(7,16,25,.08) 52%, rgba(7,16,25,.48)); }
.hero-card::after { right: -18%; bottom: 106px; left: 38%; height: 2px; transform: rotate(-29deg); }
.hero-copy { padding: 34px 20px 0; }
.hero-copy h2 { font-size: clamp(31px, 8vw, 43px); line-height: .97; letter-spacing: -.07em; }
.hero-copy h2 span { color: var(--orange); }
.hero-copy p:last-child { max-width: 250px; margin-top: 18px; font-size: 13px; line-height: 1.45; }
.hero-car { opacity: .82; object-position: 55% bottom; mix-blend-mode: screen; filter: saturate(.88) contrast(1.08) brightness(.9); }
.home-action-panel { position: relative; z-index: 3; margin: -165px 6px 0; padding: 17px 12px 12px; border: 1px solid #314455; border-radius: 16px; background: linear-gradient(180deg, rgba(14,28,40,.95), rgba(11,21,31,.98)); box-shadow: 0 14px 35px #0008; }
.panel-title { display: flex; align-items: center; gap: 9px; justify-content: center; color: var(--orange-2); font-size: 12px; letter-spacing: .04em; }
.panel-title span { flex: 1; max-width: 30px; height: 1px; background: #8a4a18; }
.benefit-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin: 15px 0 16px; }
.benefit-grid > div { display: grid; justify-items: center; align-content: start; gap: 4px; min-width: 0; padding: 0 6px; border-right: 1px solid #263240; text-align: center; }
.benefit-grid > div:last-child { border-right: 0; }
.benefit-icon { width: 28px; height: 28px; margin-bottom: 4px; fill: none; stroke: #c0cad6; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.benefit-grid strong { color: #e8edf3; font-size: 10px; }
.benefit-grid small { color: #8c9aaa; font-size: 9px; line-height: 1.2; }
.hero-cta { position: relative; display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; min-height: 49px; border-radius: 11px; font-size: 14px; }
.hero-cta b { position: absolute; right: 16px; margin: 0; font-size: 25px; font-weight: 300; line-height: 1; }
.recommend-cta b { margin-left: auto; font-size: 25px; font-weight: 300; line-height: 1; }
.button-icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.recommend-cta { display: flex; align-items: center; gap: 11px; width: 100%; min-height: 58px; margin-top: 8px; text-align: left; }
.recommend-cta > span { display: grid; gap: 3px; }
.recommend-cta strong { font-size: 11px; }
.recommend-cta small { color: #8e9bab; font-size: 9px; }
.recent-section { margin: 12px 6px 0; padding: 13px 12px; border: 1px solid #293442; border-radius: 14px; background: #0d151f; }
.recent-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.recent-heading > strong { font-size: 13px; }
.recent-heading button { border: 0; padding: 0; color: #aab5c3; background: transparent; font-size: 10px; cursor: pointer; }
.recent-heading button b { color: var(--orange); margin-left: 3px; font-size: 16px; font-weight: 400; }
.recent-listings { display: grid; gap: 7px; }
.recent-listing { display: grid; grid-template-columns: 66px minmax(0, 1fr) auto 24px; align-items: center; gap: 9px; width: 100%; padding: 7px; border: 1px solid #263443; border-radius: 9px; color: var(--text); background: #101a25; text-align: left; cursor: pointer; }
.recent-listing:hover, .recent-listing:focus-visible { border-color: var(--orange); outline: none; }
.recent-photo { width: 66px; height: 46px; display: grid; place-items: center; overflow: hidden; border-radius: 6px; background: #0a1119; }
.recent-photo img { width: 100%; height: 100%; object-fit: contain; }
.recent-photo .car-mark { transform: scale(.55); }
.recent-copy, .recent-price { min-width: 0; display: grid; gap: 4px; }
.recent-copy strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.recent-copy small, .recent-price small { overflow: hidden; color: #8998aa; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.recent-price { justify-items: end; }
.recent-price strong { color: var(--orange-2); font-size: 11px; white-space: nowrap; }
.recent-heart { color: #98a6b6; font-size: 26px; line-height: 1; }
.recent-heart.is-favorite { color: var(--orange); }
.recent-empty { margin: 2px 0; color: #7f8e9f; font-size: 10px; line-height: 1.4; }
.back-button { order: -1; }

@media (min-width: 700px) {
  .app-shell { width: min(100%, 430px); }
  .screen#start.active { display: block; max-width: none; margin: 0; }
  .hero-card { height: 570px; min-height: 0; }
  .home-action-panel { margin-top: -165px; }
}

@media (max-width: 380px) {
  .hero-card { height: 470px; min-height: 470px; }
  .hero-copy { padding-top: 27px; }
  .hero-copy h2 { font-size: 29px; }
  .hero-copy p:last-child { max-width: 220px; font-size: 11px; }
  .home-action-panel { margin-right: 2px; margin-left: 2px; padding-right: 8px; padding-left: 8px; }
  .benefit-grid strong { font-size: 9px; }
  .benefit-grid small { font-size: 8px; }
  .recent-listing { grid-template-columns: 55px minmax(0, 1fr) auto 20px; gap: 6px; }
  .recent-photo { width: 55px; height: 42px; }
}

.fresh-offer-banner { display: flex; align-items: center; gap: 8px; margin: 12px 16px 0; padding: 11px 12px; border: 1px solid rgba(242,133,35,.45); border-radius: 12px; background: linear-gradient(100deg, rgba(74,38,16,.9), rgba(18,29,39,.95)); color: #f7d3ad; font-size: 11px; }
.fresh-offer-banner[hidden] { display: none; }
.fresh-offer-banner strong { flex: 1; color: #fff; font-size: 11px; }
.fresh-offer-banner button { border: 0; background: transparent; color: var(--orange-2); font: inherit; font-weight: 700; white-space: nowrap; }
.parts-estimator { margin-top: 12px; }
.parts-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin: 0 0 12px; }
.part-tile { display: grid; min-height: 78px; place-items: center; gap: 3px; padding: 8px 4px; border: 1px solid #2a3a4a; border-radius: 10px; background: #0d1823; color: var(--muted); font: inherit; text-align: center; }
.part-tile:hover, .part-tile:focus-visible { border-color: var(--orange); outline: none; }
.part-tile.is-selected { border-color: var(--orange); background: rgba(242,133,35,.14); color: #fff; box-shadow: inset 0 0 0 1px rgba(242,133,35,.28); }
.part-tile-icon { display: grid; width: 25px; height: 25px; place-items: center; color: var(--orange-2); font-size: 21px; line-height: 1; }
.part-tile strong { font-size: 10px; }
.part-tile small { color: #8696a8; font-size: 8px; }
.parts-custom-label { display: block; }
.vehicle-checks { margin-top: 12px; }
.vehicle-check-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
.vehicle-check-grid a, .vehicle-check-disabled { display: grid; min-height: 82px; place-items: center; gap: 3px; padding: 7px 3px; border: 1px solid #2a3a4a; border-radius: 9px; background: #0d1823; color: var(--text); text-align: center; text-decoration: none; font: inherit; }
.vehicle-check-grid a:hover, .vehicle-check-grid a:focus-visible { border-color: var(--orange); outline: none; }
.vehicle-check-grid span { font-size: 19px; }
.vehicle-check-grid strong { font-size: 10px; }
.vehicle-check-grid small { color: var(--muted); font-size: 8px; }
.vehicle-check-disabled { cursor: not-allowed; opacity: .55; }
.subcard-heading { margin-bottom: 12px; }
.subcard-heading strong, .subcard-heading small { display: block; }
.subcard-heading small { margin-top: 4px; color: var(--muted); font-size: 11px; }
.parts-estimator select { width: 100%; margin-top: 6px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 9px; background: #0e1823; color: var(--text); font: inherit; }
.parts-estimate { display: grid; gap: 6px; margin-top: 10px; padding: 10px; border-left: 2px solid var(--orange); background: rgba(242,133,35,.08); }
.parts-estimate strong { color: #fff; }
.parts-estimate small { color: var(--muted); line-height: 1.4; }
.listing-detail { margin-top: 14px; padding-bottom: 18px; }
.listing-detail[hidden] { display: none; }
.detail-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.detail-header h2 { margin: 3px 0; color: #fff; font-size: 23px; line-height: 1.08; }
.detail-header small { color: var(--muted); }
.detail-photo { position: relative; min-height: 230px; display: grid; place-items: center; overflow: hidden; border: 1px solid #2b3b50; border-radius: 14px; background: linear-gradient(135deg, #1b2a3a, #0b1119); }
.detail-photo img { width: 100%; height: 100%; min-height: 230px; object-fit: cover; }
.detail-photo .car-mark { transform: scale(2); }
.detail-badge { position: absolute; top: 12px; left: 12px; padding: 7px 9px; border-radius: 8px; background: #c96b13; color: #fff; font-size: 10px; font-weight: 800; }
.detail-specs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; padding: 12px 5px; border-bottom: 1px solid var(--line); }
.detail-specs span { display: grid; gap: 3px; justify-items: center; color: var(--orange-2); font-size: 16px; text-align: center; }
.detail-specs b { color: var(--text); font-size: 11px; font-weight: 700; }
.detail-specs small { color: var(--muted); font-size: 8px; }
.detail-price { display: flex; align-items: baseline; gap: 9px; padding: 13px 0 8px; }
.detail-price strong { color: var(--orange-2); font-size: 27px; }
.detail-price small { color: var(--muted); font-size: 10px; }
.detail-location { width: 100%; display: flex; align-items: center; gap: 11px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--text); text-align: left; font: inherit; }
.detail-location > span:first-child { color: var(--orange-2); font-size: 25px; }
.detail-location > span:last-child { display: grid; gap: 3px; }
.detail-location small, .detail-location em { color: var(--muted); font-size: 9px; font-style: normal; }
.detail-location strong { font-size: 12px; }
.detail-location em { color: var(--orange-2); }
.detail-time { display: grid; gap: 4px; margin: 10px 2px; color: var(--muted); font-size: 10px; }
.detail-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.detail-actions a, .detail-actions button { min-height: 38px; padding: 9px 5px; font-size: 9px; text-align: center; }
.detail-map { display: grid; gap: 7px; margin-top: 10px; padding: 9px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--muted); font-size: 10px; }
.detail-map iframe { width: 100%; height: 220px; border: 0; border-radius: 8px; }
.detail-map a { color: var(--orange-2); }
.map-meta { display: grid; gap: 3px; }
.map-meta strong { color: var(--text); font-size: 11px; }
.detail-summary { display: grid; gap: 5px; margin-top: 10px; padding: 12px; border: 1px solid #c96b1355; border-radius: 12px; background: rgba(242,133,35,.08); }
.detail-summary strong { color: var(--orange-2); }
.detail-summary p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.field-help { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; }
.parts-live-status { color: var(--orange-2) !important; }
.parts-estimate a { width: fit-content; margin-top: 2px; color: var(--orange-2); }
