@layer atom {
  .progress-stage {
    min-height: 520px;
  }

  .progress-examples {
    width: min(100%, 480px);
    display: grid;
    gap: 32px;
  }

  .progress-example {
    min-width: 0;
    display: grid;
    justify-items: center;
    gap: 14px;
  }

  .progress-example-title {
    color: var(--muted-foreground);
    font-size: 12px;
    font-weight: 600;
    line-height: 16px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .progress-component {
    width: min(100%, 384px);
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
  }

  .progress-label {
    color: var(--foreground);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
  }

  .progress-value {
    margin-inline-start: auto;
    color: var(--muted-foreground);
    font-size: 14px;
    line-height: 20px;
    font-variant-numeric: tabular-nums;
  }

  .progress-track {
    position: relative;
    width: 100%;
    height: 4px;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-radius: 9999px;
    background: var(--muted);
  }

  .progress-indicator {
    position: absolute;
    inset-block: 0;
    inset-inline-start: 0;
    width: var(--progress-value, 0%);
    border-radius: inherit;
    background: var(--primary);
    transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
  }

  .progress-component--plain {
    width: min(60%, 384px);
    min-width: 180px;
  }

  .progress-state-list {
    width: min(100%, 384px);
    display: grid;
    gap: 16px;
  }

  .progress-state-row {
    min-width: 0;
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr) 34px;
    align-items: center;
    gap: 12px;
  }

  .progress-state-name,
  .progress-state-value {
    color: var(--muted-foreground);
    font-size: 12px;
    line-height: 16px;
  }

  .progress-state-value {
    text-align: end;
    font-variant-numeric: tabular-nums;
  }

  .progress-component--compact {
    width: 100%;
    display: block;
  }

  .progress-component--indeterminate .progress-indicator {
    width: 35%;
    animation: progress-indeterminate 1.25s ease-in-out infinite;
  }

  @keyframes progress-indeterminate {
    from { inset-inline-start: -35%; }
    to { inset-inline-start: 100%; }
  }

  @media (max-width: 540px) {
    .progress-examples {
      gap: 28px;
    }

    .progress-component--plain {
      width: 72%;
      min-width: 0;
    }

    .progress-state-row {
      grid-template-columns: 62px minmax(0, 1fr) 32px;
      gap: 9px;
    }
  }
}
