:root { --ink:#292929; --muted:#6a6a65; --line:#e8e8e3; --paper:#fff; --soft:#f6f6f3; --accent:#a36f64; }
* { box-sizing:border-box; }
html { scroll-behavior:smooth; }
body { margin:0; background:#fff; color:var(--ink); font-family:'Noto Sans CJK JP','Noto Sans JP',system-ui,-apple-system,BlinkMacSystemFont,'Hiragino Kaku Gothic ProN','Yu Gothic',Meiryo,sans-serif; font-size:14px; line-height:1.7; }
button,input,select,textarea { font:inherit; color:inherit; }
button,a,summary { -webkit-tap-highlight-color:transparent; touch-action:manipulation; }
a { color:inherit; text-decoration:none; }
button { cursor:pointer; border:0; background:none; }
button:disabled { cursor:default; }
button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible { outline:2px solid #8f6d5e; outline-offset:4px; }
h1,h2,h3,p,figure { margin:0; }
h1,h2,h3 { line-height:1.5; font-weight:500; }
h1 { font-size:24px; }
h2 { font-size:18px; }
h3 { font-size:14px; }
svg { display:block; max-width:100%; }
.icon { width:21px; height:21px; flex:none; }
.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 { position:fixed; top:-60px; left:15px; background:#292929; color:white; padding:10px 20px; z-index:50; }
.skip:focus { top:10px; }
.header { height:72px; max-width:1180px; padding:0 40px; margin:auto; display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid var(--line); }
.brand { font-size:21px; font-weight:500; letter-spacing:.035em; min-height:44px; display:flex; align-items:center; }
.quiet { min-width:54px; height:44px; display:flex; align-items:center; justify-content:center; gap:7px; padding:0 5px; }
.quiet .icon { width:20px; height:20px; }
#saved-count { font-size:11px; color:var(--muted); }
main { max-width:1180px; margin:auto; padding:24px 40px 56px; min-height:calc(100vh - 172px); outline:none; }
.primary,.secondary { min-height:48px; display:inline-flex; align-items:center; justify-content:center; padding:12px 20px; gap:10px; border:1px solid #333; border-radius:3px; font-size:14px; font-weight:500; line-height:1.5; }
.primary { background:#333; color:#fff; }
.primary:hover { background:#111; }
.secondary { border-color:#d2d2cc; background:#fff; }
.secondary:hover { background:#fafaf8; }
.primary .icon,.secondary .icon { width:18px; height:18px; }
.text-button { min-height:44px; padding:7px 0; font-size:12px; text-decoration:underline; text-underline-offset:4px; }
.source-link { display:inline-block; font-size:12px; text-decoration:underline; text-underline-offset:4px; }
.fine { color:var(--muted); font-size:12px; line-height:1.9; }
.eyebrow { font-size:12px; font-weight:400; color:var(--muted); margin-bottom:7px; }
/* Entry is only the required selection, without an introductory landing page. */
.choose-view { max-width:400px; margin:32px auto 0; }
.choose-view h1 { font-size:22px; margin-bottom:25px; }
.plush-picker { border:0; padding:0; background:none; }
.plush-picker label { display:flex; flex-direction:column; gap:8px; font-size:13px; margin-bottom:20px; }
.plush-picker select { min-height:50px; width:100%; padding:11px 34px 11px 12px; border:1px solid #cfcfc9; border-radius:3px; background:#fff; font-size:16px; }
.plush-picker .primary { width:100%; margin-top:4px; }
.identity-help { margin-top:18px; font-size:12px; }
.identity-help summary { cursor:pointer; min-height:44px; display:flex; align-items:center; text-decoration:underline; text-underline-offset:4px; }
.identity-help summary:after { content:'＋'; margin-left:8px; font-size:13px; }
.identity-help[open] summary:after { content:'−'; }
.identity-help p { color:var(--muted); line-height:1.9; margin:2px 0 10px; }
.availability-note { margin-top:12px; font-size:11px; color:var(--muted); }
/* A selected plush is a compact control above the items, not another hero. */
.selected-plush-strip { display:flex; align-items:center; gap:20px; width:max-content; max-width:100%; min-height:44px; font-size:13px; border-bottom:1px solid #cdcdc6; }
.selected-plush-strip>span:first-child { min-width:0; }
.selection-change { flex:none; font-size:11px; text-decoration:underline; text-underline-offset:4px; color:var(--muted); }
.catalog-toolbar { display:flex; align-items:center; justify-content:space-between; min-height:48px; gap:16px; margin-bottom:12px; }
.result-count { font-size:12px; color:var(--muted); display:flex; align-items:center; gap:12px; }
.result-count b { font-size:inherit; font-weight:400; }
.result-count>span+span { margin-left:auto; }
.catalog-notice { position:relative; margin-left:auto; font-size:11px; color:var(--muted); }
.catalog-notice summary { cursor:pointer; min-height:44px; display:flex; align-items:center; text-decoration:underline; text-underline-offset:4px; }
.catalog-notice summary:after { content:'＋'; margin-left:6px; }
.catalog-notice[open] summary:after { content:'−'; }
.catalog-notice>div { position:absolute; right:0; top:44px; width:min(340px,85vw); z-index:5; padding:17px; background:#fff; border:1px solid #dcdcd6; box-shadow:0 4px 18px #00000010; color:#4f4f49; line-height:1.9; }
.catalog-notice p+p { margin-top:10px; }
.clothes-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:32px 20px; align-items:start; }
.clothes-card { min-width:0; background:none; border:0; }
.card-art { position:relative; aspect-ratio:4/5; background:var(--soft); overflow:hidden; }
.photo-placeholder { height:100%; width:100%; display:flex; align-items:center; justify-content:center; flex-direction:column; text-align:center; gap:8px; padding:15px; background:var(--soft); color:var(--muted); }
.photo-pending { font-size:11px; }
.photo-size { position:absolute; left:8px; bottom:8px; max-width:calc(100% - 16px); padding:2px 6px; background:#ffffffed; font-size:10px; line-height:1.6; color:#55554f; }
.favorite { position:absolute; right:8px; top:8px; width:44px; height:44px; display:grid; place-items:center; border:0; border-radius:50%; background:#ffffffc9; color:#53534e; }
.favorite .icon { width:18px; height:18px; }
.favorite:hover { color:var(--accent); }
.favorite.is-saved { color:var(--accent); }
.favorite.is-saved .icon { fill:#a36f6440; }
.card-body { padding:7px 0 0; }
.card-body h3 { font-size:13px; font-weight:400; line-height:1.65; }
.detail-button { min-height:44px; display:block; padding:4px 0; border:0; background:none; text-align:left; border-radius:0; font:inherit; line-height:inherit; }
.detail-button:hover { text-decoration:underline; text-underline-offset:4px; }
.card-fit-summary,.card-context { color:var(--muted); font-size:11px; line-height:1.7; }
.card-context { margin:0 0 4px; }
.listing-note { font-size:11px; color:var(--muted); margin-top:28px; }
/* Secondary searching and references keep their existing, evidence-bounded routes. */
.results-head { display:flex; justify-content:space-between; align-items:flex-start; gap:25px; margin-bottom:22px; }
.results-head h1 { font-size:22px; margin-bottom:9px; }
.results-head p { font-size:12px; color:var(--muted); }
.results-head .eyebrow { display:none; }
.compact { min-height:44px; padding:10px 15px; font-size:12px; }
.search-tools { display:flex; align-items:center; gap:16px; margin:20px 0; }
.search-box { display:flex; align-items:center; gap:10px; flex:1; border-bottom:1px solid #bbbcb4; padding:0 2px; }
.search-box input { width:100%; min-width:0; min-height:48px; border:0; font-size:14px; background:none; padding:12px 0; }
.search-box .icon { width:18px; height:18px; color:var(--muted); }
.evidence-select { display:flex; align-items:center; gap:10px; font-size:12px; }
select { max-width:100%; border:1px solid #cecec6; border-radius:3px; padding:10px; background:#fff; }
.shop-filters { display:flex; gap:8px; flex-wrap:wrap; margin:18px 0; }
.shop-filters button { min-height:44px; padding:8px 13px; border-bottom:1px solid transparent; font-size:12px; }
.shop-filters .active { border-color:#333; }
.results-head~.result-count { margin-bottom:17px; }
.bottom-note { margin-top:26px; }
.reference-head { margin-bottom:30px; }
.reference-head h1 { margin-bottom:10px; }
.reference-head p { font-size:12px; color:var(--muted); }
.selection h2 { font-size:16px; margin-bottom:12px; }
.retailer-grid { border-top:1px solid var(--line); }
.retailer-card { display:flex; align-items:center; gap:18px; padding:16px 3px; min-height:56px; width:100%; border-bottom:1px solid var(--line); text-align:left; font-size:13px; }
.retailer-name { flex:1; }
.retailer-count,.retailer-catalog-link { font-size:11px; color:var(--muted); }
.retailer-catalog-link { text-decoration:underline; text-underline-offset:4px; }
.reference-entry { margin:28px 0; }
.reference-entry>summary { cursor:pointer; min-height:44px; display:flex; align-items:center; font-size:13px; }
.scope-grid { display:grid; grid-template-columns:1fr 1fr; gap:15px; padding-top:15px; }
.scope-card { border-top:1px solid var(--line); padding:17px 0; }
.scope-card h3 { font-size:14px; margin-bottom:6px; }
.scope-card p { color:var(--muted); font-size:11px; }
.empty-state { grid-column:1/-1; max-width:660px; padding:35px 0; }
.empty-state h1,.empty-state h2 { font-size:21px; margin-bottom:16px; }
.empty-state p { color:var(--muted); font-size:13px; line-height:1.9; margin-bottom:22px; }
.empty-state p:last-child { margin-top:16px; }
.empty-state>span { display:none; }
.notice.warning { border-left:3px solid #b59765; padding:12px 14px; margin-bottom:18px; color:#7d6135; font-size:12px; background:#fbf7ed; }
.loading { padding:80px 0; font-size:13px; color:var(--muted); text-align:center; }
/* Details contain the full identity and proof; listing cards do not repeat it. */
.back-link { min-height:44px; display:flex; align-items:center; width:max-content; max-width:100%; font-size:12px; margin-bottom:12px; color:var(--muted); }
.pair-intro { display:grid; grid-template-columns:1fr 1.15fr; gap:50px; align-items:start; }
.pair-art { position:relative; aspect-ratio:1/1.15; overflow:hidden; background:var(--soft); }
.photo-detail strong { font-size:13px; font-weight:400; color:var(--muted); }
.photo-detail small { font-size:11px; }
.view-labels { display:flex; justify-content:center; gap:10px; flex-wrap:wrap; margin-top:20px; }
.view-labels span { font-size:10px; color:var(--muted); }
.pair-heading { padding-top:2px; }
.pair-heading h1 { font-size:24px; margin:10px 0 15px; line-height:1.65; }
.pair-variant,.pair-components { font-size:13px; color:var(--muted); }
.pair-components { margin-top:10px; }
.product-facts { margin:24px 0; border-top:1px solid var(--line); font-size:12px; }
.product-facts>div { display:grid; grid-template-columns:105px 1fr; gap:16px; border-bottom:1px solid var(--line); padding:12px 0; }
dt { color:var(--muted); }
dd { margin:0; overflow-wrap:anywhere; }
.product-facts small { font-size:10px; color:var(--muted); }
.pair-actions { display:flex; flex-wrap:wrap; gap:10px; }
.pair-actions .primary { flex:1; }
.pair-actions .secondary { font-size:12px; }
.stock-line { margin-top:12px; font-size:11px; }
.verdict { margin:32px 0 28px; padding:21px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.verdict h2 { font-size:16px; margin-bottom:6px; }
.verdict p { font-size:12px; color:var(--muted); line-height:1.9; }
.detail-grid { display:grid; grid-template-columns:1.3fr 1fr; gap:45px; align-items:start; }
.size-guide h2,.condition-panel h2 { font-size:18px; margin-bottom:17px; }
.size-guide>p { font-size:13px; line-height:1.95; }
.size-guide>.fine { font-size:11px; margin-top:16px; }
.dimension-group { margin-top:22px; }
.dimension-group h3 { font-size:13px; margin-bottom:9px; }
.dimension-group dl { margin:0; border-top:1px solid var(--line); }
.dimension-group dl>div { display:flex; justify-content:space-between; gap:20px; border-bottom:1px solid var(--line); padding:10px 0; font-size:12px; }
.dimension-group dd { text-align:right; }
.construction-facts { font-size:12px; line-height:1.9; padding-left:18px; color:var(--muted); }
.source-details { border-top:1px solid var(--line); border-bottom:1px solid var(--line); margin-top:24px; font-size:12px; }
.source-details>summary { cursor:pointer; padding:16px 0; min-height:44px; }
.source-details>summary>span { float:right; color:var(--muted); font-size:11px; }
.source-details>div { padding:0 0 20px; }
.source-details .fine { margin-top:13px; font-size:11px; }
.tag { display:inline-block; padding:2px 6px; background:#f3f3ee; color:#5d6257; font-size:10px; line-height:1.7; }
.evidence-meta { margin:15px 0; font-size:11px; }
.evidence-meta>div { display:grid; grid-template-columns:78px 1fr; gap:12px; margin-top:10px; }
.unknown-row { display:flex; justify-content:space-between; gap:15px; border-bottom:1px solid var(--line); padding:12px 0; font-size:12px; }
.unknown-row b { font-size:12px; font-weight:400; color:var(--muted); }
.condition-panel>.fine { font-size:11px; margin-top:17px; }
.caveats { border-bottom:1px solid var(--line); border-top:1px solid var(--line); padding:17px 0; margin:30px 0; font-size:12px; }
.caveats summary { cursor:pointer; min-height:30px; }
.caveats ul { padding-left:18px; color:var(--muted); line-height:2; }
.own-notes { margin-top:32px; }
.section-heading { display:flex; justify-content:space-between; align-items:center; gap:20px; margin-bottom:12px; }
.section-heading h2 { font-size:18px; }
.own-notes>p { font-size:12px; color:var(--muted); }
.report-form-wrap { margin-top:20px; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.report-form-wrap summary { min-height:48px; padding:13px 0; cursor:pointer; font-size:13px; }
.report-form-wrap form { padding:10px 0 22px; }
.form-grid { display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.report-form-wrap label { display:flex; flex-direction:column; gap:8px; font-size:12px; }
.report-form-wrap input,.report-form-wrap select,.report-form-wrap textarea { width:100%; min-width:0; min-height:44px; padding:11px; border:1px solid #cecec7; border-radius:3px; font-size:14px; background:white; }
.report-form-wrap form>label { margin:20px 0; }
.report-form-wrap textarea { min-height:110px; resize:vertical; }
.report-form-wrap .fine { margin-top:12px; font-size:11px; }
.local-report { border-top:1px solid var(--line); padding:20px 0; margin-top:22px; }
.report-title { display:flex; justify-content:space-between; align-items:center; gap:15px; }
.report-title b { font-size:14px; font-weight:500; overflow-wrap:anywhere; }
.local-report p { font-size:12px; margin-top:10px; overflow-wrap:anywhere; }
.local-report dl { display:grid; grid-template-columns:1fr 1fr; gap:8px 25px; font-size:11px; }
.local-report dl>div { display:flex; justify-content:space-between; gap:15px; }
.local-report small { font-size:10px; color:var(--muted); }
.report-note { white-space:pre-wrap; }
.error { color:#9b362f; font-size:12px; margin:14px 0; }
footer { max-width:1100px; padding:17px 0; margin:auto; border-top:1px solid var(--line); display:flex; align-items:flex-start; justify-content:center; gap:28px; color:var(--muted); font-size:11px; }
footer>a,footer>.text-button { display:flex; align-items:center; min-height:44px; font-size:11px; text-decoration:none; }
.site-info { max-width:280px; }
.site-info summary { cursor:pointer; display:flex; align-items:center; min-height:44px; }
.site-info p { margin:8px 0 12px; font-size:11px; line-height:1.9; }
.toast { position:fixed; bottom:20px; left:50%; transform:translateX(-50%); max-width:calc(100% - 32px); width:max-content; background:#333; color:white; padding:13px 18px; font-size:12px; border-radius:3px; z-index:20; }
.toast[hidden] { display:none; }
dialog { width:min(520px,calc(100% - 32px)); border:1px solid #d5d5ce; border-radius:5px; padding:26px; background:#fff; color:var(--ink); }
dialog::backdrop { background:#0005; }
.dialog-head { display:flex; align-items:center; justify-content:space-between; gap:15px; margin-bottom:16px; }
.dialog-head h2 { font-size:19px; }
.icon-button { width:44px; height:44px; font-size:25px; flex:none; }
dialog>p { font-size:12px; color:var(--muted); line-height:1.9; }
.data-actions { display:flex; gap:10px; margin:22px 0; }
.file-label { position:relative; cursor:pointer; }
.file-label input { position:absolute; width:1px; height:1px; opacity:0; }
.file-label:focus-within { outline:2px solid #8f6d5e; outline-offset:4px; }
@media(max-width:1000px) {
  .header { padding-inline:28px; }
  main { padding-inline:28px; }
  .clothes-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:28px 16px; }
  .pair-intro { gap:28px; }
  .pair-heading h1 { font-size:22px; }
  .pair-actions .primary { flex-basis:100%; }
  .pair-actions .secondary { flex:1; }
  .detail-grid { gap:30px; }
  footer { margin-inline:28px; }
}
@media(max-width:760px) {
  .header { height:60px; padding-inline:22px; }
  .brand { font-size:19px; }
  main { padding:18px 22px 40px; min-height:calc(100vh - 148px); }
  .choose-view { margin-top:20px; }
  .clothes-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:26px 14px; }
  .pair-intro { grid-template-columns:1fr 1fr; gap:24px; }
  .pair-heading h1 { font-size:20px; }
  .product-facts>div { grid-template-columns:78px 1fr; gap:10px; }
  .detail-grid { grid-template-columns:1fr; gap:30px; }
  .search-tools { display:block; }
  .evidence-select { margin-top:12px; }
  .evidence-select select { flex:1; }
  .results-head { display:block; }
  .results-head .compact { margin-top:12px; }
  .scope-grid { grid-template-columns:1fr; }
  footer { margin-inline:22px; gap:22px; }
}
@media(max-width:540px) {
  .header { height:56px; padding-inline:16px; }
  .brand { font-size:18px; }
  main { padding:12px 16px 36px; min-height:calc(100vh - 146px); }
  .choose-view { margin:20px auto 0; }
  .choose-view h1 { font-size:20px; margin-bottom:24px; }
  .plush-picker label { font-size:13px; margin-bottom:18px; }
  .plush-picker select { font-size:16px; min-height:48px; }
  .plush-picker .primary { min-height:48px; font-size:14px; }
  .identity-help { margin-top:13px; }
  .identity-help summary { font-size:12px; }
  .availability-note { margin-top:9px; }
  .selected-plush-strip { min-height:44px; font-size:12px; gap:14px; width:100%; }
  .selected-plush-strip>span:first-child { flex:1; }
  .selection-change { font-size:11px; }
  .catalog-toolbar { min-height:48px; margin-bottom:12px; }
  .result-count { font-size:11px; }
  .catalog-notice { font-size:11px; }
  .clothes-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:26px 12px; }
  .card-body { padding-top:6px; }
  .card-body h3 { font-size:13px; line-height:1.65; }
  .detail-button { min-height:44px; padding-top:4px; }
  .card-fit-summary,.card-context { font-size:10px; }
  .photo-size { font-size:10px; }
  .photo-pending { font-size:10px; }
  .listing-note { margin-top:24px; font-size:10px; line-height:1.9; }
  .results-head h1 { font-size:20px; }
  .results-head p { font-size:11px; }
  .results-head .compact { font-size:11px; }
  .search-box input { font-size:16px; }
  .evidence-select { font-size:11px; }
  .evidence-select select { font-size:12px; min-height:44px; }
  .shop-filters button { font-size:11px; padding-inline:10px; }
  .bottom-note { font-size:10px; }
  .reference-head h1 { font-size:21px; }
  .reference-head p { font-size:11px; }
  .retailer-card { flex-wrap:wrap; gap:2px 12px; font-size:12px; padding-block:14px; }
  .retailer-name { flex-basis:65%; }
  .retailer-count,.retailer-catalog-link { font-size:10px; }
  .reference-entry>summary { font-size:12px; }
  .scope-card h3 { font-size:13px; }
  .scope-card p { font-size:10px; }
  .empty-state { padding-top:25px; }
  .empty-state h1,.empty-state h2 { font-size:20px; }
  .empty-state p { font-size:12px; }
  .back-link { font-size:11px; margin-bottom:10px; }
  .pair-intro { grid-template-columns:1fr; gap:25px; }
  .pair-art { aspect-ratio:1/1; }
  .pair-heading h1 { font-size:21px; margin-top:9px; }
  .pair-heading .eyebrow { font-size:11px; }
  .pair-variant,.pair-components { font-size:12px; }
  .product-facts>div { font-size:12px; grid-template-columns:90px 1fr; padding-block:11px; }
  .pair-actions .primary { order:-1; font-size:14px; min-height:50px; }
  .pair-actions .secondary { min-height:44px; font-size:12px; }
  .photo-detail strong { font-size:12px; }
  .photo-detail small { font-size:10px; }
  .view-labels { gap:8px; }
  .view-labels span { font-size:10px; }
  .verdict { margin:26px 0; padding:19px 0; }
  .verdict h2 { font-size:15px; }
  .verdict p { font-size:11px; }
  .size-guide h2,.condition-panel h2 { font-size:17px; }
  .size-guide>p { font-size:12px; }
  .source-details>summary { font-size:12px; }
  .source-details>summary>span { font-size:10px; }
  .evidence-meta>div { grid-template-columns:74px 1fr; gap:10px; }
  .unknown-row { font-size:12px; }
  .section-heading { gap:12px; }
  .section-heading h2 { font-size:17px; }
  .section-heading .tag { font-size:9px; }
  .own-notes>p { font-size:11px; }
  .form-grid { grid-template-columns:1fr; gap:17px; }
  .report-form-wrap input,.report-form-wrap select,.report-form-wrap textarea { font-size:16px; }
  .report-form-wrap .primary { width:100%; font-size:13px; }
  .local-report dl { grid-template-columns:1fr; }
  .report-title { display:block; }
  .report-title .tag { margin-top:8px; }
  .local-report p { font-size:11px; }
  footer { margin-inline:16px; padding-block:12px; justify-content:space-between; gap:14px; font-size:10px; }
  footer>a,footer>.text-button { font-size:10px; }
  .site-info { max-width:140px; }
  .site-info summary { font-size:10px; }
  .site-info p { font-size:10px; }
  .toast { font-size:11px; padding:12px 15px; }
  dialog { padding:20px; }
  .dialog-head h2 { font-size:17px; }
  .data-actions { flex-direction:column; }
}
@media(max-width:360px) {
  .selected-plush-strip { font-size:11px; gap:10px; }
  .card-body h3 { font-size:12px; }
  .card-fit-summary { font-size:10px; }
  .photo-size { font-size:9px; }
  footer { gap:10px; }
}
@media(prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } *,*:before,*:after { animation:none!important; transition:none!important; } }

/* Missing media should not bury the product identity and official-shop action. */
.pair-heading h1 { text-wrap:balance; }
@media(max-width:540px) {
  .pair-art:has(.photo-detail) { aspect-ratio:auto; height:160px; }
}

/* Only our wrappers are styled; generated a/img attributes and styles are untouched. */
.approved-media { position:relative; background:#f5f5f3; }
.approved-media.photo-detail { width:100%; height:100%; }
.card-art:has(.approved-media) > .photo-size { top:8px; bottom:auto; }
.approved-media.photo-card { aspect-ratio:4/5; }
.affiliate-original { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; }
.approved-media[data-media-state="error"] .affiliate-original { visibility:hidden; }
.media-status { position:absolute; inset:0; display:grid; place-content:center; padding:24px 12px; font-size:11px; text-align:center; pointer-events:none; }
.media-status[hidden] { display:none; }
.media-ad { position:absolute; left:4px; right:4px; bottom:4px; background:#fff; color:#444; padding:2px; font-size:10px; text-align:center; pointer-events:none; }
.media-context { color:#555; font-size:12px; }
.media-detail-action { display:block; font-size:11px; text-decoration:underline; }

/* Generated 300px detail preset stays 300px; only the surrounding region scrolls. */
.pair-art:has(.approved-media.photo-detail) { height:360px; aspect-ratio:auto; }
.approved-media.photo-detail .affiliate-original { inset:0 0 44px; overflow:auto; align-items:safe center; justify-content:safe center; }
.media-scroll-note { position:absolute; bottom:24px; left:4px; right:4px; font-size:10px; text-align:center; color:#666; pointer-events:none; }

/* Personal entries remain visible and labels work without relying on color. */
.header { height:auto; min-height:72px; flex-wrap:wrap; gap:0 24px; }
.personal-nav { display:flex; align-items:center; gap:22px; }
.personal-nav a { display:flex; align-items:center; gap:5px; min-height:44px; font-size:13px; text-decoration:none; border-bottom:2px solid transparent; }
.personal-nav a[aria-current="page"] { border-bottom-color:var(--ink); font-weight:600; }
.personal-nav #saved-count { font-size:11px; }
[data-action="favorite"][aria-pressed="true"] { color:#a72c53; background:#fce4ed; border-color:#a72c53; }
[data-action="favorite"][aria-pressed="true"] .icon { fill:currentColor; }
.personal-heading { margin-bottom:28px; }
.personal-heading h1 { font-size:26px; }
.plush-list { display:grid; gap:20px; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); }
.plush-item { border:1px solid var(--line); padding:20px; min-width:0; overflow-wrap:anywhere; }
.plush-item h2 { font-size:19px; margin:0 0 8px; }
.plush-item p { font-size:12px; color:var(--muted); }
.plush-actions { display:flex; flex-wrap:wrap; gap:12px; align-items:center; margin-top:20px; }
.plush-actions button { min-height:44px; }
.plush-picker input { width:100%; min-height:48px; font:inherit; padding:10px; border:1px solid var(--line); border-radius:0; }
@media(max-width:540px) { .header { padding-top:12px; } .personal-nav { width:100%; justify-content:space-between; gap:8px; } .personal-nav a { font-size:12px; } .plush-list { grid-template-columns:1fr; } .plush-picker input { font-size:16px; } }

.plush-choice-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:12px; margin:24px 0; }
.plush-choice-card { display:flex; flex-direction:column; gap:9px; padding:20px; border:1px solid var(--line); background:#fff; color:var(--ink); text-align:left; min-width:0; overflow-wrap:anywhere; }
.plush-choice-card strong { font-size:19px; }
.plush-choice-card>span { font-size:12px; }
.plush-choice-card .plush-choice-action { margin-top:8px; font-weight:600; }
.other-plush { margin-top:24px; }
.other-plush>summary { min-height:44px; cursor:pointer; padding-block:12px; }
.other-plush .plush-picker { margin-top:16px; }
.target-select { display:grid; gap:7px; font-size:12px; min-width:0; }
.target-select select { min-height:44px; width:100%; max-width:100%; padding:8px; border:1px solid var(--line); background:#fff; color:var(--ink); font:inherit; }
@media(max-width:540px) { .plush-choice-grid { grid-template-columns:1fr; } .target-select select { font-size:16px; } }

.selected-owner-name { display:block; font-size:16px; margin-bottom:5px; overflow-wrap:anywhere; }
.detail-plush-context { display:flex; flex-direction:column; gap:5px; padding-bottom:14px; border-bottom:1px solid var(--line); overflow-wrap:anywhere; }
.detail-plush-context strong { font-size:18px; }
.detail-plush-context span { font-size:12px; color:var(--muted); }
.selected-plush-strip>span:first-child { min-width:0; }

/* The provider image retains its supplied 64/128px dimensions. */
.market-slot { display:contents; }
.market-frame { min-height:100%; padding:16px 12px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:5px; text-align:center; }
.market-frame p { margin:0; font-size:11px; line-height:1.5; }
.market-product { display:flex; align-items:center; justify-content:center; min-height:64px; font-size:12px; }
.market-image { object-fit:contain; max-width:100%; }
.market-credit { font-size:10px; overflow-wrap:anywhere; }
.market-context, .market-time { color:var(--muted); }
.market-unknown { position:absolute; bottom:8px; left:8px; right:8px; margin:0; font-size:10px; background:var(--soft); text-align:center; }
.market-unknown a { display:inline-block; margin-left:4px; }
.pair-art:has(.market-frame) { height:auto; min-height:280px; aspect-ratio:auto; }
.card-art:has(.market-frame) { aspect-ratio:auto; min-height:300px; }
.card-art:has(.market-frame) > .photo-size { top:8px; bottom:auto; }
.market-enabled .clothes-card .card-art { aspect-ratio:auto; height:330px; }
.market-enabled .card-art > .photo-size { top:8px; bottom:auto; }


/* Owner-supplied photos stay visually separate from merchant clothing images. */
.own-photo { display:flex; position:relative; overflow:hidden; align-items:center; justify-content:center; background:#f4f5f1; color:#61685b; flex-shrink:0; }
.own-photo-card { width:100%; aspect-ratio:1; margin-bottom:14px; border-radius:12px; }
.own-photo img { display:block; width:100%; height:100%; object-fit:contain; }
.own-photo img[hidden], .own-photo-fallback[hidden] { display:none; }
.own-photo-fallback { display:flex; flex-direction:column; align-items:center; gap:8px; text-align:center; padding:12px; font-size:12px; }
.own-photo-fallback .icon { width:28px; height:28px; }
.own-photo-small { width:60px; height:60px; border-radius:8px; }
.own-photo-small .own-photo-fallback { font-size:9px; gap:2px; padding:3px; }
.own-photo-small .own-photo-fallback .icon { width:20px; height:20px; }
.selected-plush-identity { display:flex; align-items:center; gap:12px; }
.selected-plush-identity>span:last-child { min-width:0; }
.detail-plush-context { flex-direction:row; align-items:center; gap:12px; }
.plush-context-copy { display:flex; flex-direction:column; gap:5px; min-width:0; }
.plush-context-copy strong { color:var(--ink); }
.plush-item>.own-photo-card { max-height:320px; }
.plush-choice-card { padding:14px; }
.plush-choice-card .own-photo { font-size:12px; margin-bottom:4px; }
.plush-actions a { display:inline-flex; align-items:center; min-height:44px; }
.plush-photo-field h2 { font-size:16px; margin:0 0 14px; }
.plush-photo-field h2>span { font-size:11px; color:var(--muted); font-weight:400; margin-left:6px; }
.plush-photo-preview { width:100%; max-width:260px; aspect-ratio:1; border-radius:12px; overflow:hidden; margin:0 auto 16px; background:#f4f5f1; }
.plush-photo-preview>.own-photo, .plush-photo-preview>img { width:100%; height:100%; object-fit:contain; }
.plush-picker .photo-file-label { gap:8px; font-weight:500; }
.plush-picker input[type=file] { min-height:44px; padding:8px; font-size:13px; max-width:100%; }
.plush-photo-field>.text-button { min-height:44px; text-decoration:underline; padding-inline:0; }
.plush-editor-actions { display:flex; flex-wrap:wrap; align-items:center; gap:12px; }
.plush-editor-actions .primary, .plush-editor-actions .secondary { min-height:48px; }
.plush-picker button:disabled, .plush-picker input:disabled { opacity:.55; cursor:wait; }
.plush-picker .error:empty, .plush-photo-field [role=status]:empty { display:none; }
@media(max-width:540px) { .own-photo-small { width:54px; height:54px; } .selected-plush-identity { gap:9px; } .selected-owner-name { font-size:15px; } .plush-choice-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; } .plush-choice-card strong { font-size:16px; } .plush-choice-card { padding:10px; } .plush-choice-card>span:not(.own-photo) { font-size:11px; } }
@media(max-width:350px) { .plush-choice-grid { grid-template-columns:1fr; } }

.market-title{display:block;overflow-wrap:anywhere;font-size:14px;line-height:1.5}.market-source,.market-disclaimer{font-size:11px;line-height:1.5;overflow-wrap:anywhere}.market-loading{font-size:12px;padding:12px}

.measurement-fields{padding:1rem 0;border-top:1px solid var(--line,#ddd)}
.measurement-fields h2{font-size:1.1rem}.measurement-fields details{margin-top:1rem}.measurement-fields li{margin:.5rem 0}
.measurement-comparison,.measurement-other{margin:1.5rem 0;padding:1rem;border:1px solid var(--line,#ddd);border-radius:12px}
.measurement-other summary{cursor:pointer;font-weight:600}.measurement-other li{margin:1rem 0}.measurement-comparison dl div{padding:.5rem 0}.measurement-comparison dd{margin:.25rem 0}
