/* Client Collections homepage polish. Applies only while homepage-overview.mjs
   marks a client workspace (html.homepage-overview-on); admin layouts unchanged.
   No inline styles: motion is CSS/Web Animations and respects reduced motion. */
html.homepage-overview-on {
  --hp-active: #22b8d8;
  --hp-awaiting: #f2b44c;
  --hp-ready: #3cc68a;
  --hp-attention: #ef6b5b;
  --hp-unavailable: #9aa9b6;
  --hp-checking: #cbd7e0;
  --hp-ink: #0d2a3f;
  --hp-muted: #557085;
  --hp-line: #d5e2eb;
}
.homepage-group-bar { display: none; }

/* ---- Overview band: existing navy masthead + status tiles --------------- */
html.homepage-overview-on.premium-workspace.collections-redesign #collections-view > .premium-masthead {
  align-items: stretch;
  gap: 22px 32px;
  padding-bottom: 20px;
}
html.homepage-overview-on.premium-workspace.collections-redesign #collections-view > .premium-masthead > div:first-child {
  flex: 1 1 380px;
  min-width: 0;
  align-self: center;
}
html.homepage-overview-on.premium-workspace.collections-redesign #collections-view > .premium-masthead .eyebrow,
html.homepage-overview-on.premium-workspace.collections-redesign #collections-view > .premium-workspace-summary,
html.homepage-overview-on.premium-workspace.collections-redesign #collections-view .client-status-filters {
  display: none !important;
}
html.homepage-overview-on #collections-view .homepage-greeting {
  margin: 0 0 10px;
  color: #9fd8e6;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1.4;
}
html.homepage-overview-on #collections-view .homepage-greeting strong { color: #fff; font-weight: 650; }

/* Credits tile (right column of the masthead). */
html.homepage-overview-on.premium-workspace.collections-redesign #collections-view .homepage-credit-tile {
  flex: 0 1 300px;
  min-width: 240px;
  box-sizing: border-box;
  padding: 16px 18px;
  border: 1px solid rgba(160, 214, 232, .24);
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .03));
  color: #fff;
  align-self: center;
}
html.homepage-overview-on #collections-view .homepage-credit-tile.needs-attention { border-color: rgba(242, 180, 76, .6); }
html.homepage-overview-on #collections-view .homepage-credit-label {
  display: block;
  color: #9dc5d8;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
html.homepage-overview-on #collections-view .homepage-credit-value { display: flex; align-items: baseline; gap: 8px; margin: 6px 0 2px; }
html.homepage-overview-on #collections-view .homepage-credit-value strong {
  color: #fff;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
html.homepage-overview-on #collections-view .homepage-credit-value span,
html.homepage-overview-on #collections-view .homepage-credit-meta { color: #bad1e2; font-size: 13px; }
html.homepage-overview-on #collections-view .homepage-credit-expiry {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(160, 214, 232, .18);
  color: #d8e8f2;
  font-size: 13px;
}
html.homepage-overview-on #collections-view .homepage-credit-expiry .portal-icon { width: 15px; height: 15px; color: #8be9f2; flex: none; }
html.homepage-overview-on #collections-view .homepage-credit-expiry time { color: #fff; font-weight: 650; }
html.homepage-overview-on #collections-view .homepage-credit-note { margin-top: 10px; color: #ffd99a; font-size: 13px; line-height: 1.45; }
html.homepage-overview-on #collections-view .homepage-credit-expiry[hidden],
html.homepage-overview-on #collections-view .homepage-credit-note[hidden] { display: none; }
/* The existing credit section keeps only its details disclosure here. */
html.homepage-overview-on.premium-workspace.collections-redesign #collections-view .homepage-credit-tile #own-credits {
  margin: 8px 0 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  color: inherit;
}
html.homepage-overview-on.premium-workspace.collections-redesign #collections-view .homepage-credit-tile #own-credits > h3,
html.homepage-overview-on.premium-workspace.collections-redesign #collections-view .homepage-credit-tile #own-credits .credit-overview-stats,
html.homepage-overview-on.premium-workspace.collections-redesign #collections-view .homepage-credit-tile #own-credits .credit-overview-notice {
  display: none !important;
}
html.homepage-overview-on.premium-workspace.collections-redesign #collections-view .homepage-credit-tile #own-credits .credit-overview-footer {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
}
html.homepage-overview-on.premium-workspace.collections-redesign #collections-view .homepage-credit-tile .credit-overview-details > summary {
  display: inline-block;
  color: #8be9f2;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
html.homepage-overview-on.premium-workspace.collections-redesign #collections-view .homepage-credit-tile .credit-overview-details > summary:focus-visible {
  outline: 2px solid #8be9f2;
  outline-offset: 3px;
  border-radius: 4px;
}
html.homepage-overview-on.premium-workspace.collections-redesign #collections-view .homepage-credit-tile .credit-overview-details[open] > div {
  margin-top: 10px;
  padding: 14px;
  border-radius: 10px;
  background: #fff;
  color: #1c3446;
  text-align: left;
}
html.homepage-overview-on.premium-workspace.collections-redesign #collections-view .homepage-credit-tile .credit-overview-details[open] > div p,
html.homepage-overview-on.premium-workspace.collections-redesign #collections-view .homepage-credit-tile .credit-overview-details[open] > div span,
html.homepage-overview-on.premium-workspace.collections-redesign #collections-view .homepage-credit-tile .credit-overview-details[open] > div small {
  color: #4f6a7d !important;
  font-size: 13px !important;
  line-height: 1.5;
  max-width: none !important;
}
html.homepage-overview-on.premium-workspace.collections-redesign #collections-view .homepage-credit-tile .credit-overview-details[open] > div p { margin: 0 0 8px !important; }
html.homepage-overview-on.premium-workspace.collections-redesign #collections-view .homepage-credit-tile .credit-overview-details[open] > div strong { color: #0d2a3f; }
html.homepage-overview-on.premium-workspace.collections-redesign #collections-view .homepage-credit-tile .credit-lot {
  grid-template-columns: 1fr;
  gap: 2px;
  max-width: none;
}
html.homepage-overview-on.premium-workspace.collections-redesign #collections-view .homepage-credit-tile .credit-lot small { grid-column: auto; }
/* Opening the credit details grows the band; keep the greeting at the top. */
html.homepage-overview-on.premium-workspace.collections-redesign #collections-view > .premium-masthead:has(.credit-overview-details[open]) > div:first-child { align-self: flex-start; }

/* Status overview: the navy band continues below the masthead. */
html.homepage-overview-on.premium-workspace.collections-redesign #collections-view > .homepage-overview {
  margin: 0 calc(-1 * var(--premium-gutter, 32px)) 0;
  padding: 4px var(--premium-gutter, 32px) 26px;
  background: linear-gradient(115deg, #0b2136, #0b263e 60%, #0b1f33);
  color: #fff;
}
html.homepage-overview-on #collections-view .homepage-overview-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 0 0 12px;
}
html.homepage-overview-on #collections-view .homepage-overview-title {
  margin: 0;
  color: #9dc5d8;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
html.homepage-overview-on #collections-view .homepage-overview-total { margin: 0; color: #bad1e2; font-size: 13px; }
html.homepage-overview-on #collections-view .homepage-show-all {
  margin-left: auto;
  padding: 4px 2px;
  min-height: 0;
  border: 0;
  background: none;
  color: #8be9f2;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  box-shadow: none;
}
html.homepage-overview-on #collections-view .homepage-show-all[hidden] { display: none; }
html.homepage-overview-on #collections-view .homepage-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
/* Two by two on phones and whenever the open detail panel narrows the band. */
html.homepage-overview-on.premium-workspace.collections-redesign #collections-view > .homepage-overview { container-type: inline-size; }
@container (max-width: 700px) {
  html.homepage-overview-on #collections-view .homepage-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  html.homepage-overview-on #collections-view .homepage-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
html.homepage-overview-on.premium-workspace.collections-redesign #collections-view .homepage-tile {
  --tone: var(--hp-active);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 6px;
  min-width: 0;
  min-height: 118px;
  margin: 0;
  padding: 16px 18px 15px;
  border: 1px solid rgba(160, 214, 232, .2);
  border-radius: 14px;
  background: rgba(255, 255, 255, .055);
  color: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: none;
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
html.homepage-overview-on.premium-workspace.collections-redesign #collections-view .homepage-tile[data-tile="awaiting"] { --tone: var(--hp-awaiting); }
html.homepage-overview-on.premium-workspace.collections-redesign #collections-view .homepage-tile[data-tile="ready"] { --tone: var(--hp-ready); }
html.homepage-overview-on.premium-workspace.collections-redesign #collections-view .homepage-tile[data-tile="attention"] { --tone: var(--hp-attention); }
html.homepage-overview-on #collections-view .homepage-tile::before {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: -1px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--tone);
}
html.homepage-overview-on.premium-workspace.collections-redesign #collections-view .homepage-tile:hover:not(:disabled) {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, .09);
  border-color: rgba(160, 214, 232, .36);
  box-shadow: 0 12px 26px rgba(0, 0, 0, .22);
}
html.homepage-overview-on.premium-workspace.collections-redesign #collections-view .homepage-tile[aria-pressed="true"] {
  background: rgba(255, 255, 255, .14);
  border-color: var(--tone);
  box-shadow: inset 0 0 0 1px var(--tone), 0 12px 26px rgba(0, 0, 0, .22);
}
html.homepage-overview-on #collections-view .homepage-tile:focus-visible { outline: 2px solid #8be9f2; outline-offset: 3px; }
html.homepage-overview-on.premium-workspace.collections-redesign #collections-view .homepage-tile:disabled { cursor: progress; opacity: 1; }
html.homepage-overview-on #collections-view .homepage-tile-top {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: #dbe9f2;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.3;
}
html.homepage-overview-on #collections-view .homepage-tile-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: rgba(255, 255, 255, .08);
  background: color-mix(in srgb, var(--tone) 20%, transparent);
  color: var(--tone);
}
html.homepage-overview-on #collections-view .homepage-icon { width: 18px; height: 18px; }
html.homepage-overview-on #collections-view .homepage-tile-count {
  display: block;
  min-width: 48px;
  color: #fff;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
html.homepage-overview-on #collections-view .homepage-tile-hint { color: #a9c3d4; font-size: 12px; line-height: 1.35; }
html.homepage-overview-on #collections-view .homepage-tile.is-loading .homepage-tile-count {
  color: transparent;
  width: 56px;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(255, 255, 255, .08) 25%, rgba(255, 255, 255, .22) 37%, rgba(255, 255, 255, .08) 63%);
  background-size: 400% 100%;
  animation: homepage-shimmer 1.4s ease infinite;
}

/* Live activity: only while a real status read shows work under way. */
html.homepage-overview-on #collections-view .homepage-live {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 10px;
  width: fit-content;
  max-width: 100%;
  box-sizing: border-box;
  margin-top: 16px;
  padding: 8px 8px 8px 14px;
  border: 1px solid rgba(60, 198, 138, .38);
  border-radius: 999px;
  background: rgba(60, 198, 138, .09);
  color: #dcefe6;
  font-size: 13px;
  line-height: 1.4;
}
html.homepage-overview-on #collections-view .homepage-live[hidden] { display: none; }
html.homepage-overview-on #collections-view .homepage-live-dot {
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--hp-ready);
  animation: homepage-pulse 2s ease-out infinite;
}
html.homepage-overview-on #collections-view .homepage-live-tag {
  color: #7ee2b0;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .1em;
  text-transform: uppercase;
}
html.homepage-overview-on #collections-view .homepage-live-text::before,
html.homepage-overview-on #collections-view .homepage-live-time::before,
html.homepage-overview-on #collections-view .homepage-live-more::before {
  content: "·" / "";
  margin-right: 10px;
  color: #6f9a87;
}
html.homepage-overview-on #collections-view .homepage-live-text { color: #fff; font-weight: 600; }
html.homepage-overview-on #collections-view .homepage-live-more[hidden] { display: none; }
html.homepage-overview-on.premium-workspace.collections-redesign #collections-view .homepage-live-view {
  min-height: 0;
  margin-left: 4px;
  padding: 4px 12px;
  border: 1px solid rgba(126, 226, 176, .5);
  border-radius: 999px;
  background: transparent;
  color: #b9f0d5;
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
  box-shadow: none;
}
html.homepage-overview-on #collections-view .homepage-live-view:hover { background: rgba(126, 226, 176, .16); }
html.homepage-overview-on #collections-view .homepage-live-view:focus-visible { outline: 2px solid #8be9f2; outline-offset: 2px; }

/* ---- Action cards ------------------------------------------------------ */
html.homepage-overview-on #collections-view > .homepage-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 18px;
  margin: 24px 0 28px;
}
html.homepage-overview-on #collections-view > .homepage-actions[hidden],
html.homepage-overview-on #collections-view .homepage-action[hidden] { display: none; }
html.homepage-overview-on #collections-view .homepage-action {
  position: relative;
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 132px;
  box-sizing: border-box;
  padding: 18px 22px 18px 18px;
  border: 1px solid var(--hp-line);
  border-radius: 16px;
  background: linear-gradient(135deg, #fff 35%, #eff7fb);
  box-shadow: 0 4px 14px rgba(25, 60, 81, .06);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
html.homepage-overview-on #collections-view .homepage-action::before {
  content: "";
  position: absolute;
  inset: auto -40px -60px auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 202, 228, .14), transparent 70%);
  pointer-events: none;
}
html.homepage-overview-on #collections-view .homepage-action:hover {
  transform: translateY(-3px);
  border-color: #a9d6e4;
  box-shadow: 0 16px 32px rgba(18, 52, 77, .13);
}
html.homepage-overview-on #collections-view .homepage-action:focus-within { border-color: #2e9bb0; box-shadow: 0 0 0 3px rgba(46, 155, 176, .22), 0 16px 32px rgba(18, 52, 77, .1); }
html.homepage-overview-on #collections-view .homepage-action.is-disabled { opacity: .7; }
html.homepage-overview-on #collections-view .homepage-action-art { position: relative; display: block; height: 104px; }
html.homepage-overview-on #collections-view .homepage-action-art img {
  position: absolute;
  bottom: 0;
  height: 100%;
  width: auto;
  max-width: none;
  object-fit: contain;
  filter: drop-shadow(0 10px 12px rgba(11, 33, 54, .22));
}
html.homepage-overview-on #collections-view .homepage-action-art .homepage-art-primary { left: 0; z-index: 2; }
html.homepage-overview-on #collections-view .homepage-action-art .homepage-art-secondary { left: 48px; height: 84%; z-index: 1; opacity: .96; }
html.homepage-overview-on #collections-view [data-action="remote"] .homepage-action-art .homepage-art-primary { left: -8px; height: 92%; }
html.homepage-overview-on #collections-view [data-action="remote"] .homepage-action-art .homepage-art-secondary { left: 78px; height: 62%; z-index: 3; }
html.homepage-overview-on #collections-view .homepage-action-copy { position: relative; min-width: 0; }
html.homepage-overview-on #collections-view .homepage-action-title { margin: 0 0 6px; color: var(--hp-ink); font-size: 18px; font-weight: 700; letter-spacing: -.01em; line-height: 1.3; }
html.homepage-overview-on #collections-view .homepage-action-text { margin: 0; color: var(--hp-muted); font-size: 14px; line-height: 1.5; }
html.homepage-overview-on #collections-view .homepage-action-control .collect-now-entry:not([hidden]) { display: contents; }
html.homepage-overview-on #collections-view .homepage-action-control .collect-now-entry > p { display: none; }
/* The original control becomes the card's arrow button and its click target. */
html.homepage-overview-on.premium-workspace.collections-redesign #collections-view .homepage-action-control .collect-now-entry > button,
html.homepage-overview-on.premium-workspace.collections-redesign #collections-view .homepage-action-control > .request-collection-launch {
  position: static;
  display: grid;
  place-items: center;
  width: 46px;
  min-width: 46px;
  height: 46px;
  min-height: 46px;
  margin: 0;
  padding: 0;
  border: 1px solid #0b2136;
  border-radius: 50%;
  background: #0b2136;
  color: #fff;
  font-size: 0;
  line-height: 0;
  box-shadow: 0 6px 14px rgba(11, 33, 54, .22);
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
html.homepage-overview-on #collections-view .homepage-action-control .collect-now-entry > button::before,
html.homepage-overview-on #collections-view .homepage-action-control > .request-collection-launch::before {
  content: "→" / "";
  font-size: 20px;
  line-height: 1;
}
html.homepage-overview-on #collections-view .homepage-action-control .collect-now-entry > button::after,
html.homepage-overview-on #collections-view .homepage-action-control > .request-collection-launch::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  border-radius: 16px;
}
html.homepage-overview-on.premium-workspace.collections-redesign #collections-view .homepage-action:hover .homepage-action-control button:not(:disabled) {
  background: #25cae4;
  border-color: #25cae4;
  color: #072334;
}
html.homepage-overview-on #collections-view .homepage-action-control button:focus-visible { outline: 3px solid #2e9bb0; outline-offset: 3px; }
html.homepage-overview-on #collections-view .homepage-action-control button:disabled { cursor: progress; }

/* A local-only agency keeps its original Collect This Device Now entry. */
html.homepage-overview-on.premium-workspace.collections-redesign #collections-view > .collect-now-entry.le-entry { margin-top: 24px; }

/* ---- Toolbar info tooltip --------------------------------------------- */
html.homepage-overview-on #collections-view .homepage-info { position: relative; display: inline-flex; align-self: center; flex: none; }
/* Beside the sort control: an extra grid column on desktop, inline on mobile. */
html.homepage-overview-on.premium-workspace.collections-redesign #collections-view .list-toolbar > .homepage-info { grid-row: 1; grid-column: -1 / span 1; }
html.homepage-overview-on.premium-workspace.collections-redesign #collections-view .homepage-info-button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  min-height: 40px;
  margin: 0;
  padding: 0;
  border: 1px solid #d5e1e9;
  border-radius: 50%;
  background: #fff;
  color: #365a71;
  cursor: help;
  box-shadow: none;
}
html.homepage-overview-on #collections-view .homepage-info-button .homepage-icon { width: 19px; height: 19px; }
html.homepage-overview-on #collections-view .homepage-info-button:focus-visible { outline: 2px solid #2e9bb0; outline-offset: 2px; }
html.homepage-overview-on.premium-workspace.collections-redesign #collections-view .homepage-info > .collection-status-help {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 40;
  width: max-content;
  max-width: min(300px, 80vw);
  margin: 0;
  padding: 10px 14px;
  border-radius: 10px;
  background: #0b2136;
  color: #e6f1f7;
  font-size: 13px;
  line-height: 1.45;
  text-align: left;
  box-shadow: 0 12px 28px rgba(11, 33, 54, .3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
html.homepage-overview-on.premium-workspace.collections-redesign #collections-view .homepage-info:hover > .collection-status-help,
html.homepage-overview-on.premium-workspace.collections-redesign #collections-view .homepage-info:focus-within > .collection-status-help,
html.homepage-overview-on.premium-workspace.collections-redesign #collections-view .homepage-info.is-open > .collection-status-help {
  opacity: 1;
  visibility: visible;
  transform: none;
}

html.homepage-overview-on.premium-workspace.collections-redesign #collections-view .homepage-info.is-dismissed > .collection-status-help { opacity: 0; visibility: hidden; transform: translateY(-4px); }

/* ---- Loading: accessible live text stays; shimmer replaces the sentence -- */
html.homepage-overview-on #collections-view .client-status-loading {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
html.homepage-overview-on #collections-view .collection-row .collection-status[data-status="checking"] .collection-status-badge,
html.homepage-overview-on #collections-view .collection-row .collection-status[data-status="checking"] .collection-status-caption {
  display: block;
  width: 150px;
  max-width: 100%;
  height: 22px;
  overflow: hidden;
  border: 0 !important;
  border-radius: 7px;
  color: transparent !important;
  background: linear-gradient(90deg, #e6edf2 25%, #f6f9fb 37%, #e6edf2 63%) !important;
  background-size: 400% 100% !important;
  box-shadow: none !important;
  animation: homepage-shimmer 1.4s ease infinite;
  user-select: none;
}
html.homepage-overview-on #collections-view .collection-row .collection-status[data-status="checking"] .collection-status-caption { width: 190px; height: 11px; margin-top: 9px; }
html.homepage-overview-on #collections-view .collection-row .collection-status[data-status="checking"] .collection-status-badge * ,
html.homepage-overview-on #collections-view .collection-row .collection-status[data-status="checking"] .collection-status-badge::before,
html.homepage-overview-on #collections-view .collection-row .collection-status[data-status="checking"] .collection-status-badge::after { visibility: hidden; }

/* ---- Rows: status edge, track, thumbnail, gentle lift ------------------ */
html.homepage-overview-on #collections-view .collection-row { --row-tone: var(--hp-checking); }
html.homepage-overview-on #collections-view .collection-row[data-status-tone="active"] { --row-tone: var(--hp-active); }
html.homepage-overview-on #collections-view .collection-row[data-status-tone="awaiting"] { --row-tone: var(--hp-awaiting); }
html.homepage-overview-on #collections-view .collection-row[data-status-tone="ready"] { --row-tone: var(--hp-ready); }
html.homepage-overview-on #collections-view .collection-row[data-status-tone="attention"] { --row-tone: var(--hp-attention); }
html.homepage-overview-on #collections-view .collection-row[data-status-tone="unavailable"] { --row-tone: var(--hp-unavailable); }
html.homepage-overview-on.premium-workspace.collections-redesign.collection-columns.large-controls .client-grouped-collections .collection-row {
  position: relative;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}
html.homepage-overview-on.premium-workspace.collections-redesign.collection-columns.large-controls .client-grouped-collections .collection-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: var(--row-tone);
  pointer-events: none;
}
html.homepage-overview-on.premium-workspace.collections-redesign.collection-columns.large-controls .client-grouped-collections .collection-row:hover {
  z-index: 2;
  transform: translateY(-2px);
  background: #fbfdfe;
  box-shadow: 0 10px 24px rgba(18, 52, 77, .10);
}
/* The existing four-step stepper (paintProgress), compact and unlabeled in rows. */
html.homepage-overview-on.premium-workspace.collections-redesign.collection-columns.large-controls .client-grouped-collections .collection-row .collection-state .collection-status-track {
  display: flex !important;
  width: auto;
  max-width: 196px;
  height: 13px;
  margin: 11px 10px 1px 6px;
  overflow: visible;
}
html.homepage-overview-on.premium-workspace.collections-redesign.collection-columns.large-controls .client-grouped-collections .collection-row .collection-state .collection-status[data-status="checking"] .collection-status-track,
html.homepage-overview-on.premium-workspace.collections-redesign.collection-columns.large-controls .client-grouped-collections .collection-row .collection-state .collection-status-track:not(:has(.filled)) {
  display: none !important;
}
html.homepage-overview-on #collections-view .collection-row .collection-status-track .collection-stage-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
html.homepage-overview-on #collections-view .homepage-device-thumb {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid #dbe6ee;
  border-radius: 12px;
  background: linear-gradient(160deg, #f6f9fc, #e2ecf3);
}
html.homepage-overview-on #collections-view .homepage-device-thumb img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 3px 4px rgba(11, 33, 54, .18));
}
html.homepage-overview-on #collections-view .homepage-device-thumb:not([data-platform="unknown"]) .collection-device-mark {
  position: absolute;
  right: -7px;
  bottom: -7px;
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  margin: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(11, 33, 54, .28);
}
html.homepage-overview-on #collections-view .homepage-device-thumb:not([data-platform="unknown"]) .collection-device-mark svg { width: 12px; height: 12px; }
html.homepage-overview-on #collections-view .homepage-device-thumb[data-platform="unknown"] { background: #f3f7fa; }

/* Matter headers: completed / in progress / needs attention. */
html.homepage-overview-on #collections-view .homepage-group-bar {
  display: inline-flex;
  align-items: stretch;
  gap: 2px;
  width: 136px;
  height: 8px;
  margin-left: auto;
  border-radius: 6px;
  background: #e7eef3;
  overflow: hidden;
  flex: none;
}
html.homepage-overview-on #collections-view .homepage-group-segment { flex-basis: 0; min-width: 6px; }
html.homepage-overview-on #collections-view .homepage-group-segment[hidden] { display: none; }
html.homepage-overview-on #collections-view .homepage-group-segment[data-segment="ready"] { background: var(--hp-ready); }
html.homepage-overview-on #collections-view .homepage-group-segment[data-segment="progress"] { background: var(--hp-active); }
html.homepage-overview-on #collections-view .homepage-group-segment[data-segment="attention"] { background: var(--hp-attention); }
html.homepage-overview-on #collections-view .homepage-group-segment[data-segment="pending"] {
  background: repeating-linear-gradient(135deg, #d4dee6 0 4px, #e7eef3 4px 8px);
}
html.homepage-overview-on.premium-workspace.collections-redesign #collections-view .collection-group-title .collection-group-count { margin-left: 12px; }

/* ---- Responsive ------------------------------------------------------- */
@media (max-width: 760px) {
  html.homepage-overview-on.premium-workspace.collections-redesign #collections-view .homepage-credit-tile { flex: 1 1 100%; min-width: 0; }
  html.homepage-overview-on.premium-workspace.collections-redesign #collections-view .homepage-tile { min-height: 104px; padding: 14px 14px 13px; }
  html.homepage-overview-on #collections-view .homepage-tile-count { font-size: 30px; }
  html.homepage-overview-on #collections-view .homepage-tile-hint { display: none; }
  html.homepage-overview-on #collections-view .homepage-live { border-radius: 14px; }
  html.homepage-overview-on #collections-view .homepage-action { grid-template-columns: 92px minmax(0, 1fr) auto; gap: 14px; padding: 16px 16px 16px 14px; min-height: 116px; }
  html.homepage-overview-on #collections-view .homepage-action-art { height: 84px; }
  html.homepage-overview-on #collections-view .homepage-action-art .homepage-art-secondary { left: 34px; }
  html.homepage-overview-on #collections-view [data-action="remote"] .homepage-action-art .homepage-art-secondary { left: 56px; }
  html.homepage-overview-on #collections-view .homepage-action-title { font-size: 16px; }
  html.homepage-overview-on #collections-view .homepage-action-text { font-size: 13px; }
  html.homepage-overview-on #collections-view .homepage-group-bar { width: 84px; }
}
@media (max-width: 420px) {
  html.homepage-overview-on #collections-view .homepage-tiles { gap: 10px; }
  html.homepage-overview-on #collections-view .homepage-tile-top { font-size: 12px; gap: 8px; }
  html.homepage-overview-on #collections-view .homepage-tile-icon { width: 26px; height: 26px; }
  html.homepage-overview-on #collections-view .homepage-group-bar { width: 64px; }
}
html.homepage-overview-on.premium-detail-open #collections-view .homepage-tile-hint { display: none; }

@keyframes homepage-shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
@keyframes homepage-pulse {
  0% { box-shadow: 0 0 0 0 rgba(60, 198, 138, .55); }
  70% { box-shadow: 0 0 0 8px rgba(60, 198, 138, 0); }
  100% { box-shadow: 0 0 0 0 rgba(60, 198, 138, 0); }
}
@media (prefers-reduced-motion: reduce) {
  html.homepage-overview-on #collections-view .homepage-tile,
  html.homepage-overview-on #collections-view .homepage-action,
  html.homepage-overview-on #collections-view .collection-row,
  html.homepage-overview-on #collections-view .homepage-info > .collection-status-help { transition: none !important; }
  html.homepage-overview-on.premium-workspace.collections-redesign #collections-view .homepage-tile:hover:not(:disabled),
  html.homepage-overview-on #collections-view .homepage-action:hover,
  html.homepage-overview-on.premium-workspace.collections-redesign.collection-columns.large-controls .client-grouped-collections .collection-row:hover { transform: none !important; }
  html.homepage-overview-on #collections-view .homepage-live-dot,
  html.homepage-overview-on #collections-view .homepage-tile.is-loading .homepage-tile-count,
  html.homepage-overview-on #collections-view .collection-row .collection-status[data-status="checking"] .collection-status-badge,
  html.homepage-overview-on #collections-view .collection-row .collection-status[data-status="checking"] .collection-status-caption { animation: none !important; }
}
