/* Preview scope: approved Stitch world. Existing runtime retains all business rules. */
/* Matching offers reuse the established palette and type scale, not a second storefront. */
.matched-offer { margin: 28px 0 0; padding: 26px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-soft); text-align: left; }
#primary-offer { width: 100%; max-width: 620px; margin-inline: auto; }
.sale-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.sale-eyebrow { margin: 0 0 8px; color: var(--color-primary); font-size: 15px; font-weight: 600; }
.sale-heading h4 { margin: 0; font-size: 24px; line-height: 1.4; letter-spacing: -.02em; }
.sale-price { flex-shrink: 0; font-size: 34px; font-weight: 650; line-height: 1.2; letter-spacing: -.025em; }
.sale-shortcut { display: flex; align-items: center; justify-content: center; width: fit-content; max-width: 100%; min-height: 48px; margin: 0 auto 24px; padding: 10px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--color-primary); font: inherit; font-size: 17px; font-weight: 600; line-height: 1.5; cursor: pointer; }
.sale-shortcut:hover { border-color: var(--color-primary); background: var(--color-primary-soft); }
.selection-result > .sale-shortcut { margin: 18px 0 24px; }
.matched-offer { scroll-margin-top: 20px; }
@media (min-width: 900px) {
  .matched-offer { scroll-margin-top: 82px; }
}
.sale-accessories, .sale-note { margin: 16px 0 0; font-size: 17px; line-height: 1.7; }
.sale-note, .sale-delivery { color: var(--muted); }
.sale-delivery { margin: 18px 0 12px; font-size: 14px; line-height: 1.6; }
.sale-assurance { margin: 20px 0 0; }
.sale-assurance-tags { display: flex; flex-wrap: wrap; gap: 8px 16px; list-style: none; padding: 0; margin: 0; color: var(--ink); font-size: 16px; font-weight: 600; }
.sale-assurance-tags li::before { content: "✓"; color: var(--mint-ink); margin-right: 6px; }
.sale-freight { margin: 10px 0 0; font-size: 15px; line-height: 1.6; color: var(--muted); }
.sale-policy { margin-top: 8px; font-size: 15px; line-height: 1.7; }
.sale-policy summary { min-height: 44px; display: list-item; padding: 10px 0; color: var(--color-primary); cursor: pointer; }
.sale-policy ul { margin: 4px 0 12px; padding-left: 20px; }
.sale-policy li + li { margin-top: 10px; }
.sale-policy p { margin: 0 0 12px; color: var(--muted); font-size: 13px; }
.sale-buy { display: flex; justify-content: center; align-items: center; gap: 8px; min-height: 54px; padding: 12px 16px; border-radius: 12px; background: var(--color-primary); color: var(--surface); text-decoration: none; font-size: 18px; font-weight: 600; line-height: 1.5; text-align: center; }
.sale-buy:hover { background: var(--color-primary-deep); }
.sale-find { margin-top: 14px; }
.sale-find > p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted); }
.sale-find > .sale-find-name { margin-top: 5px; color: var(--ink); user-select: text; overflow-wrap: anywhere; }
.sale-copy-row { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; margin-top: 6px; }
.sale-copy { min-height: 44px; padding: 8px 0; border: 0; background: transparent; color: var(--color-primary); font: inherit; font-size: 16px; cursor: pointer; }
.sale-copy-status { color: var(--ink); font-size: 14px; line-height: 1.6; }
.sale-alternatives { margin-top: 20px; border-top: 1px solid var(--line); }
.sale-alternatives > summary { min-height: 48px; padding: 16px 0 4px; color: var(--color-primary); font-size: 16px; cursor: pointer; }
.sale-alternatives .sale-product { margin-top: 18px; }
.has-matched-offer > .price-row > div:nth-child(2) { display: none; }
.recommendation-card.has-matched-offer > .price-row .text-button { background: transparent; color: var(--color-primary); border: 1px solid var(--line-strong); }
@media (max-width: 699px) {
  .matched-offer { padding: 20px 16px; margin-top: 24px; }
  .sale-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
  .sale-heading h4 { font-size: 23px; }
  .sale-price { font-size: 34px; }
  .sale-accessories, .sale-note { font-size: 16px; }
  .sale-assurance-tags { gap: 8px 12px; font-size: 15px; }
}
:root {
  --canvas: #f5f5f7;
  --surface: #fff;
  --surface-soft: #f5f5f7;
  --ink: #1d1d1f;
  --muted: #616169;
  --color-primary: #0066cc;
  --color-primary-deep: #0054a8;
  --color-primary-soft: #edf5ff;
  --color-surface: #f5f5f7;
  --color-surface-raised: #fff;
  --color-ink: #1d1d1f;
  --color-muted: #616169;
  --rose: #0066cc;
  --rose-deep: #0066cc;
  --rose-soft: #edf5ff;
  --line: #e4e4e8;
  --line-strong: #b9b9c0;
  --mint-ink: #146747;
  --mint-soft: #eaf6ef;
  --gradient-brand: #0066cc;
  --gradient-brand-soft: #f5f5f7;
  --gradient-selected: #edf5ff;
  --shadow: 0 14px 38px rgb(29 29 31 / 6%);
  --shadow-soft: 0 6px 20px rgb(29 29 31 / 5%);
  --radius: 16px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Microsoft YaHei", sans-serif;
  --preview-ease: cubic-bezier(.16, 1, .3, 1);
}
html { background: var(--canvas); scroll-padding-top: 20px; }
.navigation-back { position: fixed; z-index: 30; inset-inline-start: 16px; bottom: calc(88px + env(safe-area-inset-bottom, 0px)); display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 10px 16px 10px 10px; border: 0; border-radius: 12px; background: var(--surface); color: var(--color-primary); box-shadow: 0 6px 24px rgb(29 29 31 / 14%); font-size: 17px; line-height: 1.5; font-weight: 600; cursor: pointer; }
.navigation-back svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.navigation-back:hover { background: var(--color-primary-soft); }
.navigation-back:disabled { color: var(--muted); cursor: wait; }
.navigation-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
body:has(.navigation-back:not([hidden])) .site-shell { padding-bottom: calc(160px + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 900px) {
  .navigation-back { inset-inline-start: 24px; bottom: 24px; }
  body:has(.navigation-back:not([hidden])) .site-shell { padding-bottom: 104px; }
}
body { background: var(--canvas); color: var(--ink); font-size: 18px; line-height: 1.65; }
button, input, select { font-family: var(--font); }
a, .text-button, .help-link { color: var(--color-primary); }
[hidden] { display: none !important; }
button:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 3px solid #0066cc; outline-offset: 4px;
}
.site-shell { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
.topbar { width: 100%; max-width: none; padding: 18px max(24px, calc((100vw - 1040px) / 2)); background: #fff; border-bottom: 1px solid var(--line); box-shadow: none; border-radius: 0; }
.topbar .profile-lockup { gap: 12px; }
.topbar .avatar { width: 40px; height: 40px; border-radius: 50%; }
#profile-shop-name { color: var(--ink); font-size: 18px; font-weight: 650; line-height: 1.45; letter-spacing: 0; }
.profile-name, .profile-copy-button { font-size: 12px; line-height: 1.4; }
.profile-meta-row { gap: 8px; }
.profile-link { min-height: 44px; border: 0; background: var(--surface-soft); padding: 10px 16px; font-size: 15px; color: var(--ink); border-radius: 24px; }
main { width: min(100% - 48px, 1040px); max-width: none; margin: 0 auto; padding-top: 0; }
.page { padding-top: 0; }
.page[data-page="match"] { display: flex; flex-direction: column; }
.skip-link:not(:focus) { clip-path: inset(100%); }
.intro-band { display: flex; flex-direction: column; align-items: center; gap: 0; margin: 0; padding: 64px 0 44px; min-height: 0; border: 0; background: none; box-shadow: none; overflow: visible; }
.intro-copy { text-align: center; width: 100%; }
.intro-copy h1 { font-size: clamp(44px, 6vw, 72px); line-height: 1.14; font-weight: 700; letter-spacing: -.03em; margin: 0; text-wrap: balance; }
.intro-copy h1 > span { display: block; }
.intro-copy h1 .compact-title-tail { color: var(--ink); white-space: normal; }
.intro-copy > p { margin: 22px auto 0; font-size: 20px; line-height: 1.6; color: var(--muted); max-width: 32ch; }
.keynote-art { margin: 42px 0 0; width: min(100%, 880px); transform-origin: center 70%; }
.keynote-art img { display: block; width: 100%; height: auto; object-fit: contain; }
.selection-modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0 0 22px; }
.selection-modes button { position: relative; min-height: 110px; padding: 24px; border: 0; border-radius: 16px; background: #fff; color: var(--ink); box-shadow: none; transition: background 200ms, transform 260ms var(--preview-ease); }
.selection-modes strong { font-size: 21px; line-height: 1.4; font-weight: 650; }
.selection-modes span { color: var(--muted); margin-top: 5px; font-size: 16px; }
.selection-modes button::after { content: ""; position: absolute; right: 24px; top: 50%; width: 8px; height: 8px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); }
.selection-modes [aria-pressed="true"] { background: #edf5ff; color: var(--color-primary); border: 0; box-shadow: inset 0 0 0 2px #0066cc; }
.selection-modes [aria-pressed="true"] strong { color: var(--color-primary); }
.identify-panel { border: 0; padding: 20px 24px; background: #fff; border-radius: 16px; margin-bottom: 28px; }
.identify-panel > summary { font-size: 18px; color: var(--color-primary); font-weight: 550; }
.identify-panel > p { font-size: 17px; }
.query-panel { margin: 0; padding: 36px; border: 0; border-radius: 16px; background: #fff; box-shadow: none; overflow: visible; }
.query-overview { margin: 0 0 12px; }
.step-count { font-size: 16px; color: var(--muted); }
.progress-dot { background: #e4e4e8; }
.progress-dot.is-current, .progress-dot.is-complete { background: #0066cc; box-shadow: none; }
.query-prompt h2 { margin: 0 0 8px; font-size: 32px; line-height: 1.3; }
.query-prompt p { font-size: 17px; color: var(--muted); }
.query-status { font-size: 15px; line-height: 1.6; margin: 18px 0 0; color: var(--muted); }
.query-steps { grid-template-columns: 1fr; gap: 0; margin-top: 16px; }
.flow-panel, .flow-panel.is-current, .flow-panel.is-complete, .flow-panel.is-locked { grid-column: auto; padding: 22px 0; border: 0; border-radius: 0; border-bottom: 1px solid var(--line); opacity: 1; box-shadow: none; background: none; transition: none; }
.flow-panel-heading { display: flex; align-items: center; gap: 12px; font-size: 19px; font-weight: 600; margin-bottom: 16px; }
.flow-panel-heading small { margin-left: auto; color: var(--muted); font-size: 14px; font-weight: 450; }
.flow-step-number, .flow-panel.is-current .flow-step-number { width: 28px; height: 28px; display: inline-grid; place-items: center; font-size: 14px; color: #fff; background: var(--color-primary); border-radius: 50%; box-shadow: none; }
.flow-panel.is-complete .flow-step-number { color: var(--color-primary); background: #edf5ff; }
.flow-panel.is-locked .flow-step-number { color: var(--muted); background: var(--surface-soft); }
.flow-panel.is-locked { padding: 18px 0; color: var(--muted); }
.flow-panel.is-locked .flow-panel-heading { margin: 0; }
.flow-panel.is-locked .field, .flow-panel.is-locked .purpose-heading, .flow-panel.is-locked .segmented { display: none; }
.flow-panel .field { gap: 10px; }
.flow-panel .field > span { font-size: 16px; color: var(--muted); line-height: 1.6; }
.field select, .flow-panel .field select, .selection-field select, .selection-field input { min-height: 54px; border: 1px solid var(--line-strong); border-radius: 12px; padding: 12px 16px; font-size: 18px; color: var(--ink); background-color: #fff; box-shadow: none; }
.flow-panel.is-current .field select:not(:disabled) { border-color: #0066cc; box-shadow: none; }
.purpose-heading span { font-size: 18px; }
.purpose-heading small { font-size: 13px; }
.purpose-panel .segmented { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.purpose-panel .segment { min-height: 52px; font-size: 16px; padding: 10px; border-radius: 12px; border-color: var(--line); background: var(--surface-soft); }
.segment[aria-pressed="true"] { color: var(--color-primary); background: #edf5ff; border-color: #0066cc; box-shadow: none; }
.primary-button, .query-panel #query-button { margin-top: 28px; min-height: 56px; padding: 14px 24px; background: #0066cc; color: #fff; font-size: 19px; font-weight: 600; border: 0; border-radius: 12px; box-shadow: none; transition: background 180ms, transform 220ms var(--preview-ease); }
.primary-button:not(:disabled):hover { background: #0054a8; }
.primary-button:disabled { color: #616169; background: #ededf0; opacity: 1; cursor: not-allowed; }
.helper-copy { font-size: 14px; color: var(--muted); margin: 12px 0 0; }
.selection-panel { background: #fff; border: 0; border-radius: 16px; padding: 36px; margin-top: 0; }
.selection-panel > h2 { font-size: 32px; }
.selection-field { font-size: 17px; gap: 10px; }
.selection-form-grid { gap: 20px; }
.selection-preferences { border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 22px 0; }
.selection-price-note { font-size: 15px; }
.selection-summary { gap: 18px; background: var(--surface-soft); border: 0; border-radius: 12px; padding: 18px; margin: 0 0 28px; }
.selection-summary-copy, #selection-summary-copy { font-size: 17px; line-height: 1.6; }
.selection-result { border: 0; padding-top: 0; margin-top: 0; }
.selection-result > h2 { font-size: 36px; }
.selection-primary { padding: 0; margin: 28px 0; border: 0; border-radius: 0; background: none; }
.selection-card-body h3 { font-size: 30px; letter-spacing: -.02em; }
.selection-pen { font-size: 22px; color: var(--color-primary); }
.selection-photo { padding: 36px 4px; margin: 16px 0 0; background: #fff; }
.selection-photo img { display: block; width: 100%; height: auto; max-height: 80px; object-fit: contain; }
.selection-photo figcaption { margin-top: 22px; text-align: center; font-size: 13px; color: var(--muted); }
.selection-reasons { font-size: 18px; }
.selection-detail { padding: 20px 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; }
.selection-alternative { padding: 20px; border: 0; background: var(--surface-soft); border-radius: 12px; }
.selection-actions .outline-button { background: #0066cc; color: #fff; border: 0; }
.result-section { position: relative; margin: 32px auto 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; scroll-margin-top: 20px; }
.page[data-page="match"].has-preview-result .intro-band { display: none; }
.page[data-page="match"].has-preview-result > .selection-modes { order: 5; margin-top: 28px; }
.page[data-page="match"].has-preview-result > .identify-panel { order: 6; margin-top: 0; }
.page[data-page="match"].has-preview-result { padding-top: 32px; }
.result-bridge { padding: 22px 24px; margin: 0 0 30px; display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 14px; border: 0; border-radius: 16px; background: #fff; }
.result-bridge-icon { background: var(--surface-soft); color: var(--muted); border-radius: 8px; }
.result-bridge-copy strong { color: var(--muted); font-size: 14px; font-weight: 450; }
#result-choice-summary { color: var(--ink); font-size: 18px; line-height: 1.55; overflow: visible; white-space: normal; text-overflow: clip; }
.result-choice-purpose { white-space: nowrap; }
.result-edit-button { background: transparent; color: #0066cc; border: 0; padding: 10px 4px; font-size: 17px; }
.result-heading { display: flex; flex-direction: column; align-items: center; gap: 14px; margin: 0 0 16px; text-align: center; }
.result-heading h2 { font-size: clamp(32px, 4.8vw, 52px); line-height: 1.24; font-weight: 700; letter-spacing: -.025em; text-wrap: balance; word-break: keep-all; margin: 0; padding: 0; }
.result-count { background: #edf5ff; color: #0066cc; border: 0; border-radius: 20px; padding: 8px 14px; font-size: 15px; }
.result-summary { max-width: 42ch; font-size: 19px; line-height: 1.65; margin: 0 auto 28px; text-align: center; }
.decision-stroke { color: #0066cc; max-height: 7px; }
.recommendation-card { padding: 36px; border: 0; border-radius: 16px; background: #fff; box-shadow: none; }
.recommendation-card .card-topline { flex-wrap: wrap; justify-content: center; gap: 10px 16px; }
.status-chip.status-good { color: #146747; background: #eaf6ef; border: 0; border-radius: 20px; padding: 7px 12px; }
.recommendation-card .card-note { font-size: 16px; color: var(--muted); }
.recommendation-card .product-row, .alternative-card .product-row { display: flex; flex-direction: column-reverse; align-items: stretch; margin: 24px 0; gap: 0; }
.recommendation-card .product-copy h3 { font-size: 30px; font-weight: 650; letter-spacing: -.02em; text-wrap: balance; }
.recommendation-card .product-copy p { font-size: 16px; margin-top: 8px; color: var(--muted); }
.recommendation-card .product-copy { text-align: center; }
.recommendation-card .product-thumb, .alternative-card .product-thumb { display: block; position: relative; width: 100%; height: auto; aspect-ratio: auto; min-height: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; overflow: visible; }
.recommendation-card .product-thumb::before, .recommendation-card .product-thumb::after, .recommendation-card .product-thumb > span,
.alternative-card .product-thumb::before, .alternative-card .product-thumb::after, .alternative-card .product-thumb > span { display: none; }
.product-photo { margin: 0; padding: 44px 0 24px; }
.product-photo img { display: block; width: 100%; height: auto; max-height: 100px; object-fit: contain; }
.product-image-fallback { padding: 20px; border-radius: 12px; background: var(--surface-soft); text-align: center; }
.product-image-fallback p { margin: 0 0 12px; font-size: 16px; line-height: 1.6; color: var(--muted); }
.product-image-retry { min-height: 48px; padding: 10px 16px; border: 1px solid var(--line-strong); border-radius: 12px; color: var(--color-primary); background: var(--surface); font: inherit; cursor: pointer; }
.product-image-retry:disabled { color: var(--muted); cursor: wait; }
.product-photo figcaption { color: var(--muted); font-size: 13px; margin: 24px 0 0; text-align: center; }
.recommendation-card .product-photo { width: 100%; max-width: 620px; margin-inline: auto; padding: 32px 0 12px; }
.recommendation-card .reason-block-primary, .recommendation-card .result-facts, .recommendation-card .price-row { width: 100%; max-width: 620px; margin-inline: auto; }
.reason-block-primary .reason-label { color: var(--ink); font-size: 17px; }
.reason-block-primary .plain-explain { margin-top: 8px; font-size: 19px; line-height: 1.7; color: var(--muted); }
.result-facts { margin-top: 24px; }
.result-facts .fact-grid-core { display: grid; grid-template-columns: 1fr; gap: 0; border-radius: 12px; background: var(--surface-soft); padding: 8px 20px; }
.result-facts .fact-tile-core { min-height: 0; display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; align-items: center; padding: 15px 0; border: 0; border-radius: 0; background: none; }
.result-facts .fact-tile-core + .fact-tile-core { border-top: 1px solid var(--line); }
.result-facts .fact-tile-core .fact-label { font-size: 16px; color: var(--muted); }
.result-facts .fact-tile-core .fact-value { margin: 0; font-size: 18px; font-weight: 600; line-height: 1.55; color: var(--ink); text-align: left; }
.fact-more { border-top: 0; }
.fact-more > summary { color: #0066cc; }
.fact-more-summary { color: var(--muted); }
.price-row { padding: 24px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.price-row > div > span { color: var(--muted); font-size: 15px; }
.price-row > div > strong { color: var(--ink); font-size: 24px; }
.price-row > div:first-child { order: 2; display: flex; align-items: baseline; gap: 12px; }
.price-row > div:first-child > strong { font-size: 16px; color: var(--muted); font-weight: 450; }
.price-row > div:nth-child(2) { order: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; }
.price-row > div:nth-child(2) > strong { font-size: 30px; }
.price-row .text-button { order: 1; grid-column: 1 / -1; width: 100%; justify-self: stretch; justify-content: center; min-height: 56px; padding: 14px 20px; border: 0; border-radius: 12px; font-size: 19px; background: #0066cc; color: #fff; }
.recommendation-card .price-row > div { justify-content: center; text-align: center; }
.alternative-card { margin-top: 22px; background: #fff; border: 0; border-radius: 16px; box-shadow: none; }
.alternative-summary { padding: 22px 24px; }
.alternative-summary strong { font-size: 19px; }
.alternative-summary small { font-size: 15px; }
.alternative-body { padding: 0 24px 26px; }
.trust-strip { padding: 20px 0; border: 0; background: none; border-radius: 0; font-size: 14px; color: var(--muted); }
.outline-button { min-height: 48px; border: 1px solid var(--line-strong); border-radius: 12px; box-shadow: none; font-size: 17px; }
.page-header { padding-top: 52px; }
.page-header h1 { font-size: clamp(34px, 4.5vw, 52px); color: var(--ink); letter-spacing: -.025em; }
.page-header > p { font-size: 18px; }
.bottom-nav { width: 100%; max-width: none; left: 0; right: 0; bottom: 0; transform: none; padding: 8px max(16px, calc((100vw - 520px) / 2)) calc(8px + env(safe-area-inset-bottom, 0px)); border: 0; border-top: 1px solid var(--line); border-radius: 0; background: #fff; backdrop-filter: none; box-shadow: none; }
.bottom-nav.is-hidden { transform: translateY(110%); }
.nav-item { min-width: 0; min-height: 56px; padding: 5px 4px; color: var(--muted); border-radius: 12px; font-size: 13px; }
.nav-item.is-active { color: #0066cc; }
.nav-motion-track { background: #edf5ff; border-radius: 12px; box-shadow: none; }
.nav-item [data-icon] { width: 23px; height: 23px; }
.selection-source { font-size: 14px; }
.preview-safety-entry { width: 100%; display: flex; align-items: center; gap: 16px; margin-top: 22px; padding: 22px 24px; border: 0; border-radius: 16px; background: #fff; color: var(--ink); text-align: left; }
.preview-safety-entry strong { display: block; font-size: 18px; font-weight: 600; }
.preview-safety-entry small { display: block; margin-top: 5px; font-size: 15px; color: var(--muted); }
.preview-safety-entry [data-icon] { flex-shrink: 0; width: 22px; height: 22px; color: var(--muted); }
.preview-safety-entry [data-icon]:last-child { margin-left: auto; }
.selection-result .preview-safety-entry { background: var(--surface-soft); }
.selection-panel.has-selection-result { width: 100%; background: #fff; border-radius: 16px; padding: 30px; }
.selection-panel.has-selection-result .selection-summary { padding: 20px; }
@media (min-width: 900px) {
  .intro-band { padding-top: 42px; padding-bottom: 32px; }
  .intro-copy h1 { font-size: 60px; }
  .keynote-art { width: min(100%, 660px); margin-top: 28px; }
}
@media (hover: hover) {
  .selection-modes button:hover { transform: translateY(-3px); background: #edf5ff; }
  .text-button:hover, .result-edit-button:hover { text-decoration: underline; }
}
@media (min-width: 900px) {
  .site-shell { display: flex; flex-direction: column; padding-bottom: 64px; }
  .topbar { order: 0; }
  .bottom-nav { order: 1; position: sticky; top: 0; z-index: 10; display: flex; justify-content: center; padding: 6px 24px; border-top: 0; border-bottom: 1px solid var(--line); }
  .nav-item { flex: 0 1 168px; display: flex; flex-direction: row; gap: 10px; min-height: 48px; justify-content: center; font-size: 16px; }
  main { order: 2; }
  .result-section { scroll-margin-top: 82px; }
  .page[data-page="match"].has-preview-result { max-width: 800px; margin: 0 auto; padding-top: 40px; }
}
@media (max-width: 699px) {
  main { width: calc(100% - 32px); }
  .topbar { padding: 10px 16px; gap: 8px; min-height: 0; }
  .topbar .profile-lockup { gap: 9px; min-width: 0; }
  .topbar .avatar { width: 32px; height: 32px; flex-shrink: 0; }
  #profile-shop-name { font-size: 15px; letter-spacing: -.015em; }
  .profile-link { font-size: 13px; padding: 9px 10px; min-height: 40px; white-space: nowrap; }
  .profile-meta-row { flex-wrap: wrap; }
  .profile-name { margin: 0; }
  .profile-proof { margin: 2px 0 0; line-height: 1.3; }
  .intro-band { padding: 26px 0 22px; }
  .intro-copy h1 { font-size: clamp(38px, 11vw, 44px); line-height: 1.14; }
  .intro-copy > p { font-size: 18px; line-height: 1.5; margin-top: 14px; max-width: 24ch; }
  .keynote-art { margin-top: 22px; width: min(100%, 240px); }
  .selection-modes { grid-template-columns: 1fr; gap: 10px; margin-bottom: 16px; }
  .selection-modes button { padding: 14px 22px; min-height: 76px; }
  .selection-modes strong { font-size: 20px; }
  .selection-modes span { font-size: 16px; line-height: 1.3; margin-top: 2px; }
  .identify-panel { padding: 14px 20px; margin-bottom: 22px; }
  .identify-panel > summary { font-size: 17px; }
  .query-panel, .selection-panel { padding: 26px 22px; }
  .selection-panel.has-selection-result { padding: 22px; }
  .query-prompt h2, .selection-panel > h2 { font-size: 27px; }
  .query-prompt p, .selection-panel > p { font-size: 17px; }
  .flow-panel-heading { font-size: 18px; gap: 10px; }
  .purpose-heading { flex-direction: column; align-items: start; gap: 7px; }
  .purpose-panel .segmented { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .selection-form-grid { grid-template-columns: 1fr; }
  .selection-summary { flex-wrap: wrap; gap: 10px; }
  .selection-result > h2 { font-size: 30px; }
  .selection-card-body h3 { font-size: 26px; }
  .result-section { margin-top: 0; scroll-margin-top: 16px; }
  .result-bridge { grid-template-columns: minmax(0, 1fr); padding: 18px 20px; gap: 8px 12px; margin-bottom: 26px; }
  .result-bridge-icon { display: none; }
  .result-bridge-copy { gap: 5px; }
  #result-choice-summary { font-size: 17px; }
  .result-edit-button { font-size: 16px; justify-self: start; }
  .result-heading { gap: 12px; }
  .result-heading h2 { font-size: clamp(29px, 8.2vw, 36px); line-height: 1.3; }
  .result-count { display: inline-block; margin-top: 0; font-size: 14px; }
  .result-summary { font-size: 18px; margin: 0 auto 22px; }
  .recommendation-card { padding: 24px 22px; }
  .recommendation-card .product-copy h3 { font-size: 26px; }
  .recommendation-card .card-note { font-size: 15px; }
  .product-photo { padding: 38px 0 22px; }
  .recommendation-card .product-photo { padding: 26px 0 10px; }
  .product-photo figcaption { margin-top: 20px; }
  .reason-block-primary .plain-explain { font-size: 18px; }
  .result-facts .fact-grid-core { padding: 5px 16px; }
  .result-facts .fact-tile-core { grid-template-columns: 82px minmax(0, 1fr); gap: 12px; }
  .result-facts .fact-tile-core .fact-label { font-size: 15px; }
  .result-facts .fact-tile-core .fact-value { font-size: 17px; }
  .price-row > div > strong { font-size: 23px; }
  .alternative-summary { padding: 20px 22px; }
  .alternative-summary strong { font-size: 18px; }
  .page-header { padding-top: 34px; }
}
@media (max-width: 359px) {
  .topbar .avatar { display: none; }
  .topbar { padding: 12px; }
  #profile-shop-name { font-size: 14px; }
  .profile-copy-button { padding: 4px; }
  .bottom-nav { padding-left: 8px; padding-right: 8px; }
  .nav-item { font-size: 12px; }
  .query-panel, .selection-panel, .recommendation-card { padding-left: 18px; padding-right: 18px; }
  .result-bridge { grid-template-columns: 1fr; }
  .result-edit-button { justify-self: start; }
}
/* Four supporting surfaces inherit the confirmed world; each has its own reading order. */
.page:not([data-page="match"]) { max-width: 1000px; margin-inline: auto; padding-bottom: 40px; }
.page:not([data-page="match"]) .page-header { padding: 54px 0 0; margin: 0 0 32px; }
.page:not([data-page="match"]) .page-header h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.18; letter-spacing: -.025em; text-wrap: balance; }
.page:not([data-page="match"]) .page-header p { max-width: 48ch; font-size: 19px; line-height: 1.65; margin: 20px 0 0; }
.page:not([data-page="match"]) .notice-box { padding: 20px 0; border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; font-size: 17px; line-height: 1.7; }
.page[data-page="avoid"], .page[data-page="faq"] { max-width: 820px; }
.page[data-page="avoid"] .section-heading { margin: 48px 0 18px; align-items: center; }
.page[data-page="avoid"] .section-heading h2 { font-size: 28px; line-height: 1.4; letter-spacing: -.02em; }
.risk-banner { padding: 28px; border: 0; border-radius: 16px; background: var(--color-primary-soft); box-shadow: none; gap: 20px; }
.risk-icon { background: transparent; color: var(--color-primary); }
.risk-banner strong { font-size: 20px; }
.risk-banner p { font-size: 20px; color: var(--ink); line-height: 1.6; margin-top: 8px; }
.avoid-gates { display: block; margin: 0; background: var(--surface); border-radius: 16px; padding: 0 28px; }
.avoid-gate, .avoid-gate[open] { border: 0; border-bottom: 1px solid var(--line); background: transparent; border-radius: 0; box-shadow: none; }
.avoid-gate:last-child { border-bottom: 0; }
.avoid-gate summary { grid-template-columns: 32px minmax(0, 1fr) 12px; padding: 24px 0; gap: 16px; min-height: 100px; }
.avoid-gate .gate-icon { width: 32px; height: 32px; background: transparent; color: var(--color-primary); }
.gate-copy strong { font-size: 22px; font-weight: 600; line-height: 1.4; }
.gate-copy small { font-size: 17px; line-height: 1.5; margin-top: 4px; }
.gate-detail { border: 0; padding: 0 0 26px 48px; }
.gate-detail p { font-size: 18px; line-height: 1.75; margin: 0 0 12px; }
.page[data-page="avoid"] .help-link { font-size: 17px; min-height: 44px; line-height: 1.5; padding: 10px 0; }
.receipt-checklist { margin-top: 0; scroll-margin-top: 88px; }
.checklist-details { padding: 0 28px; border: 0; border-radius: 16px; margin-top: 0; }
.checklist-details summary { min-height: 78px; padding: 22px 0; font-size: 20px; font-weight: 600; }
.checklist-steps { gap: 0; padding: 0 0 0 28px; border: 0; }
.checklist-steps li { padding: 20px 0 20px 8px; border-top: 1px solid var(--line); }
.checklist-steps li::marker { font-size: 20px; font-weight: 600; color: var(--color-primary); }
.checklist-steps strong { font-size: 20px; font-weight: 600; }
.checklist-steps p, .checklist-outcome p { font-size: 18px; line-height: 1.75; margin: 8px 0 0; }
.checklist-outcome { border: 0; border-radius: 0; border-top: 1px solid var(--line); background: transparent; padding: 24px 0 28px; margin: 0; }
.checklist-outcome strong { color: var(--ink); font-size: 20px; }
.case-list { margin-top: 0; border-top: 1px solid var(--line); }
.case-item summary { padding: 24px 0; font-size: 19px; font-weight: 550; gap: 16px; line-height: 1.6; }
.case-dot { width: 6px; height: 6px; background: var(--color-primary); }
.case-copy { padding: 0 0 24px 22px; }
.case-copy p { font-size: 18px; line-height: 1.75; margin: 0 0 12px; }
.page[data-page="avoid"] > .primary-button { max-width: 420px; margin-top: 32px; }
.page[data-page="faq"] .search-field { border: 1px solid var(--line-strong); padding: 16px 20px; border-radius: 12px; min-height: 60px; }
.page[data-page="faq"] .search-field input { font-size: 19px; }
.search-field input::placeholder { color: var(--muted); opacity: 1; }
.help-shortcuts { gap: 8px 20px; margin: 18px 0 28px; }
.help-shortcuts > span { flex-basis: 100%; font-size: 16px; }
.help-shortcuts button { font-size: 18px; font-weight: 550; text-decoration: none; }
.help-filters { grid-template-columns: repeat(4, minmax(0, 1fr)); background: #eaeaec; padding: 5px; border-radius: 12px; }
.help-filters button { font-size: 16px; border-radius: 9px; min-height: 48px; color: #515159; }
.help-filters [aria-pressed="true"] { box-shadow: 0 2px 6px rgb(29 29 31 / 8%); background: var(--surface); color: var(--color-primary); }
.help-result-count { font-size: 16px; margin: 24px 0 14px; }
.faq-list .help-issue > summary { padding: 26px 0; font-size: 21px; line-height: 1.6; gap: 20px; }
.faq-list .help-issue[open] { border: 0; border-bottom: 1px solid var(--line); background: var(--surface); border-radius: 16px; margin-bottom: 12px; }
.faq-list .help-issue[open] > summary { padding: 24px 28px; background: transparent; border-radius: 0; }
.faq-list .help-answer { padding: 0 28px 32px; max-width: 74ch; }
.faq-list .help-answer .help-conclusion { font-size: 21px; line-height: 1.65; margin: 4px 0 28px; }
.guide-figure { margin: 24px 0; }
.guide-zoom { background: var(--surface-soft); border: 0; border-radius: 12px; }
.guide-figure figcaption, .help-source { font-size: 14px; color: var(--muted); line-height: 1.65; }
.help-steps { font-size: 18px; line-height: 1.8; }
.help-next, .help-related button { font-size: 17px; }
.faq-empty { font-size: 18px; padding: 28px 0; }
.compare-overview { margin: 30px 0 36px; }
.compare-overview table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.compare-overview caption { text-align: left; font-size: 24px; font-weight: 600; margin-bottom: 18px; }
.compare-overview th, .compare-overview td { border-bottom: 1px solid var(--line); text-align: center; padding: 16px 8px; font-size: 18px; font-weight: 450; }
.compare-overview th, .compare-overview td { line-height: 1.5; }
.compare-overview th:first-child { text-align: left; color: var(--muted); width: 22%; }
.compare-overview button { padding: 10px 2px; min-height: 44px; width: 100%; border: 0; background: none; color: var(--color-primary); font: inherit; font-weight: 600; cursor: pointer; }
.compare-overview p { margin: 14px 0 0; font-size: 16px; color: var(--muted); }
.compare-grid { gap: 24px; }
.compare-card { padding: 32px; border: 0; border-radius: 16px; background: var(--surface); scroll-margin-top: 88px; }
.compare-card .compare-pencil { height: auto; padding: 40px 0 24px; margin: 0; width: 100%; background: transparent; border-radius: 0; }
.compare-pencil img { width: 100%; height: 58px; object-fit: contain; display: block; transform-origin: center; }
.compare-pencil figcaption { margin: 24px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; text-align: center; }
.compare-card h2 { font-size: 29px; line-height: 1.3; margin: 20px 0 14px; letter-spacing: -.02em; }
.compare-audience { font-size: 18px; line-height: 1.65; color: var(--ink); margin: 0 0 24px; min-height: 60px; }
.compare-facts { font-size: 17px; margin: 0; }
.compare-facts > div { grid-template-columns: minmax(100px, .8fr) minmax(0, 1.2fr); gap: 14px; padding: 16px 0; }
.compare-facts dt { color: var(--muted); line-height: 1.6; }
.compare-facts dd { line-height: 1.6; }
.compare-facts .feature-yes { color: var(--ink); font-weight: 600; }
.compare-facts .feature-no { color: var(--ink); font-weight: 600; }
.compare-limit { font-size: 17px; line-height: 1.7; background: transparent; padding: 18px 0; margin: 0; }
.compare-card .selection-detail { margin: 0; padding: 20px 0; font-size: 17px; }
.compare-card > .outline-button { border-color: var(--color-primary); min-height: 54px; font-size: 18px; margin-top: 14px; }
.shop-list { grid-template-columns: 1fr; gap: 24px; margin: 32px 0 0; }
.shop-item { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: center; gap: 42px; border: 0; padding: 40px; border-radius: 16px; box-shadow: none; }
.shop-thumb { width: auto; height: auto; min-width: 0; background: transparent; border: 0; border-radius: 0; overflow: visible; }
.shop-thumb .product-photo { padding: 36px 0; margin: 0; background: transparent; width: 100%; }
.shop-thumb img { display: block; width: 100%; height: 72px; object-fit: contain; }
.shop-thumb .product-photo figcaption { font-size: 13px; line-height: 1.5; margin-top: 26px; }
.shop-meta { font-size: 17px; gap: 10px; flex-wrap: wrap; line-height: 1.6; }
.shop-meta .status-chip { font-size: 16px; padding: 5px 10px; color: var(--ink); background: var(--surface-soft); border: 0; }
.shop-copy h2 { margin: 18px 0 0; font-size: 30px; line-height: 1.3; letter-spacing: -.02em; }
.shop-price { display: flex; flex-direction: column-reverse; gap: 5px; align-items: flex-start; margin: 16px 0 20px; }
.shop-price strong { font-size: 38px; font-weight: 600; line-height: 1.2; letter-spacing: -.025em; }
.shop-price span { font-size: 14px; color: var(--muted); }
.shop-copy > p { font-size: 18px; line-height: 1.75; margin: 0; }
.shop-supporting { gap: 10px; font-size: 16px; line-height: 1.7; margin-top: 22px; }
.shop-supporting > span { padding: 0; border: 0; background: transparent; border-radius: 0; }
.shop-copy .outline-button { width: 100%; border-color: var(--color-primary); background: var(--color-primary); color: var(--surface); min-height: 54px; font-size: 18px; margin-top: 26px; }
@media (min-width: 900px) {
  .page[data-page="compare"] { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 48px; }
  .page[data-page="compare"] .page-header { grid-column: 1; grid-row: 1; padding-top: 40px; margin-bottom: 24px; }
  .page[data-page="compare"] > .notice-box { grid-column: 1; grid-row: 2; align-self: start; margin: 0; }
  .compare-overview { grid-column: 2; grid-row: 1 / 3; align-self: center; margin: 40px 0 24px; }
  .compare-grid { grid-column: 1 / -1; margin-top: 40px; }
  .page[data-page="compare"] > .selection-source { grid-column: 1 / -1; }
}
@media (hover: hover) {
  .help-shortcuts button:hover, .compare-overview button:hover { text-decoration: underline; text-underline-offset: 5px; }
  .shop-copy .outline-button:hover { background: var(--color-primary-deep); }
  .avoid-gate summary:hover .gate-copy strong { color: var(--color-primary); }
}
@media (max-width: 699px) {
  .page:not([data-page="match"]) .page-header { padding-top: 34px; margin-bottom: 26px; }
  .page:not([data-page="match"]) .page-header h1 { font-size: clamp(32px, 9.2vw, 38px); }
  .page:not([data-page="match"]) .page-header p { font-size: 18px; margin-top: 18px; }
  .page:not([data-page="match"]) .notice-box { font-size: 16px; padding: 18px 0; }
  .risk-banner { padding: 24px 20px; gap: 14px; align-items: flex-start; }
  .risk-icon { width: 28px; height: 28px; flex-shrink: 0; }
  .risk-banner p { font-size: 19px; }
  .page[data-page="avoid"] .section-heading { margin-top: 36px; }
  .page[data-page="avoid"] .section-heading h2 { font-size: 25px; }
  .avoid-gates { padding-inline: 20px; }
  .avoid-gate summary { padding-block: 22px; grid-template-columns: 26px minmax(0, 1fr) 12px; gap: 12px; }
  .avoid-gate .gate-icon { width: 26px; height: 26px; }
  .gate-copy strong { font-size: 21px; }
  .gate-copy small { font-size: 16px; }
  .gate-detail { padding-left: 0; }
  .checklist-details { padding-inline: 20px; }
  .checklist-details summary { font-size: 18px; gap: 12px; }
  .checklist-steps strong { font-size: 19px; }
  .checklist-steps p, .checklist-outcome p, .case-copy p { font-size: 17px; }
  .case-item summary { font-size: 18px; gap: 12px; }
  .help-shortcuts { column-gap: 18px; }
  .help-shortcuts button { font-size: 17px; }
  .help-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .help-filters button { font-size: 17px; }
  .faq-list .help-issue > summary { font-size: 20px; padding: 22px 0; gap: 16px; }
  .faq-list .help-issue[open] > summary { padding: 22px 20px; }
  .faq-list .help-answer { padding: 0 20px 28px; }
  .faq-list .help-answer .help-conclusion { font-size: 19px; }
  .compare-overview { margin-top: 24px; }
  .compare-overview caption { font-size: 23px; }
  .compare-overview th, .compare-overview td { font-size: 16px; padding: 12px 2px; }
  .compare-overview th:first-child { width: 24%; }
  .compare-overview p { font-size: 15px; line-height: 1.6; }
  .compare-grid { grid-template-columns: 1fr; gap: 20px; }
  .compare-card { padding: 24px 22px; scroll-margin-top: 20px; }
  .compare-card .compare-pencil { padding-top: 28px; }
  .compare-pencil img { height: 48px; }
  .compare-card h2 { font-size: 28px; }
  .compare-audience { min-height: 0; }
  .compare-facts > div { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 16px; }
  .shop-list { margin-top: 26px; }
  .shop-item { grid-template-columns: 1fr; gap: 0; padding: 24px 22px; }
  .shop-thumb .product-photo { padding: 28px 0 32px; }
  .shop-thumb img { height: 58px; }
  .shop-thumb .product-photo figcaption { margin-top: 20px; }
  .shop-copy h2 { font-size: 28px; margin-top: 14px; }
  .shop-copy > p { font-size: 17px; }
  .shop-price { margin-top: 14px; }
  .shop-price strong { font-size: 36px; }
  .shop-meta { font-size: 16px; }
  .receipt-checklist { scroll-margin-top: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .keynote-art { transform: none !important; }
}

/* Owner-confirmed first-generation kit. Product conditions and prices stay separate. */
.shop-kit { margin-top: 32px; padding: 40px; border-radius: 16px; background: var(--surface); min-width: 0; }
.shop-kit-heading { max-width: 720px; }
.shop-kit-heading .eyebrow { color: var(--color-primary); font-size: 15px; font-weight: 600; }
.shop-kit-heading h2 { margin: 12px 0 20px; font-size: clamp(29px, 4vw, 40px); line-height: 1.3; letter-spacing: -.025em; }
.shop-kit-heading > p:last-child { font-size: 18px; line-height: 1.8; color: var(--muted); margin-bottom: 0; }
.shop-kit-main-photo { max-width: 660px; margin: 30px auto; }
.shop-kit .guide-zoom { border-radius: 12px; overflow: hidden; background: var(--surface-soft); }
.shop-kit .guide-zoom img { width: 100%; height: auto; border-radius: 0; }
.shop-kit .guide-zoom-label { font-size: 16px; padding: 14px; color: var(--color-primary); }
.shop-kit-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 32px; }
.shop-kit-facts > section { min-width: 0; padding-top: 22px; border-top: 1px solid var(--line); }
.shop-kit h3 { margin: 0 0 16px; font-size: 22px; line-height: 1.5; }
.shop-kit ul, .shop-kit ol { padding-left: 1.3em; margin: 0; font-size: 17px; line-height: 1.85; }
.shop-kit li + li { margin-top: 8px; }
.shop-kit .shop-kit-note { margin: 18px 0 0; color: var(--muted); font-size: 15px; line-height: 1.8; }
.shop-kit-query { min-height: 48px; margin-top: 12px; text-align: left; line-height: 1.6; font-size: 17px; }
.shop-kit-connection { margin-top: 32px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.shop-kit-connection > summary { padding: 22px 0; font-size: 20px; line-height: 1.6; cursor: pointer; font-weight: 600; }
.shop-kit-connection-body { padding: 4px 0 24px; }
.shop-kit-connection-body > p { font-size: 17px; line-height: 1.85; margin: 0 0 24px; }
.shop-kit-connection-photo { max-width: 560px; margin: 28px auto; }
.shop-kit-connection-body .help-source { margin: 20px 0 0; font-size: 14px; }
.shop-kit .shop-kit-boundary { font-size: 15px; line-height: 1.8; color: var(--muted); margin: 24px 0 0; }
.shop-kit-connection > summary:focus-visible { outline: 3px solid var(--color-primary); outline-offset: 4px; }
@media (max-width: 760px) {
  .shop-kit { padding: 24px 22px; margin-top: 26px; }
  .shop-kit-heading > p:last-child { font-size: 17px; }
  .shop-kit-facts { grid-template-columns: 1fr; gap: 26px; margin-top: 24px; }
  .shop-kit-main-photo { margin: 24px auto; }
  .shop-kit-connection > summary { font-size: 18px; }
}
