.pace { position: relative; display: flex; gap: var(--space-8); height: 208px; }
.pace__y { position: relative; flex: 0 0 24px; margin-top: 8px; height: 180px; }
.pace__y span {
  position: absolute;
  right: 0;
  transform: translateY(-50%);
  font-family: var(--font-family-text);
  font-weight: 500;
  font-size: var(--font-size-11);
  line-height: 1.3;
  color: var(--text-tertiary);
}
.pace__plot { position: relative; flex: 1 1 0; min-width: 0; margin-top: 8px; height: 180px; }
.pace__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.pace__svg * { vector-effect: non-scaling-stroke; }
.pace__grid { stroke: var(--chart-track); stroke-width: 1; }
.pace__grid--zero { stroke: var(--border-strong); }
.pace__area { fill: url(#pace-area); }
.pace__line { fill: none; stroke: url(#pace-line); stroke-width: 10; stroke-linecap: round; stroke-linejoin: round; }
.pace__target { stroke: var(--brand-highlight); stroke-width: 2; stroke-dasharray: 6 5; stroke-linecap: round; }
.pace__plot { cursor: crosshair; outline: none; }
.pace__plot:focus-visible { box-shadow: 0 0 0 3px var(--border-focus); border-radius: var(--radius-xs); }

.pace__cursor {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  transform: translateX(-0.5px);
  background: repeating-linear-gradient(to bottom, var(--text-tertiary) 0 3px, transparent 3px 7px);
  transition: left 140ms ease;
}
.pace__dot--plan, .pace__dot--you, .pace__tag, .pace__note { transition: left 140ms ease, right 140ms ease, top 140ms ease; }
.pace__tag, .pace__note { pointer-events: none; }
.pace__dot { position: absolute; border-radius: 50%; transform: translate(-50%, -50%); }
.pace__dot--plan { width: 8px; height: 8px; background: var(--text-tertiary); box-shadow: 0 0 0 3px var(--bg-surface); }
.pace__dot--you { width: 12px; height: 12px; background: var(--bg-accent); box-shadow: 0 0 0 3px var(--bg-surface); }
.pace__dot--end { width: 8px; height: 8px; background: var(--brand-highlight); box-shadow: 0 0 0 2px var(--bg-surface); }
.pace__tag {
  position: absolute;
  transform: translateY(-50%);
  padding: var(--space-6) var(--space-10);
  border-radius: var(--radius-sm);
  background: var(--bg-inverse);
  color: var(--text-inverse);
  white-space: nowrap;
}
.pace__note { position: absolute; width: 124px; }
.pace__x { position: absolute; left: 0; right: 0; top: 184px; height: 14px; }
.pace__x span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.pace__x span:first-child { transform: none; }
.pace__x span:last-child { transform: translateX(-100%); }
.pace__legend { display: flex; gap: var(--space-20); }
.pace__legend-item { display: inline-flex; align-items: center; gap: var(--space-8); }
.pace__swatch { display: inline-block; width: 18px; height: 0; border-top: 3px solid var(--color-violet-450); border-radius: 2px; }
.pace__swatch--target { border-top: 3px dashed var(--brand-highlight); }

.catalog-toolbar { display: flex; align-items: center; gap: var(--space-8); }
.catalog-rows { display: flex; flex-direction: column; gap: var(--space-16); }
.catalog-table { display: flex; flex-direction: column; gap: var(--space-16); }
.catalog-footer { display: flex; align-items: center; gap: var(--space-8); }
.catalog-footer > p { flex: 1 1 0; min-width: 0; }

.product-layout { align-items: flex-start; flex-wrap: nowrap; }
.product-list { flex: 0 0 264px; gap: var(--space-2); }
.product-list .card-header { margin-bottom: var(--space-2); }
.product { display: flex; flex: 1 1 0; min-width: 0; flex-direction: column; gap: var(--space-20); }
.product__header { display: flex; align-items: center; gap: var(--space-16); }
.product__icon { width: 72px; height: 72px; }

.product__icon.icon-tile--subtle,
.product__icon.icon-tile--neutral { background: var(--bg-surface); box-shadow: var(--elevation-card), inset 0 0 0 1px var(--border-subtle); }
.product__icon .icon { --icon-size: 36px; }
.product__title { display: flex; flex-direction: column; gap: var(--space-6); min-width: 0; }
.product__name { display: flex; align-items: center; gap: var(--space-8); margin: 0; font: inherit; }

.counts-card { gap: var(--space-10); }
.counts { display: flex; flex-direction: column; gap: var(--space-10); }
.counts__row { display: grid; grid-template-columns: minmax(140px, 1fr) repeat(3, minmax(56px, 110px)); column-gap: var(--space-16); align-items: baseline; }
.counts__row--head { line-height: 1.3; }

.bars { display: flex; align-items: flex-end; gap: var(--space-16); height: 184px; }
.bars__col { display: flex; flex: 1 1 0; min-width: 0; flex-direction: column; align-items: center; gap: var(--space-6); }
.bars__col .chart-bar { animation: bar-grow 700ms var(--ease-out, ease) 200ms both; }
@keyframes bar-grow { from { transform: scaleY(0); } to { transform: none; } }

@container content (max-width: 960px) {
  .product-list { flex-basis: 248px; }
  .product .row:has(> .kpi-card:nth-child(4)) > .kpi-card { flex: 1 1 calc(50% - var(--space-8)); }
}
.recent-sales { flex: 0 0 300px; min-width: 0; }
@container content (max-width: 960px) { .recent-sales { flex: 1 1 100%; } }
.counts__row > :not(:first-child) { text-align: right; }

.product-list .list-row--boxed:not(.is-selected) { background: transparent; }
.product-list .list-row--boxed:not(.is-selected):hover { background: var(--bg-subtle); }
