:root {
  color-scheme: light;
  --bg: #f5f6f8;
  --paper: #ffffff;
  --paper-2: #fafafa;
  --ink: #222222;
  --muted: #777777;
  --line: #e6e7e9;
  --line-strong: #d5d7da;
  --orange: #ff6a00;
  --orange-hover: #e85e00;
  --orange-soft: #fff3e8;
  --green: #149b5c;
  --green-soft: #eaf8f1;
  --blue: #2878e8;
  --blue-soft: #edf5ff;
  --red: #d94841;
  --red-soft: #fff0ef;
  --amber: #c56a00;
  --amber-soft: #fff7e6;
  --radius: 10px;
  --shadow: 0 4px 18px rgba(40, 45, 55, .07);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", Inter, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body { min-width: 320px; min-height: 100vh; margin: 0; color: var(--ink); background: var(--bg); }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 9px; color: #fff; background: var(--orange); font-size: 1.18rem; font-weight: 900; }
.brand b, .brand small { display: block; line-height: 1.08; }
.brand b { color: var(--ink); font-size: 1.05rem; }
.brand small { margin-top: 4px; color: #999; font-size: .68rem; }
.demo-chip, .data-badge { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border: 1px solid #ffd8b8; border-radius: 6px; color: #a95512; background: var(--orange-soft); font-size: .72rem; font-weight: 700; }
.demo-chip i, .data-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }

/* Homepage */
.market-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.market-header-inner { display: flex; align-items: center; justify-content: space-between; width: min(1180px, calc(100% - 40px)); min-height: 66px; margin: auto; }
.landing { width: min(1120px, calc(100% - 40px)); margin: auto; padding: 52px 0 30px; }
.search-hero { text-align: center; }
.search-intro { max-width: 760px; margin: 0 auto 28px; }
.eyebrow { margin: 0 0 10px; color: var(--orange); font-size: .76rem; font-weight: 800; letter-spacing: .08em; }
.search-intro h1 { margin: 0; font-size: clamp(2.3rem, 5vw, 4.4rem); line-height: 1.18; letter-spacing: -.04em; }
.lead { margin: 14px auto 0; color: var(--muted); font-size: 1rem; line-height: 1.8; }
.search-box { overflow: hidden; max-width: 900px; margin: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); box-shadow: var(--shadow); text-align: left; }
.search-tabs { display: flex; min-height: 50px; border-bottom: 1px solid var(--line); background: #fafafa; }
.search-tab { position: relative; flex: 1; padding: 14px 10px; border: 0; color: #888; background: transparent; font-size: .88rem; font-weight: 700; }
.search-tab.is-active { color: var(--orange); background: #fff; }
.search-tab.is-active::after { content: ""; position: absolute; right: 24%; bottom: 0; left: 24%; height: 3px; border-radius: 2px 2px 0 0; background: var(--orange); }
.upload-entry { display: grid; grid-template-columns: 190px 1fr; align-items: center; gap: 28px; min-height: 250px; padding: 28px; }
.upload-preview { width: 190px; height: 190px; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: #eef1f3; }
.upload-preview img { width: 100%; height: 100%; object-fit: cover; }
.upload-copy { text-align: left; }
.upload-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 8px; color: var(--orange); background: var(--orange-soft); font-size: 1.5rem; }
.upload-copy h2 { margin: 13px 0 7px; font-size: 1.35rem; }
.upload-copy p { margin: 0 0 18px; color: var(--muted); font-size: .88rem; line-height: 1.6; }
.primary-cta, .primary-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 19px; border: 0; border-radius: 7px; color: #fff; background: var(--orange); font-weight: 800; cursor: pointer; transition: background .18s, transform .18s; }
.primary-cta:hover, .primary-btn:hover { background: var(--orange-hover); transform: translateY(-1px); }
.entry-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 900px; margin: 18px auto 0; text-align: left; }
.entry-card { display: flex; align-items: center; gap: 13px; min-height: 88px; padding: 16px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); text-align: left; }
.entry-card > span { display: grid; flex: 0 0 auto; place-items: center; width: 40px; height: 40px; border-radius: 8px; color: #666; background: #f1f2f3; font-weight: 900; }
.entry-card b, .entry-card small { display: block; }
.entry-card b { font-size: .9rem; }
.entry-card small { margin-top: 5px; color: #999; font-size: .72rem; }
.active-entry { border-color: #ffbd88; }
.active-entry > span { color: var(--orange); background: var(--orange-soft); }
.home-disclosure { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; max-width: 900px; margin: 24px auto 0; padding: 12px 16px; border: 1px solid #f1dfc9; border-radius: 8px; color: #80664d; background: #fffaf4; font-size: .74rem; line-height: 1.6; }
.home-disclosure strong { color: #a55c16; }

/* Demo shell */
.demo-body { overflow: hidden; background: #f3f4f6; }
.demo-shell { display: grid; grid-template-columns: 224px minmax(0, 1fr); min-height: 100vh; }
.demo-sidebar { display: flex; flex-direction: column; padding: 20px 15px; border-right: 1px solid var(--line); background: var(--paper); }
.sidebar-meta { margin: 20px 0 14px; padding: 11px; border: 1px solid #f0d9c2; border-radius: 8px; color: #7c5c3b; background: #fff9f2; }
.sidebar-meta strong, .sidebar-meta span { display: block; }
.sidebar-meta strong { color: #a65916; font-size: .7rem; }
.sidebar-meta span { margin-top: 5px; font-size: .7rem; line-height: 1.5; }
.step-nav { display: grid; gap: 3px; }
.step-link { display: grid; grid-template-columns: 27px 1fr; align-items: center; gap: 9px; min-height: 42px; padding: 6px 8px; border: 0; border-radius: 7px; color: #999; background: transparent; text-align: left; cursor: pointer; }
.step-link:hover:not(:disabled) { color: #555; background: #f5f5f5; }
.step-link:disabled { cursor: default; }
.step-link .num { display: grid; place-items: center; width: 25px; height: 25px; border: 1px solid var(--line); border-radius: 5px; color: #999; background: #fff; font-size: .67rem; font-weight: 800; }
.step-link .txt { font-size: .76rem; font-weight: 700; }
.step-link.is-active { color: var(--orange); background: var(--orange-soft); }
.step-link.is-active .num { color: #fff; border-color: var(--orange); background: var(--orange); }
.step-link.is-done { color: #666; }
.step-link.is-done .num { color: var(--green); border-color: #a9dfc4; background: var(--green-soft); }
.sidebar-footer { margin-top: auto; padding: 12px 5px 0; border-top: 1px solid var(--line); color: #999; font-size: .66rem; line-height: 1.55; }
.demo-main { display: flex; flex-direction: column; min-width: 0; height: 100vh; }
.demo-topbar { display: flex; align-items: center; justify-content: space-between; min-height: 64px; padding: 0 24px; border-bottom: 1px solid var(--line); background: var(--paper); }
.case-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.case-title b { font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.case-title span { padding: 5px 8px; border-radius: 5px; color: #777; background: #f3f4f5; font-size: .68rem; }
.stage-wrap { position: relative; flex: 1; min-height: 0; overflow: auto; }
.stage { display: none; width: min(1180px, calc(100% - 40px)); min-height: 100%; margin: 0 auto; padding: 28px 0 96px; animation: stageIn .25s ease both; }
.stage.is-active { display: block; }
@keyframes stageIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.stage-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.stage-kicker { margin: 0 0 7px; color: var(--orange); font-size: .72rem; font-weight: 800; }
.stage h1 { margin: 0; font-size: clamp(1.85rem, 3vw, 2.8rem); line-height: 1.2; letter-spacing: -.035em; }
.stage-sub { max-width: 660px; margin: 8px 0 0; color: var(--muted); font-size: .9rem; line-height: 1.65; }
.stage-note { max-width: 310px; padding: 9px 11px; border-left: 3px solid var(--orange); color: #8a5f36; background: var(--orange-soft); font-size: .7rem; line-height: 1.5; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: 0 2px 10px rgba(35, 40, 50, .04); }
.panel-pad { padding: 18px; }

.demo-grid { display: grid; grid-template-columns: minmax(340px, .92fr) minmax(390px, 1.08fr); gap: 16px; }
.image-panel { position: relative; min-height: 500px; overflow: hidden; background: #e9edef; }
.image-panel img { display: block; width: 100%; height: 100%; min-height: 500px; object-fit: cover; }
.image-label { position: absolute; right: 15px; bottom: 15px; left: 15px; padding: 10px 12px; border-radius: 7px; color: #fff; background: rgba(0, 0, 0, .68); }
.image-label small, .image-label b { display: block; }
.image-label small { font-size: .65rem; }
.image-label b { margin-top: 3px; font-size: .88rem; }
.upload-panel { display: flex; flex-direction: column; justify-content: space-between; min-height: 500px; padding: 28px; }
.upload-panel h2 { max-width: 550px; margin: 0; font-size: clamp(1.75rem, 3vw, 2.8rem); line-height: 1.22; letter-spacing: -.035em; }
.upload-panel p { color: var(--muted); line-height: 1.7; }
.input-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.input-chip { padding: 7px 10px; border: 1px solid var(--line); border-radius: 5px; color: #666; background: #fafafa; font-size: .72rem; }
.input-chip.active { color: #a95613; border-color: #ffd0aa; background: var(--orange-soft); font-weight: 800; }
.disclosure, .replacement-note { padding: 11px 13px; border: 1px solid #f1ddc8; border-radius: 7px; color: #7f6146; background: #fff9f2; font-size: .72rem; line-height: 1.55; }
.disclosure strong, .disclosure span { display: block; }
.action-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; }
.next-hint { color: #888; font-size: .72rem; }
.secondary-btn, .ghost-btn { min-height: 40px; padding: 0 15px; border-radius: 7px; cursor: pointer; font-weight: 700; }
.secondary-btn { border: 1px solid var(--line-strong); background: #fff; }
.secondary-btn:hover { color: var(--orange); border-color: #ffb77d; }
.ghost-btn { border: 0; color: #777; background: transparent; }
.ghost-btn:hover { background: #f4f4f4; }

.bom-layout { display: grid; grid-template-columns: 240px 1fr; gap: 14px; }
.bom-reference { position: relative; min-height: 445px; overflow: hidden; }
.bom-reference img { width: 100%; height: 100%; min-height: 445px; object-fit: cover; }
.bom-reference span { position: absolute; right: 10px; bottom: 10px; left: 10px; padding: 8px; border-radius: 6px; color: #fff; background: rgba(0,0,0,.65); font-size: .72rem; text-align: center; }
.bom-table { overflow: hidden; }
.bom-row { display: grid; grid-template-columns: 32px .72fr 1.6fr 86px 94px; align-items: center; gap: 9px; min-height: 55px; padding: 9px 13px; border-bottom: 1px solid var(--line); }
.bom-row:last-child { border-bottom: 0; }
.bom-row.header { min-height: 40px; color: #888; background: #fafafa; font-size: .66rem; font-weight: 800; }
.bom-row .idx { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 5px; color: var(--orange); background: var(--orange-soft); font-size: .67rem; font-weight: 900; }
.bom-row input { width: 100%; padding: 8px 9px; border: 1px solid transparent; border-radius: 5px; color: #333; background: #fafafa; outline: none; }
.bom-row input:focus { border-color: var(--orange); background: #fff; }
.confidence { display: inline-flex; align-items: center; gap: 5px; color: var(--amber); font-size: .68rem; }
.confidence::before { content: "!"; display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; color: #fff; background: #ee8a19; font-size: .6rem; font-weight: 900; }
.source-pill { padding: 5px 7px; border-radius: 5px; color: var(--blue); background: var(--blue-soft); font-size: .65rem; text-align: center; }
.edit-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin-top: 12px; }
.summary-field { padding: 11px 12px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.summary-field small, .summary-field b { display: block; }
.summary-field small { color: #888; font-size: .66rem; }
.summary-field b { margin-top: 4px; font-size: .82rem; }

.market-map { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.market-card { position: relative; min-height: 190px; padding: 20px; border: 1px solid var(--line); border-top: 3px solid var(--orange); border-radius: 9px; background: #fff; }
.market-card .city { color: #888; font-size: .68rem; }
.market-card h3 { margin: 9px 0 7px; font-size: 1.55rem; }
.market-card p { margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.55; }
.market-card .market-state { position: absolute; right: 16px; bottom: 16px; left: 16px; padding: 7px 8px; border-radius: 5px; color: #9d571b; background: var(--orange-soft); font-size: .66rem; font-weight: 700; }
.search-trace { display: grid; gap: 8px; margin-top: 12px; padding: 15px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.trace-row { display: grid; grid-template-columns: 100px 1fr 120px; align-items: center; gap: 12px; color: #666; font-size: .74rem; }
.trace-bar { height: 6px; overflow: hidden; border-radius: 99px; background: #edf0f2; }
.trace-bar i { display: block; width: var(--w); height: 100%; border-radius: inherit; background: var(--orange); }
.trace-row em { color: #888; font-size: .67rem; font-style: normal; text-align: right; }
.replacement-note { margin-top: 12px; text-align: center; }

.candidate-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.candidate-card { overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: #fff; transition: .18s; }
.candidate-card:hover { border-color: #ffb77d; box-shadow: var(--shadow); }
.candidate-card.is-selected { border: 2px solid var(--orange); }
.swatch { position: relative; height: 128px; overflow: hidden; background-color: #161918; }
.swatch::before { content: ""; position: absolute; inset: 0; }
.swatch-a::before { background: repeating-linear-gradient(44deg,rgba(255,255,255,.07) 0 2px,transparent 2px 5px),repeating-linear-gradient(-44deg,rgba(255,255,255,.04) 0 2px,transparent 2px 5px); }
.swatch-b::before { background: repeating-linear-gradient(90deg,rgba(255,255,255,.07) 0 1px,transparent 1px 4px),repeating-linear-gradient(0deg,rgba(255,255,255,.04) 0 1px,transparent 1px 4px); }
.swatch-c::before { background: linear-gradient(120deg,rgba(75,151,144,.3),transparent 55%),radial-gradient(circle at 25% 35%,rgba(255,255,255,.09),transparent 3px); background-size:auto,16px 16px; }
.swatch-alt1::before { background: repeating-linear-gradient(45deg,rgba(255,255,255,.05) 0 1px,transparent 1px 6px),repeating-linear-gradient(-45deg,rgba(255,255,255,.05) 0 1px,transparent 1px 6px); }
.demo-ribbon { position: absolute; top: 10px; left: 10px; z-index: 2; padding: 5px 7px; border-radius: 4px; color: #a85913; background: #fff2e5; font-size: .62rem; font-weight: 800; }
.candidate-body { padding: 16px; }
.candidate-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.candidate-top small { color: #777; font-size: .68rem; }
.candidate-top h3 { margin: 6px 0 0; font-size: 1rem; line-height: 1.3; }
.price { color: var(--orange); white-space: nowrap; font-size: 1.08rem; font-weight: 900; }
.price small { color: #888; font-size: .63rem; font-weight: 600; }
.spec-list { display: grid; gap: 7px; margin: 15px 0 0; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); list-style: none; }
.spec-list li { display: flex; justify-content: space-between; gap: 10px; color: #888; font-size: .72rem; }
.spec-list b { color: #444; font-weight: 700; text-align: right; }
.good { color: var(--green) !important; }
.warn { color: var(--amber) !important; }
.bad { color: var(--red) !important; }
.card-action { width: 100%; min-height: 38px; margin-top: 13px; border: 1px solid var(--line-strong); border-radius: 6px; background: #fff; cursor: pointer; }
.candidate-card.is-selected .card-action { color: #fff; border-color: var(--orange); background: var(--orange); font-weight: 800; }

.cheaper-hero { display: grid; grid-template-columns: 1fr 160px; align-items: center; gap: 28px; min-height: 260px; padding: 30px; }
.cheaper-hero h2 { max-width: 720px; margin: 0; font-size: clamp(1.8rem, 3.3vw, 3.2rem); line-height: 1.2; letter-spacing: -.04em; }
.cheaper-hero p { color: var(--muted); line-height: 1.65; }
.price-orb { display: grid; place-items: center; width: 150px; height: 150px; border: 8px solid var(--orange-soft); border-radius: 50%; background: #fff; }
.price-orb b { display: block; color: var(--orange); font-size: 2.4rem; text-align: center; }
.price-orb small { display: block; color: #777; font-size: .67rem; text-align: center; }

.baseline-strip { display: grid; grid-template-columns: 100px 1fr auto; align-items: center; gap: 14px; margin-bottom: 12px; padding: 13px 16px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.baseline-strip span { color: #777; font-size: .75rem; }
.baseline-strip b { font-size: .9rem; }
.baseline-strip strong { color: #555; font-size: .92rem; }
.alternative-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.alternative-card { padding: 22px; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: 0 2px 10px rgba(35,40,50,.04); }
.alternative-card.recommended { border: 2px solid var(--orange); }
.alt-heading span, .alt-heading b, .alt-heading strong { display: block; }
.alt-heading span { width: fit-content; padding: 5px 8px; border-radius: 5px; color: #a65813; background: var(--orange-soft); font-size: .67rem; font-weight: 800; }
.alt-heading b { margin-top: 12px; font-size: 1.1rem; }
.alt-heading strong { margin-top: 8px; color: var(--orange); font-size: 1.5rem; }
.saving { margin: 16px 0; padding: 11px; border-radius: 7px; color: var(--green); background: var(--green-soft); font-size: .9rem; font-weight: 800; }
.saving small { color: #60947a; font-weight: 500; }
.trade-points { display: grid; gap: 7px; margin-bottom: 18px; }
.trade-points p { margin: 0; padding: 9px 10px; border-radius: 6px; font-size: .76rem; }
.trade-points .better { color: #11784a; background: var(--green-soft); }
.trade-points .same { color: #4e6583; background: var(--blue-soft); }
.trade-points .worse { color: #a04c16; background: var(--amber-soft); }

.cart-layout { display: grid; grid-template-columns: 1.35fr .65fr; gap: 14px; }
.cart-list { overflow: hidden; }
.supplier-group-title { display: flex; justify-content: space-between; padding: 9px 14px; border-bottom: 1px solid var(--line); color: #555; background: #f7f8f9; font-size: .7rem; }
.supplier-group-title span { color: #a85a18; }
.cart-item { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 13px; padding: 13px 15px; border-bottom: 1px solid var(--line); }
.cart-thumb { width: 64px; height: 52px; border-radius: 6px; background: #151918; }
.cart-item h3 { margin: 0 0 4px; font-size: .84rem; }
.cart-item p { margin: 0; color: #888; font-size: .68rem; }
.cart-qty { text-align: right; }
.cart-qty b, .cart-qty small { display: block; }
.cart-qty small { margin-top: 3px; color: #888; font-size: .64rem; }
.cart-summary { padding: 19px; }
.cart-summary h3, .request-preview h3 { margin: 0 0 14px; }
.summary-line { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); color: #777; font-size: .75rem; }
.summary-line b { color: #333; }
.cart-disclaimer { margin-top: 14px; color: #888; font-size: .68rem; line-height: 1.55; }

.request-layout { display: grid; grid-template-columns: 1fr 320px; gap: 14px; }
.form-panel, .request-preview { padding: 20px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.form-field { display: grid; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { color: #666; font-size: .72rem; }
.form-field input, .form-field textarea, .form-field select { width: 100%; padding: 10px 11px; border: 1px solid var(--line-strong); border-radius: 6px; color: #333; background: #fff; outline: none; }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { border-color: var(--orange); box-shadow: 0 0 0 2px var(--orange-soft); }
.form-field textarea { min-height: 82px; resize: vertical; }
.request-status { display: flex; align-items: center; gap: 11px; padding: 12px; border: 1px solid #ffd2af; border-radius: 7px; background: var(--orange-soft); }
.request-status > span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 6px; color: #fff; background: var(--orange); font-weight: 900; }
.request-status b, .request-status small { display: block; }
.request-status small { margin-top: 3px; color: #9b663e; font-size: .65rem; }
.success-card { display: none; margin-top: 14px; padding: 15px; border: 1px solid #a7dbbf; border-radius: 7px; background: var(--green-soft); }
.success-card.is-visible { display: block; }
.success-card strong { color: var(--green); }
.success-card p { margin: 6px 0 0; color: #527565; font-size: .72rem; line-height: 1.5; }

.pilot-stage { display: flex !important; flex-direction: column; justify-content: center; padding-bottom: 28px; }
.pilot-stage:not(.is-active) { display: none !important; }
.pilot-wrap { padding: 36px; border: 1px solid var(--line); border-top: 5px solid var(--orange); border-radius: 12px; background: #fff; box-shadow: var(--shadow); }
.pilot-tag { display: inline-flex; padding: 6px 9px; border-radius: 5px; color: #a55817; background: var(--orange-soft); font-size: .68rem; font-weight: 800; }
.pilot-wrap h1 { max-width: 900px; margin: 18px 0 9px; font-size: clamp(2.2rem, 4.5vw, 4.5rem); }
.pilot-sub { max-width: 800px; color: #666; line-height: 1.7; }
.pilot-numbers { display: grid; grid-template-columns: 1fr 1fr 1.55fr; gap: 11px; margin-top: 24px; }
.pilot-stat, .pilot-role { padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: #fafafa; }
.pilot-stat b { display: block; color: var(--orange); font-size: 2rem; }
.pilot-stat span { color: #777; font-size: .72rem; }
.pilot-role strong { color: #a75816; font-size: .7rem; }
.pilot-role p { margin: 7px 0 0; color: #555; font-size: .75rem; line-height: 1.6; }
.pilot-objectives { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.pilot-objectives span { padding: 8px 10px; border: 1px solid var(--line); border-radius: 5px; color: #555; background: #fff; font-size: .7rem; }
.vision-line { max-width: 1000px; margin: 26px 0 0; font-size: clamp(1.45rem, 2.8vw, 2.8rem); line-height: 1.25; letter-spacing: -.03em; }
.vision-line em { color: var(--orange); font-style: normal; }

.stage-controls { position: fixed; z-index: 20; right: 22px; bottom: 18px; display: flex; align-items: center; gap: 7px; padding: 6px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255,255,255,.96); box-shadow: 0 8px 26px rgba(40,45,55,.14); }
.stage-controls .step-count { min-width: 52px; color: #888; font-size: .7rem; text-align: center; }
.mobile-progress { display: none; }

@media (max-width: 1020px) {
  .demo-shell { grid-template-columns: 1fr; }
  .demo-sidebar { display: none; }
  .mobile-progress { display: flex; gap: 4px; padding: 8px 16px; border-bottom: 1px solid var(--line); background: #fff; }
  .mobile-progress i { flex: 1; height: 3px; border-radius: 99px; background: #e6e7e9; }
  .mobile-progress i.is-active, .mobile-progress i.is-done { background: var(--orange); }
  .demo-grid, .cart-layout, .request-layout { grid-template-columns: 1fr; }
  .candidate-grid { grid-template-columns: 1fr 1fr; }
  .bom-layout { grid-template-columns: 190px 1fr; }
  .pilot-numbers { grid-template-columns: 1fr 1fr; }
  .pilot-role { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  .market-header-inner, .landing { width: calc(100% - 28px); }
  .market-header .demo-chip { display: none; }
  .landing { padding-top: 32px; }
  .upload-entry { grid-template-columns: 1fr; padding: 18px; text-align: center; }
  .upload-preview { width: 100%; height: 210px; }
  .upload-copy, .upload-copy .primary-cta { text-align: center; }
  .upload-icon { margin: auto; }
  .entry-actions { grid-template-columns: 1fr; }
  .home-disclosure { display: grid; text-align: left; }
  .demo-topbar { min-height: 58px; padding: 0 14px; }
  .case-title span { display: none; }
  .data-badge { max-width: 145px; font-size: .59rem; }
  .stage { width: calc(100% - 24px); padding-top: 20px; }
  .stage-head { display: block; }
  .stage-note { max-width: none; margin-top: 10px; }
  .image-panel, .image-panel img, .upload-panel { min-height: 390px; }
  .bom-layout { grid-template-columns: 1fr; }
  .bom-reference { min-height: 240px; max-height: 240px; }
  .bom-reference img { min-height: 240px; }
  .bom-row { grid-template-columns: 30px 1fr; }
  .bom-row.header { display: none; }
  .bom-row > *:nth-child(n+3) { grid-column: 2; }
  .edit-summary { grid-template-columns: 1fr 1fr; }
  .market-map, .candidate-grid, .alternative-cards { grid-template-columns: 1fr; }
  .trace-row { grid-template-columns: 82px 1fr; }
  .trace-row em { grid-column: 2; text-align: left; }
  .cheaper-hero { grid-template-columns: 1fr; }
  .price-orb { width: 130px; height: 130px; }
  .baseline-strip { grid-template-columns: 1fr; gap: 5px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-field.full { grid-column: auto; }
  .pilot-wrap { padding: 24px 18px; }
  .pilot-numbers { grid-template-columns: 1fr; }
  .pilot-role { grid-column: auto; }
  .stage-controls { right: 12px; bottom: 12px; left: 12px; justify-content: flex-end; }
  .stage-controls .ghost-btn { margin-right: auto; }
}

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