#bw-collection { color:var(--tw-text);min-width:0; }
#bw-collection [hidden] { display:none!important; }
#bw-collection button,#bw-collection .button { min-height:44px; }
#bw-collection input:not([type=checkbox]),#bw-collection select,#bw-collection textarea { min-height:44px; max-width:100%; }
#bw-collection label { display:flex;flex-direction:column;gap:6px; }
#bw-collection .secondary,#bw-collection small { color:var(--tw-text-2); }
#bw-collection a { color:var(--tw-accent-text); }
.bc-toolbar { display:flex;flex-wrap:wrap;gap:12px;align-items:end;margin-block:20px 12px; }
.bc-toolbar label:first-child { flex:1;min-width:180px; }
.bc-filter-panel { background:var(--tw-surface);border:0.5px solid var(--tw-divider-strong);border-radius:16px;padding:20px;display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:16px;margin-block:16px; }
.bc-filter-panel>.actions { grid-column:1/-1; }
.bc-cards { display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:20px;margin-block:24px; }
.bc-card { border:0.5px solid var(--tw-divider-strong);border-radius:16px;padding:16px;display:flex;flex-direction:column;gap:12px;min-width:0; }
.bc-card>a[data-bc-item-link] { color:var(--tw-text)!important;text-decoration:none; }
.bc-identity { display:flex;flex-direction:column;gap:4px;align-items:start;min-width:0; }
.bc-identity strong { line-height:1.4;overflow-wrap:anywhere; }
.bc-card-foot { display:flex;flex-wrap:wrap;gap:8px;align-items:center; }
.bc-picture { width:56px;aspect-ratio:1;flex:none;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;background:var(--tw-surface-2);border:0.5px solid var(--tw-divider-strong);border-radius:10px;overflow:hidden;font-size:12px; }
.bc-picture button { background:#fff;border:0;padding:0;width:100%;height:100%; }
.bc-picture img { display:block;width:100%;height:100%;object-fit:contain;background:#fff; }
.bc-card>.bc-picture { width:100%;aspect-ratio:4/3; }
.bc-cards[data-view=list] { display:flex;flex-direction:column; }
.bc-cards[data-view=list] .bc-card { flex-direction:row;align-items:center;min-height:80px;border-radius:0;border-width:0 0 0.5px;padding:12px 0; }
.bc-cards[data-view=list] .bc-picture { width:56px;aspect-ratio:1; }
.bc-cards:not([data-view=list]) .bc-tile-dupe { display:none; }
.bc-cards[data-view=list] .bc-card>a[data-bc-item-link] { flex:1; }
.bc-cards[data-view=list] .bc-card-foot { max-width:35%;justify-content:end; }
.bc-cards>[data-bc-group-heading] { grid-column:1/-1; }
.bc-colour { min-height:22px;border-radius:6px;padding:2px 8px;background:var(--tw-surface-2);color:var(--tw-text);font-size:14px; }
.bc-colour-tile { min-height:96px;display:flex;align-items:center;justify-content:center;margin-block:16px; }
.bc-status { display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:999px;background:var(--tw-surface);font-size:14px;color:var(--tw-text); }
.bc-status.complete { background:var(--tw-success-soft); }.bc-status.incomplete { background:var(--tw-warning-soft); }.bc-status.sealed { background:var(--tw-info-soft); }.bc-status.unknown { border:0.5px dashed var(--tw-divider-strong); }
.bc-detail-hero { display:grid;grid-template-columns:minmax(220px,1fr) 1fr;gap:32px;align-items:center;margin-block:24px; }
.bc-hero-picture { width:100%;aspect-ratio:4/3;font-size:17px; }
.bc-detail-layout { display:grid;grid-template-columns:minmax(0,1.65fr) minmax(300px,1fr);gap:32px;margin-block:24px; }
.bc-module { border-radius:16px;background:var(--tw-surface);padding:20px;margin-bottom:24px; }
.bc-module>h2 { margin-top:0; }.bc-module dl { display:grid;grid-template-columns:minmax(90px,1fr) 2fr;gap:12px;margin-block:20px; }.bc-module dd { margin:0;overflow-wrap:anywhere; }.bc-module dt { color:var(--tw-text-2); }.bc-note { white-space:pre-wrap; }
.bc-row { display:flex;align-items:center;gap:12px;min-height:80px;padding:12px 0;border-bottom:0.5px solid var(--tw-divider-strong);overflow-wrap:anywhere; }
.bc-row>div:nth-child(2),.bc-row>a { flex:1;min-width:0; }.bc-row form { display:flex;align-items:end;flex-wrap:wrap;gap:12px; }.bc-row input { width:80px; }.bc-row form p { flex-basis:100%; }
.bc-price { display:flex;flex-direction:column;gap:12px;padding-block:20px;border-bottom:0.5px solid var(--tw-divider-strong); }.bc-price .actions { justify-content:space-between; }.bc-price p { margin:0; }
.bc-range { position:relative;height:8px;background:var(--tw-viz-n1,var(--tw-divider-strong));margin-block:8px; }.bc-range i { position:absolute;width:3px;height:16px;top:-4px;background:var(--tw-text); }
.bc-progress { height:8px;background:var(--tw-warning);border-radius:2px;overflow:hidden; }.bc-progress i { height:8px;display:block;background:var(--tw-viz-4,var(--tw-success)); }
.bc-sheet { padding:24px;width:min(480px,100%);background:var(--tw-sheet-bg,var(--tw-surface));border:0.5px solid var(--tw-divider-strong);border-radius:16px; }.bc-sheet form { display:flex;flex-direction:column;gap:16px; }.bc-sheet .bc-check { flex-direction:row!important;align-items:center;min-height:44px; }.bc-sheet fieldset { border:0.5px solid var(--tw-divider-strong);border-radius:10px; }
.tw-dark .bc-sheet,.tw-dark .bc-filter-panel { --tw-surface:var(--tw-surface-2); }
.bc-selection-bar { position:sticky;bottom:24px;padding:16px;background:var(--tw-surface-2);border:0.5px solid var(--tw-divider-strong);display:flex;gap:12px;align-items:center;flex-wrap:wrap;z-index:2; }
.bc-danger { background:var(--tw-danger-soft)!important;color:var(--tw-text)!important; }
.bc-photos { display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:12px; }.bc-photos figure { margin:0; }.bc-photos img { width:100%;aspect-ratio:1;object-fit:contain; }.bc-photos button { padding:0; }
.bc-lightbox { background:var(--tw-bg);width:min(1000px,95vw);max-height:90dvh;padding:20px; }.bc-lightbox-scroll { overflow:auto;max-height:65dvh; }.bc-lightbox img { object-fit:contain;max-width:none;height:auto;display:block; }
@media(min-width:1024px) { .bc-sheet { margin:0 0 0 auto;height:100%;max-height:100%;border-radius:0; }.bc-filter-panel { width:240px;float:right;grid-template-columns:1fr;margin-left:20px; }.bc-filter-panel>.actions { flex-wrap:wrap; }.bc-filter-panel:not([hidden])~.bc-cards { grid-template-columns:repeat(auto-fill,minmax(200px,1fr)); } }
@media(max-width:1023px) { .bc-detail-layout { gap:20px;grid-template-columns:minmax(0,1.4fr) minmax(260px,1fr); }.bc-filter-panel { position:fixed;inset:auto 0 calc(var(--bw-bottom) + 35px) 0;max-height:65dvh;overflow:auto;z-index:5;border-radius:16px 16px 0 0; }.bc-sheet { margin:auto 0 0;max-height:85dvh; } }
@media(max-width:767px) { .bc-cards { grid-template-columns:repeat(2,minmax(0,1fr));gap:12px; }.bc-card { padding:12px; }.bc-detail-hero,.bc-detail-layout { grid-template-columns:1fr;gap:20px; }.bc-selection-bar { bottom:calc(var(--bw-bottom) + 35px); }.bc-module dl { grid-template-columns:1fr;gap:4px; }.bc-module dd { margin-bottom:12px; }.bc-cards[data-view=list] .bc-card { flex-wrap:wrap; }.bc-cards[data-view=list] .bc-card-foot { max-width:100%; }.bc-sheet .primary { min-height:56px!important; }.bc-toolbar { gap:8px; }.bc-row { flex-wrap:wrap; } }
@media(hover:hover) { #bw-collection button:hover,#bw-collection a:hover { opacity:.7; } }
#bw-collection button:active { background:var(--tw-accent-soft); }#bw-collection :focus-visible { outline:2px solid var(--tw-accent);outline-offset:2px; }
@media(prefers-reduced-motion:reduce) { #bw-collection * { transition:none!important;scroll-behavior:auto; } }
#bw-collection[data-type=P] .bc-card>.bc-picture,#bw-collection[data-type=M] .bc-card>.bc-picture,#bw-collection[data-type=P] .bc-hero-picture,#bw-collection[data-type=M] .bc-hero-picture { aspect-ratio:1; }
#bw-collection[data-type=I] .bc-card>.bc-picture,#bw-collection[data-type=I] .bc-hero-picture { aspect-ratio:3/4; }
.bc-sheet[open] { animation:bc-sheet-in 240ms cubic-bezier(.2,.6,.2,1);box-shadow:none; }
.bc-selection { min-height:44px; }
@keyframes bc-sheet-in { from { transform:translateX(8%);opacity:0; } to { transform:translateX(0);opacity:1; } }
@media(max-width:1023px) { @keyframes bc-sheet-in { from { transform:translateY(8%);opacity:0; } to { transform:translateY(0);opacity:1; } } }
@media(prefers-reduced-motion:reduce) { .bc-sheet[open] { animation:none; } }

/* Collection frames: open identity cards, compact heroes and a quiet toolbar.
   Scope all overrides to Collection; Planning uses the shared defaults above.
   :where() keeps the original specificity of shared class selectors. */
body:has(#bw-collection[data-bc-collection-list]) .shell-add { display:none; }
body:has(#bw-collection) .layout>main { padding-top:28px; }
#bw-collection [data-bc-message]:empty { height:0;margin:0;padding:0;overflow:hidden; }
:where(#bw-collection) .bc-heading { display:flex;align-items:end;justify-content:space-between;gap:24px;margin-bottom:20px; }
:where(#bw-collection) .bc-heading h1 { letter-spacing:-.3px; }
:where(#bw-collection) .bc-heading p { margin-top:4px; }
#bw-collection .primary { background:var(--tw-accent);color:#1A1816;border-color:var(--tw-accent);min-height:44px; }
:where(#bw-collection) .bc-list-options { gap:8px; }
:where(#bw-collection,#bw-planning,#bw-check-choices) .bc-toolbar { gap:8px;margin-block:16px 12px;align-items:end; }
:is(#bw-collection,#bw-planning,#bw-check-choices) .bc-toolbar label:first-child { flex:0 1 340px; }
:is(#bw-collection,#bw-planning,#bw-check-choices) .bc-toolbar input,:is(#bw-collection,#bw-planning,#bw-check-choices) .bc-toolbar select { background:var(--tw-surface);border-color:transparent; }
:where(#bw-collection,#bw-planning,#bw-check-choices) .bc-toolbar [data-bc-count] { margin-left:auto;font-size:13px; }
:where(#bw-collection) .bc-cards { gap:28px 20px;margin-block:20px; }
:where(#bw-collection) .bc-card { border:0;padding:0;border-radius:0;gap:6px;align-self:start; }
:where(#bw-collection) .bc-identity { gap:4px; }
:where(#bw-collection) .bc-identity>.mono { font-size:12px;line-height:16px; }
:where(#bw-collection) .bc-identity strong { font-size:15px;line-height:20px; }
:where(#bw-collection) .bc-identity>.secondary { font-size:13px;line-height:18px; }
:where(#bw-collection) .bc-card-foot { gap:6px;justify-content:space-between;font-size:12px;line-height:16px; }
:where(#bw-collection) .bc-status { font-size:12px;line-height:16px;padding:4px 10px; }
:where(#bw-collection) .bc-status:is(.complete,.incomplete,.sealed,.unknown)::before { content:"";width:7px;height:7px;border-radius:50%;flex:none;background:var(--tw-text-2); }
:where(#bw-collection) .bc-status.complete::before { background:var(--tw-success); }
:where(#bw-collection) .bc-status.incomplete::before { background:var(--tw-warning); }
:where(#bw-collection) .bc-status.sealed::before { background:var(--tw-info); }
:where(#bw-collection) .bc-detail-hero { grid-template-columns:200px minmax(0,1fr);align-items:end;gap:28px;margin-block:8px 32px; }
:where(#bw-collection) .bc-detail-hero h1 { font-size:34px;line-height:40px;letter-spacing:-.4px;margin-block:8px; }
:where(#bw-collection) .bc-detail-hero .bc-identity { flex-direction:row;flex-wrap:wrap;align-items:center;gap:6px; }
:where(#bw-collection) .bc-detail-hero .bc-identity>.secondary { font-size:12px;line-height:16px; }
:where(#bw-collection) .bc-detail-hero .bc-identity>.secondary::before { content:"· "; }
:where(#bw-collection) .bc-module>.actions { justify-content:space-between; }
#bw-collection .bc-outline,#bw-collection [data-module=info]>.actions>button,#bw-collection [data-module=matching] .primary { background:transparent;color:var(--tw-accent-text);border-color:var(--tw-accent); }
#bw-collection[data-type=P] .bc-detail-hero,#bw-collection[data-type=M] .bc-detail-hero { grid-template-columns:160px minmax(0,1fr); }
:where(#bw-collection) .bc-detail-hero .bc-colour-tile { max-width:350px; }
:where(#bw-collection) .bc-detail-layout { grid-template-columns:minmax(0,1fr) 400px;gap:0 40px;align-items:start;margin-block:24px; }
/* Phone reading order is Info/Prices then inventory/Matching; place support at right on desktop. */
:where(#bw-collection) .bc-detail-aside { grid-column:2;grid-row:1; }
:where(#bw-collection) .bc-detail-main { grid-column:1;grid-row:1;min-width:0; }
:where(#bw-collection) .bc-module { gap:16px;margin-bottom:12px; }
:where(#bw-collection) .bc-module>h2,:where(#bw-collection) .bc-module>.actions>h2 { font-size:11px;line-height:14px;letter-spacing:.1em;text-transform:uppercase;font-weight:500;color:var(--tw-text-2); }
:where(#bw-collection) .bc-module[data-module=info] dl { grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 16px;margin-block:0; }
:where(#bw-collection) .bc-fact { min-width:0; }
:where(#bw-collection) .bc-fact dt { font-size:12px;line-height:16px;margin-bottom:2px; }
:where(#bw-collection) .bc-fact dd { font-size:15px;line-height:20px;margin:0; }
:where(#bw-collection) .bc-fact small { font-size:12px;line-height:16px; }
:where(#bw-collection) .bc-detail-main>[data-module=matching],:where(#bw-collection) .bc-detail-main>[data-module=consists] { background:transparent;padding:0;margin-block:0 32px; }
:where(#bw-collection) .bc-price { gap:10px;padding-block:16px; }
:where(#bw-collection) .bc-price:first-of-type { padding-top:0; }
:where(#bw-collection) .bc-price>.actions>.mono { font-size:22px;line-height:28px;font-weight:500; }
:where(#bw-collection) .bc-price small,:where(#bw-collection) .bc-price>.secondary,:where(#bw-collection) .bc-range+.actions { font-size:12px;line-height:16px; }
:where(#bw-collection) .bc-range { background:var(--tw-viz-2);border-radius:4px; }
:where(#bw-collection) .bc-range i { height:20px;top:-6px;border-radius:2px; }
:where(#bw-collection) .bc-row { border-color:var(--tw-divider); }
#bw-collection .bc-sheet form>label,:where(#bw-collection) .bc-segments legend { font-size:11px;line-height:14px;letter-spacing:.1em;text-transform:uppercase;color:var(--tw-text-2); }
#bw-collection .bc-sheet input:not([type=checkbox]):not([type=radio]),#bw-collection .bc-sheet select,#bw-collection .bc-sheet textarea { background:var(--tw-surface);font-size:14px;line-height:20px;letter-spacing:normal;text-transform:none;color:var(--tw-text); }
#bw-collection .bc-sheet .bc-segments { border:0;padding:0;margin:0;min-width:0; }
:where(#bw-collection) .bc-segments legend { margin-bottom:8px; }
:where(#bw-collection) .bc-segments>div { display:flex;gap:2px;padding:2px;background:var(--tw-surface);border-radius:10px; }
#bw-collection .bc-segments label,.wl-sheet .bc-segments label { position:relative;flex:1;min-width:0; }
:where(#bw-collection,.wl-sheet) .bc-segments input { position:absolute;opacity:0;width:100%;height:100%;margin:0;cursor:pointer; }
:where(#bw-collection,.wl-sheet) .bc-segments span { display:flex;align-items:center;justify-content:center;text-align:center;min-height:44px;padding:4px;font-size:14px;line-height:20px;border-radius:8px; }
:where(#bw-collection,.wl-sheet) .bc-segments input:checked+span { background:var(--tw-accent-soft);color:var(--tw-accent-text); }
:where(#bw-collection,.wl-sheet) .bc-segments input:focus-visible+span { outline:2px solid var(--tw-accent);outline-offset:2px; }
:where(#bw-collection) .bc-sheet .bc-check { justify-content:space-between;padding-block:8px;border-bottom:.5px solid var(--tw-divider); }
:where(#bw-collection) .bc-sheet .bc-check input { flex:none; }
:where(#bw-collection) .bc-sheet form>.actions:last-child { margin-top:8px; }
:where(#bw-collection) .bc-sheet form>.actions:last-child>button { flex:1; }
:where(#bw-collection) .bc-filter-panel { border:0;border-radius:0;background:var(--tw-bg); }
@media(min-width:1024px) {
  :where(#bw-collection) .bc-filter-panel { width:288px;border-left:.5px solid var(--tw-divider);padding:0 0 0 24px;margin-top:20px;margin-left:32px; }
}
@media(min-width:768px) and (max-width:1279px) {
  :where(#bw-collection) .bc-detail-layout { grid-template-columns:minmax(0,1fr) 400px;column-gap:24px; }
}
@media(max-width:767px) {
  body:has(.bc-detail-hero) .group-items { display:none; }
  body:has(#bw-collection) .layout>main { padding-top:20px; }
  :where(#bw-collection) .bc-heading { gap:12px;align-items:start; }
  :where(#bw-collection) .bc-heading h1 { font-size:22px;line-height:28px;letter-spacing:-.2px; }
  :where(#bw-collection) .bc-card { padding:0; }
  :where(#bw-collection) .bc-cards { gap:24px 12px; }
  :where(#bw-collection,#bw-planning,#bw-check-choices) .bc-toolbar { gap:8px; }
  :is(#bw-collection,#bw-planning,#bw-check-choices) .bc-toolbar label:first-child { flex:1 1 100%;min-width:0; }
  :where(#bw-collection,#bw-planning,#bw-check-choices) .bc-toolbar [data-bc-count] { flex-basis:100%;text-align:right; }
  :where(#bw-collection) .bc-detail-hero,#bw-collection[data-type=P] .bc-detail-hero,#bw-collection[data-type=M] .bc-detail-hero { grid-template-columns:minmax(0,1fr);gap:16px;margin-block:16px 24px; }
  :where(#bw-collection) .bc-detail-hero h1 { font-size:28px;line-height:34px;letter-spacing:-.3px; }
  :where(#bw-collection) .bc-detail-layout { display:block; }
  :where(#bw-collection) .bc-filter-panel { background:var(--tw-sheet-bg,var(--tw-surface));border-radius:16px 16px 0 0;padding:20px; }
}

/* The shared list scroll area clears the shell tab bar, including the home indicator. */

/* Review 4.6d-2: one toolbar, one shared filter set and compact overview. */
.bc-visually-hidden { position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%); }
:is(#bw-collection,#bw-planning,#bw-check-choices) .bc-toolbar { align-items:center;flex-wrap:nowrap;margin-block:16px 8px; }
:is(#bw-collection,#bw-planning,#bw-check-choices) .bc-toolbar .bc-search { flex:1;min-width:0;max-width:340px; }
:is(#bw-collection,#bw-planning,#bw-check-choices) .bc-toolbar input { width:100%; }
:is(#bw-collection,#bw-planning,#bw-check-choices) .bc-toolbar button { display:flex;align-items:center;gap:8px;background:var(--tw-surface);border:0; }
.bc-sort-options { display:flex;flex-wrap:wrap;gap:12px;align-items:end;padding:16px;background:var(--tw-surface);border-radius:10px; }
.bc-list-options { display:flex;align-items:center;justify-content:space-between;gap:12px; }
.bc-view-switch { display:flex;gap:2px;padding:2px;border-radius:10px;background:var(--tw-surface); }
#bw-collection .bc-view-switch button { width:44px;padding:0;display:grid;place-items:center;border:0;background:transparent; }
#bw-collection [aria-pressed=true] { background:var(--tw-accent-soft);color:var(--tw-accent-text); }
.bc-status-strip { display:flex;gap:2px;height:8px;overflow:hidden;border-radius:4px;margin-block:16px 12px; }
.bc-segment { background:var(--tw-viz-n1); }.bc-segment.sealed { background:var(--tw-info); }.bc-segment.complete { background:var(--tw-success); }.bc-segment.incomplete { background:var(--tw-warning); }
.bc-status-chips { display:flex;gap:8px;overflow:auto;scrollbar-width:none; }
#bw-collection .bc-status-chips button { flex:none;display:flex;align-items:center;gap:8px;border:0;background:var(--tw-surface); }
#bw-collection .bc-status-chips button[aria-pressed=true] { background:var(--tw-accent-soft); }
.bc-card-money { display:flex;flex-direction:column;align-items:end;gap:8px; }
#bw-collection .bc-age { color:var(--tw-text-muted);font-size:12px;font-weight:400; }
.bc-extra-options { display:flex;flex-direction:column;gap:12px; }
.bc-inventory-tabs { display:flex;gap:8px;border-bottom:.5px solid var(--tw-divider);margin-block:12px 20px;overflow:auto; }
#bw-collection .bc-inventory-tabs button { flex:none;border:0;border-radius:0;background:transparent;padding:0 12px;white-space:nowrap;font-size:14px; }
#bw-collection .bc-inventory-tabs button[aria-pressed=true] { color:var(--tw-accent-text);border-bottom:2px solid var(--tw-accent); }
.bc-source-details { margin-top:16px; }.bc-source-details summary { color:var(--tw-accent-text);cursor:pointer;min-height:44px;display:flex;align-items:center; }
@media(min-width:1024px) {
  #bw-collection [data-bc-main] { display:grid;grid-template-columns:minmax(0,1fr) 288px;column-gap:32px;align-items:start; }
  #bw-collection [data-bc-main]> * { grid-column:1;min-width:0; }
  #bw-collection [data-bc-main]>.bc-status-strip,#bw-collection [data-bc-main]>.bc-status-chips,#bw-collection [data-bc-main]>.bc-toolbar,#bw-collection [data-bc-main]>.bc-sort-options,#bw-collection [data-bc-main]>.bc-list-options { grid-column:1/-1; }
  #bw-collection [data-bc-main]>.bc-filter-panel { grid-column:2;grid-row:span 20;float:none;width:288px;margin:20px 0 0;padding:0 0 0 24px;box-sizing:border-box; }
  #bw-collection [data-bc-main]>.bc-cards { grid-template-columns:repeat(4,minmax(0,1fr)); }
  #bw-collection [data-bc-main]>.bc-filter-panel>.actions>[data-bc-filters] { display:none; }
}
@media(min-width:1024px) and (max-width:1279px) { #bw-collection [data-bc-main]>.bc-cards { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media(min-width:768px) and (max-width:1023px) { #bw-collection .bc-detail-layout { grid-template-columns:minmax(0,1fr) 320px; } }
@media(max-width:767px) {
  :is(#bw-collection,#bw-planning,#bw-check-choices) .bc-toolbar { display:grid;grid-template-columns:minmax(0,1fr) 44px 44px; }
  :is(#bw-collection,#bw-planning,#bw-check-choices) .bc-toolbar .bc-list-options { grid-column:1/-1; }
  :is(#bw-collection,#bw-planning,#bw-check-choices) .bc-toolbar .bc-search { flex:1;min-width:0; }
  :is(#bw-collection,#bw-planning,#bw-check-choices) .bc-toolbar button { width:44px;padding:0;flex:none;justify-content:center; }
  :is(#bw-collection,#bw-planning,#bw-check-choices) .bc-toolbar button>span { display:none; }
  #bw-collection .bc-inventory-tabs { gap:0; }
  #bw-collection .bc-inventory-tabs button { padding:0 10px;font-size:13px; }
}

#bw-collection .bc-status-chips button::before { content:"";width:8px;height:8px;flex:none;border-radius:50%;background:var(--tw-text-muted); }
#bw-collection .bc-status-chips [data-bc-status=S]::before { background:var(--tw-info); }
#bw-collection .bc-status-chips [data-bc-status=C]::before { background:var(--tw-success); }
#bw-collection .bc-status-chips [data-bc-status=I]::before { background:var(--tw-warning); }

/* 4.6d-3: the shell main is a grid; its child must shrink below chip min-content. */
#bw-collection [data-bc-list] { min-width:0; }
#bw-collection .bc-status-chips { min-width:0;max-width:100%; }
/* Keep support modules in intrinsic DOM flow, including expanded source facts. */
#bw-collection .bc-detail-aside { min-width:0; }
#bw-collection .bc-detail-aside>.bc-module { display:flex;flex-direction:column; }
#bw-collection .bc-detail-aside>.bc-module>* { flex:none;min-width:0; }
#bw-collection .bc-module a,#bw-collection .bc-module p,#bw-collection .bc-fact { overflow-wrap:anywhere; }
#bw-collection .bc-fact small { display:block; }
#bw-collection .bc-price>* { flex:none;min-width:0; }
#bw-collection .bc-price>.secondary { text-wrap:pretty; }
#bw-collection .bc-cards[data-view=list] [data-bc-item-link] { min-width:0; }
#bw-collection .bc-detail-aside .bc-status { max-width:100%;overflow-wrap:anywhere;white-space:normal; }

/* 4.6f · reviewer run 2 */
#bw-collection .bc-heading>.button { flex:none;width:89px;min-height:44px;box-sizing:border-box;justify-content:center; }
#bw-collection .bc-view-switch button[aria-pressed=true] { background:var(--tw-accent-soft);color:var(--tw-accent-text);border-radius:8px; }
#bw-collection[data-type=S] .bc-card>.bc-picture { border:0; }
#bw-collection .bc-row a,#bw-collection .bc-card a { text-decoration:none;color:var(--tw-text); }
#bw-collection .bc-row a:focus-visible,#bw-collection .bc-card a:focus-visible { outline:2px solid var(--tw-accent);outline-offset:2px; }
:is(#bw-collection,#bw-planning,#bw-check-choices) .bc-toolbar>.bc-list-options { margin-left:auto;flex:none; }
#bw-collection .bc-filter-panel { display:flex;flex-direction:column;gap:24px; }
#bw-collection .bc-filter-panel h4 { margin:0 0 8px;font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:var(--tw-text-2); }
#bw-collection .bc-filter-chips { display:flex;flex-wrap:wrap;gap:8px; }
#bw-collection .bc-filter-chips button { background:var(--tw-surface);border:0; }
#bw-collection .bc-filter-chips button[aria-pressed=true] { background:var(--tw-accent-soft); }
#bw-collection .bc-condition { flex-wrap:nowrap;gap:2px;background:var(--tw-surface);border-radius:10px;padding:2px; }
#bw-collection .bc-condition button { flex:1; }
#bw-collection .bc-other-filters { display:flex;flex-direction:column; }
#bw-collection .bc-other-filters>label { margin-top:16px; }
#bw-collection summary { cursor:pointer;min-height:44px;align-content:center; }
#bw-collection .bc-progress-heading { display:flex;align-items:center;justify-content:space-between;gap:16px; }
#bw-collection .bc-progress-heading h3 { font-size:22px;line-height:28px; }
#bw-collection .bc-price-history { margin:0;padding-top:16px;border-top:.5px solid var(--tw-divider); }
#bw-collection .bc-price-history figcaption { font-weight:600;margin-bottom:8px; }
#bw-collection .bc-price-history svg { display:block;width:100%; }
#bw-collection .bc-price-history text { font:9px var(--tw-mono);fill:var(--tw-text-2); }
#bw-collection .bc-price-records { border-top:.5px solid var(--tw-divider); }
#bw-collection .bc-missing-section { display:block; }
#bw-collection [data-bc-missing-rows] { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px; }
#bw-collection .bc-missing-card { background:var(--tw-surface);border:0;border-radius:16px;padding:16px;display:grid;grid-template-columns:96px minmax(0,1fr);align-items:start;gap:8px 16px; }
#bw-collection .bc-missing-card>.bc-picture { width:96px;height:96px;grid-row:span 3; }
#bw-collection .bc-missing-card>.bc-missing-count { grid-column:2; }
@media(min-width:1024px) {
  #bw-collection [data-bc-main]>.bc-filter-panel { border-left:.5px solid var(--tw-divider); }
}
@media(max-width:767px) {
  :is(#bw-collection,#bw-planning,#bw-check-choices) .bc-toolbar:has(>.bc-list-options) { flex-wrap:wrap; }
  :is(#bw-collection,#bw-planning,#bw-check-choices) .bc-toolbar>.bc-list-options { width:100%; }
  :is(#bw-collection,#bw-planning,#bw-check-choices) .bc-toolbar>.bc-list-options button { width:44px; }
  #bw-collection .bc-progress-heading { flex-wrap:wrap; }
  #bw-collection [data-bc-missing-rows] { grid-template-columns:minmax(0,1fr); }
}

#bw-collection .bc-filter-panel .bc-filter-group>.bc-visually-hidden { display:none; }
#bw-collection .bc-progress-heading>.primary { flex:none; }
@media(max-width:767px) {
  :is(#bw-collection,#bw-planning,#bw-check-choices) .bc-toolbar .bc-list-options button>svg { display:block; }
}

/* 4.6l · kit facts and the Edit source disclosure. */
#bw-collection .bc-fact dt { color:var(--tw-text-muted); }
#bw-collection .bc-fact dd { font-size:15px;line-height:20px;font-weight:500; }
#bw-collection [data-module=info]>p.secondary { font-size:13px;line-height:18px;color:var(--tw-text-muted); }
#bw-collection .bc-module>.actions>h2 { color:var(--tw-text-muted); }
#bw-collection .bc-info-edit { display:inline-flex;align-items:center;gap:6px;padding:0 16px;min-width:81px;min-height:44px;font-size:14px;font-weight:500; }
#bw-collection .bc-info-edit .icon { width:16px;height:16px; }
html[data-web-ui="toni"] #bw-collection .bc-source-details summary { padding-inline:0;justify-content:flex-start;gap:8px; }
#bw-collection .bc-source-details summary::after { content:none; }

/* 4.6l · condition prices and the compact valuation footer. */
#bw-collection .bc-price { border-bottom:.5px solid var(--tw-divider); }
#bw-collection .bc-price>.actions>strong { font-size:15px;font-weight:600; }
#bw-collection .bc-price-footer { display:flex;justify-content:space-between;align-items:center;gap:12px;padding-top:12px;font-size:14px;line-height:20px; }
#bw-collection .bc-estimate { display:flex;align-items:flex-end;flex-direction:column;text-align:right; }
#bw-collection .bc-estimate button { min-height:44px;padding:0;background:transparent;border:0;color:var(--tw-accent-text);font-weight:500; }
#bw-collection .bc-estimate small { font-size:12px;color:var(--tw-text-muted); }
#bw-collection .bc-wish-limits { display:flex;flex-direction:column;align-items:flex-end;gap:4px; }   /* a wish's two maxima, stacked like the estimate (#131) */
#bw-collection .bc-estimate-label { min-height:44px;display:flex;align-items:center;color:var(--tw-text-2);font-weight:500; }   /* no action: never the accent (#131) */

/* 4.6l · detail parent navigation and recorded catalogue identity. */
#bw-collection .bc-detail-back { display:flex;align-items:center;gap:2px;min-height:44px;text-decoration:none;font-size:15px;font-weight:500; }
#bw-collection .bc-detail-back .icon { width:20px;height:20px; }
#bw-collection[data-type=S] .bc-detail-hero .bc-identity { gap:0;font:400 12px/16px var(--tw-mono);color:var(--tw-text-muted); }
#bw-collection[data-type=S] .bc-detail-hero .bc-identity>span+span::before { content:" · ";white-space:pre;margin:0; }
#bw-collection .bc-external-links { display:flex;flex-wrap:wrap;gap:16px; }
#bw-collection .bc-external-links a { display:inline-flex;align-items:center;gap:4px;min-height:44px;font-size:14px;font-weight:500;text-decoration:none; }
#bw-collection .bc-external-links .icon { width:14px;height:14px; }
#bw-collection .bc-hero-status { display:flex;gap:8px;flex-wrap:wrap; }
@media(max-width:767px) {
  body:has(#bw-collection .bc-detail-hero) .layout>main, body:has(.bc-detail-hero) .layout>main { padding-top:0; }
  #bw-collection .bc-detail-hero,#bw-collection[data-type=P] .bc-detail-hero,#bw-collection[data-type=M] .bc-detail-hero { margin-top:0; }
}

/* 4.6o · Consists-of text follows frame 1d, in DOM reading order. */
#bw-collection .bc-progress-heading h3 { font:600 22px/28px var(--tw-font);letter-spacing:-.2px;margin:0; }
#bw-collection .bc-progress-subline { font:400 14px/20px var(--tw-font);color:var(--tw-text-muted);margin:4px 0; }
#bw-collection .bc-progress-present { font:400 12px/16px var(--tw-mono);color:var(--tw-text-muted); }
#bw-collection .bc-progress-stats { display:flex;flex-wrap:wrap;gap:4px 12px;font:400 12px/16px var(--tw-mono);color:var(--tw-text-muted); }
#bw-collection .bc-progress-stats>span { white-space:nowrap; }
#bw-collection [data-module=consists] [data-bc-count] { font:400 13px/18px var(--tw-font); }
#bw-collection .bc-missing-identity { display:flex;flex-direction:column;gap:2px; }
#bw-collection .bc-missing-identity strong { font:600 15px/20px var(--tw-font); }
#bw-collection .bc-missing-meta { display:flex;flex-wrap:wrap;align-items:center;gap:6px; }
#bw-collection .bc-missing-meta .bc-colour { display:inline-flex;align-items:center;height:22px;box-sizing:border-box;padding:0 8px;border-radius:6px;border:.5px solid var(--tw-divider-strong);font:500 12px/16px var(--tw-font);white-space:nowrap; }
#bw-collection .bc-missing-meta .mono { font:400 12px var(--tw-mono); }
#bw-collection .bc-missing-count { font:500 13px var(--tw-mono); }
#bw-collection .bc-loose-stock { font:400 13px var(--tw-mono);color:var(--tw-text-2); }
#bw-collection [data-bc-present]>summary { min-height:56px;color:var(--tw-accent-text);font:500 14px var(--tw-font); }

#bw-collection .bc-missing-card>a:has(.bc-missing-identity) { color:var(--tw-text);text-decoration:none; }

/* 4.6s · frame 1d identity and copy chips. */
#bw-collection[data-type=S] .bc-hero-text { display:flex;flex-direction:column;gap:8px;padding-bottom:4px;min-width:0; }
#bw-collection[data-type=S] .bc-detail-hero h1 { margin:0;font:600 34px/40px var(--tw-font);letter-spacing:-.4px; }
#bw-collection[data-type=S] .bc-hero-status { align-items:center;flex-wrap:wrap;gap:8px; }
#bw-collection[data-type=S] .bc-hero-status>* { flex:none;white-space:nowrap; }
#bw-collection .bc-copy-chip { height:36px;min-height:0;padding:0 14px;border-radius:10px;background:var(--tw-surface);color:var(--tw-text-2);display:inline-flex;align-items:center;font:500 14px var(--tw-font);text-decoration:none; }
@media(max-width:767px) { #bw-collection .bc-copy-chip { min-height:44px; } }
#bw-collection .bc-copy-chip[aria-current=page] { background:var(--tw-accent-soft);color:var(--tw-accent-text); }
#bw-collection .bc-hero-status .bc-status { height:24px;box-sizing:border-box;padding:0 10px;gap:6px;border-radius:999px;font:500 12px var(--tw-font); }
#bw-collection .bc-copy-details { align-self:flex-start;border:0;background:none;padding:0;color:var(--tw-accent-text);font:500 14px var(--tw-font); }
#bw-collection[data-type=S] .bc-hero-picture { width:200px;aspect-ratio:4/3;border:0;border-radius:10px;background:var(--tw-surface-2); }
@media(max-width:767px) {
  #bw-collection[data-type=S] .bc-detail-back { padding:0;margin-inline:-8px; }
  #bw-collection[data-type=S] .bc-detail-hero { gap:16px;margin:0 0 24px; }
  #bw-collection[data-type=S] .bc-hero-picture { width:100%;aspect-ratio:4/3; }
  #bw-collection[data-type=S] .bc-hero-text { gap:6px;padding-bottom:0; }
  #bw-collection[data-type=S] .bc-detail-hero h1 { font:600 28px/34px var(--tw-font);letter-spacing:-.3px; }
  #bw-collection[data-type=S] .bc-detail-layout { margin-top:0; }
}

@media(min-width:1024px) {
  body:has(#bw-collection[data-type=S] .bc-detail-hero) .layout>main { padding-top:16px; }
}

/* Separate link placements keep the visible DOM in the frame's reading order. */
#bw-collection[data-type=S] .bc-hero-heading { display:flex;flex-direction:column;gap:8px; }
#bw-collection .bc-phone-links { display:none; }
#bw-collection .bc-desktop-links { gap:8px;margin-left:16px; }
#bw-collection .bc-desktop-links a { min-height:0; }
#bw-collection .bc-hero-status>.bc-copy-chip+.bc-status { margin-left:16px; }
@media(min-width:768px) {
  #bw-collection[data-type=S] .bc-hero-status>.bc-condition-status { display:none; }
}
@media(max-width:767px) {
  #bw-collection[data-type=S] .bc-hero-text { gap:0; }
  #bw-collection[data-type=S] .bc-hero-heading { gap:6px; }
  #bw-collection .bc-phone-links { display:flex; }
  #bw-collection .bc-desktop-links { display:none; }
  #bw-collection .bc-hero-status>.bc-copy-chip+.bc-status { margin-left:0; }
}

/* 4.7e · frame 1d inventory and loose-stock coverage. */
#bw-collection .bc-progress { display:flex;height:8px;gap:2px;background:transparent;border-radius:0;overflow:visible; }
#bw-collection .bc-progress i { min-width:0;border-radius:4px 0 0 4px; }
#bw-collection .bc-progress-outline { min-width:0;border:1.5px solid var(--tw-viz-4);box-sizing:border-box;border-radius:0 4px 4px 0; }
#bw-collection .bc-progress:not(.bc-coverage) .bc-progress-outline { border-radius:0; }
#bw-collection .bc-coverage .bc-progress-outline { min-width:0; }
#bw-collection .bc-inventory-tabs button { height:44px;padding:0 14px;gap:6px;font:500 14px var(--tw-font);box-sizing:border-box; }
#bw-collection .bc-tab-count { font:400 12px var(--tw-mono); }
@media(min-width:768px) {
  #bw-collection[data-type=S] .bc-inventory-heading { position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%); }
  #bw-collection .bc-inventory-tabs { margin-top:0; }
}
@media(max-width:767px) {
  #bw-collection .bc-inventory-tabs button { padding:0 12px; }
}

/* 4.7e · frame price metadata uses the muted mono caption. */
#bw-collection .bc-price>.secondary { color:var(--tw-text-muted);font:400 12px/16px var(--tw-mono); }

/* 4.7e · frame 2b part outcome and quantity. */
#bw-collection .bc-matching-headline { margin:0;font:600 22px/28px var(--tw-font);letter-spacing:-.2px; }
#bw-collection .bc-quantity-pill { display:inline-flex;align-items:center;height:24px;padding:0 10px;border-radius:999px;background:var(--tw-surface);font:500 12px var(--tw-font); }

/* 4.7c · 7b Wanted card. Currency is absent from stored wish maxima. */
#bw-collection .bc-wanted { padding:16px;gap:14px;border-radius:16px;background:var(--tw-surface); }
#bw-collection .bc-wanted h2,.bc-wanted-label { margin:0;font:500 11px/14px var(--tw-font);letter-spacing:.1em;text-transform:uppercase;color:var(--tw-text-muted); }
#bw-collection .bc-wanted-edit { height:44px;min-height:44px;padding:0 16px;gap:6px;border-radius:10px;border:.5px solid var(--tw-accent);color:var(--tw-accent-text);background:transparent;font:500 14px var(--tw-font); }
.bc-wanted-edit svg { width:16px;height:16px; }
.bc-wanted-max { display:flex;flex-direction:column;gap:2px; }
.bc-wanted-max strong { font:600 24px/30px var(--tw-mono); }
.bc-wanted-condition { display:flex;flex-direction:column;gap:6px; }
.bc-wanted-segments { display:flex;background:var(--tw-surface);border-radius:10px;padding:2px;gap:2px; }
.bc-wanted-segments form { flex:1;min-width:0; }
#bw-collection .bc-wanted-segments button { width:100%;height:44px;min-height:44px;padding:0;border:0;border-radius:8px;display:grid;place-items:center;color:var(--tw-text-2);background:transparent;font:500 13px var(--tw-font);white-space:nowrap; }
#bw-collection .bc-wanted-segments button[aria-pressed=true] { background:var(--tw-accent-soft);color:var(--tw-accent-text); }
.bc-wanted-segments [data-bc-form-message]:empty { display:none; }

/* 4.8a figure line status */
#bw-collection .bc-figure-status { display:inline-flex;align-items:center;gap:6px;justify-self:start;min-height:24px;box-sizing:border-box;padding:2px 10px;border-radius:999px;background:var(--tw-surface);color:var(--tw-text);font:500 12px/16px var(--tw-font);text-decoration:none; }
#bw-collection .bc-figure-status[data-figure-state=parts-missing],#bw-collection .bc-figure-status[data-figure-state=missing] { background:var(--tw-danger-soft);color:var(--tw-danger); }
/* 4.7f · frame 1d: reserve identity in narrow columns before row metadata. */
#bw-collection .bc-inventory-row:not(.bc-missing-card) { flex-wrap:wrap; }
#bw-collection .bc-inventory-row-details[open] { flex-basis:100%;min-width:0; }
#bw-collection .bc-missing-card>.bc-inventory-row-details[open] { grid-column:1 / -1;min-width:0; }
@media(max-width:1023px) {
  #bw-collection .bc-inventory-row:not(.bc-missing-card)>a:first-of-type { flex:1 0 calc(100% - 68px); }
  #bw-collection .bc-inventory-row:not(.bc-missing-card)>div.mono { flex-basis:100%;text-align:right; }
  #bw-collection .bc-inventory-row:not(.bc-missing-card)>.bc-inventory-row-details { margin-left:auto; }
  #bw-collection .bc-missing-card>.bc-inventory-row-details:not([open]) { grid-column:2; }
  #bw-collection .bc-inventory-row .bc-colour { white-space:nowrap;flex-shrink:0; }
}

/* 4.7d · current-view facts and grid-only stock omission (kit 1c, 8a). */
#bw-collection .bc-missing-summary { margin:0 0 16px;font:400 13px/18px var(--tw-mono);color:var(--tw-text-2); }
#bw-collection[data-type=M] .bc-cards[data-view=grid] .bc-stock-count { display:none; }
@media(min-width:1024px) {
  #bw-collection [data-bc-main]>.bc-missing-summary { grid-column:1/-1; }
}

/* 4.7d · exact 1c controls, shared phone sheet and desktop dock. */
#bw-collection[data-bc-collection-list] .bc-search { position:relative; }
#bw-collection[data-bc-collection-list] .bc-search>.icon { position:absolute;left:12px;top:13px;width:18px;height:18px;color:var(--tw-text-muted); }
#bw-collection[data-bc-collection-list] .bc-search input { padding-left:40px; }
#bw-collection .bc-cards[data-view=list] .bc-card { width:100%;align-self:stretch; }
#bw-collection .bc-filter-panel [data-bc-reset] { min-width:0;border:0;background:transparent;color:var(--tw-accent-text);padding:0;font:500 14px var(--tw-font); }
#bw-collection .bc-filter-panel>.actions { justify-content:space-between; }
#bw-collection .bc-filter-pair { display:flex;gap:16px; }
#bw-collection .bc-filter-pair>.bc-filter-group { flex:1;min-width:0; }
#bw-collection .bc-filter-pair button { padding:0;height:44px;font:500 14px var(--tw-font);color:var(--tw-text-2);border-radius:8px; }
#bw-collection .bc-condition button[aria-pressed=true] { color:var(--tw-accent-text); }
#bw-collection .bc-filter-panel h4 { font:500 11px/14px var(--tw-font);color:var(--tw-text-muted);letter-spacing:.1em; }
#bw-collection [data-bc-pick=status]::before { content:"";width:8px;height:8px;flex:none;border-radius:50%;background:var(--tw-text-muted); }
#bw-collection [data-bc-pick=status][data-value=S]::before { background:var(--tw-info); }
#bw-collection [data-bc-pick=status][data-value=C]::before { background:var(--tw-success); }
#bw-collection [data-bc-pick=status][data-value=I]::before { background:var(--tw-warning); }
#bw-collection .bc-theme-row { display:flex;flex-direction:row;align-items:center;justify-content:space-between;height:48px;border-top:.5px solid var(--tw-divider);font:400 14px var(--tw-font); }
#bw-collection .bc-theme-row select { width:auto;min-width:0;max-width:70%;border:0;background:transparent;color:var(--tw-text-muted);font:inherit;text-align:right; }
#bw-collection .bc-sheet-handle { display:none; }
#bw-collection .bc-sort-choices { display:flex;flex-direction:column;width:100%; }
#bw-collection .bc-sort-choices button { height:52px;padding:0;border:0;border-top:.5px solid var(--tw-divider);border-radius:0;background:transparent;display:flex;align-items:center;justify-content:space-between;color:var(--tw-text);font:500 15px var(--tw-font); }
#bw-collection .bc-sort-choices button>span { opacity:0;width:20px;height:20px; }
#bw-collection .bc-sort-choices button[aria-pressed=true] { color:var(--tw-accent-text); }
#bw-collection .bc-sort-choices button[aria-pressed=true]>span { opacity:1; }
#bw-collection .bc-sort-direction { display:flex;width:100%; }
#bw-collection .bc-sort-direction button { border:0;background:transparent;border-radius:8px;height:44px;font:500 14px var(--tw-font); }
#bw-collection .bc-sort-direction button[aria-pressed=true] { background:var(--tw-accent-soft); }
@media(min-width:1024px) {
  /* Kit panel is 288 content + 24 padding + 1 rendered hairline = 313. */
  #bw-collection[data-bc-collection-list] [data-bc-main] { grid-template-columns:minmax(0,1fr) 313px; }
  #bw-collection[data-bc-collection-list] [data-bc-main]>.bc-filter-panel { width:313px;gap:20px; }
  #bw-collection[data-bc-collection-list] .bc-filter-pair { flex-direction:column; }
  #bw-collection[data-bc-collection-list] .bc-filter-panel h3 { font:600 16px/24px var(--tw-font); }
  #bw-collection .bc-filter-apply { display:none; }
}
@media(max-width:1023px) {
  #bw-collection .bc-sheet-scrim { position:fixed;inset:0;background:var(--tw-scrim);z-index:40; }
  #bw-collection .bc-collection-sheet { position:fixed;inset:auto 0 0;width:100%;margin:0;max-height:90dvh;overflow:auto;z-index:41;display:flex;flex-direction:column;gap:20px;padding:8px 20px max(28px,env(safe-area-inset-bottom));border:0;border-top:.5px solid var(--tw-divider-strong);border-radius:16px 16px 0 0;background:var(--tw-sheet-bg);--tw-surface:var(--tw-surface-2); }
  #bw-collection .bc-sheet-handle { display:block;flex:none;width:36px;height:4px;border-radius:2px;background:var(--tw-divider-strong);align-self:center; }
  #bw-collection .bc-collection-sheet h3 { margin:0;font:600 18px/24px var(--tw-font); }
  #bw-collection .bc-filter-panel [data-bc-reset] { height:44px;font:500 15px var(--tw-font); }
  #bw-collection .bc-filter-apply { height:56px;min-height:56px;flex:none;width:100%;border:0;border-radius:10px;background:var(--tw-accent);color:#1A1816;font:600 16px var(--tw-font);justify-content:center; }
  #bw-collection .bc-theme-row { height:52px;flex:none;font:400 15px var(--tw-font); }
  #bw-collection .bc-sort-options.bc-collection-sheet { gap:12px;align-items:stretch; }
  #bw-collection .bc-sort-options.bc-collection-sheet h3 { padding:8px 0; }
}

#bw-collection[data-bc-collection-list] .bc-search input { height:44px;font:400 15px var(--tw-font); }
#bw-collection[data-bc-collection-list] .bc-search input::placeholder { color:var(--tw-text-muted); }
#bw-collection[data-bc-collection-list] .bc-toolbar [data-bc-filters][aria-expanded=true] { background:var(--tw-accent-soft);color:var(--tw-accent-text); }
#bw-collection .bc-filter-chips button { height:44px;padding:0 14px;border-radius:10px;font:500 14px var(--tw-font);gap:8px; }
#bw-collection .bc-filter-pair button { padding:0;border-radius:8px; }
@media(max-width:1023px) {
  #bw-collection .bc-filter-apply { position:sticky;bottom:0; }
}

@media(min-width:1024px) {
  #bw-collection .bc-copies-group { display:none; }
  #bw-collection .bc-copies-select { position:static;width:auto;height:auto;overflow:visible;clip-path:none; }
}
.bc-pager { display:flex;align-items:center;justify-content:center;gap:16px;margin-block:24px;flex-wrap:wrap; }.bc-pager[hidden] { display:none; }.bc-pager p { margin:0;min-width:8ch;text-align:center; }.bc-pager button { min-width:96px; }.bc-pager button:disabled { opacity:.4;cursor:default; }

/* 4.8c · frame 1d missing-part card: stepper and Take line (kit inline values). */
#bw-collection .bc-take { grid-column:2;display:flex;flex-direction:column;gap:8px;min-width:0; }
#bw-collection .bc-stepper { display:flex;border-radius:10px;background:var(--tw-bg);color:var(--tw-accent-text);width:fit-content; }
#bw-collection .bc-stepper button { width:56px;height:56px;display:grid;place-items:center;padding:0;border:0;border-radius:10px;background:none;color:inherit;cursor:pointer; }
#bw-collection .bc-stepper button:disabled { opacity:.4;cursor:default; }
#bw-collection .bc-stepper svg { width:22px;height:22px; }
#bw-collection .bc-stepper output { width:48px;height:56px;display:grid;place-items:center;font:500 17px var(--tw-mono);color:var(--tw-text); }
#bw-collection .bc-take-line { display:flex;align-items:center;justify-content:space-between;gap:8px; }
#bw-collection .bc-take-go { height:44px;padding:0 16px;border-radius:10px;border:.5px solid var(--tw-accent);background:none;color:var(--tw-accent-text);display:inline-flex;align-items:center;font:500 14px var(--tw-font);cursor:pointer; }
#bw-collection .bc-take-go:disabled { opacity:.4;cursor:default; }
#bw-collection .bc-take [data-bc-take-message] { margin:0;font:400 13px var(--tw-mono);color:var(--tw-text-2); }
#bw-collection .bc-take [data-bc-take-message]:empty { display:none; }

/* ===== 49b · UI review run 6: Collection lists (kit 1c sheets, 7a Instructions and Parts rows). ===== */
/* Storage and Year rows in the Filters sheet: kit 1c rows (52 px phone, 48 px desktop), Year value in mono. */
#bw-collection .bc-year-row { border-bottom:.5px solid var(--tw-divider); }
#bw-collection .bc-year-row select { font-family:var(--tw-mono); }
#bw-collection .bc-other-filters>.bc-extra-options { margin-top:16px; }
/* Show-results sits on its own row at the end of the sheet and never floats over the controls above it. */
@media(max-width:1023px) {
  #bw-collection .bc-filter-apply { position:static; }
}
/* Instructions and Parts on a phone: compact full-width rows, 56 px square thumbnails, 84 px rows (kit 7a). */
@media(max-width:767px) {
  #bw-collection[data-type=I] .bc-cards[data-view=list] .bc-card>.bc-picture,
  #bw-collection[data-type=P] .bc-cards[data-view=list] .bc-card>.bc-picture { width:56px;height:56px;aspect-ratio:1;flex:none; }
  #bw-collection[data-type=I] .bc-cards[data-view=list] .bc-card,
  #bw-collection[data-type=P] .bc-cards[data-view=list] .bc-card { min-height:84px;gap:12px; }
}
/* ===== end 49b ===== */

/* ===== 4.9a · UI review run 6: set and part detail (marked region; kit 1d, 2a, 2b inline values) ===== */
/* c1 · the set image is never cropped (Ulf, 2026-10-15): contain at every width, whatever frame 1d says. */
#bw-collection[data-type=S] .bc-hero-picture img { object-fit:contain;background:transparent; }
/* c2, c3 · frames 2a and 2b phone: 96 px image beside the identity, 16 px gap, 24/30 title. */
@media(max-width:767px) {
  #bw-collection[data-type=P] .bc-detail-hero,#bw-collection[data-type=M] .bc-detail-hero { grid-template-columns:96px minmax(0,1fr);align-items:end;gap:16px; }
  #bw-collection[data-type=P] .bc-hero-picture,#bw-collection[data-type=M] .bc-hero-picture { width:96px; }
  #bw-collection[data-type=P] .bc-detail-hero h1,#bw-collection[data-type=M] .bc-detail-hero h1 { font:600 24px/30px var(--tw-font);letter-spacing:-.3px; }
}
/* c4, c8 · identity pills (frames 2a, 2b): condition and quantity share one 24 px pill. */
#bw-collection .bc-hero-status .bc-quantity-pill { flex:none;white-space:nowrap; }
/* c7, c9 · frames 2a, 2b: outcome subtitle under the Matching headline. */
#bw-collection .bc-matching-sub { margin:0;padding-bottom:8px;font:400 14px/20px var(--tw-font);color:var(--tw-text-muted); }
#bw-collection [data-module=matching] .bc-matching-headline+.bc-matching-sub { margin-top:4px; }
/* c11, c12 · frame 1d: bar, then present left and missing right, then the coverage bar with its two captions 6 px below it (DOM order is visual order). */
#bw-collection .bc-progress-block { display:flex;flex-direction:column;gap:6px; }
#bw-collection .bc-progress-block:empty { display:none; }
#bw-collection .bc-progress-block .bc-progress-stats { justify-content:space-between;flex-wrap:nowrap; }
#bw-collection .bc-progress-block .bc-progress-present { margin:0; }
#bw-collection .bc-progress-block .bc-progress-stats:has(+ .bc-coverage) { margin-bottom:8px; }
/* c14, c15 · figure rows in the Minifigures tab: one-line 24 px status pill, identity keeps the flexible width. */
#bw-collection .bc-figure-status { flex:none;white-space:nowrap;height:24px;min-height:24px;padding:0 10px; }
#bw-collection a.bc-figure-status { min-height:24px;padding-inline:10px; }
/* c13 · Edit set: the estimate stays reachable but folded, so Completeness leads to the status switches. */
#bw-collection .bc-estimate-details { display:flex;flex-direction:column;gap:12px; }
/* ===== end 4.9a ===== */

/* 4.9d · Collection-side wishlist: recorded maximum price (frame 4a). */
.bc-wish-max { display:flex;flex-direction:column;gap:2px; }
.bc-wish-max-label { font:500 10px/12px var(--tw-font);letter-spacing:.1em;text-transform:uppercase;color:var(--tw-text-muted); }
.bc-wish-max strong { font:600 20px/26px var(--tw-mono); }

/* Design v1.3: figures stay visible as individual lines in every state. */
#bw-collection .bc-figure-heading h3 { margin:8px 0 4px;font:600 22px/28px var(--tw-font);letter-spacing:-.2px; }
#bw-collection .bc-figure-heading p { margin:0;font:400 13px/18px var(--tw-font);color:var(--tw-text-muted); }
#bw-collection .bc-figure-row { display:flex;flex-wrap:wrap;align-items:center;gap:12px;min-height:76px;box-sizing:border-box;padding:8px 0;border-top:.5px solid var(--tw-divider);border-bottom:0; }
#bw-collection .bc-figure-row>.bc-picture { width:56px;height:56px;flex:none;border:0;background:#fff; }
#bw-collection .bc-figure-identity { flex:1;min-width:150px;display:flex;flex-direction:column;gap:3px; }
#bw-collection .bc-figure-identity>.mono { font:400 12px/16px var(--tw-mono);color:var(--tw-text-muted); }
#bw-collection .bc-figure-identity>a { min-height:0;font:600 15px/20px var(--tw-font); }
#bw-collection .bc-figure-state { display:flex;align-items:center;gap:6px;flex-wrap:wrap; }
#bw-collection .bc-figure-parts { font:400 12px/16px var(--tw-mono);color:var(--tw-text-2); }
#bw-collection .bc-figure-status[data-figure-state=present] { background:var(--tw-success-soft);color:var(--tw-text); }
#bw-collection .bc-figure-status[data-figure-state=parts-missing] { background:var(--tw-warning-soft);color:var(--tw-text); }
#bw-collection .bc-figure-status::before { content:"";width:7px;height:7px;border-radius:50%;background:var(--tw-success); }
#bw-collection .bc-figure-status[data-figure-state=parts-missing]::before { background:var(--tw-warning); }
#bw-collection .bc-figure-status[data-figure-state=missing]::before { background:var(--tw-danger); }
#bw-collection .bc-figure-row .bc-check-figure { color:var(--tw-accent-text);border:.5px solid var(--tw-accent);background:transparent;flex:none;min-height:44px;height:44px;padding:0 16px;border-radius:10px;font:500 14px var(--tw-font);white-space:nowrap; }
#bw-collection .bc-figure-row .bc-take { flex:1 1 100%; }
#bw-collection .bc-figure-row>.bc-loose-stock { flex:1 1 100%;margin:0; }
#bw-collection .bc-check-figure:disabled { opacity:.4; }
#bw-collection[data-type=S] [data-module=consists] [data-bc-count] { display:none; }
#bw-collection [data-inventory=figures] .bc-inventory-details { display:none; }
#bw-collection .bc-photo-picker { display:flex;align-items:center;gap:12px;flex-wrap:wrap; }
#bw-collection .bc-photo-picker label { display:inline-flex;align-items:center;justify-content:center;min-height:44px;margin:0;padding:0 16px;border-radius:10px;cursor:pointer; }
#bw-collection .bc-photo-picker:focus-within label { outline:2px solid var(--tw-accent);outline-offset:2px; }
#bw-collection [data-bc-photo-name] { overflow-wrap:anywhere; }
#bw-collection[data-type=S] .bc-hero-picture { background:#fff; }

/* Design v1.3 · 12f and shared detail rows. */
#bw-collection[data-type=M] .bc-detail-hero,#bw-collection[data-type="?"] .bc-detail-hero { grid-template-columns:240px minmax(0,1fr);gap:28px;align-items:end; }
#bw-collection[data-type=M] .bc-hero-picture,#bw-collection[data-type="?"] .bc-hero-picture { width:240px;aspect-ratio:4/3;background:#fff;border-radius:10px; }
#bw-collection[data-type=M] .bc-hero-picture>span.mono,#bw-collection[data-type="?"] .bc-hero-picture>span.mono { display:none; }
#bw-collection .bc-figure-number { color:var(--tw-text-muted);font:400 12px/16px var(--tw-mono); }
#bw-collection .bc-figure-context { margin:8px 0 0;font:400 15px/20px var(--tw-font);color:var(--tw-text-2); }
#bw-collection[data-type=M] .bc-detail-layout,#bw-collection[data-type="?"] .bc-detail-layout { grid-template-columns:minmax(0,1fr) minmax(0,520px);gap:32px 40px; }
#bw-collection[data-type=M] .bc-detail-main,#bw-collection[data-type="?"] .bc-detail-main { display:flex;flex-direction:column;gap:32px; }
#bw-collection[data-type=M] .bc-detail-aside,#bw-collection[data-type="?"] .bc-detail-aside { display:flex;flex-direction:column;gap:32px; }
#bw-collection[data-type=M] .bc-module,#bw-collection[data-type="?"] .bc-module { margin:0; }
#bw-collection .bc-figure-card { display:flex;flex-direction:column;gap:16px; }
#bw-collection .bc-figure-card h2,#bw-collection .bc-used-sets h2,#bw-collection .bc-figure-matching h2 { margin:0;font:500 11px/14px var(--tw-font);letter-spacing:.1em;text-transform:uppercase;color:var(--tw-text-muted); }
#bw-collection .bc-figure-card dl { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 16px;margin:0; }
#bw-collection .bc-figure-card dt { font:400 12px/16px var(--tw-font);color:var(--tw-text-muted);margin-bottom:2px; }
#bw-collection .bc-figure-card dd { margin:0;font-size:15px;line-height:20px; }
#bw-collection .bc-figure-card p { margin:0;font-size:13px;line-height:18px;color:var(--tw-text-muted); }
#bw-collection .bc-used-sets,#bw-collection .bc-figure-matching { padding:0;background:transparent; }
#bw-collection .bc-used-sets h3 { margin:12px 0 8px;font:600 22px/28px var(--tw-font);letter-spacing:-.2px; }
#bw-collection .bc-used-sets .bc-row,#bw-collection .bc-figure-components .bc-row,#bw-collection .bc-figure-matching .bc-row { border-top:.5px solid var(--tw-divider);border-bottom:0;flex-wrap:wrap;padding:8px 0;min-height:92px;box-sizing:border-box; }
#bw-collection .bc-figure-components .bc-row { min-height:60px;padding:6px 0; }
#bw-collection .bc-figure-components .bc-picture { width:48px;height:48px;background:#fff; }
#bw-collection .bc-used-identity,#bw-collection .bc-component-name,#bw-collection .bc-figure-matching .bc-row>div { display:flex;flex-direction:column;gap:2px;flex:1;min-width:150px; }
#bw-collection .bc-used-identity a { min-height:44px;display:inline-flex;align-items:center; }
#bw-collection .bc-used-identity>a,#bw-collection .bc-component-name,#bw-collection .bc-figure-matching .bc-row>div>a { min-height:0;font:600 15px/20px var(--tw-font);text-decoration:none;color:var(--tw-text); }
#bw-collection .bc-used-identity>.mono { font:400 12px/16px var(--tw-mono);color:var(--tw-text-muted); }
#bw-collection .bc-component-state { display:flex;flex-direction:column;gap:6px;font:400 12px/16px var(--tw-font);color:var(--tw-text-muted); }
#bw-collection .bc-figure-matching h4 { font:500 11px/14px var(--tw-font);letter-spacing:.1em;text-transform:uppercase;color:var(--tw-text-muted);margin:20px 0 8px; }
#bw-collection .bc-figure-matching .bc-row form { flex:none; }
#bw-collection .bc-colour-chooser { display:flex;gap:12px;flex-wrap:wrap;grid-column:1/-1; }
#bw-collection .bc-colour-chooser h2 { flex-basis:100%; }
@media(max-width:1100px) and (min-width:768px) {
 #bw-collection[data-type=M] .bc-detail-layout,#bw-collection[data-type="?"] .bc-detail-layout { grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:32px 24px; }
}
@media(max-width:767px) {
 #bw-collection[data-type=M] .bc-detail-hero,#bw-collection[data-type="?"] .bc-detail-hero { grid-template-columns:128px minmax(0,1fr);gap:16px; }
 #bw-collection[data-type=M] .bc-hero-picture,#bw-collection[data-type="?"] .bc-hero-picture { width:128px;aspect-ratio:4/3; }
 #bw-collection[data-type="?"] .bc-detail-hero h1 { font:600 24px/30px var(--tw-font);letter-spacing:-.3px; }
 #bw-collection .bc-figure-context { font-size:14px; }
 #bw-collection[data-type=M] .bc-detail-layout,#bw-collection[data-type="?"] .bc-detail-layout { display:flex;flex-direction:column;gap:32px; }
 #bw-collection[data-type=M] .bc-detail-layout>*,#bw-collection[data-type="?"] .bc-detail-layout>* { width:100%;box-sizing:border-box; }
 #bw-collection .bc-figure-components .bc-component-state { flex-basis:100%;align-items:flex-start; }
}
#bw-collection .bc-used-identity .bc-figure-status { align-self:flex-start; }
#bw-collection .bc-component-state .bc-status::before { content:"";width:7px;height:7px;border-radius:50%;background:var(--tw-warning); }

/* UI-r2 · component identities share a left edge at every name length. */
#bw-collection .bc-component-name { align-items:flex-start;text-align:left; }
#bw-collection .bc-component-name .bc-missing-meta { justify-content:flex-start; }

#bw-collection .bc-edit-section { display:flex;flex-direction:column;gap:12px;margin:24px 0 0;padding-top:16px;border-top:.5px solid var(--tw-divider); }
#bw-collection .bc-edit-section h3 { margin:0;font:500 11px/14px var(--tw-font);letter-spacing:.1em;text-transform:uppercase;color:var(--tw-text-2); }
#bw-collection .bc-edit-section .bc-row { padding:8px 0;border-bottom:.5px solid var(--tw-divider); }
#bw-collection .bc-edit-section .bc-photos { grid-template-columns:repeat(auto-fill,minmax(96px,1fr)); }

/* ===== UI-lists · design audit v1.3: cards 1c, pager 12h, parts table 7a, Filters sheet 12i. ===== */
/* 1c set card: status pill left and price right on one line; gap count left and price date right below; tag chips last. */
#bw-collection .bc-card-foot:has(>.bc-foot-main) { flex-direction:column;align-items:stretch;justify-content:flex-start;gap:6px; }
#bw-collection .bc-foot-main { display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px 8px;min-width:0; }
#bw-collection .bc-foot-pills { display:flex;flex-wrap:wrap;gap:6px;min-width:0; }
#bw-collection .bc-foot-pills .bc-status { white-space:nowrap; }
#bw-collection .bc-foot-main .bc-card-money { display:block;margin-left:auto;font:500 13px/16px var(--tw-mono);white-space:nowrap; }
#bw-collection .bc-foot-sub { display:flex;align-items:baseline;justify-content:space-between;gap:8px;min-height:16px;font:400 12px/16px var(--tw-mono);color:var(--tw-text-muted); }
#bw-collection .bc-foot-sub .bc-age { margin-left:auto;white-space:nowrap; }
#bw-collection .bc-tags { display:flex;flex-wrap:wrap;gap:6px; }
#bw-collection .bc-tag { display:inline-flex;align-items:center;height:20px;padding:0 8px;border-radius:6px;background:var(--tw-surface);color:var(--tw-text-2);font:500 11px/14px var(--tw-font); }

/* 12h pager: Previous, page numbers with neighbours, Next; the visible range sits below. */
:is(#bw-collection,#bw-planning,#bw-workbench) .bc-pager { display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:4px 8px;margin-block:24px 8px; }
:is(#bw-collection,#bw-planning,#bw-workbench) .bc-page-numbers { display:flex;align-items:center;gap:4px; }
:is(#bw-collection,#bw-planning,#bw-workbench) .bc-pager button { min-width:44px;height:44px;padding:0 12px;border:0;border-radius:10px;background:transparent;color:var(--tw-text);font:500 14px var(--tw-font);display:inline-flex;align-items:center;justify-content:center;gap:8px; }
:is(#bw-collection,#bw-planning,#bw-workbench) .bc-pager button:disabled { opacity:.4;cursor:default; }
:is(#bw-collection,#bw-planning,#bw-workbench) .bc-pager .bc-page-number[aria-current=page] { background:var(--tw-accent-soft);color:var(--tw-accent-text); }
:is(#bw-collection,#bw-planning,#bw-workbench) .bc-page-gap { min-width:24px;text-align:center;color:var(--tw-text-muted); }
:is(#bw-collection,#bw-planning,#bw-workbench) .bc-page-step::before,:is(#bw-collection,#bw-planning,#bw-workbench) .bc-page-step::after { content:none;width:7px;height:7px;border:solid currentColor;flex:none; }
:is(#bw-collection,#bw-planning,#bw-workbench) .bc-page-prev::before { content:"";border-width:0 0 1.5px 1.5px;transform:rotate(45deg);margin-left:3px; }
:is(#bw-collection,#bw-planning,#bw-workbench) .bc-page-next::after { content:"";border-width:1.5px 1.5px 0 0;transform:rotate(45deg);margin-right:3px; }
:is(#bw-collection,#bw-planning,#bw-workbench) .bc-pager>p { flex-basis:100%;min-width:0;margin:0;text-align:center;font:400 13px/18px var(--tw-mono);color:var(--tw-text-muted); }
@media(max-width:767px) {
  :is(#bw-collection,#bw-planning,#bw-workbench) .bc-pager .bc-page-step { width:44px;padding:0;font-size:0;gap:0; }
  :is(#bw-collection,#bw-planning,#bw-workbench) .bc-pager .bc-page-neighbour { display:none; }
}

/* 7a quick chips (Parts) and the Flat / By lot grouping heading. */
#bw-collection .bc-quick-chips { display:flex;gap:8px;overflow:auto;scrollbar-width:none;min-width:0;max-width:100%;margin-block:12px 0; }
#bw-collection .bc-quick-chips button { flex:none;display:inline-flex;align-items:center;gap:8px;height:44px;padding:0 14px;border:0;border-radius:10px;background:var(--tw-surface);color:var(--tw-text);font:500 14px var(--tw-font); }
#bw-collection .bc-quick-chips button[aria-pressed=true] { background:var(--tw-accent-soft);color:var(--tw-accent-text); }
#bw-collection .bc-quick-chips .mono { font:400 13px var(--tw-mono);opacity:.75; }
@media(min-width:1024px) { #bw-collection [data-bc-main]>.bc-quick-chips { grid-column:1/-1; } }
#bw-collection .bc-cards>[data-bc-group-heading] { display:flex;align-items:center;min-height:44px;margin:0;font:500 11px/14px var(--tw-font);letter-spacing:.1em;text-transform:uppercase;color:var(--tw-text-muted); }
#bw-collection .bc-group-open { margin-left:auto;min-height:44px;display:inline-flex;align-items:center;padding:0 12px;letter-spacing:0;text-transform:none;font:500 14px var(--tw-font); }

/* 7a Parts table: grid view shows the card foot, table view shows the cells. */
#bw-collection .bc-cell { display:none; }
#bw-collection .bc-table-head { display:none; }
#bw-collection .bc-identity-top { display:flex;flex-wrap:wrap;align-items:center;gap:6px; }
#bw-collection .bc-identity-top>.mono { color:var(--tw-text-muted); }
#bw-collection[data-type=P] .bc-card .bc-colour { display:inline-flex;align-items:center;height:22px;box-sizing:border-box;padding:0 8px;border:.5px solid var(--tw-divider-strong);font:500 12px/16px var(--tw-font);white-space:nowrap; }
#bw-collection[data-type=P] .bc-cards[data-view=list] .bc-card { position:relative;display:grid;align-items:center;border:0;border-top:.5px solid var(--tw-divider);border-radius:0;padding:8px 0;min-height:72px;width:100%;gap:16px; }
#bw-collection[data-type=P] .bc-cards[data-view=list] .bc-card-foot { display:none; }
#bw-collection[data-type=P] .bc-cards[data-view=list] .bc-cell { display:block;min-width:0; }
#bw-collection[data-type=P] .bc-cards[data-view=list] .bc-selection { position:absolute;left:0;top:0;z-index:1;min-height:0;background:var(--tw-bg); }
#bw-collection[data-type=P] .bc-cards[data-view=list] .bc-card>.bc-picture { width:56px;height:56px;aspect-ratio:1;border:0;background:#fff; }
#bw-collection[data-type=P] .bc-cards[data-view=list] .bc-identity strong { font:600 15px/20px var(--tw-font); }
#bw-collection[data-type=P] .bc-cards[data-view=list] .bc-cell-damaged { display:flex;flex-wrap:wrap;align-items:center;gap:6px; }
#bw-collection .bc-cell-lot { font:400 13px/18px var(--tw-font);color:var(--tw-text-2); }
#bw-collection .bc-cell .bc-lot-link { min-height:0;display:inline;text-decoration:none; }
#bw-collection[data-type=P] .bc-cards[data-view=list] .bc-cell-price,#bw-collection[data-type=P] .bc-cards[data-view=list] .bc-cell-qty { display:flex;flex-direction:column;align-items:flex-end;gap:2px;text-align:right; }
#bw-collection .bc-cell-money,#bw-collection .bc-cell-qty-main { font:500 14px/20px var(--tw-mono); }
#bw-collection .bc-cell .bc-age { font:400 11px/14px var(--tw-mono); }
@media(min-width:768px) {
  #bw-collection[data-type=P] [data-bc-list]:has(>.bc-cards[data-view=list]) .bc-table-head { display:grid;grid-template-columns:56px minmax(0,1fr) 120px 96px 96px 72px;gap:16px;align-items:center;padding:16px 0 8px;font:500 11px/14px var(--tw-font);letter-spacing:.1em;text-transform:uppercase;color:var(--tw-text-muted); }
  #bw-collection .bc-table-head>span:nth-child(5),#bw-collection .bc-table-head>span:nth-child(6) { text-align:right; }
  #bw-collection[data-type=P] .bc-cards[data-view=list] .bc-card { grid-template-columns:56px minmax(0,1fr) 120px 96px 96px 72px; }
}
@media(max-width:767px) {
  #bw-collection[data-type=P] .bc-cards[data-view=list] .bc-card { grid-template-columns:56px minmax(0,1fr) auto;grid-template-areas:"pic id price" "pic dmg qty";gap:4px 12px;min-height:84px; }
  #bw-collection[data-type=P] .bc-cards[data-view=list] .bc-card>.bc-picture { grid-area:pic; }
  #bw-collection[data-type=P] .bc-cards[data-view=list] .bc-card>a[data-bc-item-link] { grid-area:id;min-height:0; }
  #bw-collection[data-type=P] .bc-cards[data-view=list] .bc-cell-damaged { grid-area:dmg; }
  #bw-collection[data-type=P] .bc-cards[data-view=list] .bc-cell-price { grid-area:price; }
  #bw-collection[data-type=P] .bc-cards[data-view=list] .bc-cell-qty { grid-area:qty; }
  #bw-collection[data-type=P] .bc-cards[data-view=list] .bc-cell-lot { display:none; }
}

/* 12i Filters sheet: Group by and Select mode sit in the sheet's View section, not behind Other filters. */
#bw-collection .bc-view-group { display:flex;flex-direction:column;gap:12px; }
#bw-collection .bc-view-group>.bc-visually-hidden { display:none; }
#bw-collection .bc-group-by { display:flex;flex-direction:column;gap:8px; }
#bw-collection .bc-group-label { font:400 14px/20px var(--tw-font);color:var(--tw-text-2); }
#bw-collection .bc-group-pick button { flex:1;min-width:0;height:44px;padding:0 4px;border:0;border-radius:8px;background:transparent;color:var(--tw-text-2);font:500 14px var(--tw-font); }
#bw-collection .bc-group-pick button[aria-pressed=true] { background:var(--tw-bg);color:var(--tw-accent-text); }
#bw-collection .bc-select-mode { display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:56px; }
#bw-collection .bc-select-text { display:flex;flex-direction:column;gap:2px;min-width:0; }
#bw-collection .bc-select-text strong { font:600 15px/20px var(--tw-font); }
#bw-collection .bc-select-text small { font:400 13px/18px var(--tw-font);color:var(--tw-text-muted); }
#bw-collection .bc-switch { position:relative;flex:none;width:52px;height:44px;padding:0;border:0;background:transparent; }
#bw-collection .bc-switch::before { content:"";position:absolute;inset:6px 0;border-radius:16px;background:var(--tw-divider-strong); }
#bw-collection .bc-switch[aria-checked=true]::before { background:var(--tw-accent); }
#bw-collection .bc-switch-knob { position:absolute;left:3px;top:9px;width:26px;height:26px;border-radius:50%;background:#fff; }
#bw-collection .bc-switch[aria-checked=true] .bc-switch-knob { transform:translateX(20px); }
@media(prefers-reduced-motion:no-preference) { #bw-collection .bc-switch-knob { transition:transform 160ms; } }
#bw-collection .bc-cell-missing { font:400 12px/16px var(--tw-mono);color:var(--tw-text-2); }
#bw-collection .bc-flat-switch { display:flex;flex:none;margin-right:8px; }
#bw-collection .bc-group-count { margin-left:6px; }
#bw-collection .bc-filter-pair { flex-wrap:wrap; }
@media(max-width:1023px) {
  #bw-collection .bc-filter-pair>.bc-filter-group { flex:1 1 150px; }
  #bw-collection .bc-filter-pair>.bc-wide { flex-basis:100%; }
}
#bw-collection .bc-flat-switch button { flex:none;min-height:36px;height:36px;padding:0 14px;border:0;border-radius:8px;background:transparent;color:var(--tw-text-2);font:500 13px var(--tw-font);white-space:nowrap; }
#bw-collection .bc-flat-switch button[aria-pressed=true] { background:var(--tw-accent-soft);color:var(--tw-accent-text); }
#bw-collection .bc-toolbar>.bc-list-options .bc-flat-switch button { width:auto;display:grid;place-items:center; }
/* ===== end UI-lists ===== */

/* ===== UI-12j: first run and key-gated actions ===== */
#bw-collection [data-bc-list][hidden] { display:none; }
#bw-collection .fr { display:flex;flex-direction:column;gap:24px;max-width:640px;padding-top:32px; }
#bw-collection .fr-head { display:flex;flex-direction:column;gap:6px; }
#bw-collection .fr-head h2 { font:600 28px/34px var(--tw-font);letter-spacing:-.3px;margin:0; }
#bw-collection .fr-head p { font:400 15px/22px var(--tw-font);color:var(--tw-text-2);margin:0; }
#bw-collection .fr-steps { list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px; }
#bw-collection .fr-step { background:var(--tw-surface);border-radius:16px;padding:20px;display:flex;gap:16px;align-items:flex-start;min-width:0; }
#bw-collection .fr-num { width:32px;height:32px;border-radius:50%;flex:none;display:grid;place-items:center;font:500 14px var(--tw-mono);background:var(--tw-surface-2);color:var(--tw-text-2); }
#bw-collection .fr-step[data-state=current] .fr-num { background:var(--tw-accent);color:#1A1816; }
#bw-collection .fr-text { flex:1;min-width:180px;display:flex;flex-direction:column;gap:4px; }
#bw-collection .fr-text h3 { font:600 16px/22px var(--tw-font);margin:0; }
#bw-collection .fr-text p { font:400 13px/18px var(--tw-font);color:var(--tw-text-muted);text-wrap:pretty;margin:0; }
#bw-collection .fr-btn { height:44px;min-height:44px;padding:0 16px;border-radius:10px;border:.5px solid var(--tw-accent);background:transparent;color:var(--tw-accent-text);display:inline-flex;align-items:center;justify-content:center;gap:6px;font:500 14px var(--tw-font);white-space:nowrap;box-sizing:border-box;text-decoration:none; }
#bw-collection .fr-btn.primary { height:48px;min-height:48px;padding:0 24px;background:var(--tw-accent);color:#1A1816;font:600 16px var(--tw-font); }
#bw-collection .fr-btn:disabled { opacity:.4;cursor:default; }
#bw-collection .fr-done { align-self:center;font:500 13px var(--tw-font);color:var(--tw-text-muted); }
#bw-collection .fr-sr { position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap; }
#bw-collection .fr-note { font:400 13px/18px var(--tw-font);color:var(--tw-text-muted);text-wrap:pretty;margin:0; }
/* #83: a step's actions, skipping a step for now and taking it back. */
#bw-collection .fr-actions { display:flex;flex-direction:column;align-items:flex-end;gap:8px;flex:none; }
#bw-collection .fr-skip-form { margin:4px 0 0;align-self:flex-start; }
#bw-collection .fr-skip { min-height:44px;padding:0;border:0;background:none;color:var(--tw-accent-text);font:500 13px var(--tw-font);cursor:pointer; }
/* #84: the keys step on Get started carries the key cards of Catalogues & keys (12l), one per source, on the page background. */
#bw-collection .fr-step:has(.fr-keys) { flex-wrap:wrap; }
#bw-collection .fr-keys { flex-basis:100%;display:grid;gap:12px;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));padding-left:48px; }
#bw-collection .fr-keys .bk-card { background:var(--tw-bg); }
#bw-collection .fr-keys [data-key-help] a { color:var(--tw-accent-text);text-decoration:none;font-weight:500; }
@media (max-width:640px) { #bw-collection .fr-keys { padding-left:0; } }
/* #86: step 3's choice screen, on 12b's import hub cards, and the summary of what came in. */
#bw-collection .fr-back { margin:0; }
#bw-collection .fr-back a, #bw-collection .fr-choice-note a, #bw-collection .fr-imported a, #bw-collection [data-needs-catalogue] a { min-height:44px;display:inline-flex;align-items:center;color:var(--tw-accent-text);font:500 15px var(--tw-font);text-decoration:none; }
#bw-collection .fr-choices { display:grid;gap:16px;grid-template-columns:repeat(auto-fill,minmax(min(100%,280px),1fr));margin-top:24px; }
#bw-collection .fr-choice { background:var(--tw-surface);border-radius:16px;padding:20px;display:flex;flex-direction:column;gap:8px;min-width:0; }
#bw-collection .fr-choice h2 { font:600 18px/24px var(--tw-font);margin:0; }
#bw-collection .fr-choice p { font:400 13px/18px var(--tw-font);color:var(--tw-text-muted);margin:0;text-wrap:pretty; }
#bw-collection .fr-choice .fr-btn { align-self:flex-start; }
#bw-collection .fr-choice .fr-btn:first-of-type { margin-top:auto; }
#bw-collection .fr-choice-note { color:var(--tw-text-2)!important; }
#bw-collection .fr-summary-card { background:var(--tw-surface);border-radius:16px;padding:20px;margin-top:24px;display:flex;flex-direction:column;gap:6px; }
#bw-collection .fr-summary-card h2 { font:600 16px/22px var(--tw-font);margin:0; }
#bw-collection .fr-summary-card p { font:400 14px/20px var(--tw-font);color:var(--tw-text-2);margin:0; }
#bw-collection .fr-imported { list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:0 16px; }
@media (max-width:640px) { #bw-collection .fr-choice .fr-btn { align-self:stretch; } }
/* #87: the guide's card links and its end. */
#bw-collection .fr-guide-links { display:flex;flex-wrap:wrap;gap:0 16px;margin-top:auto!important; }
#bw-collection .fr-guide-links a { min-height:44px;display:inline-flex;align-items:center;color:var(--tw-accent-text);font:500 14px var(--tw-font);text-decoration:none; }
#bw-collection [data-guide-card] p strong { font-weight:600;color:var(--tw-text); }
#bw-collection .fr-guide-end { margin-top:24px; }
#bw-collection .fr-guide-end form { display:flex; }
@media (max-width:640px) { #bw-collection .fr-guide-end form .fr-btn { flex:1; } }
/* #85: the catalogue step's done line and its explainer. */
#bw-collection .fr-summary { font:500 13px/18px var(--tw-font);color:var(--tw-text-2);margin:0; }
#bw-collection .fr-summary a { color:var(--tw-accent-text);text-decoration:none; }
#bw-collection .fr-explain { margin:4px 0 0;font:400 13px/18px var(--tw-font);color:var(--tw-text-2); }
#bw-collection .fr-explain summary { min-height:44px;display:flex;align-items:center;cursor:pointer;color:var(--tw-accent-text);font-weight:500;width:max-content; }
#bw-collection .fr-explain ul { margin:0 0 4px;padding-left:18px;display:flex;flex-direction:column;gap:6px; }
#bw-collection .fr-skipped { font:500 13px/18px var(--tw-font);color:var(--tw-text-2); }
@media (max-width:640px) { #bw-collection .fr-step { flex-wrap:wrap; } #bw-collection .fr-actions { width:100%;align-items:stretch; } #bw-collection .fr-btn { width:100%; } }
.key-need { display:flex;flex-direction:column;gap:4px;margin:0; }
.key-need strong { font:500 14px var(--tw-font); }
main .key-need a:not(.button) { min-height:44px;display:inline-flex;align-items:center;gap:4px;color:var(--tw-accent-text);font:500 15px var(--tw-font);text-decoration:none; }
.key-need a svg { width:20px;height:20px; }
.bc-outline[aria-disabled=true], .bk-btn[aria-disabled=true] { opacity:.4;pointer-events:none; }
/* The rows are drawn by script after first paint: hold the space so the footer is not pushed (layout shift). */
@media(max-width:1023.98px) { [data-bc-main][data-bc-pending] { min-height:100dvh; } }
/* 12i: the desktop toolbar Options menu holds Group by and Select; the phone and iPad portrait keep them in the Filters sheet's View block. */
.bc-options { display:none;position:relative; }
.bc-options-menu { position:absolute;top:calc(100% + 8px);right:0;z-index:30;width:280px;box-sizing:border-box;padding:8px;display:flex;flex-direction:column;background:var(--tw-bg);border:.5px solid var(--tw-divider-strong);border-radius:16px;box-shadow:0 8px 24px rgba(20,15,5,.12); }
.bc-options-menu[hidden] { display:none; }
.bc-options-head { min-height:44px;display:flex;align-items:center;padding:0 10px;border-radius:10px;background:var(--tw-surface);font:500 14px var(--tw-font);color:var(--tw-text); }
.bc-options-menu button { all:unset;box-sizing:border-box;display:flex;align-items:center;gap:10px;cursor:pointer;border-radius:10px;font:400 14px var(--tw-font);color:var(--tw-text-2); }
.bc-options-menu .bc-options-select { min-height:44px;padding:0 10px;font-weight:500;color:var(--tw-text); }
.bc-options-menu .bc-options-select::before { content:'';width:18px;height:18px;flex:none;border-radius:5px;border:1.5px solid var(--tw-divider-strong);box-sizing:border-box; }
.bc-options-menu .bc-options-select[aria-checked=true]::before { background:var(--tw-accent);border-color:var(--tw-accent); }
.bc-options-menu .bc-options-choice { min-height:40px;padding:0 10px 0 38px; }
.bc-options-menu .bc-options-choice[aria-checked=true] { color:var(--tw-accent-text); }
.bc-options-menu button:hover,.bc-options-menu button:focus-visible { background:var(--tw-surface); }
.bc-options-menu button:focus-visible { outline:2px solid var(--tw-accent);outline-offset:-2px; }
.bc-options-rule { height:.5px;background:var(--tw-divider);margin:4px 0; }
@media(min-width:1024px){ .bc-options { display:block; } .bc-filter-panel .bc-view-group { display:none; } }
.bc-present-inline { display:flex;flex-direction:column; }
.bc-price-single p { margin:4px 0 0; }
/* #26 retail and availability: words carry the state, the dot only repeats it. */
.bc-retail-status { display:inline-flex;align-items:center;gap:6px;margin:0;font:500 13px var(--tw-font); }
.bc-retail-status span,.bc-retail-status::before { color:var(--tw-text-muted); }
[data-retail-status="retired"] > span { color:var(--tw-text-muted); }
[data-retail-status="retiring"] > span { color:var(--tw-warning); }
[data-retail-status="available"] > span { color:var(--tw-success); }
.bc-retail-saving { margin:4px 0 0; }
.bc-partout-pending { display:flex;flex-direction:column;gap:8px;padding-block:16px;border-bottom:0.5px solid var(--tw-divider); }
.bc-partout-pending .actions { justify-content:space-between; }
.bc-partout-pending p { margin:0;font-size:13px;color:var(--tw-text-2); }
[data-module=prices]>[data-bc-fetch-status]:empty { display:none; }
[data-module=prices]>[data-bc-fetch-status] { margin:4px 0 0;font-size:13px; }
.bc-partout-hint { margin:4px 0 0;font:500 13px var(--tw-font);color:var(--tw-text); }
/* M.10 A · the Part list control, its notes, the retired lines and the Switch sheet (design 4.2 to 4.5). */
#bw-collection .bc-part-source { display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0;font:500 15px/22px var(--tw-font); }
#bw-collection .bc-part-list>.mono { margin:0; }
#bw-collection .bc-part-note { display:flex;flex-direction:column;align-items:flex-start;gap:8px;padding:12px 14px;border-radius:10px;border:.5px solid var(--tw-divider-strong);background:var(--tw-warning-soft);color:var(--tw-text); }
#bw-collection .bc-part-note[data-kind^=pending] { background:var(--tw-info-soft); }
#bw-collection .bc-part-note>strong { font:500 14px/20px var(--tw-font); }
#bw-collection .bc-part-note p { margin:0;font-size:14px;line-height:20px;color:var(--tw-text-2); }
#bw-collection .bc-part-note .actions { gap:8px; }
#bw-collection .bc-part-note button,#bw-collection .bc-part-list>.actions>button { min-height:var(--tw-hit); }
#bw-collection .bc-figure-source { font-size:13px;line-height:18px;color:var(--tw-text-2); }
#bw-collection .bc-figure-row>.bc-figure-change { flex:1 1 100%; }
#bw-collection .bc-retired { margin:0 0 12px;padding:4px 20px 12px;border-radius:16px;background:var(--tw-surface); }
#bw-collection .bc-retired>summary { cursor:pointer;min-height:var(--tw-hit);display:flex;align-items:center;font:500 14px/20px var(--tw-font);color:var(--tw-text-2); }
#bw-collection .bc-retired-row { display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:4px 12px;padding:10px 0;border-top:.5px solid var(--tw-divider); }
#bw-collection .bc-retired-row .bc-identity { display:flex!important;flex-direction:row!important;flex-wrap:wrap;align-items:center;gap:6px 10px;min-width:0; }
#bw-collection .bc-retired-row .bc-identity>* { margin:0; }
#bw-collection .bc-retired-row p { margin:0;font-size:13px; }
#bw-collection .bc-retired-row[data-marked="1"] p { color:var(--tw-text); }
.bc-part-sheet { display:flex;flex-direction:column;gap:16px; }
.bc-part-sheet h3 { margin:0;font:500 11px/14px var(--tw-font);letter-spacing:.1em;text-transform:uppercase;color:var(--tw-text-2); }
.bc-part-sheet p { margin:0; }
.bc-part-sheet .bc-lists { border:0;margin:0;padding:0;min-width:0;display:flex;flex-direction:column; }
.bc-part-sheet .bc-lists legend { padding:0 0 8px;font:500 11px/14px var(--tw-font);letter-spacing:.1em;text-transform:uppercase;color:var(--tw-text-2); }
#bw-collection .bc-part-sheet .bc-list-choice { display:flex;flex-direction:row!important;align-items:center;justify-content:flex-start;gap:12px;min-height:var(--tw-hit);padding:10px 0;border-bottom:.5px solid var(--tw-divider);cursor:pointer;font-size:14px;line-height:20px;letter-spacing:normal;text-transform:none;color:var(--tw-text); }
.bc-part-sheet .bc-list-choice input { flex:none;width:20px;height:20px;min-height:0;margin:0;accent-color:var(--tw-accent); }
.bc-part-sheet .bc-list-choice>span { display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;min-width:0; }
.bc-part-sheet .bc-list-choice small { flex-basis:100%;font-size:13px;line-height:18px; }
.bc-part-sheet .bc-list-choice[data-current="1"],.bc-part-sheet .bc-list-choice:has(input:disabled) { cursor:default; }
.bc-part-sheet .bc-change { display:flex;flex-direction:column;gap:12px;padding:14px;border-radius:10px;background:var(--tw-surface-2); }
.bc-part-sheet .bc-change[hidden] { display:none; }
.bc-part-sheet .bc-change-counts { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0; }
.bc-part-sheet .bc-change-counts div { display:flex;flex-direction:column;gap:2px;min-width:0; }
.bc-part-sheet .bc-change-counts dt { font-size:12px;line-height:16px;color:var(--tw-text-2); }
.bc-part-sheet .bc-change-counts dd { margin:0;font:500 20px/26px var(--tw-mono); }
.bc-part-sheet .bc-lost { list-style:none;margin:0;padding:0;display:flex;flex-direction:column; }
.bc-part-sheet .bc-lost li { display:flex;flex-wrap:wrap;align-items:center;gap:2px 8px;padding:8px 0;border-top:.5px solid var(--tw-divider-strong);font-size:14px;line-height:20px; }
.bc-part-sheet .bc-lost li .mono:last-child { flex-basis:100%;font-size:13px;color:var(--tw-text-2); }
.bc-part-sheet .bc-preference { padding-block:8px;border-bottom:.5px solid var(--tw-divider); }
.bc-part-sheet .bc-preference input { width:20px;height:20px;accent-color:var(--tw-accent); }
/* The Switch sheet scrolls inside the viewport; its actions stay in reach. */
#bc-part-list { max-height:100dvh;overflow:auto; }
.bc-part-sheet>.actions:last-child { position:sticky;bottom:-24px;margin:0 -24px -24px;padding:12px 24px 24px;background:var(--tw-sheet-bg,var(--tw-surface));border-top:.5px solid var(--tw-divider); }
/* A missing picture is a quiet surface tile in both themes: the number, clipped; the words only on tiles big enough to hold them. */
#bw-collection .bc-picture.bc-no-image { background:var(--tw-surface-2)!important;border:.5px dashed var(--tw-divider-strong)!important;color:var(--tw-text-2);min-width:0; }
#bw-collection .bc-picture.bc-no-image>.mono { display:block!important;max-width:100%;box-sizing:border-box;padding:0 4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;line-height:16px; }
#bw-collection .bc-picture.bc-no-image>span:not(.mono) { display:none; }
#bw-collection .bc-picture.bc-no-image.bc-hero-picture>span:not(.mono),#bw-collection .bc-card>.bc-picture.bc-no-image>span:not(.mono) { display:block; }
#bw-collection .bc-picture.bc-no-image.bc-hero-picture>.mono { font-size:13px; }
/* From a tablet down the copy page is one column, as on a phone: the cards need the width. */
@media(max-width:1023px) { #bw-collection .bc-detail-layout { grid-template-columns:minmax(0,1fr); }#bw-collection .bc-detail-layout>.bc-detail-aside,#bw-collection .bc-detail-layout>.bc-detail-main { grid-column:1;grid-row:auto; } }

/* #215 · Found 1 on a missing card, Check missing only beside Check parts. */
#bw-collection .bc-check-actions { display:flex;gap:8px;align-items:center;flex:none; }
#bw-collection .bc-check-actions form { margin:0; }
#bw-collection .bc-check-actions .bc-outline { min-height:44px;padding:0 16px; }
#bw-collection .bc-found { grid-column:2;display:flex;flex-direction:column;align-items:flex-start;gap:4px;min-width:0; }
#bw-collection .bc-found [data-bc-found-message] { margin:0;font:400 13px var(--tw-mono);color:var(--tw-text-2); }
#bw-collection .bc-found [data-bc-found-message]:empty { display:none; }
#bw-collection .bc-found-one { min-height:44px;padding:0 16px;border-radius:10px;border:.5px solid var(--tw-accent);background:none;color:var(--tw-accent-text);font:500 14px var(--tw-font);cursor:pointer; }
#bw-collection .bc-found-link { min-height:44px;padding:0;border:0;background:none;color:var(--tw-accent-text);font:500 14px var(--tw-font);text-decoration:underline;cursor:pointer; }
#bw-collection .bc-found button:disabled { opacity:.4;cursor:default; }
#bw-collection .bc-figure-row .bc-found { flex:1 1 100%; }
@media(max-width:767px) { #bw-collection .bc-check-actions { flex-wrap:wrap; } }
