/* Signed-in Parts pages: the workspace tabs, Parts search (Variant A v3) and the part detail
   page (Option A pricing). Loaded after styles.css. Mobile-first checks at 320-414px;
   the phone layout is below 761px, as in the approved mockups. No inline styles (CSP):
   swatch colors come from /api/parts/colors. */
.app-body {
  --line: rgba(5, 19, 29, 0.14);
  --row-h: 52px;
  --thumb: 48px;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
}
.app-main { padding: 1.25rem 0 2.5rem; }
/* Workspace tabs under the color bar (the same menu as the other workspace pages, roles.css). */
/* Each item is the footprint of a real part, front on: 114 units tall (18 of stud, 96 of body)
   and 80 x length - 2 wide, so the brick behind the current page is never stretched. */
.app-body .rd-signout { margin: 0; }

.muted { color: var(--ink-soft); }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 1.15rem;
  border: 0; border-radius: 10px; font: inherit; font-weight: 700; font-size: 1.05rem; color: var(--white);
  background: var(--red); cursor: pointer; white-space: nowrap; text-decoration: none;
}
.btn:hover { background: #A51507; }
.btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.btn-small { min-height: 44px; font-size: 0.9375rem; }
.btn-quiet { color: var(--ink); background: var(--white); border: 1px solid rgba(5, 19, 29, 0.28); }
.btn-quiet:hover { background: var(--off-white); }
.link-btn { display: inline-flex; align-items: center; min-height: 32px; border: 0; background: none; padding: 0; color: var(--blue); font: inherit; font-size: 0.8125rem; font-weight: 700; cursor: pointer; text-decoration: none; }
.link-btn:hover { text-decoration: underline; }

/* ----- Phone sheets (the filters) ------------------------------------------------------- */
.filters::backdrop { background: rgba(5, 19, 29, 0.45); }
.sheet-open { overflow: hidden; }
.sheet-x { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 10px; background: var(--off-white); font-size: 1.5rem; line-height: 1; color: var(--ink); cursor: pointer; }

/* ----- Page head + search card -------------------------------------------------------------- */
.rd-eyebrow { margin: 0 0 0.35rem; font-size: 0.875rem; font-weight: 700; color: var(--ink-soft); letter-spacing: 0.02em; }
.rd-title { font-size: 2.1rem; letter-spacing: -0.01em; margin: 0 0 0.75rem; }
.search-card { background: var(--white); border: 1px solid var(--edge); border-radius: var(--radius); padding: 0.8rem 1.1rem 0.95rem; box-shadow: 0 1px 2px rgba(5, 19, 29, 0.04); margin: 0 0 0.9rem; }
.search-row { display: flex; align-items: flex-end; gap: 0.85rem; }
.search-row .field { flex: 1; min-width: 0; margin: 0; }
.field-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin: 0 0 0.35rem; }
.field-head label { display: block; font-weight: 700; font-size: 0.95rem; margin: 0; }
.search-hint { margin: 0; font-size: 0.8125rem; color: var(--ink-soft); }
#parts-q {
  width: 100%; height: 48px; padding: 0 0.85rem; font: inherit; font-size: 1rem; color: var(--ink); background: var(--white);
  border: 1.5px solid #868B8F; border-radius: 10px;
}
/* A plain field: no standing yellow and blue band (Wei, 2026-11-20). Focus is a blue edge. */
#parts-q:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); box-shadow: none; }
#parts-q::placeholder { color: #6B7076; }
.parts-error { margin: 0 0 0.75rem; padding: 0.65rem 0.9rem; border: 1px solid var(--red); border-radius: 10px; background: #FFF4F2; color: var(--ink); font-size: 0.9375rem; }
.parts-error ul { margin: 0.25rem 0 0; padding-left: 1.2rem; }
.parts-error p { margin: 0; }
.parts-ok { margin: 0 0 0.75rem; padding: 0.6rem 0.9rem; border: 1px solid var(--green); border-radius: 10px; background: #F0F8F2; font-size: 0.9375rem; }

/* ----- Layout + filters ------------------------------------------------------------------------ */
.layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 24px; align-items: start; }
.results-col { min-width: 0; }
/* The filter panel is a popover (the phone sheet). On wide screens it is a plain sidebar,
   so the browser's popover box styles are reset here. */
.filters {
  /* inset resets the popover box first; top must follow it or the sidebar never sticks. Taller than
     the window, it scrolls on its own so every filter stays reachable. */
  position: sticky; inset: auto; top: 12px; display: block; width: auto; height: auto; max-height: calc(100dvh - 24px); margin: 0; overflow: hidden auto; overscroll-behavior: contain;
  color: inherit; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(5, 19, 29, 0.04); padding: 12px 14px 14px;
}
.filters-head { display: flex; align-items: baseline; justify-content: space-between; margin: 0 0 6px; }
.filters-head h2 { font-size: 1.15rem; margin: 0; }
.head-actions { display: inline-flex; align-items: center; gap: 12px; }
.fgroup { border-top: 1px solid var(--line); padding: 9px 0 8px; }
.filters-head + .fgroup { border-top: 0; }
.fgroup > h3 { display: flex; align-items: center; justify-content: space-between; font-family: var(--font); font-size: 0.875rem; font-weight: 800; margin: 0 0 5px; }
.fgroup > h3 .scope { font-size: 0.6875rem; font-weight: 600; color: var(--ink-soft); }
.fgroup > h3 .desk-label { display: contents; }
.flist { list-style: none; margin: 0; padding: 0; }
.flist .flist { padding-left: 24px; }
.opt { display: flex; align-items: center; gap: 8px; min-height: 28px; margin: 0; font-size: 0.875rem; font-weight: 400; cursor: pointer; }
.opt input { width: 16px; height: 16px; margin: 0; accent-color: var(--black); flex: none; }
.opt .lbl { flex: 1; min-width: 0; line-height: 1.25; overflow-wrap: anywhere; }
.opt .n { font-size: 0.75rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.opt.is-off, .opt.is-off .n { color: #767B80; cursor: default; }
.tw { width: 18px; height: 18px; flex: none; border: 0; padding: 0; background: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; color: var(--ink-soft); }
.tw::before { content: ""; border: 4px solid transparent; border-left: 5px solid currentColor; margin-left: 4px; }
.tw[aria-expanded="true"]::before { border: 4px solid transparent; border-top: 5px solid currentColor; margin: 4px 0 0; }
.tw:focus-visible, .opt input:focus-visible, .size:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.tw-spacer { width: 18px; flex: none; }
.opt-row { display: flex; align-items: center; gap: 4px; }
.opt-row .opt { flex: 1; min-width: 0; }
.fnote { margin: 4px 0 0; font-size: 0.75rem; color: var(--ink-soft); line-height: 1.35; }
.sizes { display: flex; flex-wrap: wrap; gap: 6px; }
.size { display: inline-flex; align-items: center; height: 30px; padding: 0 10px; margin: 0; border: 1px solid rgba(5, 19, 29, 0.25); border-radius: 8px; background: var(--white); font-size: 0.8125rem; font-weight: 700; color: var(--ink); cursor: pointer; font-variant-numeric: tabular-nums; }
.size:has(input:checked) { background: var(--black); color: var(--white); border-color: var(--black); }
.exact { list-style: none; margin: 2px 0 6px 14px; padding: 6px 8px; background: var(--white); border: 1px solid var(--edge); border-radius: 8px; }
.exact li { display: flex; align-items: center; gap: 6px; }
.exact .opt { flex: 1; min-width: 0; min-height: 26px; padding: 2px 0; font-size: 0.8125rem; }
.exact .bl, .color-name .bl { font-family: var(--font-mono); font-size: 0.6875rem; color: var(--ink-soft); white-space: nowrap; }
.sheet-only, .filters-btn, .m-list { display: none; }

/* Swatches: always beside the color name; light colors get a darker edge; trans a checker. */
.sw { display: inline-block; width: 14px; height: 14px; border-radius: 50%; flex: none; border: 1px solid rgba(5, 19, 29, 0.28); background-color: #FFFFFF; }
.sw-light { border-color: rgba(5, 19, 29, 0.65); }
.sw-trans {
  background-image: linear-gradient(45deg, #D8D8D8 25%, transparent 25%), linear-gradient(-45deg, #D8D8D8 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #D8D8D8 75%), linear-gradient(-45deg, transparent 75%, #D8D8D8 75%);
  background-size: 6px 6px; background-position: 0 0, 0 3px, 3px -3px, -3px 0; background-blend-mode: multiply;
}
.sw-none { border-style: dashed; }

/* ----- Results ---------------------------------------------------------------------------------- */
.toolbar { display: flex; align-items: center; gap: 12px; margin: 0 0 8px; min-height: 40px; }
.toolbar h2 { font-size: 1.2rem; letter-spacing: -0.01em; margin: 0; }
.toolbar .spacer, .pd-toolbar .spacer { flex: 1; }
.sort-field { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: 0.8125rem; font-weight: 700; }
.sort-field select, .field-sm select, .field-sm input {
  height: var(--field-h); min-height: var(--field-h); padding: 0 0.55rem; font: inherit; font-size: var(--field-font); font-weight: 600; color: var(--ink);
  background-color: var(--white); border: var(--field-border); border-radius: var(--field-radius);
}
.pop-note { margin: 0 0 6px; font-size: 0.8125rem; color: var(--ink-soft); }
.pop-note[hidden] { display: none; }
.pop-h { display: none; }
.match-note, .thumb-legend, .foot-note { margin: 0 0 6px; font-size: 0.8125rem; color: var(--ink-soft); }
.foot-note { margin-top: 0.6rem; }
.pager-range, .pager-cap { margin: 0.6rem 0 0; font-size: 0.875rem; color: var(--ink-soft); }
.pager { display: flex; flex-wrap: nowrap; align-items: center; gap: 6px; margin-top: 0.5rem; }
/* Pager at both ends (Wei, 2026-11-28): above the list it sits at the right end of the toolbar,
   after the title and Sort; below it, "Showing…" on the left and the same pager on the right,
   so Next is in the same place at both ends. Compact: square arrow buttons, the page dropdown
   and "of N", all 44px tall on one line, phones included. */
.pager-top:empty { display: none; }
.pager-top .pager { margin-top: 0; }
.pager-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-top: 0.6rem; }
.pager-foot .pager-range { margin: 0; }
.pager-foot .pager { margin-top: 0; }
.pager .pager-btn { width: 44px; min-width: 44px; height: 44px; min-height: 44px; padding: 0; }
/* margin 0: the site's label rule adds a bottom margin that lifted the dropdown 3px. */
.pager-at { display: inline-flex; align-items: center; gap: 6px; margin: 0 4px; line-height: 1; font-size: 0.9375rem; font-weight: 700; white-space: nowrap; }
/* Narrow phones: First and Last step aside (the dropdown reaches any page). */
@media (max-width: 26rem) { .pager a[rel="first"], .pager a[rel="last"] { display: none; } }
/* The jump-to-page dropdown: same height, corners and type as the buttons. */
.pager-jump { display: inline-block; width: auto; height: 44px; min-height: 44px; min-width: 3.75rem; margin: 0; padding: 0 1.5rem 0 0.7rem; font: inherit; font-size: 0.9375rem; font-weight: 700; color: var(--ink); background-color: var(--white); border: var(--field-border); border-radius: 10px; }
.results-panel { position: relative; border: 1px solid rgba(5, 19, 29, 0.16); border-radius: 10px; background: var(--white); }
.results-panel[aria-busy="true"], #results[aria-busy="true"] .results-panel { opacity: 0.6; }
.grid { width: 100%; border-collapse: collapse; table-layout: fixed; }
.grid th, .grid td { padding: 0; vertical-align: middle; text-align: left; }
.grid thead th { height: 40px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.02em; color: var(--ink-soft); text-transform: uppercase; background: #F3F2EE; border-bottom: 1px solid rgba(5, 19, 29, 0.16); white-space: nowrap; }
.grid thead th:first-child { border-top-left-radius: 10px; }
.grid thead th:last-child { border-top-right-radius: 10px; }
.grid tbody tr.r { height: var(--row-h); }
.grid tbody td { border-bottom: 1px solid rgba(5, 19, 29, 0.09); }
.grid tr.grp td { height: 26px; padding: 0 12px; font-size: 0.6875rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-soft); }
.grp .why, .m-grp .why { font-weight: 600; letter-spacing: 0; text-transform: none; margin-left: 6px; }
.cell { display: flex; align-items: center; min-height: var(--row-h); padding: 2px 8px; min-width: 0; }
.cell.stack { flex-direction: column; align-items: flex-start; justify-content: center; }
.thumb { justify-content: center; }
.pic-link { display: flex; align-items: center; justify-content: center; width: var(--thumb); height: var(--thumb); border-radius: 8px; text-decoration: none; background: transparent; }
.pic-link img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pic-link:hover { box-shadow: 0 0 0 2px rgba(0, 85, 191, 0.35); }
.ph-wrap { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; color: #767B80; text-align: center; }
.ph { width: 24px; height: 24px; }
.ph-label { font-size: 0.5625rem; font-weight: 700; line-height: 1.1; color: var(--ink-soft); }
.no { font-family: var(--font-mono); font-size: 0.875rem; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.alt-id { white-space: nowrap; font-family: var(--font-mono); font-size: 0.6875rem; color: var(--ink-soft); line-height: 1.2; }
.name { font-size: 0.9375rem; font-weight: 700; line-height: 1.2; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.full { font-size: 0.75rem; color: var(--ink-soft); line-height: 1.3; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.name-link { color: inherit; text-decoration: none; }
.name-link:hover, .name-link:focus-visible { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.name-link:focus-visible, .th-sort:focus-visible, .colors-btn:focus-visible, .chip:focus-visible, .more-btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.cat { font-size: 0.8125rem; color: var(--ink-soft); line-height: 1.3; }
.tag { display: inline-block; margin-left: 6px; padding: 0 5px; border-radius: 4px; font-size: 0.625rem; font-weight: 800; letter-spacing: 0.03em; line-height: 1.6; background: #EDE9FB; color: var(--dark-purple); text-transform: uppercase; }
.num { font-size: 0.875rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.stock { min-width: 0; max-width: 100%; font-size: 0.8125rem; font-weight: 600; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stock.none { color: var(--ink-soft); font-weight: 500; }
.stock .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--green); margin-right: 5px; vertical-align: 1px; }
.stock.none .dot { background: transparent; border: 1px solid #767B80; }
/* Two lines (Wei, 2026-11-29): parts with the dot, then colors smaller and lighter, lined up
   under the number. Each line fits "1,234,567 parts" in the narrower column without an ellipsis. */
.stock.two, .m-stock.two { display: flex; flex-direction: column; font-variant-numeric: tabular-nums; }
.stock .s-l1, .stock .s-l2, .m-stock .s-l1, .m-stock .s-l2 { display: block; overflow: hidden; text-overflow: ellipsis; }
.stock .s-l2 { padding-left: 12px; font-size: 0.75rem; font-weight: 500; color: var(--ink-soft); }
.grid col.c-thumb { width: 64px; }
.grid col.c-part { width: 110px; }
.grid col.c-cat { width: 130px; }
.grid col.c-colors { width: 100px; }
.grid col.c-sets { width: 80px; }
.grid col.c-stock { width: 132px; }
.th-sort { display: inline-flex; align-items: center; gap: 5px; width: 100%; height: 40px; padding: 0 8px; border: 0; background: none; cursor: pointer; text-align: left; font: inherit; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; color: var(--ink-soft); white-space: nowrap; }
.th-sort:hover { color: var(--ink); }
.th-sort .arrows { display: inline-flex; flex-direction: column; gap: 2px; flex: none; }
.th-sort .arrows i { display: block; width: 0; height: 0; border: 4px solid transparent; opacity: 0.4; }
.th-sort .arrows .up { border-bottom: 4px solid currentColor; border-top-width: 0; }
.th-sort .arrows .down { border-top: 4px solid currentColor; border-bottom-width: 0; }
.th-sort.is-asc, .th-sort.is-desc { color: var(--ink); }
.th-sort.is-asc .up, .th-sort.is-desc .down { opacity: 1; }
.th-sort.is-asc .down, .th-sort.is-desc .up { opacity: 0.2; }
.colors-cell { position: relative; }
.colors-btn { display: flex; align-items: center; width: 100%; min-height: var(--row-h); padding: 2px 8px; border: 0; background: none; color: var(--ink); text-align: left; cursor: pointer; font: inherit; }
.colors-count { font-size: 0.875rem; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; border-bottom: 1px dotted rgba(5, 19, 29, 0.45); }
.peek { display: none; position: absolute; top: calc(100% - 4px); left: 0; z-index: 6; width: 290px; padding: 8px 10px 10px; background: var(--white); border: 1px solid rgba(5, 19, 29, 0.18); border-radius: 10px; box-shadow: 0 10px 28px rgba(5, 19, 29, 0.16); }
.colors-cell:hover .peek, .colors-cell:focus-within .peek { display: block; }
.peek-title { margin: 0 0 4px; font-size: 0.75rem; font-weight: 700; color: var(--ink-soft); }
.peek ul { margin: 0; padding: 0; list-style: none; }
.peek-more { margin: 6px 0 0; font-size: 0.8125rem; font-weight: 700; }
.color-name { display: flex; align-items: center; gap: 7px; min-height: 24px; font-size: 0.875rem; line-height: 1.2; }
.color-name .bl { margin-left: auto; }
.results-panel.empty { padding: 28px 20px; text-align: center; font-size: 0.9375rem; color: var(--ink-soft); }
.results-panel.empty p { margin: 0; }
.empty-title { margin: 0 0 4px; font-family: var(--font-heading); font-size: 1.05rem; font-weight: 800; color: var(--ink); }

/* ----- Part detail ------------------------------------------------------------------------------- */
.crumbs { margin: 0 0 0.35rem; font-size: 0.9375rem; color: var(--ink-soft); }
.crumbs a { color: var(--ink-soft); }
.crumbs [aria-current] { color: var(--ink); font-weight: 700; }
.pd { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 24px; align-items: start; }
.pd-side { display: grid; gap: 16px; min-width: 0; }
.pd-card { background: var(--white); border: 1px solid var(--edge); border-radius: var(--radius); box-shadow: var(--shadow-soft); padding: 16px 18px; min-width: 0; }
.pd-pic { display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; margin: -8px -10px 8px; background: var(--white); border-radius: 10px; }
.pd-pic img { width: 100%; height: 100%; object-fit: contain; display: block; }
.ph-big .ph { width: 64px; height: 64px; }
.ph-big .ph-label { font-size: 0.875rem; }
.pd-title { font-size: 1.6rem; margin: 0; }
.pd-full { margin: 2px 0 10px; color: var(--ink-soft); font-size: 0.9375rem; }
.pd-ids { display: grid; gap: 6px; margin: 0 0 6px; }
.pd-ids div { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 8px; }
.pd-ids dt { font-weight: 600; color: var(--ink-soft); }
.pd-ids dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.pd-ids .also { display: block; font-size: 0.8125rem; font-weight: 600; color: var(--ink-soft); }
.pd-market h2 { font-size: 1.3rem; margin: 0 0 8px; }
.pd-label { margin: 8px 0 0; font-size: 0.875rem; font-weight: 700; color: var(--ink-soft); }
.pd-big { margin: 0; font-family: var(--font-heading); font-weight: 800; font-size: 1.2rem; }
.pd-sub { margin: 14px 0 6px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 1rem; }
.pd-empty { padding: 14px 0 4px; color: var(--ink-soft); font-size: 0.9375rem; }
.pd-empty p { margin: 0 0 4px; }
.pd-ranges { margin: 4px 0 0; padding-left: 1.1rem; font-size: 0.875rem; font-weight: 700; }
.pd-ranges li { margin: 2px 0; overflow-wrap: anywhere; }
.sales { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.sales th { font-size: 0.75rem; text-align: left; color: var(--ink-soft); padding: 4px 4px; }
.sales td { padding: 4px 4px; border-top: 1px solid rgba(5, 19, 29, 0.07); vertical-align: middle; }
.sales tbody tr:nth-child(even) { background: #ECEEF1; }
.sales .r, .grid .r { text-align: right; }
.sales .ctry { white-space: nowrap; font-weight: 700; font-size: 0.8125rem; }
.sales .flag { margin-right: 4px; }
.sales .sub { display: block; font-size: 0.75rem; color: var(--ink-soft); }
.cc { display: flex; align-items: center; gap: 8px; min-width: 0; }
.cc .nm { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Our render of this part in that color (white background, no gray well), always next to the name. */
.cc-pic { width: 32px; height: 32px; flex: none; object-fit: contain; display: block; background: var(--white); border-radius: 4px; }
.sales .cc-pic { width: 24px; height: 24px; }
.add-pic { display: inline-flex; vertical-align: middle; margin: 2px 6px 2px 0; }
.add-pic:empty { display: none; }
.add-pic img { width: 32px; height: 32px; object-fit: contain; display: block; background: var(--white); border-radius: 4px; }
.cond { flex: none; padding: 0 5px; border-radius: 4px; font-size: 0.6875rem; font-weight: 800; line-height: 1.6; background: #E4F0FB; color: #003D8A; }
.cond-used { background: #FDF0DC; color: #7A4100; }
.pd-main { min-width: 0; }
.pd-toolbar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 12px; margin: 0 0 8px; }
.field-sm label { display: block; margin: 0 0 3px; font-size: 0.8125rem; font-weight: 700; }
.field-sm input { width: 16rem; max-width: 100%; font-weight: 400; height: var(--field-h); min-height: var(--field-h); font-size: var(--field-font); border: var(--field-border); border-radius: var(--field-radius); }
.btn-add { min-height: 44px; font-size: 0.9375rem; }
.totals { margin: 0; font-size: 0.9375rem; }
.lots-scroll { position: relative; overflow-x: auto; border: 1px solid rgba(5, 19, 29, 0.16); border-radius: 10px; }
.lots { min-width: 0; table-layout: fixed; }
.lots thead th { padding: 0 6px; text-transform: none; font-size: 0.8125rem; color: var(--ink); white-space: normal; line-height: 1.15; }
.lots thead .hint { display: block; font-size: 0.6875rem; font-weight: 600; color: var(--ink-soft); }
.lots thead .th-sort { text-transform: none; font-size: 0.8125rem; color: var(--ink); padding: 0; }
.lots col.o-color { width: auto; }
.lots col.c-cond { width: 124px; }
.lots col.c-qty { width: 92px; }
.lots col.c-p { width: 112px; }
.lots col.c-bin { width: 120px; }
.lots col.c-more { width: 84px; }
.lots td { padding: 4px 6px; border-bottom: 1px solid rgba(5, 19, 29, 0.07); font-size: 0.9375rem; }
.lots td.bl { font-family: var(--font-mono); font-size: 0.8125rem; white-space: nowrap; }
.lots td.c { text-align: center; }
.in { width: 100%; min-width: 0; padding: 0 6px; font: inherit; text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); background: var(--white); height: var(--field-h-sm); min-height: var(--field-h-sm); font-size: var(--field-font-sm); border: var(--field-border); border-radius: var(--field-radius-sm); }
.in:focus-visible, .lots select:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.in.is-changed { border-color: var(--dark-purple); background: #F1EFFC; }
.in[aria-invalid="true"], select[aria-invalid="true"] { border: 2px solid var(--red); background: #FFF4F2; }
.in[disabled] { background: var(--off-white); color: var(--ink-soft); }
.in-text { text-align: left; }
.money, .pct { display: flex; align-items: center; gap: 2px; }
.money::before { content: attr(data-cur); color: var(--ink-soft); font-size: 0.8125rem; white-space: nowrap; }
.pct::after { content: "%"; color: var(--ink-soft); font-size: 0.8125rem; }
.na { display: block; text-align: right; color: var(--ink-soft); padding-right: 8px; }
.chips { display: flex; gap: 3px; flex-wrap: nowrap; }
.chip { display: inline-flex; align-items: center; gap: 3px; min-height: 30px; padding: 0 6px; border: 1px solid rgba(5, 19, 29, 0.24); border-radius: 999px; background: var(--white); font: inherit; font-size: 0.75rem; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink); cursor: pointer; white-space: nowrap; }
.chip .mk { color: var(--ink-soft); font-weight: 800; }
.chip.diff { border: 1.5px solid var(--dark-purple); background: #F1EFFC; }
.chip.off { border-style: dashed; color: var(--ink-soft); background: transparent; cursor: default; }
.chip[aria-expanded="true"] { box-shadow: 0 0 0 2px rgba(63, 54, 145, 0.25); }
.more-btn { display: inline-flex; align-items: center; gap: 3px; min-height: 36px; padding: 0 8px; border: 1px solid rgba(5, 19, 29, 0.24); border-radius: 6px; background: var(--white); font: inherit; font-size: 0.8125rem; font-weight: 700; color: var(--ink); cursor: pointer; }
.sub-row > td { background: var(--off-white); padding: 10px 12px; }
.js .sub-row:not(.is-open) { display: none; }
.panel + .panel { margin-top: 12px; }
.panel h4 { margin: 0 0 6px; font-size: 0.9375rem; font-family: var(--font-heading); }
.pm-t { border-collapse: collapse; font-size: 0.875rem; }
.pm-t th, .pm-t td { padding: 3px 8px; text-align: left; }
.pm-t td.r { text-align: right; }
.pm-t thead th { text-align: left; }
/* Two thirds of the old 7rem (Wei, 2026-11-28). */
.pm-t .in { width: 4.75rem; }
.pm-t .mp-set { color: inherit; text-decoration: underline; text-decoration-color: rgba(5, 19, 29, 0.35); text-underline-offset: 3px; }
.pm-t .mp-set:hover { text-decoration-color: currentColor; }
.mp-tip { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; margin-left: 4px; vertical-align: middle; border: 1px solid rgba(5, 19, 29, 0.2); border-radius: 50%; background: #FFF6CC; color: var(--ink); cursor: pointer; }
.mp-tip:hover { background: #FFE98A; }
.mp-tip-box { max-width: min(22rem, calc(100vw - 32px)); padding: 14px 16px; border: 1px solid rgba(5, 19, 29, 0.16); border-radius: 12px; background: var(--white); color: var(--ink); box-shadow: 0 12px 32px rgba(5, 19, 29, 0.18); font-size: 0.9375rem; line-height: 1.45; }
.mp-tip-box p { margin: 0 0 8px; }
.mp-tip-box::backdrop { background: rgba(5, 19, 29, 0.25); }
.pm-t select, .add-row select { font: inherit; background: var(--white); max-width: 100%; height: var(--field-h-sm); min-height: var(--field-h-sm); font-size: var(--field-font-sm); border: var(--field-border); border-radius: var(--field-radius-sm); }
.pm-t .is-fs { color: var(--ink-soft); }
.more-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: 8px 14px; align-items: end; }
.more-grid label { margin: 0; font-size: 0.8125rem; font-weight: 700; }
.more-grid .more-wide, .more-el { grid-column: 1 / -1; margin: 0; }
/* Bulk and quantity discounts (0441). */
.more-grid .in-qty { width: 6rem; }
.tier-word { font-size: 0.875rem; color: var(--muted, #4F575E); }
.more-grid .check { display: flex; align-items: center; gap: 6px; min-height: 36px; }
.more-grid .check input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--black); }
.hint { font-weight: 500; color: var(--ink-soft); }
.add-note { font-size: 0.8125rem; color: var(--ink-soft); }
.empty-row td { height: 72px; text-align: center; color: var(--ink-soft); }
/* Part detail v7 (Mockups/part-page-pricing): one left card (picture, IDs, Recently Sold), and
   inventory by color on the right, one <tbody> per color. New lots are white with a blue tag,
   Used lots are pale yellow with a yellow edge; changed fields get a purple border. */
.pd { grid-template-columns: 300px minmax(0, 1fr); gap: 32px; }
/* The left column stays on screen while the seller scrolls through the colors. The part card
   (picture and name) never changes size; Recently Sold scrolls on its own under it. */
.pd-side { display: flex; flex-direction: column; gap: 12px; min-width: 0; position: sticky; top: 12px; align-self: start; max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); }
.pd-side > .pd-id { flex: none; }
.pd-side > .pd-market { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.pd-id, .pd-market { padding: 14px 16px; background: var(--white); border: 1px solid rgba(5, 19, 29, 0.14); border-radius: 14px; }
.pd-pic { position: relative; flex-direction: column; margin: 0; padding: 6px; aspect-ratio: 6 / 5; border: 1px solid rgba(5, 19, 29, 0.14); border-radius: 10px; overflow: hidden; cursor: pointer; }
.pd-pic img { flex: 1 1 0; min-height: 0; }
/* The color in focus, under the part's name. */
.pd-color { margin: 2px 0 0; font-size: 0.875rem; font-weight: 700; line-height: 1.3; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd-title { margin: 12px 0 0; font-size: 1.625rem; }
.pd-full { margin: 0; font-size: 0.875rem; }
.pd-id .pd-ids { margin-top: 10px; }
.pd-top { height: 1px; margin-bottom: -1px; }
.pd-ids { gap: 8px; margin: 0; font-size: 0.875rem; }
.pd-ids div { grid-template-columns: 110px minmax(0, 1fr); }
.pd-ids dt { font-weight: 400; }
.pd-ids dd { font-weight: 400; }
.pd-market h2 { font-size: 1.125rem; margin: 0 0 6px; }
.js .pd-nojs { display: none; }
.sold-focus { display: flex; align-items: center; gap: 8px; padding: 8px 10px; margin: 0 0 6px; border: 2px solid var(--blue); border-radius: 10px; }
.sold-focus[hidden] { display: none; }
.sold-focus img { width: 32px; height: 32px; object-fit: contain; flex: none; }
.sf-name { font-weight: 800; font-size: 0.875rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sold-focus .ctag { margin-left: auto; flex: none; }
.seg { display: inline-flex; border: 1px solid #868B8F; border-radius: 10px; overflow: hidden; background: var(--white); }
.seg label { margin: 0; cursor: pointer; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg-mini { display: flex; width: 100%; border-radius: 6px; margin: 4px 0 10px; }
.seg-mini button[data-country="mine"] { display: flex; align-items: center; justify-content: center; }
.mine-flag { display: inline-flex; align-items: center; }
.mine-flag .flag { margin-right: 5px; font-size: 0.875rem; line-height: 1; position: relative; top: 1px; }
.seg-mini button { flex: 1 1 auto; text-align: center; white-space: nowrap; overflow: hidden; }
.seg-mini button[data-country="all"] { flex: 0 0 34%; }
.seg-mini button + button { border-left: 1px solid #868B8F; }
.seg-mini button, .seg-cond span { display: block; height: 26px; padding: 0 8px; border: 0; background: var(--white); font: inherit; font-size: 0.6875rem; font-weight: 800; letter-spacing: 0.04em; line-height: 26px; color: var(--ink-soft); cursor: pointer; }
.seg-mini button[aria-pressed="true"], .seg-cond input:checked + span { background: var(--blue); color: var(--white); }
.seg-mini button[disabled] { cursor: not-allowed; opacity: 0.55; }
.seg-cond { border-radius: 6px; }
.seg-cond input[value="used"]:checked + span { background: var(--yellow); color: var(--black); }
.seg-cond input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: -3px; }
.sp { background: var(--white); border: 1px solid var(--edge); border-radius: 10px; padding: 10px 12px; margin: 0 0 10px; }
.sp[hidden] { display: none; }
.sp-label { margin: 0; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.06em; }
.sp-big { margin: 0; font-family: var(--font-heading); font-size: 1.5rem; font-weight: 800; line-height: 1.2; }
.sp-big span { font-size: 0.875rem; font-weight: 600; }
.sp-use { margin: 4px 0 8px; height: 32px; padding: 0 12px; border: 1px solid var(--black); border-radius: 8px; background: var(--white); font: inherit; font-size: 0.8125rem; font-weight: 700; color: var(--ink); cursor: pointer; }
.sp-use:hover { border-color: var(--dark-purple); color: var(--dark-purple); }
.sp-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 10px; margin: 0 0 8px; }
.sp-row .sp-use { margin: 0; flex: none; }
.sp-stats { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; margin: 0; font-size: 0.75rem; line-height: 1.35; }
.sp-stats dt { color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-stats dd { margin: 0; font-family: var(--font-mono); text-align: right; }
.sp .fnote { margin: 8px 0 0; }
.pd-sub { margin: 0 0 4px; padding: 0; border: 0; font-size: 0.6875rem; font-family: var(--font); font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-soft); }
.sales { font-size: 0.8125rem; }
.sales[hidden] { display: none; }
.sales th { font-size: 0.6875rem; font-weight: 800; letter-spacing: 0.04em; padding: 4px 0; }
.sales td { padding: 4px 0; border-top: 1px solid rgba(5, 19, 29, 0.14); }
.sales tbody tr:nth-child(even) { background: none; }
.sales tr[hidden] { display: none; }
.sales .ctry { font-weight: 400; }
.sales .ctry .mono { font-size: 0.8125rem; }
.sales .flag { margin-right: 6px; }
.sales .num { font-family: var(--font-mono); }
.sales .sdate { font-size: 0.75rem; color: var(--ink-soft); white-space: nowrap; }
.country-pick { margin: 0 0 12px; padding: 10px 12px; border: 1px solid rgba(5, 19, 29, 0.22); border-radius: 10px; }
.country-pick[hidden] { display: none; }
.country-pick .pick-label { display: block; margin: 0 0 6px; font-size: 0.8125rem; font-weight: 700; }
.country-pick select { width: 100%; font: inherit; background: var(--white); height: var(--field-h); min-height: var(--field-h); font-size: var(--field-font); border: var(--field-border); border-radius: var(--field-radius); }
.country-pick .sp-use { margin: 8px 0 4px; }
.country-pick .fnote { margin: 0; }
.guide-msg { margin: 0 0 10px; padding: 10px 12px; background: var(--white); border: 1px solid var(--edge); border-radius: 10px; font-size: 0.8125rem; }
.guide-msg[hidden] { display: none; }
.guide-msg.is-busy { color: var(--ink-soft); }
html:not(.js) .guide { display: none; }
.sales .s-color { font-size: 0.6875rem; }
.sales.recent { margin: 10px 0 12px; }
.sales.recent th[scope="row"] { padding: 4px 0; border-top: 1px solid rgba(5, 19, 29, 0.14); font-size: 0.8125rem; font-weight: 400; letter-spacing: 0; text-align: left; color: var(--ink); }
.pd-market .fnote:last-child { margin-bottom: 0; }

.pd-toolbar { gap: 12px 16px; margin: 0 0 14px; }
.field-sm label, .field-sm .lbl { display: block; margin: 0 0 6px; font-size: 0.8125rem; font-weight: 700; }
.field-sm input { width: 18.75rem; height: var(--field-h); min-height: var(--field-h); font-size: var(--field-font); border: var(--field-border); border-radius: var(--field-radius); }
.pd-toolbar select { ; height: var(--field-h); min-height: var(--field-h); font-size: var(--field-font); border: var(--field-border); border-radius: var(--field-radius); }
.seg-view button { height: 44px; padding: 0 16px; border: 0; background: var(--white); font: inherit; font-size: 0.875rem; font-weight: 700; color: var(--ink); cursor: pointer; white-space: nowrap; }
.seg-view button[aria-pressed="true"] { background: var(--black); color: var(--white); }
.js .view-stock:not(.is-filtering) tbody.cgroup:not(.is-stocked):not(.has-unsaved) { display: none; }
.how { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; padding: 12px 16px; margin: 0 0 12px; border: 1px solid rgba(5, 19, 29, 0.22); border-radius: 12px; font-size: 0.875rem; }
.how[hidden] { display: none; }
.how ol { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; padding: 0; list-style: none; counter-reset: how; }
.how li { counter-increment: how; display: flex; align-items: center; }
.how li::before { content: counter(how); display: inline-flex; align-items: center; justify-content: center; flex: none; width: 24px; height: 24px; margin-right: 8px; border-radius: 50%; background: var(--black); color: var(--white); font-size: 0.75rem; font-weight: 800; }
.how .link-btn { margin-left: auto; font-size: 0.8125rem; }
.none-note { margin: 0 0 8px; color: var(--ink-soft); }

.lots-scroll { border: 1px solid rgba(5, 19, 29, 0.22); border-radius: 12px; overflow: hidden; }
.lots { min-width: 0; table-layout: fixed; }
.lots col.c-cond { width: 138px; }
.lots col.c-qty { width: 112px; }
.lots col.c-p { width: 136px; }
.lots col.c-bin { width: 122px; }
.lots col.c-more { width: 70px; }
.lots thead th { height: 48px; padding: 0 6px; background: var(--off-white); font-size: 0.8125rem; font-weight: 700; }
.lots thead th:first-child { padding-left: 16px; }
.lots td { padding: 8px 6px; height: 64px; border-bottom: 0; font-size: 0.9375rem; vertical-align: middle; }
.lots tbody.cgroup > tr:first-child > td { border-top: 2px solid rgba(5, 19, 29, 0.22); }
.lots td.c-color { padding-left: 16px; }
.cc { gap: 10px; }
.cc-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.cc .nm { font-weight: 700; font-size: 0.9375rem; }
.cc-text .sub { font-family: var(--font-mono); font-size: 0.6875rem; color: var(--ink-soft); }
.lots .cc-pic { width: 52px; height: 52px; background: none; border-radius: 0; }
.lots .sw { width: 28px; height: 28px; margin: 12px; flex: none; border-radius: 50%; }
.cc-same { padding-left: 62px; }
.cc-same .nm { font-size: 0.75rem; }
.lots tr.is-unsaved .cc::after { content: "Unsaved"; flex: none; padding: 2px 8px; border-radius: 999px; font-size: 0.6875rem; font-weight: 700; line-height: 1.3; background: var(--dark-purple); color: var(--white); white-space: nowrap; }
.c-cond { white-space: nowrap; }
.ctag { display: inline-flex; align-items: center; justify-content: center; height: 26px; min-width: 58px; padding: 0 10px; border-radius: 6px; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.06em; background: var(--blue); color: var(--white); box-sizing: border-box; }
.ctag-used { background: var(--yellow); color: var(--black); border: 1px solid var(--black); }
.alt-link { display: flex; min-height: 0; margin-top: 4px; font-size: 0.6875rem; font-weight: 400; line-height: 1.3; text-decoration: underline; }
.alt-link[hidden] { display: none; }
.js .add-alt:not(.is-shown) { display: none; }
.lots .in, .sub-row .in { padding: 0 10px; font-family: var(--font-mono); height: var(--field-h-sm); min-height: var(--field-h-sm); font-size: var(--field-font-sm); border: var(--field-border); border-radius: var(--field-radius-sm); }
.lots .in::placeholder { font-family: var(--font); font-size: 0.8125rem; color: var(--ink-soft); }
.lots .in.is-changed { border: 2px solid var(--dark-purple); background: var(--white); }
/* Rows are white (Wei, 2026-11-30): no tints or side bars, only the condition chips carry color.
   The row in focus (its color and condition drive Recently Sold) gets one blue bar on the left,
   and one thin blue outline on the field being typed in. */
.lots tr.is-focus > td:first-child { box-shadow: inset 4px 0 0 var(--blue); }
.lots .in:focus-visible, .lots select:focus-visible { outline: 2px solid var(--blue); outline-offset: 0; box-shadow: none; }
.money { gap: 4px; }
.soon { font-size: 0.8125rem; color: var(--ink-soft); white-space: nowrap; cursor: help; }
.soon-tag { display: inline-block; padding: 0 5px; border: 1px dashed #868B8F; border-radius: 4px; font-size: 0.625rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.more-btn { justify-content: center; width: 44px; height: 38px; min-height: 0; padding: 0; border: 1px solid #868B8F; border-radius: 8px; font-size: 1.125rem; line-height: 1; }
.more-btn[aria-expanded="true"] { background: var(--black); color: var(--white); border-color: var(--black); }
.lots .sub-row > td { height: auto; padding: 16px 20px 18px 50px; background: var(--white); border-top: 1px solid rgba(5, 19, 29, 0.22); box-shadow: inset 4px 0 0 var(--blue); }
.add-note { font-size: 0.75rem; }
.lots tbody.cgroup:not(.is-stocked) .cc-pic, .lots tbody.cgroup:not(.is-stocked) .sw { opacity: 0.85; }

/* The Save bar: sticky at the bottom while there are unsaved edits (always shown without JS). */
.savebar { position: sticky; bottom: 12px; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px; margin: 20px 0 0; padding: 16px 20px calc(16px + env(safe-area-inset-bottom)); background: var(--white); border: 1px solid rgba(5, 19, 29, 0.22); border-radius: 14px; box-shadow: 0 4px 16px rgba(5, 19, 29, 0.12); }
.savebar[hidden] { display: none; }
.savebar.is-clean { box-shadow: 0 -2px 10px rgba(5, 19, 29, 0.06); }
.savebar.is-clean .savebar-msg { color: var(--ink-soft); }
.savebar .btn[disabled] { opacity: 0.45; cursor: default; }
.savebar-msg { flex: 1 1 18rem; margin: 0; font-size: 1rem; font-weight: 400; }
.savebar-msg strong { font-weight: 800; }
.js [data-js-only] { visibility: visible; }
html:not(.js) [data-js-only] { display: none; }
html:not(.js) .field-sm:has([data-js-only]) { display: none; }

/* Narrow desktops and tablets: narrower columns so the color name keeps its room. */
@media (min-width: 761px) and (max-width: 1439px) {
  .pd { grid-template-columns: 264px minmax(0, 1fr); gap: 20px; }
  .lots col.c-cond { width: 104px; }
  .lots col.c-qty { width: 92px; }
  .lots col.c-p { width: 116px; }
  .lots col.c-bin { width: 104px; }
  .lots col.c-more { width: 60px; }
  .lots .cc-pic { width: 44px; height: 44px; }
  .lots .sw { margin: 8px; } /* the dot takes the 44px picture box too */
  .cc-same { padding-left: 54px; }
  .field-sm input { width: 14rem; height: var(--field-h); min-height: var(--field-h); font-size: var(--field-font); border: var(--field-border); border-radius: var(--field-radius); }
}
@media (min-width: 761px) and (max-width: 960px) {
  .pd { grid-template-columns: minmax(0, 1fr); }
  .pd-side { position: static; max-height: none; overflow: visible; }
}

/* ----- Wide screens only ------------------------------------------------------------------------ */
@media (min-width: 761px) {
  .filters:not(:popover-open) { display: block; }
}

/* ----- My Inventory (GET /parts with no search) --------------------------------------------------- */
/* My Stock has its own filters (Wei, 2026-11-29): the same sidebar, its own boxes. */
.layout.is-inv .toolbar .filters-btn, .layout.is-inv .sort-field { display: none; }
/* The tab already says My Inventory; the heading stays for screen readers. */
.layout.is-inv .toolbar { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.view-tabs { display: inline-flex; margin: 0 0 10px; border: 1px solid #868B8F; border-radius: 10px; overflow: hidden; background: var(--white); }
.view-tabs[hidden], .inv-head[hidden], .thumb-legend[hidden] { display: none; }
.view-tabs a { display: flex; align-items: center; min-height: 40px; padding: 0 14px; font-size: 0.875rem; font-weight: 700; color: var(--ink); text-decoration: none; }
.view-tabs a + a { border-left: 1px solid #868B8F; }
.view-tabs a[aria-current="page"] { background: var(--ink); color: var(--white); }
.view-tabs .n { font-weight: 400; margin-left: 4px; }
.inv-head { margin: 0 0 10px; }
.inv-stats { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0 0 10px; }
.inv-stats div { display: flex; flex-direction: column-reverse; }
.inv-stats dt { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; color: var(--ink-soft); }
.inv-stats dd { margin: 0; font-size: 1.375rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.inv-sort { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; font-size: 0.8125rem; }
.inv-sort .lbl { font-weight: 700; margin-right: 2px; }
.inv-sort a { display: inline-flex; align-items: center; min-height: 32px; padding: 0 10px; border: 1px solid rgba(5, 19, 29, 0.2); border-radius: 999px; background: var(--white); color: var(--ink); text-decoration: none; font-weight: 600; }
.inv-sort a[aria-current="true"] { background: var(--blue); border-color: var(--blue); color: var(--white); }
.inv-sort .chip { margin-left: auto; }
.inv-sort .chip-warn { border-color: #B45309; color: #8A3D00; background: #FFF4E5; }
.inv-sort .chip.is-on { background: #8A3D00; border-color: #8A3D00; color: var(--white); }
.inv-grid col.c-icolor { width: 180px; }
.inv-grid col.c-cond { width: 96px; }
.inv-grid col.c-qty { width: 90px; }
.inv-grid col.c-price { width: 120px; }
.inv-grid col.c-bin { width: 150px; }
.inv-grid thead th { padding: 0 8px; }
.inv-grid .cell.end { justify-content: flex-end; }
.inv-grid .no { font-size: 0.8125rem; color: var(--ink-soft); }
.inv-grid .sub { font-size: 0.75rem; color: var(--ink-soft); font-family: var(--font-mono); }
.inv-grid .inv-color { font-size: 0.9375rem; font-weight: 600; }
.inv-grid .bin { font-family: var(--font-mono); font-size: 0.8125rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.needs { display: inline-block; padding: 1px 7px; border-radius: 6px; background: #FFF4E5; color: #8A3D00; font-size: 0.75rem; font-weight: 700; white-space: nowrap; }
@media (max-width: 760px) {
  .view-tabs { display: flex; max-width: 100%; }
  .view-tabs a { flex: 1 1 auto; min-width: 0; justify-content: center; min-height: 44px; padding: 0 6px; white-space: nowrap; }
  .inv-stats { gap: 8px 20px; }
  .inv-stats dd { font-size: 1.125rem; }
  .inv-sort { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 6px; scrollbar-width: none; }
  .inv-sort a, .inv-sort .lbl { flex: none; }
  .inv-sort a { min-height: 40px; }
  .m-list .m-no { font-size: 0.8125rem; color: var(--ink-soft); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .m-list .m-stock .needs { font-size: 0.6875rem; }
  .inv-sort .chip { margin-left: 0; }
}

/* ----- Phones (≤760px) --------------------------------------------------------------------------- */
@media (max-width: 760px) {
  .app-main { padding-top: 0.75rem; }
  .parts-search .rd-eyebrow { display: none; }
  .parts-search .rd-title { font-size: 1.35rem; margin-bottom: 0.45rem; }
  .search-card { padding: 0.8rem; }
  .search-row { flex-direction: column; align-items: stretch; gap: 0.7rem; }
  .field-head { display: block; margin-bottom: 0.45rem; }
  .field-head label { font-size: 1rem; }
  .search-hint { margin-top: 2px; font-size: 0.8125rem; }
  #parts-q { height: 52px; font-size: 1.0625rem; }
  .search-row .btn { width: 100%; }
  .layout { display: block; }
  .toolbar { flex-wrap: wrap; gap: 8px; }
  .toolbar .pager-top { flex-basis: 100%; }
  /* No results-count heading on phones (still there for screen readers). */
  .toolbar h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .toolbar .spacer { display: none; }
  .filters-btn { display: inline-flex; align-items: center; gap: 5px; flex: none; height: 44px; padding: 0 12px; border: 1px solid rgba(5, 19, 29, 0.22); border-radius: 8px; background: var(--white); font: inherit; font-size: 0.875rem; font-weight: 600; color: var(--ink); cursor: pointer; }
  .filters-btn svg { width: 14px; height: 14px; }
  .filters-btn .badge { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--black); color: var(--white); font-size: 0.6875rem; }
  .sort-field { flex: 1; min-width: 0; }
  .sort-field select { flex: 1; min-width: 0; height: 44px; }
  .match-note, .foot-note { display: none; }
  .pop-h { display: block; font-size: 1.0625rem; color: var(--ink); margin-bottom: 2px; }
  /* The Filters bottom sheet (popover): only Category and Color Family. */
  .filters {
    position: fixed; inset: auto 0 0 0; top: auto; width: 100%; max-width: none; max-height: 86vh; max-height: 86dvh; margin: 0;
    overflow-y: auto; overscroll-behavior: contain; padding: 0 16px; border: 0; border-radius: 16px 16px 0 0; box-shadow: 0 -12px 32px rgba(5, 19, 29, 0.22);
  }
  .filters:not(:popover-open) { display: none; }
  html:not(.js) .filters:not(:popover-open) { display: block; position: static; border-radius: 10px; border: 1px solid var(--line); box-shadow: none; margin: 0 0 12px; max-height: none; }
  .filters-head { position: sticky; top: 0; z-index: 2; align-items: center; margin: 0 -16px 4px; padding: 14px 16px 10px; background: var(--white); border-bottom: 1px solid var(--line); }
  .filters-head .link-btn { min-height: 44px; font-size: 0.875rem; }
  .sheet-only { display: revert; }
  .filters .desk-only, .filters .fgroup > h3 .desk-label, .fg-color .tw, .fg-color .tw-spacer, .fg-color .exact, .fg-color .fnote { display: none; }
  .sheet-x { display: inline-flex; margin-right: -8px; }
  .sheet-foot { display: block; position: sticky; bottom: 0; margin: 4px -16px 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--white); border-top: 1px solid var(--line); }
  .sheet-foot .btn { width: 100%; }
  .filters .opt { min-height: 44px; font-size: 1rem; }
  .filters .opt input { width: 20px; height: 20px; }
  .filters .tw { width: 32px; height: 32px; margin: -6px -6px -6px -8px; }
  .results-panel:not(.empty) { border: 0; background: none; border-radius: 0; }
  .results-panel .grid { display: none; }
  .m-list { display: block; margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(5, 19, 29, 0.16); }
  .m-cols, .m-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; column-gap: 10px; border-bottom: 1px solid rgba(5, 19, 29, 0.09); }
  .m-cols { min-height: 28px; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; color: var(--ink-soft); }
  .m-cols span:last-child { text-align: right; }
  .m-grp { min-height: 24px; padding: 4px 0 3px; font-size: 0.6875rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-soft); border-bottom: 1px solid rgba(5, 19, 29, 0.09); }
  .m-row { min-height: 56px; padding: 4px 0; }
  .m-pic .pic-link { width: 44px; height: 44px; }
  .m-pic .ph { width: 22px; height: 22px; }
  .m-pic .ph-label { font-size: 0.5rem; }
  .m-main { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
  .m-main .name-link { display: flex; align-items: center; min-height: 28px; }
  .m-no { display: flex; align-items: baseline; gap: 6px; min-width: 0; margin-top: 1px; white-space: nowrap; overflow: hidden; }
  .m-no .no { font-size: 0.8125rem; }
  .m-stock { max-width: 8rem; margin: 0; text-align: right; font-size: 0.8125rem; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .m-stock.none { color: var(--ink-soft); font-weight: 500; }
  .m-stock .s-l2 { font-size: 0.75rem; font-weight: 500; line-height: 1.25; color: var(--ink-soft); }
  /* Part detail: one column, identity first, the lots grid scrolls sideways inside its box. */
  .pd-card { padding: 14px 12px; }
  .sales th, .sales td { padding: 4px 2px; }
  .sales .cc { gap: 5px; }
  .sales .cc .nm { white-space: normal; }
  .pd { grid-template-columns: minmax(0, 1fr); }
  .field-sm { flex: 1 1 100%; }
  .field-sm input, .field-sm select { width: 100%; height: 44px; }
  .btn-add { flex: 1; }
  /* Inventory by color on a phone: each row becomes a small card (picture and name, then the fields). */
  .lots-scroll { overflow: visible; border: 0; border-radius: 0; }
  .lots, .lots > tbody, .lots > tbody > tr, .lots > tbody > tr > td { display: block; }
  .lots > thead, .lots > colgroup { display: none; }
  .lots tbody.cgroup { border: 1px solid rgba(5, 19, 29, 0.16); border-radius: 10px; margin: 0 0 8px; overflow: hidden; background: var(--white); }
  .lots tr.lot-row, .lots tr.add-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr) auto; gap: 6px 8px; align-items: center; padding: 8px 10px; }
  .lots > tbody > tr > td { height: auto; border: 0 !important; }
  .cc-same { padding-left: 0; }
  .lots .cc-pic { width: 44px; height: 44px; }
  .lots .sw { margin: 8px; }
  .js .lots tr.add-alt:not(.is-shown) { display: none; }
  .lots tr + tr.lot-row, .lots tr + tr.add-row { border-top: 1px solid rgba(5, 19, 29, 0.1); }
  .lots > tbody > tr > td { padding: 0; font-size: 1rem; }
  .lots > tbody > tr.sub-row > td { padding: 10px; }
  .js .lots > tbody > tr.sub-row:not(.is-open) { display: none; }
  .lots td.c-color { grid-column: 1 / 4; }
  .lots td.c-cond { grid-column: 4; grid-row: 1; justify-self: end; text-align: right; }
  /* Field labels come from the markup (data-label), so they can be translated. */
  .lots tr.lot-row > td[data-label]::before, .lots tr.add-row > td[data-label]::before { content: attr(data-label); display: block; height: 18px; line-height: 18px; margin-bottom: 4px; font-size: 0.6875rem; font-weight: 700; color: var(--ink-soft); white-space: nowrap; }
  .more-btn { width: 44px; height: 44px; }
  .lots .in { height: 44px; font-size: 1rem; }
  .lots tr.is-focus { box-shadow: inset 4px 0 0 var(--blue); }
  .lots tr.is-focus > td:first-child { box-shadow: none; }
  .seg-cond span { height: 36px; line-height: 36px; padding: 0 10px; }
  .seg-mini button { height: 36px; line-height: 36px; padding: 0 12px; }
  .alt-link { min-height: 32px; }
  .pm-t { display: block; overflow-x: auto; }
  .pm-t .in { width: 3.75rem; }
  .pm-t select { min-width: 9.5rem; height: 44px; }
  .seg-view { display: flex; }
  .seg-view button { flex: 1 1 auto; min-width: 0; padding: 0 8px; font-size: 0.8125rem; }
  .how ol { display: block; }
  .how li { margin: 4px 0; }
  .how .link-btn { margin-left: 0; min-height: 32px; }
  .field-sm input { width: 100%; height: var(--field-h); min-height: var(--field-h); font-size: var(--field-font); border: var(--field-border); border-radius: var(--field-radius); }
  /* Phone order: the part, then the inventory, then Recently Sold. */
  .pd { gap: 16px; }
  .pd-side { display: contents; }
  .pd-id, .pd-market { margin: 0; }
  .pd-pic { max-width: 240px; margin: 0 auto; }
  .pd-id { order: 1; }
  .pd-main { order: 2; }
  .pd-market { order: 3; }
  .lots .sub-row > td { padding: 12px; border-left: 0; }
  .savebar { bottom: 0; border-radius: 12px 12px 0 0; margin: 12px -16px 0; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); }
  .savebar .btn { flex: 1; }
  .savebar-msg { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) { .chev { transition: none; } }

/* ----- Parts: the top band (Wei, 2026-11-20) -------------------------------------------------------
   No page title: two tabs, Browse and My Stock, with the search beside them. The page sits on the
   same gray as every other app page, with the panels in white. */
.app-body { background: var(--page); }
.parts-top { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 28px; margin: 0 0 1.1rem; }
.parts-top .view-tabs { display: flex; gap: 24px; margin: 0; border: 0; border-radius: 0; overflow: visible; background: none; }
.parts-top .view-tabs a { display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 8px 2px; border: 0; border-bottom: 4px solid transparent; font-family: var(--font-heading); font-weight: 800; font-size: 1.375rem; color: #55606B; white-space: nowrap; background: none; }
.parts-top .view-tabs a + a { border-left: 0; }
.parts-top .view-tabs a:hover { color: var(--ink); }
.parts-top .view-tabs a[aria-current="page"] { background: none; color: var(--ink); border-bottom-color: var(--red); }
.parts-top .view-tabs .n { display: flex; flex-direction: column; margin: 0; font-family: var(--font); font-weight: 600; font-size: 0.75rem; line-height: 1.25; color: var(--ink-soft); }
.parts-top .search-card { flex: 1 1 300px; max-width: 520px; min-width: 0; margin: 0 0 6px auto; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.parts-top .search-row { flex-direction: row; align-items: center; gap: 0.6rem; }
.parts-top .search-row .btn { flex: none; width: auto; }
@media (max-width: 760px) {
  .parts-top { gap: 6px 16px; margin-bottom: 0.9rem; }
  .parts-top .view-tabs { gap: 18px; }
  .parts-top .view-tabs a { font-size: 1.25rem; min-height: 48px; }
  .parts-top .search-card { flex-basis: 100%; max-width: none; margin: 0; padding: 0; }
  /* Phones: the first three menu items on one row; the rest are in the account menu. */
}

/* The narrowest phones (320px): three menu items still fit one row. */

/* ----- Part page on the gray page (Wei, 2026-11-21) --------------------------------------------------
   The colors table is a white panel like every other table on the site. Row pictures are shown
   as stored, on their white square: blending them into a colored row tinted the part itself,
   which Wei rejected the same day. The fix he wants is true transparent pictures (background
   removed, part colors untouched), which need loading to the site first. */
.lots-scroll { background: var(--white); }
.how { background: var(--white); }

/* Part page with a short list (My Stock with a few lots; Wei, 2026-11-21). The left column can
   only stay on screen while the right column is taller than it, and with a few lots the two were
   the same height, so the left column slid away as soon as the page scrolled. The right column
   is now a screen and a bit tall: the left column stays put until the footer comes up, the same
   as it does at the end of a long list of colors. The left column is only sticky above 960px. */
@media (min-width: 961px) {
  .pd-main { min-height: calc(100vh + 240px); min-height: calc(100dvh + 240px); }
}

/* Part page: the whole row is a target (21 Nov). The picture and the color's name are one
   button, so a click, a tap or Tab + Enter shows what that color sold for without going into
   a field. */
.cc-pick { width: 100%; margin: 0; padding: 0; border: 0; border-radius: 8px; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.cc-pick.cc-same { min-height: 38px; }
.cc-pick:hover .nm { text-decoration: underline; text-underline-offset: 3px; }
.cc-pick:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.lots tr.lot-row, .lots tr.add-row { cursor: pointer; }
.lots tr .in:not([readonly]) { cursor: text; }

/* Free plan: the same table, display only. Locked fields are gray, keep their size, and still
   take a click (it selects the row). The lock in the last column and the note above the table
   are the ways to upgrade. */
.lots tr.is-locked .in[readonly] { background: #F1F2F3; border-color: #C9CCCF; color: #4A5157; cursor: pointer; }
.lots tr.is-locked .in[readonly]::placeholder { color: #6B7278; }
.lots tr.is-locked .in[readonly]:focus-visible { outline: 2px solid var(--blue); outline-offset: 0; }
.up-link { color: #6B7278; text-decoration: none; }
.up-link:hover, .lots tr.is-focus .up-link { color: var(--ink); border-color: var(--black); }
.plan-note { justify-content: space-between; background: var(--white); }
.plan-note p { margin: 0; flex: 1 1 18rem; }
.plan-note .plan-up { flex: none; text-decoration: none; }
a.sp-use { display: inline-flex; align-items: center; text-decoration: none; }
@media (max-width: 760px) {
  .cc-pick.cc-same { min-height: 44px; }
  .plan-note .plan-up { width: 100%; text-align: center; justify-content: center; }
}

/* ----- Quantity as a change (Wei, 2026-11-22, mockup round 5b) ---------------------------------
   In Stock is text (what the marketplaces have confirmed); the box beside it takes the change
   (+20, -5) and shows the result; the real quantity field (the new total) is hidden with scripts
   on and comes back for "Set an Exact Count". A saved change waits as a badge until every
   marketplace confirms. */
.lots col.c-qty { width: 272px; }
.lots th.c-q, .lots td.c-q { text-align: right; }
.qd { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.qd-now { flex: none; min-width: 3.5rem; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.qd-now b { font-size: 1rem; font-weight: 700; }
.qd-now.none { color: var(--ink-soft); font-weight: 500; }
.qd-pend { display: inline-block; margin-left: 4px; padding: 1px 6px; border-radius: 999px; background: #FFF3C4; border: 1px solid #D9A400; color: #5C4300; font-size: 0.75rem; font-weight: 700; vertical-align: 1px; white-space: nowrap; }
.qd-pend.down { background: #FDE8E5; border-color: var(--red); color: #8A1206; }
.lots .qd .qd-delta, .lots .qd .in-qty { flex: none; width: 76px; text-align: right; }
.lots .qd .qd-delta.is-changed { border-color: var(--blue); background: #F2F7FF; font-weight: 700; }
.lots .qd .qd-delta[aria-invalid="true"] { border-color: var(--red); background: #FDF1EF; }
.js .qd .qd-total { display: none; }
.qd-res { flex: none; width: 112px; min-height: 1em; font-size: 0.8125rem; font-weight: 700; line-height: 1.25; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.qd-res.is-bad { color: #8A1206; }
.qd-st { font-weight: 600; }
.qd-st.is-waiting { color: #6B4E00; }
.qd-st.is-failed { color: #8A1206; }
.qd-st.is-synced { color: #17552D; }
.more-alt { display: none; }
.sync-note { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; padding: 12px 16px; border: 1px solid rgba(5, 19, 29, 0.22); border-radius: 12px; background: var(--white); font-size: 0.9375rem; }
.sync-note .dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: #D9A400; }
.sync-note.is-failed .dot { background: var(--red); }




/* Part numbers stay inside the Part column: long ones are smaller and wrap within the cell
   (Wei, 2026-11-22: "some of our part numbers are too long"). */
@media (min-width: 761px) {
  .grid col.c-part { width: 128px; }
  .grid td .no, .grid td .alt-id { display: block; max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
  .grid td .no.no-long { font-size: 0.75rem; letter-spacing: -0.03em; line-height: 1.2; }
  .grid td .alt-id.no-long { font-size: 0.625rem; }
}
/* Phones: the number line under the name ends in an ellipsis instead of running off the row. */
@media (max-width: 760px) {
  .m-no .no-long { font-size: 0.75rem; }
}
/* Search results on narrow desktops and iPads: the Name column keeps its room. Sets is
   dropped (the least needed when choosing a part) and the other columns tighten. */
@media (min-width: 761px) and (max-width: 1279px) {
  .grid:has(col.c-sets) col.c-thumb { width: 56px; }
  .grid:has(col.c-sets) col.c-part { width: 118px; }
  .grid:has(col.c-sets) col.c-cat { width: 104px; }
  .grid:has(col.c-sets) col.c-colors { width: 96px; }
  .grid:has(col.c-sets) col.c-sets { visibility: collapse; width: 0; }
  .grid:has(col.c-sets) col.c-stock { width: 124px; }
}

/* ----- Color row: link to the part-and-color page (Wei, 2026-11-22) ------------------------------- */
/* The name sits where it always did; the BL line (BL id · In 5 Sets) is pulled up under it. */
.cc-has-sub .cc-text { padding-bottom: 22px; }
.cc-sub { position: relative; display: flex; align-items: baseline; gap: 6px; margin: -20px 0 0 54px; min-height: 18px; line-height: 1.2; }
.cc-sub .sub { font-family: var(--font-mono); font-size: 0.6875rem; color: var(--ink-soft); }
.cc-sub .dot { color: var(--ink-soft); font-size: 0.75rem; }
.cc-sets { font-size: 0.75rem; font-weight: 700; color: var(--blue); text-underline-offset: 3px; white-space: nowrap; }
.cc-sets:hover { text-decoration: underline; }
.more-colors { margin: 10px 0 0; text-align: center; }
.more-colors .link-btn { min-height: 44px; padding: 0 12px; font-weight: 700; }
.view-all .more-colors { display: none; }

/* ----- Part and color page, set page (/parts/<no>/<color>, /sets/<no>) --------------------------- */
.pc { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 8px; }
.pc-hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; background: var(--white); border: 1px solid var(--edge); box-shadow: var(--shadow-soft); border-radius: var(--radius); padding: 20px; }
.pc-pic { display: grid; place-items: center; background: var(--white); border-radius: 10px; min-height: 200px; }
.pc-pic img { width: 100%; max-width: 320px; height: auto; object-fit: contain; }
.st-pic img { max-width: 480px; }
.pc-nopic { display: grid; justify-items: center; gap: 10px; color: var(--ink-soft); }
.pc-sw { width: 120px; height: 120px; }
.pc-title { font-size: 1.6rem; margin: 0 0 4px; overflow-wrap: anywhere; }
.pc-full { margin: 0 0 12px; color: var(--ink-soft); }
.pc-facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; padding: 0; list-style: none; }
.pc-facts li { padding: 4px 10px; border-radius: 999px; background: var(--white); border: 1px solid var(--edge); font-size: 0.8125rem; font-weight: 700; }
.pc-ids { display: grid; gap: 6px; margin: 0 0 14px; }
.pc-ids div { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 8px; }
.pc-ids dt { font-weight: 600; color: var(--ink-soft); }
.pc-ids dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.pc-stock { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--white); border: 1px solid var(--edge); }
.pc-stock a { font-weight: 700; white-space: nowrap; }
.st-actions { margin: 14px 0 0; }
.st-instr { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; max-width: 100%; white-space: normal; text-align: left; }
.out-icon { width: 16px; height: 16px; flex: none; }
.pc-sec { background: var(--white); border: 1px solid var(--edge); box-shadow: var(--shadow-soft); border-radius: var(--radius); padding: 18px 20px; min-width: 0; }
.pc-sec h2 { font-size: 1.25rem; margin: 0 0 12px; }
.pc-h3 { font-size: 1rem; margin: 18px 0 8px; }
.h-count { font-size: 0.875rem; font-weight: 600; color: var(--ink-soft); margin-left: 6px; }
.pc-table-wrap { overflow-x: auto; }
.pc-table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.pc-table th { text-align: left; font-size: 0.8125rem; color: var(--ink-soft); font-weight: 700; padding: 6px 10px; border-bottom: 1px solid var(--line); }
.pc-table td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.pc-table tbody tr:last-child td { border-bottom: 0; }
.pc-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pc-table a { font-weight: 700; }
.pc-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(180px, 100%), 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.pc-chip { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); text-decoration: none; }
.pc-chip img { width: 36px; height: 36px; object-fit: contain; flex: none; }
.pc-chip .sw { width: 22px; height: 22px; margin: 0 7px; }
.pc-chip > span { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.pc-chip .nm { font-weight: 700; font-size: 0.875rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-chip .sub { font-size: 0.75rem; color: var(--ink-soft); }
.pc-chip:hover { border-color: var(--blue); }
.pc-chip.is-here { border: 2px solid var(--blue); background: var(--off-white); }
.pc-more { margin-top: 10px; }
.pc-more summary { cursor: pointer; font-weight: 700; color: var(--blue); padding: 8px 0; }
.pc-more[open] summary { margin-bottom: 8px; }
/* Wide: the whole timeline. Phone: a strip of the whole timeline, then a close-up (no scrolling). */
.yc { display: block; width: 100%; height: auto; }
.yc-phone { display: none; }
.yc-strip { display: flex; align-items: center; gap: 8px; font-size: 0.75rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.yc-mini { flex: 1; height: 16px; min-width: 0; }
.yc-track { fill: var(--off-white); }
.yc-zoom-note { margin: 10px 0 2px; font-size: 0.75rem; font-weight: 700; color: var(--ink-soft); }
@media (max-width: 40rem) {
  .yc-wide { display: none; }
  .yc-phone { display: block; }
}
.yc-span { fill: #E3ECFA; }
.yc-grid { stroke: var(--line); stroke-width: 1; }
.yc-axis { stroke: var(--ink-soft); stroke-width: 1; }
.yc-bar { fill: var(--blue); }
.yc-y { fill: var(--ink-soft); font-size: 11px; text-anchor: middle; }
/* Minifigs: the second series, yellow with a Black edge like the USED tag (.ctag-used). */
.yc-fig { fill: var(--yellow); stroke: var(--black); stroke-width: 0.75; }
.yc-mini .yc-fig { stroke: none; }
.yc-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin: 0 0 12px; }
.yc-head h2 { margin: 0; }
.yc-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 0.8125rem; color: var(--ink); }
.yc-legend li { display: inline-flex; align-items: center; gap: 6px; }
.yc-key { display: inline-block; width: 12px; height: 12px; border-radius: 3px; box-sizing: border-box; }
.yc-key-set { background: var(--blue); }
.yc-key-fig { background: var(--yellow); border: 1px solid var(--black); }
/* In Minifigures: cards, 2 / 3 / 4 / 6 / 8 across (the set page's tile steps). */
.fg-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.fg-card { display: flex; flex-direction: column; gap: 4px; height: 100%; box-sizing: border-box; padding: 8px 8px 10px; border: 1px solid var(--edge); border-radius: 12px; background: var(--white); color: var(--ink); text-decoration: none; min-width: 0; }
.fg-card:hover { border-color: #A0A5A9; color: var(--ink); }
.fg-card:hover .fg-name { text-decoration: underline; text-underline-offset: 3px; }
/* The picture box stays square whatever the picture's shape (Wei, 2026-11-29: a few minifig
   thumbnails are tall, 61 by 96, and stretched their tile). The picture is placed inside it. */
.fg-pic { position: relative; display: grid; place-items: center; aspect-ratio: 1; margin-bottom: 2px; overflow: hidden; }
.fg-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.fg-pic .ph-wrap { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 8px; background: var(--off-white); }
.fg-pic .ph { width: 40%; height: 40%; color: #A0A5A9; }
.fg-name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; font-size: 0.875rem; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.fg-sub { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 6px; margin-top: auto; font-size: 0.75rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.fg-sub .mono { overflow-wrap: anywhere; }
.fg-year { font-weight: 700; color: var(--ink); }
.fg-more { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 14px 0 0; font-size: 0.875rem; }
.fg-more-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
.fg-from { margin: 0 0 10px; }
@media (min-width: 360px) { .fg-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 600px) { .fg-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; } }
@media (min-width: 900px) { .fg-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .fg-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); } }
.sp-table col.c-pic { width: 64px; }
.sp-table col.c-n { width: 96px; }
.sp-pic img, .sp-pic .ph-wrap { width: 48px; height: 48px; object-fit: contain; display: grid; place-items: center; }
.sp-pic .ph { width: 24px; height: 24px; color: var(--ink-soft); }
.sp-name { display: block; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
a.sp-name:hover { text-decoration: underline; text-underline-offset: 3px; }
.sp-color { display: flex; align-items: center; gap: 6px; margin-top: 2px; font-size: 0.8125rem; color: var(--ink-soft); }
.sp-have.is-ok { color: var(--green); font-weight: 700; }
.sp-have.is-some { font-weight: 700; }
@media (min-width: 48rem) {
  .pc-hero { grid-template-columns: minmax(220px, 360px) minmax(0, 1fr); align-items: start; padding: 24px; }
  .st .pc-hero { grid-template-columns: minmax(260px, 480px) minmax(0, 1fr); }
  .pc-title { font-size: 2rem; }
}
@media (max-width: 30rem) {
  .pc-hero, .pc-sec { padding: 14px; }
  .pc-ids div { grid-template-columns: 7rem minmax(0, 1fr); }
  .pc-table td, .pc-table th { padding: 8px 6px; }
  .sp-table col.c-pic { width: 52px; }
  .sp-table col.c-n { width: 64px; }
  .pc-chips { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .pc-chip { padding: 6px 8px; gap: 8px; }
}
.st-find .pc-title { margin-bottom: 12px; }
.st-search { display: flex; gap: 8px; max-width: 720px; }
.st-search .in { flex: 1; min-width: 0; min-height: 44px; text-align: left; }
.st-search .btn { min-height: 44px; }
.th-chips .pc-chip { padding: 8px 12px; }
.sets-index .parts-top { margin-bottom: 8px; }
@media (max-width: 760px) { .cc-sub { margin-left: 54px; } }

/* Part and color page: badges, write-up, the three buttons, related parts */
.pc-pic-col { display: grid; gap: 8px; align-content: start; }
.pc-pic-links { margin: 0; text-align: center; font-size: 0.875rem; font-weight: 700; }
/* Under a mold's photo: the renders are front views, the stud is not in them (pd-id and pc-pic-col). */
.pic-note { margin: 6px 0 0; font-size: 0.8125rem; line-height: 1.35; color: var(--ink-soft); text-align: center; overflow-wrap: anywhere; }
.pc-pic-col .pic-note { margin: 0; }
/* Two or more photos of the part in this color: the minifig page's strip (catalog.css
   .item-gallery) under the hero, the hero in its fixed square box (.item-photo-gallery). */
.pc-pic.item-photo-gallery img:not(.duplo-badge) { max-width: 320px; max-height: 320px; }
.pc-pic-col .item-gallery { justify-content: center; }
/* The part page's note follows the color in focus ("Shown: 3626c mold."): two lines kept for it, so nothing moves. */
#pic-note { min-height: calc(2 * 1.35em); }
.pc-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; padding: 0; list-style: none; }
.pc-badges li { padding: 4px 10px; border-radius: 999px; background: var(--white); border: 1px solid var(--edge); font-size: 0.8125rem; font-weight: 700; }
.pc-badges li.is-ok { background: #E7F4EA; border-color: #A9D5B4; color: #1D5E2E; }
.pc-about { margin: 0 0 16px; max-width: 70ch; line-height: 1.55; }
.pc-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 8px; }
.pc-act { min-height: 44px; display: inline-flex; align-items: center; }
.pc-act-form { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.pc-on { padding: 4px 4px 4px 12px; border: 1px solid var(--edge); border-radius: 12px; background: var(--white); }
.pc-on label { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.875rem; }
.pc-on .in { width: 72px; min-height: 40px; text-align: right; }
.pc-act.is-soon { opacity: 0.7; cursor: default; gap: 8px; }
.pc-actions-note { margin: 0 0 14px; font-size: 0.875rem; color: var(--ink-soft); }
.pc-related { display: grid; gap: 12px; margin: 0; }
.pc-related div { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 10px; }
.pc-related dt { font-weight: 700; }
.pc-related dd { margin: 0; }
.pc-related ul { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; padding: 0; list-style: none; }
.pc-related a { font-weight: 600; }
.pc-selling p { max-width: 70ch; }
.catalog-main { padding-top: 1.25rem; }
@media (max-width: 30rem) {
  .pc-related div { grid-template-columns: 1fr; gap: 4px; }
  .pc-actions .pc-act, .pc-actions .pc-act-form { flex: 1 1 100%; }
  .pc-actions .pc-act { justify-content: center; }
}

.sets-link { font-weight: 700; color: var(--blue); text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 4px; }
.sets-link:hover { text-decoration-style: solid; }

/* Sets on the part and color page: a list with pictures; many sets fold by year, newest first */
.ys { display: grid; gap: 8px; }
.ys-year { border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
.ys-year summary { display: flex; align-items: baseline; gap: 12px; min-height: 48px; padding: 12px 14px; cursor: pointer; list-style: none; }
.ys-year summary::-webkit-details-marker { display: none; }
.ys-year summary::before { content: ''; width: 8px; height: 8px; border-right: 2px solid var(--ink-soft); border-bottom: 2px solid var(--ink-soft); transform: rotate(-45deg); align-self: center; flex: none; }
.ys-year[open] summary::before { transform: rotate(45deg); }
.ys-y { font-weight: 800; font-size: 1.0625rem; font-variant-numeric: tabular-nums; }
.ys-count { color: var(--ink-soft); font-size: 0.875rem; font-weight: 600; }
.ys-year .ys-list { padding: 0 10px 10px; }
.ys-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.ys-link { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); text-decoration: none; background: var(--white); }
.ys-link:hover { border-color: var(--blue); }
.ys-link:hover .ys-name { text-decoration: underline; text-underline-offset: 3px; }
.ys-pic { width: 64px; height: 48px; flex: none; display: grid; place-items: center; background: var(--white); border-radius: 6px; overflow: hidden; }
.ys-pic img { width: 100%; height: 100%; object-fit: contain; }
.ys-pic .ph { width: 22px; height: 22px; color: var(--ink-soft); }
.ys-text { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.3; }
.ys-name { font-weight: 700; overflow-wrap: anywhere; }
.ys-sub { font-size: 0.8125rem; color: var(--ink-soft); }
.ys-qty { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--ink-soft); flex: none; }

/* Sets by Color (/parts/<no>/sets) */
.sc-pic { min-height: 160px; }
.sc-pic img { max-width: 220px; }
.sc-hero { align-items: center; }
@media (min-width: 48rem) { .sc-hero { grid-template-columns: minmax(160px, 260px) minmax(0, 1fr); } }
.sc-list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.sc-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) minmax(80px, 1.2fr) 6.5rem; align-items: center; gap: 14px; min-height: 56px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); text-decoration: none; }
.sc-row:hover { border-color: var(--blue); }
.sc-row:hover .sc-name { text-decoration: underline; text-underline-offset: 3px; }
.sc-mark { display: grid; place-items: center; width: 44px; height: 44px; }
.sc-mark img { width: 40px; height: 40px; object-fit: contain; }
.sc-mark .sw { width: 24px; height: 24px; }
.sc-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.sc-name { font-weight: 700; overflow-wrap: anywhere; }
.sc-sub { font-size: 0.75rem; color: var(--ink-soft); }
.sc-bar { width: 100%; height: 8px; }
.sc-bar-bg { fill: var(--off-white); }
.sc-bar-fg { fill: var(--blue); }
.sc-n { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 30rem) {
  .sc-row { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px; }
  .sc-bar { grid-column: 2 / -1; grid-row: 2; }
}

/* Size facts */
.pc-size { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 10px; margin: 0; }
.pc-size div { padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; }
.pc-size dt { font-weight: 700; margin-bottom: 4px; }
.pc-size dd { margin: 0; color: var(--ink-soft); }

/* Every Color of This Part: cards led by the part's picture (the v2 design) */
.cc-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.cc-card { display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); text-decoration: none; background: var(--white); }
.cc-card:hover { border-color: var(--blue); }
.cc-card.is-here { border: 2px solid var(--blue); padding: 9px; }
.cc-card-pic { display: grid; place-items: center; aspect-ratio: 1; margin-bottom: 6px; }
.cc-card-pic img { width: 100%; height: 100%; object-fit: contain; }
.cc-card-sw { width: 56%; height: 56%; }
.cc-card .nm { font-weight: 700; font-size: 0.875rem; line-height: 1.25; overflow-wrap: anywhere; }
.cc-card .sub { font-size: 0.75rem; color: var(--ink-soft); }
@media (max-width: 30rem) { .cc-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } .cc-card { padding: 8px; } }
.pc-swap { margin: 8px 0 0; padding: 12px 14px; border-radius: 10px; background: #FFF6D6; border: 1px solid #F0D98A; font-weight: 600; }
.pc-swap a { font-weight: 800; }

/* Set and minifig picture gallery (Wei, 2026-11-23). Phone first: swipe the strip; thumbnails under it. */
.gal { display: grid; gap: 10px; width: 100%; min-width: 0; }
.gal-track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 10px; background: var(--white); }
.gal-track::-webkit-scrollbar { display: none; }
.gal-track:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.gal-slide { margin: 0; display: grid; place-items: center; scroll-snap-align: start; min-height: 220px; padding: 8px; }
.gal-slide img { width: 100%; max-width: 480px; height: auto; max-height: 420px; object-fit: contain; }
.gal-thumbs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.gal-thumb { display: grid; place-items: center; width: 56px; height: 56px; border: 2px solid rgba(5, 19, 29, 0.15); border-radius: 8px; background: var(--white); overflow: hidden; }
.gal-thumb img { width: 100%; height: 100%; object-fit: contain; }
.gal-thumb[aria-current="true"] { border-color: var(--red); }
.gal-thumb:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
@media (min-width: 900px) { .gal-thumb { width: 64px; height: 64px; } }

/* Add rows (Wei, 2026-11-23): no "None" label above the field; the field fits its placeholder. */
.lots .qd-add .in-qty { width: 92px; }
/* A minifig page's photo strip (catalog.css .item-media) fills the picture column. */
.st-pic .item-media { width: 100%; }

/* ===== Set page (Wei, 2026-11-23, Soft Gray mockups; functions/_lib/set-page-views.js) =====
   White cards on the #F5F6F8 page, 1px #E3E5E7 edges, 16px radius, very soft shadow. Mobile first:
   one column up to 900px, then picture left (5fr) and facts right (7fr). */
.st2 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; min-width: 0; }
.st2 h2 { font-family: var(--font-heading); font-weight: 800; }
.st2-page .crumbs { padding: 4px 0 16px; }
.st2 .ic { width: 16px; height: 16px; flex: none; }
.st2 .btn, .dlg .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 10px; font: 600 15px/1 var(--font); text-decoration: none; border: 1px solid #A0A5A9; background: #FFFFFF; color: #05131D; cursor: pointer; }
.st2 .btn:hover, .dlg .btn:hover { background: #F4F5F7; color: #05131D; }
.st2 .btn[disabled] { cursor: default; opacity: 0.55; }
.st2 .btn-red, .dlg .btn-red { background: #C91A09; border-color: #C91A09; color: #FFFFFF; }
.st2 .btn-red:hover, .dlg .btn-red:hover { background: #A51507; color: #FFFFFF; }
.st2 .btn-blue-line { border-color: #0055BF; color: #0055BF; }
.dlg .btn-blue { background: #0055BF; border-color: #0055BF; color: #FFFFFF; }
.dlg .btn-blue:hover { background: #003F8F; color: #FFFFFF; }
.st2 .chip, .sp-chips .chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: #FFFFFF; border: 1px solid #E3E5E7; font-size: 13px; font-weight: 600; color: #05131D; text-decoration: none; }
.sp-chips .chip b { font-weight: 700; color: #575857; }
.sp-chips .chip-on { background: #05131D; border-color: #05131D; color: #FFFFFF; }
.sp-chips .chip-on b { color: #CFD3D6; }
.have { font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 999px; flex: none; white-space: nowrap; }
.have-ok { background: #E3F1E8; color: #1A5C31; }
.have-need { background: #FDECD9; color: #8A4500; }

.st-top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: start; }
.st-media { display: grid; gap: 12px; min-width: 0; }
.st-photo { background: #FFFFFF; border: 1px solid #E3E5E7; border-radius: 16px; padding: 20px; box-shadow: var(--shadow-soft); }
.st-photo img { display: block; width: 100%; height: clamp(220px, 50vw, 440px); object-fit: contain; }
.st-media .gal { display: grid; gap: 12px; }
.st-media .gal-slide img { height: clamp(220px, 50vw, 440px); }
.st-thumbs { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 8px; }
.st-thumbs .gal-thumb { width: 84px; height: 84px; aspect-ratio: 1 / 1; border: 1px solid #E3E5E7; border-radius: 10px; background: #FFFFFF; display: flex; align-items: center; justify-content: center; }
.st-thumbs .gal-thumb[aria-current="true"] { border: 2px solid #05131D; }
.st-thumbs img { max-width: 88%; max-height: 88%; width: auto; height: auto; object-fit: contain; }
.st-nopic { display: grid; place-items: center; gap: 8px; height: 220px; color: #575857; font-size: 13px; font-weight: 600; }
.st-nopic .ph { width: 40px; height: 40px; }
.st-info { display: grid; gap: 22px; min-width: 0; }
.st-title { margin: 0; font-family: var(--font-heading); font-weight: 800; font-size: clamp(28px, 6vw, 40px); line-height: 1.1; letter-spacing: -0.01em; }
.st-sub { margin: 8px 0 0; font-size: 16px; color: #575857; }
.st-about { margin: 10px 0 0; font-size: 15px; color: #3f4142; }
.st-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.st-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.st-soon { margin: -12px 0 0; font-size: 13px; color: #575857; }
.st-box { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 14px 16px; border: 1px solid #E3E5E7; border-radius: 12px; background: #FFFFFF; }
.st-invite > div { flex: 1 1 260px; }
.st-box-title { margin: 0; font-size: 15px; font-weight: 700; }
.st-box-text { margin: 4px 0 0; font-size: 14px; color: #575857; }
.st-prog { display: grid; gap: 8px; }
.st-prog-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; font-size: 14px; }
.st-bar { display: block; width: 100%; height: 10px; }
.st-prog-bot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; font-size: 14px; color: #575857; }
/* Under the photos (signed in): the button spans the narrow column; phones leave the card out
   (Wei, 2026-12-01). */
.st-media .st-prog .btn { width: 100%; justify-content: center; }
@media (max-width: 759px) { .st-media .st-prog { display: none; } }
.st-miss { color: #8A4500; }
.st-done { color: #1A5C31; font-weight: 600; }
.cm { display: grid; gap: 8px; }
.cm-title { margin: 0; font-size: 13px; font-weight: 700; color: #575857; }
.cm-bar { display: block; width: 100%; height: 12px; border-radius: 6px; overflow: hidden; }
.cm-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: #05131D; }
.cm-legend li { display: inline-flex; align-items: center; gap: 6px; }
.cm-legend b { font-weight: 500; color: #575857; }
.cm-dot { display: inline-flex; width: 11px; height: 11px; }
.cm-dot svg { width: 11px; height: 11px; }
.cm-dot-rest { border-radius: 50%; border: 1px solid #C9CDD1; background: #F5F6F8; }
.st-ids { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; font-size: 14px; color: #575857; }
.st-ids b { color: #05131D; }
.st-ids a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.st-ids .out-icon { width: 14px; height: 14px; }
.buy { padding: 16px; border: 1px solid #E3E5E7; border-radius: 12px; background: #FFFFFF; }
.buy-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; margin: 0 0 12px; }
.buy-head h2 { margin: 0; font-size: 17px; }
.buy-note { font-size: 12px; color: #575857; }
.buy-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.buy-list a { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 40px; padding: 0 16px; border: 1px solid #A0A5A9; border-radius: 10px; color: #05131D; text-decoration: none; font-weight: 600; font-size: 15px; }
.buy-list a:hover { background: #F4F5F7; }
.buy-cta { display: inline-flex; align-items: center; gap: 6px; color: #0055BF; white-space: nowrap; flex-shrink: 0; }
.buy-cta .out-icon { width: 14px; height: 14px; }
.buy-disclosure { display: block; margin: 10px 0 0; text-align: center; overflow-wrap: anywhere; }

.figs h2, .rel h2, .sp-head h2 { margin: 0; font-size: clamp(22px, 4.5vw, 28px); }
.figs { display: grid; gap: 16px; }
.h-count { font-family: var(--font); font-size: 15px; font-weight: 600; color: #575857; margin-left: 8px; }
.fig-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.fig { display: flex; flex-direction: column; gap: 10px; padding: 12px; border: 1px solid #E3E5E7; border-radius: 14px; background: #FFFFFF; box-shadow: var(--shadow-soft); min-width: 0; }
/* White behind minifig pictures (Wei, 2026-11-29): the photos have white backgrounds, so a gray
   box showed as bands beside them, wider or narrower with the screen. */
.fig-pic { position: relative; height: clamp(140px, 30vw, 200px); border-radius: 10px; background: var(--white); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.fig-pic img { max-width: 100%; max-height: 100%; object-fit: contain; }
.fig-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; width: 100%; height: 100%; }
.fig-pair img { width: 100%; height: 100%; object-fit: contain; }
.fig-ph { width: 64px; height: 96px; fill: #D9DCDF; }
.fig-soon { position: absolute; bottom: 10px; left: 10px; font-size: 11px; font-weight: 700; color: #575857; background: #FFFFFF; border: 1px solid #E3E5E7; padding: 3px 8px; border-radius: 999px; }
.fig-head { display: flex; align-items: flex-start; gap: 8px; }
.fig-head > div { flex: 1; min-width: 0; }
.fig-name { margin: 0; font-size: 16px; font-weight: 700; overflow-wrap: anywhere; }
.fig-no { margin: 2px 0 0; font-size: 13px; color: #575857; }
.fig-btn { min-height: 40px !important; font-size: 14px !important; }

.ad { display: grid; gap: 6px; width: 100%; max-width: 970px; justify-self: center; }
.ad-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 12px; }
.ad-label { font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #575857; }
.ad-head a { font-weight: 700; }
.ad-box { height: 90px; border-radius: 6px; border: 1px dashed #A0A5A9; background: repeating-linear-gradient(135deg, #F5F6F8 0 10px, #ECEEF0 10px 20px); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; color: #575857; text-align: center; padding: 0 8px; }

.sp-card { display: grid; gap: 16px; min-width: 0; background: #FFFFFF; border: 1px solid #E3E5E7; border-radius: 16px; padding: 18px 14px; box-shadow: var(--shadow-soft); }
.sp-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 28px; border-bottom: 1px solid #EEEEEE; }
.sp-head h2 { padding-bottom: 12px; }
.sp-tabs { display: flex; gap: 4px; font-size: 15px; font-weight: 600; }
.sp-tabs a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; color: #575857; text-decoration: none; border-bottom: 3px solid transparent; }
.sp-tabs a[aria-current="page"] { color: #05131D; border-bottom-color: #C91A09; }
.sp-tabs a span { color: #575857; }
.sp-get { margin: 0 0 10px auto; min-height: 40px !important; font-size: 14px !important; }
/* Table / Grid sits beside Get These Parts at the top of the card (Wei, 2026-12-01). */
.sp-head-end { display: flex; align-items: center; gap: 10px; margin: 0 0 10px auto; }
.sp-head-end .sp-get { margin: 0; }
.sp-head-end .seg { margin: 0; }
.sp-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.sp-find { display: flex; align-items: center; gap: 8px; flex: 1 1 260px; min-width: 0; max-width: 100%; box-sizing: border-box; min-height: var(--field-h); padding: 0 12px; border: var(--field-border); border-radius: var(--field-radius); }
.sp-find input { border: 0; outline: 0; flex: 1; min-width: 0; font: inherit; font-size: 16px; background: transparent; }
.sp-find:focus-within { outline: 2px solid var(--blue); outline-offset: 1px; }
.sp-find input:focus-visible { outline: none; }
.sp-sel { display: inline-flex; align-items: center; gap: 8px; min-height: var(--field-h); padding: 0 12px; border: var(--field-border); border-radius: var(--field-radius); font-size: 14px; font-weight: 600; max-width: 100%; min-width: 0; box-sizing: border-box; }
.sp-sel select { border: 0; font: inherit; font-weight: 600; background: transparent; width: auto; min-width: 0; max-width: min(15rem, 100%); flex: 1 1 auto; min-height: 40px; text-overflow: ellipsis; }
.sp-check input { width: 18px; height: 18px; }
.seg { display: inline-flex; border: 1px solid #A0A5A9; border-radius: 10px; overflow: hidden; }
.seg a { display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 0 14px; font-size: 14px; font-weight: 600; color: #05131D; text-decoration: none; }
.seg a:hover { background: #F4F5F7; color: #05131D; }
.seg .on, .seg .on:hover { background: #05131D; color: #FFFFFF; }
.sp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sp-chips .chip { min-height: 32px; }
.sp-none { margin: 0; color: #575857; }
.spg { display: block; margin: 0 0 10px; }
/* The group label is a full-width bar above its parts, in the Parts search header's tan
   (#F3F2EE, Wei 2026-11-23); the rows run the full width under it. */
.spg summary { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; background: #F3F2EE; cursor: pointer; list-style: none; }
.spg summary::-webkit-details-marker { display: none; }
.spg summary::before { content: ""; width: 8px; height: 8px; border-right: 2px solid #05131D; border-bottom: 2px solid #05131D; transform: rotate(-45deg); margin: 0 6px 0 4px; transition: transform 0.15s; flex: none; }
.spg[open] summary::before { transform: rotate(45deg); }
.spg summary:hover { background: #ECEAE4; }
.spg-name { font-family: var(--font-heading); font-weight: 800; font-size: 19px; }
.spg-meta { font-size: 14px; font-weight: 600; color: #575857; }
.spg-rows { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 28px; padding: 4px 0 12px; }
.sr { display: flex; align-items: center; gap: 12px; padding: 6px 10px; min-height: 56px; box-sizing: border-box; border-bottom: 1px solid #EEEEEE; text-decoration: none; color: #05131D; min-width: 0; }
a.sr:hover { background: #F4F5F7; color: #05131D; }
.sr img, .sr .sp-ph { width: 44px; height: 44px; object-fit: contain; flex: none; }
.sp-ph { display: inline-flex; align-items: center; justify-content: center; color: #A0A5A9; }
.sp-ph .ph { width: 22px; height: 22px; }
.sr-t { min-width: 0; flex: 1; }
.sr-n { display: block; font-size: 14px; font-weight: 600; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-c { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: #575857; margin-top: 3px; }
.sr-q { margin-left: auto; font-weight: 700; font-size: 15px; flex: none; }
.spg-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 12px 0 16px; }
.stile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 8px 12px; border: 1px solid #EEEEEE; border-radius: 12px; text-decoration: none; color: #05131D; background: #FFFFFF; min-width: 0; }
a.stile:hover { border-color: #A0A5A9; color: #05131D; }
.stile img, .stile .sp-ph { width: 100%; height: 104px; object-fit: contain; }
.tq { font-size: 18px; font-weight: 700; }
.tn { font-size: 12.5px; color: #575857; display: flex; align-items: center; gap: 5px; }
.tile-have { position: absolute; top: 90px; right: 8px; z-index: 2; }
.sp-flat .spg-rows, .sp-flat .spg-tiles { padding-top: 0; }
[data-js][hidden] { display: none !important; }

.rel { display: grid; gap: 16px; }
.rel-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 16px; }
.rel-head a { font-weight: 700; }
.rel-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.rel-card { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 14px; border: 1px solid #E3E5E7; border-radius: 14px; background: #FFFFFF; box-shadow: var(--shadow-soft); color: #05131D; text-decoration: none; }
.rel-card:hover { border-color: #A0A5A9; color: #05131D; }
.rel-pic { display: flex; align-items: center; justify-content: center; height: clamp(110px, 24vw, 190px); color: #A0A5A9; }
.rel-pic img { max-width: 100%; max-height: 100%; object-fit: contain; }
.rel-pic .ph { width: 36px; height: 36px; }
.rel-name { font-size: 16px; font-weight: 700; line-height: 1.25; }
.rel-sub { font-size: 13px; color: #575857; }

/* The dialogs: native popovers, so they open and close with no script. */
.dlg { width: min(720px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); margin: auto; padding: 0; border: 0; border-radius: 16px; background: #FFFFFF; color: #05131D; box-shadow: 0 24px 60px rgba(5, 19, 29, 0.3); overflow: auto; }
.dlg-sm { width: min(620px, calc(100vw - 24px)); }
.dlg::backdrop { background: rgba(5, 19, 29, 0.55); }
.dlg-in { position: relative; display: grid; gap: 16px; padding: 28px 20px 24px; }
.dlg h2 { margin: 0; padding-right: 48px; font-family: var(--font-heading); font-weight: 800; font-size: clamp(20px, 5vw, 24px); }
.dlg-x { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 10px; background: none; color: #05131D; cursor: pointer; }
.dlg-x:hover { background: #F4F5F7; }
.dlg-x .ic { width: 20px; height: 20px; }
.dlg-lead { margin: 0; font-size: 15px; color: #575857; }
.dlg fieldset { margin: 0; padding: 0; border: 0; display: grid; gap: 8px; }
.dlg legend { padding: 0; margin: 0 0 8px; font-size: 14px; font-weight: 700; }
.dlg .opts { display: flex; flex-wrap: wrap; gap: 8px; }
.dlg .opt { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid #A0A5A9; border-radius: 10px; font-size: 15px; font-weight: 600; cursor: pointer; }
.dlg .opt:has(input:checked) { border-color: #05131D; box-shadow: inset 0 0 0 1px #05131D; }
.dlg .opt:has(input:disabled) { opacity: 0.6; cursor: not-allowed; }
.dlg .opt small { font-weight: 500; color: #575857; }
.dlg .opt input { width: 18px; height: 18px; margin: 0; accent-color: #05131D; }
.dlg .opt-check { justify-self: start; }
.dlg-sum { display: grid; gap: 10px; padding: 14px 16px; border: 1px solid #E3E5E7; border-radius: 12px; background: #F5F6F8; }
.dlg-sum p { margin: 0; font-size: 14px; color: #575857; }
.dlg-sum b { color: #05131D; }
.dlg-btns { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.dlg-unmapped { font-size: 13px; color: #8A4500; }
.dlg-unmapped ul { margin: 6px 0 0; padding-left: 18px; max-height: 9rem; overflow: auto; color: #05131D; }
.dlg-ok { color: #1A5C31 !important; font-weight: 600; }
.dlg-help { margin: 0; font-size: 13px; color: #575857; }
.inv-steps { margin: 0; padding-left: 22px; display: grid; gap: 4px; font-size: 15px; }
.inv-all { margin: 0; padding-top: 14px; border-top: 1px solid #EEEEEE; font-size: 14px; color: #575857; }
.link-button { border: 0; background: none; padding: 0; font: inherit; color: #0055BF; text-decoration: underline; cursor: pointer; min-height: 24px; }

@media (min-width: 600px) {
  .buy-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spg-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .rel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sp-card { padding: 24px 28px; }
  .dlg-in { padding: 32px 32px 28px; }
}
@media (min-width: 760px) {
  .spg-rows { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fig-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
  .fig { padding: 16px; }
  .rel-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
}
@media (min-width: 900px) {
  .st-top { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; }
  .st-info { padding-top: 8px; }
  .spg-tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .spg-rows { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .spg-tiles { grid-template-columns: repeat(8, minmax(0, 1fr)); }
}
.sp-card [hidden] { display: none !important; }
/* Tablet widths: the results table can be wider than the page; it scrolls inside its panel
   instead of pushing the whole page sideways (Wei's mobile-first rule: no page overflow). */
@media (min-width: 761px) and (max-width: 1100px) { .results-panel { overflow-x: auto; } }
/* Set page grids get one shrinkable column, so no child's natural width can push the card
   past the screen at 320px (review, 2026-11-23). */
.sp-card, .figs, .rel, .st-info, .st-media, .cm { grid-template-columns: minmax(0, 1fr); }
.sp-find input { width: 100%; }

/* ----- Sets year picker (Wei, 2026-11-24, PC-1 to PC-3) ----- */
.yp { position: relative; }
.yp-controls { display: flex; gap: 10px; align-items: stretch; margin: 0 0 8px; }
.yp-pick, .yp-sort { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 16px; border-radius: 12px; font: inherit; color: var(--ink); background: var(--white); cursor: pointer; }
.yp-pick { flex: 1; max-width: 360px; border: 2px solid var(--black, #05131D); }
.yp-sort { border: 1px solid var(--edge, #DCDFE2); font-weight: 700; }
.yp-pick-y { font-weight: 800; font-size: 1.125rem; font-variant-numeric: tabular-nums; }
.yp-pick-n { color: var(--ink-soft); font-weight: 600; margin-left: auto; font-size: 0.9375rem; }
.yp-caret { width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 8px solid currentColor; flex: none; }
.yp-pick:focus-visible, .yp-sort:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.yp-status { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; margin: 0 0 10px; color: var(--ink-soft); font-weight: 600; font-size: 0.9375rem; }
.yp-jump { font-weight: 700; color: var(--blue); }
.yp-more, .yp-end { margin: 12px 0 0; text-align: center; }
.yp-more-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--edge, #DCDFE2); border-radius: 10px; font-weight: 700; color: var(--ink); text-decoration: none; background: var(--white); }
.yp-loading { color: var(--ink-soft); font-weight: 700; text-align: center; margin: 10px 0; }
.yp-skel { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 8px 10px; border-bottom: 1px solid var(--line); list-style: none; }
.yp-skel span { display: block; background: #E9EBEE; border-radius: 6px; }
.yp-skel .s-pic { width: 64px; height: 48px; }
.yp-skel .s-text { flex: 1; display: grid; gap: 8px; }
.yp-skel .s-a { height: 14px; width: 70%; }
.yp-skel .s-b { height: 10px; width: 40%; }
.yp-top { position: sticky; bottom: 16px; float: right; margin: 12px 0 0; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--black, #05131D); color: #fff; font-weight: 800; text-decoration: none; box-shadow: 0 6px 18px rgb(5 19 29 / 0.25); z-index: 2; }
.yp-top[hidden] { display: none; }
.yp-menu { margin: 0; padding: 6px; border: 1px solid var(--edge, #DCDFE2); border-radius: 12px; background: var(--white); box-shadow: 0 10px 30px rgb(5 19 29 / 0.18); min-width: 220px; position: fixed; inset: auto 16px 16px auto; }
.yp-menu a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 600; }
.yp-menu a[aria-current="true"] { background: #F5F6F8; font-weight: 800; }
.yp-sheet { margin: 0; padding: 0; border: 0; width: 100%; max-width: 100%; max-height: 80vh; inset: auto 0 0 0; border-radius: 20px 20px 0 0; background: var(--white); box-shadow: 0 -10px 40px rgb(5 19 29 / 0.25); overflow: auto; overscroll-behavior: contain; }
.yp-sheet::backdrop { background: rgb(5 19 29 / 0.45); }
.yp-sheet-head { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; padding: 22px 20px 12px; background: var(--white); border-bottom: 1px solid var(--line); }
.yp-sheet-head::before { content: ''; position: absolute; top: 8px; left: 50%; width: 44px; height: 5px; margin-left: -22px; border-radius: 3px; background: #CDD1D6; }
.yp-sheet-head h3 { margin: 0; font-size: 1.25rem; }
.yp-close { min-height: 44px; padding: 0 12px; border: 0; background: none; font: inherit; font-weight: 700; color: var(--blue); cursor: pointer; }
.yp-years { margin: 0; padding: 0; list-style: none; }
.yp-row { display: grid; grid-template-columns: 5.5rem 1fr 5.5rem; align-items: center; gap: 14px; min-height: 52px; padding: 6px 20px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.yp-row.is-on { background: #F5F6F8; box-shadow: inset 4px 0 0 var(--black, #05131D); }
.yp-y { font-weight: 800; font-size: 1.0625rem; font-variant-numeric: tabular-nums; }
.yp-n { text-align: right; color: var(--ink-soft); font-weight: 600; font-variant-numeric: tabular-nums; }
.yp-bar { display: block; height: 10px; border-radius: 5px; background: #EEF0F2; overflow: hidden; }
.yp-fill { display: block; height: 100%; border-radius: 5px; background: #0055BF; }
.yp-bar.is-all .yp-fill { background: #05131D; }
.yp-fill.w-2 { width: 2%; }
.yp-fill.w-4 { width: 4%; }
.yp-fill.w-6 { width: 6%; }
.yp-fill.w-8 { width: 8%; }
.yp-fill.w-10 { width: 10%; }
.yp-fill.w-12 { width: 12%; }
.yp-fill.w-14 { width: 14%; }
.yp-fill.w-16 { width: 16%; }
.yp-fill.w-18 { width: 18%; }
.yp-fill.w-20 { width: 20%; }
.yp-fill.w-22 { width: 22%; }
.yp-fill.w-24 { width: 24%; }
.yp-fill.w-26 { width: 26%; }
.yp-fill.w-28 { width: 28%; }
.yp-fill.w-30 { width: 30%; }
.yp-fill.w-32 { width: 32%; }
.yp-fill.w-34 { width: 34%; }
.yp-fill.w-36 { width: 36%; }
.yp-fill.w-38 { width: 38%; }
.yp-fill.w-40 { width: 40%; }
.yp-fill.w-42 { width: 42%; }
.yp-fill.w-44 { width: 44%; }
.yp-fill.w-46 { width: 46%; }
.yp-fill.w-48 { width: 48%; }
.yp-fill.w-50 { width: 50%; }
.yp-fill.w-52 { width: 52%; }
.yp-fill.w-54 { width: 54%; }
.yp-fill.w-56 { width: 56%; }
.yp-fill.w-58 { width: 58%; }
.yp-fill.w-60 { width: 60%; }
.yp-fill.w-62 { width: 62%; }
.yp-fill.w-64 { width: 64%; }
.yp-fill.w-66 { width: 66%; }
.yp-fill.w-68 { width: 68%; }
.yp-fill.w-70 { width: 70%; }
.yp-fill.w-72 { width: 72%; }
.yp-fill.w-74 { width: 74%; }
.yp-fill.w-76 { width: 76%; }
.yp-fill.w-78 { width: 78%; }
.yp-fill.w-80 { width: 80%; }
.yp-fill.w-82 { width: 82%; }
.yp-fill.w-84 { width: 84%; }
.yp-fill.w-86 { width: 86%; }
.yp-fill.w-88 { width: 88%; }
.yp-fill.w-90 { width: 90%; }
.yp-fill.w-92 { width: 92%; }
.yp-fill.w-94 { width: 94%; }
.yp-fill.w-96 { width: 96%; }
.yp-fill.w-98 { width: 98%; }
.yp-fill.w-100 { width: 100%; }
@media (min-width: 761px) {
  .yp-sheet { inset: 0; margin: auto; width: min(520px, 92vw); max-height: 75vh; border-radius: 16px; }
  .yp-sheet-head::before { display: none; }
}
.yp-pick-y, .yp-pick-n, .yp-sort { white-space: nowrap; }
.yp .ys-list { gap: 0; }
.yp .ys-link { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 10px 4px; }
.yp .ys-item:last-child .ys-link { border-bottom: 0; }
@media (min-width: 761px) { .yp .ys-list { grid-template-columns: repeat(auto-fill, minmax(min(420px, 100%), 1fr)); column-gap: 24px; } }
.ys-yhead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0; padding: 18px 4px 8px; border-bottom: 2px solid var(--black, #05131D); list-style: none; grid-column: 1 / -1; }
.ys-yhead:first-child { padding-top: 4px; }
.ys-yh-y { font-weight: 800; font-size: 1.125rem; font-variant-numeric: tabular-nums; }
.ys-yh-n { color: var(--ink-soft); font-weight: 600; font-size: 0.875rem; }

/* Scrolled into the colors (parts-detail.js): the part card drops its text block, keeping the
   picture and name at full size (Wei, 2026-11-24). */
.pd-side.is-scrolled .pd-full, .pd-side.is-scrolled .pd-ids { display: none; }

/* Marketplace prices under each lot (0427, Wei 2026-11-25): what each marketplace gets and why,
   always visible, with Change opening the Marketplace Prices panel. Phones: a full-width line
   inside the lot card, wrapping between marketplaces. */
.lots tr.mp-row > td { height: auto; padding: 0 10px 10px 72px; border-top: 0; font-size: 0.8125rem; color: var(--ink); }
.mp-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.mp-items { display: flex; flex-wrap: wrap; gap: 2px 0; min-width: 0; }
.mp-item { white-space: nowrap; }
.mp-item b { font-weight: 700; }
.mp-why { color: var(--ink-soft); white-space: normal; }
.mp-item[hidden], .lots tr.mp-row[hidden] { display: none !important; }
/* The dot between marketplaces, only between the ones shown. */
.mp-item:not([hidden]) ~ .mp-item:not([hidden])::before { content: "·"; padding: 0 8px; color: var(--ink-soft); }
.mp-change { min-height: 32px; font-size: 0.8125rem; text-decoration: underline; }
@media (max-width: 760px) {
  .lots > tbody > tr.mp-row { display: block; padding: 0 10px 10px; }
  .lots > tbody > tr.mp-row > td { padding: 0; font-size: 0.875rem; }
  .mp-item { white-space: normal; }
  .mp-change { min-height: 44px; min-width: 44px; }
}
@media (max-width: 760px) {
  .mp-item:not([hidden]) ~ .mp-item:not([hidden])::before { content: none; }
  .mp-items { flex-direction: column; }
}
/* Price Override (the first column of the panel under a lot, Wei 2026-11-29): one block per
   marketplace at every width: the name, the choice, then Override % and Fixed Price side by
   side, labeled from the markup (data-label) so the words can be translated. */
.panel[data-section="markets"] .pm-t, .panel[data-section="markets"] .pm-t tbody, .panel[data-section="markets"] .pm-t th, .panel[data-section="markets"] .pm-t td { display: block; overflow: visible; }
.panel[data-section="markets"] .pm-t { width: 100%; }
.panel[data-section="markets"] .pm-t tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px 10px; padding: 10px 0; border-top: 1px solid rgba(5, 19, 29, 0.12); }
.panel[data-section="markets"] .pm-t th, .panel[data-section="markets"] .pm-t td { padding: 0; border: 0; height: auto; text-align: left; }
.panel[data-section="markets"] .pm-t tr[data-cc] > th, .panel[data-section="markets"] .pm-t tr[data-cc] > td:nth-child(2) { grid-column: 1 / -1; }
.panel[data-section="markets"] .pm-t tr.is-base > td { text-align: right; font-weight: 700; }
.panel[data-section="markets"] .pm-t select, .panel[data-section="markets"] .pm-t .in { width: 100%; min-width: 0; }
.panel[data-section="markets"] .pm-t .money, .panel[data-section="markets"] .pm-t .pct { display: flex; align-items: center; gap: 4px; }
.panel[data-section="markets"] .pm-t tr[data-cc] > td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 3px; font-size: 0.6875rem; font-weight: 700; color: var(--ink-soft); }
.panel[data-section="markets"] .pm-t tr.is-fs > td { grid-column: 1 / -1; }

/* The Duplo logo over Duplo pictures (parts-render.js duploBadge), top left. img.duplo-badge
   outranks the containers' own img rules (.pd-pic img, .pic-link img). */
.pd-pic, .pic-link { position: relative; }
.sp-pic { position: relative; display: inline-flex; flex: none; }
.gal-slide, .st-photo, .rel-pic, .pc-pic { position: relative; }
.stile .sp-pic { width: 100%; justify-content: center; }
.pd-pic img.duplo-badge, .pic-link img.duplo-badge, .sp-pic img.duplo-badge, .gal-slide img.duplo-badge, .st-photo img.duplo-badge, .rel-pic img.duplo-badge, .pc-pic img.duplo-badge { position: absolute; top: 8px; left: 8px; z-index: 1; flex: none; width: 22%; max-width: 76px; min-width: 18px; height: auto; max-height: none; min-height: 0; object-fit: contain; pointer-events: none; }
.pic-link img.duplo-badge, .sr .sp-pic img.duplo-badge { top: 1px; left: 1px; width: 42%; }
/* Grid tiles: top left like every other picture; the Need / Have pill sits bottom right (.tile-have). */
.stile .sp-pic img.duplo-badge { top: 0; left: 0; width: 30%; }
.gal-slide img.duplo-badge, .st-photo img.duplo-badge { top: 14px; left: 14px; width: 18%; max-width: 96px; }
/* The track's 20px top padding is not on the left (slides snap to the card's edge): 34px left matches the top. */
.gal-slide img.duplo-badge { left: 34px; }

/* Admin only: Make Main Photo on the set gallery (functions/admin/catalog-photo.js). */
.gal-main { position: absolute; left: 34px; bottom: 14px; z-index: 2; margin: 0; }
.gal-main .btn { min-height: 36px; padding: 6px 12px; font-size: 0.875rem; background: var(--white); }

/* For Sale Now (parts-detail.js renderStock), above the sold prices. */
.fs .sp-label { margin: 0 0 4px; }
.fs-none { margin: 0; font-size: 0.8125rem; color: var(--ink-soft); }
.fs-gap { margin: 8px 0 0; padding: 8px 10px; border-radius: 8px; background: #FFF7E6; font-size: 0.78rem; line-height: 1.35; }

/* The header over the list of recent sales (Wei, 2026-11-27). */
.sales-title { margin: 0 0 2px; }
.sales-title[hidden] { display: none; }
/* Activity and Recently Sold cards: the tables sit flush inside the card's padding. */
.mp-card .sales { margin: 0; }
.mp-card .sales.recent th:first-child { padding-top: 0; }
.mp-card .fnote { margin: 8px 0 0; }
/* The Activity card's title reads like the other cards' (FOR SALE NOW, RECENTLY SOLD). */
.mp-card .sales.recent thead th:first-child { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); }
/* A color with no picture: its dot takes exactly the picture's box (52px, 44px on phones), so the
   dot and the name line up with the rows that have a picture (Wei, 2026-11-27). */
.lots .cc .sw { box-sizing: border-box; }
/* Activity: room between the Sales and Pieces numbers so they don't read as one (Wei, 2026-11-27). */
.sales.recent td.r + td.r, .sales.recent th.r + th.r { padding-left: 16px; }
/* Activity labels are short (Past 7 Days, Past 30 Days, Prev. Month) so a popular part's
   four- and five-digit counts fit beside them (Wei, 2026-11-27). */
.sales.recent th[scope="row"] { white-space: nowrap; padding-right: 8px; }
.sales.recent td.num { white-space: nowrap; }
/* Part-in-a-color page: In My Collection / On My Want List boxes. One 40px line: the label sits
   centered (the site-wide label margin is dropped), and the number box, Update and Remove match. */
.pc-on { padding: 6px 8px 6px 14px; gap: 10px; }
.pc-on label { margin: 0; }
.pc-on .in { height: 40px; min-height: 40px; box-sizing: border-box; padding-top: 0; padding-bottom: 0; }
.pc-on .btn-small { height: 40px; min-height: 40px; padding-top: 0; padding-bottom: 0; }
.pc-on .link-btn { min-height: 40px; padding: 0 2px; }
.pc-on label span { white-space: nowrap; }
@media (max-width: 560px) {
  /* Phones: each box spans the row on two lines: the label and number, then Update and Remove. */
  .pc-actions .pc-act-form.pc-on { width: 100%; box-sizing: border-box; flex-wrap: wrap; padding: 8px 12px; gap: 8px 12px; }
  .pc-on label { flex: 1 1 100%; justify-content: space-between; }
  .pc-on .in { width: 72px; }
}

/* ----- Lot rows and the panel under them (Wei, 2026-11-29) -----------------------------------
   In Stock is its own column; the Add / Remove box carries a mode label (+ adds, − removes,
   = sets the total) that the seller taps to change, for that row only. The new total shows
   under In Stock ("→ 260", in the mode's color), the marketplaces with a lot rule under the
   Base Price box ("BL $0.85  BO $0.99"). Every field sits on one top line; anything extra goes
   on a second line under the field it belongs to, so nothing moves up or down. */
.lots col.c-stock { width: 84px; }
.lots col.c-qty { width: 200px; }
.lots th.c-stock, .lots td.c-stock { text-align: right; }
.lots th.c-q, .lots td.c-q { text-align: left; }
.lots th.c-stock { white-space: nowrap; }
.qd { display: flex; align-items: center; justify-content: flex-start; gap: 10px; }
.qd-field { position: relative; display: inline-flex; flex: none; }
.lots .qd .qd-field .qd-delta { width: 92px; padding-left: 38px; text-align: right; }
.qd-mode { position: absolute; left: 5px; top: 5px; bottom: 5px; display: inline-flex; align-items: center; justify-content: center; gap: 1px; width: 28px; padding: 0; border: 0; border-radius: 5px; font: 800 1rem var(--font-mono); line-height: 1; cursor: pointer; background: #E7F4EA; color: #14532D; }
.qd-mode::after { content: ""; width: 0; height: 0; margin-left: 2px; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 6px solid currentColor; opacity: 0.8; }
.qd-mode.is-remove { background: #FDE8E5; color: #8A1206; }
.qd-mode.is-set { background: #E6EEFB; color: #0B3B8C; }
.qd-mode:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
html:not(.js) .qd-field { display: none; }
.qd-res { flex: 1 1 auto; min-width: 0; width: auto; min-height: 1em; font-size: 0.8125rem; font-weight: 700; line-height: 1.25; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qd-res.is-bad { color: #8A1206; white-space: normal; }
.stock-to { display: block; margin-top: 3px; font-size: 0.8125rem; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; color: #14532D; }
.stock-to:empty { display: none; }
.stock-to.is-remove { color: #8A1206; }
.stock-to.is-set { color: #0B3B8C; }
.stock-held { display: block; margin-top: 3px; font-size: 0.75rem; color: var(--ink-soft); white-space: normal; }
.stock-held[hidden] { display: none; }
/* Pieces held or reserved for open orders (order-stock.js), each a link to its order. */
.stock-orders { display: block; margin-top: 3px; }
.stock-order-hold { display: block; font-size: 0.8125rem; line-height: 18px; color: var(--ink-soft); white-space: normal; }
.lots td.c-price .money { justify-content: flex-end; }
.px-ov { display: flex; flex-wrap: nowrap; justify-content: flex-end; gap: 8px; width: 100%; margin: 4px 0 0; padding: 0; border: 0; background: none; font: inherit; font-size: 0.75rem; font-weight: 700; color: var(--ink); white-space: nowrap; cursor: pointer; text-align: right; }
.px-ov[hidden], .px-item[hidden] { display: none; }
.px-ov:hover .num { text-decoration: underline; }
.px-ov .tag { font-size: 0.5625rem; padding: 1px 3px; }
@media (min-width: 761px) {
  .lots tr.lot-row > td, .lots tr.add-row > td { vertical-align: top; padding-top: 12px; padding-bottom: 12px; }
  .lots td.c-stock .qd-now { display: flex; align-items: center; justify-content: flex-end; height: var(--field-h-sm); min-width: 0; }
  .lots tr.lot-row > td.c-cond, .lots tr.add-row > td.c-cond { padding-top: calc(12px + (var(--field-h-sm) - 26px) / 2); }
  .lots td.c-q .qd { min-height: var(--field-h-sm); }
  /* The line under the row shows on phones only; wider screens have it under Base Price. */
  .lots tr.mp-row { display: none !important; }
}
@media (min-width: 761px) and (max-width: 1439px) {
  .lots col.c-stock { width: 68px; }
  .lots col.c-qty { width: 112px; }
  .lots col.c-bin { width: 96px; }
  .lots col.c-more { width: 52px; }
  .lots .qd .qd-field .qd-delta { width: 84px; padding-left: 36px; }
  .lots td.c-q .qd { flex-wrap: wrap; row-gap: 2px; }
  .lots td.c-q .qd-res { flex-basis: 100%; }
  .qd-res:empty { display: none; }
  .lots tr.is-unsaved .cc::after { display: none; }
}
/* Phones: each lot is the same card. The color and its badge; In Stock and the Add / Remove box;
   Base Price, Bin and More. Labels above every field, edges lined up card to card. */
@media (max-width: 760px) {
  .lots tr.lot-row, .lots tr.add-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) 44px; gap: 10px 8px; align-items: start; }
  .lots tr > td.c-color { grid-row: 1; grid-column: 1 / 3; align-self: center; }
  .lots tr > td.c-cond { grid-row: 1; grid-column: 3 / 5; justify-self: end; align-self: center; text-align: right; position: relative; z-index: 1; }
  .lots tr > td.c-stock { grid-row: 2; grid-column: 1; text-align: left; }
  .lots tr > td.c-q { grid-row: 2; grid-column: 2 / 5; }
  .lots tr > td.c-price { grid-row: 3; grid-column: 1 / 3; }
  .lots tr > td.c-bin { grid-row: 3; grid-column: 3; }
  .lots tr > td.c { grid-row: 3; grid-column: 4; padding-top: 22px !important; }
  .lots td.c-stock .qd-now { display: flex; align-items: center; height: 44px; min-width: 0; text-align: left; }
  .lots td.c-stock .qd-now b { font-size: 1.125rem; }
  .lots td.c-stock .stock-to { margin-top: -4px; }
  .lots td.c-q .qd { display: flex; flex-wrap: wrap; gap: 2px 8px; }
  .lots td.c-q .qd-field { flex: 1 1 100%; }
  .lots .qd .qd-field .qd-delta { width: 100%; padding-left: 50px; }
  .qd-mode { width: 38px; }
  .lots td.c-q .qd-add .in-qty, html:not(.js) .lots td.c-q .qd-total { flex: 1 1 100%; width: 100%; }
  .lots td.c-q .qd-res { flex-basis: 100%; }
  .qd-res:empty { display: none; }
  .lots td.c-price .money { justify-content: flex-start; }
  .lots td.c-price .money .in, .lots td.c-bin .in { width: 100%; min-width: 0; }
  .px-ov { display: none !important; }
  .lots tr.is-unsaved .cc::after { display: none; }
  .lots tr.is-locked > td.c-q { visibility: hidden; }
  .c-cond .alt-link { display: none; }
  .more-alt { display: block; margin: 0 0 8px; }
  .sync-note { align-items: flex-start; }
}

/* The panel under a lot: Price Override | Tier Pricing | Notes. Prices come first, since the
   tier preview follows them. Columns stack on narrow screens. */
.lot-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
.lot-grid.no-tiers { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.lg-col { min-width: 0; padding: 0 20px; }
.lg-col:first-child { padding-left: 0; }
.lg-col:last-child { padding-right: 0; }
.lg-col + .lg-col { border-left: 1px solid rgba(5, 19, 29, 0.14); }
.lot-grid .panel + .panel { margin-top: 0; }
.lot-grid .panel h4 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 1rem; }
.lot-grid .hint { color: var(--ink-soft); }
.lot-grid .panel > p.hint { margin: 0 0 10px; font-size: 0.8125rem; line-height: 1.45; }
.tier-head, .tier-row { display: grid; grid-template-columns: 6rem minmax(0, 8rem); gap: 10px; align-items: center; }
.tier-head { margin-top: 4px; font-size: 0.6875rem; font-weight: 700; color: var(--ink-soft); }
.tier-row { margin: 6px 0; }
.tier-qty { display: flex; align-items: center; gap: 6px; font-weight: 700; }
.tier-row .in-qty { width: 4.5rem; }
.tier-row .money .in { width: 100%; min-width: 0; }
.tier-prev { margin: 10px 0 0; font-size: 0.875rem; line-height: 1.45; color: var(--ink-soft); }
.tier-prev[hidden] { display: none; }
.tier-prev p { margin: 0; }
.tier-prev b { display: block; margin-top: 4px; color: var(--ink); }
.lg-field { display: flex; flex-direction: column; gap: 4px; margin: 0; font-size: 0.8125rem; font-weight: 700; }
.lg-field .hint { font-weight: 400; }
.bulk-field { margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(5, 19, 29, 0.12); }
.bulk-field .in-qty { width: 6rem; }
.lot-grid .more-grid { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
.lot-grid .more-grid .in-text { width: 100%; }
.lot-grid .more-grid .money { justify-content: flex-start; }
.lot-grid .more-grid .money .in { width: 6.5rem; }
@media (max-width: 1100px) {
  .lot-grid, .lot-grid.no-tiers { grid-template-columns: minmax(0, 1fr); }
  .lg-col { padding: 14px 0; }
  .lg-col:first-child { padding-top: 0; }
  .lg-col + .lg-col { border-left: 0; border-top: 1px solid rgba(5, 19, 29, 0.14); }
}

/* ----- My Stock filters (Wei, 2026-11-29) ---------------------------------------------------- */
.inv-filters .in-text { width: 100%; }
.inv-filters .inv-scroll { max-height: 240px; overflow-y: auto; overscroll-behavior: contain; margin-right: -6px; padding-right: 6px; }
.inv-filters .opt .sw { margin-right: 6px; }
.inv-cond { display: flex; flex-direction: column; }
.inv-cond .opt input { accent-color: var(--black); }
.inv-range { display: flex; align-items: center; gap: 8px; }
.inv-range label { flex: 1 1 0; min-width: 0; margin: 0; }
.inv-range .in { width: 100%; min-width: 0; }
.inv-apply { padding: 10px 0 0; border-top: 1px solid var(--line); }
.inv-apply .btn { width: 100%; }
.inv-matched { margin: 8px 0 0; font-size: 0.875rem; color: var(--ink-soft); }
.inv-sort .inv-filters-btn { margin-right: 8px; }
@media (max-width: 760px) {
  .inv-apply { display: none; }
  .inv-filters .inv-scroll { max-height: none; }
}

/* Years chart: the hover strip per year and its bubble (public/years-tip.js; Wei, 2026-11-29). */
.yc-hit { fill: transparent; cursor: default; }
.yc-hit.is-on { fill: rgba(5, 19, 29, 0.07); }
/* A year with sets is a link to them (Wei, 2026-11-30). */
.yc-go .yc-hit { cursor: pointer; }
.yc-go:focus-visible .yc-hit { fill: rgba(0, 85, 191, 0.18); }
[id^="sets-y-"] { scroll-margin-top: 16px; }
.yc-tip { position: absolute; z-index: 60; max-width: 260px; padding: 8px 12px; border-radius: 8px; background: var(--black); color: var(--white); font-size: 0.9375rem; font-weight: 700; line-height: 1.3; white-space: nowrap; pointer-events: none; box-shadow: 0 4px 14px rgba(5, 19, 29, 0.25); }
.yc-tip::after { content: ""; position: absolute; left: 50%; bottom: -6px; margin-left: -6px; border: 6px solid transparent; border-bottom: 0; border-top-color: var(--black); }
.yc-tip[hidden] { display: none; }

/* Whole sets and minifigs (the Stock page, Wei 2026-11-29): a set's add row picks Sealed, Complete or Incomplete. */
.lots .in-complete { display: block; margin-top: 6px; min-height: 36px; max-width: 100%; padding: 4px 8px; font-family: inherit; font-size: 0.8125rem; font-weight: 600; }
.lots .cc-whole .nm { font-weight: 700; }
/* Part Out (Wei, 2026-12-01; functions/_lib/item-stock.js partOutPage, public/part-out-core.js).
   Phones first: the three cards stack; from 700px they sit side by side. White cards per DESIGN-RULES. */
.po-main > * + * { margin-top: 14px; }
.po-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.po-title { margin: 0; font-size: 1.375rem; }
.po-cond a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; font-size: 0.875rem; font-weight: 700; color: var(--ink); text-decoration: none; }
.po-cond a + a { border-left: 1px solid #868B8F; }
.po-cond a[aria-current="true"] { background: var(--ink); color: var(--white); }
.po-intro, .po-sub, .po-note { margin: 0; color: var(--ink-soft); font-size: 0.9375rem; }
.po-ways { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
@media (min-width: 700px) { .po-ways { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); } }
.po-way { position: relative; min-width: 0; padding: 14px 16px; background: #FFFFFF; border: 1px solid #E3E5E7; border-radius: 16px; box-shadow: 0 1px 2px rgba(5, 19, 29, 0.06); }
.po-way.is-best { border: 2px solid #237841; padding: 13px 15px; }
.po-way h3 { margin: 0 0 6px; font-size: 0.9375rem; }
.po-amount { margin: 0 0 4px; font-size: 1.5rem; font-weight: 800; overflow-wrap: anywhere; }
.po-plus { font-size: 0.875rem; font-weight: 600; color: var(--ink-soft); }
.po-way .po-sub { font-size: 0.875rem; }
.po-best { display: inline-block; margin: 8px 0 0; padding: 2px 8px; border-radius: 6px; background: #237841; color: #FFFFFF; font-size: 0.8125rem; font-weight: 800; }
.po-verdict { margin: 10px 0 0; font-weight: 700; }
.po-status, .po-part, .po-list { padding: 14px 16px; background: #FFFFFF; border: 1px solid #E3E5E7; border-radius: 16px; box-shadow: 0 1px 2px rgba(5, 19, 29, 0.06); }
.po-status p { margin: 0; }
.po-status p + p, .po-status .po-look { margin-top: 8px; }
.po-look { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.po-look .btn { min-height: 44px; }
.po-left { font-size: 0.875rem; color: var(--ink-soft); }
.po-msg { font-weight: 700; }
.po-part h3, .po-list h3 { margin: 0 0 8px; font-size: 1.0625rem; }
.po-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; }
.po-actions .btn { min-height: 44px; }
.po-do select { display: block; width: 100%; max-width: 420px; margin-top: 4px; }
.po-review ul { margin: 0; padding-left: 20px; }
.po-review li + li { margin-top: 4px; }
.po-table { width: 100%; }
.po-table td { vertical-align: middle; }
.po-table .po-pic { width: 56px; }
.po-table .po-pic img, .po-nopic { display: block; width: 48px; height: 48px; object-fit: contain; }
.po-nopic { display: grid; place-items: center; box-sizing: border-box; flex: none; border-radius: 8px; background: #F5F6F8; color: #767B80; }
.po-nopic .ph { width: 22px; height: 22px; }
/* The hero's no-picture tile (a row with no picture in focus, or a picture that failed to load). */
.po-nopic-hero { display: grid; place-content: center; justify-items: center; gap: 8px; width: 100%; height: 100%; border-radius: 8px; background: #F5F6F8; color: #767B80; text-align: center; }
.po-nopic-hero .ph { width: 56px; height: 56px; }
.po-nopic-hero .ph-label { font-size: 0.875rem; font-weight: 600; color: var(--ink-soft); }
.pd-pic > [hidden], .po-nopic-hero[hidden] { display: none !important; }
.po2-thumb .po-nopic { width: 96px; height: 70px; }
.po-item { min-width: 160px; }
.po-item .po-name { font-weight: 700; }
.po-item .po-color { display: block; font-size: 0.8125rem; color: var(--ink-soft); }
.po-table .r { text-align: right; white-space: nowrap; }
.po-flag { font-size: 0.8125rem; font-weight: 700; color: var(--ink-soft); }
/* Speed chips on the shared scale (public/brick-speed.js; Wei, 2026-12-01): solid palette
   colours, the same hues as Seller Signals' tag. No pastels. */
.po-speed { display: inline-block; margin: 3px 0 0; padding: 1px 8px; border-radius: 999px; border: 1px solid transparent; font-size: 0.75rem; font-weight: 700; line-height: 1.5; white-space: nowrap; color: var(--white); }
.po-speed.is-hot { background: var(--red); }
.po-speed.is-steady { background: var(--blue); }
.po-speed.is-slow { background: var(--yellow); color: var(--black); }
.po-speed.is-bulk { background: var(--dark-purple); }
.po-speed.is-toonew { background: var(--magenta); }
.po-speed.is-nosales { background: var(--white); color: var(--black); border-color: var(--edge); }
.po-speed-key { margin: 8px 0 10px; }
.po-speeds { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 6px 0 0; padding: 0; list-style: none; }
.po-speeds li { display: flex; align-items: center; gap: 6px; font-size: 0.8125rem; }
.po-speeds li .po-speed { margin: 0; }
.po-speeds small { color: var(--ink-soft); font-size: 0.75rem; }
.po-table tr.is-unpriced td { color: var(--ink-soft); }

/* Market Pulse tabs and Price History (Wei, 2026-11-29; public/price-chart.js). The chart stays in
   the Market Pulse column, never the page width. */
.mp-tabs { display: flex; width: 100%; margin: 0 0 10px; border: 1px solid #868B8F; border-radius: 10px; overflow: hidden; background: var(--white); }
.mp-tabs button { flex: 1 1 0; min-width: 0; min-height: 40px; padding: 0 6px; border: 0; background: none; font: inherit; font-size: 0.8125rem; font-weight: 700; color: var(--ink); cursor: pointer; white-space: nowrap; }
.mp-tabs button + button { border-left: 1px solid #868B8F; }
.mp-tabs button[aria-selected="true"] { background: var(--ink); color: var(--white); }
/* Market Pulse is one column with no tabs again (Wei, 2026-11-30: the For Sale Now / Sold /
   Price History tabs were never approved). For Sale Now and the sold prices show together, as
   before 2026-11-29. Price History stays hidden until Wei decides where the chart goes. */
.mp-tabs { display: none; }
.guide #ph { display: none; }
.phc { display: grid; gap: 10px; min-width: 0; max-width: 720px; }
.ph-chips, .ph-controls { display: flex; flex-wrap: wrap; gap: 6px; }
.ph-chip { display: inline-flex; align-items: center; gap: 5px; min-height: 32px; padding: 0 10px; border: 1px solid #868B8F; border-radius: 999px; background: var(--white); font: inherit; font-size: 0.75rem; font-weight: 700; color: var(--ink); cursor: pointer; }
.ph-chip[aria-pressed="false"] { opacity: 0.45; }
.ph-chip.is-soon { border-style: dashed; color: #6b7280; cursor: default; }
.ph-soon { padding: 1px 6px; border-radius: 6px; background: #e8f5ec; color: #1f8a4c; font-size: 0.6875rem; }
.ph-mk { width: 12px; height: 12px; flex: none; }
.ph-n { font-weight: 400; color: #575857; }
.ph-seg { display: inline-flex; }
.ph-seg button { min-height: 32px; padding: 0 8px; font-size: 0.6875rem; }
.ph-toggle { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 4px; border: 0; background: none; font: inherit; font-size: 0.75rem; font-weight: 700; color: var(--ink); cursor: pointer; }
.ph-switch { position: relative; width: 30px; height: 18px; border-radius: 9px; background: #c9ccd0; }
.ph-switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--white); transition: left 0.15s; }
.ph-toggle[aria-pressed="true"] .ph-switch { background: var(--ink); }
.ph-toggle[aria-pressed="true"] .ph-switch::after { left: 14px; }
.ph-area { position: relative; min-width: 0; }
.ph-svg { display: block; width: 100%; height: auto; overflow: visible; }
.ph-ax { font-size: 9px; fill: #6b7280; font-family: inherit; }
.ph-dots > * { cursor: pointer; }
.ph-tip { position: absolute; z-index: 2; display: grid; gap: 2px; padding: 6px 9px; border-radius: 8px; background: #05131d; color: var(--white); font-size: 0.75rem; line-height: 1.3; pointer-events: none; white-space: nowrap; }
.ph-tip[hidden] { display: none; }
.ph-legend, .ph-note { margin: 0; font-size: 0.75rem; color: #575857; }
.ph-who { margin: 0; padding: 8px 10px; border: 1px solid rgba(5, 19, 29, 0.14); border-radius: 10px; font-size: 0.8125rem; line-height: 1.4; }
.ph-tiles { display: grid; grid-template-columns: 1fr; gap: 8px; }
.ph-tile { padding: 8px 10px; border: 1px solid rgba(5, 19, 29, 0.14); border-radius: 10px; min-height: 64px; min-width: 0; container-type: inline-size; }
.ph-tl { margin: 0; font-size: 0.75rem; font-weight: 700; color: #3f4142; }
.ph-big { margin: 2px 0 0; font-family: var(--font-heading); font-size: 1.25rem; font-weight: 800; min-height: 1.5rem; }
.ph-tile.is-up .ph-big { color: #237841; }
.ph-tile.is-down .ph-big { color: #b3261e; }
/* $999,999.99 on one line when the tiles go three across (2026-12-01): 16cqi, never above 1.25rem. */
.ph-tile .ph-big { white-space: nowrap; font-size: 1.125rem; font-size: clamp(0.875rem, 16cqi, 1.25rem); }
.ph-sub { margin: 0; font-size: 0.75rem; color: #575857; }
.ph-empty { display: grid; place-items: center; gap: 4px; min-height: 140px; padding: 16px; border: 1px dashed #c9ccd0; border-radius: 10px; text-align: center; }
.ph-soon-big { margin: 0; font-family: var(--font-heading); font-size: 1.125rem; font-weight: 800; }
.ph-area-locked { opacity: 0.6; }
.ph-signin { margin: 0; font-weight: 700; }
@media (max-width: 920px) { .ph-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 420px) { .ph-tiles { grid-template-columns: 1fr; } }
/* The locked Market Pulse card on public info pages. */
.mp-public { max-width: 720px; }
/* Signed out: Market Pulse and a locked Seller Signals side by side, like the signed-in Info page (Wei, 2026-12-01). */
.mp-public-pair .mp-public { max-width: none; }
.sig-locked h2 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.plan-chip { display: inline-block; padding: 3px 10px; border-radius: 999px; background: #ECE9FB; color: #3F3691; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0; }
.sig-locked-body { position: relative; flex: 1; min-height: 340px; display: flex; flex-direction: column; }
.sig-sketch { flex: 1; display: flex; flex-direction: column; gap: 14px; filter: blur(5px); opacity: .7; pointer-events: none; user-select: none; }
.sig-sk-band { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: 12px; background: #E6F5F7; }
.sig-sk-band i { width: 96px; height: 64px; border-radius: 10px; background: #E9967A; flex: none; }
.sig-sk-band span, .sig-sk-tile span { display: grid; gap: 8px; flex: 1; }
.sig-sk-band b, .sig-sk-tile b { height: 14px; width: 70%; border-radius: 4px; background: #9AA0A8; }
.sig-sk-band em, .sig-sk-tile em { height: 10px; width: 90%; border-radius: 4px; background: #C9CDD3; }
.sig-sk-bar { display: flex; height: 12px; border-radius: 6px; overflow: hidden; }
.sig-sk-bar b { width: 30%; background: #7FA6E5; } .sig-sk-bar i { flex: 1; background: #B9BEC6; }
.sig-sk-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sig-sk-tile { display: flex; gap: 10px; padding: 14px; border: 1px solid #E5E7EB; border-radius: 12px; }
.sig-sk-tile i { width: 34px; height: 34px; border-radius: 9px; background: #DCE6F7; flex: none; }
.sig-lock-card { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(420px, calc(100% - 24px)); padding: 22px 22px 20px; background: #FFFFFF; border-radius: 16px; box-shadow: 0 10px 30px rgba(5, 19, 29, .18); text-align: center; }
.sig-lock-card .sig-lock-ic { color: var(--black, #05131D); }
.sig-lock-card h3 { margin: 8px 0 6px; font-size: 1.25rem; }
.sig-lock-card p { margin: 0 0 14px; color: #5B6270; }
.sig-lock-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.sig-lock-btns .btn { min-height: 44px; display: inline-flex; align-items: center; }
.sig-lock-btns .btn { padding: 0 16px; border-radius: 8px; border: 1px solid #D0D5DD; background: #FFFFFF; color: #05131D; font-weight: 700; text-decoration: none; }
.sig-lock-btns .btn:hover { background: #F3F4F6; color: #05131D; }
.sig-lock-btns .btn-red { background: #C91A09; border-color: #C91A09; color: #FFFFFF; }
.sig-lock-btns .btn-red:hover { background: #A51507; color: #FFFFFF; }
.mp-public .ph-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 420px) { .mp-public .ph-tiles { grid-template-columns: 1fr; } }
/* The Market Pulse column no longer widens for Price History (Wei, 2026-11-30): it crushed the lot table. */
.ph-tip { white-space: normal; max-width: 100%; }
.ph-dots > * { fill-opacity: 0.7; }
/* Price History open: the column no longer scrolls inside itself, so the chart and tiles fit. */
.pd.is-history .pd-side { position: static; max-height: none; }
.pd.is-history .pd-side > .pd-market { overflow: visible; }

/* ----- The condition chip and Brick Owl's used grades (Wei, 2026-11-30, mockups band19 / band20) -----
   One chip per lot with a ▾ that opens a menu. New #0055BF with white text; Like New #FBE58A, Good
   #F2CD37, Acceptable #E5A31A with dark text; a used lot with no grade keeps the Used yellow (USED,
   with its Black edge). Rows are shaded to match their grade. */
.lots col.c-cond { width: 150px; }
.c-cond { white-space: normal; }
.gpick { display: inline-flex; flex-direction: column; align-items: flex-start; max-width: 100%; }
.js .gsel { display: none; }
.gsel { width: 100%; max-width: 9.5rem; }
.gchip { display: inline-flex; align-items: center; gap: 4px; height: 26px; min-width: 58px; min-height: 0; padding: 0 9px; border: 0; border-radius: 6px; font: inherit; font-size: 0.6875rem; font-weight: 800; letter-spacing: 0.04em; line-height: 1; text-transform: uppercase; white-space: nowrap; cursor: pointer; box-sizing: border-box; position: relative; }
.gchip.is-static { cursor: default; justify-content: center; }
/* One down arrow for the chip and the +/- button, big enough to read as one (Wei, 2026-11-30). */
.gchip .gcaret { display: inline-block; width: 0; height: 0; margin-left: 6px; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 6px solid currentColor; opacity: 0.8; vertical-align: middle; }
.gchip:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.gchip[aria-expanded="true"] { box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--black); }
.g-new.gchip, .gm-sw.g-new { background: #0055BF; color: #FFFFFF; }
.g-used.gchip, .gm-sw.g-used { background: var(--yellow); color: var(--black); border: 1px solid var(--black); }
.g-like-new.gchip, .gm-sw.g-like-new { background: #FBE58A; color: var(--black); }
.g-good.gchip, .gm-sw.g-good { background: #F2CD37; color: var(--black); }
.g-acceptable.gchip, .gm-sw.g-acceptable { background: #E5A31A; color: var(--black); }
/* A set's add row picks New or Used in a select: it wears the chip colors (Wei, 2026-12-01). */
.add-whole select.in-cond { appearance: none; -webkit-appearance: none; height: 32px; min-height: 0; padding: 0 28px 0 12px; border: 0; border-radius: 6px; font-family: inherit; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; cursor: pointer; background-repeat: no-repeat; background-position: right 10px center; background-size: 10px 6px; }
.add-whole[data-cond="new"] select.in-cond { background-color: #0055BF; color: #FFFFFF; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M0 0h10L5 6z' fill='%23fff'/%3E%3C/svg%3E"); }
.add-whole[data-cond="used"] select.in-cond { background-color: var(--yellow); color: var(--black); box-shadow: inset 0 0 0 1px var(--black); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M0 0h10L5 6z' fill='%23000'/%3E%3C/svg%3E"); }
.add-whole select.in-cond option { background: #FFFFFF; color: var(--black); text-transform: none; font-weight: 600; }
.add-whole select.in-cond:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* The menu: a popover on the screen (placed by parts-detail.js), so the table never cuts it off. */
.gmenu { display: none; min-width: 11rem; padding: 4px; border: 1px solid #E3E5E7; border-radius: 10px; background: var(--white); box-shadow: 0 8px 24px rgba(5, 19, 29, 0.16); color: var(--ink); white-space: normal; text-transform: none; letter-spacing: 0; }
.gmenu.is-open { display: flex; flex-direction: column; position: fixed; z-index: 60; inset: auto; margin: 0; }
.gmenu[hidden] { display: none; }
.gm-item { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 36px; padding: 0 10px; border: 0; border-radius: 6px; background: none; font: inherit; font-size: 0.875rem; font-weight: 600; color: var(--ink); text-align: left; cursor: pointer; }
.gm-item:hover, .gm-item:focus-visible { background: #EAF1FB; outline: none; }
.gm-item:focus-visible { box-shadow: inset 0 0 0 2px var(--blue); }
.gm-item[aria-checked="true"]::after { content: "✓"; margin-left: auto; font-weight: 800; }
.gm-item[aria-disabled="true"] { color: #6B7075; cursor: default; }
.gm-item[aria-disabled="true"]:hover { background: none; }
.gm-sw { flex: none; width: 18px; height: 18px; border-radius: 4px; box-sizing: border-box; }
.gm-note { display: block; margin: 4px 6px 4px; padding-top: 6px; border-top: 1px solid #E3E5E7; font-size: 0.75rem; line-height: 1.35; color: var(--ink-soft); }

/* "+ Add Lot" under the first lot's chip of each stocked color; "Same grade as A3-05" under a new or changed lot's chip. */
.lots .c-cond .add-lot { display: flex; width: fit-content; align-items: center; min-height: 24px; margin-top: 6px; padding: 0; font-size: 0.8125rem; font-weight: 800; line-height: 1.2; color: var(--blue); text-decoration: underline; }
.dup-warn { display: block; margin-top: 5px; font-size: 0.75rem; font-weight: 700; line-height: 1.25; color: #8A5A00; white-space: normal; }
.dup-warn[hidden] { display: none; }

/* Every lot shows its own color (Wei, 2026-11-30); the color's lot count shows once, on its first lot. */
.grp-n { display: block; margin: 6px 0 0 54px; font-size: 0.75rem; font-weight: 700; color: var(--ink-soft); }
@media (max-width: 760px) {
  .lots tr > td.c-cond { display: flex; flex-direction: column; align-items: flex-end; }
  .gpick { align-items: flex-end; }
  .gchip { height: 32px; padding: 0 12px; font-size: 0.75rem; }
  .gchip::before { content: ""; position: absolute; inset: -6px -4px; }
  .gm-item { min-height: 44px; font-size: 1rem; }
  .c-cond .add-lot { min-height: 44px; margin-top: 0; }
  .dup-warn { text-align: right; }
  .grp-n { margin-left: 54px; }
  /* Under the chip at every width now (it used to move into More on a phone). */
  .lots .c-cond .alt-link { display: inline-flex; }
  .lots .c-cond .alt-link[hidden] { display: none; }
}

/* Wide screens (Wei, 2026-11-30): Condition and Base Price are sized to their longest content,
   and the color column takes the rest, for long names like Trans-Neon Green. Condition: the
   ACCEPTABLE chip (a "Same grade as" line wraps under it). Base Price: $8888 or $0.888, since a
   price in the thousands has no three-place decimals. From 1440px the sync status sits beside
   the Add / Remove box, so that column has room for "Waiting to sync" in full. */
@media (min-width: 1260px) {
  .lots col.o-color { width: auto; }
  .lots col.c-cond { width: 136px; }
  .lots col.c-stock { width: 84px; }
  .lots col.c-qty { width: 160px; }
  .lots col.c-p { width: 108px; }
  .lots col.c-bin { width: 122px; }
  .lots col.c-more { width: 70px; }
}
@media (min-width: 1440px) {
  .lots col.c-qty { width: 216px; }
}

/* The second line under a row's fields (Wei, 2026-11-30: "these should all line up"): the sync
   status, the new total, held pieces, the marketplace prices, + Add Lot and the duplicate note all
   use one type size and line height and start the same distance below the fields. */
@media (min-width: 761px) {
  .lots .qd-res, .lots .stock-to, .lots .stock-held, .lots .px-ov, .lots .c-cond .add-lot, .lots .dup-warn { font-size: 0.8125rem; line-height: 18px; }
  .lots .c-cond .add-lot { min-height: 0; margin-top: 8.5px; }
  .lots .px-ov .tag { line-height: 1; }
  .lots td.c-q .qd-res { margin-top: 2px; }
  .lots .stock-to, .lots .stock-held { margin-top: 4.5px; }
  .lots .dup-warn { margin-top: 9px; }
}

/* Tablets and narrow desktops, 761 to 1259px (iPad landscape included). The fixed columns are
   sized to their content so the color column keeps about 125px: the picture is 36px there, the
   name and "4 lots · 357 pcs" may wrap, the sync status wraps under its box, and the marketplace
   prices stack (BL over BO) so they stay inside the Base Price column. */
@media (min-width: 761px) and (max-width: 1259px) {
  .lots col.c-cond { width: 120px; }
  .lots col.c-stock { width: 64px; }
  .lots col.c-qty { width: 100px; }
  .lots col.c-p { width: 104px; }
  .lots col.c-bin { width: 92px; }
  .lots col.c-more { width: 52px; }
  /* The color picture stays, smaller (Wei, 2026-12-01: every color shown, so a stocked row is
     easy to spot). */
  .lots .cc { gap: 8px; }
  .lots .cc-pic { width: 36px; height: 36px; }
  .lots .sw { width: 24px; height: 24px; margin: 6px; }
  .lots td.c-color, .lots td.c-color * { white-space: normal; overflow: visible; text-overflow: clip; }
  .lots .cc-sub, .lots .grp-n { margin-left: 44px; }
  .lots .cc-sub { flex-wrap: wrap; }
  .lots td.c-q .qd-res { white-space: normal; overflow: visible; }
  .lots .px-ov .px-list { flex-direction: column; align-items: flex-start; gap: 0; }
}

/* The BL / BO prices under Base Price (Wei, 2026-11-30) start at the left edge of the price box,
   like every other second line. An invisible copy of the currency sign takes the same room as the
   "$" in front of the box. A long line may run on under the Bin box. */
.px-ov { justify-content: flex-start; text-align: left; width: auto; max-width: none; overflow: visible; gap: 4px; }
.px-ov .px-cur { visibility: hidden; font-size: 0.8125rem; font-weight: 400; }
.px-ov .px-list { display: flex; gap: 8px; }

/* ----- Delete Lot (Wei, 2026-11-30, mockup band21) ------------------------------------------------
   A footer across the bottom of the More panel, under a thin line: the red outlined button and
   what it does. A marked lot's row is pink (over any grade shading) with In Stock, Add / Remove,
   Base Price and Bin struck through and greyed; "Deletes on Save · Undo" sits under the chip as a
   second line, like + Add Lot. */
.lot-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(5, 19, 29, 0.12); }
.del-lot { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border: 1.5px solid var(--red); border-radius: 8px; background: var(--white); color: var(--red); font: inherit; font-size: 0.8125rem; font-weight: 800; cursor: pointer; }
.del-lot:hover:not(:disabled) { background: #FDE8E5; }
.del-lot:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.del-lot[aria-pressed="true"] { background: #FDE8E5; }
.del-lot:disabled { border-color: #C4C8CC; color: #6B737B; background: #F5F6F8; cursor: not-allowed; }
.lot-foot-hint { flex: 1 1 16rem; min-width: 0; font-size: 0.8125rem; line-height: 1.4; color: var(--ink-soft); }
.lot-foot.is-held .lot-foot-hint { color: var(--ink); }
.del-nojs { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 0.875rem; font-weight: 700; color: var(--red); }
.js .del-nojs { display: none; }
.lots tr.lot-row.is-deleting > td { background: #FDE8E5 !important; }
.lots tr.lot-row.is-deleting .c-stock .qd-now, .lots tr.lot-row.is-deleting .c-stock .qd-now b,
.lots tr.lot-row.is-deleting .c-q .in, .lots tr.lot-row.is-deleting .c-q .qd-mode,
.lots tr.lot-row.is-deleting .c-price .in, .lots tr.lot-row.is-deleting .c-bin .in { text-decoration: line-through; opacity: 0.55; }
.lots tr.lot-row.is-deleting .stock-to, .lots tr.lot-row.is-deleting .qd-res, .lots tr.lot-row.is-deleting .px-ov, .lots tr.lot-row.is-deleting .dup-warn { visibility: hidden; }
.del-note { display: block; margin-top: 5px; font-size: 0.75rem; font-weight: 800; line-height: 1.25; color: #8A1206; white-space: nowrap; }
.del-note[hidden] { display: none; }
.del-note .del-undo { min-height: 0; padding: 0; font-size: inherit; font-weight: 700; line-height: inherit; text-decoration: underline; }
@media (min-width: 761px) {
  /* The same second line as + Add Lot (see "The second line under a row's fields" above). */
  .lots .del-note { font-size: 0.8125rem; line-height: 18px; margin-top: 8.5px; }
}
@media (max-width: 760px) {
  .lots tr.lot-row.is-deleting { background-color: #FDE8E5; box-shadow: inset 4px 0 0 var(--red); }
  .lots tr.lot-row.is-deleting > td { background: none !important; }
  .del-note { text-align: right; }
  .del-note .del-undo { display: inline-flex; align-items: center; min-height: 44px; }
  .lot-foot { margin-top: 12px; }
  .del-lot { height: 44px; min-height: 44px; padding: 0 16px; font-size: 0.875rem; }
  .lot-foot-hint { flex-basis: 100%; }
}

/* A set lot's completeness under its NEW / USED tag (a second line). */
.whole-comp { display: block; margin-top: 5px; font-size: 0.75rem; font-weight: 700; line-height: 1.25; color: var(--ink); }

/* Whole sets and minifigs (Wei, 2026-11-30): no first column, so Condition comes first, takes the
   spare width (as Color does on a part page) and carries the row's grade bar on its left edge. */
@media (min-width: 761px) {
  .lots.is-whole col.c-cond { width: auto; }
  .lots .whole-comp { font-size: 0.8125rem; line-height: 18px; margin-top: 8.5px; }
  .lots.is-whole tr.lot-row > td.c-cond, .lots.is-whole tr.add-row > td.c-cond { box-shadow: inset 5px 0 0 var(--g-bar, transparent); padding-left: 16px; }
}

/* Whole set and minifig Stock pages (Wei, 2026-11-30: no wasted space). The Condition column
   holds the chip and the Sealed / Complete / Incomplete box side by side on one line, so each lot
   is one row, and takes the spare width; Bin keeps the part table's width (Wei, 2026-11-30: a Bin
   box across the whole table was too long). */
@media (min-width: 761px) {
  .lots.is-whole col.c-cond { width: auto; min-width: 250px; }
  .lots.is-whole td.c-cond { white-space: nowrap; }
  .lots.is-whole td.c-cond select.in-complete { display: inline-block; width: auto; min-width: 0; max-width: 150px; margin: 0 0 0 8px; vertical-align: middle; }
  .lots.is-whole td.c-cond select.in-cond { display: inline-block; width: auto; min-width: 0; max-width: 110px; vertical-align: middle; }
}

/* Sync note (Wei, 2026-11-30): a failure is red and opens Sync Issues; waiting shows when the next
   sync goes out, counted down (parts-detail.js). */
a.sync-note { color: inherit; text-decoration: none; }
.sync-note.is-failed { border-color: var(--red); background: #FDECEA; color: #7A1006; }
a.sync-note.is-failed:hover, a.sync-note.is-failed:focus-visible { background: #FAD9D4; }
.sync-note .sync-go { margin-left: auto; font-weight: 800; }
.sync-note .next-sync { margin-left: auto; white-space: nowrap; font-weight: 700; }
.next-sync [data-countdown] { font-variant-numeric: tabular-nums; }
.parts-ok .next-sync { font-weight: 700; }
a.qd-st.is-failed { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }

/* Info / My Stock / Part Out: one switch, always the last thing in the item's own card (Wei, 2026-11-30). */
.item-tabs { display: flex; width: 100%; max-width: 420px; margin: 14px 0 0; }
.item-tabs a { flex: 1 1 0; justify-content: center; min-height: 44px; padding: 0 8px; white-space: nowrap; }

/* Whole sets and minifigs: "Details · Part Out" under the chip (Wei, 2026-11-30), like a part's "In 24 Sets". */
.item-links { display: flex; align-items: baseline; gap: 6px; margin-top: 6px; line-height: 1.2; }
.item-links .dot { color: var(--ink-soft); font-size: 0.75rem; }

/* ----- The sub-menu, Browse All and My Inventory stats (Wei, 2026-11-30) ----- */
/* The same underline tabs, in smaller type: Browse All and My Inventory only. */
.parts-top .view-tabs a { font-size: 1.125rem; min-height: 44px; }
.sub-menu { margin-top: 4px; }
.sub-menu .search-card .search-row { margin: 0; }
/* Under Browse All: Parts, Minifigures, Sets, in the My Inventory sort pills. */
.browse-cats { margin: 0 0 12px; }
/* My Inventory stats, white cards. The card edge, shadow and radius of .pc-sec. */
.inv-stats.is-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.inv-stats.is-cards div { min-width: 0; container-type: inline-size; padding: 10px 12px; background: var(--white); border: 1px solid var(--edge); border-radius: 12px; box-shadow: var(--shadow-soft); }
/* Up to $999,999.99 or 1,234,567 on one line (Wei, 2026-12-01: $1,072.04 spilled out of Listed Value):
   the number follows the card's width, 16cqi (about 5.8em of figures fit), never above 1.375rem.
   Every card in the row is the same width, so they all get the same size. 1.125rem without cqi. */
.inv-stats.is-cards dd { white-space: nowrap; font-size: 1.125rem; font-size: clamp(0.875rem, 16cqi, 1.375rem); }
.inv-stats.is-cards dd.is-words { white-space: normal; overflow-wrap: anywhere; }
/* All 8 cards on one row at 1440px (Wei, 2026-12-02: To Ship wrapped alone). The row follows the
   width the stats get, not the window: beside the filters on My Inventory, full width on My Stock
   and Part Out. 1016px fits 8 cards with 94px inside each (a 15px number), so 8 in a row from
   about 1400px on My Inventory and 1080px elsewhere; 4 and 4 below that, 140px cards under 504px,
   never 7 and 1. One row takes any count up to 8; a 9th card starts a second row of 8. */
.inv-head { container: inv-stats / inline-size; }
@container inv-stats (min-width: 504px) {
  .inv-stats.is-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@container inv-stats (min-width: 1016px) {
  .inv-stats.is-cards { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
  .inv-stats.is-cards:has(> :nth-child(9)) { grid-template-columns: repeat(8, minmax(0, 1fr)); grid-auto-flow: row; }
}
@media (max-width: 760px) {
  .parts-top .view-tabs a { font-size: 1rem; min-height: 44px; }
  .inv-stats.is-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .inv-stats.is-cards dd { font-size: 1.125rem; font-size: clamp(0.875rem, 16cqi, 1.125rem); }
}

/* A stat that opens its page (Orders To Pick): the number stays a stat, with a link underline. */
.inv-stats dd a { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 2px; }

/* The store's stats under the sub-menu on My Stock and Part Out pages (Wei, 2026-11-30). */
.inv-head.sub-stats { margin: 0 0 14px; }
.inv-head.sub-stats .inv-stats { margin: 0; }

/* Signed-in Info pages (Wei, 2026-12-01): Market Pulse and Seller Signals under the info card,
   side by side on wide screens, stacked on phones. The panel inside is the My Stock page's. */
.info-market { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin: 16px 0; }
@media (min-width: 900px) { .info-market { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; } }
.info-market .pc-sec { margin: 0; }
/* Market Pulse first, then Seller Signals, when they stack: the stock page's phone rule
   (.pd-market { order: 3 }) must not reach the Info page's card (Wei, 2026-12-01). */
.info-market > .info-pulse { order: 0; }
.info-mp-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 8px; }
.info-mp-head h2 { margin: 0; }
.info-mp-head .seg-mini { width: auto; margin: 0; }
.info-mp-head .seg-mini button { min-height: 32px; padding: 0 12px; }
.info-pulse .sold-focus { display: none; }
.info-pulse .pd-nojs { display: none; }
html:not(.js) .info-pulse .pd-nojs { display: block; }
.signals h2 { margin: 0 0 10px; }
.sig-supply { display: flex; gap: 12px; padding: 12px; border-radius: 12px; border: 1px solid var(--edge); margin: 0 0 12px; }
/* The shared speed scale (public/brick-speed.js): a white box edged in the speed's palette
   colour, the tag solid in it (Wei, 2026-12-01: approved hues only, no pastels). */
.sig-supply.is-hot, .sig-supply.is-steady, .sig-supply.is-slow, .sig-supply.is-bulk, .sig-supply.is-toonew { background: var(--white); }
.sig-supply.is-hot { border-color: var(--red); }
.sig-supply.is-steady { border-color: var(--blue); }
.sig-supply.is-slow { border-color: var(--yellow); }
.sig-supply.is-bulk { border-color: var(--dark-purple); }
.sig-supply.is-toonew { border-color: var(--magenta); }
.sig-supply.is-nosales { background: var(--white); border-color: var(--edge); }
.sig-supply.is-hot .sig-tag { background: var(--red); }
.sig-supply.is-steady .sig-tag { background: var(--blue); }
.sig-supply.is-slow .sig-tag { background: var(--yellow); color: var(--black); }
.sig-supply.is-bulk .sig-tag { background: var(--dark-purple); }
.sig-supply.is-toonew .sig-tag { background: var(--magenta); }
.sig-supply.is-nosales .sig-tag { background: var(--white); color: var(--black); border: 1px solid var(--edge); }
.sig-tag { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 84px; padding: 6px 8px; margin: 0; border-radius: 10px; background: var(--ink); color: var(--white); text-align: center; }
.sig-tag b { font-size: 0.9375rem; line-height: 1.2; }
.sig-tag span { font-size: 0.6875rem; opacity: 0.85; }
.sig-text { min-width: 0; }
.sig-head { margin: 0 0 2px; font-weight: 800; }
.sig-text .sig-sub { margin: 0 0 6px; font-size: 0.8125rem; color: var(--ink-soft); }
.sig-bands { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; list-style: none; }
.sig-bands li { font-size: 0.6875rem; padding: 1px 6px; border: 1px solid var(--edge); border-radius: 999px; background: var(--white); }
.sig-bands li.is-on { background: var(--ink); color: var(--white); border-color: var(--ink); }
.sig-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.sig-tile { padding: 10px 12px; border: 1px solid var(--edge); border-radius: 12px; min-width: 0; }
.sig-big { margin: 0; font-family: var(--font-heading); font-weight: 800; font-size: 1.25rem; }
/* $999,999.99 on one line (2026-12-01): the text column is the container, 16cqi, never above 1.25rem. */
.sig-tt { flex: 1 1 auto; container-type: inline-size; }
.sig-tt .sig-big { white-space: nowrap; font-size: 1.125rem; font-size: clamp(0.875rem, 16cqi, 1.25rem); }
.sig-big.is-up { color: #237841; }
.sig-big.is-down { color: #b3261e; }
.sig-label { margin: 2px 0 0; font-weight: 700; font-size: 0.8125rem; }
.sig-tile .sig-sub { margin: 2px 0 0; font-size: 0.75rem; color: var(--ink-soft); }
.sig-src { margin: 10px 0 0; }

/* Info pages: Market Pulse is the price chart (Wei, 2026-12-01). The My Stock page's For Sale Now,
   Activity and Recently Sold blocks are not shown there; the chart has its own country switch. */
.info-pulse .guide #ph { display: block; }
.info-pulse .guide #fs, .info-pulse .guide #sp, .info-pulse .guide #recent-card, .info-pulse .guide #sales-card,
.info-pulse .guide #sold-country, .info-pulse .guide #country-pick, .info-pulse .guide #guide-msg, .info-pulse .guide #sold-focus { display: none !important; }

/* Info pages, Wei's mock (2026-12-01): the two cards the same height, the header pills on one
   line, a legend row with the country pills, small dots with the cloud and the median line, three
   boxes in a row; Seller Signals with Lots Listed Now as a bar and a 2x2 of tiles with icons. */
.info-market > .pc-sec { display: flex; flex-direction: column; }
.info-market > .signals [data-signals-body] { flex: 1; display: flex; flex-direction: column; gap: 12px; }
.info-market > .signals .sig-supply { margin: 0; }
.info-mp-head { flex-wrap: wrap; }
.info-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.info-pills .seg-mini button { min-height: 32px; padding: 0 10px; font-size: 0.75rem; }
.phc.is-info { max-width: none; gap: 8px; }
.ph-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; }
.ph-chip.is-key { cursor: default; }
.ph-svg.is-info .ph-ax { font-size: 11px; }
.ph-svg.is-info .ph-dots > * { fill-opacity: 0.75; }
.ph-boxes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ph-stat { padding: 10px 12px; border: 1px solid rgba(5, 19, 29, 0.14); border-radius: 10px; min-width: 0; container-type: inline-size; }
/* $999,999.99 on one line in a third of the card (2026-12-01): 16cqi, never above 1.25rem. */
.ph-stat .ph-big { margin: 0; white-space: nowrap; font-size: 1.125rem; font-size: clamp(0.875rem, 16cqi, 1.25rem); }
.ph-bl { margin: 2px 0 0; font-size: 0.75rem; color: #3f4142; }
.ph-stat.is-up .ph-big { color: #237841; }
.ph-stat.is-down .ph-big { color: #b3261e; }
@media (max-width: 420px) { .ph-boxes { grid-template-columns: 1fr; } }
.sig-listed { padding: 12px 14px; border: 1px solid var(--edge); border-radius: 12px; }
.sig-lhead { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.sig-lbig { margin: 0; font-family: var(--font-heading); font-weight: 800; font-size: 1.125rem; }
.sig-lpcs { margin: 0; font-size: 0.8125rem; color: var(--ink-soft); }
.sig-bar { height: 10px; margin: 8px 0 6px; border-radius: 999px; background: #6b7280; overflow: hidden; }
.sig-bar-mine { display: block; height: 100%; width: 0; background: #1a6fd6; }
.sig-keys { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; padding: 0; list-style: none; font-size: 0.75rem; }
.sig-keys li { display: inline-flex; align-items: center; gap: 5px; }
.sig-dot { width: 8px; height: 8px; border-radius: 50%; background: #6b7280; }
.sig-keys .is-mine .sig-dot { background: #1a6fd6; }
.info-market .sig-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 420px) { .info-market .sig-tiles { grid-template-columns: 1fr; } }
.info-market .sig-tile { display: flex; align-items: flex-start; gap: 10px; }
.sig-ic { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: #EAF2FF; color: #1a6fd6; }
.sig-ic svg { width: 20px; height: 20px; }
.sig-ic-trend { background: #E8F5EC; color: #237841; }
.sig-ic-trend-down { background: #FDECEC; color: #b3261e; }
.sig-ic-trend-flat { background: #F1F2F4; color: #3f4142; }
.sig-ic-buyer { background: #F1ECFB; color: #5b3fa8; }
.sig-ic-globe { background: #F1F2F4; color: #3f4142; }
.sig-tt { min-width: 0; }
.info-market .sig-src { margin-top: auto; padding-top: 10px; }
/* The country pills sit at the end of the legend row, small (not a full-width bar). */
.phc.is-info .ph-seg { width: auto; flex: none; }
.phc.is-info .ph-seg button { flex: none; min-height: 30px; padding: 0 10px; font-size: 0.6875rem; }
.ph-svg.is-info .ph-ax { font-size: 13px; }

/* Info page Market Pulse header on one line (Wei, 2026-12-01): title left; New | Used,
   30D | 90D | 6M and 🌎 | flag right, each pill the BrickLink chip's size (about 30px). On a
   touch screen the buttons keep a 44px tap area without growing (a taller hit box). Phones: the
   title takes its own line, the three pills share the next one. */
.info-mp-head { flex-wrap: nowrap; }
.info-mp-head h2 { flex: none; }
.info-pills { flex-wrap: nowrap; justify-content: flex-end; gap: 6px; min-width: 0; }
.info-pills .seg-mini button { position: relative; height: 30px; min-height: 30px; line-height: 30px; padding: 0 9px; font-size: 0.6875rem; overflow: visible; }
.info-country button { padding: 0 8px; font-size: 0.9375rem; letter-spacing: 0; }
.info-country button span { display: block; line-height: 30px; }
@media (pointer: coarse) { .info-pills .seg-mini button::before { content: ""; position: absolute; left: 0; right: 0; top: -7px; bottom: -7px; } }
@media (max-width: 760px) { .info-pills .seg-mini button { height: 30px; line-height: 30px; padding: 0 9px; } }
@media (max-width: 560px) {
  .info-mp-head { flex-wrap: wrap; row-gap: 8px; }
  .info-mp-head h2 { flex: 1 0 100%; }
  .info-pills { flex-wrap: wrap; justify-content: flex-start; }
}
/* Selected is black, like the rest of the site's toggles (.seg-view: My Stock / All Available
   Colors), not the blue .seg-mini of the stock page's left panel (Wei, 2026-12-01: "the world
   emoji would stand out better on a black toggle"). */
.info-pills .seg-mini button[aria-pressed="true"] { background: var(--black); color: var(--white); }

/* Cash In Hand Over Time (Wei, 2026-12-01): the Part Out card in the Info pages' Market Pulse
   layout (public/part-out-cash.js). Reuses .info-mp-head, .info-pills, .ph-chip, .ph-svg,
   .ph-ax, .ph-band, .ph-tip, .ph-boxes, .ph-stat. */
.po-cash { padding: 16px 18px; }
.po-cash .info-mp-head { margin-bottom: 10px; }
.po-cash .info-mp-head h2 { margin: 0; font-size: 1.25rem; }
.po-cash-win { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 10px; padding: 10px 12px; border: 1px solid rgba(26, 111, 214, 0.22); border-radius: 10px; background: #e8f1fb; color: var(--ink); font-size: 0.9375rem; line-height: 1.45; }
.po-cash-win p { margin: 0; }
.po-cash-crown { flex: none; display: inline-flex; color: #1a6fd6; margin-top: 1px; }
.po-cash .phc.is-info { max-width: none; }
.po-cash-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; }
.po-cash-dot-complete { background: var(--dark-purple); }
.po-cash-dot-figs { background: var(--magenta); }
.po-cash-dot-parts { background: var(--dark-turquoise); }
/* One uncertainty band at a time, a thin tint of that line's colour (same idea as
   Market Pulse's single BrickLink-blue band). */
.po-cash .po-cash-band { opacity: 0; }
.po-cash .po-cash-band.is-on { opacity: 1; }
.po-cash .po-cash-whiskers { opacity: 0; }
.po-cash .po-cash-whiskers.is-on { opacity: 1; }
.po-cash-conf { margin: -2px 0 8px; }
.po-cash-conf-lab { display: inline-block; font-size: 0.75rem; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: #e8f6f7; color: var(--dark-turquoise); }
.po-cash-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.po-cash-foot .ph-note { margin: 0; }
.po-cash-break { text-decoration: none; }
.po-cash-cross { display: none; }
.po-cash-cross.is-on { display: inline; }
.po-cash-ev, .po-cash-flag, .po-cash-months, .po-cash-fill, .po-cash-band, .po-cash-whiskers, .po-cash-hover-pt { pointer-events: none; }
.po-cash .po-cash-fill { opacity: 0; transition: opacity 0.15s ease; }
.po-cash .po-cash-fill.is-on { opacity: 1; }
.po-cash .po-cash-months { opacity: 0; transition: opacity 0.15s ease; }
.po-cash .po-cash-months.is-on { opacity: 1; }
.po-cash-flag-lab { font-size: 11px; font-weight: 700; fill: var(--black); paint-order: stroke; stroke: #fff; stroke-width: 3px; stroke-linejoin: round; }
.po-cash-flag-narrow { display: none; }
.po-cash-line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: po-cash-draw 0.85s ease-out forwards; }
.po-cash-ev, .po-cash-flag { animation: po-cash-fade 0.45s ease 0.4s both; }
@keyframes po-cash-draw { to { stroke-dashoffset: 0; } }
@keyframes po-cash-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .po-cash-line, .po-cash-ev, .po-cash-flag { animation: none; stroke-dashoffset: 0; }
}
.po-cash-tip { min-width: 11rem; }
.po-cash-tip-row { display: flex; align-items: center; gap: 6px; }
.po-cash-tip-row .po-cash-dot { width: 8px; height: 8px; }
@media (max-width: 560px) {
  .po-cash .ph-boxes { grid-template-columns: 1fr; }
  .po-cash-flag-wide { display: none; }
  .po-cash-flag-narrow { display: inherit; }
  .po-cash-flag-lab { font-size: 10px; }
}

/* ----- Part Out (Wei, 2026-12-01, the "Set VS Parts" mockup; functions/_lib/part-out-page.js) -----
   The set strip and controls, the arena (three fighter cards on #141011), Cash In Hand Over Time,
   then What Goes Into Your Stock: My Stock's left panel beside the cards and the lots table.
   Way colors: Medium Azure #36AEBF, Dark Purple #3F3691 (tint #9d93e8), Magenta #923978 (tint
   #d779b5). Bucket chips: LEGO colors from the ref color table, white text. */
.po2-page { padding-bottom: 96px; }
.po2 > * + * { margin-top: 16px; }
.po2-card { padding: 16px 18px; }
.po2-sec { margin: 0 0 4px; font-size: 1.25rem; }
.po2-hint { margin: 4px 0 0; font-size: 0.8125rem; color: var(--ink-soft); }
.po2-setbar { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 16px; align-items: center; }
.po2-thumb img { display: block; width: 96px; height: 70px; object-fit: contain; }
.po2-setbar h1 { margin: 0; font-size: 1.5rem; line-height: 1.1; }
.po2-setbar p { margin: 2px 0 0; font-size: 0.875rem; color: var(--ink-soft); }
.po2-facts { display: flex; flex-wrap: wrap; gap: 18px; font-size: 0.8125rem; color: var(--ink-soft); }
.po2-facts b { display: block; font-size: 1.0625rem; color: var(--ink); }
/* One wrapping row on wide screens, so no control is squeezed under its own width (seven
   controls with Sale Price); a 2-column grid under 900px and one column on phones (below). */
.po2-ctrls { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: flex-end; margin-top: 14px; }
@media (min-width: 901px) { .po2-ctrls .po2-paid { width: 140px; } }
.po2-ctrls .po2-run { display: block; }
.po2-f { display: block; margin-bottom: 4px; font-size: 0.75rem; font-weight: 700; }
.po2-step { display: inline-flex; border: var(--field-border); border-radius: var(--field-radius); overflow: hidden; background: var(--white); }
.po2-step button { width: 44px; height: 44px; border: 0; background: #F1F3F6; font: inherit; font-size: 1.125rem; font-weight: 700; cursor: pointer; }
.po2-step input { width: 56px; height: 44px; min-height: 0; border: 0; border-radius: 0; text-align: center; font-weight: 700; -moz-appearance: textfield; }
.po2-step input::-webkit-inner-spin-button, .po2-step input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.po2-ctrls select { max-width: 100%; }
.po2-paid { width: 120px; text-align: right; }
.po2-seg { display: inline-flex; }
.po2-tg { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border: 0; background: var(--white); color: var(--ink); font: inherit; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; cursor: pointer; white-space: nowrap; }
.po2-tg + .po2-tg { border-left: 1px solid #868B8F; }
.po2-tg:hover { background: #F4F5F7; color: var(--ink); }
.po2-tg[aria-pressed="true"], .po2-tg[aria-pressed="true"]:hover { background: #05131D; color: var(--white); }
.po2-draft { margin: 0 0 12px; padding: 10px 14px; border: 1px solid #E3E5E7; border-radius: 10px; background: var(--white); font-size: 0.9375rem; }
.po2-draft[data-mode="offline"] { border-color: #F2CD37; }

/* The arena. */
.po2-arena { position: relative; overflow: hidden; padding: 18px clamp(12px, 2vw, 22px) 0; border-radius: 18px; background: #141011; color: var(--white); }
.po2-arena h2 { margin: 0 0 4px; font-family: var(--font-heading); font-weight: 800; font-size: clamp(1.75rem, 4.4vw, 3rem); letter-spacing: 2px; text-align: center; text-transform: uppercase;
  background: linear-gradient(90deg, #36AEBF, #8f7fe0 50%, #d65aa8); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 3px 0 #3F3691); }
.po2-arena h2 em { display: inline-block; margin: 0 0.3em; padding: 0 0.25em; border-radius: 6px; background: #923978; color: var(--white); -webkit-text-fill-color: #FFFFFF; font-style: normal; transform: skew(-8deg); }
.po2-sub { margin: 0 0 14px; font-size: 0.875rem; text-align: center; color: #D6DAE1; }
.po2-fighters { display: grid; grid-template-columns: minmax(0, 1fr) 0 minmax(0, 1fr) 0 minmax(0, 1fr); gap: 14px 7px; }
.po2-fighters.is-two { grid-template-columns: minmax(0, 1fr) 0 minmax(0, 1fr); }
.po2-coin { position: relative; z-index: 2; align-self: start; width: 0; height: 0; margin-top: 130px; }
.po2-coin span { position: absolute; left: 50%; top: 0; display: grid; place-items: center; width: 58px; height: 58px; border: 3px solid #141011; border-radius: 50%;
  background: linear-gradient(135deg, #36AEBF, #3F3691 55%, #923978); box-shadow: 0 0 0 2px #FFFFFF, 0 6px 14px rgba(0, 0, 0, 0.6);
  font-family: var(--font-heading); font-weight: 800; font-size: 1.125rem; color: var(--white); transform: translate(-50%, -50%) rotate(-8deg); }
.po2-ft { position: relative; display: flex; flex-direction: column; padding: 12px 14px 14px; border: 2px solid #2F2728; border-radius: 14px; background: #1B1617; }
.po2-ft.is-sealed { --pc: #36AEBF; --pi: #36AEBF; }
.po2-ft.is-figs { --pc: #3F3691; --pi: #9d93e8; }
.po2-ft.is-parts { --pc: #923978; --pi: #d779b5; }
.po2-ft.is-win { border-color: var(--pc); }
.po2-fthead { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 28px; }
.po2-tag { margin: 0; font-size: 0.6875rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--pi); }
.po2-badge { flex: none; padding: 3px 10px; border-radius: 7px; font-family: var(--font-heading); font-weight: 800; font-size: 0.875rem; white-space: nowrap; transform: skew(-6deg); }
.po2-badge.is-ko { background: var(--pc); color: var(--white); box-shadow: 3px 3px 0 #000000; }
.po2-badge.is-call { background: var(--white); color: #14171C; box-shadow: 3px 3px 0 var(--pc); }
.po2-pic-box { position: relative; display: flex; align-items: flex-end; justify-content: center; height: 170px; margin: 6px 0 10px; overflow: hidden; border-radius: 10px; background: #211A19; }
.po2-pic-box img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }
.po2-pic-box.is-box { align-items: center; }
.po2-pic-box.is-box img { max-height: 92%; }
.po2-art-none { display: grid; place-items: center; width: 100%; height: 100%; background: repeating-linear-gradient(135deg, #211A19 0 12px, #2A2223 12px 24px); }
.po2-art-none span { padding: 4px 10px; border: 1px solid #4A4448; border-radius: 20px; font-size: 0.75rem; font-weight: 700; color: #AAB0BA; }
.po2-ft h3 { margin: 0; font-size: 1.1875rem; line-height: 1.2; color: var(--white); }
.po2-lab { margin: 10px 0 0; font-size: 0.6875rem; font-weight: 700; color: #AAB0BA; }
.po2-low { margin-left: 6px; padding: 1px 6px; border: 1px solid var(--pi); border-radius: 5px; color: var(--pi); }
.po2-low-hint { margin: 4px 0 0; font-size: 0.75rem; font-weight: 600; color: var(--pi); }
.po2-big { margin: 0; font-size: clamp(1.625rem, 3vw, 2.125rem); font-weight: 800; line-height: 1.1; white-space: nowrap; }
.po2-net { margin: 0; font-size: 0.8125rem; color: #9BE3B0; }
.po2-net.is-neg { color: #FF9B9B; }
.po2-net.is-none { color: #AAB0BA; }
.po2-at { margin: 10px 0 0; padding: 8px 10px; border-radius: 9px; background: rgba(255, 255, 255, 0.06); font-size: 0.8125rem; color: #D6DAE1; }
.po2-at b { font-size: 1.0625rem; color: var(--white); white-space: nowrap; }
/* Under the full value (Follow-up 5): what comes in within 12 months, and what the way counts. */
.po2-at.po2-in12 { margin: 4px 0 0; padding: 0; background: none; font-size: 0.875rem; }
.po2-count { margin: 2px 0 0; font-size: 0.75rem; color: #AAB0BA; }
.po2-count.is-pending { color: var(--yellow); font-weight: 600; }
.po2-in12 b.is-unknown { font-size: 0.875rem; font-weight: 600; color: #AAB0BA; }
.po2-bar { display: block; width: 100%; height: 10px; margin-top: 5px; }
.po2-mo { display: flex; justify-content: space-between; margin: 3px 0 0; font-size: 0.75rem; color: #AAB0BA; }
.po2-mo b { color: var(--white); }
.po2-quip { margin: 8px 0 0; font-size: 0.8125rem; color: #D6DAE1; }
.po2-verdict { margin: 14px calc(-1 * clamp(12px, 2vw, 22px)) 0; padding: 14px clamp(12px, 2vw, 22px) 16px; border-top: 1px solid #2F2728; background: #1B1617; font-size: 0.9375rem; }
.po2-verdict b { color: var(--white); }
.po2-verdict.is-pending { color: #AAB0BA; font-style: italic; }
.po2-lava { height: 8px; margin: 0 calc(-1 * clamp(12px, 2vw, 22px)); background: linear-gradient(90deg, #36AEBF 0 33.33%, #3F3691 0 66.66%, #923978 0); }

/* Cash In Hand Over Time: 200px tall and the card's full width at any size, with no script
   (public/part-out-cash.js arenaChartSvg): the SVG is the plot area; the padding holds the money
   axis on the left and room for the last month label on the right. */
.po2-chart-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.po2-legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: 0.8125rem; }
/* Updating (Wei t192u): beside the title while a lookup moves the lines; empty otherwise, so the
   live region stays in place. A slow pulse; still under reduced motion. */
.po2-updating { margin-right: auto; font-size: 0.75rem; font-weight: 700; color: var(--ink-soft); }
.po2-updating:not(:empty)::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; vertical-align: 1px; background: var(--yellow); }
@media (prefers-reduced-motion: no-preference) {
  .po2-updating:not(:empty) { animation: po2-pulse 1.6s ease-in-out infinite; }
  @keyframes po2-pulse { 50% { opacity: 0.55; } }
}
.po2-key::before { content: ""; display: inline-block; width: 14px; height: 3px; margin-right: 6px; border-radius: 2px; vertical-align: middle; background: #05131D; }
.po2-key.is-sealed::before { background: #36AEBF; }
.po2-key.is-figs::before { background: #3F3691; }
.po2-key.is-parts::before { background: #923978; }
.po2-fig { height: 200px; padding: 0 12px 0 56px; overflow: hidden; }
.po2-svg { display: block; width: 100%; height: 200px; overflow: visible; }
.po2-ax { font-size: 12px; fill: #5B6270; }
.po2-ax.is-mark { font-weight: 700; fill: #05131D; }
.po2-cap { margin: 8px 0 0; font-size: 0.8125rem; color: var(--ink-soft); }
.po2-status .po-status { margin: 0; }

/* What Goes Into Your Stock. */
.po2-stock { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 16px; align-items: start; }
.po2-page .pd-pic { aspect-ratio: 1 / 1; }
.po2-page .pd-ids { display: none; }
.po2-tabhead { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.po2-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 14px 0; }
.po2-kpi { min-width: 0; padding: 10px 12px; border: 1px solid #E3E5E7; border-radius: 12px; container-type: inline-size; }
.po2-kpi h4 { margin: 0; font-size: 0.6875rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }
/* $999,999.99 on one line in a 150px card (2026-12-01): 17cqi, never above 1.5rem. */
.po2-kpi b { display: block; margin: 2px 0; font-size: 1.5rem; font-size: clamp(0.875rem, 17cqi, 1.5rem); line-height: 1.2; white-space: nowrap; font-variant-numeric: tabular-nums; }
.po2-kpi p { margin: 0; font-size: 0.75rem; color: var(--ink-soft); }
.po2-sub3 { margin: 0; font-size: 1.0625rem; }
.po2-liq { margin: 6px 0 14px; }
.po2-lbar { display: block; width: 100%; height: 14px; margin-top: 6px; border-radius: 7px; }
.po2-lkey { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin-top: 8px; font-size: 0.75rem; }
.po2-lkey b { display: block; font-size: 0.875rem; }
.po2-lkey span:last-child { color: var(--ink-soft); }
.po2-lk-name::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 2px; background: var(--bk); }
.po2-lk { --bk: #6C6E68; }
.po2-lk.is-hot, .po2-bk.is-hot { --bk: #FE8A18; }
.po2-lk.is-steady, .po2-bk.is-steady { --bk: #3F3691; }
.po2-lk.is-slow, .po2-bk.is-slow { --bk: #582A12; }
.po2-lk.is-rare, .po2-bk.is-rare { --bk: #AA7F2E; }
.po2-lk.is-new, .po2-bk.is-new { --bk: #36AEBF; }
.po2-lk.is-bulk, .po2-bk.is-bulk { --bk: #6C6E68; }
.po2-bk { display: inline-block; padding: 3px 8px; border-radius: 5px; background: var(--bk, #6C6E68); color: #FFFFFF; font-size: 0.625rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; white-space: nowrap; }
.po2-figcall { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; padding: 12px 14px; border: 1px solid #E3E5E7; border-radius: 12px; background: var(--white); }
.po2-figcall h4 { margin: 0 0 2px; font-size: 0.9375rem; }
.po2-figcall p { margin: 0; font-size: 0.8125rem; color: var(--ink-soft); }
.po2-figcall > b { font-size: 1.5rem; white-space: nowrap; }
.po2-figcall[hidden] { display: none; }
/* Turnover first (auto price, Wei 2026-12-01): cash in 3 / 6 / 12 months and the share turned over,
   two tiles a row on a phone; then List These First and Bulk This, laid out like the minifig callout. */
.po2-turn { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); margin-bottom: 4px; }
.po2-turn-note { margin: 0 0 14px; }
.po2-recs { display: grid; gap: 10px; margin-bottom: 14px; }
.po2-recs:empty { display: none; }
.po2-rec { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid #E3E5E7; border-radius: 12px; background: var(--white); }
.po2-rec h4 { margin: 0 0 2px; font-size: 0.9375rem; }
.po2-rec p { margin: 0; font-size: 0.8125rem; color: var(--ink-soft); }
.po2-rec > b { font-size: 1.25rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.po2-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.po2-chip { min-height: 44px; padding: 0 14px; border: 1px solid #868B8F; border-radius: 22px; background: var(--white); color: var(--ink); font: inherit; font-size: 0.8125rem; font-weight: 700; cursor: pointer; }
.po2-chip[aria-pressed="true"] { border-color: #05131D; background: #05131D; color: var(--white); }
.po2-filters input[type="search"] { flex: 1 1 180px; min-width: 0; }
.po2-tblwrap { overflow: visible; }
.po2-lots { width: 100%; border-collapse: collapse; }
.po2-lots th { position: sticky; top: 0; z-index: 3; padding: 8px; border-bottom: 2px solid #E3E5E7; background: var(--white); font-size: 0.75rem; font-weight: 700; text-align: left; color: var(--ink-soft); box-shadow: inset 0 -2px 0 #E3E5E7; }
.po2-lots th.r, .po2-lots td.r { text-align: right; }
.po2-lots td { padding: 7px 8px; border-bottom: 1px solid #E3E5E7; font-size: 0.8125rem; vertical-align: middle; }
.po2-row { cursor: pointer; }
.po2-row:hover td { background: #FAFBFC; }
.po2-row.is-focus td { background: #EEF4FF; }
.po2-row.is-focus td:first-child { box-shadow: inset 4px 0 0 #0055BF; }
.po2-pic img { display: block; width: auto; max-width: 56px; height: 40px; object-fit: contain; }
.po2-nm { min-width: 150px; font-weight: 700; line-height: 1.25; }
.po2-nm small { display: block; font-size: 0.75rem; font-weight: 400; color: var(--ink-soft); }
.po2-qty { font-weight: 800; white-space: nowrap; }
.po2-after { display: block; font-size: 0.75rem; color: var(--ink-soft); white-space: nowrap; }
.po2-liq { min-width: 130px; }
.po2-liqc { display: block; margin-top: 3px; font-size: 0.6875rem; color: var(--ink-soft); }
.po2-liqc em { font-style: normal; font-weight: 700; color: #C91A09; }
.po2-pin { display: inline-flex; align-items: center; gap: 4px; }
.po2-in { width: 88px; height: var(--field-h-sm); min-height: var(--field-h-sm); padding: 0 8px; border-radius: var(--field-radius-sm); font-size: var(--field-font-sm); text-align: right; }
.po2-src { display: block; margin-top: 2px; font-size: 0.6875rem; white-space: nowrap; color: var(--ink-soft); }
.po2-src.is-mine, .po2-src.is-edited { color: #237841; }
.po2-src.is-home, .po2-src.is-world, .po2-src.is-estimate { color: #8A5A00; }
.po2-src.is-floor { color: #C91A09; }
/* The auto price line wraps inside the price column instead of widening the table. */
.po2-src.is-auto, .po2-src.is-sug { max-width: 13rem; margin-left: auto; white-space: normal; }
.po2-src.is-auto { color: #05131D; }
.po2-src.is-median { color: #8A5A00; }
.po2-use { display: inline-flex; align-items: center; height: var(--field-h-sm); min-height: var(--field-h-sm); min-width: 44px; margin: 4px 0 0 4px; padding: 0 10px; border: var(--field-border); border-radius: var(--field-radius-sm); background: var(--white); color: #05131D; font: inherit; font-size: var(--field-font-sm); font-weight: 600; cursor: pointer; }
.po2-use:hover { background: #F4F5F7; }
.po2-use:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.po2-empty { padding: 18px 8px; text-align: center; color: var(--ink-soft); }
.po2-more { height: 1px; }
/* Under the table: how many lots are drawn, then Show More and Show All (44px tap targets). */
.po2-showmore { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-top: 12px; }
.po2-showing { margin: 0; font-size: 0.9375rem; font-weight: 700; color: var(--ink); }
.po2-showing:focus { outline: none; }
.po2-showing:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.po2-showbtns { display: flex; flex-wrap: wrap; gap: 8px; }
.po2-showbtns[hidden], .po2-showmore[hidden] { display: none; }
/* Back to Top (Wei t180u): the end of the page, under the table. */
.po2-top { display: flex; justify-content: center; margin: 0; }
#po2-title:focus:not(:focus-visible) { outline: none; }

/* Review Part Out: a panel that slides up (or the #po2-rv fragment without JavaScript). */
.po2-rv-back { position: fixed; inset: 0; z-index: 40; background: rgba(20, 23, 28, 0.45); }
.po2-rv-back[hidden] { display: none; }
.po2-rv { position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; display: none; justify-content: center; padding: 0 12px; }
.po2-rv:target, .po2-rv.is-open { display: flex; }
.po2-rv-in { width: 100%; max-width: 720px; max-height: 90vh; overflow-y: auto; padding: 18px 20px 20px; border-radius: 16px 16px 0 0; background: var(--white); box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.2); }
@media (prefers-reduced-motion: no-preference) { .po2-rv.is-open .po2-rv-in { animation: po2-up 0.22s ease-out; } }
@keyframes po2-up { from { transform: translateY(40px); opacity: 0.4; } }
.po2-rv-head { display: flex; align-items: center; justify-content: space-between; }
.po2-rv-head h2 { margin: 0; font-size: 1.375rem; }
.po2-rv-x { width: 44px; height: 44px; border: 0; background: transparent; font-size: 1.625rem; cursor: pointer; }
.po2-rv-list { display: grid; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.po2-rv-list li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; padding: 10px 12px; border: 1px solid #E3E5E7; border-radius: 12px; font-size: 0.9375rem; }
.po2-rv-list i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; color: var(--white); font-style: normal; font-weight: 800; }
.po2-rv-list i.is-off { background: #C91A09; }
.po2-rv-list i.is-in { background: #237841; }
.po2-rv-list i.is-floor { background: #AA7F2E; }
.po2-rv-list i.is-queue { background: #0055BF; }
.po2-rv-list small { display: block; font-size: 0.8125rem; color: var(--ink-soft); }
.po2-rv-list a { display: inline-flex; align-items: center; min-height: 24px; font-weight: 700; }
.po2-rv-btns { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.po2-savebar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px clamp(16px, 2.8vw, 40px); border-top: 1px solid #E3E5E7; background: var(--white); box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.06); }
.po2-savebar p { margin: 0; font-size: 0.875rem; }
.po2-savebtns { display: flex; flex: none; gap: 8px; }
.po2-savebar .btn, .po2-rv-btns .btn { min-height: 44px; font-size: 0.9375rem; }
.po2-savebar .btn-red, .po2-rv-btns .btn-red { background: #C91A09; color: #FFFFFF; }
.po2-savebar .btn-red:hover, .po2-rv-btns .btn-red:hover { background: #A51507; }

@media (max-width: 900px) {
  .po2-fighters, .po2-fighters.is-two { grid-template-columns: minmax(0, 1fr); row-gap: 22px; }
  .po2-coin { justify-self: stretch; width: auto; margin: 0; }
  .po2-pic-box { height: 150px; }
  .po2-stock { grid-template-columns: minmax(0, 1fr); }
  .po2-stock .pd-side { position: static; max-height: none; }
  .po2-ctrls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .po2-ctrls > div { min-width: 0; }
  .po2-tblwrap { overflow-x: auto; }
  .po2-lots th { position: static; }
}
@media (max-width: 600px) {
  .po2-setbar { grid-template-columns: 72px minmax(0, 1fr); }
  .po2-thumb img { width: 72px; height: 54px; }
  .po2-facts { grid-column: 1 / -1; }
  .po2-ctrls { grid-template-columns: minmax(0, 1fr); }
  .po2-ctrls select, .po2-paid { width: 100%; }
  .po2-seg { display: flex; }
  .po2-seg .po2-tg { flex: 1 1 0; justify-content: center; }
  .po2-verdict { font-size: 0.875rem; }
  .po2-lots th, .po2-lots td { padding: 6px 5px; }
  .po2-pic img { width: 32px; height: 32px; }
  .po2-thumb .po-nopic { width: 72px; height: 54px; }
  .po2-in { width: 72px; }
  .po2-showbtns { flex: 1 1 100%; }
  .po2-showbtns .btn { flex: 1 1 0; padding: 0 10px; }
  .po2-savebar { flex-wrap: wrap; }
  .po2-savebar p { flex: 1 1 100%; }
  .po2-savebtns { flex: 1 1 100%; }
  .po2-savebtns .btn { flex: 1 1 0; }
}
.po2-card { background: var(--white); border: 1px solid #E3E5E7; border-radius: 16px; box-shadow: 0 1px 2px rgba(5, 19, 29, 0.06); }

/* Run Calculation beside Sold In (Wei, 2026-12-01). */
.po2-runbtn { min-height: 44px; padding: 0 18px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.po2-runbtn:disabled { opacity: .55; cursor: default; }
.po2-runstatus { margin-top: 12px; }
.po2-runstatus .po-status { margin: 0; }
.po2-runstatus .po-count, .po2-runstatus .po-msg, .po2-runstatus .po-look-left { margin: 4px 0; font-size: .875rem; }
@media (max-width: 899px) { .po2-run { grid-column: 1 / -1; } .po2-run .po2-f { display: none; } .po2-runbtn { width: 100%; } }

/* Spares after the main count: +5+1 (Wei, 2026-12-01). */
.po2-spare { color: #2F6BD6; font-weight: 700; }

/* Run Calculation in progress (Wei, 2026-12-01): the mascot hops on the left beside the bar. */
.po2-busy { display: flex; align-items: center; gap: 14px; padding: 12px 14px; margin-bottom: 10px; border: 1px solid #E5E7EB; border-radius: 12px; background: #FFFFFF; }
.po2-busy[hidden] { display: none; }
.po2-mascot { --mascot: 3.5rem; }
.po2-busy-txt { flex: 1; min-width: 0; }
.po2-busy-line { margin: 0 0 6px; font-weight: 700; }
.po2-busy-n { margin: 4px 0 0; font-size: .8125rem; color: #5B6270; font-variant-numeric: tabular-nums; }
.po2-busy-left { margin: 6px 0 0; font-size: .9375rem; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.po2-busy-left[hidden] { display: none; }
/* A row whose price or speed chip a lookup just filled in (Wei t165u): a light turquoise fade, 1.2s.
   Reduced motion: no fade, a still outline for the same 1.2s (the class comes off after that). */
@media (prefers-reduced-motion: no-preference) {
  .po2-row.is-fresh > td { animation: po2-fresh 1.2s ease-out; }
  @keyframes po2-fresh { from { background-color: #e8f6f7; } to { background-color: transparent; } }
}
@media (prefers-reduced-motion: reduce) { .po2-row.is-fresh { outline: 2px solid var(--dark-turquoise); outline-offset: -2px; } }
.po2-prog { height: 10px; border-radius: 5px; background: #ECEEF1; overflow: hidden; }
.po2-prog i { display: block; height: 100%; width: var(--p, 0%); border-radius: 5px; background: #C91A09; transition: width .4s ease; }
@media (prefers-reduced-motion: no-preference) {
  .po2-busy:not([hidden]) .po2-mascot { animation: po2-hop .8s ease-in-out infinite; }
  @keyframes po2-hop { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
}
@media (prefers-reduced-motion: reduce) { .po2-prog i { transition: none; } }
