:root {
  color-scheme: light;
  --paper: #fffaf8;
  --ink: #271c29;
  --muted: #716772;
  --line: #e9dde2;
  --accent: #a81e61;
  --soft: #fce1ed;
  --mat: #e6e4e2;
  --sans: "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
  --serif: "Baskerville", "Bodoni 72", Georgia, serif;
}
* { box-sizing: border-box }
body { margin: 0; background: #eee6e9; color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased }
button, input, select, a { font: inherit; color: inherit; -webkit-tap-highlight-color: transparent }
button { cursor: pointer; padding: 0; border: 0; background: none }
a { text-decoration: none }
:where(button, select, a, input):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px }
#shell { background: var(--paper); margin: auto; max-width: 490px; min-height: 100vh; min-height: 100dvh; position: relative; padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)) }
.icon { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: middle }

#header { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: env(safe-area-inset-top, 0px) 16px 0; height: calc(54px + env(safe-area-inset-top, 0px)); background: var(--paper); border-bottom: 1px solid var(--line) }
.mast { width: 100%; display: flex; align-items: center; justify-content: space-between }
.brand { display: inline-flex; align-items: center; white-space: nowrap }
.brand img { height: 26px; width: 26px; margin-right: 6px }
.brand b { font-size: 20px; font-weight: 750; letter-spacing: -.04em }
.follow-author { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-height: 40px; padding: 0 13px; border-radius: 999px; background: #c41f6c; color: #fff; font-size: 13px; font-weight: 750; white-space: nowrap }
.follow-author .icon { width: 14px; height: 14px; stroke-width: 2 }
.follow-author:active { background: #a81e61 }
@media (prefers-reduced-motion: no-preference) {
  .follow-hint { animation: follow-pulse 2.4s ease-in-out infinite }
  @keyframes follow-pulse {
    45% { transform: scale(1.035); box-shadow: 0 0 0 4px #f1a2c870 }
  }
}
.item-header > .brand { position: absolute; left: 50%; transform: translateX(-50%) }
.back { display: inline-flex; align-items: center; justify-content: center; gap: 1px; font-size: 12px; font-weight: 650; color: #fff; background: var(--accent); border-radius: 999px; padding: 0 11px 0 6px; min-height: 35px; position: relative }
.back::after { content: ""; position: absolute; inset: -5px 0 }
.back .icon { width: 16px }
.item-marks,.wardrobe-groups { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border:1px solid var(--line);border-radius:9px;background:var(--paper);overflow:hidden }
.item-marks button,.wardrobe-groups button { display:flex;align-items:center;justify-content:center;gap:5px;min-width:0;min-height:34px;color:var(--muted);font-size:12px;font-weight:600 }
.item-marks button+button,.wardrobe-groups button+button { border-left:1px solid var(--line) }
.item-marks button[aria-pressed=true],.wardrobe-groups button[aria-pressed=true] { background:var(--soft);color:var(--accent) }
.item-marks [data-mark=owned][aria-pressed=true],.wardrobe-groups [data-shelf-mark=owned][aria-pressed=true] { background:#deeee8;color:#1b604c }
.item-marks .icon { width:15px;height:15px }
.item-marks button:focus-visible,.wardrobe-groups button:focus-visible { outline-offset:-3px }
.card .item-marks { margin-top:7px }
.wardrobe-groups { margin:0 0 14px }
.wardrobe-groups button { min-height:44px;font-size:14px }
.wardrobe-groups b { font-variant-numeric:tabular-nums }
.detail:has(> .item-marks) { padding-bottom:66px }
.detail > .item-marks { position:fixed;z-index:4;bottom:calc(62px + env(safe-area-inset-bottom,0px));left:50%;transform:translateX(-50%);width:min(304px,calc(100% - 32px));border-color:#d6bbc8;border-radius:14px;box-shadow:0 4px 16px #48223826 }
.detail > .item-marks button { min-height:46px;gap:7px;background:#fbe5ef;color:#87224e;font-size:15px }
.detail > .item-marks button+button { border-left-color:#e5baca }
.detail > .item-marks button[aria-pressed=true] { background:#a92360;color:#fff }
.detail > .item-marks .icon { width:19px;height:19px }
#shell:has(.detail > .item-marks) #toast { bottom:calc(116px + env(safe-area-inset-bottom,0px)) }
.detail, .listing { padding: 14px 16px 12px }

.plate { overflow: hidden; border-radius: 4px; background: var(--mat) }
.photo-well { position: relative; width:100%; height:min(40vh,285px); height:min(40dvh,285px); background:#f0eae7 }
.hero-shot { display: block; width: 100%; height: 100% }
.hero-shot img { display: block; width: 100%; height: 100%; object-fit: contain }
.photo-placeholder { display: grid; place-items: center; height: 100%; min-height: 96px; padding: 12px; color: var(--muted); font-size: 12px }
.swatches .variant-label { width: auto; min-height: 34px; padding: 4px 9px; border: 1px solid var(--line); border-radius: 14px; font-size: 12px }
.variant-label[aria-pressed=true] { background: var(--soft); border-color: var(--accent); color: var(--accent) }
.expand { position: absolute; right: 9px; bottom: 9px; height: 38px; width: 38px; display: grid; place-items: center; color: #fff; background: #241c26bb; border: 1px solid #ffffff75; border-radius: 50% }
.expand .icon { height: 16px; width: 16px }
.photo-strip { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 45px }
.photo-strip > span { font-size: 11px; color: var(--muted) }
.photo-strip b { color: var(--ink); margin-left: 4px; font-weight: 550 }
.angles { display: flex; gap: 14px; border-bottom: 1px solid var(--line) }
.angles button { padding: 9px 0 7px; font-size: 12px; border-bottom: 2px solid transparent; color: var(--muted) }
.angles button[aria-pressed=true] { border-color: var(--accent); color: var(--accent); font-weight: 600 }

.eyebrow { display: flex; align-items: center; gap: 7px; font-size: 10px; font-weight: 650; letter-spacing: .13em; color: var(--accent) }
.eyebrow i { width: 12px; height: 1px; background: currentColor; opacity: .65 }
.item-info { padding: 6px 0 15px }
.item-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-top: 3px }
.item-title h1 { margin: 0; font-size: clamp(20px, 5.4vw, 25px); font-weight: 650; line-height: 1.25; letter-spacing: -.025em; overflow-wrap:anywhere }
.price { text-align: right; font: 600 22px/1.25 var(--sans); letter-spacing: -.05em; font-variant-numeric: tabular-nums; white-space: nowrap }
.price small { display: block; font: 10px/1.3 var(--sans); letter-spacing: 0; color: var(--muted) }
.original-name { margin: 0 64px 0 0; color: #715766; font: italic 17px/1.2 var(--serif); overflow-wrap: anywhere }
.section-title { display: flex; align-items: baseline; gap: 8px; justify-content: space-between }
.section-title h2 { font-size: 15px; line-height: 1.45; margin: 0; font-weight: 650 }
.section-title > span, #result-count { font-size: 12px; color: var(--muted) }
.colors, .buy { border-top: 1px solid var(--line); padding: 14px 0 }
.color-name { margin-left: 8px; color: var(--muted); font-size: 13px; font-weight: 450 }
.swatches { display: flex; flex-wrap: wrap; gap: 2px; margin: 5px 0 1px }
.swatch { height: 40px; width: 40px; display: grid; place-items: center }
.swatch i { height: 25px; width: 25px; border-radius: 50%; border: 1px solid #0002; background: var(--swatch); position: relative }
.swatch[aria-pressed=true] i::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--accent) }
.color-english { margin: 1px 0 0; font: italic 14px/1.3 var(--serif); color: var(--muted) }
.mismatch { font-size: 12px; color: var(--accent); margin: 6px 0 0 }
.shop { display: flex; align-items: center; gap: 9px; margin-top: 5px; min-height: 47px }
.pin { background: #f4e9ee; border-radius: 50%; color: var(--accent); height: 37px; width: 37px; display: grid; place-items: center; flex: none }
.shop b, .shop small { display: block }
.shop b { font-size: 14px }
.shop small { font-size: 11px; color: var(--muted); margin-top: 3px }
.shop-guide { display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 16px;padding:14px;border:1px solid #efcddc;border-radius:12px;background:#fff1f6 }
.shop-guide h2 { margin:0;font-size:15px }
.shop-guide p { margin:4px 0 0;font-size:13px;line-height:1.4;color:var(--muted);overflow-wrap:anywhere }
.shop-guide button { display:inline-flex;align-items:center;justify-content:center;gap:7px;flex:none;min-height:44px;padding:0 15px;border-radius:9px;background:var(--accent);color:white;font-size:14px;font-weight:700 }
.shop-guide button:active { background:#85174c }
.shop-guide button .icon { width:16px;height:16px }
.location-preview { display:block;width:100%;margin-top:10px;border:1px solid var(--line);border-radius:10px;overflow:hidden;background:var(--paper);text-align:left }
.location-window { position:relative;display:block;overflow:hidden;background:#308da7 }
.location-window img,.location-window i { position:absolute }
.location-window img { display:block;max-width:none }
.location-window i { width:15px;height:15px;transform:translate(-50%,-50%);border:3px solid white;border-radius:50%;background:var(--marker);box-shadow:0 0 0 4px #35253340,0 1px 5px #35253370 }
.location-caption { display:flex;align-items:center;gap:7px;min-height:43px;padding:7px 12px;color:var(--accent);font-size:13px }
.location-caption small { margin-left:auto;color:var(--muted);font-size:12px }
.location-caption .icon { width:16px;height:16px }
.garage-burst { position:fixed;z-index:5;inset:0 0 calc(52px + env(safe-area-inset-bottom,0px));overflow:hidden;pointer-events:none }
.garage-burst-stage { position:absolute;width:min(100%,375px);aspect-ratio:375/812;perspective:600px }
.garage-burst .particle { position:absolute;opacity:0;transform-origin:center;transform-style:preserve-3d;will-change:transform,opacity }
.garage-burst .particle-visual { position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:contain;backface-visibility:visible }
@media (prefers-reduced-motion:reduce) { .garage-burst { display:none } }
.shop-detail > header { display:flex; align-items:center; justify-content:space-between; gap:12px; padding: 8px 0 16px; margin-bottom: 16px; border-bottom: 1px solid var(--line) }
.shop-front { flex:none; width:32%; max-width:154px; aspect-ratio:16/10; object-fit:cover; border-radius:8px }
.shop-detail > header p, .shop-address { display: flex; gap: 6px; align-items: center; font-size: 13px }
.shop-detail > header p { margin: 0; color: var(--accent); font-weight: 650 }
.shop-detail h1 { margin: 7px 0; font-size: 30px; line-height: 1.12; overflow-wrap: anywhere }
.shop-address, .shop-detail .stock-heading > span { color: var(--muted) }
.shop-address .icon { width: 14px; height: 14px }
.shop-detail .stock-heading > span { font-size: 12px }
.attribution { font-size: 11px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; display: inline-flex; min-height: 34px; align-items: center }

.list-title { display: flex; align-items: flex-end; justify-content: space-between; margin: 8px 0 15px }
.list-title h1 { font-size: 32px; line-height: 1.15; margin: 5px 0 0; letter-spacing: -.055em }
.searchbox { display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); background: white; border-radius: 24px; padding: 0 13px; color: var(--muted) }
.searchbox:focus-within { border-color: var(--accent) }
.searchbox input { color: var(--ink); height: 42px; background: none; border: 0; flex: 1; min-width: 0; font-size: 15px; outline: 0 }
.catalog-search { min-width: 0; gap: 6px; padding-inline: 10px }
.category-shortcuts { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 5px; margin: 8px 0 }
.category-shortcuts button, .category-options button { display: flex; align-items: center; justify-content: center; gap: 4px; min-height: 38px; padding: 3px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); font-size: 13px; white-space: nowrap }
.category-shortcuts .icon, .category-options .icon { width: 15px; height: 15px; color: var(--accent) }
.category-shortcuts button[aria-pressed=true], .category-options button[aria-pressed=true] { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700 }
.category-shortcuts [aria-pressed=true] .icon, .category-options [aria-pressed=true] .icon { color: inherit }
.category-options:not([hidden]) { display: flex; flex-wrap: wrap; gap: 5px; padding: 8px; margin-bottom: 8px; border-radius: 9px; background: #f6eef1 }
.category-options button { min-height: 32px; padding: 4px 8px; border-radius: 16px; font-size: 12px }
.filter-sheet { position: fixed; inset: auto 0 0; width: min(100%,490px); max-width: none; height: min(64dvh,540px); max-height: 100%; margin: 0 auto; padding: 0; border: 0; border-radius: 20px 20px 0 0; background: var(--paper); color: var(--ink); overflow: hidden }
.filter-sheet[open] { display: grid; grid-template-rows: auto minmax(0,1fr) auto }
.filter-sheet::backdrop { background: #271c2966 }
body:has(.filter-sheet[open]) { overflow: hidden }
.filter-sheet-header { display: flex; align-items: center; justify-content: space-between; min-height: 54px; padding: 4px 12px 0 18px }
#filter-title { margin: 0; font-size: 20px }
.filter-sheet-header button { width: 44px; height: 44px; color: var(--muted); font-size: 26px }
.filter-sheet-body { min-height: 0; padding: 12px 16px 8px }
.filter-panel:not([hidden]) { display: flex; flex-direction: column; gap: 9px; height: 100% }
.filter-panel .searchbox { flex: none; margin: 0; border-radius: 8px }
#filter-shop-search { font-size: 16px }
.filter-options { display: grid; align-content: start; gap: 6px; padding: 2px; overflow-y: auto; overscroll-behavior: contain }
.filter-shops { grid-template-columns: repeat(2,minmax(0,1fr)) }
.filter-colors { grid-template-columns: repeat(4,minmax(0,1fr)) }
.filter-colors button { display:flex; align-items:center; justify-content:center; gap:4px }
.filter-colors i { flex:none; width:12px; height:12px; border:1px solid #0002; border-radius:50% }
.filter-options button { min-width: 0; min-height: 38px; padding: 5px 4px; border: 1px solid var(--line); border-radius: 7px; font-size: 13px; overflow-wrap: anywhere }
.filter-options button[aria-pressed=true] { border-color: var(--accent); background: var(--soft); color: var(--accent); font-weight: 650 }
.filter-empty { margin: 14px 0; text-align: center; color: var(--muted); font-size: 13px }
.price-range { display: flex; align-items: center; gap: 8px }
.price-range label { display: flex; align-items: center; gap: 4px; min-width: 0; flex: 1; padding: 0 8px; border: 1px solid var(--line); border-radius: 6px }
.price-range input { min-width: 0; width: 100%; min-height: 44px; padding: 0; border: 0; background: none; font-size: 16px }
.filter-actions { display: grid; grid-template-columns: 1fr 2fr; gap: 8px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom,0px)); border-top: 1px solid var(--line) }
.filter-actions button { min-height: 44px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; font-weight: 650 }
.filter-actions [data-close-filters] { border-color: var(--accent); background: var(--accent); color: #fff }
.catalog-facets { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 5px; margin: 5px 0 9px }
.catalog-facets button { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-height: 34px; padding: 0 7px; border-radius: 7px; background: var(--soft); color: var(--accent); font-size: 12px; font-weight: 600 }
.catalog-facets button::after { content: ""; width: 4px; height: 4px; margin-top: -3px; border: solid currentColor; border-width: 0 1px 1px 0; transform: rotate(45deg) }
.catalog-facets .active { background: var(--accent); color: #fff; font-weight: 700 }
@media (max-height: 650px) {
  .filter-sheet { height:min(78dvh,460px) }
}
@media (prefers-reduced-motion: no-preference) {
  .filter-sheet { transform:translateY(100%); transition:transform 220ms cubic-bezier(.4,0,.8,.4) }
  .filter-sheet.is-visible { transform:translateY(0); transition:transform 320ms cubic-bezier(.16,1,.3,1) }
  .filter-sheet::backdrop { opacity:0; transition:opacity 220ms ease-in }
  .filter-sheet.is-visible::backdrop { opacity:1; transition:opacity 280ms ease-out }
}
.filters { display: flex; align-items: center; gap: 4px; margin: 10px 0 14px }
.filters button { font-size: 13px; min-height: 34px; padding: 0 13px; border-radius: 25px; color: var(--muted) }
.filters button[aria-pressed=true] { background: var(--soft); color: #71113c; font-weight: 650 }
.filters select { margin-left: auto; background: none; border: 0; max-width: 96px; min-height: 34px; font-size: 12px; color: var(--muted) }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 19px 11px }
.card-frame { position: relative }
.card-photo { display: block; width: 100%; aspect-ratio: 3/4; border-radius: 4px; overflow: hidden; background: var(--mat) }
.card-photo img { width: 100%; height: 100%; object-fit: cover; display: block }
.card-name { display: block; text-align: left; font-size: 15px; font-weight: 650; margin: 7px 0 3px }
.card-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px }
.card-meta b { color: var(--ink); font-size: 12px }
.empty { grid-column: 1/-1; padding: 42px 0; text-align: center; font-size: 13px; color: var(--muted) }

.shop-map-open#shell { display: flex; flex-direction: column; height: 100vh; height: 100dvh; min-height: 0; overflow: hidden; padding-bottom: calc(52px + env(safe-area-inset-bottom,0px)) }
.shop-map-open #header { flex: none }
#shop-map:not([hidden]) {position:relative;display:flex;flex:1;flex-direction:column;min-height:0}
#shop-map .map-toolbar {display:flex;align-items:center;flex:none;gap:7px;padding:8px 12px}
#shop-map .map-toolbar label {display:flex;align-items:center;gap:8px;flex:1;min-width:0;padding:0 12px;border:1px solid var(--line);border-radius:24px;background:#fff}
#shop-map .map-toolbar label:focus-within {border-color:var(--accent)}
#shop-map .map-toolbar label .icon {width:17px;height:17px;color:var(--muted)}
#shop-map .map-toolbar input {border:0;outline:none;background:transparent;width:100%;min-width:0;height:38px;font-size:16px;color:inherit}
#shop-map .map-toolbar [data-filters] {display:inline-flex;flex:none;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:0 13px;border-radius:14px;background:var(--accent);color:#fff;font-size:14px;font-weight:700;white-space:nowrap}
#shop-map .map-toolbar [data-filters] .icon {width:17px;height:17px;stroke-width:2}
#shop-map .map-toolbar [data-filters][aria-expanded=true], #shop-map .map-toolbar [data-filters]:active {background:#86154c}
#shop-map .map-toolbar [data-info] {font-size:20px;min-width:32px;min-height:44px;color:var(--muted)}
#shop-map .stage {position:relative;isolation:isolate;overflow:hidden;touch-action:none;overscroll-behavior:contain;flex:1;min-height:0;background:#2f90af}
#shop-map .vm-plane {position:absolute;left:0;top:0;pointer-events:none;overflow:hidden}
#shop-map .vm-plane>img {width:100%;height:100%;display:block}
#shop-map .map-raster {position:absolute;inset:0}
#shop-map .map-raster img {position:absolute;width:calc(100% / 13);height:calc(100% / 18)}
#shop-map canvas {position:absolute;inset:0;width:100%;height:100%;touch-action:none;cursor:grab}
#shop-map canvas:active {cursor:grabbing}
.map-pulse {position:absolute;width:54px;height:54px;transform:translate(-50%,-50%);pointer-events:none;opacity:.67;filter:saturate(.64)}
.map-pulse.clustered {width:64px;height:64px}
.map-pulse::before, .photo-dot::before {content:"";position:absolute;inset:0;opacity:.75;background:radial-gradient(closest-side,#fff0f7 18%,#ff91c1 32%,#ff328dd9 52%,#ee287654 74%,transparent)}
@media (prefers-reduced-motion:no-preference) {
  .map-pulse::before, .photo-dot::before {animation:map-pin-breathe 1.2s cubic-bezier(.37,0,.63,1) infinite alternate}
  @keyframes map-pin-breathe {from{opacity:.45;transform:scale(.84)}to{opacity:1;transform:scale(1.24)}}
}
#shop-map .north {position:absolute;top:10px;right:12px;min-width:48px;min-height:36px;padding:0 8px;border-radius:13px;background:var(--paper);border:1px solid var(--line);font-size:12px;font-weight:700}
#shop-map .zoom {position:absolute;right:12px;bottom:12px;display:flex;align-items:center;gap:8px;padding:0 10px;height:39px;border-radius:22px;border:1px solid var(--line);background:var(--paper);color:var(--accent)}
#shop-map .zoom .icon {width:14px;height:14px}
#shop-map .zoom input {width:90px;height:36px;accent-color:var(--accent);touch-action:none}
#shop-map .zoom output {width:33px;font:700 11px/1 monospace}
#shop-map .panel {
  position:absolute;inset:auto 10px 9px;z-index:2;margin-inline:auto;max-width:480px;max-height:76%;
  display:flex;flex-direction:column;overflow:hidden;border:1px solid var(--line);border-radius:20px;
  background:var(--paper);box-shadow:0 8px 28px #35152529;
  opacity:0;transform:translateY(20px);visibility:hidden;pointer-events:none;
  transition:transform 170ms ease-in,opacity 150ms ease-in,visibility 0s linear 170ms;
}
#shop-map .panel[data-mode=filters], #shop-map .panel[data-mode=info] {
  opacity:1;transform:translateY(0);visibility:visible;pointer-events:auto;
  transition:transform 210ms cubic-bezier(.2,.8,.24,1),opacity 160ms ease-out,visibility 0s;
}
#shop-map .panel-header {display:flex;flex:none;align-items:center;justify-content:space-between;padding:5px 8px 0 17px}
#shop-map .panel-header h2 {margin:0;font-size:18px}
#shop-map .panel-header button {width:44px;height:44px;font:400 23px/1 system-ui;color:var(--muted)}
#shop-map .panel-body {padding:0 15px 10px;min-height:0;overflow-y:auto;overscroll-behavior:contain}
#shop-map .panel-body p {font-size:12px;color:var(--muted);overflow-wrap:anywhere}
#shop-map .alltypes {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
#shop-map .type-option {display:flex;align-items:center;gap:6px;min-height:46px;padding:0 8px;border:1px solid var(--line);border-radius:11px;background:#fff;text-align:left;font-size:14px;font-weight:600}
#shop-map .type-option>.icon:first-child {flex:none;width:20px;height:20px;color:var(--marker)}
#shop-map .type-option>.icon:last-child {display:none;width:15px;height:15px;margin-left:auto;stroke-width:2.4}
#shop-map .type-option[aria-pressed=true] {border-color:var(--accent);background:var(--soft);color:var(--accent)}
#shop-map .type-option[aria-pressed=true]>.icon:last-child {display:block}
#shop-map .drawer {
  display:flex;flex-direction:column;flex:none;min-height:0;height:min(188px,32%);
  overflow:hidden;padding:0 12px;border-top:1px solid var(--line);
  transition:height 240ms cubic-bezier(.22,.72,.25,1);
}
#shop-map .drawer.expanded {height:50%}
#shop-map .drawer-head {
  position:relative;display:flex;align-items:center;gap:7px;flex:none;width:100%;height:44px;
  font-weight:750;text-align:left;touch-action:none;user-select:none;
}
#shop-map .drawer-head small {font-size:11px;font-weight:500;color:var(--muted)}
#shop-map .drawer-head i {
  position:absolute;left:50%;transform:translateX(-50%);display:grid;place-items:center;
  width:56px;height:28px;border-radius:16px;background:var(--soft);color:var(--accent);
}
#shop-map .drawer-head i {font:700 21px/1 system-ui;transition:transform 240ms ease}
#shop-map .drawer-head[aria-expanded=true] i {transform:translateX(-50%) rotate(180deg)}
#shop-map .drawer-head:active i {background:#f6cadc}
#shop-map .drawer .rows {min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#c4b4bf transparent}
#shop-map .street-row {display:flex;align-items:center;min-height:49px;border-top:1px solid var(--line)}
#shop-map .street-shop {display:flex;flex:1;min-width:0;align-items:center;gap:9px;min-height:69px;padding:5px 8px 5px 2px;text-align:left}
#shop-map .street-action {flex:none;font-size:20px;color:var(--accent)}
#shop-map .street-locate[aria-pressed=true], #shop-map .street-row button:active {background:var(--soft)}
#shop-map .street-copy {min-width:0;flex:1}
#shop-map .street-copy b, #shop-map .street-copy small, #shop-map .street-sample {display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#shop-map .street-copy b {font-weight:680;font-size:14px;line-height:1.45}
#shop-map .street-copy small {color:var(--muted);font-size:11px}
#shop-map .street-copy strong {color:var(--marker);font-weight:650}
#shop-map .street-sample {margin-top:3px;color:var(--muted);font-size:11px}
#shop-map .street-locate {display:flex;align-items:center;gap:4px;flex:none;min-height:44px;padding:0 6px;border-left:1px solid var(--line);color:var(--accent);font-size:12px;font-weight:650;white-space:nowrap}
#shop-map .street-locate .icon {width:17px;height:17px}
#shop-map .drawer .none {color:var(--muted);font-size:12px;padding:8px 0}
#shop-map .street-symbol {position:relative;display:grid;place-items:center;overflow:hidden;flex:none;width:54px;height:56px;border-radius:7px;background:#f5ebef;color:var(--marker)}
#shop-map .street-cover, #shop-map .street-cover img {position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
#shop-map .street-cover span {position:absolute;bottom:2px;left:2px;padding:1px 4px;border-radius:3px;background:#251b24d9;color:white;font:600 10px/1.3 system-ui}
#shop-map .street-row button:focus-visible, #shop-map canvas:focus-visible {outline:2px solid var(--accent);outline-offset:-2px}
@media (prefers-reduced-motion:reduce) {
  #shop-map .drawer, #shop-map .drawer-head i, #shop-map .panel, #shop-map .panel[data-mode] { transition: none }
}

#nav { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); z-index: 6; width: min(100%,490px); background: var(--paper); border-top: 1px solid var(--line); padding: 0 10px env(safe-area-inset-bottom,0px); display: flex }
#nav button { height: 51px; flex: 1; display: flex; justify-content: center; align-items: center; gap: 7px; font-size: 12px; color: var(--muted) }
#nav button[aria-current=page] { color: var(--accent); font-weight: 650 }
#nav button[aria-current=page] .icon { stroke-width: 2 }
#zoom { padding: 0; border: 0; width: min(96vw,650px); max-width: 96vw; max-height: 92dvh; background: #262326; color: white; border-radius: 5px }
#zoom img { display: block; width: 100%; max-height: 78dvh; object-fit: contain }
#zoom p { margin: 10px 15px 15px; font-size: 12px }
#zoom::backdrop { background: #201d20e8 }
.close { position: absolute; z-index: 1; right: 6px; top: 6px; color: white; background: #211f21bf; border-radius: 50%; font-size: 25px; height: 42px; width: 42px }
#toast { position: fixed; bottom: calc(66px + env(safe-area-inset-bottom, 0px)); left: 50%; transform: translateX(-50%); background: var(--ink); color: white; font-size: 12px; border-radius: 20px; padding: 8px 14px; opacity: 0; pointer-events: none; z-index: 9 }
#toast.show { opacity: 1 }
.foil-viewer { transform-origin:top left }
@media (prefers-reduced-motion:no-preference) {
  #zoom, #foilOptions {
    opacity:0;transform:translateY(8px) scale(.98);
    transition:transform 160ms ease,opacity 160ms ease;
  }
  #zoom.is-visible, #foilOptions.is-visible { opacity:1;transform:none }
  #zoom::backdrop, #foilOptions::backdrop { opacity:0;transition:opacity 160ms ease }
  #zoom.is-visible::backdrop, #foilOptions.is-visible::backdrop { opacity:1 }
  #nav button, [aria-pressed], .street-locate, .variant-label {
    transition:color 140ms ease,background-color 140ms ease,border-color 140ms ease;
  }
  #toast { transform:translate(-50%,5px);transition:opacity 150ms ease,transform 150ms ease }
  #toast.show { transform:translate(-50%,0) }
  .swatch i::after { content:"";position:absolute;inset:-5px;border:2px solid var(--accent);border-radius:50%;opacity:0;transform:scale(.85);transition:opacity 140ms,transform 140ms }
  .swatch[aria-pressed=true] i::after { opacity:1;transform:scale(1) }
}
@media (max-width: 345px) {
  .detail, .listing { padding-left: 12px; padding-right: 12px }
  .item-header > .brand img { height: 20px; width: 20px; margin-right: 3px }
  .item-header > .brand b { font-size: 18px }
  .original-name { font-size: 19px }
}

/* Selectable catalogue home previews */
#shell[data-home]:not([data-home=""]) #header { padding-inline: 18px; height: calc(52px + env(safe-area-inset-top, 0px)) }
.home { padding-bottom: 12px }
.home h1, .home h2 { margin: 0 }
.home-list { padding: 19px 17px 6px; scroll-margin-top: calc(52px + env(safe-area-inset-top, 0px)) }
.stock-heading { display: flex; align-items: baseline; gap: 9px; margin-bottom: 10px }
.stock-heading h2 { font-size: 20px; line-height: 1.2; letter-spacing: -.05em }
.stock-heading button { margin-left: auto; font-size: 12px; color: var(--accent); padding: 5px 0 }
.home .searchbox { background: transparent; border-radius: 5px }
.home .searchbox input { height: 38px; font-size: 13px }
.home .filters { margin: 5px 0 10px }
.home .filters button { border-radius: 0; min-height: 33px; padding: 0 9px; border-bottom: 2px solid transparent }
.home .filters button[aria-pressed=true] { background: none; color: var(--ink); border-bottom-color: var(--accent) }
.home .card-photo { border-radius: 2px }
.home .card-meta { align-items: baseline }
.home .card-meta b { white-space: nowrap }

#shell[data-home=cover] { --paper: #fbf7e9; --ink: #26382e; --muted: #6a695e; --line: #dcd8c7; --accent: #914141 }
#shell[data-home=cover] #header { border-bottom-color: #58633d; background: #f7f3e4 }
.island-cover { width: 100%; display: grid; grid-template-columns: 43% 57%; grid-template-rows: auto auto; text-align: left; color: #263f31; background: #e5ebac; overflow: hidden }
.cover-copy { display: flex; flex-direction: column; align-items: flex-start; padding: 20px 0 17px 17px; position: relative; z-index: 1 }
.cover-copy small { text-transform: uppercase; font-weight: 700; font-size: 10px; letter-spacing: .13em; border-top: 1px solid currentColor; padding-top: 5px }
.cover-copy strong { font: 500 clamp(51px, 14.2vw, 70px)/.81 var(--serif); letter-spacing: -.075em; margin: auto 0; padding: 15px 0 }
.cover-copy strong i { font-weight: 400; margin-left: 1px }
.cover-copy b { font-size: clamp(16px,4.1vw,21px); letter-spacing: .01em }
.cover-shot { width: 100%; height: clamp(244px, 72vw, 345px); overflow: hidden }
.cover-shot img { display: block; height: 100%; width: 100%; object-fit: cover }
.cover-shot img { object-position: 50% 44% }
.cover-foot { grid-column: 1/-1; display: flex; align-items: center; justify-content: space-between; min-height: 38px; padding: 0 17px; background: #263f31; color: #f5f4de; font-size: 12px }
.cover-foot > span:first-child { font: italic 15px var(--serif) }
.cover-foot .icon { width: 14px }

#shell[data-home=roles] { --paper: #fff9f5; --line: #eadbd6 }
#shell[data-home=roles] #header { background: var(--paper); border-color: transparent }
.character-intro { padding: 0 12px }
.duo-stage { position: relative; isolation: isolate; overflow: hidden; background: #57394c; border-radius: 3px }
.duo-art { display: block; width: 100%; height: auto; aspect-ratio: 570 / 551; overflow: hidden; touch-action: pan-y pinch-zoom }
.duo-art image, .figure { pointer-events: none }
.face-hit, .body-hit { fill: transparent; pointer-events: fill; cursor: pointer }
[data-figure="露西亚"], .duo-legend [data-person="露西亚"] { --halo: #ffb5e2 }
[data-figure="杰森"], .duo-legend [data-person="杰森"] { --halo: #a4f9eb }
.figure { fill: transparent; fill-rule: evenodd; stroke: var(--halo); stroke-opacity: 0; stroke-width: 1; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; transition: fill .18s, stroke-opacity .18s, stroke-width .18s }
.character-intro:not([data-active="全部"]) .figure { fill: #33162d32 }
.character-intro[data-active="露西亚"] [data-figure="露西亚"] .figure, .character-intro[data-active="杰森"] [data-figure="杰森"] .figure { stroke-opacity: 1; stroke-width: 2.2; fill: transparent; filter: drop-shadow(0 0 2px var(--halo)) }
@media (hover: hover) {
  .character-intro[data-active="全部"] :is(.face-hit, .body-hit):hover + .figure { stroke-opacity: 1; stroke-width: 1.8 }
}
.duo-legend { position: absolute; inset: 0; pointer-events: none }
.duo-legend button { position: absolute; pointer-events: auto; touch-action: pan-y pinch-zoom; display: flex; align-items: center; min-height: 48px; min-width: 54px; padding: 0 2px; transform: translateY(-50%); color: #fff; text-shadow: 0 1px 3px #321630, 0 0 6px #321630 }
.duo-legend button[data-person="露西亚"] { left: 3.3%; top: 36% }
.duo-legend button[data-person="杰森"] { right: 3.3%; top: 19%; flex-direction: row-reverse; text-align: right }
.signature { display: flex; flex-direction: column; align-items: flex-start; padding-right: 4px }
.signature i { font: italic clamp(20px, 5.8vw, 28px)/.95 var(--serif); letter-spacing: -.055em }
.signature > span { font-size: 11px; letter-spacing: .04em; line-height: 1.5; font-weight: 600 }
.duo-legend button[data-person="杰森"] .signature { align-items: flex-end; padding: 0 0 0 4px }
.locator { position: relative; display: grid; place-items: center; width: 15px; height: 15px; margin-left: clamp(8px, 2vw, 12px); border: 1.3px solid #fff; border-radius: 50%; background: #422a408a; box-shadow: 0 0 2px #321630 }
.locator::before { content: ""; position: absolute; right: 100%; width: clamp(8px, 2vw, 12px); height: 1px; background: #fff; box-shadow: 0 1px 2px #321630 }
.locator::after { content: "+"; font: 600 12px/1 var(--sans); text-shadow: none }
.duo-legend button[data-person="杰森"] .locator { margin-left: 0; margin-right: clamp(8px, 2vw, 12px) }
.duo-legend button[data-person="杰森"] .locator::before { right: auto; left: 100% }
.duo-legend [aria-pressed="true"] .locator { background: var(--halo); border-color: #fff }
.duo-legend [aria-pressed="true"] .locator::after { content: ""; width: 5px; height: 3px; border: solid #382a39; border-width: 0 0 1.6px 1.6px; transform: translateY(-1px) rotate(-45deg) }
.duo-legend button:focus-visible { outline: 2px solid white; outline-offset: 2px; border-radius: 3px }
@keyframes locator-reveal { 40% { box-shadow: 0 0 0 2px #fff8, 0 0 0 5px #fff4 } }
@media (prefers-reduced-motion: no-preference) { .character-intro[data-active="全部"] .locator { animation: locator-reveal 1.35s ease-out 1 } }
@media (prefers-reduced-motion: reduce) { .figure { transition: none } }
/* Alternate ways to find a person from the same cover. */
[data-guide="spots"] .duo-legend button { min-width: 48px; height: 48px; justify-content: center; padding: 0 }
[data-guide="spots"] .duo-legend [data-person="露西亚"] { left: 33.16%; top: 57%; transform: translate(-50%,-50%) }
[data-guide="spots"] .duo-legend [data-person="杰森"] { left: 83%; right: auto; top: 43%; transform: translate(-50%,-50%) }
.photo-dot {
  position: relative; display: grid; place-items: center; width: 48px; height: 48px; pointer-events: none
}
.photo-dot::after { content: ""; position: relative; width: 12px; height: 12px; border: 2px solid #fff; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px #58354cb3 }
[data-person="露西亚"][aria-pressed="true"] .photo-dot::after { background: #b52467 }
[data-person="杰森"][aria-pressed="true"] .photo-dot::after { background: #148e8c }
.spot-hint { --tip-offset: 25px; position: absolute; width: max-content; right: calc(50% - var(--tip-offset)); bottom: calc(50% + 20px); padding: 4px 9px; border-radius: 7px; background: #462537f2; color: #fff5fa; font-size: 12px; font-weight: 550; line-height: 17px; white-space: nowrap; text-shadow: none }
.spot-hint::after { content: ""; position: absolute; top: 100%; right: calc(var(--tip-offset) - 4px); border: 4px solid transparent; border-top-color: #462537f2; border-bottom: 0 }
@media (max-width: 389px) {
  .spot-hint { --tip-offset: 10px; max-width: 98px; white-space: normal; word-break: keep-all; text-align: left }
}
.character-intro[data-active="全部"] .spot-hint + .dot-name,
.character-intro:not([data-active="全部"]) .spot-hint { display: none }
.dot-name { position: absolute; bottom: calc(50% + 19px); padding: 4px 8px; border-radius: 3px; background: #342434ed; font-size: 12px; white-space: nowrap; opacity: 0; pointer-events: none }
[data-guide="spots"] .duo-legend :is([aria-pressed="true"], :focus-visible) .dot-name { opacity: 1 }
@media (hover: hover) { [data-guide="spots"] .duo-legend button:hover .dot-name { opacity: 1 } }
.spot-anchor { position: absolute; inset: 0; pointer-events: none }
.cover-composite { visibility: hidden }
@keyframes person-lift { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(var(--lift)) } }
@media (prefers-reduced-motion: no-preference) {
  .cover-composite { visibility: visible }
  .person-float { --lift: -1.05%; animation: person-lift 4.4s ease-in-out infinite }
  .person-float:is([data-moving-person="杰森"], [data-float-with="杰森"]) {
    --lift: -.95%; animation-delay: 2.2s
  }
  [data-person="杰森"] .photo-dot::before { animation-delay: -1.2s }
}

[data-guide="portraits"] .duo-legend { position: static; display: flex; align-items: center; gap: clamp(10px, 3vw, 17px); padding: 4px 3px; border-bottom: 1px solid var(--line) }
.cast-caption { font-size: 12px; color: var(--muted); margin-right: auto }
[data-guide="portraits"] .duo-legend button { position: relative; inset: auto; transform: none; flex-direction: row; gap: 6px; padding: 3px; text-shadow: none; font-size: 13px; font-weight: 550; color: var(--ink) }
.face-thumb { width: 32px; height: 32px; flex: none; border-radius: 50%; overflow: hidden; outline: 1px solid #b5a5ad; outline-offset: 1px }
[data-guide="portraits"] [aria-pressed="true"] .face-thumb { outline: 2px solid var(--accent); outline-offset: 2px }
[data-guide="portraits"] .duo-legend [aria-pressed="true"] { color: var(--accent) }
[data-guide="portraits"] .duo-legend button:focus-visible { outline-color: var(--accent) }

.reveal-tags { position: absolute; z-index: 1; bottom: 8px; left: 9px; display: flex; align-items: center; gap: 5px; min-width: 54px; height: 44px; justify-content: center; color: white; font-size: 12px; font-weight: 600; isolation: isolate }
.reveal-tags::before { content: ""; position: absolute; inset: 7px -1px; z-index: -1; background: #332637d9; border: 1px solid #ffffff91; border-radius: 20px }
.reveal-tags .icon { width: 16px; height: 16px }
.reveal-tags[aria-expanded="true"]::before { background: #fff5f9 }
.reveal-tags[aria-expanded="true"] { color: #46273d }
.reveal-tags[aria-expanded="false"] + .duo-art .face-hit { pointer-events: none }
[data-guide="tags"] .duo-legend button { justify-content: center; text-shadow: none }
[data-guide="tags"] .duo-legend [data-person="露西亚"] { left: 10%; top: 42% }
[data-guide="tags"] .duo-legend [data-person="杰森"] { right: 9%; top: 26% }
.photo-tag { position: relative; font-size: 12px; font-weight: 600; padding: 5px 10px; color: #fff; background: #352435eb; border-radius: 4px }
.photo-tag::after { content: ""; position: absolute; left: 65%; bottom: -4px; border-top: 5px solid #352435eb; border-left: 4px solid transparent; border-right: 4px solid transparent }
[data-person="杰森"] .photo-tag::after { left: 15% }
[data-guide="tags"] [aria-pressed="true"] .photo-tag { background: var(--halo); color: #352435 }
[data-guide="tags"] [aria-pressed="true"] .photo-tag::after { border-top-color: var(--halo) }
.home-roles .home-list { padding: 21px 15px 8px }
.home-roles .stock-heading { padding-bottom: 7px; border-bottom: 1px solid var(--line) }
.home-roles .stock-heading select { margin-left: auto; background: none; border: 0; font-size: 12px; color: var(--muted); padding-block: 4px }
.catalog-heading { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 6px 10px }
.catalog-title:not([hidden]) { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 8px }
.catalog-title h2, .catalog-heading #result-count { white-space: nowrap }
.catalog-title button { margin-left: 0 }
.list-title .catalog-search { flex: 1; margin-left: 8px }
.home-roles .card-photo { border-radius: 5px }

#shell[data-home=colors] { --paper: #f7f8f6; --ink: #273646; --muted: #586578; --line: #d7ddd9; --accent: #284f74 }
.palette-intro { padding: 19px 16px 18px; border-bottom: 1px solid #c1ccce; background: #e6eef0 }
.palette-intro h1 { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 15px }
.palette-intro h1 i { font: italic clamp(40px, 11vw, 58px)/.95 var(--serif); letter-spacing: -.06em; color: #2d4053 }
.palette-intro h1 span { font-size: 13px; font-weight: 600 }
.palette-deck { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 5px }
.palette-chip { text-align: left; min-width: 0; color: #26323c; background: #fffdf9; border: 1px solid #bcc4c2 }
.palette-chip[aria-pressed=true] { outline: 2px solid var(--accent); outline-offset: 1px }
.fabric { position: relative; display: block; aspect-ratio: 1.26; overflow: hidden; background: var(--chip); border-bottom: 9px solid var(--chip) }
.fabric img { position: absolute; width: 440%; height: auto; max-width: none; left: 50%; top: 50% }
.fabric-palm-top img { transform: translate(-52%, -49%) }
.fabric-keys-top img { transform: translate(-68%, -45%) }
.fabric-palm-bottom img { transform: translate(-35%, -38%) }
.fabric-night-top img { transform: translate(-66%, -51%) }
.chip-caption { display: flex; flex-direction: column; padding: 6px 7px 7px; gap: 1px }
.chip-caption b { font-size: 13px }
.chip-caption i { font: italic 12px/1.15 var(--serif) }
.home-colors .stock-heading h2 { font-size: 19px }
.home-colors .grid { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--line) }
.home-colors .card { display: grid; grid-template-columns: clamp(80px,25vw,118px) minmax(0,1fr); grid-template-rows: auto auto auto; column-gap: 13px; padding: 9px 0; border-bottom: 1px solid var(--line) }
.home-colors .card-frame { grid-column: 1; grid-row: 1/5 }
.home-colors .card-photo { aspect-ratio: 1/1.05 }
.home-colors .card-photo img { object-position: center 36% }
.home-colors .item-marks { grid-column:2 }
.home-colors .card-name { align-self: end; font-size: 16px; margin: 0 }
.index-original { display: block; font: italic 15px/1.1 var(--serif); color: var(--muted); align-self: start; overflow-wrap: anywhere }
.home-colors .card-meta { align-self: end; gap: 4px; padding-bottom: 2px }
.home-colors .card-meta b { font-size: 13px }

.home[data-browse="spread"] { --paper: #fff9f4; --line: #e8d9d4 }
.character-intro[data-guide="spread"] { padding-inline: 15px }
[data-guide="spread"] .duo-art { aspect-ratio: 576 / 362 }
[data-guide="spread"] .duo-stage { border-radius: 2px }
.home[data-browse="spread"] .home-list { padding-top: 10px }
.home[data-browse="spread"] .stock-heading { margin: 0 0 9px; padding-bottom: 5px }
.home[data-browse="spread"] .stock-heading h2 { font-size: 15px; letter-spacing: -.01em }
.wardrobe-columns { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 13px; align-items: start }
.garment-column { min-width: 0 }
.garment-column h3 { margin: 0 0 9px; border-bottom: 1px solid var(--line) }
.garment-column h3 button { width: 100%; display: grid; grid-template-columns: 1fr auto; min-height: 49px; text-align: left; align-items: center; padding: 1px 0 6px; color: #643248 }
.garment-column:nth-child(2) h3 button { color: #34574b }
.garment-column h3 i { font: italic clamp(25px,7.4vw,33px)/1 var(--serif); letter-spacing: -.045em }
.garment-column h3 span { grid-column: 1; font-size: 11px; font-weight: 500; letter-spacing: .02em; margin-top: 3px }
.garment-column h3 .icon { grid-column: 2; grid-row: 1/3; width: 18px; margin-right: 4px }
.garment-column .card { margin-bottom: 16px }
.unassigned-garments { grid-column: 1/-1 }
.wardrobe-columns .card-photo { border-radius: 1px; aspect-ratio: 3/3.55 }
.home[data-browse="album"] .home-list { padding-top: 14px }
