/* 探す (2026-10-16): one-row search, dense results, quick view, selection bar, shop list. */

/* Search bar: scope · query · price · sort · search on one row */
#filters.tb-searchbar{display:flex;align-items:center;gap:8px;max-width:none;margin:0 0 10px;padding:0;border:0;background:none;flex-wrap:wrap}
.tb-scope{display:inline-flex;flex:none;padding:3px;border-radius:9px;background:#eef0f4}
.tb-scope>button{min-height:32px;padding:0 13px;border:0;border-radius:7px;background:transparent;color:var(--tb-muted);font:inherit;font-size:13px;font-weight:650;cursor:pointer}
.tb-scope>button[aria-pressed=true]{background:#fff;color:var(--tb-ink);box-shadow:0 1px 3px #1a24361a}
.tb-searchbar__query{flex:1 1 300px;min-width:200px;display:flex;align-items:center;gap:8px;min-height:40px;padding:0 12px;border:1px solid #cfd5df;border-radius:9px;background:#fff;color:var(--tb-muted)}
.tb-searchbar__query:focus-within{border-color:var(--tb-accent);box-shadow:0 0 0 3px #e8335f1f}
.taobao-page .tb-searchbar__query input{flex:1;height:auto;min-width:0;border:0;outline:0;background:none;font:inherit;font-size:14px;color:var(--tb-ink);padding:0;min-height:38px}
.tb-searchbar__price{display:flex;align-items:center;gap:4px;flex:none;color:var(--tb-muted)}
.taobao-page .tb-searchbar__price input{width:74px;height:40px;min-height:40px;padding:0 9px;border:1px solid #cfd5df;border-radius:9px;background:#fff;font:inherit;font-size:13px;box-sizing:border-box}
.tb-searchbar select{min-height:40px;padding:0 30px 0 10px;border:1px solid #cfd5df;border-radius:9px;background-color:#fff;font:inherit;font-size:13px;flex:none}
.tb-searchbar>.taobao-primary{min-height:40px;padding:0 20px;flex:none}
.tb-searchbar [hidden]{display:none!important}
.tb-link{border:0;background:none;color:var(--tb-accent);font:inherit;font-size:13px;font-weight:600;cursor:pointer;padding:4px 2px;text-decoration:none}
.tb-link:hover{text-decoration:underline}
.tb-chips{display:flex;gap:6px;margin:0 0 14px;overflow-x:auto;scrollbar-width:none}
.tb-chips[hidden]{display:none}
.tb-chip-button{flex:none;min-height:30px;padding:0 12px;border:1px solid var(--tb-line);border-radius:999px;background:#fff;color:#3a4961;font:inherit;font-size:12px;cursor:pointer}
.tb-chip-button:hover{border-color:#c5ccd8;color:var(--tb-ink)}

/* Shop header and discovery */
.tb-shop-head{display:flex;align-items:center;flex-wrap:wrap;gap:8px 16px;margin:0 0 12px;padding:12px 16px;border:1px solid var(--tb-line);border-radius:12px;background:#fff}
.tb-shop-head[hidden]{display:none}
.tb-shop-head__name{display:flex;align-items:baseline;gap:10px;flex:1;min-width:0}
.tb-shop-head__name h2{margin:0;font-size:17px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tb-shop-head__actions{display:flex;gap:8px}
.tb-shop-head__actions .taobao-secondary{min-height:34px}
.tb-shop-head>p{flex-basis:100%;margin:0}
.tb-shop-head>p:empty{display:none}
.tb-discovery{display:flex;align-items:center;flex-wrap:wrap;gap:6px 12px;margin:0 0 8px}
.tb-discovery[hidden]{display:none}
.tb-discovery h2{margin:0;font-size:16px}
.tb-discovery>p{margin:0;flex:1;min-width:200px;font-size:12px}
.tb-discovery__tools{display:flex;align-items:center;gap:8px}
.tb-discovery__tools select{min-height:34px;padding:0 28px 0 10px;border:1px solid #cfd5df;border-radius:8px;background-color:#fff;font:inherit;font-size:13px}
.tb-discovery__tools .taobao-secondary{min-height:34px}

/* Results */
.tb-results-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 10px}
.tb-results-head__title{display:flex;align-items:baseline;gap:10px;min-width:0}
.tb-results-head__title h2{margin:0;font-size:16px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tb-results-head__tools{display:flex;align-items:center;gap:10px;flex:none}
.tb-results-head__tools .taobao-secondary{min-height:32px;font-size:12px}
.tb-results-head [hidden]{display:none}
.tb-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(184px,1fr));gap:12px}
.tb-skeleton{aspect-ratio:3/4.2;border-radius:10px;background:linear-gradient(100deg,#eef0f4 30%,#f6f7fa 50%,#eef0f4 70%);background-size:300% 100%;animation:tb-shine 1.4s ease-in-out infinite}
@keyframes tb-shine{from{background-position:100% 0}to{background-position:0 0}}
@media(prefers-reduced-motion:reduce){.tb-skeleton{animation:none}}

.tb-card{position:relative;display:flex;flex-direction:column;border:1px solid var(--tb-line);border-radius:10px;background:#fff;overflow:hidden;transition:border-color .15s,box-shadow .15s}
.tb-card:hover{border-color:#c9d0dc;box-shadow:0 4px 14px #17213b14}
.tb-card.is-selected{border-color:var(--tb-accent);box-shadow:0 0 0 1px var(--tb-accent)}
.tb-card.is-viewing{border-color:#243047;box-shadow:0 0 0 2px #24304733}
.tb-card__media{display:block;aspect-ratio:1;width:100%;padding:0;border:0;background:#f3f4f7;cursor:pointer;overflow:hidden}
.tb-card__media img{width:100%;height:100%;object-fit:cover;display:block}
.tb-card__media.is-missing{background:#f3f4f7}
.tb-card__check{position:absolute;top:8px;left:8px;display:grid;place-items:center;width:26px;height:26px;border-radius:7px;background:#ffffffe6;box-shadow:0 1px 3px #0000001f;cursor:pointer}
.taobao-page .tb-card__check input{appearance:none;display:grid;place-items:center;width:16px;height:16px;min-height:0;margin:0;padding:0;border:1.5px solid #8f99a8;border-radius:4px;background:#fff;cursor:pointer}
.taobao-page .tb-card__check input:checked{border-color:var(--tb-accent);background:var(--tb-accent)}
.taobao-page .tb-card__check input:checked::after{content:'';width:8px;height:4px;margin-top:-2px;border:solid #fff;border-width:0 0 2px 2px;transform:rotate(-45deg)}
.taobao-page .tb-card__check input:focus-visible{outline:2px solid var(--tb-accent);outline-offset:2px}
.tb-card__actions{position:absolute;top:8px;right:8px;display:flex;gap:5px}
.tb-card__actions .taobao-icon-action{opacity:1}
.tb-card__body{display:grid;gap:4px;padding:9px 11px 11px;border:0;background:none;text-align:left;font:inherit;color:inherit;cursor:pointer}
.tb-card__title{margin:0;font-size:13px;font-weight:600;line-height:1.45;color:var(--tb-ink);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.9em}
.tb-card__price{display:flex;flex-wrap:wrap;align-items:baseline;gap:0 6px}
.tb-card__price strong{font-size:16px;font-weight:760;color:var(--tb-accent);letter-spacing:-.01em;font-variant-numeric:tabular-nums}
.tb-card__price span{font-size:11px;color:var(--tb-muted);white-space:nowrap}
.tb-card__meta{display:flex;align-items:center;gap:6px;min-width:0;font-size:11px;color:var(--tb-muted)}
.tb-card__shop{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tb-stock{flex:none;padding:1px 7px;border-radius:999px;font-size:11px;font-weight:650;background:#eef0f4;color:#4a5568}
.tb-stock[data-state=out]{background:#fdebee;color:#a02c38}
.tb-stock[data-state=in]{background:#e8f4ee;color:#256344}
.tb-more{display:grid;justify-items:center;gap:8px;padding:18px 0 8px}
.tb-more>p{margin:0;font-size:12px;text-align:center}
.tb-more>p:empty{display:none}
#sentinel{height:1px;width:100%}

/* Quick view */
.tb-quick{position:fixed;z-index:70;top:0;right:0;bottom:0;width:min(620px,100vw);display:flex;flex-direction:column;background:#fff;box-shadow:-12px 0 40px #0d142429;outline:0}
.tb-quick[hidden]{display:none}
.tb-quick__bar{display:flex;align-items:center;gap:6px;padding:10px 14px;border-bottom:1px solid var(--tb-line);flex:none}
.tb-quick__step,.tb-quick__close{display:grid;place-items:center;width:34px;height:34px;border:1px solid var(--tb-line);border-radius:8px;background:#fff;font-size:20px;line-height:1;color:var(--tb-ink);cursor:pointer}
.tb-quick__step:disabled{opacity:.35;cursor:default}
.tb-quick__position{font-size:12px;color:var(--tb-muted);font-variant-numeric:tabular-nums;margin-right:auto;padding-left:4px}
.tb-quick__full{min-height:34px;padding:0 12px;border:1px solid var(--tb-line);border-radius:8px;background:#fff;font:inherit;font-size:12px;font-weight:600;color:var(--tb-ink);cursor:pointer}
.tb-quick__body{flex:1;overflow:auto;padding:16px 18px 28px;display:grid;gap:16px;align-content:start}
.tb-quick__gallery{display:grid;gap:8px}
.tb-quick__stage{aspect-ratio:1;max-height:min(440px,48vh);border-radius:12px;background:#f3f4f7;overflow:hidden;display:grid;place-items:center}
.tb-quick__stage img{width:100%;height:100%;object-fit:contain}
.tb-quick__thumbs{display:flex;gap:6px;overflow-x:auto;scrollbar-width:thin}
.tb-quick__thumb{flex:none;width:54px;height:54px;padding:0;border:2px solid transparent;border-radius:8px;overflow:hidden;background:#f3f4f7;cursor:pointer}
.tb-quick__thumb[aria-current=true]{border-color:var(--tb-accent)}
.tb-quick__thumb img{width:100%;height:100%;object-fit:cover;display:block}
.tb-quick__info{display:grid;gap:10px}
.tb-quick__title{margin:0;font-size:17px;line-height:1.5;color:var(--tb-ink)}
.tb-quick__original{margin:-6px 0 0;font-size:12px;color:var(--tb-muted);line-height:1.6}
.tb-quick__price{display:flex;align-items:baseline;gap:10px}
.tb-quick__price strong{font-size:24px;font-weight:760;color:var(--tb-accent);letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.tb-quick__price s{font-size:13px;color:var(--tb-muted)}
.tb-quick__chips{display:flex;flex-wrap:wrap;gap:6px}
.tb-chip{padding:1px 8px;border-radius:999px;background:#eef0f4;color:#4a5568;font-size:11px;font-weight:600}
.tb-quick__variants{display:grid;gap:8px;padding:10px 12px;border:1px solid var(--tb-line);border-radius:10px;background:#fafbfc}
.tb-quick__group{display:grid;gap:5px}
.tb-quick__group-name{font-size:12px;font-weight:700;color:#3a4961}
.tb-quick__values{display:flex;flex-wrap:wrap;gap:5px;max-height:132px;overflow:auto;scrollbar-width:thin}
.tb-quick__value{display:inline-flex;align-items:center;gap:6px;max-width:220px;min-height:30px;padding:2px 9px 2px 3px;border:1px solid #d8dde6;border-radius:7px;background:#fff;font:inherit;font-size:12px;color:var(--tb-ink);cursor:pointer}
.tb-quick__value:not(:has(img)){padding-left:9px}
.tb-quick__value img{width:24px;height:24px;border-radius:5px;object-fit:cover}
.tb-quick__value span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tb-quick__value[aria-pressed=true]{border-color:var(--tb-accent);background:#fff4f7;color:#a81b40}
.tb-quick__more{align-self:center;font-size:12px;color:var(--tb-muted)}
.tb-quick__variant-result{margin:0;font-size:12px;color:#3a4961;font-variant-numeric:tabular-nums}
.tb-quick__actions{display:flex;flex-wrap:wrap;gap:8px}
.tb-quick__actions>*{min-height:38px;display:inline-flex;align-items:center;text-decoration:none}
.tb-quick__shop{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 0;border-top:1px solid var(--tb-line);font-size:13px}
.tb-quick__facts{display:grid;grid-template-columns:minmax(80px,max-content) 1fr;gap:4px 14px;margin:0;font-size:12px;border-top:1px solid var(--tb-line);padding-top:10px}
.tb-quick__facts dt{color:var(--tb-muted)}
.tb-quick__facts dd{margin:0;color:var(--tb-ink);overflow-wrap:anywhere}
.tb-quick__loading{display:grid;gap:10px;justify-items:start;padding:8px 0}
.tb-quick__loading img{width:100%;max-height:360px;object-fit:contain;border-radius:12px;background:#f3f4f7;opacity:.7}
.tb-quick__loading p{margin:0;color:var(--tb-muted);font-size:13px}

/* Selection bar */
.tb-selection{position:fixed;z-index:60;left:16px;right:16px;bottom:18px;width:fit-content;margin-inline:auto;display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:8px 10px;box-sizing:border-box;padding:8px 10px 8px 18px;border-radius:12px;background:#1d2638;color:#fff;box-shadow:0 10px 30px #0d142440}
.tb-selection[hidden]{display:none}
/* Centred in the full width (a left edge at 50% left it half the screen, so a phone stacked its words); beside an open
   quick view, in the part of the page left of it. */
.tb-quick-open .tb-selection{right:calc(min(620px,100vw) + 16px)}
.tb-selection strong{font-size:13px;white-space:nowrap;font-variant-numeric:tabular-nums}
.tb-selection .taobao-primary{min-height:34px;white-space:nowrap}
.tb-selection__clear{white-space:nowrap}
.tb-selection__clear{border:0;background:none;color:#c9d2e3;font:inherit;font-size:12px;cursor:pointer;padding:6px}
.tb-selection__clear:hover{color:#fff}
.tb-selection>span{font-size:12px;color:#ffd3dd;max-width:260px}
.tb-selection>span:empty{display:none}

/* Shops */
.tb-shops[hidden]{display:none}
.tb-shops__head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 6px}
.tb-shop-filter{display:inline-flex;padding:3px;border-radius:9px;background:#eef0f4}
.tb-shop-filter>button{min-height:30px;padding:0 12px;border:0;border-radius:7px;background:transparent;color:var(--tb-muted);font:inherit;font-size:13px;font-weight:600;cursor:pointer}
.tb-shop-filter>button[aria-pressed=true]{background:#fff;color:var(--tb-ink);box-shadow:0 1px 3px #1a24361a}
.tb-shops__note{margin:0 0 10px;font-size:12px}
.tb-shop-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(420px,1fr));gap:8px}
.tb-shop-row{display:flex;align-items:center;gap:10px;padding:8px 12px 8px 8px;border:1px solid var(--tb-line);border-radius:10px;background:#fff}
.tb-shop-row__open{display:flex;align-items:center;gap:12px;flex:1;min-width:0;padding:0;border:0;background:none;text-align:left;font:inherit;color:inherit;cursor:pointer}
.tb-shop-row__thumbs{display:flex;gap:4px;flex:none}
.tb-shop-row__thumbs img{width:48px;height:48px;border-radius:6px;object-fit:cover;background:#f3f4f7}
.tb-shop-row__name{display:grid;min-width:0}
.tb-shop-row__name strong{font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tb-shop-row__name small{font-size:11px;color:var(--tb-muted)}
.tb-shop-row>.taobao-secondary{min-height:32px;flex:none}
.tb-shop-row>.taobao-hint{font-size:11px;max-width:120px}
.tb-shop-row>.taobao-hint:empty{display:none}


@media(max-width:900px){
 .tb-searchbar__query{flex-basis:100%;order:-1}
 .tb-grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px}
 .tb-shop-list{grid-template-columns:1fr}
 .tb-quick-open .tb-selection{right:16px}
}
@media(max-width:600px){
 .tb-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .tb-results-head{flex-wrap:wrap}
 .tb-quick__body{padding:12px 14px 24px}
}

/* コレクション detail: one row for count/help and actions; list-only tools stay on the list. */
#saved-workspace:has(#detail-pane:not([hidden])) .taobao-saved-tools{display:none}
#detail-pane:not([hidden]){display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:12px}
#detail-pane>*{grid-column:1/-1}
#detail-pane>#detail-state{grid-column:1;display:flex;align-items:center;flex-wrap:wrap;gap:4px 10px;margin:0 0 10px}
#detail-pane>#detail-state>p{margin:0}
#detail-pane>#detail-actions{grid-column:2;margin:0 0 10px}
#saved-cards.tb-grid{margin-top:4px}

/* 2026-10-17 quick view pictures: square stage centred in the panel, arrows on hover (always on touch screens),
 * position badge, and a blurred small picture while the large one is still on its way. */
.tb-quick__stage{position:relative;justify-self:center;width:min(100%,440px,48vh);max-height:none;touch-action:pan-y;user-select:none}
.tb-quick__stage img{transition:filter .18s ease-out}
.tb-quick__stage.is-loading img{filter:blur(5px) saturate(.92)}
.tb-quick__nav{position:absolute;top:50%;display:grid;place-items:center;width:36px;height:36px;margin-top:-18px;padding:0 0 2px;border:0;border-radius:50%;background:rgb(255 255 255/.92);box-shadow:0 1px 4px rgb(13 20 36/.22);color:var(--tb-ink);font-size:22px;line-height:1;cursor:pointer;opacity:0;transition:opacity .15s}
.tb-quick__nav--prev{left:10px}.tb-quick__nav--next{right:10px}
.tb-quick__stage:hover .tb-quick__nav,.tb-quick__nav:focus-visible{opacity:1}
.tb-quick__nav:hover{background:#fff}
.tb-quick__count{position:absolute;right:10px;bottom:10px;padding:2px 8px;border-radius:999px;background:rgb(13 20 36/.55);color:#fff;font-size:11px;line-height:18px;font-variant-numeric:tabular-nums;pointer-events:none}
.tb-quick__thumbs{justify-content:safe center}
@media(hover:none){.tb-quick__nav{opacity:1}}
@media(prefers-reduced-motion:reduce){.tb-quick__stage img,.tb-quick__nav{transition:none}}
/* 2026-10-17 「店舗の商品リストをまとめて取得」 dialog (shop-list-dialog.js). */
.taobao-shoplist-open{display:inline-flex;align-items:center;gap:6px;min-height:34px;padding:0 13px;border-radius:9px;font-size:12px;font-weight:650;text-decoration:none}
.taobao-shoplist-open svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.taobao-page dialog.tb-shoplist{width:min(640px,calc(100vw - 32px));max-width:none;max-height:min(760px,calc(100dvh - 32px));box-sizing:border-box;padding:0;border:1px solid var(--tb-line);border-radius:16px;background:#fff;color:var(--tb-ink);box-shadow:0 24px 60px -20px rgb(13 20 36/.35);overflow:auto}
.tb-shoplist::backdrop{background:rgb(15 22 40/.45)}
.tb-shoplist__form{display:grid;gap:18px;padding:22px 24px 20px}
.tb-shoplist__head{display:flex;align-items:flex-start;gap:16px}
.tb-shoplist__head>div{flex:1;min-width:0}
.tb-shoplist__head h2{margin:0;font-size:18px;line-height:1.45;font-weight:750;letter-spacing:-.01em}
.tb-shoplist__lead{margin:4px 0 0;font-size:13px;line-height:1.7;color:var(--tb-muted)}
.tb-shoplist__close{flex:none;display:grid;place-items:center;width:34px;height:34px;margin:-4px -6px 0 0;padding:0;border:0;border-radius:9px;background:transparent;color:var(--tb-muted);cursor:pointer}
.tb-shoplist__close:hover{background:#f1f3f7;color:var(--tb-ink)}
.tb-shoplist__close svg,.tb-shoplist__chip-remove svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
.tb-shoplist__field{position:relative;display:grid;gap:7px;min-width:0}
.tb-shoplist__label-row{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.tb-shoplist__label{font-size:13px;font-weight:700;color:var(--tb-ink)}
.tb-shoplist__counter{font-size:12px;color:var(--tb-muted);font-variant-numeric:tabular-nums}
.tb-shoplist__counter[data-full=true]{color:#9b4f12;font-weight:650}
.tb-shoplist__box{display:flex;flex-wrap:wrap;align-items:center;gap:6px;min-height:48px;padding:6px 8px;border:1px solid #cfd5df;border-radius:12px;background:#fff;cursor:text;transition:border-color .15s,box-shadow .15s}
.tb-shoplist__box:focus-within{border-color:var(--tb-accent);box-shadow:0 0 0 3px rgb(201 33 75/.12)}
.tb-shoplist__chips{display:contents;list-style:none;margin:0;padding:0}
.tb-shoplist__chip{display:inline-flex;align-items:center;gap:8px;max-width:100%;min-height:34px;padding:3px 4px 3px 4px;border:1px solid #e3e7ee;border-radius:10px;background:#f7f8fb}
.tb-shoplist__avatar{display:grid;place-items:center;flex:none;width:28px;height:28px;border-radius:7px;overflow:hidden;background:#eceff4;color:#7a8597}
.tb-shoplist__avatar img{width:100%;height:100%;object-fit:cover}
.tb-shoplist__avatar svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linejoin:round}
.tb-shoplist__chip-text{display:grid;min-width:0;line-height:1.25}
.tb-shoplist__chip-text strong{max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12.5px;font-weight:650}
.tb-shoplist__chip-text small{font-size:11px;color:var(--tb-muted);font-variant-numeric:tabular-nums}
.tb-shoplist__chip-remove{display:grid;place-items:center;flex:none;width:26px;height:26px;padding:0;border:0;border-radius:7px;background:transparent;color:#7a8597;cursor:pointer}
.tb-shoplist__chip-remove:hover{background:#e8ebf1;color:var(--tb-ink)}
.taobao-page dialog.tb-shoplist .tb-shoplist__box input{flex:1 1 180px;min-width:120px;min-height:34px;padding:0 6px;border:0;outline:0;box-shadow:none;background:transparent;font:inherit;font-size:14px;color:var(--tb-ink)}
.tb-shoplist__box input:disabled{display:none}
.tb-shoplist__combo{position:relative}
.tb-shoplist__suggest{position:absolute;z-index:3;top:calc(100% + 6px);left:0;right:0;display:grid;gap:2px;max-height:300px;overflow:auto;padding:6px;border:1px solid var(--tb-line);border-radius:12px;background:#fff;box-shadow:0 16px 36px -14px rgb(13 20 36/.3)}
.tb-shoplist__suggest[hidden]{display:none}
.tb-shoplist__group{margin:4px 8px 4px;font-size:11px;font-weight:700;letter-spacing:.04em;color:var(--tb-muted)}
.tb-shoplist__option{display:flex;align-items:center;gap:10px;width:100%;min-height:46px;padding:6px 8px;border:0;border-radius:9px;background:transparent;font:inherit;text-align:left;color:var(--tb-ink);cursor:pointer}
.tb-shoplist__option:hover,.tb-shoplist__option[aria-selected=true]{background:#f3f5f9}
.tb-shoplist__option[aria-disabled=true]{cursor:default;opacity:.65}
.tb-shoplist__option-text{display:grid;flex:1;min-width:0;line-height:1.3}
.tb-shoplist__option-text strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:650}
.tb-shoplist__option-text small,.tb-shoplist__option small{font-size:11.5px;color:var(--tb-muted);font-variant-numeric:tabular-nums}
.tb-shoplist__option--paste{display:grid;gap:1px}
.tb-shoplist__option-main{font-size:13px;font-weight:700;color:var(--tb-accent)}
.tb-shoplist__option-tools{display:flex;align-items:center;gap:6px;flex:none}
.tb-shoplist__tag{display:inline-flex;align-items:center;min-height:26px;padding:0 10px;border-radius:999px;background:#fdecef;color:var(--tb-accent);font-size:12px;font-weight:700}
.tb-shoplist__tag.is-added{background:#eef1f5;color:var(--tb-muted)}
.tb-shoplist__follow{min-height:26px;padding:0 9px;border:1px solid #dbe1ea;border-radius:999px;background:#fff;color:#3a4961;font:inherit;font-size:11.5px;font-weight:600;cursor:pointer}
.tb-shoplist__follow:hover{border-color:#c5ccd8;color:var(--tb-ink)}
.tb-shoplist__empty{margin:6px 8px;font-size:12.5px;line-height:1.6;color:var(--tb-muted)}
.tb-shoplist__hint{margin:0;font-size:12px;line-height:1.6;color:var(--tb-muted)}
.tb-shoplist__error{margin:0;font-size:12.5px;line-height:1.6;color:#b4193f}
.tb-shoplist__error:empty,.tb-shoplist__status:empty{display:none}
.tb-shoplist__grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.taobao-page dialog.tb-shoplist .tb-shoplist__grid input{min-height:42px;padding:0 12px;border:1px solid #cfd5df;border-radius:10px;font:inherit;font-size:14px;color:var(--tb-ink);background:#fff}
.taobao-page dialog.tb-shoplist .tb-shoplist__grid input:focus{outline:0;border-color:var(--tb-accent);box-shadow:0 0 0 3px rgb(201 33 75/.12)}
.tb-shoplist__summary{display:grid;gap:3px;padding:12px 14px;border-radius:12px;background:#f6f7fb;font-size:12.5px;line-height:1.65;color:#3a4961}
.tb-shoplist__summary p{margin:0}
.tb-shoplist__summary>p:first-child{font-weight:650;color:var(--tb-ink)}
.tb-shoplist__quota[data-low=true]{color:#9b4f12}
.tb-shoplist__quota:empty{display:none}
.tb-shoplist__muted{color:var(--tb-muted)}
.tb-shoplist__status{margin:0;font-size:13px;color:var(--tb-muted)}
.tb-shoplist__status[data-tone=error]{color:#b4193f}
.tb-shoplist__actions{display:flex;justify-content:flex-end;gap:8px}
.tb-shoplist__actions button{min-height:40px;padding:0 16px;border-radius:10px;font-size:13.5px}
.tb-shoplist__actions .taobao-primary:disabled{opacity:.45;cursor:not-allowed}
@media(max-width:600px){
 .taobao-page dialog.tb-shoplist{width:calc(100vw - 16px);max-height:calc(100dvh - 16px);border-radius:14px}
 .tb-shoplist__form{padding:18px 16px 16px;gap:16px}
 .tb-shoplist__grid{grid-template-columns:1fr}
 .taobao-page dialog.tb-shoplist :is(.tb-shoplist__box,.tb-shoplist__grid) input{font-size:16px}
 .tb-shoplist__chip-text strong{max-width:150px}
 .tb-shoplist__actions{display:grid;grid-template-columns:1fr 1.6fr}
}
/* Phones: a shop row keeps one picture so the name and ID fit; the ID never breaks. */
.tb-shop-row__name small{white-space:nowrap}
@media(max-width:600px){.tb-shop-row__thumbs img:nth-child(n+2){display:none}}
