/* Shared progress primitive.
   Progress bars are neutral information rails; modules may only place them in layout. */
.rs-progress {
  min-width: 0;
  display: grid;
  align-items: center;
  gap: var(--rs-progress-gap,6px);
}

.rs-progress__meta {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--rst-ui-muted);
  font-size: 11px;
  font-weight: var(--rst-fw-medium);
}

.rs-progress__meta strong,
.rs-progress__value {
  color: var(--rst-ui-text);
  font-weight: var(--rst-fw-display);
}

.rs-progress__meta strong { font-size: 14px; }

.rs-progress__label,
.rs-progress__value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rs-progress__label { color: var(--rst-ui-muted); }

.rs-progress__track {
  position: relative;
  min-width: 0;
  height: var(--rs-progress-track-height,4px);
  overflow: visible;
  border-radius: var(--rst-ui-radius-pill);
  background: var(--rst-ui-divider);
}

.rs-progress__fill {
  position: absolute;
  inset: 0 auto 0 0;
  display: block;
  width: var(--rs-progress-value,0%);
  border-radius: inherit;
  background: var(--rs-progress-accent,var(--rst-ui-line-strong));
}

.rs-progress__marker {
  position: absolute;
  top: 50%;
  left: var(--rs-progress-marker,0%);
  width: var(--rs-progress-marker-size,8px);
  height: var(--rs-progress-marker-size,8px);
  border-radius: var(--rst-ui-radius-round);
  background: var(--rs-progress-marker-color,var(--rst-ui-text));
  transform: translate(-50%,-50%);
}

.rs-progress--inline {
  grid-template-columns: auto minmax(96px,1fr) auto;
  gap: 10px;
}

.rs-progress--inline .rs-progress__label,
.rs-progress--inline .rs-progress__value {
  color: var(--rst-ui-muted);
  font-size: 10px;
  font-weight: var(--rst-fw-bold);
  letter-spacing: .08em;
  text-transform: uppercase;
}
