/* V4: compact shopping-like mobile shell, shared with the existing desktop site. */
html{scroll-padding-top:94px}
body{padding-bottom:28px}
[hidden]{display:none!important}
.site-header{gap:20px}
.main-nav a{min-height:48px}
.main-nav .shopping-nav-link{display:none}
.shopping-nav-icon{position:relative;display:inline-flex;align-items:center;justify-content:center}
.shopping-nav-badge{position:absolute;top:-5px;left:calc(100% - 5px);min-width:18px;height:18px;padding:0 4px;display:grid;place-items:center;border-radius:7px;background:var(--primary);color:var(--bg);font-size:10px;font-weight:800;font-variant-numeric:tabular-nums;line-height:1}
.brand small,.eyebrow{display:none}
.guide-link.shopping-link{display:inline-flex;align-items:center;gap:8px;white-space:nowrap;border:1px solid var(--border);border-radius:14px;padding:9px 13px;background:var(--surface-high);color:var(--ink);min-height:44px}
#shopping-nav-count{display:inline-grid;place-items:center;min-width:24px;min-height:24px;border-radius:8px;background:var(--primary);color:var(--bg);font-size:12px;font-weight:750}
.release-note,.supplementary-info{border:1px solid var(--border);background:var(--surface-soft);border-radius:16px;margin:12px 0 24px;padding:0 16px;color:var(--muted)}
.release-note summary,.supplementary-info>summary{cursor:pointer;min-height:48px;padding:13px 0;font-size:14px}
.release-note summary small{margin-left:12px;font-size:12px;color:var(--muted)}
.release-note ul{margin:0 0 16px;padding-left:20px;font-size:13px;line-height:1.9}
body:not([data-screen="find"]):not([data-screen="favorites"]) .release-note{display:none}
.supplementary-info{margin-top:32px}
.supplementary-info .section-title p,.supplementary-info .guide-note{font-size:13px;line-height:1.7}
.supplementary-info .sources-section,.supplementary-info .guide-section{margin:20px 0;padding:0}
.supplementary-info .section-title h2{font-size:22px}
.finder-hero{min-height:0;padding-top:20px;padding-bottom:26px}
.hero-copy h1{font-size:clamp(28px,4vw,50px)}
.hero-description{font-size:16px}
.hero-pills{display:none}
.finder-search-wrap{margin-bottom:24px}
.item-card-meta{font-size:12px;gap:8px;flex-wrap:wrap}
.item-card-action{min-height:46px;font-size:13px}
.item-name-en{display:none}
.coverage-note{font-size:12px}
.coverage-note p{line-height:1.65}
.detail-shopping-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px;position:sticky;bottom:0;z-index:2;background:var(--surface);padding:12px 0;margin-top:12px;border-top:1px solid var(--border)}
.detail-shopping-actions .shopping-add-feedback{flex:1 0 100%;order:3;margin:0}
.detail-shopping-actions .primary-action{background:var(--primary);color:var(--bg);border-color:var(--primary);flex:1;min-height:48px;font-weight:750}
.detail-shopping-actions a{min-height:44px;display:inline-flex;align-items:center;color:var(--ink);font-size:13px}
.detail-island .secondary-button{margin-top:10px;width:100%;min-height:44px}
.map-position-list button,.map-controls button{min-height:44px;min-width:44px}
.map-selected-ring{pointer-events:none}
.map-chinese-legend small[lang="en"]{display:none}
.map-chinese-legend>div{font-size:14px;line-height:1.5}
.map-notes{font-size:12px;line-height:1.6}
.board-heading h1{font-size:32px}
.board-heading .board-intro{font-size:14px}
.board-summary{gap:14px;flex-wrap:wrap}
.board-summary>div{gap:6px}
.board-summary>div>span:not(.summary-value){font-size:12px}
.board-summary .summary-value{font-size:23px}
.board-footnote{font-size:12px;line-height:1.65}
.card-note{display:none}
.source-label{font-size:12px}
.card-links a,.map-button{font-size:12px;min-height:44px;display:inline-flex;align-items:center}
.coverage-badge{font-size:11px}
.card-time{font-size:11px}
.favorite-backup-menu{position:relative;flex:none}
.favorite-backup-menu>summary{min-width:64px;min-height:44px;padding:11px 13px;list-style:none;cursor:pointer;border:1px solid var(--border);border-radius:12px;background:var(--surface-high);font-size:13px;color:var(--ink);text-align:center}
.favorite-backup-menu .favorite-backup-actions{position:absolute;right:0;top:50px;z-index:8;width:152px;padding:8px;border:1px solid var(--border);border-radius:13px;background:var(--surface-high);box-shadow:var(--shadow)}
.favorite-backup-actions button{width:100%;min-height:44px}
#favorites-view-heading h1{font-size:30px;margin:8px 0 16px}
.collection-tabs{display:flex;border:1px solid var(--border);padding:4px;border-radius:13px;background:var(--surface-soft);max-width:480px;margin-bottom:18px}
.collection-tabs>*{flex:1;text-align:center;padding:10px 16px;border-radius:10px;font-size:14px;min-height:44px}
.collection-tabs [aria-current]{background:var(--primary);color:var(--bg);font-weight:750}
body[data-screen="favorites"] .board-heading,body[data-screen="favorites"] .board-summary,body[data-screen="favorites"] .board-view,body[data-screen="favorites"] .filters,body[data-screen="favorites"] .board-footnote{display:none}
body[data-screen="favorites"] .filters{display:flex}
body[data-screen="favorites"] .filter-primary-row,body[data-screen="favorites"] .more-filters,body[data-screen="favorites"] .filter-bottom-row{display:none}
.site-footer{font-size:12px}
.site-footer .footer-brand span{display:none}
.toast{bottom:max(24px,env(safe-area-inset-bottom))}
@media(max-width:760px){
  html{scroll-padding-top:82px}
  body{padding-bottom:calc(90px + env(safe-area-inset-bottom))}
  .wrap{width:calc(100% - 32px);max-width:560px}
  /* A filtered ancestor contains fixed descendants; keep the bottom nav anchored to the viewport. */
  .site-header{display:flex;flex-wrap:nowrap;align-items:center;justify-content:space-between;min-height:68px;padding:12px 0;gap:8px;position:sticky;top:0;z-index:20;backdrop-filter:none;-webkit-backdrop-filter:none}
  .brand{font-size:18px;gap:7px;white-space:nowrap}
  .brand-icon{width:30px;height:30px}.brand-icon svg{width:30px;height:30px}
  .guide-link.shopping-link{display:none}
  #shopping-nav-count{min-width:20px;min-height:20px;font-size:11px}
  .main-nav{position:fixed;left:0;right:0;bottom:0;top:auto;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;width:100%;margin:0;padding:7px 8px calc(7px + env(safe-area-inset-bottom));border:1px solid var(--border);border-bottom:0;border-radius:20px 20px 0 0;background:#30213ff5;box-shadow:0 -5px 30px #100a2040;backdrop-filter:blur(18px);z-index:30;overflow:visible}
  .main-nav a{display:flex;flex-direction:column;justify-content:center;gap:4px;padding:6px 3px;min-height:56px;border-radius:13px;font-size:12px;background:transparent;white-space:nowrap}
  .main-nav a svg{display:block;width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.7}
  .main-nav a.is-active{background:#5a3b70;color:#f1d6ff}
  .main-nav .shopping-nav-link{display:flex;color:#f1d6ff}
  .release-note{margin:8px 0 18px;border-radius:13px;padding:0 12px}
  .release-note summary small{font-size:11px;margin-left:8px}
  .finder-hero{display:block;margin:0;padding:8px 0 20px}
  .hero-art{display:none}.hero-copy h1{font-size:27px;line-height:1.4;letter-spacing:0;margin:0 0 9px}
  .hero-description{font-size:13px;line-height:1.6;margin:0}
  .catalog-search,.design-search{min-height:52px;border-radius:13px}
  #catalog-query,#design-query{font-size:16px}
  .search-examples{gap:4px;flex-wrap:wrap}.search-examples button{min-height:36px}
  .catalog-controls{gap:12px}.catalog-categories{gap:6px}
  .catalog-categories button{min-height:40px;font-size:13px}
  .catalog-results-heading h2{font-size:20px}.catalog-results-heading p{font-size:12px}
  .catalog-grid{gap:12px}.item-card{padding:12px;border-radius:17px}
  .item-heading{font-size:15px;line-height:1.5;margin-top:10px}
  .item-card-meta{font-size:11px;gap:3px;line-height:1.5}
  .item-card-action{font-size:12px;min-height:44px;padding:8px 2px;margin-top:9px}
  .catalog-coverage-badge,.coverage-badge{font-size:11px}
  .coverage-note{padding:12px;font-size:11px}.coverage-note p{font-size:11px;line-height:1.7}
  .board-heading{margin:8px 0 18px;gap:10px}.board-heading h1{font-size:26px}.board-intro{display:none}
  .refresh-block{gap:5px}.refresh-button{min-height:44px;padding:9px 12px;font-size:13px}.update-time{font-size:10px}
  .board-summary{padding:13px;gap:12px;border-radius:14px}.board-summary .summary-value{font-size:19px}.board-summary>div>span:not(.summary-value){font-size:10px}
  .board-summary>div:nth-child(3),.board-summary>div:nth-child(4){display:none}
  .auto-note{font-size:10px}.filters{gap:9px}.filter-field{min-width:0;flex:1 1 125px}.filter-field label{font-size:12px}.filter-field select{font-size:14px;min-height:44px}
  .island-grid{gap:12px}.island-card{padding:13px;border-radius:17px}.card-name{font-size:16px}.source-label{font-size:11px}.preview-delay{font-size:10px}
  .card-tags{gap:4px}.card-tag{font-size:10px}.card-links{gap:5px;flex-wrap:wrap}.card-links a,.map-button{font-size:11px}.card-time{font-size:10px}
  dialog.item-dialog,dialog.map-dialog,dialog.favorite-dialog{width:calc(100vw - 20px);max-width:560px;padding:18px;max-height:88dvh;border-radius:20px}
  .dialog-heading h2{font-size:21px}.close-dialog{min-width:44px;min-height:44px}.item-detail-names h3{font-size:18px}.item-detail-names p{font-size:12px}.detail-badges{font-size:11px}
  .variant-option{min-height:44px;font-size:13px}.detail-instruction{font-size:13px}.detail-island-title{gap:8px;flex-wrap:wrap}.detail-island-title h3{font-size:18px}.detail-island-title span{font-size:11px}
  .map-chinese-legend>div{font-size:13px;padding:10px}.map-chinese-legend small{font-size:11px}.map-notes{font-size:11px}
  .site-footer{display:none}.supplementary-info{margin:24px 0 12px;padding:0 12px}.supplementary-info>summary{font-size:13px}
  .toast{bottom:calc(88px + env(safe-area-inset-bottom));max-width:calc(100vw - 32px);font-size:13px}
  .design-intro{padding:12px 0 20px}.design-intro h1{font-size:28px}.design-intro>p:not(.eyebrow){font-size:13px;line-height:1.6}.design-list-link{min-height:44px;font-size:12px}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation:none!important;transition:none!important}}

/* Multi-source list-only islands keep their original-site actions reachable. */
.shopping-island-tabs > #shopping-island-map-tab {flex:1;min-width:0;}
#shopping-island-map-tab > a,#shopping-island-map-tab > button {display:flex;align-items:center;justify-content:center;width:100%;height:100%;min-height:44px;border:0;background:transparent;color:inherit;text-decoration:none;font:inherit;}
.shopping-island-footer > #shopping-island-access {flex:1;min-width:0;}
#shopping-island-access > a,#shopping-island-access > button {display:flex;align-items:center;justify-content:center;width:100%;min-height:48px;text-decoration:none;}
#shopping-island-source:not(:empty) {margin-bottom:18px;text-align:left;}
