/* Parcel — Products view (owned by the products view).
   Page content is scoped under .view-products; the Add to store / Edit sheets live in the overlay layer and
   are scoped under .pr-sheet. Pieces used in both (art, product-page preview, split bar) use :is(). */

/* ================================================================ shared */
:is(.view-products, .pr-sheet) .pr-art { position: relative; overflow: hidden; background: var(--bg-3); }
:is(.view-products, .pr-sheet) .pr-art svg { width: 100%; height: 100%; display: block; }
/* A whisper of an edge so light art never melts into a white card. */
:is(.view-products, .pr-sheet) .pr-art::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 .5px var(--pr-art-edge, rgba(0, 0, 0, .07));
}
/* The art follows the theme (dark studio in dark mode), so its hairline edge does too. */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) :is(.view-products, .pr-sheet) { --pr-art-edge: rgba(255, 255, 255, .08); } }
:root[data-theme="dark"] :is(.view-products, .pr-sheet) { --pr-art-edge: rgba(255, 255, 255, .08); }

:is(.view-products, .pr-sheet) .pr-reveal { animation: pr-reveal 460ms var(--ease-out) both; animation-delay: var(--d, 0ms); }
@keyframes pr-reveal { from { opacity: 0; transform: translateY(8px); } }

.view-products .pr-switch { margin: 0 0 var(--sp-6); }
@media (min-width: 768px) { .view-products .pr-switch { max-width: 360px; } }

.view-products .pr-notfound { padding-top: var(--sp-8); }

/* Score gauge (ring + number) */
:is(.view-products, .pr-sheet) .pr-gauge { display: inline-grid; place-items: center; color: var(--tone); flex: none; }
:is(.view-products, .pr-sheet) .pr-gauge-svg { display: block; }

/* ================================================================ My products */
.view-products .pr-groups { display: flex; flex-direction: column; }
.view-products .pr-count { margin-left: 6px; color: var(--label-2); font-variant-numeric: tabular-nums; }
.view-products .pr-cols { display: none; }

.view-products .pr-row {
  --thumb: 60px;
  --pad: 16px;
  --colgap: 12px;
  position: relative;
  display: grid;
  grid-template-columns: var(--thumb) minmax(0, 1fr) auto 10px;
  grid-template-areas:
    "thumb title title chev"
    "thumb meta  trail chev"
    "thumb sub   sub   chev";
  align-items: center;
  column-gap: var(--colgap);
  row-gap: 2px;
  min-height: 88px;
  padding: 12px 14px 12px var(--pad);
  transition: background-color var(--dur-press) linear;
}
.view-products .pr-row + .pr-row::before {
  content: ""; position: absolute; top: 0; right: 0; left: calc(var(--pad) + var(--thumb) + var(--colgap));
  height: var(--hairline); background: var(--sep);
}
.view-products .pr-row:has(.pr-row-link:active) { background: var(--row-pressed); }
@media (hover: hover) and (pointer: fine) {
  .view-products .pr-row:has(.pr-row-link:hover) { background: var(--fill-4); }
  .view-products .pr-row:has(.pr-row-link:active) { background: var(--row-pressed); }
}
.view-products .pr-thumb { grid-area: thumb; grid-row: 1 / -1; width: var(--thumb); height: var(--thumb); border-radius: 13px; }
.view-products .pr-row-main { display: contents; }
.view-products .pr-row-link { grid-area: title; display: flex; align-items: center; gap: 7px; color: inherit; outline: none; min-width: 0; }
.view-products .pr-new-dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.view-products .pr-row-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.view-products .pr-row-link:focus-visible::after { outline: 2.5px solid var(--accent); outline-offset: -3px; border-radius: var(--r-list); }
.view-products .pr-row-title {
  display: block;
  font-size: var(--fs-body); line-height: var(--lh-body); letter-spacing: var(--ls-body); font-weight: var(--w-semibold);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
/* Phones and tablets: a long name ("Pet Hair Remover Roller" at 320) takes a second line instead of being cut. */
@media (max-width: 1199.98px) {
  .view-products .pr-row-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; white-space: normal; overflow-wrap: anywhere; text-wrap: pretty; }
}
.view-products .pr-row-meta { grid-area: meta; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; min-width: 0; font-size: var(--fs-subhead); line-height: 20px; }
/* A long status ("Out of stock at CJ") pushes the price onto its own line instead of under the profit. */
.view-products .pr-row-meta .pill { max-width: 100%; }
.view-products .pr-row-price { color: var(--label); font-variant-numeric: tabular-nums; }
.view-products .pr-row-sub {
  grid-area: sub;
  font-size: var(--fs-footnote); line-height: var(--lh-footnote); color: var(--label-2);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.view-products .pr-cell { display: none; }
.view-products .pr-c-profit, .view-products .pr-c-action {
  grid-area: trail; display: flex; align-items: center; justify-content: flex-end; gap: 10px;
}
.view-products .pr-profit { font-size: var(--fs-callout); line-height: 20px; font-weight: var(--w-semibold); font-variant-numeric: tabular-nums; }
.view-products .pr-profit.is-none { font-size: var(--fs-footnote); font-weight: var(--w-regular); color: var(--label-2); }
.view-products .pr-spark { display: none; }
.view-products .pr-c-action { position: relative; z-index: 2; margin-block: -6px; }
.view-products .pr-get { font-weight: var(--w-semibold); }
/* disclosureChevron (16pt) in a 10px track: it overflows into the row padding, 13px from the edge like listRow's. */
.view-products .pr-row-chevron { grid-area: chev; grid-row: 1 / -1; justify-self: end; margin-right: -1px; }
.view-products .pr-row.is-paused .pr-thumb { opacity: .6; filter: saturate(.3); }
.view-products .pr-findmore { margin-top: var(--sp-7); }
.view-products .pr-group-head .pr-head-aside { font-size: 13px; line-height: 18px; color: var(--label-2); text-transform: uppercase; white-space: nowrap; padding-right: 20px; }

@media (min-width: 768px) {
  .view-products .pr-spark { display: block; }
}
@media (max-width: 374.98px) {
  .view-products .pr-row { --thumb: 44px; --colgap: 10px; --pad: 12px; }
  .view-products .pr-row-meta { gap: 6px; font-size: 14px; }
  .view-products .pr-profit { font-size: 15px; }
}
.view-products .pr-lbl-short { display: none; }
@media (max-width: 374.98px) {
  .view-products .pr-lbl-long { display: none; }
  .view-products .pr-lbl-short { display: inline; }
}

/* Wide: numbers line up in columns under the group header (macOS-style list). */
@media (min-width: 1200px) {
  .view-products .pr-row,
  .view-products .pr-group-head {
    --thumb: 48px;
    --colgap: 14px;
    display: grid;
    grid-template-columns: var(--thumb) minmax(0, 1fr) 76px 64px 88px 156px 10px;
    grid-template-areas:
      "thumb title price margin be trail chev"
      "thumb meta  price margin be trail chev";
    column-gap: var(--colgap);
  }
  .view-products .pr-row { min-height: 72px; padding-block: 10px; row-gap: 3px; }
  .view-products .pr-row-link { align-self: end; }
  .view-products .pr-row-meta { align-self: start; }
  .view-products .pr-group-head .pr-head-aside { display: none; }
  .view-products .pr-thumb { border-radius: 11px; }
  .view-products .pr-row-sub, .view-products .pr-row-price { display: none; }
  .view-products .pr-cell { display: block; justify-self: end; text-align: right; font-size: var(--fs-body); font-variant-numeric: tabular-nums; }
  .view-products .pr-c-price { grid-area: price; }
  .view-products .pr-c-margin { grid-area: margin; color: var(--label-2); }
  .view-products .pr-c-be { grid-area: be; color: var(--label-2); }
  .view-products .pr-cell.pr-c-profit, .view-products .pr-cell.pr-c-action { display: flex; gap: 12px; }
  .view-products .pr-profit { min-width: 84px; text-align: right; font-size: var(--fs-body); }

  .view-products .pr-group-head { grid-template-areas: "thumb title price margin be trail chev"; align-items: end; padding: 0 14px 7px 16px; }
  .view-products .pr-group-head .list-header-title { grid-column: 1 / 3; }
  .view-products .pr-cols { display: contents; }
  .view-products .pr-col {
    justify-self: end; display: inline-flex; align-items: center; gap: 1px;
    font-size: 13px; line-height: 18px; color: var(--label-2); text-transform: uppercase; white-space: nowrap;
  }
  .view-products .pr-col.pr-c-price { grid-area: price; }
  .view-products .pr-col.pr-c-margin { grid-area: margin; }
  .view-products .pr-col.pr-c-be { grid-area: be; }
  .view-products .pr-col.pr-c-profit { grid-area: trail; }
  .view-products .pr-group-head { position: relative; z-index: 2; } /* the (i) hit areas stay above the first row */
  .view-products .pr-col-info { width: 26px; height: 26px; margin: -5px -8px -5px 0; }
  .view-products .pr-col-info svg { width: 15px; height: 15px; }
}

/* ================================================================ Find new */
.view-products .pr-find-controls { display: flex; flex-direction: column; gap: 12px; }
.view-products .pr-count-row { display: flex; align-items: center; gap: 2px; min-height: 36px; margin: 8px 4px 4px; }
.view-products .pr-count-line { font-size: var(--fs-footnote); line-height: var(--lh-footnote); color: var(--label-2); }
.view-products .pr-count-row .info-btn { width: 30px; height: 30px; margin: -8px 0; }
.view-products .pr-count-row .info-btn svg { width: 15px; height: 15px; }

/* Columns follow the space, not the viewport: 2 on phones, 3 on tablets and small desktops, 4 at 1440,
   5 on large displays (content up to 1200px). */
.view-products .pr-grid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(min(212px, calc(50% - 6px)), 1fr));
}
@media (min-width: 768px) {
  .view-products .pr-grid { gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(212px, calc(50% - 8px)), 1fr)); }
}
.view-products .pr-grid.is-fresh .pr-card { animation: pr-card-in 380ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 16ms); }
@keyframes pr-card-in { from { opacity: 0; transform: translateY(8px) scale(.985); } }

.view-products .pr-card { min-width: 0; }
.view-products .pr-card-link,
.view-products .pr-card.is-skeleton {
  display: flex; flex-direction: column; height: 100%;
  background: var(--bg-2); border-radius: var(--r-card); overflow: hidden;
  color: inherit;
}
.view-products .pr-card-link:focus-visible { outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  .view-products .pr-card-link { transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), opacity var(--dur-press) var(--ease); }
  .view-products .pr-card-link:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0, 0, 0, .08); }
  .view-products .pr-card-link:active { transform: scale(.98); }
}
.view-products .pr-card-media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; }
.view-products .pr-card-media .pr-art { position: absolute; inset: 0; }
.view-products .pr-card-media .pr-art::after { box-shadow: none; }
.view-products .pr-card.is-skeleton .pr-card-media .skeleton { height: 100% !important; border-radius: 0; }
/* One badge row over the art: the score (plus "Review"), or why the idea is out. The queue position and similar tags sit
   under the title (.pr-card-tag), so nothing stacks over the art on narrow cards (G039). */
.view-products .pr-card-badges {
  position: absolute; top: 8px; left: 8px; right: 8px; z-index: 1;
  display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 6px;
  pointer-events: none;
}
.view-products .pr-card-score,
.view-products .pr-card-badge {
  display: inline-flex; align-items: center; gap: 5px; flex: none;
  height: 26px; border-radius: 13px; white-space: nowrap;
  background: color-mix(in srgb, var(--bg-2) 84%, transparent);
  -webkit-backdrop-filter: var(--material-filter); backdrop-filter: var(--material-filter);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .1), 0 0 0 .5px var(--pr-art-edge, rgba(0, 0, 0, .05));
  color: var(--label);
}
.view-products .pr-card-score { padding: 0 9px 0 4px; }
.view-products .pr-card-score .pr-gauge { color: var(--tone-text); }
.view-products .pr-card-score-n { font-family: var(--font-rounded); font-size: 14px; font-weight: var(--w-bold); letter-spacing: -.2px; }
.view-products .pr-card-badge { padding: 0 9px 0 8px; font-size: 12px; font-weight: var(--w-semibold); }
.view-products .pr-card-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
/* Title at the top, price and meta pinned to the bottom: cards in a row line up without a gap under
   one-line titles. */
.view-products .pr-card-body { display: flex; flex-direction: column; padding: 10px 12px 13px; flex: 1 1 auto; }
.view-products .pr-card-title {
  font-size: var(--fs-subhead); line-height: 20px; font-weight: var(--w-semibold); letter-spacing: -.15px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.view-products .pr-card-head { min-width: 0; }
.view-products .pr-card-tag { margin-top: 2px; font-size: 12px; line-height: 16px; font-weight: var(--w-semibold); color: var(--label-2); }
.view-products .pr-card-tag.is-queued { color: var(--accent-text); }
.view-products .pr-card-tag.is-pricey { color: var(--orange-text); }
.view-products .pr-card-end { margin-top: auto; padding-top: 6px; }
.view-products .pr-card-price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.view-products .pr-card-sell { font-family: var(--font-rounded); font-size: 19px; line-height: 23px; font-weight: var(--w-bold); letter-spacing: -.3px; }
.view-products .pr-card-cost { font-size: var(--fs-footnote); color: var(--label-2); }
.view-products .pr-card-meta {
  display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 10px;
  margin-top: 1px; font-size: var(--fs-footnote); line-height: var(--lh-footnote); color: var(--label-2);
}
.view-products .pr-card-margin { color: var(--green-text); font-weight: var(--w-semibold); white-space: nowrap; }
.view-products .pr-card-ship { min-width: 0; }
.view-products .pr-card-ship svg { display: inline-block; vertical-align: -2px; margin-right: 4px; color: var(--label-2); }
@media (min-width: 768px) { .view-products .pr-card-body { padding: 12px 14px 15px; } }
/* Every card in a grid row shares four row tracks (art · title · price · margin and ship days), so prices
   line up across the row whatever wraps above or below them. */
@supports (grid-template-rows: subgrid) {
  .view-products .pr-grid { align-items: stretch; }
  .view-products .pr-card:not(.is-skeleton) { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; }
  .view-products .pr-card:not(.is-skeleton) .pr-card-link,
  .view-products .pr-card:not(.is-skeleton) .pr-card-body { display: grid; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
  .view-products .pr-card:not(.is-skeleton) .pr-card-link { grid-row: 1 / -1; }
  .view-products .pr-card:not(.is-skeleton) .pr-card-body { grid-row: 2 / -1; }
  .view-products .pr-card:not(.is-skeleton) .pr-card-end { display: contents; }
  .view-products .pr-card:not(.is-skeleton) .pr-card-price { padding-top: 6px; align-self: start; }
  .view-products .pr-card:not(.is-skeleton) .pr-card-meta { align-self: start; }
}

/* ================================================================ Hero (catalogue item + my product) */
.view-products .pr-hero { display: grid; gap: 20px; }
.view-products .pr-hero-media { border-radius: 24px; overflow: hidden; aspect-ratio: 1 / 1; }
.view-products .pr-hero-media .pr-art { width: 100%; height: 100%; }
.view-products .pr-hero-info { display: flex; flex-direction: column; min-width: 0; }
.view-products .pr-eyebrow {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  font-size: var(--fs-footnote); line-height: 22px; font-weight: var(--w-semibold); color: var(--label-2);
}
.view-products .pr-hero-title {
  margin-top: 4px;
  font-size: var(--fs-title1); line-height: var(--lh-title1); letter-spacing: var(--ls-title1); font-weight: var(--w-bold);
  overflow-wrap: anywhere; text-wrap: balance;
}
.view-products .pr-hero-desc { margin-top: 2px; font-size: var(--fs-body); line-height: var(--lh-body); color: var(--label-2); text-wrap: pretty; }
.view-products .pr-hero-score { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.view-products .pr-hero-score .ring-label { font-size: 19px; letter-spacing: -.4px; }
.view-products .pr-hero-score-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 0 1 auto; }
.view-products .pr-hero-grade { font-size: var(--fs-headline); line-height: 22px; font-weight: var(--w-semibold); color: var(--tone-text); }
.view-products .pr-hero-score-sub { display: flex; align-items: center; flex-wrap: wrap; gap: 0 4px; font-size: var(--fs-footnote); line-height: 18px; color: var(--label-2); }
.view-products .pr-hero-score-sub .pill { font-size: var(--fs-footnote); font-weight: var(--w-semibold); }
.view-products .pr-hero-score .info-btn { align-self: center; margin-left: -6px; }
.view-products .pr-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.view-products .pr-hero-note { margin-top: 10px; font-size: var(--fs-footnote); line-height: var(--lh-footnote); color: var(--label-2); text-wrap: pretty; }
.view-products .pr-hero-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 10px; margin-top: 8px; }
.view-products .pr-hero-price-value { font-family: var(--font-rounded); font-size: 28px; line-height: 34px; font-weight: var(--w-bold); letter-spacing: -.5px; }
.view-products .pr-hero-price-sub { font-size: var(--fs-subhead); line-height: 20px; color: var(--label-2); }
.view-products .pr-shipline {
  display: flex; align-items: center; gap: 7px; margin-top: 8px;
  font-size: var(--fs-subhead); line-height: 20px; color: var(--label-2);
}
.view-products .pr-shipline svg { color: var(--label-2); flex: none; }

@media (max-width: 767.98px) {
  .view-products .pr-hero-media { border-radius: 22px; }
  .view-products .pr-hero-actions > .btn { flex: 1 1 100%; }
  /* My product: Make ads + Pause side by side, equal widths. */
  .view-products .pr-hero-actions--2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .view-products .pr-hero-actions--2 > .btn { padding-inline: 12px; }
}
@media (min-width: 768px) {
  .view-products .pr-hero-actions--2 > .btn { min-width: 150px; }
}
@media (min-width: 768px) {
  .view-products .pr-hero { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 28px 40px; align-items: center; }
  .view-products .pr-hero-title { font-size: 34px; line-height: 41px; letter-spacing: -.5px; }
}
/* 768–1099: the content column is 700–960px wide (no sidebar below 1024), so the hero stays side by side
   with a smaller title. */
@media (min-width: 768px) and (max-width: 1099.98px) {
  .view-products .pr-hero { gap: 24px 28px; }
  .view-products .pr-hero-title { font-size: var(--fs-title1); line-height: var(--lh-title1); letter-spacing: var(--ls-title1); }
}

/* ================================================================ Info strip (App Store style)
   All six numbers are always visible: 3 × 2 below 1100px, one row of 6 above. No sideways scrolling. */
.view-products .pr-strip {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 16px;
  margin-top: 28px; padding: 14px 0;
  box-shadow: inset 0 var(--hairline) 0 var(--sep), inset 0 calc(-1 * var(--hairline)) 0 var(--sep);
}
@media (min-width: 1100px) { .view-products .pr-strip { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.view-products .pr-strip-cell {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 3px;
  padding: 0 6px; text-align: center; min-width: 0;
}
.view-products .pr-strip-cell + .pr-strip-cell::before {
  content: ""; position: absolute; left: 0; top: 8%; bottom: 8%; width: var(--hairline); background: var(--sep);
}
@media (max-width: 1099.98px) {
  .view-products .pr-strip-cell:nth-child(3n + 1)::before { display: none; }
}
.view-products .pr-strip-label {
  display: inline-flex; align-items: center; justify-content: center; gap: 2px; height: 16px; max-width: 100%;
  font-size: 11px; line-height: 13px; font-weight: var(--w-semibold); letter-spacing: .04em; text-transform: uppercase; color: var(--label-2);
  white-space: nowrap;
}
.view-products .pr-strip-label-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.view-products .pr-strip-info { width: 26px; height: 26px; margin: -8px -9px -8px -4px; }
.view-products .pr-strip-info svg { width: 14px; height: 14px; }
.view-products .pr-strip-value {
  font-family: var(--font-rounded); font-size: 21px; line-height: 26px; font-weight: var(--w-bold); letter-spacing: -.3px;
  white-space: nowrap; max-width: 100%;
}
.view-products .pr-strip-sub { max-width: 100%; font-size: var(--fs-caption); line-height: var(--lh-caption); color: var(--label-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 374.98px) {
  .view-products .pr-strip-cell { padding: 0 2px; }
  .view-products .pr-strip-value { font-size: 19px; line-height: 24px; }
  .view-products .pr-strip-label { letter-spacing: 0; }
  .view-products .pr-strip-info { margin-right: -12px; }
}

/* ================================================================ Cards under the hero */
.view-products .pr-item-grid,
.view-products .pr-detail-grid { display: grid; gap: 16px; margin-top: var(--sp-7); }
.view-products .pr-col-a, .view-products .pr-col-b { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.view-products .pr-col-b:empty { display: none; }
.view-products .pr-col-a > .section, .view-products .pr-col-b > .section { margin-top: 0; }
@media (max-width: 1099.98px) {
  .view-products .pr-item-grid > .pr-col-a, .view-products .pr-item-grid > .pr-col-b { display: contents; }
}
@media (max-width: 1099.98px) {
  .view-products .pr-detail-grid > .pr-col-a, .view-products .pr-detail-grid > .pr-col-b { display: contents; }
  .view-products .pr-play { order: 1; }
  .view-products .pr-chart-card { order: 2; }
  .view-products .pr-ads { order: 3; }
  .view-products .pr-boosters { order: 4; }
  .view-products .pr-page-section { order: 5; }
  .view-products .pr-supplier { order: 6; }
}
@media (min-width: 1100px) {
  .view-products .pr-item-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .view-products .pr-detail-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; gap: 20px; }
  .view-products .pr-detail-grid .pr-col-a, .view-products .pr-detail-grid .pr-col-b { gap: 20px; }
}
/* Sections with their own heading get a little more air above them inside a column. */
.view-products .pr-detail-grid :is(.pr-ads, .pr-boosters, .pr-page-section, .pr-supplier) { margin-top: 12px; }

.view-products .pr-card-foot { margin-top: 14px; font-size: var(--fs-footnote); line-height: var(--lh-footnote); color: var(--label-2); text-wrap: pretty; }

.view-products .pr-facts { display: grid; gap: 12px; margin: 0; }
.view-products .pr-facts dt { font-size: var(--fs-footnote); line-height: 18px; color: var(--label-2); }
.view-products .pr-facts dd { margin: 1px 0 0; font-size: var(--fs-body); line-height: var(--lh-body); }
.view-products .pr-benefits { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; padding-top: 14px; box-shadow: inset 0 var(--hairline) 0 var(--sep); }
.view-products .pr-benefits li { display: flex; align-items: flex-start; gap: 9px; font-size: var(--fs-subhead); line-height: 20px; }
.view-products .pr-benefits svg { color: var(--green); margin-top: 3px; flex: none; }

.view-products .pr-ship-line { font-size: var(--fs-body); line-height: var(--lh-body); font-weight: var(--w-semibold); }
.view-products .pr-ship-note { margin-top: 3px; font-size: var(--fs-footnote); line-height: var(--lh-footnote); color: var(--label-2); text-wrap: pretty; }

/* ================================================================ My product detail */
.view-products .pr-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 1100px) { .view-products .pr-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
.view-products .pr-tiles-note { margin: 10px 4px 0; font-size: var(--fs-footnote); line-height: var(--lh-footnote); color: var(--label-2); text-wrap: pretty; }
.view-products .pr-play-fine { margin-top: 8px; font-size: var(--fs-caption); line-height: var(--lh-caption); color: var(--label-2); text-wrap: pretty; }
.view-products .pr-section-aside { font-size: var(--fs-subhead); color: var(--label-2); white-space: nowrap; }
.view-products .pr-quiet-text { font-size: var(--fs-subhead); line-height: var(--lh-subhead); color: var(--label-2); text-wrap: pretty; }

.view-products .pr-chart-total { font-size: var(--fs-subhead); color: var(--label-2); white-space: nowrap; }
.view-products .pr-chart-total .money { font-weight: var(--w-semibold); }

/* Price playground */
.view-products .pr-play-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.view-products .pr-play-price {
  font-family: var(--font-rounded); font-size: var(--fs-hero); line-height: var(--lh-hero); letter-spacing: var(--ls-hero);
  font-weight: var(--w-bold); font-variant-numeric: tabular-nums;
}
.view-products .pr-play-change { font-size: var(--fs-subhead); color: var(--label-2); transition: color var(--dur-fast) linear; }
.view-products .pr-play-change.is-changed { color: var(--accent-text); font-weight: var(--w-semibold); }
.view-products .pr-play-slider { position: relative; margin-top: 10px; padding-bottom: 18px; }
.view-products .pr-play-range {
  position: absolute; bottom: 0; left: 0; right: 0;
  display: flex; justify-content: space-between;
  font-size: 11px; line-height: 13px; color: var(--label-2); font-variant-numeric: tabular-nums; pointer-events: none;
}
.view-products .pr-play-range .is-hidden { visibility: hidden; }
.view-products .pr-play-marker {
  position: absolute; bottom: 0; left: calc(14px + (100% - 28px) * var(--x));
  transform: translateX(-50%);
  font-size: 11px; line-height: 13px; font-weight: var(--w-semibold); color: var(--label-2);
  text-transform: uppercase; letter-spacing: .03em; pointer-events: none;
}
.view-products .pr-play-marker::before {
  content: ""; position: absolute; left: 50%; top: -8px; width: 2px; height: 5px; margin-left: -1px; border-radius: 1px; background: var(--label-3);
}
.view-products .pr-metrics {
  /* Margin ("70%") needs the least room; "Before ads ⓘ" with "$27.96" under it the most. */
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr) minmax(0, 1fr);
  margin-top: 14px; padding: 14px 0;
  box-shadow: inset 0 var(--hairline) 0 var(--sep), inset 0 calc(-1 * var(--hairline)) 0 var(--sep);
}
.view-products .pr-metric { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 0 12px; min-width: 0; }
.view-products .pr-metric:first-child { padding-left: 0; }
.view-products .pr-metric + .pr-metric::before { content: ""; position: absolute; left: 0; top: 4%; bottom: 4%; width: var(--hairline); background: var(--sep); }
.view-products .pr-metric-label { display: flex; align-items: center; font-size: var(--fs-footnote); line-height: 18px; color: var(--label-2); white-space: nowrap; }
.view-products .pr-metric-value {
  font-family: var(--font-rounded); font-size: 24px; line-height: 30px; font-weight: var(--w-bold); letter-spacing: -.4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: color var(--dur-fast) linear;
}
@media (max-width: 374.98px) {
  .view-products .pr-metric-value { font-size: 20px; line-height: 26px; }
  .view-products .pr-metric { padding: 0 8px; }
}
/* Under 360pt three labels with their ⓘ buttons don't fit side by side: one row each, label left, value right. */
@media (max-width: 359.98px) {
  .view-products .pr-metrics { grid-template-columns: minmax(0, 1fr); padding: 7px 0; }
  .view-products .pr-metric { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 0; }
  .view-products .pr-metric + .pr-metric::before { display: none; }
  .view-products .pr-metric-value { flex: 0 1 auto; }
}
.view-products .pr-play .pr-split { margin-top: 18px; }
.view-products .pr-play-sentence { margin-top: 14px; font-size: var(--fs-subhead); line-height: var(--lh-subhead); color: var(--label-2); text-wrap: pretty; }
.view-products .pr-play-sentence.t-warn { color: var(--orange-text); }
.view-products .pr-play-sentence.t-neg { color: var(--red-text); }
.view-products .pr-play-actions {
  display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap;
  margin-top: 14px; padding-top: 14px; box-shadow: inset 0 var(--hairline) 0 var(--sep);
}
.view-products .pr-play-actions:not([hidden]) { animation: pr-reveal 300ms var(--ease-out) both; }
.view-products .pr-play-note { flex: 1 1 220px; min-width: 0; font-size: var(--fs-footnote); line-height: var(--lh-footnote); color: var(--label-2); text-wrap: pretty; }
.view-products .pr-play-buttons { display: flex; gap: 8px; margin-left: auto; }

/* Ads list */
.view-products .pr-ad-thumb { width: 48px; height: 48px; border-radius: 10px; overflow: hidden; background: var(--bg-3); }
.view-products .pr-ad-thumb svg { width: 100%; height: 100%; display: block; }
/* Pill, then one line under it (every row the same shape); a long line (an autopilot stop reason) wraps
   instead of being cut off. */
.view-products .pr-ad-sub { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; margin-top: 3px; }
.view-products .pr-ad-sub-text { min-width: 0; white-space: normal; text-wrap: pretty; }
.view-products .pr-ad-roas { font-weight: var(--w-semibold); color: var(--tone-text); }
.view-products .pr-ad-roas.tone-gray { font-weight: var(--w-regular); color: var(--label-2); }
.view-products .pr-metric-info { width: 26px; height: 26px; margin: -6px -4px -6px 0; }
.view-products .pr-metric-info svg { width: 15px; height: 15px; }

/* ================================================================ Split bar ("where each sale goes") */
:is(.view-products, .pr-sheet) .pr-split-bar { display: flex; gap: 2px; height: 12px; border-radius: 6px; overflow: hidden; background: var(--fill-3); }
:is(.view-products, .pr-sheet) .pr-split-seg { flex: 0 1 0; min-width: 3px; background: var(--c); transition: flex-grow 320ms var(--ease); }
:is(.view-products, .pr-sheet) .pr-split-seg.is-empty { display: none; }
:is(.view-products, .pr-sheet) .pr-split-legend { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 12px; }
:is(.view-products, .pr-sheet) .pr-split-item { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: var(--fs-footnote); line-height: 18px; white-space: nowrap; }
:is(.view-products, .pr-sheet) .pr-split-item[hidden] { display: none; }
:is(.view-products, .pr-sheet) .pr-split-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c); flex: none; }
:is(.view-products, .pr-sheet) .pr-split-lbl { color: var(--label-2); }
:is(.view-products, .pr-sheet) .pr-split-val { font-weight: var(--w-semibold); }
:is(.view-products, .pr-sheet) .pr-split-item.is-loss .pr-split-val { color: var(--red-text); }

/* ================================================================ Product page preview (store mock) */
:is(.view-products, .pr-sheet) .pr-page { margin: 0; container-type: inline-size; background: var(--bg-2); border-radius: var(--r-card); overflow: hidden; }
:is(.view-products, .pr-sheet) .pr-page-bar { display: flex; justify-content: center; padding: 10px 12px; box-shadow: inset 0 calc(-1 * var(--hairline)) 0 var(--sep); }
:is(.view-products, .pr-sheet) .pr-page-url {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px; max-width: min(100%, 420px); min-width: 0;
  height: 30px; padding: 0 14px; border-radius: 10px;
  background: var(--fill-3); color: var(--label-2);
  font-size: 12px; line-height: 16px;
}
:is(.view-products, .pr-sheet) .pr-page-url svg { flex: none; color: var(--label-2); }
:is(.view-products, .pr-sheet) .pr-page-body { padding: 0 16px 20px; }
:is(.view-products, .pr-sheet) .pr-page-store {
  display: flex; align-items: center; justify-content: space-between; height: 48px;
  font-size: 12px; font-weight: var(--w-bold); letter-spacing: .14em; text-transform: uppercase; color: var(--label);
}
:is(.view-products, .pr-sheet) .pr-page-store svg { color: var(--label); }
:is(.view-products, .pr-sheet) .pr-page-grid { display: grid; gap: 16px; }
:is(.view-products, .pr-sheet) .pr-page-media { border-radius: 14px; overflow: hidden; aspect-ratio: 1 / 1; }
:is(.view-products, .pr-sheet) .pr-page-media .pr-art { width: 100%; height: 100%; }
:is(.view-products, .pr-sheet) .pr-page-info { min-width: 0; display: flex; flex-direction: column; }
:is(.view-products, .pr-sheet) .pr-page-title { font-size: 22px; line-height: 28px; font-weight: var(--w-bold); letter-spacing: -.35px; overflow-wrap: anywhere; }
:is(.view-products, .pr-sheet) .pr-page-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-top: 8px; }
:is(.view-products, .pr-sheet) .pr-page-price-value { font-size: 20px; line-height: 25px; font-weight: var(--w-semibold); font-variant-numeric: tabular-nums; }
:is(.view-products, .pr-sheet) .pr-page-price-note { font-size: var(--fs-footnote); color: var(--label-2); }
:is(.view-products, .pr-sheet) .pr-page-was { margin-left: -4px; font-size: var(--fs-subhead); color: var(--label-2); font-variant-numeric: tabular-nums; }
:is(.view-products, .pr-sheet) .pr-page-was s { text-decoration-thickness: 1px; }
:is(.view-products, .pr-sheet) .pr-page-cart {
  display: grid; place-items: center; height: 46px; margin-top: 14px; border-radius: 23px;
  background: var(--label); color: var(--bg-2);
  font-size: 16px; font-weight: var(--w-semibold); letter-spacing: -.2px;
  -webkit-user-select: none; user-select: none;
}
:is(.view-products, .pr-sheet) .pr-page-ship {
  display: flex; align-items: flex-start; gap: 10px; margin-top: 12px; padding: 11px 12px;
  border-radius: 12px; background: var(--bg-3);
  font-size: var(--fs-footnote); line-height: 18px; color: var(--label);
}
:is(.view-products, .pr-sheet) .pr-page-ship > svg { color: var(--label-2); flex: none; }
:is(.view-products, .pr-sheet) .pr-page-ship-text { flex: 1 1 auto; }
:is(.view-products, .pr-sheet) .pr-page-lock { display: inline-flex; color: var(--label-2); margin-top: 3px; }
:is(.view-products, .pr-sheet) .pr-page-bullets { display: flex; flex-direction: column; gap: 9px; margin-top: 16px; }
:is(.view-products, .pr-sheet) .pr-page-bullets li { display: flex; align-items: flex-start; gap: 9px; font-size: var(--fs-subhead); line-height: 20px; }
:is(.view-products, .pr-sheet) .pr-page-bullets li > svg { color: var(--green); margin-top: 3px; flex: none; }
:is(.view-products, .pr-sheet) .pr-page-bullet-text { flex: 1 1 auto; min-width: 0; }
:is(.view-products, .pr-sheet) .pr-page-desc {
  margin-top: 16px; font-size: var(--fs-subhead); line-height: 21px; color: var(--label-2);
  white-space: pre-wrap; overflow-wrap: anywhere;
}
:is(.view-products, .pr-sheet) .pr-page-skel { display: flex; flex-direction: column; gap: 8px; }
@container (min-width: 560px) {
  :is(.view-products, .pr-sheet) .pr-page-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; padding-top: 4px; }
  :is(.view-products, .pr-sheet) .pr-page-title { font-size: 24px; line-height: 30px; }
}

/* Editable in place */
:is(.view-products, .pr-sheet) .pr-page.is-editable .pr-edit {
  margin: -3px -5px; padding: 3px 5px; border-radius: 7px;
  cursor: text; outline: none;
  transition: background-color var(--dur-fast) linear, box-shadow var(--dur-fast) linear;
  -webkit-user-select: text; user-select: text;
}
:is(.view-products, .pr-sheet) .pr-page.is-editable .pr-page-desc.pr-edit { margin-top: 13px; }
@media (hover: hover) and (pointer: fine) {
  :is(.view-products, .pr-sheet) .pr-page.is-editable .pr-edit:hover { background: var(--fill-4); }
}
:is(.view-products, .pr-sheet) .pr-page.is-editable .pr-edit:focus {
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  box-shadow: 0 0 0 2px var(--accent);
}
:is(.view-products, .pr-sheet) .pr-edit.is-empty::before { content: attr(aria-label); color: var(--label-3); pointer-events: none; }

/* ================================================================ Sheets: Add to store + Edit product page */
.pr-sheet .sheet-body { padding-bottom: 20px; }
.pr-sheet .pr-add { display: flex; flex-direction: column; gap: 16px; }
.pr-sheet .pr-gen-head { display: flex; align-items: center; gap: 16px; padding: 6px 2px 2px; }
.pr-sheet .pr-gen-art { position: relative; width: 64px; height: 64px; flex: none; isolation: isolate; }
.pr-sheet .pr-gen-art .pr-art { position: absolute; inset: 0; border-radius: 15px; z-index: 1; }
/* A flowing colour edge while Parcel is writing (Apple Intelligence style). */
@property --pr-a { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.pr-sheet .pr-gen-art::before,
.pr-sheet .pr-gen-art::after {
  content: ""; position: absolute; inset: -3px; border-radius: 18px; z-index: 0;
  background: conic-gradient(from var(--pr-a), #0A84FF, #5E5CE6, #BF5AF2, #FF375F, #FF9F0A, #30D158, #0A84FF);
  opacity: 0; transition: opacity 600ms linear;
}
.pr-sheet .pr-gen-art::after { inset: 0; filter: blur(10px); }
.pr-sheet .pr-gen-art.is-working::before { opacity: 1; animation: pr-glow 2.6s linear infinite; }
.pr-sheet .pr-gen-art.is-working::after { opacity: .6; animation: pr-glow 2.6s linear infinite; }
@keyframes pr-glow { to { --pr-a: 360deg; } }
.pr-sheet .pr-gen-spark {
  position: absolute; right: -7px; bottom: -7px; z-index: 2;
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--bg-2); color: var(--accent);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .12);
  transition: transform 300ms var(--ease), opacity 300ms linear;
}
.pr-sheet .pr-gen-spark svg { animation: pr-twinkle 1.6s ease-in-out infinite; }
.pr-sheet .pr-gen-art:not(.is-working) .pr-gen-spark { transform: scale(.4); opacity: 0; }
@keyframes pr-twinkle { 50% { transform: scale(.8) rotate(-14deg); opacity: .65; } }
.pr-sheet .pr-gen-text { min-width: 0; }
.pr-sheet .pr-gen-title { font-size: var(--fs-title3); line-height: var(--lh-title3); font-weight: var(--w-bold); letter-spacing: var(--ls-title3); text-wrap: balance; }
.pr-sheet .pr-gen-sub { margin-top: 2px; font-size: var(--fs-subhead); line-height: var(--lh-subhead); color: var(--label-2); text-wrap: pretty; }
.pr-sheet .pr-gen-check { display: inline-block; color: var(--green); vertical-align: -3px; margin-right: 5px; --knockout: var(--bg); }

.pr-sheet .pr-gen-steps { background: var(--bg-2); border-radius: var(--r-list); padding: 2px 16px; }
.pr-sheet .pr-gen-steps .step { min-height: 58px; padding: 9px 0; }
.pr-sheet .pr-gen-steps .step { position: relative; }
.pr-sheet .pr-gen-steps .step + .step::before { content: ""; position: absolute; top: 0; left: 38px; right: -16px; height: var(--hairline); background: var(--sep); }
.pr-sheet .pr-gen-steps .step-indicator { --knockout: var(--bg-2); }
.pr-sheet .pr-gen-steps .step-label { font-size: var(--fs-callout); line-height: var(--lh-callout); }
.pr-sheet .pr-gen-steps .step-note { color: var(--label-2); margin-top: 1px; }
.pr-sheet .pr-gen-steps .step.is-pending .step-note { color: var(--label-2); }
.pr-sheet .pr-gen-steps .step.is-failed .step-note { color: var(--red-text); }

.pr-sheet .pr-price-card { background: var(--bg-2); border-radius: var(--r-list); padding: 14px 16px 10px; }
.pr-sheet .pr-price-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pr-sheet .pr-price-text { display: flex; flex-direction: column; min-width: 0; }
.pr-sheet .pr-price-label { font-size: var(--fs-footnote); line-height: 18px; color: var(--label-2); }
.pr-sheet .pr-price-value { font-family: var(--font-rounded); font-size: 30px; line-height: 36px; font-weight: var(--w-bold); letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.pr-sheet .pr-price-econ { display: flex; flex-wrap: wrap; gap: 2px 6px; margin-top: 8px; font-size: var(--fs-subhead); line-height: 20px; color: var(--label-2); }
.pr-sheet .pr-price-econ b { color: var(--label); font-weight: var(--w-semibold); }
.pr-sheet .pr-dot { color: var(--label-3); }
.pr-sheet .pr-price-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; min-height: 32px; }
.pr-sheet .pr-price-warn { font-size: var(--fs-footnote); line-height: 18px; }
.pr-sheet .pr-price-reset { flex: none; font-size: var(--fs-subhead); color: var(--accent-text); min-height: 32px; padding: 0 2px; }
.pr-sheet .pr-price-reset:active { opacity: .45; }
.pr-sheet .pr-price-reset:disabled { opacity: .45; }
@media (hover: hover) and (pointer: fine) {
  .pr-sheet .pr-price-reset:not(:disabled):hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
}
.pr-sheet .pr-price-warn { text-wrap: pretty; }

.pr-sheet .pr-preview-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 6px 16px 0; margin-bottom: -9px; }
.pr-sheet .pr-preview-title { flex: none; white-space: nowrap; font-size: 13px; line-height: 18px; color: var(--label-2); text-transform: uppercase; font-weight: var(--w-regular); }
.pr-sheet .pr-preview-hint { display: inline-flex; align-items: center; gap: 5px; min-width: 0; font-size: var(--fs-footnote); line-height: 18px; color: var(--label-2); }
.pr-sheet .pr-preview-head .pr-preview-hint { white-space: nowrap; }
.pr-sheet .pr-preview-hint--lead { display: flex; padding: 4px 4px 12px; }
.pr-sheet .pr-was { margin-top: 28px; }
.pr-sheet .pr-was-value { font-variant-numeric: tabular-nums; }
.pr-sheet .pr-preview-hint svg { color: var(--accent); flex: none; }

.pr-sheet .pr-sheet-foot {
  flex: none; position: relative; z-index: 2;
  padding: 12px 16px 10px;
  background: var(--material);
  -webkit-backdrop-filter: var(--material-filter); backdrop-filter: var(--material-filter);
  box-shadow: inset 0 var(--hairline) 0 var(--sep);
}
.pr-sheet.is-modal .pr-sheet-foot { padding: 14px 24px 12px; }
.pr-sheet .pr-sheet-note { margin-top: 7px; text-align: center; font-size: var(--fs-caption); line-height: var(--lh-caption); color: var(--label-2); }

/* ================================================================ M1.5: statuses, product check, notices */
.view-products .pr-empty { padding-top: var(--sp-6); }
.view-products .pr-hold { display: flex; flex-direction: column; gap: 10px; margin: 0 0 var(--sp-6); }
.view-products .pr-hold-link {
  display: grid; grid-template-columns: 29px minmax(0, 1fr) 10px; align-items: center; column-gap: 12px;
  padding: 12px 14px 12px 16px; border-radius: var(--r-list); color: inherit;
  background: color-mix(in srgb, var(--orange) 13%, var(--bg-2));
  transition: filter var(--dur-press) linear;
}
.view-products .pr-hold-link:active { filter: brightness(.94); }
@media (hover: hover) and (pointer: fine) { .view-products .pr-hold-link:hover .pr-hold-title { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; } }
.view-products .pr-hold-icon { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 7px; background: var(--orange); color: #fff;
  /* the filled triangle's "!" is knocked out in the tile's colour (white-on-white in light mode otherwise, G036) */
  --knockout: var(--orange); }
.view-products .pr-hold-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.view-products .pr-hold-title { font-size: var(--fs-callout); line-height: var(--lh-callout); font-weight: var(--w-semibold); }
.view-products .pr-hold-sub { font-size: var(--fs-footnote); line-height: var(--lh-footnote); color: var(--label); text-wrap: pretty; }
.view-products .pr-hold-chev { justify-self: end; margin-right: -1px; }
.view-products .pr-hold-due { margin-top: 2px; font-size: var(--fs-footnote); line-height: var(--lh-footnote); font-weight: var(--w-semibold); color: var(--orange-text); }
.view-products .pr-row-sub.is-warn { color: var(--orange-text); }
.view-products .pr-row-note { display: none; }
@media (min-width: 1200px) {
  .view-products .pr-row-note {
    display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    font-size: var(--fs-footnote); color: var(--label-2);
  }
  .view-products .pr-row-note.is-warn { color: var(--orange-text); }
}
.view-products .pr-row.is-retired .pr-thumb { opacity: .55; filter: grayscale(.8); }
.view-products .pr-row.is-hold .pr-thumb { opacity: .7; filter: saturate(.4); }

/* A product that's off the store: why, above the hero (safety hold with the ACCC duty, or retired). */
.view-products .pr-notice {
  display: flex; align-items: flex-start; gap: 14px;
  margin: 0 0 var(--sp-6); padding: 16px 18px 17px;
  border-radius: var(--r-card); background: var(--bg-2);
}
.view-products .pr-notice.is-hold { background: color-mix(in srgb, var(--orange) 13%, var(--bg-2)); }
.view-products .pr-notice-icon { flex: none; margin-top: 1px; color: var(--gray); }
.view-products .pr-notice.is-hold .pr-notice-icon { color: var(--orange); }
.view-products .pr-notice.is-stock .pr-notice-icon { color: var(--orange); }
.view-products .pr-notice-due { font-weight: var(--w-semibold); color: var(--orange-text); }
.view-products .pr-notice-text { min-width: 0; font-size: var(--fs-subhead); line-height: var(--lh-subhead); text-wrap: pretty; }
.view-products .pr-notice-title { font-size: var(--fs-headline); line-height: var(--lh-headline); font-weight: var(--w-semibold); margin-bottom: 3px; }
.view-products .pr-notice-text p + p { margin-top: 6px; }
.view-products .pr-notice-link {
  display: inline-flex; align-items: center; gap: 4px; margin-top: 10px; min-height: 24px;
  color: var(--accent-text); font-weight: var(--w-semibold);
}
.view-products .pr-notice-link:active { opacity: .5; }
@media (hover: hover) and (pointer: fine) { .view-products .pr-notice-link:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; } }
.view-products .pr-hero.is-off .pr-hero-media .pr-art { opacity: .72; filter: saturate(.35); }

/* Its test (product page) */
.view-products .pr-test-top { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; }
.view-products .pr-test-nums { font-size: var(--fs-subhead); line-height: 20px; color: var(--label-2); font-variant-numeric: tabular-nums; }
.view-products .pr-test-text { margin-top: 10px; font-size: var(--fs-subhead); line-height: var(--lh-subhead); text-wrap: pretty; }
@media (max-width: 1099.98px) { .view-products .pr-test-card { order: 0; } }

/* ================================================================ CJ catalogue: sections by product check */
.view-products .pr-find-notice { margin: 0 0 var(--sp-5); }
.view-products .pr-find-fresh { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 2px 14px; align-items: start; }
.view-products .pr-find-fresh-icon {
  grid-row: span 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px;
  color: #fff; background: linear-gradient(140deg, var(--indigo), var(--blue));
}
.view-products .pr-find-fresh-title { font-size: var(--fs-headline); line-height: var(--lh-headline); font-weight: var(--w-semibold); }
.view-products .pr-find-fresh-text p { margin-top: 2px; font-size: var(--fs-subhead); line-height: var(--lh-subhead); color: var(--label-2); text-wrap: pretty; }
.view-products .pr-find-fresh-btn { grid-column: 2; justify-self: start; margin-top: 12px; }
@media (min-width: 768px) {
  .view-products .pr-find-fresh { grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; }
  .view-products .pr-find-fresh-icon { grid-row: auto; }
  .view-products .pr-find-fresh-btn { grid-column: 3; margin: 0; }
}
.view-products .pr-res-section + .pr-res-section { margin-top: var(--sp-7); }
.view-products .pr-res-head { margin: 4px 4px 12px; }
.view-products .pr-res-title {
  display: flex; align-items: center; gap: 8px;
  font-size: var(--fs-headline); line-height: var(--lh-headline); font-weight: var(--w-semibold); letter-spacing: -.2px;
}
.view-products .pr-res-icon { flex: none; color: var(--green); }
.view-products .pr-res-section.is-review .pr-res-icon { color: var(--orange); }
.view-products .pr-res-section.is-excluded .pr-res-icon { color: var(--gray); }
.view-products .pr-res-count { margin-left: 2px; color: var(--label-2); font-weight: var(--w-regular); font-variant-numeric: tabular-nums; }
.view-products .pr-res-foot { margin: 12px 4px 0; max-width: 680px; font-size: var(--fs-footnote); line-height: var(--lh-footnote); color: var(--label-2); text-wrap: pretty; }

.view-products .pr-card-badge.is-excluded::before,
.view-products .pr-card-badge.is-review::before { content: none; }
.view-products .pr-card-badge.is-excluded { gap: 4px; color: var(--label-2); }
.view-products .pr-card-badge.is-review { gap: 4px; color: var(--orange-text); }
.view-products .pr-card.is-excluded .pr-card-media .pr-art { opacity: .5; filter: grayscale(1); }
.view-products .pr-card.is-excluded .pr-card-title { color: var(--label-2); }
.view-products .pr-card-reason {
  margin-top: auto; padding-top: 6px;
  font-size: var(--fs-footnote); line-height: var(--lh-footnote); color: var(--label-2);
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; text-wrap: pretty;
}
.view-products .pr-card-reason.is-review { margin-top: 1px; padding-top: 0; color: var(--label); }
@supports (grid-template-rows: subgrid) {
  .view-products .pr-card:not(.is-skeleton) .pr-card-reason { align-self: start; margin-top: 0; }
  .view-products .pr-card.is-excluded:not(.is-skeleton) .pr-card-reason { grid-row: span 2; }
}

/* ================================================================ Catalogue item: score with sources, product check */
.view-products .pr-grade-tag { font-size: var(--fs-subhead); font-weight: var(--w-semibold); color: var(--tone-text); white-space: nowrap; }
.view-products .pr-reasons-card .score-parts { margin-top: -4px; }
.view-products .pr-checks { display: flex; flex-direction: column; }
.view-products .pr-check { display: flex; align-items: flex-start; gap: 12px; }
.view-products .pr-check-icon { flex: none; margin-top: 9px; color: var(--green); --knockout: var(--bg-2); }
.view-products .pr-check.is-fail .pr-check-icon { color: var(--red); }
.view-products .pr-check.is-ask .pr-check-icon { color: var(--orange); }
.view-products .pr-check-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; padding: 9px 0 10px; }
.view-products .pr-check + .pr-check .pr-check-text { box-shadow: inset 0 var(--hairline) 0 var(--sep); }
.view-products .pr-check-label { font-size: var(--fs-subhead); line-height: 20px; font-weight: var(--w-semibold); }
.view-products .pr-check.is-fail .pr-check-label { color: var(--red-text); }
.view-products .pr-check-note { font-size: var(--fs-footnote); line-height: var(--lh-footnote); color: var(--label-2); text-wrap: pretty; }
.view-products .pr-hero.is-excluded .pr-hero-media .pr-art { opacity: .6; filter: grayscale(.9); }
.view-products .pr-hero-note.is-excluded,
.view-products .pr-hero-note.is-review { display: flex; align-items: flex-start; gap: 8px; color: var(--label); font-size: var(--fs-subhead); line-height: var(--lh-subhead); margin-top: 16px; }
.view-products .pr-hero-note-icon { flex: none; margin-top: 1px; color: var(--label-2); }
.view-products .pr-hero-note.is-review .pr-hero-note-icon { color: var(--orange); }
/* The numbers of an idea Parcel won't sell, folded away (G028). */
.view-products .pr-anyway { display: flex; flex-direction: column; min-width: 0; }
.view-products .pr-anyway-btn {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 0 16px;
  border-radius: var(--r-card); background: var(--bg-2); color: var(--accent-text); font-size: var(--fs-body); text-align: left;
}
.view-products .pr-anyway-btn:active { background: var(--row-pressed); }
@media (hover: hover) and (pointer: fine) { .view-products .pr-anyway-btn:hover { background: var(--fill-4); } }
.view-products .pr-anyway-chev { flex: none; color: var(--label-3); transition: transform 220ms var(--ease); }
.view-products .pr-anyway-btn[aria-expanded="true"] .pr-anyway-chev { transform: rotate(180deg); }
.view-products .pr-anyway-body { display: flex; flex-direction: column; gap: 16px; }
.view-products .pr-anyway-body[hidden] { display: none; }
.view-products .pr-anyway .pr-strip { margin-top: 4px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.view-products .pr-anyway .pr-strip-cell:nth-child(3n + 1)::before { display: none; }
@media (prefers-reduced-motion: reduce) { .view-products .pr-anyway-chev { transition: none; } }
@media (max-width: 1099.98px) {
  .view-products .pr-reasons-card { order: 1; }
  .view-products .pr-gate-card { order: 2; }
  .view-products .pr-gate-card.is-first { order: 0; }
  .view-products .pr-money-card, .view-products .pr-anyway { order: 3; }
  .view-products .pr-buyers-card { order: 4; }
  .view-products .pr-ship-card { order: 5; }
}

/* ================================================================ Test lab (#/products/tests) */
.view-products .tl-head-aside { font-size: var(--fs-subhead); color: var(--label-2); white-space: nowrap; }
.view-products .tl-count { margin-left: 6px; color: var(--label-2); font-weight: var(--w-regular); font-variant-numeric: tabular-nums; }
.view-products .tl-head-tools { display: inline-flex; align-items: center; gap: 6px; }
.view-products .tl-head-info { width: 32px; height: 32px; margin: -6px 0; }
.view-products .tl-foot { padding: 8px 16px 0; font-size: var(--fs-footnote); line-height: var(--lh-footnote); color: var(--label-2); text-wrap: pretty; }
.view-products .tl-now .section-header { margin-bottom: 12px; }
.view-products .tl-now-list { display: flex; flex-direction: column; gap: var(--sp-4); }
.view-products .tl-idle { padding: 8px 16px 12px; }

/* The test card: the story on the left, its ads on the right when there's room (container query). */
.view-products .tl-test { container: tltest / inline-size; padding: 0; overflow: hidden; }
.view-products .tl-test-grid { display: grid; }
.view-products .tl-test-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; padding: 16px 16px 18px; }
@media (min-width: 768px) { .view-products .tl-test-main { padding: 20px 22px 22px; gap: 18px; } }
.view-products .tl-test-head { display: grid; grid-template-columns: 56px minmax(0, 1fr); align-items: center; column-gap: 14px; }
.view-products .tl-test-art { display: block; width: 56px; height: 56px; border-radius: 14px; overflow: hidden; }
.view-products .tl-test-art .pr-art { width: 100%; height: 100%; border-radius: inherit; }
.view-products .tl-test-title { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 4px; min-width: 0; }
.view-products .tl-test-name { font-size: var(--fs-title3); line-height: var(--lh-title3); letter-spacing: var(--ls-title3); font-weight: var(--w-bold); overflow-wrap: anywhere; }
.view-products .tl-test-name a { color: inherit; }
.view-products .tl-test-name a:active { opacity: .5; }
@media (hover: hover) and (pointer: fine) { .view-products .tl-test-name a:hover { color: var(--accent-text); } }
.view-products .tl-test-sub { font-size: var(--fs-footnote); line-height: var(--lh-footnote); color: var(--label-2); }
/* ---- go-live card (DECISIONS §31): the Test lab's "Now testing" before your one-time setup; Ads reuses it */
:is(.view-products, .view-ads) .pr-golive { display: flex; flex-direction: column; text-wrap: pretty; }
:is(.view-products, .view-ads) .pr-golive-title {
  display: flex; align-items: flex-start; gap: 8px; margin-bottom: 8px;
  font-size: var(--fs-headline); line-height: var(--lh-headline); font-weight: var(--w-semibold); color: var(--orange-text); text-wrap: balance;
}
:is(.view-products, .view-ads) .pr-golive-icon { flex: none; margin-top: 1px; color: var(--orange); }
:is(.view-products, .view-ads) .pr-golive-text { font-size: var(--fs-subhead); line-height: var(--lh-subhead); color: var(--label); margin-bottom: 14px; }
:is(.view-products, .view-ads) .pr-golive-foot { margin-top: 12px; font-size: var(--fs-footnote); line-height: var(--lh-footnote); color: var(--label-2); }
:is(.view-products, .view-ads) .pr-golive .meter { margin-bottom: 16px; }
:is(.view-products, .view-ads) .pr-golive-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
@media (max-width: 400px) { :is(.view-products, .view-ads) .pr-golive-actions .btn { flex: 1 1 100%; } }

/* The verdict pill (and "Paused" while everything is stopped) sits under the name on narrow cards and beside it from 420px. */
.view-products .tl-test-pills { grid-column: 2; justify-self: start; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
@container tltest (min-width: 420px) {
  .view-products .tl-test-head { grid-template-columns: 56px minmax(0, 1fr) auto; }
  .view-products .tl-test-pills { grid-column: 3; grid-row: 1; margin: 0; align-self: center; justify-content: flex-end; }
}

.view-products .tl-meters { display: grid; gap: 14px; }
@container tltest (min-width: 520px) { .view-products .tl-meters { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; } }
.view-products .tl-meter-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.view-products .tl-meter-label { font-size: 13px; line-height: 18px; font-weight: var(--w-semibold); color: var(--label-2); }
.view-products .tl-meter-value { font-size: var(--fs-subhead); line-height: 20px; color: var(--label-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.view-products .tl-meter-value b { color: var(--label); font-weight: var(--w-semibold); }
.view-products .tl-bar { position: relative; height: 8px; margin-top: 8px; border-radius: 4px; background: var(--fill-3); }
.view-products .tl-bar-fill { position: absolute; left: 0; top: 0; bottom: 0; min-width: 4px; border-radius: 4px; background: var(--accent); }
.view-products .tl-bar-mark { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; border-radius: 1px; background: var(--label); }
.view-products .tl-mark-label {
  position: relative; display: flex; align-items: center; gap: 6px; margin-top: 7px;
  font-size: 12px; line-height: 16px; color: var(--label-2); font-variant-numeric: tabular-nums;
}
.view-products .tl-mark-label::before { content: ""; flex: none; width: 2px; height: 11px; border-radius: 1px; background: var(--label); }
.view-products .tl-days { display: flex; gap: 3px; margin-top: 8px; }
.view-products .tl-day { flex: 1 1 0; height: 8px; border-radius: 4px; background: var(--fill-3); }
.view-products .tl-day.is-done { background: var(--accent); }
.view-products .tl-day.is-today { background: color-mix(in srgb, var(--accent) 40%, var(--fill-3)); }

.view-products .tl-stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 12px 0;
  box-shadow: inset 0 var(--hairline) 0 var(--sep), inset 0 calc(-1 * var(--hairline)) 0 var(--sep);
}
.view-products .tl-stat { position: relative; display: flex; flex-direction: column; gap: 1px; min-width: 0; padding: 0 12px; }
.view-products .tl-stat:first-child { padding-left: 0; }
.view-products .tl-stat + .tl-stat::before { content: ""; position: absolute; left: 0; top: 6%; bottom: 6%; width: var(--hairline); background: var(--sep); }
.view-products .tl-stat-label { display: flex; align-items: center; min-height: 18px; font-size: 13px; line-height: 18px; font-weight: var(--w-semibold); color: var(--label-2); white-space: nowrap; }
.view-products .tl-stat-info { width: 26px; height: 26px; margin: -6px -8px -6px -2px; }
.view-products .tl-stat-info svg { width: 15px; height: 15px; }
.view-products .tl-stat-value {
  font-family: var(--font-rounded); font-size: 22px; line-height: 28px; font-weight: var(--w-bold); letter-spacing: -.35px;
  font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.view-products .tl-stat-value[class*="tone-"] { color: var(--tone-text); }
.view-products .tl-stat-value.tone-gray { color: var(--label-2); }
.view-products .tl-stat-sub { font-size: 12px; line-height: 16px; color: var(--label-2); text-wrap: balance; }
@media (max-width: 359.98px) {
  .view-products .tl-stat { padding: 0 8px; }
  .view-products .tl-stat-value { font-size: 19px; line-height: 24px; }
}

.view-products .tl-words { display: flex; flex-direction: column; gap: 8px; }
.view-products .tl-verdict-text { font-size: var(--fs-subhead); line-height: var(--lh-subhead); text-wrap: pretty; }
.view-products .tl-next, .view-products .tl-paused {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: var(--fs-subhead); line-height: var(--lh-subhead); color: var(--label-2); text-wrap: pretty;
}
.view-products .tl-next svg { flex: none; margin-top: 3px; color: var(--accent); }
.view-products .tl-paused svg { flex: none; margin-top: 2px; color: var(--label-2); }
.view-products .tl-extended { font-size: var(--fs-footnote); line-height: var(--lh-footnote); color: var(--label-2); }
.view-products .tl-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@container tltest (min-width: 520px) { .view-products .tl-actions { display: flex; flex-wrap: wrap; } .view-products .tl-actions .btn { min-width: 140px; } }
.view-products .tl-stop { color: var(--red-text); }
.view-products .tl-actions.is-single { display: flex; }
.view-products .tl-actions.is-single .btn { min-width: 140px; }
.view-products .tl-test.is-paused .tl-bar-fill, .view-products .tl-test.is-paused .tl-day.is-done { background: var(--gray); }

.view-products .tl-test-ads { min-width: 0; padding: 4px 0 6px; box-shadow: inset 0 var(--hairline) 0 var(--sep); }
@container tltest (min-width: 880px) {
  .view-products .tl-test-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
  .view-products .tl-test-ads { padding-top: 12px; box-shadow: inset var(--hairline) 0 0 var(--sep); }
}
.view-products .tl-ads-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 10px 16px 4px; }
.view-products .tl-ads-title { font-size: 13px; line-height: 18px; font-weight: var(--w-regular); color: var(--label-2); text-transform: uppercase; }
.view-products .tl-ads-window { font-size: 13px; line-height: 18px; color: var(--label-2); }
.view-products .tl-ads li { position: relative; }
.view-products .tl-ads li + li::before { content: ""; position: absolute; top: 0; right: 0; left: 72px; height: var(--hairline); background: var(--sep); }
.view-products .tl-ad {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto 10px; align-items: center; column-gap: 12px;
  min-height: 64px; padding: 9px 14px 9px 16px; color: inherit;
  transition: background-color var(--dur-press) linear;
}
.view-products .tl-ad:active { background: var(--row-pressed); }
@media (hover: hover) and (pointer: fine) { .view-products .tl-ad:hover { background: var(--fill-4); } .view-products .tl-ad:active { background: var(--row-pressed); } }
.view-products .tl-ad:focus-visible { outline-offset: -3px; border-radius: var(--r-lg); }
.view-products .tl-ad-thumb { position: relative; display: block; width: 44px; height: 44px; border-radius: 9px; overflow: hidden; background: var(--bg-3); }
.view-products .tl-ad-thumb svg { display: block; width: 100%; height: 100%; }
.view-products .tl-ad-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.view-products .tl-ad-name { font-size: var(--fs-subhead); line-height: 20px; font-weight: var(--w-semibold); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.view-products .tl-ad-sub { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 12px; line-height: 16px; color: var(--label-2); white-space: nowrap; }
.view-products .tl-ad-sub .pill { flex: none; }
.view-products .tl-ad-sub > span:last-child { overflow: hidden; text-overflow: ellipsis; }
.view-products .tl-ad-roas { font-size: var(--fs-subhead); font-weight: var(--w-semibold); color: var(--tone-text); font-variant-numeric: tabular-nums; }
.view-products .tl-ad-roas.tone-gray { color: var(--label-2); font-weight: var(--w-medium); }
.view-products .tl-ad-chev, .view-products .tl-q-chev, .view-products .tl-f-chev { justify-self: end; margin-right: -1px; }

/* Columns: Up next + settings + rules | Finished. One column below 1100px, in the spec's order. */
.view-products .tl-grid { display: grid; gap: var(--sp-7); }
.view-products .tl-col-a, .view-products .tl-col-b { display: flex; flex-direction: column; gap: var(--sp-7); min-width: 0; }
.view-products .tl-grid .section-header { margin-bottom: 12px; }
@media (max-width: 1099.98px) {
  .view-products .tl-col-a, .view-products .tl-col-b { display: contents; }
  .view-products .tl-queue { order: 1; }
  .view-products .tl-finished { order: 2; }
  .view-products .tl-settings { order: 3; }
  .view-products .tl-rules { order: 4; }
}
@media (min-width: 1100px) {
  .view-products .tl-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 28px; }
  .view-products .tl-col-a, .view-products .tl-col-b { gap: 28px; }
}

/* Up next */
.view-products .tl-q-list { padding: 0; overflow: hidden; }
.view-products .tl-q-row, .view-products .tl-q-browse { position: relative; }
.view-products :is(.tl-q-row, .tl-q-browse) + :is(.tl-q-row, .tl-q-browse)::before {
  content: ""; position: absolute; top: 0; right: 0; left: 94px; height: var(--hairline); background: var(--sep); z-index: 1;
}
.view-products .tl-q-link {
  display: grid; grid-template-columns: 18px 48px minmax(0, 1fr) auto 10px; align-items: center; column-gap: 12px;
  min-height: 76px; padding: 10px 14px 10px 12px; color: inherit;
  transition: background-color var(--dur-press) linear;
}
.view-products .tl-q-link:active { background: var(--row-pressed); }
@media (hover: hover) and (pointer: fine) { .view-products .tl-q-link:hover { background: var(--fill-4); } .view-products .tl-q-link:active { background: var(--row-pressed); } }
.view-products .tl-q-link:focus-visible { outline-offset: -3px; border-radius: var(--r-lg); }
.view-products .tl-q-rank {
  justify-self: center; font-family: var(--font-rounded); font-size: var(--fs-subhead); font-weight: var(--w-semibold);
  color: var(--label-2); font-variant-numeric: tabular-nums;
}
.view-products .tl-q-art { width: 48px; height: 48px; border-radius: 11px; }
.view-products .tl-q-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.view-products .tl-q-name { font-size: var(--fs-callout); line-height: var(--lh-callout); font-weight: var(--w-semibold); overflow-wrap: anywhere; }
.view-products .tl-q-why { font-size: var(--fs-footnote); line-height: var(--lh-footnote); color: var(--label-2); text-wrap: pretty; }
.view-products .tl-q-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 3px; }
.view-products .tl-q-tag { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; line-height: 16px; font-weight: var(--w-semibold); color: var(--label-2); }
.view-products .tl-q-tag.is-pass { color: var(--green-text); }
.view-products .tl-q-tag.is-next { color: var(--accent-text); }
.view-products .tl-q-tag.is-blocked { color: var(--orange-text); }
.view-products .tl-q-score { display: inline-flex; align-items: center; gap: 5px; }
.view-products .tl-q-score .pr-gauge { color: var(--tone-text); }
.view-products .tl-q-score-n { font-family: var(--font-rounded); font-size: var(--fs-subhead); font-weight: var(--w-bold); font-variant-numeric: tabular-nums; }
.view-products .tl-q-grade { display: none; }
/* Narrow phones: the score moves under the reason (with its grade), so the reason gets the row's width. */
@media (max-width: 479.98px) {
  .view-products .tl-q-link {
    grid-template-columns: 16px 44px minmax(0, 1fr) 10px; column-gap: 10px; padding-left: 10px;
    grid-template-areas: "rank art text chev" "rank art score chev";
  }
  .view-products .tl-q-link .tl-q-rank { grid-area: rank; }
  .view-products .tl-q-link .tl-q-art { grid-area: art; width: 44px; height: 44px; }
  .view-products .tl-q-link .tl-q-text { grid-area: text; }
  .view-products .tl-q-link .tl-q-score { grid-area: score; justify-self: start; margin-top: 6px; }
  .view-products .tl-q-link .tl-q-chev { grid-area: chev; }
  .view-products .tl-q-grade { display: inline; margin-left: 2px; font-size: var(--fs-footnote); font-weight: var(--w-semibold); color: var(--tone-text); }
  .view-products .tl-q-browse-link { grid-template-columns: 16px 44px minmax(0, 1fr) 10px; column-gap: 10px; padding-left: 10px; }
  .view-products :is(.tl-q-row, .tl-q-browse) + :is(.tl-q-row, .tl-q-browse)::before { left: 80px; }
}
.view-products .tl-q-edit {
  display: grid; grid-template-columns: 44px 18px 44px minmax(0, 1fr) auto; align-items: center; column-gap: 10px;
  min-height: 76px; padding: 8px 8px 8px 0;
}
.view-products .tl-q-remove { color: var(--red); }
.view-products .tl-q-remove .icon-btn-face { color: var(--red); }
.view-products .tl-q-edit .tl-q-art { width: 44px; height: 44px; border-radius: 10px; }
.view-products .tl-q-edit .tl-q-why { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
/* Phones: editing shows just what's needed to order the list (like iOS Edit mode): name, art, arrows. */
@media (max-width: 599.98px) {
  .view-products .tl-q-edit { grid-template-columns: 44px 44px minmax(0, 1fr) auto; column-gap: 10px; }
  .view-products .tl-q-edit .tl-q-rank, .view-products .tl-q-edit .tl-q-why { display: none; }
  .view-products .tl-queue.is-editing :is(.tl-q-row, .tl-q-browse) + :is(.tl-q-row, .tl-q-browse)::before { left: 98px; }
}
.view-products .tl-q-moves { display: flex; gap: 2px; }
.view-products .tl-q-move:disabled { opacity: .35; }
.view-products .tl-queue.is-editing :is(.tl-q-row, .tl-q-browse) + :is(.tl-q-row, .tl-q-browse)::before { left: 126px; }
@media (max-width: 374.98px) {
  .view-products .tl-q-edit { grid-template-columns: 44px 40px minmax(0, 1fr) auto; column-gap: 8px; }
  .view-products .tl-q-edit .tl-q-art { width: 40px; height: 40px; }
}
.view-products .tl-q-empty { padding: 16px; font-size: var(--fs-subhead); color: var(--label-2); }
.view-products .tl-q-browse-link {
  display: grid; grid-template-columns: 18px 48px minmax(0, 1fr) 10px; align-items: center; column-gap: 12px;
  min-height: 56px; padding: 6px 14px 6px 12px; color: var(--accent-text);
  font-size: var(--fs-callout); font-weight: var(--w-semibold);
  transition: background-color var(--dur-press) linear;
}
.view-products .tl-q-browse-icon {
  grid-column: 2; justify-self: center; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent-tint); color: var(--accent-text);
}
.view-products .tl-q-browse-link:active { background: var(--row-pressed); }
@media (hover: hover) and (pointer: fine) { .view-products .tl-q-browse-link:hover { background: var(--fill-4); } }
.view-products .tl-q-browse-link:focus-visible { outline-offset: -3px; border-radius: var(--r-lg); }

/* Finished tests */
.view-products .tl-f-list { padding: 0; overflow: hidden; }
.view-products .tl-f-row { position: relative; }
.view-products .tl-f-row + .tl-f-row::before { content: ""; position: absolute; top: 0; right: 0; left: 72px; height: var(--hairline); background: var(--sep); z-index: 1; }
.view-products .tl-f-link {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) 10px; align-items: start; column-gap: 12px;
  padding: 12px 14px 13px 16px; color: inherit;
  transition: background-color var(--dur-press) linear;
}
.view-products .tl-f-link:active { background: var(--row-pressed); }
@media (hover: hover) and (pointer: fine) { .view-products .tl-f-link:hover { background: var(--fill-4); } .view-products .tl-f-link:active { background: var(--row-pressed); } }
.view-products .tl-f-link:focus-visible { outline-offset: -3px; border-radius: var(--r-lg); }
.view-products .tl-f-art { width: 44px; height: 44px; border-radius: 10px; margin-top: 2px; }
.view-products .tl-f-text { display: flex; flex-direction: column; min-width: 0; }
.view-products .tl-f-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.view-products .tl-f-name { min-width: 0; font-size: var(--fs-callout); line-height: var(--lh-callout); font-weight: var(--w-semibold); overflow-wrap: anywhere; }
.view-products .tl-f-date { flex: none; font-size: var(--fs-footnote); color: var(--label-2); }
.view-products .tl-f-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 5px; }
.view-products .tl-f-nums { font-size: var(--fs-footnote); line-height: 18px; color: var(--label-2); font-variant-numeric: tabular-nums; }
.view-products .tl-f-learning { margin-top: 6px; font-size: var(--fs-footnote); line-height: var(--lh-footnote); color: var(--label); text-wrap: pretty; }
.view-products .tl-f-chev { align-self: center; }
.view-products .tl-f-empty { padding: 8px 16px 12px; }

/* Settings + rules */
.view-products .tl-settings .list-footer a { color: var(--accent-text); }
.view-products .tl-settings .list-footer b { font-weight: var(--w-semibold); color: var(--label); }
.view-products .tl-rules-title { padding: 0 16px 7px; font-size: 13px; line-height: 18px; font-weight: var(--w-regular); color: var(--label-2); text-transform: uppercase; }
.view-products .tl-rules-list { padding: 2px 16px; border-radius: var(--r-list); background: var(--bg-2); }
.view-products .tl-rule { position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 11px 0; }
.view-products .tl-rule + .tl-rule::before { content: ""; position: absolute; top: 0; right: -16px; left: 38px; height: var(--hairline); background: var(--sep); }
.view-products .tl-rule-icon {
  flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  color: var(--tone-text); background: color-mix(in srgb, var(--tone) 15%, transparent);
}
.view-products .tl-rule-text { min-width: 0; font-size: var(--fs-subhead); line-height: var(--lh-subhead); text-wrap: pretty; }
.tl-sheet .tl-set-summary { padding: 8px 16px 4px; font-size: var(--fs-footnote); line-height: var(--lh-footnote); color: var(--label-2); text-wrap: pretty; }
.tl-sheet .stepper-value { min-width: 3.2em; text-align: right; }

/* ================================================================ Forced colours (Windows High Contrast)
   The split bar and score bars are drawn with background colours, which forced-colour mode drops. */
@media (forced-colors: active) {
  :is(.view-products, .pr-sheet) .pr-split-bar { border: 1px solid CanvasText; background: Canvas; }
  :is(.view-products, .pr-sheet) .pr-split-seg { forced-color-adjust: none; background: CanvasText; }
  :is(.view-products, .pr-sheet) .pr-split-seg:first-child { background: Highlight; }
  :is(.view-products, .pr-sheet) .pr-split-dot { forced-color-adjust: none; background: CanvasText; }
  :is(.view-products, .pr-sheet) .pr-split-item:first-child .pr-split-dot { background: Highlight; }
  .view-products .pr-card-link { border: 1px solid CanvasText; }
  .view-products .pr-card-score, .view-products .pr-card-badge { border: 1px solid CanvasText; }
  .view-products .pr-new-dot { forced-color-adjust: none; background: Highlight; }
  .view-products :is(.tl-bar, .tl-day) { border: 1px solid CanvasText; background: Canvas; }
  .view-products .tl-bar-fill, .view-products .tl-day.is-done, .view-products .tl-day.is-today { forced-color-adjust: none; background: Highlight; }
  .view-products .tl-bar-mark, .view-products .tl-mark-label::before { forced-color-adjust: none; background: CanvasText; }
  .view-products .pr-notice { border: 1px solid CanvasText; }
  .pr-sheet .pr-gen-art::before, .pr-sheet .pr-gen-art::after { display: none; }
}

/* ================================================================ v2: Boosters (SPEC-v2 §7) */
.view-products .pr-boosters .section-header { margin-bottom: 4px; }
.view-products .pr-boosters-lead { margin: 0 4px 12px; font-size: var(--fs-subhead); line-height: var(--lh-subhead); color: var(--label-2); text-wrap: pretty; }
.view-products .pr-boosters-foot { margin: 10px 4px 0; font-size: var(--fs-footnote); line-height: var(--lh-footnote); color: var(--label-2); }
.view-products .bo-list { display: flex; flex-direction: column; gap: 12px; }
.view-products .bo-card { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: var(--r-card); background: var(--bg-2); min-width: 0; }
.view-products .bo-card.is-off { gap: 8px; }
.view-products .bo-card.is-off .bo-body, .view-products .bo-card.is-off .bo-how { display: none; }
.view-products .bo-head { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.view-products .bo-head .icon-tile { border-radius: 9px; }
.view-products .bo-kind { font-size: 12px; line-height: 16px; font-weight: var(--w-semibold); color: var(--label-2); letter-spacing: .02em; }
.view-products .bo-title { font-size: var(--fs-headline); line-height: var(--lh-headline); font-weight: var(--w-semibold); overflow-wrap: anywhere; }
.view-products .bo-status { align-self: start; margin-top: 2px; }
.view-products .bo-body { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.view-products .bo-row { display: flex; align-items: center; gap: 12px; min-width: 0; }
.view-products .bo-pair { display: flex; align-items: center; flex: none; }
.view-products .bo-art { width: 44px; height: 44px; border-radius: 10px; overflow: hidden; background: var(--bg-3); box-shadow: 0 0 0 .5px rgba(0, 0, 0, .08); }
.view-products .bo-art svg { width: 100%; height: 100%; display: block; }
.view-products .bo-plus { display: grid; place-items: center; width: 18px; color: var(--label-3); }
.view-products .bo-items { min-width: 0; font-size: var(--fs-subhead); line-height: var(--lh-subhead); text-wrap: pretty; }
.view-products .bo-price { display: flex; flex-direction: column; gap: 1px; }
.view-products .bo-price-value { font-family: var(--font-rounded); font-size: 22px; line-height: 28px; font-weight: var(--w-bold); letter-spacing: -0.3px; }
.view-products .bo-price-save { font-size: var(--fs-subhead); line-height: var(--lh-subhead); color: var(--green-text); font-weight: var(--w-medium); }
.view-products .bo-text { font-size: var(--fs-footnote); line-height: var(--lh-footnote); color: var(--label-2); text-wrap: pretty; }
.view-products .bo-sub { margin-top: 2px; font-size: var(--fs-footnote); line-height: var(--lh-footnote); font-weight: var(--w-semibold); }
/* What shoppers see until Shopify backs a bundle's saving (DECISIONS §61). */
.view-products .bo-store { display: flex; align-items: flex-start; gap: 6px; font-size: var(--fs-footnote); line-height: var(--lh-footnote); color: var(--label); text-wrap: pretty; }
.view-products .bo-store .icon { flex: none; margin-top: 2px; color: var(--label-2); }
.view-products .bo-unavail { display: flex; align-items: flex-start; gap: 6px; font-size: var(--fs-footnote); line-height: var(--lh-footnote); color: var(--orange-text); }
.view-products .bo-unavail .icon { flex: none; margin-top: 2px; }
.view-products .bo-unavail.is-wait { color: var(--label-2); }
.view-products .bo-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.view-products .bo-how { padding-top: 10px; border-top: var(--hairline) solid var(--sep); font-size: 12px; line-height: 16px; color: var(--label-2); text-wrap: pretty; }
/* Average order: off weeks vs on weeks, then the likely range around the difference (crossing $0 = could be chance). */
.view-products .bo-aov { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: var(--r-lg); background: var(--bg-3); }
.view-products .bo-aov-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 10px; }
.view-products .bo-aov-title { font-size: var(--fs-footnote); line-height: var(--lh-footnote); font-weight: var(--w-semibold); color: var(--label-2); }
.view-products .bo-aov-diff { display: flex; align-items: center; gap: 8px; }
.view-products .bo-diff { font-family: var(--font-rounded); font-size: var(--fs-headline); line-height: var(--lh-headline); font-weight: var(--w-bold); font-variant-numeric: tabular-nums; }
.view-products .bo-diff[class*="tone-"] { color: var(--tone-text); }
.view-products .bo-diff.tone-gray { color: var(--label); }
.view-products .bo-aov-row { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; grid-template-areas: "label track value" ". n n"; column-gap: 10px; align-items: center; }
.view-products .bo-aov-label { grid-area: label; font-size: var(--fs-footnote); line-height: var(--lh-footnote); color: var(--label-2); white-space: nowrap; }
.view-products .bo-aov-track { grid-area: track; height: 8px; border-radius: 4px; background: var(--fill-3); overflow: hidden; }
.view-products .bo-aov-fill { display: block; height: 100%; border-radius: 4px; }
.view-products .bo-aov-fill.is-off { background: var(--gray); }
.view-products .bo-aov-fill.is-on { background: var(--indigo); }
.view-products .bo-aov-value { grid-area: value; font-size: var(--fs-subhead); line-height: var(--lh-subhead); font-weight: var(--w-semibold); font-variant-numeric: tabular-nums; text-align: right; }
.view-products .bo-aov-n { grid-area: n; display: none; }
@media (min-width: 420px) {
  .view-products .bo-aov-row { grid-template-columns: 76px minmax(0, 1fr) auto 72px; grid-template-areas: "label track value n"; }
  .view-products .bo-aov-n { display: block; font-size: var(--fs-footnote); line-height: var(--lh-footnote); color: var(--label-2); text-align: right; white-space: nowrap; }
}
.view-products .bo-range { display: flex; flex-direction: column; gap: 5px; margin-top: 6px; }
.view-products .bo-range-cap { font-size: 12px; line-height: 16px; color: var(--label-2); }
.view-products .bo-range-axis { position: relative; height: 16px; }
.view-products .bo-range-axis::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 2px; border-radius: 1px; background: var(--fill-2); }
.view-products .bo-range-band { position: absolute; top: 3px; height: 10px; border-radius: 5px; background: color-mix(in srgb, var(--tone, var(--gray)) 30%, transparent); box-shadow: inset 0 0 0 1.5px var(--tone-text, var(--label-2)); }
.view-products .bo-range-zero { position: absolute; top: -1px; width: 2px; height: 18px; margin-left: -1px; border-radius: 1px; background: var(--label); }
.view-products .bo-range-dot { position: absolute; top: 2px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--tone-text, var(--label)); box-shadow: 0 0 0 2px var(--bg-3); }
.view-products .bo-range-labels { position: relative; height: 14px; font-size: 11px; line-height: 14px; color: var(--label-2); font-variant-numeric: tabular-nums; }
.view-products .bo-range-labels > span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.view-products .bo-range-labels .is-lo { transform: none; }
.view-products .bo-range-labels .is-hi { transform: translateX(-100%); }
.view-products .bo-range-labels .is-zero { color: var(--label); font-weight: var(--w-semibold); }
.view-products .bo-weeks { display: flex; gap: 4px; flex-wrap: wrap; }
.view-products .bo-week { display: flex; flex-direction: column; align-items: center; min-width: 64px; padding: 5px 8px; border-radius: var(--r-sm); background: var(--fill-4); }
.view-products .bo-week.is-on { background: color-mix(in srgb, var(--indigo) 14%, transparent); }
.view-products .bo-week.is-now { box-shadow: inset 0 0 0 1.5px var(--indigo); }
.view-products .bo-week.is-later { opacity: .6; }
.view-products .bo-week-state { font-size: 12px; line-height: 16px; font-weight: var(--w-semibold); }
.view-products .bo-week.is-on .bo-week-state { color: var(--indigo-text); }
.view-products .bo-week-date { font-size: 11px; line-height: 14px; color: var(--label-2); white-space: nowrap; }
/* My products: the boosters summary */
.view-products .pr-boosters-summary { margin-top: var(--sp-7); }
.view-products .pr-bo-row .list-row-subtitle { white-space: normal; }
.view-products .pr-bo-sub { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; margin-top: 3px; }
.view-products .pr-bo-sub-text { text-wrap: pretty; }
@media (forced-colors: active) {
  .view-products .bo-card, .view-products .bo-aov, .view-products .bo-week { border: 1px solid CanvasText; }
  .view-products :is(.bo-aov-fill, .bo-range-dot, .bo-range-band) { forced-color-adjust: none; background: Highlight; }
}
/* Discount sheet (overlay layer) */
.bo-sheet .bo-sheet-body { display: flex; flex-direction: column; gap: 14px; }
.bo-sheet .bo-sheet-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; min-height: 52px; border-radius: var(--r-list); background: var(--bg-2); }
.bo-sheet .bo-sheet-label { font-size: var(--fs-body); line-height: var(--lh-body); }
.bo-sheet .bo-sheet-preview { display: flex; flex-direction: column; gap: 2px; padding: 0 4px; }
.bo-sheet .bo-sheet-price { font-family: var(--font-rounded); font-size: 22px; line-height: 28px; font-weight: var(--w-bold); }
.bo-sheet .bo-sheet-save { font-size: var(--fs-subhead); line-height: var(--lh-subhead); color: var(--label-2); }
.bo-sheet .bo-sheet-note { padding: 0 4px; font-size: var(--fs-footnote); line-height: var(--lh-footnote); color: var(--label-2); text-wrap: pretty; }

/* Small phones (V009): numbers and names are never cut. The chart card's total drops under its title when they don't fit
   side by side; the supplier rows let their explanations wrap and keep their values whole. */
.view-products .pr-chart-card .card-header { flex-wrap: wrap; row-gap: 2px; }
.view-products .pr-chart-card .card-title { overflow: visible; }
.view-products .pr-wrap .list-row-subtitle { white-space: normal; text-wrap: pretty; }
.view-products .pr-wrap .list-row-value { max-width: none; }
