/* Shared experience refinement. Established Landed palette and font families remain authoritative.
   Design variance 6 / motion 3 / density 3: editorial showroom, precise working controls. */
:root { --max: 1280px; --page-gutter: 32px; --header-height: 76px; }
html { scroll-padding-top: calc(var(--header-height) + 20px); }
body { letter-spacing: .01em; }
main, .site-header .inner, .site-footer .inner { padding-left: var(--page-gutter); padding-right: var(--page-gutter); }
.site-header { background: var(--bg); backdrop-filter: none; }
.site-header .inner { height: var(--header-height); min-height: var(--header-height); padding-top: 12px; padding-bottom: 12px; }
.site-nav { gap: 28px; }
.site-nav a { font-size: 13px; letter-spacing: .025em; white-space: nowrap; }
.wordmark { font-size: 18px; letter-spacing: .24em; white-space: nowrap; }
.wordmark .tc { font-size: 13px; letter-spacing: .12em; }
.theme-toggle { border-color: var(--hairline); transition: border-color .2s var(--ease), background .2s var(--ease); }
.theme-toggle:hover { border-color: var(--control); background: var(--veil); }
.btn { font-size: 13px; font-weight: 500; letter-spacing: .025em; white-space: nowrap; min-height: 52px; }
.btn.ghost { border-color: var(--control); }
.btn:not(.ghost):hover { background: var(--gold-text); border-color: var(--gold-text); color: var(--bg); }
.btn:disabled { opacity: 1; color: var(--muted); background: var(--veil); border-color: var(--control); }
.btn:disabled:hover { color: var(--muted); background: var(--veil); }
.back { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 20px; letter-spacing: .03em; font-size: 13px; }
.loading { min-height: 240px; display: flex; align-items: center; justify-content: center; font-family: var(--sans); font-size: 15px; }
main.fade-in { animation: none; }

/* Editorial scale comes from space, lettering, and the real product photograph. */
.showroom { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 72px; padding: 28px 0 56px; }
.showroom h1 { font-size: clamp(2.2rem, 4.4vw, 4rem); line-height: 1.4; letter-spacing: -.015em; margin-bottom: 28px; }
.showroom .lede { max-width: 28em; font-size: 16px; line-height: 1.95; }
.showroom .hero-actions { gap: 16px; margin: 30px 0 16px; align-items: center; }
.showroom .hero-actions .ghost { padding: 0 4px; border: 0; border-bottom: 1px solid var(--control); border-radius: 0; min-height: 44px; }
.showroom .hero-actions .ghost:hover { background: transparent; color: var(--gold-text); border-color: var(--gold-text); }
.showroom-image { aspect-ratio: 6 / 5; padding: 4%; }
.showroom-caption { padding-top: 18px; }
.showroom-caption > :first-child { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.showroom-caption > :nth-child(2) { font-size: 27px; line-height: 1.2; }
.showroom-caption > :last-child { min-height: 44px; display: flex; align-items: center; }
.steps-strip { margin-bottom: 64px; padding: 24px 0; gap: 32px; }
.steps-strip li { padding-left: 34px; }
.steps-strip strong { font-size: 16px; letter-spacing: 0; }
.steps-strip span:last-child { font-size: 12px; }
.section-head { margin-bottom: 24px; }
.section-head h2 { font-size: clamp(1.75rem, 3vw, 2.65rem); letter-spacing: 0; margin-top: 0; }
.section-head .lede { max-width: 44em; line-height: 1.9; }
.catalogue { scroll-margin-top: calc(var(--header-height) + 20px); }
.data-notes { margin-bottom: 28px; }
.data-notes > summary { min-height: 52px; letter-spacing: .02em; gap: 6px 16px; }

/* One toolbar, with search first and all brands reachable by keyboard or touch. */
.catalogue-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 28px; }
.finder { display: contents; }
.search { grid-column: 1; width: 100%; }
.search label { font-size: 12px; margin-bottom: 6px; }
.search input, .request-search input { min-height: 52px; width: 100%; padding: 12px 16px; border: 1px solid var(--control); background: var(--surface); color: var(--ink); border-radius: var(--radius); font: 16px/1.6 var(--sans); }
.search input::placeholder, .request-search input::placeholder { color: var(--muted); opacity: 1; font-family: var(--sans); font-size: 14px; }
.search input:focus { border: 1px solid var(--ink); padding: 12px 16px; }
.search input:focus-visible, .request-search input:focus-visible { outline: 2px solid var(--gold-text); outline-offset: 3px; }
.tabs { grid-column: 1 / -1; grid-row: 2; gap: 8px 16px; border-bottom: 1px solid var(--hairline); }
.tab { padding: 12px 8px; border-radius: 0; font-size: 12px; letter-spacing: .025em; border-bottom: 2px solid transparent; }
.tab:first-child { padding-left: 0; }
.tab:hover { color: var(--ink); background: var(--veil); }
.tab[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--gold-text); }
.browse-status { grid-column: 2; grid-row: 1; align-self: end; gap: 8px; }
.browse-status > label:first-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.browse-status .sort-pick { gap: 8px; }
.browse-status select { min-height: 52px; padding: 8px 12px; font-size: 13px; }
#browse-count { min-width: 54px; text-align: right; font-size: 13px; color: var(--ink); }
.catalogue-controls .city-saving { grid-column: 1 / -1; margin: 4px 0; line-height: 1.9; }
.city-saving strong { font-weight: 500; }
.catalogue-hint { grid-column: 1; margin: 0; font-size: 12px; color: var(--muted); align-self: center; }
#reset-filters { grid-column: 2; justify-self: end; padding: 0 4px; font-size: 12px; }
.index { margin-top: 28px; gap: 44px 28px; align-items: start; }
.index > li { position: relative; }
.index > li > a { gap: 6px; }
.index .thumb { margin-bottom: 12px; aspect-ratio: 1; }
.index .brand { font-size: 12px; letter-spacing: .12em; }
.index .model { font-size: 25px; line-height: 1.25; letter-spacing: 0; }
.catalogue-name { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.index .model small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 12px; line-height: 1.75; letter-spacing: 0; margin-top: 8px; }
.index .candidate-tag { margin: 4px 0 0; font-size: 12px; padding: 2px 6px; align-self: start; }
.index .ref { margin-top: 2px; font-size: 12px; letter-spacing: 0; }
.index .prices { margin-top: 12px; padding-top: 12px; gap: 4px; }
.index .px .caps { letter-spacing: .06em; }
.index .px .num { font-size: 20px; line-height: 1.5; }
.index .compare-check { min-height: 44px; font-size: 12px; padding-top: 0; }
.compare-check:has(input:checked) { color: var(--gold-text); }
.index > li:has(input:checked) > a .thumb { outline: 2px solid var(--gold-text); outline-offset: -2px; }
.index > li.empty { min-height: 220px; text-align: center; display: flex; align-items: center; justify-content: center; }
.index .empty p { margin: 8px 0; }
.catalogue-more { text-align: center; padding-top: 48px; }
.catalogue-more p { font-size: 12px; color: var(--muted); margin: 0 0 16px; }
.catalogue-more .btn { min-width: 220px; }
.bag-size summary { padding: 12px 0; min-height: 52px; }
.bag-size-meta { font-size: 12px; }
.bag-size summary::before { content: ''; height: 12px; align-self: center; background: linear-gradient(currentColor,currentColor) center / 12px 1px no-repeat, linear-gradient(currentColor,currentColor) center / 1px 12px no-repeat; }
.bag-size[open] summary::before { content: ''; background: linear-gradient(currentColor,currentColor) center / 12px 1px no-repeat; }
.bag-variant { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 4px 12px; padding: 10px 0; }
.index .bag-variant > a:first-child { grid-column: 1 / -1; min-height: 32px; }
.index .bag-variant .compare-check, .index .bag-variant-check { min-height: 44px; font-size: 12px; }
.index .bag-variant-check { display: inline-flex; justify-content: center; padding: 6px 12px; border-radius: var(--radius); }
.bag-size ul { max-height: 360px; scrollbar-gutter: stable; }
.variant-chip { min-height: 44px; padding: 6px 12px; border-radius: var(--radius); }

/* The shortlist shows recognizable names rather than SKU-only chips. */
#shortlist-slot:not([hidden]) { padding: 14px var(--page-gutter) max(14px, env(safe-area-inset-bottom)); }
.shortlist-bar { max-width: calc(var(--max) - 2 * var(--page-gutter)); }
.shortlist-bar strong { font-size: 14px; font-weight: 500; }
.shortlist-remove { background: var(--bg); border-color: var(--hairline); max-width: 250px; }
.shortlist-remove:hover { border-color: var(--control); }
.shortlist-items { scrollbar-gutter: stable; }
body.has-shortlist { padding-bottom: 150px; }

/* Product identity first, then the decision. */
.item-head.has-shot { grid-template-columns: minmax(0,1fr) minmax(300px,.85fr); align-items: center; gap: 64px; margin-bottom: 28px; }
.item-head .model { font-size: clamp(2.4rem, 4.6vw, 4rem); line-height: 1.15; overflow-wrap: anywhere; }
.item-head .model .candidate-tag { display: table; margin: 16px 0 0; }
.item-head .spec { max-width: 36em; font-size: 14px; line-height: 1.9; }
.item-head .meta-line { font-size: 12px; letter-spacing: 0; margin-top: 16px; }
.item-head .plate { aspect-ratio: 6 / 5; padding: 4%; }
.item-head .product-shot { margin: 0; }
.journey-nav { gap: 8px 28px; margin-bottom: 28px; }
.journey-nav a { letter-spacing: .01em; }
.comparison-scroll { scrollbar-gutter: stable; }
.table-total { font-size: 25px; }
.detail-button { min-height: 44px; }
.market-filters label { min-height: 44px; }
.concierge { padding: 36px 32px; gap: 40px; }
.concierge-text p:last-child { font-size: 14px; line-height: 1.9; }
.concierge-form select { min-height: 52px; border: 1px solid var(--control); padding: 12px; border-radius: var(--radius); }

/* Request selection has a quieter introduction and a receipt-like summary. */
.pretrip .page-hero { text-align: left; max-width: none; display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,.8fr); gap: 16px 72px; padding: 24px 0 44px; }
.pretrip .page-hero h1 { grid-column: 1; font-size: clamp(2rem, 3.8vw, 3.15rem); line-height: 1.45; letter-spacing: -.01em; margin: 0; }
.pretrip .page-hero .lede { grid-column: 1; margin: 0; font-size: 15px; max-width: 36em; }
.pretrip .page-hero .lede strong { font-weight: 500; }
.pretrip .page-hero .offer-status { grid-column: 2; grid-row: 1 / 4; align-self: center; padding: 24px 0; margin: 0; max-width: none; }
.pretrip .page-hero .offer-status p:first-child { font-size: 20px; margin-top: 0; }
.pretrip .page-hero .hero-actions { grid-column: 1; justify-content: start; margin-top: 8px; }
.pretrip .apply { background: none; border-top: 1px solid var(--hairline); padding: 36px 0 0; margin-top: 0; scroll-margin-top: calc(var(--header-height) + 20px); }
.apply-grid { grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr); gap: 64px; }
.apply-head h2 { margin: 8px 0; }
.apply-head p:last-child { font-size: 14px; }
.apply-steps { gap: 32px; padding-top: 12px; }
.step-label { font-size: 22px; }
.apply-steps .step-n { display: inline; margin-right: 12px; letter-spacing: .1em; }
.apply-steps select { width: 100%; min-height: 52px; background: var(--surface); border: 1px solid var(--control); color: var(--ink); padding: 12px; font: 16px var(--sans); border-radius: var(--radius); }
.request-search { margin: 16px 0; }
.request-search label { display: block; color: var(--muted); font-size: 12px; margin-bottom: 6px; }
.request-search .link-btn { padding: 0; min-height: 44px; font-size: 12px; }
.request-search .hint { margin: 8px 0 0; font-size: 12px; }
.request-search input:disabled { cursor: wait; }
.city-pills { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.city-pills .city-closed { display: block; font-size: 12px; line-height: 1.4; color: var(--muted); letter-spacing: 0; }
.city-pills label:has(.city-closed) { flex-direction: column; gap: 2px; }
.city-pills label { justify-content: center; font: 15px var(--sans); letter-spacing: 0; padding: 0 12px; min-height: 52px; }
.apply-summary { background: var(--surface); border-top: 1px solid var(--hairline); padding: 28px; position: sticky; top: calc(var(--header-height) + 20px); }
.summary-shot { aspect-ratio: 3 / 2; max-height: 240px; padding: 0; }
.summary-bag { font-size: 25px; line-height: 1.35; }
.summary-terms { margin: 20px 0; }
.summary-terms dd { font-family: var(--sans); }
.summary-action { margin-top: 20px; }
.band { text-align: left; }
.band .hero-actions { justify-content: start; }
.feature-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 32px 48px; }
.feature-grid li { border-top-color: var(--hairline); }
.feature-grid .numeral { display: none; }
.tiers { max-width: none; gap: 28px; }
.tier { border-color: var(--hairline); padding: 28px; }
.article > article { max-width: 800px; }
.site-footer { margin-top: 32px; }
.site-footer .inner { padding-top: 36px; }
.site-footer .mark { font-size: 17px; letter-spacing: .2em; margin-bottom: 20px; }
.site-footer p { line-height: 1.95; }
.site-footer .footer-links { max-width: none; gap: 4px 24px; margin-bottom: 20px; }

/* Compact navigation restores links that otherwise disappear on phones. */
.compact-nav { display: none; position: relative; }
.compact-nav > summary { list-style: none; min-width: 44px; min-height: 44px; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 12px; }
.compact-nav > summary::-webkit-details-marker { display: none; }
.compact-nav[open] > summary { text-decoration: underline; text-underline-offset: 6px; }
.compact-nav-panel { position: absolute; right: -44px; top: calc(100% + 16px); min-width: 210px; padding: 12px 20px; background: var(--surface); border: 1px solid var(--control); }
.compact-nav-panel a { display: flex; min-height: 48px; color: var(--ink); }
.compact-nav-panel .compact-nav-offer { display: none; }

@media (max-width: 1050px) {
  :root { --page-gutter: 24px; }
  .site-nav { gap: 20px; }
  .showroom { gap: 40px; }
  .showroom .hero-actions { flex-direction: column; align-items: start; }
  .showroom .hero-actions .btn { width: auto; }
  .catalogue-controls { grid-template-columns: minmax(0,1fr); gap: 12px; }
  .browse-status { grid-column: 1; grid-row: 3; }
  .catalogue-hint, #reset-filters { grid-column: 1; }
  #reset-filters { justify-self: start; }
  .apply-grid { gap: 36px; }
  .pretrip .page-hero { gap: 16px 40px; }
}
@media (max-width: 820px) {
  .item-head.has-shot { grid-template-columns: 1fr; gap: 24px; }
  .item-head .product-shot { order: 0; max-width: none; }
  .item-head .product-shot .plate { aspect-ratio: 2 / 1; max-height: 280px; }
  .pretrip .page-hero { grid-template-columns: 1fr; }
  .pretrip .page-hero .offer-status { grid-column: 1; grid-row: auto; }
  .apply-grid { grid-template-columns: 1fr; }
  .apply-summary { position: static; }
  .city-pills { grid-template-columns: repeat(5,minmax(0,1fr)); }
}
@media (max-width: 640px) {
  :root { --page-gutter: 20px; --header-height: 64px; }
  .site-header .inner { gap: 8px; padding-left: 16px; padding-right: 16px; }
  .wordmark { font-size: 15px; letter-spacing: .16em; }
  .site-nav { gap: 4px; }
  .site-nav > a { font-size: 12px; padding: 0 4px; }
  .site-nav > .nav-secondary { display: none; }
  .compact-nav { display: block; }
  .theme-toggle { width: 40px; height: 44px; border: 0; }
  main { padding-top: 20px; }
  .showroom { grid-template-columns: 1fr; gap: 28px; padding: 16px 0 36px; }
  .showroom h1 { font-size: clamp(2rem, 8.5vw, 2.9rem); line-height: 1.45; margin-bottom: 18px; }
  .showroom .lede { font-size: 14px; line-height: 1.9; }
  .showroom .hero-actions { flex-direction: row; flex-wrap: nowrap; align-items: center; gap: 12px; margin-top: 22px; }
  .showroom .hero-actions .btn { font-size: 12px; min-height: 48px; padding: 0 12px; }
  .showroom .hero-actions .ghost { padding: 0; }
  .hero-service-note { font-size: 12px; }
  .showroom-image { aspect-ratio: 6 / 5; max-height: none; }
  .showroom-caption { gap: 4px 12px; }
  .showroom-caption > :nth-child(2) { font-size: 24px; }
  .showroom-caption > :last-child { font-size: 12px; }
  .steps-strip { grid-template-columns: 1fr; gap: 20px; margin-bottom: 44px; padding: 24px 0; }
  .steps-strip strong { font-size: 15px; }
  .steps-strip span:last-child { font-size: 12px; }
  .section-head h2 { font-size: 26px; line-height: 1.5; }
  .section-head .lede { font-size: 13px; }
  .data-notes > summary { align-items: center; font-size: 12px; }
  .data-notes-line { flex: 1; font-size: 12px; }
  .tabs { flex-wrap: nowrap; gap: 16px; overflow-x: auto; padding: 0 3px 4px; scroll-padding-inline: 4px; }
  .tab { flex: 0 0 auto; font-size: 12px; }
  .browse-status { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px 12px; }
  .browse-status .sort-pick { gap: 6px; }
  .browse-status select { min-height: 44px; font-size: 16px; padding: 8px; }
  #browse-count { grid-column: 1 / -1; text-align: left; }
  .catalogue-hint, .city-saving { font-size: 12px; line-height: 1.9; }
  .index { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 32px 16px; margin-top: 24px; }
  .index .thumb { margin-bottom: 8px; }
  .index .brand { font-size: 12px; letter-spacing: .07em; }
  .index .model { font-size: 19px; line-height: 1.3; }
  .index .model small { font-size: 12px; line-height: 1.7; }
  .index .ref { font-size: 12px; }
  .index .px .num { font-size: 17px; }
  .index .px .caps { font-size: 12px; }
  .index .candidate-tag { font-size: 12px; }
  .bag-size summary { gap: 3px 6px; }
  .bag-size-name { font-size: 12px; }
  .bag-size-price { padding-left: 18px; font-size: 12px; flex-basis: 100%; }
  .bag-size-meta { font-size: 12px; padding-left: 18px; }
  .index .bag-variant .compare-check, .index .bag-variant-check { font-size: 12px; }
  .catalogue-more { padding-top: 32px; }
  #shortlist-slot:not([hidden]) { padding: 12px 16px max(12px, env(safe-area-inset-bottom)); }
  .shortlist-bar { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px 12px; }
  .shortlist-bar > div { grid-column: 1 / -1; }
  .shortlist-bar .btn { min-height: 44px; width: 100%; }
  .shortlist-items { margin-top: 6px; }
  .shortlist-remove { max-width: 220px; min-height: 36px; padding: 6px 10px; font-size: 12px; }
  body.has-shortlist { padding-bottom: calc(180px + env(safe-area-inset-bottom)); }
  html:has(body.has-shortlist) { scroll-padding-bottom: calc(180px + env(safe-area-inset-bottom)); }
  .journey-nav { gap: 4px 16px; margin-bottom: 20px; }
  .journey-nav a { font-size: 12px; }
  .item-head .model { font-size: 36px; }
  .item-head .spec { font-size: 13px; }
  .item-head .product-shot .plate { aspect-ratio: 3 / 2; max-height: 240px; }
  .item-head .meta-line { font-size: 12px; }
  .concierge { grid-template-columns: 1fr; padding: 28px 20px; margin-left: calc(-1 * var(--page-gutter)); margin-right: calc(-1 * var(--page-gutter)); gap: 24px; }
  .pretrip .page-hero { padding: 12px 0 32px; gap: 18px; }
  .pretrip .page-hero h1 { font-size: 30px; }
  .pretrip .page-hero .lede { font-size: 14px; }
  .pretrip .page-hero .offer-status { padding: 16px 0; }
  .pretrip .page-hero .offer-status p:first-child { font-size: 18px; }
  .pretrip .page-hero .offer-status p:last-child { font-size: 13px; }
  .pretrip .page-hero .hero-actions { margin: 0; }
  .pretrip .apply { margin-left: 0; margin-right: 0; padding: 24px 0 0; }
  .apply-head h2 { font-size: 26px; }
  .apply-head { margin-bottom: 20px; }
  .apply-grid { gap: 28px; }
  .apply-summary { padding: 24px 20px; }
  .city-pills { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .summary-shot { max-height: 220px; }
  .summary-bag { font-size: 23px; }
  .feature-grid, .tiers { grid-template-columns: 1fr; }
  .feature-grid { gap: 24px; }
  .band { padding-top: 48px; }
  .band > h2 { font-size: 25px; }
  .site-footer .footer-links { gap: 0 20px; font-size: 12px; }
}
@media (max-width: 360px) {
  :root { --page-gutter: 16px; }
  .site-nav > .nav-offer { display: none; }
  .compact-nav-panel .compact-nav-offer { display: flex; }
  .showroom .hero-actions { flex-direction: column; align-items: stretch; }
  .showroom .hero-actions .btn { width: 100%; font-size: 12px; }
  .index { gap: 28px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
  .index a:hover .thumb .shot, .feature-card:hover .shot { transform: none; }
}
@media (forced-colors: active) {
  .city-pills label:has(input:checked), .tab[aria-pressed="true"], .variant-chip[aria-current] { outline: 2px solid Highlight; }
  .compact-nav-panel { border-color: ButtonText; }
}

/* Phone: a cost table becomes one card per market, so the Taiwan-dollar cost and the saving come first and nothing needs
   sideways scrolling. Table roles are restored in app.js (display changes drop native table semantics in some browsers). */
@media (max-width: 640px) {
  .comparison-scroll { overflow: visible; border: 0; background: transparent; }
  .comparison-table, .comparison-table tbody { display: block; width: 100%; min-width: 0; }
  .comparison-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .comparison-table tbody tr { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px 12px; margin-bottom: 12px; padding: 16px; border: 1px solid var(--hairline); background: var(--surface); }
  .comparison-table tbody tr.baseline-row { background: var(--veil); }
  .comparison-table tbody th, .comparison-table tbody td,
  .comparison-table tr > :first-child, .comparison-table .baseline-row > *, .comparison-table .baseline-row > :first-child,
  .group-table th:not(:first-child), .group-table td:not(:first-child), .comparison-table td.minimum-cell {
    display: block; position: static; width: auto; min-width: 0; padding: 0; border: 0; background: transparent; text-align: left;
  }
  .comparison-table tbody th { font-size: 16px; }
  .comparison-table .table-total { font-size: 28px; }
  .comparison-table small { font-size: 12px; line-height: 1.7; }
  .comparison-table:not(.group-table) tbody th { grid-column: 1; grid-row: 1; align-self: center; }
  .comparison-table:not(.group-table) td:nth-child(4) { grid-column: 2; grid-row: 1; text-align: right; align-self: center; }
  .comparison-table:not(.group-table) td:nth-child(3) { grid-column: 1 / -1; grid-row: 2; }
  .comparison-table:not(.group-table) td:nth-child(2) { grid-column: 1 / -1; grid-row: 3; padding-top: 8px; border-top: 1px solid var(--hairline); }
  .comparison-table:not(.group-table) td:nth-child(2)::before { content: "官網售價・退款"; display: block; color: var(--muted); font-size: 12px; }
  .comparison-table:not(.group-table) td:nth-child(5) { grid-column: 1 / -1; grid-row: 4; }
  .comparison-table td .detail-button { min-height: 44px; width: 100%; }
  .group-table tbody tr { grid-template-columns: minmax(0,1fr); }
  .group-table td:not(:first-child) { padding-top: 12px; margin-top: 4px; border-top: 1px solid var(--hairline); }
  .group-table td::before { content: attr(data-label); display: block; margin-bottom: 4px; color: var(--muted); font-size: 12px; }
  .comparison-table .group-table td.minimum-cell, .group-table td.minimum-cell:not(:first-child) { margin-left: -8px; margin-right: -8px; padding: 12px 8px 8px; border-top-color: var(--gold-text); background: var(--veil); }
}

.group-summary { margin: 24px 0 8px; padding: 20px 0 4px; border-top: 1px solid var(--hairline); }
.group-summary h2 { font-size: 20px; margin: 0 0 12px; }
.group-summary ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.group-summary li { display: grid; gap: 2px; }
.group-summary li span { color: var(--ink); font-size: 15px; line-height: 1.7; }
.group-summary li strong { font-weight: 500; font-size: 14px; color: var(--muted); }
.market-details > summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-size: 14px; color: var(--ink); }

/* Shortlist: a one-line bar on phones, the chips behind a disclosure. */
body.has-shortlist { padding-bottom: calc(var(--shortlist-h, 150px) + 16px); }
html:has(body.has-shortlist) { scroll-padding-bottom: calc(var(--shortlist-h, 150px) + 16px); }
.shortlist-details > summary { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; list-style: none; }
.shortlist-details > summary::-webkit-details-marker { display: none; }
.shortlist-toggle { width: 8px; height: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); margin-top: -4px; }
.shortlist-details[open] .shortlist-toggle { transform: rotate(-135deg); margin-top: 4px; }
@media (max-width: 640px) {
  body.has-shortlist { padding-bottom: calc(var(--shortlist-h, 80px) + 16px); }
  html:has(body.has-shortlist) { scroll-padding-bottom: calc(var(--shortlist-h, 80px) + 16px); }
  .shortlist-bar { grid-template-columns: minmax(0,1fr) auto auto; align-items: start; gap: 0 10px; }
  .shortlist-bar > div { grid-column: 1; grid-row: 1; }
  .shortlist-bar .btn { grid-column: 2; grid-row: 1; width: auto; padding-left: 18px; padding-right: 18px; white-space: nowrap; }
  .shortlist-bar .link-btn { grid-column: 3; grid-row: 1; min-height: 44px; padding: 0 4px; }
  #shortlist-slot:not([hidden]) { padding-top: 8px; padding-bottom: max(8px, env(safe-area-inset-bottom)); }
  .shortlist-bar > div { position: static; }
  /* Expanded, the chips open upward over the page at full width so each name can be read; the bar itself stays one row. */
  .shortlist-items { position: absolute; left: 0; right: 0; bottom: 100%; flex-direction: column; gap: 6px; margin: 0; padding: 12px 16px; overflow: visible; background: var(--surface); border-top: 1px solid var(--control); box-shadow: 0 -10px 32px rgba(20,17,15,.12); }
  .shortlist-remove { width: 100%; max-width: none; min-height: 44px; padding: 8px 12px; font-size: 13px; justify-content: space-between; }
}

/* Phones: text fields and dropdowns at 16px so iOS Safari does not zoom the page on focus. */
@media (max-width: 640px) {
  input:not([type="checkbox"]):not([type="radio"]), select, textarea { font-size: 16px; }
  .browse-status select, .comparison-heading select { min-height: 44px; }
}
