/* Checkpoint 141: distinguish blue in-progress collection from amber stock issues. */
#page[data-page="collection"] .collection-store-category-summary{
  display:flex;
  align-items:center;
  gap:7px;
  min-width:0;
}
#page[data-page="collection"] .collection-store-category-summary small{
  min-width:0;
  margin-top:0!important;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
/* Blue signals partially collected; amber remains exclusive to stock issues, green to completion. */
#page[data-page="collection"] .collection-category-row.started:not(.complete):not(.no-stock):not(.locked){
  background:color-mix(in srgb,var(--ux-info-soft) 94%,var(--ux-surface));
}
@media (max-width:760px){
  #page[data-page="collection"] .collection-category-rail-card.started:not(.completed){
    background:color-mix(in srgb,var(--ux-info-soft) 96%,var(--ux-surface));
  }
  #page[data-page="collection"] .collection-category-rail-card.started:not(.completed):not(.selected){
    box-shadow:inset 0 -3px var(--ux-info);
  }
  #page[data-page="collection"] .collection-category-rail-card.started.selected{
    background:color-mix(in srgb,var(--ux-info-soft) 96%,var(--ux-accent-soft));
    box-shadow:inset 0 -3px var(--ux-accent),inset 0 3px var(--ux-info);
  }
  #page[data-page="collection"] .collection-store-category-summary{
    min-height:24px;
  }
  #page[data-page="collection"] .collection-gate-editor-head .collection-selected-store{
    min-height:30px!important;
  }
  #page[data-page="collection"] .collection-category-sort-toggle{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:39px;
    height:24px;
    padding:0 5px;
    border:1px solid var(--ux-border-strong);
    border-radius:6px;
    background:var(--ux-surface);
    color:var(--ux-ink-secondary);
    font-size:10px;
    font-weight:750;
    line-height:1;
    white-space:nowrap;
    cursor:pointer;
  }
  #page[data-page="collection"] .collection-category-sort-toggle.is-active{
    color:var(--ux-accent);
    border-color:var(--ux-accent);
    background:var(--ux-accent-soft);
  }
  #page[data-page="collection"] .collection-category-sort-toggle:focus-visible{
    outline:2px solid var(--ux-accent);
    outline-offset:2px;
  }
}
@media (min-width:761px){
  #page[data-page="collection"] .collection-store-category-summary .collection-category-sort-toggle{
    display:none;
  }
  /* vh fallback for engines without dvh; the footer row grows if its actions wrap. */
  #page.orders-list-page{
    height:calc(100vh - var(--topbar-height) - var(--shell-feedback-height));
    height:calc(100dvh - var(--topbar-height) - var(--shell-feedback-height));
    box-sizing:border-box;
    grid-template-rows:auto auto minmax(0,1fr) auto;
  }
  #page.orders-list-page .orders-list-actionbar{
    min-height:54px;
    height:auto;
    box-sizing:border-box;
    padding-block:7px;
  }
}
