@layer reset, base, layout, components, responsive;

@layer components {
  .filing-link { color:var(--muted); font:400 .6875rem/1.7 system-ui,sans-serif; text-decoration:none; }
  .filing-link:hover { text-decoration:underline; text-underline-offset:3px; }
  .filing-link:focus-visible { outline:2px solid var(--accent); outline-offset:4px; border-radius:2px; }
  .login-footer > .filing-link { display:block; margin-top:6px; }
  .site-filing { text-align:center; padding:20px 12px 24px; }
  @media(max-width:767px) { .site-filing { padding-bottom:calc(92px + env(safe-area-inset-bottom)); } }
}

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  body, h1, h2, h3, p, figure { margin: 0; }
  button, input, select, textarea { font: inherit; }
  button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
  button { cursor: pointer; color: inherit; }
  button, input, select, textarea { border-radius: 0; }
  button { border: 0; background: none; }
  a { color: inherit; text-decoration: none; }
  img { display: block; max-width: 100%; object-fit: cover; }
  button:disabled { cursor: not-allowed; opacity: .45; }
  [hidden] { display: none !important; }
}

@layer base {
  :root {
    color-scheme: light;
    --paper: #f9f6f2; --surface: #fffcf9; --ink: #2d292c; --muted: #71676d;
    --rose: #d9c1c8; --rose-light: #f1e5e7; --accent: #735167; --accent-dark: #553b4c;
    --peach: #f4c3b0; --line: #e7dfda; --green: #4b6457;
    --ease: cubic-bezier(.22, .7, .25, 1); --shadow: 0 12px 36px #4e3c480d;
    /* 按内容分工，分别保留跨平台的宋体、手写体和黑体回退。 */
    --font-ui: "Noto Sans SC", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
    --font-editorial: "Noto Serif SC", "Songti SC", "Source Han Serif SC", "STSong", "SimSun", serif;
    --font-handwritten: "KaiTi", "Kaiti SC", "STKaiti", "楷体", "Noto Serif SC", serif;
    --font-latin: "Palatino Linotype", "Book Antiqua", "Baskerville", Georgia, serif;
    --font-numerals: Georgia, "Times New Roman", serif;
    font-family: var(--font-ui);
    font-size: 16px; color: var(--ink); background: var(--paper);
  }
  html { scroll-behavior: smooth; scroll-padding-top: 28px; }
  body { line-height: 1.7; font-weight: 400; }
  body.dialog-open { overflow: hidden; }
  ::selection { background: var(--rose); color: var(--ink); }
  :focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
  h1, h2, h3 { font-weight: 600; line-height: 1.3; }
  p { overflow-wrap: anywhere; }
  small { font-size: .8125rem; color: var(--muted); line-height: 1.65; }
  .icon { width: 21px; height: 21px; flex: 0 0 21px; vertical-align: middle; }
  .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
  .skip-link { position: fixed; left: 16px; top: -100px; z-index: 100; background: var(--ink); color: white; padding: 12px; }
  .skip-link:focus { top: 16px; }
  .eyebrow, .tiny-label { font-size: .6875rem; letter-spacing: .16em; font-weight: 600; color: var(--accent); display: block; }
  .serif-accent { font-family: var(--font-handwritten); font-weight: 400; letter-spacing: -.035em; color: var(--accent); }
  .wordmark { font-family: var(--font-latin); font-style: italic; font-size: 2.4rem; font-weight: 400; letter-spacing: -.055em; line-height: 1; }
  .wordmark > span { color: var(--accent); }
  button, a, input, select, textarea { touch-action: manipulation; }
  a:hover { color: var(--accent); }
}

@layer layout {
  #app { min-height: 100dvh; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: 224px; padding: 38px 24px 20px; border-right: 1px solid var(--line); background: #f5f0eb; display: flex; flex-direction: column; z-index: 15; }
  .brand { display: flex; align-items: center; gap: 9px; width: fit-content; }
  .brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid #c9aab8; border-radius: 50%; color: var(--accent); transform: rotate(-10deg); }
  .brand-mark .icon { width: 20px; height: 20px; stroke-width: 1.5px; }
  .brand-note { margin: 14px 0 42px 3px; font-family: var(--font-handwritten); font-size: .9375rem; letter-spacing: .045em; color: var(--muted); }
  .sidebar nav { display: flex; flex-direction: column; gap: 9px; }
  .workspace { margin-left: 224px; padding: 0 clamp(28px, 3.4vw, 64px); max-width: 1810px; }
  .topbar { height: 91px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); gap: 16px; }
  .topbar-title { font-size: .6875rem; letter-spacing: .11em; color: var(--accent); white-space: nowrap; }
  .topbar-title > span { margin-left: 12px; color: var(--muted); letter-spacing: .04em; font-size: .75rem; }
  main { min-height: calc(100dvh - 177px); outline: 0; }
  .site-footer { margin-top: 48px; padding: 22px 0 30px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: .75rem; }
  .mobile-nav { display: none; }
}

@layer components {
  .nav-item { display: flex; gap: 12px; align-items: center; min-height: 49px; padding: 10px 13px; font-size: .875rem; color: #73686c; border-radius: 8px; transition: background .2s, color .2s; text-align: left; }
  .nav-item .icon { stroke-width: 1.5px; width: 20px; height: 20px; }
  .nav-item.active { background: var(--rose-light); color: var(--accent-dark); font-weight: 600; }
  .nav-item:hover { background: #eee5e1; color: var(--accent-dark); }
  .nav-count { margin-left: auto; font-family: var(--font-numerals); font-size: .875rem; font-variant-numeric: lining-nums tabular-nums; min-width: 21px; height: 21px; display: grid; place-items: center; border-radius: 50%; background: var(--surface); }
  .sidebar-note { margin: 66px 8px 24px; position: relative; }
  .sidebar-note .tiny-label { font-size: .5625rem; letter-spacing: .1em; }
  .sidebar-note p { font-family: var(--font-handwritten); font-size: 1.125rem; font-weight: 400; letter-spacing: 0; line-height: 1.9; margin-top: 22px; color: #68515d; }
  .little-flower { position: absolute; right: 4px; top: 18px; color: #b08b98; font-size: 1.9rem; font-weight: 200; transform: rotate(13deg); }
  .note-line { display: block; width: 28px; height: 1px; background: #c6a8b1; margin: 24px 0 12px; }
  .sidebar-note small { font-size: .6875rem; }
  .sidebar-bottom { margin-top: auto; padding-top: 24px; }
  .quiet-button { min-height: 40px; display: flex; align-items: center; gap: 9px; font-size: .75rem; color: var(--muted); }
  .quiet-button .icon { width: 16px; height: 16px; flex-basis: 16px; }
  .quiet-button:hover { color: var(--accent-dark); }
  .local-label { font-size: .625rem; color: var(--muted); margin: 16px 0 0 2px; }
  .local-label span { margin: 0 4px; }
  .profile-picker { display: flex; align-items: center; gap: 8px; }
  .profile-picker > span { font-size: .75rem; color: var(--muted); margin-right: 6px; }
  .avatar { border-radius: 50%; display: inline-grid; place-items: center; width: 34px; height: 34px; background: #ece3da; color: #796456; font-size: .8125rem; min-width: 34px; }
  .profile-picker button { width: 38px; height: 38px; min-width: 38px; border: 3px solid var(--paper); outline: 1px solid transparent; transition: outline-color .2s; }
  .profile-picker button:last-child { background: #ecdde2; color: var(--accent); }
  .profile-picker button.active { outline-color: var(--accent); }
  .hero { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 458px; gap: 24px; padding: 48px 0 42px; align-items: center; }
  .hero-copy { position: relative; z-index: 1; }
  .hero-copy .eyebrow { display: flex; align-items: center; gap: 8px; font-size: .625rem; }
  .small-heart .icon { width: 15px; height: 15px; flex-basis: 15px; }
  .hero h1 { margin-top: 21px; font-family: var(--font-editorial); font-size: clamp(2.35rem, 3.4vw, 3.85rem); line-height: 1.3; letter-spacing: -.045em; font-weight: 500; }
  .hero h1 .serif-accent { position: relative; font-size: 1.07em; }
  .hero h1 .serif-accent::after { content: ''; position: absolute; width: 94%; height: 7px; border-top: 2px solid #d3a99b; border-radius: 50%; bottom: -9px; left: 0; transform: rotate(-4deg); }
  .hero-copy > p { font-size: .875rem; line-height: 1.9; color: var(--muted); margin-top: 26px; }
  .hero-actions { display: flex; align-items: center; gap: 22px; margin-top: 27px; }
  .button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 11px 18px; border-radius: 6px; border: 1px solid transparent; font-size: .875rem; font-weight: 500; line-height: 1.5; transition: background .2s, box-shadow .2s, transform .25s var(--ease); white-space: nowrap; }
  .button.primary { background: var(--accent); color: white; border-color: var(--accent); }
  .button.primary:hover { background: var(--accent-dark); color: white; box-shadow: 0 5px 14px #73516722; }
  .button.secondary { background: var(--surface); border-color: var(--line); color: var(--ink); }
  .button.secondary:hover { border-color: #c6a7b4; background: #f6eeee; color: var(--accent-dark); }
  .button.danger { color: white; background: #9a4848; }
  .button:active { transform: scale(.98); }
  .button .icon { width: 17px; height: 17px; flex-basis: 17px; }
  .text-button { position: relative; min-height: 44px; padding: 6px 0; font-size: .8125rem; color: var(--accent); }
  .text-button::after { content:''; position:absolute; inset: auto 0 7px; height:1px; background:currentColor; transform:scaleX(0); transform-origin:right; transition:transform .22s var(--ease); }
  .text-button:hover::after, .text-button:focus-visible::after { transform:scaleX(1); transform-origin:left; }
  .hero-footnote { display: flex; align-items: center; margin-top: 28px; }
  .overlap-avatar { width: 25px; height: 25px; display: grid; place-items: center; border: 2px solid var(--paper); border-radius: 50%; background: #e9dccb; font-size: .625rem; color: #755e46; }
  .overlap-avatar.second { background: #e8cbd3; margin-left: -6px; color: var(--accent); }
  .hero-footnote > span:last-child { margin-left: 8px; color: var(--muted); font-size: .6875rem; letter-spacing: .02em; }
  .hero-art { position: relative; height: 358px; width: 100%; max-width: 520px; justify-self: end; }
  .photo-card { background: var(--surface); padding: 9px 9px 0; box-shadow: 0 12px 25px #594e4514; border: 1px solid #e8dfd5; transition: transform .4s var(--ease); }
  .main-photo { position: absolute; left: 4%; top: 0; width: 64%; height: 326px; transform: rotate(-6deg); }
  .main-photo img { width: 100%; height: 264px; object-position: 50% 62%; }
  .main-photo figcaption { display: flex; flex-direction: column; align-items: flex-start; gap: 0; padding: 8px 0 8px 6px; font-family: var(--font-handwritten); font-size: .9375rem; line-height: 1.4; color: #68544f; }
  .main-photo figcaption span:last-child { font-family: var(--font-ui); font-size: .5rem; line-height: 1.4; letter-spacing: .15em; margin-top: 2px; }
  .small-photo { position: absolute; right: 0; bottom: 9px; width: 48%; height: 213px; transform: rotate(8deg); z-index: 2; }
  .small-photo img { width: 100%; height: 164px; object-position: center; }
  .small-photo figcaption { font-family: var(--font-handwritten); font-size: .9375rem; line-height: 1.4; text-align: center; padding: 10px 0; }
  .round-stamp { width: 98px; height: 98px; background: var(--rose-light); border: 1px solid #cbaeb9; border-radius: 50%; position: absolute; right: 2%; top: 17px; display: flex; align-items: center; justify-content: center; flex-direction: column; color: var(--accent); transform: rotate(14deg); z-index: 3; outline: 4px solid var(--paper); }
  .round-stamp span { font-family: var(--font-latin); font-size: .5rem; letter-spacing: .07em; }
  .round-stamp .icon { width: 25px; height: 25px; margin: 5px 0; }
  .hero-image-credit { position: absolute; bottom: -13px; left: 5%; font-size: .5625rem; color: var(--muted); }
  .hero-doodle { position:absolute; width:64px; height:31px; right:10%; top:112px; border-top:1px solid #c4a7a0; border-radius:50%; transform:rotate(-24deg); }
  .browse-controls { padding-top: 23px; scroll-margin-top: 24px; border-top: 1px solid var(--line); }
  .browse-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 23px; }
  .browse-heading .eyebrow { font-size: .5625rem; letter-spacing: .17em; }
  .browse-heading h2 { font-family: var(--font-editorial); font-size: 1.75rem; font-weight: 600; letter-spacing: -.025em; margin-top: 6px; }
  .browse-heading > .button { min-height: 42px; font-size: .8125rem; padding: 8px 13px; }
  .search-region { display: flex; gap: 12px; }
  .search-field { display: flex; align-items: center; gap: 12px; padding: 0 16px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); min-height: 50px; flex: 1; color: #998b91; min-width: 0; }
  .search-field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 2px #7351670c; }
  .search-field input { width: 100%; background: transparent; border: 0; outline: 0; min-height: 46px; min-width: 0; color: var(--ink); font-size: .875rem; }
  input::placeholder, textarea::placeholder { color: #90848a; }
  input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; }
  .select-wrap { display: flex; align-items: center; gap: 7px; position: relative; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); padding: 0 12px; }
  .select-wrap select { border: 0; outline: 0; background: transparent; appearance: none; min-height: 48px; padding: 0 24px 0 4px; color: var(--ink); font-size: .8125rem; width: 100%; cursor: pointer; }
  .select-wrap > .icon:last-child { pointer-events: none; position: absolute; right: 10px; width: 15px; height: 15px; }
  .select-wrap > .icon:first-child { color: var(--accent); width: 17px; height: 17px; flex-basis: 17px; }
  .search-region > .select-wrap { width: 174px; }
  .region-chips { display: flex; flex-wrap: wrap; gap: 4px; margin: 13px 0 19px; }
  .chip { min-height: 38px; padding: 8px 13px; font-size: .8125rem; border-radius: 5px; color: var(--muted); transition: background .18s, color .18s; }
  .chip.active { background: #eee3e6; color: var(--accent-dark); font-weight: 500; }
  .chip:hover { color: var(--accent); background: #f0e9e7; }
  .browse-mode-row { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); gap: 16px; }
  .tabs { display: flex; gap: 28px; }
  .tabs button { min-height: 48px; display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .875rem; position: relative; padding: 0 1px; }
  .tabs button .icon { width: 18px; height: 18px; flex-basis: 18px; }
  .tabs button::after { content:''; position:absolute; bottom:-1px; left:0; right:0; height:2px; background:var(--accent); transform:scaleX(0); transition:transform .24s var(--ease); }
  .tabs button.active { color: var(--accent-dark); font-weight: 600; }
  .tabs button.active::after { transform:scaleX(1); }
  .filter-help { color: var(--muted); font-size: .6875rem; }
  .category-panel { padding: 18px 0 16px; display: flex; flex-wrap: wrap; gap: 9px; min-height: 79px; animation: appear .2s var(--ease); }
  .category-chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: transparent; padding: 8px 11px; min-height: 41px; border-radius: 5px; font-size: .75rem; color: var(--muted); transition: all .18s var(--ease); }
  .category-chip .icon { width: 17px; height: 17px; flex-basis: 17px; }
  .category-chip.active { border-color: var(--accent); color: var(--accent-dark); background: #f3e8eb; }
  .category-chip:hover { border-color: #b99ca9; transform: translateY(-1px); color: var(--accent-dark); }
  .category-chip.more { border-style: dashed; margin-left: auto; }
  .category-chip.more .icon { width: 13px; height: 13px; flex-basis: 13px; }
  .active-filters { display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin: 0 0 12px; font-size:.75rem; color:var(--muted); }
  .selected-filter { display:flex; align-items:center; gap:5px; padding:3px 9px; border-radius:4px; min-height:34px; background:var(--rose-light); color:var(--accent-dark); }
  .selected-filter .icon { width:12px; height:12px; flex-basis:12px; }
  .active-filters .text-button { font-size:.75rem; min-height:34px; }
  .results-toolbar { display:flex; justify-content:space-between; gap:12px; align-items:center; margin:7px 0 20px; }
  .results-toolbar p { font-size:.8125rem; color:var(--muted); }
  .results-toolbar strong { font-family:var(--font-numerals); font-weight:400; font-size:1.25rem; font-variant-numeric:lining-nums tabular-nums; color:var(--ink); }
  .toolbar-selects { display:flex; gap:12px; }
  .toolbar-selects { flex-wrap:wrap; justify-content:flex-end; }
  .toolbar-selects select { appearance:none; background:transparent; border:0; border-bottom:1px solid #c6b8ba; min-height:36px; font-size:.75rem; color:var(--muted); padding:0 3px; cursor:pointer; }
  .shop-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px 20px; }
  .shop-card { border:1px solid var(--line); border-radius:9px; background:var(--surface); overflow:hidden; transition:transform .25s var(--ease),box-shadow .25s var(--ease); min-width:0; }
  .shop-card:hover { box-shadow:var(--shadow); transform:translateY(-3px); }
  .card-image { position:relative; aspect-ratio:1.55; overflow:hidden; background:#e7ddd4; }
  .image-link { display:block; width:100%; height:100%; padding:0; }
  .image-link img { height:100%; width:100%; transition:transform .5s var(--ease); }
  .card-image img.brand-photo,.drawer-photo img.brand-photo { object-fit:contain; padding:40px; background:#f3ece6; }
  .gallery-thumbnails img { object-fit:cover; }
  .shop-card:hover .image-link img { transform:scale(1.035); }
  .save-button { position:absolute; right:12px; top:12px; background:#fffdf8f5; border-radius:50%; width:36px; height:36px; color:#6b555e; display:grid; place-items:center; transition:transform .2s, background .2s; box-shadow:0 2px 5px #0000000a; }
  .save-button .icon { width:19px; height:19px; }
  .save-button:hover { transform:scale(1.08); background:white; }
  .save-button.is-saved { background:var(--rose-light); color:var(--accent); }
  .save-button.is-saved .icon { fill:var(--accent); animation:heart-pop .3s var(--ease); }
  .image-note { position:absolute; bottom:7px; right:9px; font-size:.5625rem; color:white; background:#2d292c79; padding:1px 5px; border-radius:2px; pointer-events:none; }
  .both-badge { position:absolute; bottom:12px; left:12px; display:flex; align-items:center; gap:5px; color:var(--accent-dark); background:#fffcf9ed; padding:4px 7px; font-size:.625rem; border-radius:3px; }
  .both-badge .icon { width:13px; height:13px; flex-basis:13px; }
  .card-content { padding:17px 16px 9px; }
  .card-location { color:var(--muted); font-size:.6875rem; display:flex; align-items:center; gap:6px; line-height:1.5; }
  .card-location span { color:#bcaab1; }
  .shop-card h3 { font-family:var(--font-editorial); font-size:1.1875rem; margin-top:7px; line-height:1.55; min-height:3rem; font-weight:600; letter-spacing:-.015em; }
  .shop-card h3 button { text-align:left; padding:0; min-height:36px; }
  .shop-card h3 button:hover { color:var(--accent); }
  .card-tags { display:flex; flex-wrap:wrap; gap:5px; margin-top:9px; min-height:25px; }
  .card-tags button { color:#7a646d; background:#f3ece8; padding:3px 6px; font-size:.625rem; border-radius:3px; min-height:25px; }
  .card-tags button:hover { color:var(--accent-dark); background:var(--rose-light); }
  .card-meta { margin-top:12px; min-height:27px; }
  .score { display:flex; align-items:center; gap:4px; font-family:var(--font-numerals); font-size:.8125rem; font-weight:400; font-variant-numeric:lining-nums tabular-nums; }
  .score .icon { width:14px; height:14px; flex-basis:14px; color:#9b743a; fill:#9b743a; stroke-width:1px; }
  .score small { font-family:var(--font-ui); font-weight:400; color:var(--muted); margin-left:3px; font-size:.625rem; }
  .score.no-score { font-family:var(--font-ui); font-weight:400; color:var(--muted); font-size:.75rem; }
  .score.no-score .icon { fill:none; color:var(--muted); }
  .card-bottom { display:flex; align-items:center; gap:6px; justify-content:space-between; margin-top:11px; border-top:1px solid #eee8e3; padding-top:6px; min-height:43px; }
  .verification { display:inline-flex; align-items:center; gap:4px; font-size:.625rem; color:var(--green); white-space:nowrap; }
  .verification .icon { width:13px; height:13px; flex-basis:13px; }
  .verification.pending,.verification.conflict { color:#946c42; }
  .verification.platform,.verification.user { color:var(--muted); }
  .want-button { display:flex; align-items:center; gap:3px; min-height:36px; font-size:.6875rem; color:var(--muted); padding:0; }
  .want-button .icon { width:13px; height:13px; flex-basis:13px; }
  .want-button.voted { color:var(--accent); }
  .list-footnote { font-size:.6875rem; color:var(--muted); margin-top:26px; text-align:center; line-height:1.8; }
  .empty-state { min-height:280px; padding:54px 20px; border:1px dashed #d7c9cc; border-radius:9px; text-align:center; background:#fcf8f4; }
  .empty-state > .icon { width:40px; height:40px; color:#bfa0ae; margin:0 auto 20px; }
  .empty-state h3 { font-family:var(--font-editorial); font-size:1.375rem; font-weight:500; }
  .empty-state p { color:var(--muted); font-size:.875rem; margin:12px 0 22px; }
  .empty-state > div { display:flex; gap:12px; justify-content:center; flex-wrap:wrap; }
  .page-intro { padding:48px 0 40px; }
  .page-intro h1, .saved-heading h1 { font-family:var(--font-editorial); font-size:clamp(2.25rem,3vw,3.5rem); letter-spacing:-.035em; line-height:1.35; font-weight:500; margin-top:20px; }
  .page-intro > p { color:var(--muted); font-size:.875rem; max-width:600px; margin-top:20px; line-height:1.9; }
  .page-intro .button { margin-top:24px; }
  .saved-heading { padding:46px 0 38px; }
  .saved-heading p { color:var(--muted); margin-top:18px; font-size:.875rem; }
  .plans-section { display:flex; flex-direction:column; gap:24px; }
  .plan-card { padding:28px; border:1px solid var(--line); border-radius:9px; background:var(--surface); }
  .plan-header { display:flex; justify-content:space-between; align-items:flex-start; gap:16px; }
  .plan-header h2 { font-family:var(--font-editorial); font-size:1.625rem; letter-spacing:-.02em; margin-top:9px; }
  .plan-header p { margin-top:10px; color:var(--muted); font-size:.875rem; white-space:pre-line; }
  .plan-stops { margin:24px 0 16px; }
  .plan-stop { display:flex; align-items:center; gap:16px; padding:18px 0; border-top:1px solid var(--line); transition:opacity .2s; }
  .plan-stop > img { width:64px; height:64px; border-radius:6px; }
  .stop-check { width:32px; height:32px; border-radius:50%; border:1px solid #d1b7c2; color:var(--accent); display:grid; place-items:center; flex-shrink:0; font-size:.875rem; }
  .stop-check.checked { background:var(--accent); color:white; }
  .plan-stop.done .stop-info > button { text-decoration:line-through; color:var(--muted); }
  .stop-info { flex:1; min-width:0; }
  .stop-info > button { font-size:.9375rem; font-weight:500; text-align:left; padding:0; }
  .stop-info > small { display:block; margin-top:4px; }
  .stop-time { display:flex; align-items:center; gap:5px; margin-top:6px; color:var(--muted); }
  .stop-time .icon { width:14px; height:14px; flex-basis:14px; }
  .stop-time input { background:transparent; color:var(--muted); border:0; min-height:30px; font-size:.75rem; max-width:120px; }
  .stop-actions { display:flex; gap:2px; flex-wrap:wrap; }
  .icon-button { width:38px; height:38px; display:inline-grid; place-items:center; border-radius:5px; color:var(--muted); flex-shrink:0; }
  .icon-button .icon { width:18px; height:18px; }
  .icon-button:hover { color:var(--accent); background:var(--rose-light); }
  .add-stop-button { display:flex; gap:8px; align-items:center; justify-content:center; width:100%; min-height:48px; border:1px dashed #cdb8c1; border-radius:6px; color:var(--accent); font-size:.875rem; }
  .add-stop-button:hover { background:var(--rose-light); }
  .plan-empty { color:var(--muted); font-size:.875rem; padding:24px 0; }
  .audit-intro { padding-bottom:30px; }
  .audit-summary { display:grid; grid-template-columns:repeat(3,1fr); border-block:1px solid var(--line); padding:24px 0; }
  .audit-summary > div { display:flex; align-items:baseline; gap:14px; border-right:1px solid var(--line); padding:0 30px; }
  .audit-summary > div:first-child { padding-left:0; }
  .audit-summary > div:last-child { border:0; }
  .audit-summary strong { font-family:var(--font-numerals); font-variant-numeric:lining-nums tabular-nums; color:var(--accent); font-size:2.5rem; font-weight:400; line-height:1; }
  .audit-summary span { color:var(--muted); font-size:.8125rem; }
  .notice { margin:24px 0; display:flex; align-items:flex-start; gap:12px; padding:16px 20px; background:#f1e8e7; border-radius:6px; font-size:.8125rem; color:#71555e; }
  .notice .icon { margin-top:2px; width:18px; height:18px; flex-basis:18px; }
  .notice strong { font-weight:600; }
  .audit-toolbar { display:flex; gap:12px; margin:28px 0 16px; }
  .audit-toolbar .select-wrap { min-width:170px; }
  .audit-table-wrap { overflow-x:auto; border:1px solid var(--line); border-radius:7px; background:var(--surface); }
  .audit-table { width:100%; border-collapse:collapse; font-size:.8125rem; text-align:left; min-width:850px; }
  .audit-table th { color:var(--muted); font-size:.75rem; background:#f3eeea; font-weight:500; padding:14px 18px; white-space:nowrap; }
  .audit-table td { padding:18px; border-top:1px solid var(--line); vertical-align:top; }
  .audit-table td:first-child { width:25%; }
  .audit-table td:nth-child(3) { min-width:155px; }
  .audit-table small { display:block; margin-top:5px; font-size:.6875rem; }
  .audit-table .verification { font-size:.6875rem; }
  .table-shop { text-align:left; font-weight:500; padding:0; color:var(--ink); }
  .table-shop:hover { color:var(--accent); }
  .audit-table a { color:var(--accent); font-size:.6875rem; }
  .audit-table a .icon { width:12px; height:12px; margin-left:2px; }
  dialog { border:1px solid var(--line); background:var(--surface); color:var(--ink); box-shadow:0 20px 100px #2d292c26; padding:0; max-height:90dvh; }
  dialog::backdrop { background:#2d292c60; backdrop-filter:blur(3px); animation:backdrop-in .2s var(--ease); }
  .modal { width:min(600px,calc(100% - 32px)); border-radius:12px; padding:28px; animation:modal-in .25s var(--ease); }
  .dialog-top { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; margin-bottom:24px; }
  .dialog-top h2 { min-width:0;overflow-wrap:anywhere;font-family:var(--font-editorial); font-size:1.5rem; font-weight:500; letter-spacing:-.02em; margin-top:6px; }
  .dialog-top .eyebrow { font-size:.5625rem; }
  .dialog-top > .icon-button { flex:0 0 auto;margin-right:-6px; margin-top:-4px; }
  .modal > p { color:var(--muted); font-size:.875rem; margin-bottom:20px; }
  form label { display:flex; flex-direction:column; gap:8px; font-size:.875rem; margin-bottom:18px; }
  form input:not([type=checkbox]),form textarea,form select { width:100%; padding:11px 12px; min-height:46px; background:#fcf9f6; border:1px solid var(--line); border-radius:5px; color:var(--ink); outline:0; font-size:.875rem; }
  form input:focus, form textarea:focus, form select:focus { border-color:var(--accent); box-shadow:0 0 0 2px #73516711; }
  form textarea { resize:vertical; }
  .form-grid { display:grid; grid-template-columns:1fr 1fr; column-gap:16px; }
  .form-grid .full { grid-column:1/-1; }
  fieldset { border:0; padding:0; margin:0 0 20px; min-width:0; }
  legend { font-size:.875rem; padding:0; margin-bottom:10px; }
  legend small { font-size:.6875rem; margin-left:8px; }
  .category-checkboxes { display:flex; flex-wrap:wrap; gap:8px; }
  .category-checkboxes label { display:flex; flex-direction:row; align-items:center; position:relative; font-size:.75rem; margin:0; cursor:pointer; }
  .category-checkboxes input { position:absolute; opacity:0; width:1px; height:1px; }
  .category-checkboxes span { border:1px solid var(--line); padding:8px 10px; border-radius:4px; }
  .category-checkboxes input:checked + span { background:var(--rose-light); border-color:var(--accent); color:var(--accent); }
  .category-checkboxes input:focus-visible + span { outline:2px solid var(--accent); outline-offset:2px; }
  .form-error { color:#9a4848; font-size:.8125rem; margin-bottom:12px; }
  .form-error:empty { display:none; }
  .form-footer { display:flex; justify-content:space-between; align-items:center; gap:16px; border-top:1px solid var(--line); padding-top:20px; }
  .form-footer > span { font-size:.75rem; color:var(--muted); }
  form.password-change-form input { font-size:16px; }
  .password-form-note { margin:-8px 0 18px; color:var(--muted); font-size:.75rem; line-height:1.7; }
  .password-visibility { min-height:44px; margin-bottom:8px; }
  .password-change-form .form-footer { flex-wrap:wrap; }
  .password-change-form .form-footer .button { margin-left:auto; }
  .drawer { width:min(630px,100%); height:100dvh; max-height:100dvh; max-width:100%; margin:0 0 0 auto; border:0; border-left:1px solid var(--line); animation:drawer-in .3s var(--ease); overflow-y:auto; overscroll-behavior:contain; }
  .drawer > .dialog-top { padding:23px 28px 17px; margin:0; position:sticky; top:0; background:var(--surface); z-index:3; border-bottom:1px solid var(--line); }
  .drawer > .dialog-top h2 { font-size:1rem; margin-top:4px; }
  .drawer-photo { position:relative; height:240px; margin:22px 28px 0; border-radius:6px; overflow:hidden; background:#e7ddd4; }
  .drawer-photo img { width:100%; height:100%; }
  .drawer-photo > span { position:absolute; bottom:12px; right:12px; color:white; font-size:.625rem; background:#2d292c80; padding:3px 7px; border-radius:3px; }
  .gallery-thumbnails { display:flex; gap:10px; padding:14px 28px 0; overflow-x:auto; }
  .gallery-thumbnails button { padding:3px; border:1px solid transparent; border-radius:5px; flex:0 0 80px; min-height:58px; }
  .gallery-thumbnails button.active { border-color:var(--accent); background:var(--rose-light); }
  .gallery-thumbnails img { width:72px; height:50px; border-radius:3px; }
  .photo-attribution { margin:10px 28px 0; font-size:.75rem; line-height:1.8; color:var(--muted); }
  .photo-attribution a { color:var(--accent); }
  .photo-attribution .icon { width:12px; height:12px; margin-left:3px; }
  .photo-attribution small { display:block; font-size:.75rem; }
  .drawer-body { padding:26px 28px 40px; }
  .shop-title { font-family:var(--font-editorial); font-size:1.75rem; font-weight:600; line-height:1.5; letter-spacing:-.015em; margin-top:9px; }
  .detail-tags { display:flex; flex-wrap:wrap; gap:8px; margin-top:14px; }
  .detail-tags button { padding:5px 9px; background:#f2e9e6; border-radius:4px; font-size:.75rem; color:var(--accent); }
  .detail-actions { display:flex; gap:8px; flex-wrap:wrap; margin:24px 0 18px; }
  .detail-actions .button { padding:10px 12px; font-size:.8125rem; }
  .detail-wishes { display:flex; align-items:center; gap:22px; }
  .detail-wishes > span { display:flex; align-items:center; gap:7px; color:var(--muted); font-size:.75rem; }
  .detail-wishes > span.wanted { color:var(--accent); }
  .detail-wishes .avatar { width:25px; height:25px; min-width:25px; font-size:.625rem; }
  .detail-section { margin-top:27px; border-top:1px solid var(--line); padding-top:24px; }
  .detail-section h3 { font-size:1rem; margin-bottom:15px; display:flex; align-items:center; justify-content:space-between; gap:12px; }
  .detail-section p { font-size:.875rem; line-height:1.8; }
  .detail-section small { display:block; margin-top:9px; }
  .with-icon { display:flex; align-items:flex-start; gap:9px; }
  .with-icon .icon { width:18px; height:18px; flex-basis:18px; margin-top:4px; color:var(--accent); }
  .mall-link { display:flex; gap:8px; align-items:center; font-size:.8125rem; color:var(--accent); padding:8px 0; margin-top:5px; text-align:left; }
  .mall-link .icon { width:17px; height:17px; flex-basis:17px; }
  .navigation-controls { display:flex; gap:8px; align-items:center; margin-top:15px; }
  .navigation-controls .select-wrap select { min-height:44px; }
  .navigation-controls .button { flex:1; font-size:.8125rem; padding-inline:10px; }
  .evidence-note { font-size:.8125rem; color:#82613f; padding:12px 14px; background:#f3ece2; border-radius:4px; margin-top:12px; line-height:1.8; }
  .phone-link { display:block; color:var(--accent); font-size:.8125rem; margin-top:12px; }
  .detail-rating { display:flex; align-items:baseline; gap:12px; margin-bottom:14px; }
  .detail-rating strong { font-family:var(--font-numerals); font-variant-numeric:lining-nums tabular-nums; font-size:1.875rem; color:var(--accent); font-weight:400; }
  .detail-rating span { color:var(--muted); font-size:.8125rem; }
  .detail-section a:not(.button) { color:var(--accent); font-size:.8125rem; display:inline-block; margin-top:9px; }
  .detail-section a:not(.button) .icon { width:13px; height:13px; margin-left:3px; }
  .evidence-list { display:flex; flex-direction:column; gap:14px; }
  .evidence-list > div { padding:14px; background:#f6f0eb; border-radius:5px; }
  .evidence-list a { font-size:.8125rem; color:var(--accent); overflow-wrap:anywhere; }
  .evidence-list a .icon { width:13px; height:13px; }
  .evidence-list small { margin-top:5px; font-size:.6875rem; }
  .evidence-list p { font-size:.75rem; color:var(--muted); margin-top:7px; }
  .detail-section > label { font-size:.8125rem; color:var(--muted); }
  #shop-note { display:block; width:100%; border:1px solid var(--line); background:#fcf9f6; border-radius:5px; padding:12px; margin:10px 0 12px; color:var(--ink); font-size:.875rem; resize:vertical; min-height:120px; }
  .partner-note { padding:15px; background:#f3e9eb; border-radius:5px; margin-top:18px; font-size:.8125rem; }
  .partner-note strong { font-size:.75rem; color:var(--accent); }
  .partner-note p { font-size:.8125rem; margin-top:7px; white-space:pre-line; }
  .choice-list { display:flex; flex-direction:column; gap:9px; margin-bottom:20px; }
  .choice-list button { text-align:left; display:flex; flex-wrap:wrap; align-items:center; gap:4px 12px; position:relative; padding:15px 44px 15px 16px; border:1px solid var(--line); border-radius:6px; min-height:76px; }
  .choice-list button:hover { border-color:var(--accent); background:var(--rose-light); }
  .choice-list strong { font-size:.875rem; font-weight:500; width:100%; }
  .choice-list span { font-size:.75rem; color:var(--muted); }
  .choice-list .icon { position:absolute; right:14px; top:calc(50% - 10px); color:var(--accent); }
  .stop-choices { margin-top:20px; max-height:50dvh; overflow-y:auto; }
  .toast-stack { position:fixed; bottom:28px; left:50%; transform:translateX(-50%); z-index:100; display:flex; flex-direction:column; align-items:center; gap:10px; width:max-content; max-width:calc(100% - 32px); pointer-events:none; }
  .toast { pointer-events:auto; display:flex; align-items:center; gap:10px; padding:10px 12px 10px 18px; border:1px solid #d7c6ce; border-radius:8px; background:#fffcf9; box-shadow:0 8px 32px #2d292c20; font-size:.8125rem; animation:toast-in .25s var(--ease); }
  .toast > .icon { width:18px; height:18px; color:var(--accent); }
  .toast.error { color:#9a4848; border-color:#dab9b3; }
  .toast.error > .icon { color:#9a4848; }
  .initial-loading, .load-error { display:flex; flex-direction:column; align-items:center; justify-content:center; min-height:100dvh; padding:32px; gap:24px; text-align:center; }
  .initial-loading p, .load-error p { color:var(--muted); font-size:.875rem; }
  .loading-bar { width:120px; height:3px; background:#e8d9df; border-radius:3px; overflow:hidden; }
  .loading-bar::after { content:''; display:block; width:40%; height:100%; background:var(--accent); animation:loading 1.2s var(--ease) infinite; }
  @keyframes appear { from { opacity:0; transform:translateY(4px); } to { opacity:1; transform:none; } }
  @keyframes modal-in { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:none; } }
  @keyframes drawer-in { from { opacity:.6; transform:translateX(40px); } to { opacity:1; transform:none; } }
  @keyframes backdrop-in { from { opacity:0; } to { opacity:1; } }
  @keyframes toast-in { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:none; } }
  @keyframes heart-pop { 0% { transform:scale(.8); } 65% { transform:scale(1.12); } 100% { transform:scale(1); } }
  @keyframes loading { 0% { transform:translateX(-100%); } 100% { transform:translateX(350%); } }
}

@layer responsive {
  @media(min-width:1700px) { .hero { min-height:510px; } .hero-art { height:390px; } .main-photo { height:350px; } .main-photo img { height:286px; } .small-photo { height:235px; } .small-photo img { height:185px; } .shop-grid { gap:28px; } .card-content { padding:20px 20px 12px; } }
  @media(max-width:1279px) { .sidebar { width:196px; padding:34px 18px 20px; } .workspace { margin-left:196px; padding-inline:28px; } .shop-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:22px; } .hero { min-height:425px; gap:10px; } .hero-art { height:310px; } .main-photo { width:68%; height:278px; left:1%; } .main-photo img { height:219px; } .small-photo { width:51%; height:184px; bottom:4px; } .small-photo img { height:137px; } .round-stamp { width:78px; height:78px; right:0; top:4px; } .round-stamp span { font-size:.4rem; } .round-stamp .icon { width:21px; height:21px; margin:3px 0; } .hero-copy > p { font-size:.8125rem; } .hero-actions { gap:14px; } .hero-actions .button { padding:10px 12px; font-size:.8125rem; } .hero-actions .text-button { font-size:.75rem; } .topbar-title { font-size:.625rem; } .topbar-title > span { margin-left:6px; } .sidebar-note { margin-top:54px; } .audit-summary > div { padding-inline:20px; flex-direction:column; gap:8px; } }
  @media(max-width:1023px) { .sidebar { width:178px; padding-inline:14px; } .workspace { margin-left:178px; padding-inline:24px; } .brand { gap:7px; } .brand .wordmark { font-size:2rem; } .brand-mark { width:29px; height:29px; } .nav-item { font-size:.8125rem; gap:8px; padding-inline:10px; } .hero { grid-template-columns:1.15fr 1fr; min-height:390px; } .hero h1 { font-size:2.5rem; } .hero-art { height:284px; } .main-photo { height:254px; } .main-photo img { height:198px; } .small-photo { height:158px; } .small-photo img { height:115px; } .small-photo figcaption { font-size:.625rem; } .main-photo figcaption { font-size:.625rem; } .hero-copy > p br { display:none; } .hero-actions { gap:8px; flex-wrap:wrap; margin-top:18px; } .hero-footnote { margin-top:16px; } .hero-copy > p { margin-top:21px; } .topbar-title > span { display:none; } .profile-picker > span { font-size:.6875rem; } .filter-help { display:none; } .category-chip.more { margin-left:0; } .card-content { padding:16px 14px 8px; } .plan-stop { gap:10px; } .stop-actions { max-width:76px; } .stop-actions .icon-button { width:34px; height:34px; } }
  @media(max-width:767px) { .sidebar { display:none; } .workspace { margin-left:0; padding-inline:24px; } .topbar { height:72px; } .topbar-title { font-family:Georgia,serif; font-style:italic; letter-spacing:-.04em; color:var(--ink); font-size:1.25rem; } .topbar-title::before { content:'djwyy · '; font-size:1.625rem; } .topbar-title { font-size:0; } .profile-picker > span { font-size:.6875rem; } .profile-picker { gap:7px; } .profile-picker button { width:34px; height:34px; min-width:34px; } .hero { padding:32px 0 34px; gap:12px; min-height:388px; } .hero h1 { font-size:clamp(2.15rem,5.5vw,3.1rem); margin-top:16px; } .hero-copy .eyebrow { font-size:.5rem; letter-spacing:.1em; } .hero-copy > p { font-size:.75rem; max-width:250px; line-height:1.8; margin-top:22px; } .hero-art { height:280px; } .main-photo { height:246px; width:71%; left:0; } .main-photo img { height:190px; } .small-photo { width:52%; height:162px; right:0; bottom:0; } .small-photo img { height:116px; } .hero-image-credit { font-size:.5rem; bottom:-19px; } .hero-actions .button { min-height:44px; padding:10px 12px; font-size:.75rem; } .hero-actions .text-button { font-size:.75rem; min-height:36px; } .hero-footnote { margin-top:13px; } .hero-footnote > span:last-child { font-size:.625rem; } .hero-doodle { display:none; } .hero-actions { gap:5px 14px; } .round-stamp { width:72px; height:72px; } .browse-heading h2 { font-size:1.5rem; } .browse-heading { gap:10px; margin-bottom:20px; } .browse-heading .button { padding:8px 11px; font-size:.75rem; } .search-region > .select-wrap { display:none; } .region-chips { margin-top:12px; gap:4px; } .chip { padding:8px 10px; font-size:.75rem; } .tabs { gap:24px; } .tabs button { font-size:.8125rem; } .shop-grid { gap:20px 16px; } .card-location { font-size:.625rem; flex-wrap:wrap; gap:3px; } .shop-card h3 { font-size:.9375rem; } .score { flex-wrap:wrap; } .score small { margin:0; } .card-meta { min-height:40px; } .card-bottom { align-items:flex-start; flex-direction:column; gap:1px; min-height:61px; padding-top:9px; } .card-content { padding-inline:12px; } .verification { font-size:.625rem; } .want-button { min-height:30px; } .site-footer { margin-top:36px; margin-bottom:64px; padding-top:18px; flex-direction:column; gap:5px; font-size:.625rem; } .site-footer > span:last-child { display:none; } .mobile-nav { display:flex; position:fixed; inset:auto 0 0; height:68px; padding:4px 12px max(4px,env(safe-area-inset-bottom)); border-top:1px solid var(--line); background:#fffcf9f5; backdrop-filter:blur(10px); z-index:20; justify-content:space-around; } .mobile-nav button { flex:1; display:flex; align-items:center; justify-content:center; gap:5px; flex-direction:column; color:var(--muted); font-size:.625rem; padding:7px 2px; } .mobile-nav button .icon { width:21px; height:21px; } .mobile-nav button.active { color:var(--accent); font-weight:600; } .toast-stack { bottom:80px; } .page-intro { padding:34px 0; } .page-intro h1,.saved-heading h1 { font-size:2.5rem; } .page-intro > p { font-size:.8125rem; } .plan-card { padding:20px; } .plan-header h2 { font-size:1.25rem; } .plan-stop { gap:10px; flex-wrap:wrap; } .plan-stop > img { width:50px; height:50px; } .stop-info > button { font-size:.8125rem; } .stop-check { width:28px; height:28px; } .stop-actions { max-width:none; margin-left:auto; gap:8px; } .stop-actions .icon-button { width:36px; height:36px; } .audit-summary > div { padding-inline:12px; } .audit-summary strong { font-size:2rem; } .audit-summary span { font-size:.6875rem; } .notice { padding:14px; font-size:.75rem; } .audit-toolbar { gap:8px; } .audit-toolbar .select-wrap { min-width:0; flex:1; } .saved-heading { padding-top:34px; } .modal { padding:24px; } .drawer > .dialog-top { padding:18px 24px 14px; } .drawer-photo { margin-inline:24px; height:210px; } .drawer-body { padding:24px; } .shop-title { font-size:1.5rem; } .detail-actions .button { font-size:.75rem; padding:10px; } .detail-section h3 { font-size:.9375rem; } }
  @media(max-width:479px) { .hero { display:block; padding-top:29px; padding-bottom:28px; position:relative; min-height:0; } .hero-copy { width:100%; } .hero h1 { font-size:2.55rem; width:70%; } .hero-copy > p { max-width:270px; font-size:.8125rem; margin-top:22px; } .hero-art { position:absolute; right:0; top:36px; width:112px; height:142px; z-index:0; } .main-photo { width:106px; height:132px; padding:5px; left:0; top:8px; transform:rotate(8deg); } .main-photo img { height:105px; object-position:center; } .main-photo figcaption { font-size:.5rem; padding:4px 0; } .main-photo figcaption span:last-child { display:none; } .small-photo,.round-stamp,.hero-image-credit { display:none; } .hero-actions { gap:20px; margin-top:24px; } .hero-actions .button { font-size:.8125rem; padding-inline:14px; } .hero-footnote { margin-top:18px; } .hero-art::after { content:attr(data-image-label); position:absolute; right:4px; bottom:-10px; color:var(--muted); font-size:.5rem; } .browse-controls { padding-top:24px; } .browse-heading .eyebrow { font-size:.5rem; letter-spacing:.1em; } .browse-heading h2 { font-size:1.35rem; } .browse-heading .button { padding-inline:9px; font-size:.6875rem; min-height:40px; gap:4px; } .browse-heading .button .icon { width:14px; height:14px; flex-basis:14px; } .category-panel { gap:7px; } .category-chip { padding:8px 9px; font-size:.6875rem; min-height:39px; } .category-chip .icon { width:15px; height:15px; flex-basis:15px; } .region-chips { gap:2px; } .chip { padding-inline:9px; } .results-toolbar p { font-size:.75rem; } .results-toolbar p > span { display:none; } .shop-grid { grid-template-columns:1fr; gap:22px; } .card-image { aspect-ratio:1.65; } .card-content { padding:17px 17px 9px; } .shop-card h3 { font-size:1rem; min-height:0; } .shop-card h3 button { min-height:36px; } .card-location { font-size:.6875rem; } .card-tags { margin-top:8px; } .card-tags button { font-size:.6875rem; } .score small { margin-left:4px; font-size:.6875rem; } .card-meta { min-height:25px; } .card-bottom { flex-direction:row; align-items:center; min-height:42px; padding-top:6px; margin-top:10px; } .verification { font-size:.6875rem; } .want-button { font-size:.75rem; min-height:36px; } .save-button { width:40px; height:40px; } .image-note { font-size:.625rem; } .results-toolbar { align-items:center; } .toolbar-selects { gap:8px; } .toolbar-selects select { font-size:.6875rem; } .audit-summary strong { font-size:1.8rem; } .audit-summary span { line-height:1.6; } .page-intro h1,.saved-heading h1 { font-size:2.25rem; } .form-grid { grid-template-columns:1fr; } .form-grid .full { grid-column:auto; } .form-footer { flex-wrap:wrap; } .drawer-photo { height:180px; } .navigation-controls { flex-wrap:wrap; } .navigation-controls .button { min-width:150px; } .detail-actions { gap:6px; } .detail-actions .button { font-size:.75rem; padding-inline:10px; } .toast { padding-left:12px; font-size:.75rem; } }
  @media(max-width:1023px) { .sidebar-note p { font-size:1rem; } }
  @media(hover:none) { .shop-card:hover { transform:none; box-shadow:none; } .image-link img { transform:none!important; } .button:active { transform:scale(.98); } }
  /* 任务相关标签采用14px下限，装饰英文和次级出处可更小。 */
  .chip,.category-chip,.card-tags button,.verification,.want-button,.card-location,.toolbar-selects select { font-size:.875rem; }
  .card-location { line-height:1.65; }
  .score,.score.no-score { font-size:.875rem; }
  .score small { font-size:.8125rem; }
  .card-bottom { flex-wrap:wrap; }
  .shop-card h3 { min-height:0; }
  .category-chip { min-height:44px; }
  .chip { min-height:44px; }
  .card-tags button { min-height:32px; }
  .verification { white-space:normal; }
  @media(max-width:767px) { .mobile-nav button { font-size:.75rem; } .profile-picker > span { font-size:.75rem; } }
  @media(max-width:479px) {
    .hero h1 { font-size:2.1rem; width:100%; white-space:nowrap; }
    .hero-art { width:92px; height:122px; top:34px; right:-2px; }
    .main-photo { width:86px; height:114px; }
    .main-photo img { height:86px; }
    .main-photo figcaption { font-size:.4375rem; }
    .hero-copy > p { max-width:100%; }
    .hero-actions { gap:16px; }
    .browse-heading .button { font-size:.8125rem; }
    .browse-heading h2 { font-size:1.25rem; }
    .card-bottom { flex-direction:row; }
    .save-button { width:44px; height:44px; }
    .card-tags button { min-height:40px; }
    .want-button { min-height:44px; }
    .topbar-title::before { font-size:1.625rem; }
  }
  /* 安全区作为额外空间保留，不能挤占导航按钮的实际点击区域。 */
  @media(max-width:767px) {
    .workspace { padding-left:max(24px,env(safe-area-inset-left)); padding-right:max(24px,env(safe-area-inset-right)); }
    .topbar { height:calc(72px + env(safe-area-inset-top)); padding-top:env(safe-area-inset-top); }
    .mobile-nav { height:calc(68px + env(safe-area-inset-bottom)); padding-bottom:calc(4px + env(safe-area-inset-bottom)); }
    .mobile-nav button { min-height:48px; padding-block:4px; line-height:1.3; }
    .site-footer { margin-bottom:calc(80px + env(safe-area-inset-bottom)); }
    .toast-stack { bottom:calc(80px + env(safe-area-inset-bottom)); }
    .drawer > .dialog-top { padding-top:calc(18px + env(safe-area-inset-top)); }
    .drawer-body { padding-bottom:calc(32px + env(safe-area-inset-bottom)); }
    .modal { max-height:calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); overscroll-behavior:contain; }
    /* 保留原来的字体分工，只放大可编辑控件和点按目标。 */
    input:not([type="checkbox"]):not([type="radio"]),textarea,select,#shop-search,#shop-note { font-size:1rem; min-width:0; max-width:100%; }
    .button,.text-button,.card-tags button,.detail-tags button,.mall-link { min-height:44px; }
    .icon-button,.profile-picker button,.stop-check,.stop-actions .icon-button { min-width:44px; min-height:44px; width:44px; height:44px; }
    .category-checkboxes span { display:flex; align-items:center; min-height:44px; }
    .browse-heading { flex-wrap:wrap; }
    .results-toolbar { flex-wrap:wrap; align-items:flex-start; gap:12px; }
    .toolbar-selects { flex:1 1 260px; min-width:0; justify-content:flex-end; }
    .toolbar-selects select { flex:1 1 120px; font-size:1rem; min-height:44px; min-width:0; max-width:100%; }
  }
  @media(prefers-reduced-motion:reduce) { *,*::before,*::after { animation:none!important; transition:none!important; scroll-behavior:auto!important; } html { scroll-behavior:auto; } .tilt,.magnetic { transform:none!important; } }
}
